| /plugin/diagramsnet/lib/js/diagramly/ |
| D | DevTools.js | 21 … tip += 'source=' + parseFloat(geo.sourcePoint.x) + ',' + parseFloat(geo.sourcePoint.y) + '<br>'; 26 … tip += 'target=' + parseFloat(geo.targetPoint.x) + ',' + parseFloat(geo.targetPoint.y) + '<br>'; 29 var state = this.view.getState(cell); 37 … tip += parseFloat(state.absolutePoints[i].x) + ',' + parseFloat(state.absolutePoints[i].y) + ';'; 48 tip += parseFloat(geo.points[i].x) + ',' + parseFloat(geo.points[i].y) + ';'; 54 // tip += 'pos=' + this.view.formatUnitText(parseFloat(geo.x)) + ',' + this.view.formatUnitText… 55 // 'size=' + this.view.formatUnitText(parseFloat(geo.width)) + 'x' + this.view.formatUnitText(… 56 tip += 'x/y=' + parseFloat(geo.x) + ',' + parseFloat(geo.y) + '<br>' + 57 'w/h=' + parseFloat(geo.width) + 'x' + parseFloat(geo.height); 61 tip += '<br>pos=' + parseFloat(state.x) + ',' + parseFloat(state.y) + '<br>' + [all …]
|
| D | mxFreehand.js | 4 …var svgElement = (graph.view != null && graph.view.canvas != null) ? graph.view.canvas.ownerSVGEle… 17 //Code inspired by https://stackoverflow.com/questions/40324313/svg-smooth-freehand-drawing 131 …var maxX = drawPoints[0].x, minX = drawPoints[0].x, maxY = drawPoints[0].y, minY = drawPoints[0].y; 137 maxX = Math.max(maxX, drawPoints[i].x); 138 minX = Math.min(minX, drawPoints[i].x); 143 var w = maxX - minX, h = maxY - minY; 154 p.x = (p.x - minX) * xScale; 155 p.y = (p.y - minY) * yScale; 171 var startP = drawPoints[start], endP = drawPoints[i - 1]; 175 var xdiff = startP.x - endP.x, ydiff = startP.y - endP.y; [all …]
|
| D | Trees.js | 2 * Copyright (c) 2006-2017, JGraph Ltd 3 * Copyright (c) 2006-2017, Gaudenz Alder 180 var pstate = graph.view.getState(parent); 196 var pstate = graph.view.getState(parent); 198 var state = graph.view.getState(parent); 264 }, null, null, 'Alt+Shift+X'); 420 ui.hoverIcons.getStateAt = function(state, x, y) argument 422 return (isTreeVertex(state.cell)) ? null : this.graph.view.getState(this.graph.getCellAt(x, y)); 435 var state = graph.view.getState(cell); 506 // Applies distance between previous and current parent for non-sidebar drags [all …]
|
| D | P2PCollab.js | 5 …xMidYMid meet"><g transform="translate(0.000000,1024.000000) scale(0.100000,-0.100000)" stroke="n… 6 …-4940 568 567 c1170 1168 1637 1627 1644 1613 4 -7 242 -579 529 -1271 286 -693 523 -1262 527 -1266 … 52 var tr = graph.view.translate; 53 var s = graph.view.scale; 54 sendMessage('cursor', {x: me.graphX / s - tr.x, y: me.graphY / s - tr.y}); property 100 var tr = graph.view.translate; 101 var s = graph.view.scale; 105 msgData.x = (tr.x + msgData.x) * s - container.scrollLeft + offset.x; 106 msgData.y = (tr.y + msgData.y) * s - container.scrollTop + offset.y; 108 cursor.style.left = msgData.x + 'px';
|
| D | Pages.js | 2 * Copyright (c) 2006-2016, JGraph Ltd 3 * Copyright (c) 2006-2016, Gaudenz Alder 6 * Constructs a new point for the optional x and y coordinates. If no 7 * coordinates are given, then the default values for <x> and <y> are used. 10 * @param {number} x X-coordinate of the point. 11 * @param {number} y Y-coordinate of the point. 41 * Holds the view state for the page. 130 * Action to change the current root in a view. 134 * Constructs a change of the current root in the given view. 183 // mxUtils.setPrefixedStyle(graph.view.canvas.style, 'transition', null); [all …]
|
| /plugin/diagramsnet/lib/plugins/webcola/ |
| D | mxWebColaLayout.js | 2 * Copyright (c) 2006-2018, JGraph Ltd 3 * Copyright (c) 2006-2018, Gaudenz Alder 8 * Extends <mxGraphLayout> to implement a WebCola-based layout. 19 * Constructs a new WebCola-based layout for the graph. 23 * graph - <mxGraph> that contains the cells. 28 * Constructs a WebCola-based layout 45 * Runs re-layouting of the portion of a graph from a given starting cell 75 // first, get all incidental edges in a sub-tree (or a connected component if with loops) 108 var view = graph.getView(); 115 var state = view.getState(cell); [all …]
|
| /plugin/diagramsnet/lib/js/ |
| D | export.js | 2 navigator.userAgent.toLowerCase().indexOf(' electron/') > -1; 55 graph.view.gridSteps = extras.grid.steps; 74 data.xml = data.xml.substring(11, data.xml.length - 12); 88 ipcRenderer.send('render-finished', null); 116 …ipcRenderer.send('xml-data', mxUtils.getXml(editorUi.getXmlFileData(null, null, data.uncompressed)… 120 ipcRenderer.send('xml-data-error'); 192 if (--waitCounter < 1) 203 doneDiv.setAttribute('page-id', pageId); 215 ipcRenderer.on('get-svg-data', (event, arg) => 242 …ipcRenderer.send('svg-data', '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Gr… [all …]
|
| D | viewer.min.js | 4 …-"),f=.01+c/d*100,g=Math.max(1-(1-a)/b*(100-f),a),h=j.substring(0,j.indexOf("Animation")).toLowerC… 6 … allow "word-break: break-word" in styles. It is done by adding "break-word" which is at index 55 … 7 …-content. Add possible values to J array below ["flex-start,flex-end,center,space-between,space-ar… 8 // Added support for flex-direction (next J index is 83) 9 // Added support for align-items (next J index is 84) 11 …-scroll,col-resize,crosshair,default,e-resize,hand,help,move,n-resize,ne-resize,no-drop,not-allowe… 12 …-condensed,extra-expanded,narrower,semi-condensed,semi-expanded,ultra-condensed,ultra-expanded,wid… 13 …-in,ease-in-out,ease-out,linear,step-end,step-start".split(","),"at,closest-corner,closest-side,el… 14 …-through","overline","underline"],["block","flex","grid","table"],["high","low","x-high","x-low"],… 15 …-3d"],["hide","show"],["horizontal","vertical"],["inside","outside"],["italic","oblique"],["left",… [all …]
|
| /plugin/diagramsnet/lib/plugins/ |
| D | edgeConnection.js | 8 // Uses the first non-relative source 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) - 37 this.graph.snap(point.x)) <= tol) 39 geo.x = sourceState.x; 41 else if (Math.abs(this.graph.snap(this.first.y) -
|
| D | update.js | 4 * update-url and update-interval URL parameters may be used instead.) 13 * <view ...> 22 * - An optional value attribute that contains XML markup is used as the value for 30 * - An optional replace-value attribute that contains 1 can be specified to 35 * - An optional style attribute that contains the cell style is used to replace 40 * - An optional icon attribute that contains JSON is used to add an icon to the 51 * - An optional geometry attribute that contains a JSON mxGeometry object can be used 56 * Example: JSON.stringify({dx: (Math.random() * 100) - 50, dh: (Math.random() * 100) - 50})) 58 * - Additionally a model node may be specified to set the current graph model. 62 * - A view node may be specified with a scale, dx and dy attribute to change the current [all …]
|
| /plugin/sequencediagram/bower_components/lodash/vendor/backbone/test/ |
| D | view.js | 3 var view; 5 QUnit.module('Backbone.View', { 8 $('#qunit-fixture').append( 12 view = new Backbone.View({ 13 id: 'test-view', 14 className: 'test-view', 15 other: 'non-special-option' 21 $('#test-view').remove(); 28 assert.equal(view.el.id, 'test-view'); 29 assert.equal(view.el.className, 'test-view'); [all …]
|
| /plugin/diagramsnet/lib/mxgraph/ |
| D | mxClient.js | 6 …-8");e.setAttribute("type","text/css");d&&e.setAttribute("id",d);c.getElementsByTagName("head")[0]… 7 …th?("/"==mxBasePath.substring(mxBasePath.length-1)&&(mxBasePath=mxBasePath.substring(0,mxBasePath.… 8 …asePath.substring(mxImageBasePath.length-1)&&(mxImageBasePath=mxImageBasePath.substring(0,mxImageB… 10 …ion(){if(null==mxLog.window&&null!=document.body){var a=mxLog.consoleName+" - mxGraph "+mxClient.V… 13 …cument.body.clientWidth);mxLog.window=new mxWindow(a,b,Math.max(0,d-320),Math.max(0,c-210),300,160… 14 …ment(),a=function(a,b){mxLog.textarea.style.height=Math.max(0,f.offsetHeight-70)+"px"};mxLog.windo… 15 …)},leave:function(a,b){if(mxLog.TRACE){var c=0!=b?" ("+((new Date).getTime()-b)+" ms)":"";mxLog.wr… 16 …){for(var a="",b=0;b<arguments.length;b++)a+=arguments[b],b<arguments.length-1&&(a+=" ");null!=mxL… 17 "",b=0;b<arguments.length;b++)a+=arguments[b],b<arguments.length-1&&(a+=" ");mxLog.write(a+"\n")}},… 20 …if(null==mxClient.languages||!this.isLanguageSupported(b)){var c=b.indexOf("-");0<c&&(b=b.substrin… [all …]
|
| /plugin/diagramsnet/lib/js/grapheditor/ |
| D | Graph.js | 2 * Copyright (c) 2006-2012, JGraph Ltd 5 // see https://code.google.com/p/google-caja/issues/detail?can=2&q=&colspec=ID%20Type%20Status%20Pr… 61 + '-' + pad( this.getUTCMonth() + 1 ) 62 + '-' + pad( this.getUTCDate() ) 82 …tps://stackoverflow.com/questions/36810940/alternative-or-polyfill-for-array-from-on-the-internet-… 93 return (number > 0 ? 1 : -1) * Math.floor(Math.abs(number)); 95 var maxSafeInteger = Math.pow(2, 53) - 1; 111 throw new TypeError("Array.from requires an array-like object - not null or undefined"); 141 // 17. Repeat, while k < len… (also steps a - h) 188 mxGraph.prototype.pageFormat = (lang === 'en-us' || lang === 'en-ca' || lang === 'es-mx') ? [all …]
|
| D | EditorUi.js | 2 * Copyright (c) 2006-2012, JGraph Ltd 28 var t = this.view.translate; 29 var s = this.view.scale; 33 (t.x + img.x) * s, (t.y + img.y) * s, 46 // Pre-fetches submenu image or replaces with embedded image if supported 56 // Pre-fetches connect image 97 var state = graph.view.getState(cell); 376 // And uses built-in context menu while editing 421 // Improves line wrapping for in-place editor 422 if (mxClient.IS_SVG && graph.view.getDrawPane() != null) [all …]
|
| D | Sidebar.js | 2 * Copyright (c) 2006-2012, JGraph Ltd 47 if (Date.now() - this.lastCreated > 300 && (this.tooltipCloseImage == null || 200 if (urlParams['sidebar-entries'] != 'large') 238 * are lazy-loaded when the palette is shown. 269 Math.min(bottom - height - 20 /*status bar*/, Math.max(0, (this.editorUi.container.offsetTop + 270 this.container.offsetTop + elt.offsetTop - this.container.scrollTop - height / 2 + 16)))); 287 this.tooltip.style.zIndex = mxPopupMenu.prototype.zIndex - 1; 332 this.graph2.view.canvas.style.position = 'relative'; 355 this.graph2.view.setTranslate(this.tooltipBorder, this.tooltipBorder); 359 …this.graph2.view.scale = Math.round(Math.min(this.maxTooltipWidth / w, this.maxTooltipHeight / h) … [all …]
|
| D | Editor.js | 2 * Copyright (c) 2006-2012, JGraph Ltd 62 * Counts open editor tabs (must be global for cross-window access) 66 // Cross-domain window access is not allowed in FF, so if we 76 // Workaround for possible infinite loop in FF https://drawio.atlassian.net/browse/DS-795 98 …efaultHtmlFont = '-apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", system-ui, u… 173 …{val: 'zigzag', dispName: 'ZigZag'}, {val: 'cross-hatch', dispName: 'Cross Hatch'}, {val: 'dots', … 174 {val: 'dashed', dispName: 'Dashed'}, {val: 'zigzag-line', dispName: 'ZigZag Line'}]; 312 * Specifies the top spacing for the initial page view. Default is 0. 448 this.graph.currentTranslate.x = 0; 451 this.graph.view.setScale(1); [all …]
|
| D | Shapes.js | 2 * Copyright (c) 2006-2015, JGraph Ltd 11 function paintTableBackground(state, c, x, y, w, h, r) argument 15 var graph = state.view.graph; 53 c.moveTo(x + geo.x, y + start.y); 55 if (r > 0 && i == cols.length - 1) 57 c.lineTo(x + geo.x + geo.width - r, y); 58 c.quadTo(x + geo.x + geo.width, y, x + geo.x + geo.width, y + r); 59 c.lineTo(x + geo.x + geo.width, y + h - r); 60 c.quadTo(x + geo.x + geo.width, y + h, x + geo.x + geo.width - r, y + h); 64 c.lineTo(x + geo.x + geo.width, y + start.y); [all …]
|
| /plugin/diagramsnet/lib/plugins/trees/ |
| D | trees.js | 5 * - Make cursor key selection more generic 6 * - Handle single-cell movement on touch 7 * - Move multiple cells without subtrees 8 * - Make offset subtrees more generic 91 }, null, null, 'Alt+Shift+X'); 249 ui.hoverIcons.getStateAt = function(state, x, y) argument 251 return (isTreeCell(state.cell)) ? null : this.graph.view.getState(this.graph.getCellAt(x, y)); 264 var state = graph.view.getState(cell); 334 // Applies distance between previous and current parent for non-sidebar drags 335 if (newSource != null && target == null && this.view.getState(cells[0]) != null) [all …]
|
| /plugin/panoview/ |
| H A D | script.js | 18 * <div class="well"><!-- --></div> 19 * <div class="surface"><!-- --></div> 22 * <a href="#" class="zoomOut">-</a> 28 * that have scrolled out of view. 30 * The "surface" node is the transparent mouse-responsive layer of the 36 * <meta http-equiv="imagetoolbar" content="no" /> 38 * Copyright (c) 2005 Michal Migurski <mike-gsv@teczno.com> 59 * @author Michal Migurski <mike-gsv@teczno.com> 62 * NOTE: if artifacts are appearing, then positions include half-pixels 89 … this.zoomLevel = (typeof options.initialZoom == 'undefined' ? -1 : parseInt(options.initialZoom)); [all …]
|
| /plugin/indexmenu/scripts/ |
| D | contextmenu.js | 15 * - PLEASE EDIT ONLY the scripts/contextmenu.local.js file 16 * - DON'T EDIT this file, it is overwritten at plugin update 22 * indexmenu_contextmenu['all']['pg']['view'] = [...array with menu description here... ]; 24 * indexmenu_contextmenu['all']['ns']['view'] = [ ... ]; 27 * indexmenu_contextmenu['pg']['view'] = [ ... ]; 28 * indexmenu_contextmenu['ns']['view'] = [ ... ]; 31 * indexmenu_contextmenu['pg']['view'] = [ ... ]; 32 * indexmenu_contextmenu['ns']['view'] = [ ... ]; 35 * - section title: array with one entry e.g.: 37 * - menu action: array with two entries e.g.: [all …]
|
| /plugin/dw2pdf/vendor/setasign/fpdi/src/Tcpdf/ |
| D | Fpdi.php | 56 $this->cleanUp(); 66 return $this->templateId++; 72 … one of the size parameters (width, height) to calculate the other one automatically in view to the 76 …* @param float|int|array $x The abscissa of upper-left corner. Alternatively you could use an asso… 77 * with the keys "x", "y", "width", "height", "adjustPageSize". 78 * @param float|int $y The ordinate of upper-left corner. 85 …public function useTemplate($tpl, $x = 0, $y = 0, $width = null, $height = null, $adjustPageSize =… argument 87 return $this->useImportedPage($tpl, $x, $y, $width, $height, $adjustPageSize); 93 … one of the size parameters (width, height) to calculate the other one automatically in view to the 97 …* @param float|int|array $x The abscissa of upper-left corner. Alternatively you could use an asso… [all …]
|
| /plugin/sequencediagram/bower_components/lodash/doc/ |
| D | README.md | 3 <!-- div class="toc-container" --> 5 <!-- div --> 8 * <a href="#_chunkarray-size1">`_.chunk`</a> 10 * <a href="#_concatarray-values">`_.concat`</a> 11 * <a href="#_differencearray-values">`_.difference`</a> 12 * <a href="#_differencebyarray-values-iteratee_identity">`_.differenceBy`</a> 13 * <a href="#_differencewitharray-values-comparator">`_.differenceWith`</a> 14 * <a href="#_droparray-n1">`_.drop`</a> 15 * <a href="#_droprightarray-n1">`_.dropRight`</a> 16 * <a href="#_droprightwhilearray-predicate_identity">`_.dropRightWhile`</a> [all …]
|
| /plugin/jdraw/src/com/mxgraph/examples/swing/editor/ |
| D | SchemaGraphComponent.java | 11 import com.mxgraph.view.mxCellState; 12 import com.mxgraph.view.mxGraph; 13 import com.mxgraph.view.mxGraphView; 21 private static final long serialVersionUID = -1152655782652932774L; 50 - end.getCenterX()) in SchemaGraphComponent() 51 - start.getWidth() / 2 - end.getWidth() / 2; in SchemaGraphComponent() 59 double x = (left) ? start.getX() : start.getX() in SchemaGraphComponent() 61 double x2 = (left) ? start.getX() - 20 : start.getX() in SchemaGraphComponent() 65 : edge.getAbsolutePointCount() - 1; in SchemaGraphComponent() 69 : edge.getAbsolutePointCount() - 1; in SchemaGraphComponent() [all …]
|
| /plugin/dw2pdf/vendor/setasign/fpdi/src/ |
| D | Fpdi.php | 7 * @license http://opensource.org/licenses/mit-license The MIT License 38 $this->cleanUp(); 44 … one of the size parameters (width, height) to calculate the other one automatically in view to the 48 …* @param float|int|array $x The abscissa of upper-left corner. Alternatively you could use an asso… 49 * with the keys "x", "y", "width", "height", "adjustPageSize". 50 * @param float|int $y The ordinate of upper-left corner. 57 …public function useTemplate($tpl, $x = 0, $y = 0, $width = null, $height = null, $adjustPageSize =… argument 59 if (isset($this->importedPages[$tpl])) { 60 $size = $this->useImportedPage($tpl, $x, $y, $width, $height, $adjustPageSize); 61 if ($this->currentTemplateId !== null) { [all …]
|
| /plugin/dw2pdf/vendor/setasign/fpdi/src/Tfpdf/ |
| D | Fpdi.php | 7 * @license http://opensource.org/licenses/mit-license The MIT License 39 $this->cleanUp(); 45 … one of the size parameters (width, height) to calculate the other one automatically in view to the 49 …* @param float|int|array $x The abscissa of upper-left corner. Alternatively you could use an asso… 50 * with the keys "x", "y", "width", "height", "adjustPageSize". 51 * @param float|int $y The ordinate of upper-left corner. 58 …public function useTemplate($tpl, $x = 0, $y = 0, $width = null, $height = null, $adjustPageSize =… argument 60 if (isset($this->importedPages[$tpl])) { 61 $size = $this->useImportedPage($tpl, $x, $y, $width, $height, $adjustPageSize); 62 if ($this->currentTemplateId !== null) { [all …]
|