Lines Matching refs:mxUtils
160 graph.currentEdgeStyle = mxUtils.clone(graph.defaultEdgeStyle);
161 graph.currentVertexStyle = mxUtils.clone(graph.defaultVertexStyle);
173 if (mxUtils.indexOf(styles, valueStyles[i]) < 0)
204 if (mxUtils.indexOf(styles, connectStyles[i]) < 0)
260 var index = mxUtils.indexOf(appliedStyles, key);
272 if (mxUtils.indexOf(group, key) >= 0)
276 var index2 = mxUtils.indexOf(appliedStyles, group[l]);
302 if (!edge || applyAll || mxUtils.indexOf(ignoredEdgeStyles, key) < 0)
304 newStyle = mxUtils.setStyle(newStyle, key, styleValue);
311 newStyle = mxUtils.setStyle(mxUtils.setStyle(
343 var textEditing = mxUtils.bind(this, function(evt)
452 mxEvent.addListener(this.diagramContainer, 'mousemove', mxUtils.bind(this, function(evt)
454 var off = mxUtils.getOffset(this.diagramContainer);
478 this.keydownHandler = mxUtils.bind(this, function(evt)
500 this.keyupHandler = mxUtils.bind(this, function(evt)
546 var updateToolbar = mxUtils.bind(this, function()
557 if (mxUtils.indexOf(this.toolbar.staticElements, node) < 0)
618 var css = mxUtils.getCurrentStyle(node);
690 graph.popupMenuHandler.factoryMethod = mxUtils.bind(this, function(menu, cell, evt)
697 mxEvent.addGestureListeners(document, mxUtils.bind(this, function(evt)
731 this.addListener('styleChanged', mxUtils.bind(this, function(sender, evt)
762 var common = mxUtils.indexOf(valueStyles, keys[i]) >= 0;
768 if (mxUtils.indexOf(connectStyles, keys[i]) >= 0)
770 if (edge || mxUtils.indexOf(alwaysEdgeStyles, keys[i]) >= 0)
782 else if (vertex && mxUtils.indexOf(styles, keys[i]) >= 0)
794 else if (mxUtils.indexOf(styles, keys[i]) >= 0)
808 if (edge || common || mxUtils.indexOf(alwaysEdgeStyles, keys[i]) >= 0)
892 mxUtils.getValue(graph.currentEdgeStyle, 'startFill', '1'));
902 mxUtils.getValue(graph.currentEdgeStyle, 'endFill', '1'));
910 var update = mxUtils.bind(this, function()
950 this.gestureHandler = mxUtils.bind(this, function(evt)
963 this.resizeHandler = mxUtils.bind(this, function()
965 window.setTimeout(mxUtils.bind(this, function()
976 this.orientationChangeHandler = mxUtils.bind(this, function()
987 this.scrollHandler = mxUtils.bind(this, function()
998 this.editor.addListener('resetGraphView', mxUtils.bind(this, function()
1006 this.addListener('gridEnabledChanged', mxUtils.bind(this, function()
1011 this.addListener('backgroundColorChanged', mxUtils.bind(this, function()
1019 graph.addListener('gridSizeChanged', mxUtils.bind(this, function()
1040 mxUtils.extend(EditorUi, mxEventSource);
1123 mxEvent.addListener(graph.container, 'scroll', mxUtils.bind(this, function()
1134 graph.addListener(mxEvent.ESCAPE, mxUtils.bind(this, function()
1145 mxEvent.addListener(graph.container, 'keydown', mxUtils.bind(this, function(evt)
1150 mxEvent.addListener(graph.container, 'keypress', mxUtils.bind(this, function(evt)
1159 graph.getSelectionModel().addListener(mxEvent.CHANGE, mxUtils.bind(this, function()
1164 graph.getModel().addListener(mxEvent.CHANGE, mxUtils.bind(this, function()
1202 graph.addListener(mxEvent.FIRE_MOUSE_EVENT, mxUtils.bind(this, function(sender, evt)
1210 var hidePicker = mxUtils.bind(this, function()
1240 var pt = mxUtils.convertPoint(this.container, mxEvent.getClientX(evt), mxEvent.getClientY(evt));
1244 window.setTimeout(mxUtils.bind(this, function()
1275 …ctVertex(state.cell, dir, this.graph.defaultEdgeLength, evt, null, null, mxUtils.bind(this, functi…
1289 window.setTimeout(mxUtils.bind(this, function()
1291 ui.showShapePicker(me.getGraphX(), me.getGraphY(), temp, mxUtils.bind(this, function(cell)
1301 }), mxUtils.bind(this, function(result)
1314 this.hoverIcons.addListener('focus', mxUtils.bind(this, function(sender, evt)
1321 thread = window.setTimeout(mxUtils.bind(this, function()
1328 var offset = mxUtils.getOffset(graph.container);
1334 var div = ui.showShapePicker(x, y, temp, mxUtils.bind(this, function(cell)
1354 mxUtils.setOpacity(div, 30);
1358 mxUtils.setOpacity(div, 100);
1368 this.hoverIcons.addListener('blur', mxUtils.bind(this, function(sender, evt)
1420 var div = this.createShapePicker(x, y, source, callback, direction, mxUtils.bind(this, function()
1472 mxUtils.setPrefixedStyle(div.style, 'transform', 'translate(-22px,-22px)');
1482 var addCell = mxUtils.bind(this, function(cell)
1574 var createVertex = mxUtils.bind(this, function(style, w, h, value)
2023 resize = mxUtils.bind(this, function(autoscale, maxScale, cx, cy)
2031 var scroll = mxUtils.hasScrollbars(graph.container);
2082 this.chromelessWindowResize = mxUtils.bind(this, function()
2088 var autoscaleResize = mxUtils.bind(this, function()
2100 this.editor.addListener('resetGraphView', mxUtils.bind(this, function()
2105 this.actions.get('zoomIn').funct = mxUtils.bind(this, function(evt)
2110 this.actions.get('zoomOut').funct = mxUtils.bind(this, function(evt)
2140 mxUtils.setPrefixedStyle(this.chromelessToolbar.style, 'borderRadius', '16px');
2141 … mxUtils.setPrefixedStyle(this.chromelessToolbar.style, 'transition', 'opacity 600ms ease-in-out');
2143 var updateChromelessToolbarPosition = mxUtils.bind(this, function()
2145 var css = mxUtils.getCurrentStyle(graph.container);
2163 var addButton = mxUtils.bind(this, function(fn, imgSrc, tip)
2192 addButton(mxUtils.bind(this, function(evt)
2201 var prevButton = addButton(mxUtils.bind(this, function(evt)
2226 var nextButton = addButton(mxUtils.bind(this, function(evt)
2232 var updatePageInfo = mxUtils.bind(this, function()
2237 …mxUtils.write(pageInfo, (mxUtils.indexOf(this.pages, this.currentPage) + 1) + ' / ' + this.pages.l…
2246 var updatePageButtons = mxUtils.bind(this, function()
2268 addButton(mxUtils.bind(this, function(evt)
2274 addButton(mxUtils.bind(this, function(evt)
2280 addButton(mxUtils.bind(this, function(evt)
2307 var fadeOut = mxUtils.bind(this, function(delay)
2321 fadeThread = window.setTimeout(mxUtils.bind(this, function()
2323 mxUtils.setOpacity(this.chromelessToolbar, 0);
2326 fadeThread2 = window.setTimeout(mxUtils.bind(this, function()
2334 var fadeIn = mxUtils.bind(this, function(opacity)
2349 mxUtils.setOpacity(this.chromelessToolbar, opacity || 30);
2356 var layersButton = addButton(mxUtils.bind(this, function(evt)
2367 mxEvent.addListener(this.layersDialog, 'mouseleave', mxUtils.bind(this, function()
2375 mxUtils.setPrefixedStyle(this.layersDialog.style, 'borderRadius', '5px');
2388 mxUtils.setOpacity(this.layersDialog, 80);
2398 var style = mxUtils.getCurrentStyle(this.editor.graph.container);
2424 addButton(mxUtils.bind(this, function(evt)
2454 addButton(mxUtils.bind(this, function(evt)
2471 addButton(mxUtils.bind(this, function(evt)
2489 addButton(mxUtils.bind(this, function(evt)
2508 mxUtils.setPrefixedStyle(this.chromelessToolbar.style, 'transform', 'translate(-50%,0)');
2513 …er(graph.container, (mxClient.IS_POINTER) ? 'pointermove' : 'mousemove', mxUtils.bind(this, functi…
2531 mxEvent.addListener(this.chromelessToolbar, 'mouseenter', mxUtils.bind(this, function(evt)
2546 mxEvent.addListener(this.chromelessToolbar, 'mousemove', mxUtils.bind(this, function(evt)
2560 mxEvent.addListener(this.chromelessToolbar, 'mouseleave', mxUtils.bind(this, function(evt)
2624 if (this.graph.container != null && mxUtils.hasScrollbars(this.graph.container))
2646 if (this.container != null && mxUtils.hasScrollbars(this.container))
2724 updateZoomTimeout = window.setTimeout(mxUtils.bind(this, function()
2731 … mxUtils.setPrefixedStyle(graph.view.backgroundPageShape.node.style, 'transform-origin', null);
2732 mxUtils.setPrefixedStyle(graph.view.backgroundPageShape.node.style, 'transform', null);
2763 var offset = mxUtils.getOffset(graph.container);
2791 if (mxUtils.hasScrollbars(graph.container) && (dx != 0 || dy != 0))
2891 mxUtils.setPrefixedStyle(page.style, 'transform-origin',
2898 mxUtils.setPrefixedStyle(page.style, 'transform',
2938 mxEvent.addMouseWheelListener(mxUtils.bind(this, function(evt, up, force, cx, cy)
2997 addButton(mxUtils.bind(this, function(evt)
3098 mxUtils.isAncestorNode(this.formatContainer, mxEvent.getSource(evt)));
3109 window.onbeforeunload = mxUtils.bind(this, function()
3140 window.opener.openFile.setConsumer(mxUtils.bind(this, function(xml, filename)
3144 var doc = mxUtils.parseXml(xml);
3159 mxUtils.alert(mxResources.get('invalidOrMissingFile') + ': ' + e.message);
3192 menu.hideMenu = mxUtils.bind(this, function()
3335 return mxUtils.getXml(this.editor.getGraphXml());
3406 if (!mxUtils.hasScrollbars(graph.container))
3413 if (mxUtils.hasScrollbars(graph.container))
3472 var hasScrollbars = mxUtils.hasScrollbars(graph.container);
3727 var undoListener = mxUtils.bind(this, function()
4065 this.editor.addListener('statusChanged', mxUtils.bind(this, function()
4128 this.addSplitHandler(this.hsplit, true, 0, mxUtils.bind(this, function(value)
4214 var getValue = mxUtils.bind(this, function()
4258 mxEvent.addListener(elt, 'click', mxUtils.bind(this, function(evt)
4289 var msg = mxUtils.htmlEntities(mxResources.get('unknownError'));
4295 msg = mxUtils.htmlEntities(e.message);
4365 window.setTimeout(mxUtils.bind(this, function()
4373 mxUtils.clearSelection();
4445 window.openFile = new OpenFile(mxUtils.bind(this, function(cancel)
4493 this.readGraphModelFromClipboardWithType(mxUtils.bind(this, function(xml)
4501 this.readGraphModelFromClipboardWithType(mxUtils.bind(this, function(xml)
4524 navigator.clipboard.read().then(mxUtils.bind(this, function(data)
4527 mxUtils.indexOf(data[0].types, 'text/html') >= 0)
4529 data[0].getType('text/html').then(mxUtils.bind(this, function(blob)
4531 blob.text().then(mxUtils.bind(this, function(value)
4541 mxUtils.trim((elt.innerText == null) ?
4542 mxUtils.getTextContent(elt) : elt.innerText);
4564 mxUtils.trim(decodeURIComponent(spans[0].textContent)) :
4593 mxUtils.indexOf(data[0].types, 'text/plain') >= 0)
4652 mxUtils.getTextContent(elt.firstChild.nextSibling) :
4657 mxUtils.setTextContent(elt, temp);
4683 mxUtils.setTextContent(elt, temp);
4709 mxUtils.setTextContent(elt, temp);
4749 … data = (mxUtils.indexOf(provider.types, 'text/html') >= 0) ? provider.getData('text/html') : null;
4751 if (mxUtils.indexOf(provider.types, 'text/plain' && (data == null || data.length == 0)))
4759 data = Graph.zapGremlins(mxUtils.trim(data));
4800 …Dialog(this, this.editor.getOrCreateFilename(), mxResources.get('save'), mxUtils.bind(this, functi…
4803 }), null, mxUtils.bind(this, function(name)
4810 mxUtils.confirm(mxResources.get('invalidName'));
4831 var xml = mxUtils.getXml(this.editor.getGraphXml());
4838 !mxUtils.confirm(mxResources.get('replaceIt', [name])))
4844 this.editor.setStatus(mxUtils.htmlEntities(mxResources.get('saved')) + ' ' + new Date());
4855 mxUtils.alert(mxResources.get('drawingTooLarge'));
4856 mxUtils.popup(xml);
4868 this.editor.setStatus(mxUtils.htmlEntities(mxResources.get('errorSavingFile')));
4900 morph.addListener(mxEvent.DONE, mxUtils.bind(this, function()
4932 var newValue = mxUtils.prompt(title, value);
4946 mxUtils.alert(mxResources.get('fileNotFound'));
4985 apply = (apply != null) ? apply : mxUtils.bind(this, function(image)
4993 var newValue = mxUtils.prompt(mxResources.get('backgroundImage'), (img != null) ? img.src : '');
5006 mxUtils.alert(mxResources.get('fileNotFound'));
5033 if (mxUtils.confirm(msg))
5331 keyHandler.bindAction = mxUtils.bind(this, function(code, control, key, shift)