Lines Matching +full:exclude +full:- +full:any +full:- +full:issue +full:- +full:labels
2 * Copyright (c) 2006-2017, JGraph Ltd
3 * Copyright (c) 2006-2017, Gaudenz Alder
10 EditorUi.VERSION = '@DRAWIO-VERSION@';
51 EditorUi.ignoredAnonymizedChars = '\n\t`~!@#$%^&*()_+{}|:"<>?-=[]\;\'.\/,\n\t';
65 DrawioFile.SYNC = 'none'; //Disable real-time sync
75 * NOTE: This must also be enabled on the server-side.
138 fontFamily:'"Open-Sans", "sans-serif"',
140 axisFormat:'%Y-%m-%d'
158 ((message.indexOf('Script error') != -1) || (message.indexOf('extension') != -1))))
339 if (fn(pos - 8, type, n))
357 * Removes any values, styles and geometries from the given XML node.
430 * Maximum size for text files in labels is 0.5 MB.
518 …rg/1999/xlink" width="1px" height="1px" version="1.1"><foreignObject pointer-events="all" width="1…
526 // Checks for client-side JPG support
619 * @param {number} dx X-coordinate of the translation.
620 * @param {number} dy Y-coordinate of the translation.
638 zIndex: 2e9 // The z-index (defaults to 2000000000)
658 x = document.body.clientWidth / 2 - 2;
676 mxUtils.setPrefixedStyle(status.style, 'transform', 'translate(-50%,-50%)');
683 if (label.substring(label.length - 3, label.length) != '...' &&
684 label.charAt(label.length - 1) != '!')
824 ui.movePage(idx, idx - 1);
842 if (idx < ui.pages.length - 1)
852 if (idx < ui.pages.length - 1)
854 ui.movePage(idx, ui.pages.length - 1);
885 if (idx < ui.pages.length - 1)
895 if (idx < ui.pages.length - 1)
897 ui.selectPage(ui.pages[ui.pages.length - 1]);
962 var index = data.indexOf('<meta charset="utf-8">');
966 var replaceString = '<meta charset="utf-8"/>';
968 … data = data.slice(0, index) + replaceString + data.slice(index + replaceStrLen - 1, data.length);
1011 for (var i = nodes.length - 1; i >= 0; i--)
1063 * @param {number} dx X-coordinate of the translation.
1064 * @param {number} dy Y-coordinate of the translation.
1208 * @param {number} dx X-coordinate of the translation.
1209 * @param {number} dy Y-coordinate of the translation.
1287 // Marks the page as up-to-date
1332 * Removes any values, styles and geometries from the given XML node.
1360 /* any whitespace */
1373 * Removes any values, styles and geometries from the given XML node.
1478 * Removes any values, styles and geometries from the given XML node.
1504 * Removes any values, styles and geometries from the given XML node.
1541 * @param {number} dx X-coordinate of the translation.
1542 * @param {number} dy Y-coordinate of the translation.
1590 * @param {number} dx X-coordinate of the translation.
1591 * @param {number} dy Y-coordinate of the translation.
1670 var js = EditorUi.drawHost + '/js/embed-static.min.js';
1677 var x0 = Math.floor(bounds.x / scale - graph.view.translate.x);
1678 var y0 = Math.floor(bounds.y / scale - graph.view.translate.y);
1735 …return ((redirect == null) ? '<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" >…
1739 …((redirect != null) ? '<meta http-equiv="refresh" content="0;URL=\'' + redirect + '\'"/>\n' : '') +
1741 …(((redirect == null && bg != null && bg != mxConstants.NONE) ? ' style="background-color:' + bg + …
1745 '<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" ' +
1756 var js = window.DRAWIO_VIEWER_URL || EditorUi.drawHost + '/js/viewer-static.min.js';
1772 var style = 'max-width:100%;border:1px solid transparent;';
1774 …return ((redirect == null) ? '<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" >…
1778 …((redirect != null) ? '<meta http-equiv="refresh" content="0;URL=\'' + redirect + '\'"/>\n' : '') +
1779 '<meta charset="utf-8"/>\n</head>\n<body>' +
1780 …'\n<div class="mxgraph" style="' + style + '" data-mxgraph="' + mxUtils.htmlEntities(JSON.stringif…
1782 '<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" ' +
1849 if (urlParams['page-id'] != null && page.getId() == urlParams['page-id'])
1856 this.pages[Math.max(0, Math.min(this.pages.length - 1, urlParams['page'] || 0))];
1879 if (urlParams['layer-ids'] != null)
1883 var layerIds = urlParams['layer-ids'].split(' ');
1909 * @param {number} dx X-coordinate of the translation.
1910 * @param {number} dy Y-coordinate of the translation.
1932 basename = basename + '-' + this.currentPage.getName();
1941 * @param {number} dx X-coordinate of the translation.
1942 * @param {number} dy Y-coordinate of the translation.
2067 * @param {number} dx X-coordinate of the translation.
2068 * @param {number} dy Y-coordinate of the translation.
2163 * @param {number} dx X-coordinate of the translation.
2164 * @param {number} dy Y-coordinate of the translation.
2174 * - url: The url to load the data from (proxy is used if CORS is not enabled)
2175 * - data: The data to be inserted. If both, data and url are defined, then the data
2177 * - format: Currently, only 'csv' is supported as an optional value. Default is XML.
2178 * - update: Optional URL to fetch updates from (POST request with the page XML).
2179 * - interval: Optional interval for fetching updates. Default is 60000 (60 seconds).
2275 // LATER: Remove cache-control header
2296 * @param {number} dx X-coordinate of the translation.
2297 * @param {number} dy Y-coordinate of the translation.
2354 if (valueNode.getAttribute('replace-value') == '1')
2510 if (node.hasAttribute('max-scale'))
2512 fit = parseFloat(node.getAttribute('max-scale'));
2562 // JavaScript months are 0-based.
2569 return y + "-" + m + "-" + d + "-" + h + "-" + mi + "-" + s;
2584 * @param {number} dx X-coordinate of the translation.
2585 * @param {number} dy Y-coordinate of the translation.
2666 this.editor.graph.model.prefix = Editor.guid() + '-';
2720 EditorUi.logEvent({category: file.getMode().toUpperCase() + '-OPEN-FILE-' + file.getHash(),
2764 EditorUi.logEvent({category: 'ERROR-LOAD-FILE-' +
2855 hash = ((hash << 5) - hash + this.hashValue(diagram, function(obj, key, value, isXml)
2920 hash = ((hash << 5) - hash + this.hashValue(
2937 temp = ((temp << 5) - temp + str.charCodeAt(i)) << 0;
3001 * @param {number} dx X-coordinate of the translation.
3002 * @param {number} dy Y-coordinate of the translation.
3017 * @param {number} dx X-coordinate of the translation.
3018 * @param {number} dy Y-coordinate of the translation.
3041 * @param {number} dx X-coordinate of the translation.
3042 * @param {number} dy Y-coordinate of the translation.
3077 nextChild = elts[elts.length - 1].nextSibling;
3093 * @param {number} dx X-coordinate of the translation.
3094 * @param {number} dy Y-coordinate of the translation.
3114 * @param {number} dx X-coordinate of the translation.
3115 * @param {number} dy Y-coordinate of the translation.
3125 * @param {number} dx X-coordinate of the translation.
3126 * @param {number} dy Y-coordinate of the translation.
3146 var nextSibling = (elts != null) ? elts[elts.length - 1].nextSibling : null;
3231 // Workaround for close after any button click in IE8
3281 spinBtn.style.marginTop = '-2px';
3332 geo.translate(-bounds.x, -bounds.y);
3371 bounds.x -= graph.view.translate.x;
3372 bounds.y -= graph.view.translate.y;
3629 link.style.cssText = 'color:#a3a3a3;text-decoration:none;margin-right:2px;cursor:pointer;';
3715 …Toolbar.prototype.unselectedBackground = 'linear-gradient(rgb(255, 255, 255) 0px, rgb(242, 242, 24…
3743 // Implements the sketch-min UI
3751 Editor.configurationKey = '.sketch-configuration';
3752 Editor.settingsKey = '.sketch-config';
3875 * @param {number} dx X-coordinate of the translation.
3876 * @param {number} dy Y-coordinate of the translation.
4122 * @param {number} dx X-coordinate of the translation.
4123 * @param {number} dy Y-coordinate of the translation.
4135 * @param {number} dx X-coordinate of the translation.
4136 * @param {number} dy Y-coordinate of the translation.
4177 …banner.style.cssText = 'position:absolute;bottom:10px;left:50%;max-width:90%;padding:18px 34px 12p…
4178 …'font-size:16px;font-weight:bold;white-space:nowrap;cursor:pointer;z-index:' + mxPopupMenu.prototy…
4179 mxUtils.setPrefixedStyle(banner.style, 'box-shadow', '1px 1px 2px 0px #ddd');
4180 mxUtils.setPrefixedStyle(banner.style, 'transform', 'translate(-50%,120%)');
4188 logo.style.cssText = 'margin-top:-4px;margin-left:8px;margin-right:12px;width:26px;height:26px;';
4195 …img.style.cssText = 'position:absolute;right:10px;top:12px;filter:invert(1);padding:6px;margin:-6p…
4203 div.style.cssText = 'font-size:11px;text-align:center;font-weight:normal;';
4249 mxUtils.setPrefixedStyle(banner.style, 'transform', 'translate(-50%,120%)');
4279 mxUtils.setPrefixedStyle(banner.style, 'transform', 'translate(-50%,0%)');
4292 * @param {number} dx X-coordinate of the translation.
4293 * @param {number} dy Y-coordinate of the translation.
4308 * @param {number} dx X-coordinate of the translation.
4309 * @param {number} dy Y-coordinate of the translation.
4380 * @param {number} dx X-coordinate of the translation.
4381 * @param {number} dy Y-coordinate of the translation.
4396 * @param {number} dx X-coordinate of the translation.
4397 * @param {number} dy Y-coordinate of the translation.
4461 // Workaround for Chromium 65 cross-domain anchor download issue
4464 var raw = navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)
4514 * @param {number} dx X-coordinate of the translation.
4515 * @param {number} dy Y-coordinate of the translation.
4533 * @param {number} dx X-coordinate of the translation.
4534 * @param {number} dy Y-coordinate of the translation.
4550 var bytes = new Array(end - begin);
4566 * @param {number} dx X-coordinate of the translation.
4567 * @param {number} dy Y-coordinate of the translation.
4676 win.document.write('<html><img style="max-width:100%;" src="data:' +
4699 * Creates a temporary graph instance for rendering off-screen content.
4765 // Puts the dialog on top of the container z-index
4877 // Puts the dialog on top of the container z-index
4893 zIndex: 2e9 // The z-index (defaults to 2000000000)
4942 * @param {number} dx X-coordinate of the translation.
4943 * @param {number} dy Y-coordinate of the translation.
4966 * @param {number} dx X-coordinate of the translation.
4967 * @param {number} dy Y-coordinate of the translation.
5001 // Workaround for no roundtrip required if data is available on client-side
5017 // see http://stackoverflow.com/questions/30646417/catching-mixed-content-error
5059 * Returns whether or not any services should be shown in dialogs
5220 var id = 'geCheckbox-' + Editor.guid();
5389 linkButton.innerHTML = '<div style="width:100%;height:100%;box-sizing:border-box;' +
5391 'border:1px solid black;background-color:' + linkColor :
5392 'background-position:center center;background-repeat:no-repeat;' +
5393 'background-image:url(\'' + Dialog.prototype.closeImage + '\')') + ';"></div>';
5478 params.push('page-id=' + this.currentPage.getId());
5502 // Fallback to non-public URL for Drive files
5620 ((fit) ? 'max-width:100%;' : '') +
5622 '" data-mxgraph="' + mxUtils.htmlEntities(JSON.stringify(data)) + '"></div>';
5627 (((urlParams['dev'] == '1') ? 'https://test.draw.io/js/viewer-static.min.js' :
5628 …window.DRAWIO_VIEWER_URL ? window.DRAWIO_VIEWER_URL : EditorUi.lightboxHost + '/js/viewer-static.m…
5645 hd.style.cssText = 'width:100%;text-align:center;margin-top:0px;margin-bottom:12px';
5649 …radioSection.style.cssText = 'border-bottom:1px solid lightGray;padding-bottom:8px;margin-bottom:1…
5652 publicUrlRadio.style.cssText = 'margin-right:8px;margin-top:8px;margin-bottom:8px;';
5655 publicUrlRadio.setAttribute('name', 'type-embedhtmldialog');
5766 hd.style.cssText = 'width:100%;text-align:center;margin-top:0px;margin-bottom:12px';
5775 …ink != null) ? helpLink : 'https://www.diagrams.net/doc/faq/google-drive-publicly-publish-diagram';
5777 …tSection.style.cssText = 'border-bottom:1px solid lightGray;padding-bottom:14px;padding-top:6px;ma…
5819 …helpLink = (helpLink != null) ? helpLink : 'https://www.diagrams.net/doc/faq/publish-diagram-as-li…
5872 dy -= 20;
5946 …hd.style.cssText = 'width:100%;text-align:center;margin-top:0px;margin-bottom:' + (showZoomBorder?…
6012 hd.style.cssText = 'width:100%;text-align:center;margin-top:0px;margin-bottom:10px';
6105 height -= 30;
6245 hd.style.cssText = 'width:100%;text-align:center;margin-top:0px;margin-bottom:4px';
6325 css += 'max-width:100%;';
6445 css += 'max-width:100%;';
6487 svgRoot.setAttribute('viewBox', '-0.5 -0.5 ' + w + ' ' + h);
6488 css += 'max-width:100%;max-height:' + h + 'px;';
6512 * @param {number} dx X-coordinate of the translation.
6513 * @param {number} dy Y-coordinate of the translation.
6517 var seconds = Math.floor((new Date() - date) / 1000);
7084 * Updates links to pages in shapes and labels.
7095 * Updates links to pages in shapes and labels.
7138 * Updates links to pages in shapes and labels.
7218 var ext = 'UNKNOWN-VISIO';
7235 EditorUi.logEvent({category: ext + '-MS-IMPORT-FILE',
7258 xhr.setRequestHeader('x-convert-custom', customParam);
7463 EditorUi.logEvent({category: 'LUCIDCHART-IMPORT-FILE',
7545 mermaid.mermaidAPI.render('geMermaidOutput-' + new Date().getTime(), data, function(svg)
7574 //Any size such that it shows up
7669 b -= 10;
7676 b -= 26;
7683 b -= 26;
7687 return '-';
7818 // Handles special case for Gliffy data which requires async server-side for parsing
7823 // Fixes possible parsing problems with ASCII 160 (non-breaking space)
7824 …this.parseFile(new Blob([text.replace(/\s+/g,' ')], {type: 'application/octet-stream'}), mxUtils.b…
7975 if (text.charAt(0) == '<' && text.indexOf('>') == text.length - 1)
7982 //Limit labels to maxTextBytes
8000 // See https://stackoverflow.com/questions/5717093/check-if-a-javascript-string-is-a-url
8030 var i = -1;
8149 var file = new Blob([xml], {type: 'application/octet-stream'})
8250 …ui.parseFile(new Blob([data], {type: 'application/octet-stream'}), mxUtils.bind(this, function(xhr)
8385 …this.parseFile((file != null) ? file : new Blob([data], {type: 'application/octet-stream'}), mxUti…
8503 if (--remain == 0)
8607 if (w != null && w.charAt(w.length - 1) != '%')
8616 if (h != null && h.charAt(h.length - 1) != '%')
8685 // ignores any SVG parsing errors
8874 '<img style="margin-top:8px;" src="' + Editor.loResImage + '"/>',
8875 '<img style="margin-top:8px;" src="' + Editor.hiResImage + '"/>',
8905 EditorUi.logEvent({category: 'GLIFFY-IMPORT-FILE',
8982 * Extracts the XML from the compressed or non-compressed text chunk.
8992 * @param {number} dx X-coordinate of the translation.
8993 * @param {number} dy Y-coordinate of the translation.
9332 EditDataDialog.placeholderHelpLink = 'https://www.diagrams.net/doc/faq/predefined-placeholders';
9399 // LATER: Add shadow for labels in graph.container (eg. math, NO_FO), scaling
9416 ui.menus.addMenuItems(menu, ['delete', '-', 'cut', 'copy',
9417 'copyAsImage', '-', 'duplicate'], null, evt);
9581 // IE 10 does not implement pointer-events so it can't have a drop highlight
9621 else if (mxUtils.indexOf(evt.dataTransfer.types, 'text/uri-list') >= 0)
9623 var uri = evt.dataTransfer.getData('text/uri-list');
9766 // IE 10 does not implement pointer-events so it can't have a drop highlight
9794 var x = pt.x / scale - tr.x;
9795 var y = pt.y / scale - tr.y;
9823 var uri = (mxUtils.indexOf(evt.dataTransfer.types, 'text/uri-list') >= 0) ?
9824 evt.dataTransfer.getData('text/uri-list') : null;
10042 textInput.style.wordBreak = 'break-all';
10050 textInput.style.zIndex = '-1';
10061 // Disables built-in cut, copy and paste shortcuts
10081 // Avoid autoscroll but allow handling of all pass-through ctrl shortcuts
10112 // Ctrl-key is not pressed for long enough in FF on Windows
10296 setStyle(graph.defaultEdgeStyle, 'fontSize', this.menus.defaultFontSize - 4);
10447 if (urlParams['ext-fonts'] != '1')
10512 if (urlParams['search-shapes'] != null && this.sidebar.searchShapes != null)
10514 this.sidebar.searchShapes(decodeURIComponent(urlParams['search-shapes']));
10608 // Fixes cross-platform clipboard UTF8 issues by encoding as URI
10722 graph.pasteCounter--;
10776 asHtml = elt.getAttribute('data-type') != 'text/plain';
10787 if (spans != null && spans.length > 0 && spans[0].getAttribute('data-lucid-type') ===
10790 var content = spans[0].getAttribute('data-lucid-content');
10833 if (idx >= 0 && idx < xml.length - 3)
10874 // ignore event no longer exists in async handler in IE8-
10924 // IE 10 does not implement pointer-events so it can't have a drop highlight
10980 if (mxUtils.indexOf(provider.types, 'text/uri-list') >= 0)
10982 data = evt.dataTransfer.getData('text/uri-list');
11075 w = (b.clientWidth || d.clientWidth) - 3;
11076 h = Math.max(b.clientHeight || 0, d.clientHeight) - 3;
11093 hl.style.width = Math.max(0, w - 3) + 'px';
11094 hl.style.height = Math.max(0, h - 3) + 'px';
11143 name = name.substring(0, name.length - 4) + '.drawio';
11147 name = name.substring(0, name.length - 4) + '.drawio';
11228 name = name.substring(0, name.length - 5) + '.drawio';
11592 …ketch=1;' + (cell.style.indexOf('fontFamily=') == -1 || cell.style.indexOf('fontFamily=Helvetica;'…
11727 this.diagramContainer.removeAttribute('data-bounds');
11867 parent.postMessage(JSON.stringify({event: 'prompt-cancel', message: data}), '*');
12474 graph.container.scrollTop -= 2 * border;
12475 graph.container.scrollLeft -= 2 * border;
12665 …this.parseFile(new Blob([data], {type: 'application/octet-stream'}), mxUtils.bind(this, function(x…
12729 div.style.display = 'inline-block';
12823 !this.isOffline() ? 'https://drawio-app.com/import-from-csv-to-drawio/' : null);
12855 }, i == layoutList.length - 1, done);
12883 var labels = null;
12947 while (index < lines.length && text.charAt(text.length - 1) == '\\' &&
12950 text = text.substring(0, text.length - 1) + mxUtils.trim(lines[index].substring(1));
12968 else if (key == 'labelname' && value.length > 0 && value != '-')
12972 else if (key == 'labels' && value.length > 0 && value != '-')
12974 labels = JSON.parse(value);
12984 else if (key == 'stylename' && value.length > 0 && value != '-')
12988 else if (key == 'styles' && value.length > 0 && value != '-')
12992 else if (key == 'vars' && value.length > 0 && value != '-')
12996 else if (key == 'identity' && value.length > 0 && value != '-')
13000 else if (key == 'parent' && value.length > 0 && value != '-')
13004 else if (key == 'namespace' && value.length > 0 && value != '-')
13083 attribs.push(mxUtils.trim(keys[i]).replace(/[^a-z0-9]+/ig, '_').
13147 if (labelname != null && labels != null)
13149 var tempLabel = labels[newCell.getAttribute(labelname)];
13351 // Adds additional edge labels
13352 if (edge.labels != null)
13354 for (var k = 0; k < edge.labels.length; k++)
13356 var def = edge.labels[k];
13488 (layout == 'auto' && select.length == 2 * cells.length - 1 && roots.length == 1))
13580 * @param {number} dx X-coordinate of the translation.
13581 * @param {number} dy Y-coordinate of the translation.
13583 EditorUi.prototype.getSearch = function(exclude) argument
13587 …if (urlParams['offline'] != '1' && urlParams['demo'] != '1' && exclude != null && window.location.…
13593 if (mxUtils.indexOf(exclude, key) < 0 && urlParams[key] != null)
14002 hd.style.cssText = 'width:100%;text-align:center;margin-top:0px;margin-bottom:12px';
14008 …libsSection.innerHTML = '<div style="text-align:center;padding:8px;"><img src="' + IMAGE_PATH + '/…
14039 libsSection.innerHTML = '<div style="text-align:center;padding-top:20px;color:gray;">' +
14100 pendingLibs--;
14114 pendingLibs--;
14132 }), null, null, 'https://www.diagrams.net/doc/faq/custom-libraries-confluence-cloud');
14137 //White-listed functions and some info about it
14873 xhr.setRequestHeader('Content-Language', 'da, mi, en, de-DE');
14977 value.substring(0, 5) === '<?xml' || value.substring(0, 12) === '<!--[if IE]>');
15029 noComments.style.cssText = 'display:none;padding-top:10px;text-align:center;';
15191 cdiv.setAttribute('data-commentId', comment.id);
15218 dateDiv.setAttribute('data-commentId', comment.id);
15424 if (!readOnly && !comment.isLocked && level == 0) //Resolve is a top-level action only
15514 addLink.innerHTML = '<div class="geSprite geSprite-plus" style="display:inline-block;"></div>';
15644 …listDiv.innerHTML = '<div style="padding-top:10px;text-align:center;"><img src="' + IMAGE_PATH + '…
15660 return new Date(r1.modifiedDate) - new Date(r2.modifiedDate);
15673 return new Date(c1.modifiedDate) - new Date(c2.modifiedDate);
15722 modDateDivsMap[div.getAttribute('data-commentId')] = div;
15767 x = Math.max(0, Math.min(x, iw - this.table.clientWidth));
15768 y = Math.max(0, Math.min(y, ih - this.table.clientHeight - 48));