Home
last modified time | relevance | path

Searched refs:graph (Results 1 – 25 of 198) sorted by relevance

12345678

/plugin/diagramsnet/lib/js/grapheditor/
DActions.js21 var graph = editor.graph;
24 return Action.prototype.isEnabled.apply(this, arguments) && graph.isEnabled();
28 this.addAction('new...', function() { graph.openLink(ui.getUrl()); });
38 graph.popupMenuHandler.hideMenu();
40 var scale = graph.view.scale;
41 var tx = graph.view.translate.x;
42 var ty = graph.view.translate.y;
47 …if (Math.abs(scale - graph.view.scale) < 0.00001 && tx == graph.view.translate.x && ty == graph.vi…
49 ui.actions.get((graph.pageVisible) ? 'fitPage' : 'fitWindow').funct();
54 if (graph.isEnabled())
[all …]
DEditorUi.js15 var graph = this.editor.graph;
16 graph.lightbox = lightbox;
19 var graphGetGraphBounds = graph.getGraphBounds;
21 graph.getGraphBounds = function(img) method
41 if (graph.useCssTransforms)
66 graph.isEnabled = function() { return false; }; method
67 graph.panningHandler.isForcePanningEvent = function(me) method
77 if (!graph.standalone)
97 var state = graph.view.getState(cell);
104 var defaultStyle = graph.getCellStyle(clone);
[all …]
DMenus.js47 var graph = ui.editor.graph;
48 var isGraphEnabled = mxUtils.bind(graph, graph.isEnabled);
64 'cells', [graph.cellEditor.getEditingCell()]));
67 graph.updateLabelElements(graph.getSelectionCells(), function(elt)
74 graph.replaceElement(elt, 'div');
123 if (graph.cellEditor.textarea != null)
125 graph.cellEditor.textarea.focus();
158 if (graph.cellEditor.textarea != null)
166 var elts = graph.cellEditor.textarea.getElementsByTagName('font');
182 'cells', [graph.cellEditor.getEditingCell()]));
[all …]
DEditor.js7 Editor = function(chromeless, themes, model, graph, editable) argument
12 this.graph = graph || this.createGraph(themes, model);
51 this.graph.getModel().addListener(mxEvent.CHANGE, mxUtils.bind(this, function()
57 this.graph.resetViewOnRootChange = false;
389 wnd = this.graph.openLink(this.getEditBlankUrl(
395 this.graph.openLink(this.getEditBlankUrl(p) +
405 var graph = new Graph(null, model, null, null, themes);
406 graph.transparentBackground = false;
409 var graphIsCssTransformsSupported = graph.isCssTransformsSupported;
412 graph.isCssTransformsSupported = function()
[all …]
DSidebar.js15 this.graph = editorUi.createTemporaryGraph(this.editorUi.editor.graph.getStylesheet());
16 this.graph.cellRenderer.minSvgStrokeWidth = this.minThumbStrokeWidth;
17 this.graph.cellRenderer.antiAlias = this.thumbAntiAlias;
18 this.graph.container.style.visibility = 'hidden';
19 this.graph.foldingEnabled = false;
21 document.body.appendChild(this.graph.container);
295 this.graph2 = new Graph(this.tooltip, null, null, this.editorUi.editor.graph.getStylesheet());
374 (!applyAllStyles) ? this.editorUi.editor.graph.defaultVertexStyle : null,
375 (!applyAllStyles) ? this.editorUi.editor.graph.defaultEdgeStyle : null,
1151 var temp = parseInt(this.editorUi.editor.graph.defaultVertexStyle['fontSize']);
[all …]
DFormat.js115 var graph = editor.graph;
123 graph.getSelectionModel().addListener(mxEvent.CHANGE, this.update);
124 graph.addListener(mxEvent.EDITING_STARTED, this.update);
125 graph.addListener(mxEvent.EDITING_STOPPED, this.update);
126 graph.getModel().addListener(mxEvent.CHANGE, this.update);
127 graph.getView().addListener('unitChanged', this.update);
129 graph.addListener(mxEvent.ROOT, mxUtils.bind(this, function()
173 var cells = this.editorUi.editor.graph.getSelectionCells();
179 var style = this.editorUi.editor.graph.getCurrentCellStyle(cells[i]);
207 var graph = this.editorUi.editor.graph;
[all …]
/plugin/diagramsnet/lib/plugins/
Dexplore.js17 var graph = ui.editor.graph;
19 if (graph.model.isVertex(graph.getSelectionCell()))
30 var sourceGraph = ui.editor.graph;
91 var graph = new Graph(container);
92 graph.keepEdgesInBackground = true;
93 graph.isCellResizable = function()
98 graph.isCellRotatable = function()
104 graph.getCursorForCell = function(cell)
114 graph.getFoldingImage = function()
132 graph.setEnabled(false);
[all …]
Danimation.js35 function animateCells(graph, cells, steps, delay) argument
37 graph.executeAnimations(graph.createWipeAnimations(cells, true), null, steps, delay);
63 function run(graph, steps, loop) argument
70 graph.getModel().beginUpdate();
73 for (var id in graph.getModel().cells)
75 var cell = graph.getModel().cells[id];
77 if (graph.getModel().isVertex(cell) || graph.getModel().isEdge(cell))
79 graph.setCellStyles('opacity', '0', [cell]);
80 graph.setCellStyles('noLabel', '1', [cell]);
86 graph.getModel().endUpdate();
[all …]
DedgeConnection.js9 var geo = this.graph.getCellGeometry(source);
13 source = this.graph.getModel().getParent(source);
14 geo = this.graph.getCellGeometry(source);
18 …var clone = this.graph.createVertex(this.graph.getModel().getParent(source), null, null, 0, 0, 6, …
19 var geo = this.graph.getModel().getGeometry(clone);
23 var point = this.graph.getPointForEvent(evt);
24 geo.x = this.graph.snap(point.x - geo.width / 2) - this.graph.panDx / this.graph.view.scale;
25 geo.y = this.graph.snap(point.y - geo.height / 2) - this.graph.panDy / this.graph.view.scale;
30 var sourceState = this.graph.view.getState(source);
36 if (Math.abs(this.graph.snap(this.first.x) -
[all …]
Dnumber.js9 var graph = format.editorUi.editor.graph;
11 return graph.view.redrawNumberShape != null;
12 }, onChange: function(graph, newValue) argument
14 graph.refresh();
17 var graph = ui.editor.graph;
21 var graphViewResetValidationState = graph.view.resetValidationState;
23 graph.view.resetValidationState = function()
29 var graphViewValidateCellState = graph.view.validateCellState;
31 graph.view.validateCellState = function(cell, recurse)
36 if (recurse && state != null && graph.model.isVertex(state.cell) &&
[all …]
Dvoice.js131 ui.editor.graph.popupMenuHandler.hideMenu();
135 ui.editor.graph.popupMenuHandler.hideMenu();
781 if (tokens.length > 0 && graph.isEnabled())
809 if (graph.isEditing())
813 graph.stopEditing();
832 var cells = graph.getSelectionCells();
836 graph.startEditingAtCell(cells[0]);
920 var cell = graph.getSelectionCell();
921 var geo = graph.getCellGeometry(cell);
923 if (graph.getModel().isVertex(cell) && geo != null)
[all …]
Dtags.js56 var graph = editorUi.editor.graph;
84 var graph = editorUi.editor.graph;
101 return graph.getTagsForCells(graph.model.getDescendants(
102 graph.model.getRoot()));
139 var graphIsCellVisible = graph.isCellVisible;
141 graph.isCellVisible = function(cell)
145 !matchTags(graph.getTagsForCell(cell), hiddenTags, hiddenTagCount));
150 var cells = graph.getCellsForTags([tag], null, true);
157 if (graph.model.isVertex(cells[i]) || graph.model.isEdge(cells[i]))
163 graph.setCellsVisible(cells, visible);
[all …]
Dflow.js17 var graph = ui.editor.graph;
19 if (graph.model.isEdge(graph.getSelectionCell()))
32 if (ui.editor.graph.model.isEdge(cells[i]))
34 var state = ui.editor.graph.view.getState(cells[i]);
69 var cell = ui.editor.graph.getSelectionCell();
71 if (ui.editor.graph.model.isEdge(cell))
73 toggleFlow(ui.editor.graph.getSelectionCells());
80 ui.editor.graph.click = function(me)
82 if (ui.editor.graph.model.isEdge(me.getCell()))
Dprops.js15 var graph = ui.editor.graph;
63 var highlight = new mxCellHighlight(graph, '#00ff00', 8);
68 var result = graph.getDataForCells(graph.getSelectionCells());
88 graph.container.focus();
103 highlight.highlight(graph.view.getState(cell));
108 var label = graph.sanitizeHtml(graph.getLabel(cell));
136 var label = graph.convertValueToString(cell);
140 div.innerHTML = '<h1>' + graph.sanitizeHtml(label) + '</h1>';
167 graph.selectionModel.addListener(mxEvent.CHANGE, function(sender, evt)
169 cellClicked(graph.getSelectionCell());
[all …]
/plugin/diagramsnet/lib/plugins/trees/
Dtrees.js20 var graph = ui.editor.graph;
21 var model = graph.getModel();
35 graph.traverse(cell, true, function(vertex)
51 if (isTreeCell(graph.getSelectionCell()) && graph.getSelectionCount() == 1)
53 var cell = graph.getSelectionCell();
54 var sib = graph.getOutgoingEdges(cell);
74 if (graph.isEnabled() && graph.getSelectionCount() == 1)
76 var cell = graph.getSelectionCell();
77 var sib = graph.getOutgoingEdges(cell);
85 tmp.push(graph.model.getTerminal(sib[i], false));
[all …]
/plugin/diagramsnet/lib/js/diagramly/
DTrees.js149 var graph = ui.editor.graph;
150 var model = graph.getModel();
165 var style = graph.getCurrentCellStyle(cell);
180 var pstate = graph.view.getState(parent);
181 var style = (pstate != null) ? pstate.style : graph.getCellStyle(parent);
196 var pstate = graph.view.getState(parent);
198 var state = graph.view.getState(parent);
199 var style = (pstate != null) ? pstate.style : graph.getCellStyle(parent);
212 if (graph.getSelectionCount() == 1)
214 var cell = graph.getSelectionCell();
[all …]
DmxFreehand.js1 function mxFreehand(graph) argument
4 …var svgElement = (graph.view != null && graph.view.canvas != null) ? graph.view.canvas.ownerSVGEle…
6 if (graph.container == null || svgElement == null)
12 graph.addListener(mxEvent.ESCAPE, mxUtils.bind(this, function()
71 graph.getRubberband().setEnabled(!isEnabled);
72 graph.graphHandler.setSelectEnabled(!isEnabled);
73 graph.graphHandler.setMoveEnabled(!isEnabled);
74 graph.container.style.cursor = (isEnabled) ? 'crosshair' : '';
75 graph.fireEvent(new mxEventObject('freehandStateChanged'));
178 tmpClosedPath = startEndDist <= graph.tolerance;
[all …]
DGraphViewer.js169 this.graph = new Graph(container);
170 this.graph.enableFlowAnimation = true;
171 this.graph.defaultPageBackgroundColor = 'transparent';
172 this.graph.transparentBackground = false;
174 if (this.responsive && this.graph.dialect == mxConstants.DIALECT_SVG)
176 var root = this.graph.view.getDrawPane().ownerSVGElement;
177 var canvas = this.graph.view.getCanvas();
191 this.graph.fit = function() method
196 this.graph.sizeDidChange = function() method
215 this.graph.isMoveCellsEvent = function(evt) method
[all …]
DEmbed.js78 function addMathJaxGraph(graph) argument
83 MathJax.Hub.Queue(['Typeset', MathJax.Hub, graph.container]);
87 mathJaxQueue.push(graph.container);
91 graph.addListener(mxEvent.SIZE, function(sender, evt)
95 MathJax.Hub.Queue(['Typeset', MathJax.Hub, graph.container]);
156 var graph = new Graph(container);
200 graph.resetViewOnRootChange = false;
201 graph.setEnabled(false);
208 var graphGetGlobalVariable = graph.getGlobalVariable;
210 graph.getGlobalVariable = function(name)
[all …]
DPages.js98 this.ui.editor.graph.updatePlaceholders();
123 this.ui.editor.graph.updatePlaceholders();
167 var graph = editor.graph;
172 page.viewState = graph.getViewState();
173 page.root = graph.model.root;
188 graph.view.clear(page.root, true);
189 graph.clearSelection();
197 graph.model.prefix = Editor.guid() + '-';
198 graph.model.rootChanged(page.root);
199 graph.setViewState(page.viewState);
[all …]
/plugin/asciidocjs/node_modules/color-convert/
Droute.js15 const graph = {};
20 graph[models[i]] = { variable
28 return graph;
33 const graph = buildGraph();
36 graph[fromModel].distance = 0;
44 const node = graph[adjacent];
47 node.distance = graph[current].distance + 1;
54 return graph;
63 function wrapConversion(toModel, graph) { argument
64 const path = [graph[toModel].parent, toModel];
[all …]
/plugin/jdraw/src/com/mxgraph/examples/swing/
DValidation.java41 mxGraph graph = new mxGraph(); in Validation() local
42 Object parent = graph.getDefaultParent(); in Validation()
44 graph.getModel().beginUpdate(); in Validation()
47 Object v1 = graph.insertVertex(parent, null, sourceNode, 20, 20, in Validation()
49 Object v2 = graph.insertVertex(parent, null, targetNode, 200, 20, in Validation()
51 Object v3 = graph.insertVertex(parent, null, targetNode in Validation()
53 Object v4 = graph.insertVertex(parent, null, targetNode in Validation()
55 graph.insertVertex(parent, null, subtargetNode, 200, in Validation()
57 Object v6 = graph.insertVertex(parent, null, sourceNode in Validation()
59 graph.insertEdge(parent, null, "", v1, v2); in Validation()
[all …]
DValidation.java.bak37 mxGraph graph = new mxGraph();
38 Object parent = graph.getDefaultParent();
40 graph.getModel().beginUpdate();
43 Object v1 = graph.insertVertex(parent, null, sourceNode, 20, 20,
45 Object v2 = graph.insertVertex(parent, null, targetNode, 200, 20,
47 Object v3 = graph.insertVertex(parent, null, targetNode
49 Object v4 = graph.insertVertex(parent, null, targetNode
51 graph.insertVertex(parent, null, subtargetNode, 200,
53 Object v6 = graph.insertVertex(parent, null, sourceNode
55 graph.insertEdge(parent, null, "", v1, v2);
[all …]
/plugin/diagramsnet/lib/js/
Dembed.dev.js78 function addMathJaxGraph(graph) argument
83 MathJax.Hub.Queue(['Typeset', MathJax.Hub, graph.container]);
87 mathJaxQueue.push(graph.container);
91 graph.addListener(mxEvent.SIZE, function(sender, evt)
95 MathJax.Hub.Queue(['Typeset', MathJax.Hub, graph.container]);
156 var graph = new Graph(container);
200 graph.resetViewOnRootChange = false;
201 graph.setEnabled(false);
208 var graphGetGlobalVariable = graph.getGlobalVariable;
210 graph.getGlobalVariable = function(name)
[all …]
Dexport.js26 var graph = new Graph(container);
54 graph.gridSize = extras.grid.size;
55 graph.view.gridSteps = extras.grid.steps;
95 return graph;
135 graph.globalVars = extras.globalVars;
141 var graphGetLinkForCell = graph.getLinkForCell;
143 graph.getLinkForCell = function(cell)
158 var cellRendererRedrawLabelShape = graph.cellRenderer.redrawLabelShape;
160 graph.cellRenderer.redrawLabelShape = function(shape)
172 if (href != null && graph.isCustomLink(href))
[all …]

12345678