| /plugin/diagramsnet/lib/js/diagramly/ |
| D | TrelloClient.js | 12 mxUtils.extend(TrelloClient, DrawioClient); 42 var callback = mxUtils.bind(this, function(remember, success) 104 var callback = mxUtils.bind(this, function() 109 var timeoutThread = window.setTimeout(mxUtils.bind(this, function() 115 Trello.cards.get(ids[0] + '/attachments/' + ids[1], mxUtils.bind(this, function(meta) 139 timeoutThread = window.setTimeout(mxUtils.bind(this, function() 145 …this.ui.editor.loadUrl(PROXY_URL + '?url=' + encodeURIComponent(meta.url), mxUtils.bind(this, func… 179 }), mxUtils.bind(this, function(err, req) 198 }), mxUtils.bind(this, function(err) 234 var callback = mxUtils.bind(this, function() [all …]
|
| D | DropboxClient.js | 19 mxUtils.extend(DropboxClient, DrawioClient); 57 this.client.authTokenRevoke().then(mxUtils.bind(this, function() 70 var timeoutThread = window.setTimeout(mxUtils.bind(this, function() 77 promise.then(mxUtils.bind(this, function(response) 89 promise['catch'](mxUtils.bind(this, function(err) 101 this.authenticate(mxUtils.bind(this, function() 121 req.send(mxUtils.bind(this, function(req) 138 var auth = mxUtils.bind(this, function() 148 req.send(mxUtils.bind(this, function(req) 177 this.ui.showAuthDialog(this, true, mxUtils.bind(this, function(remember, authSuccess) [all …]
|
| D | GitLabClient.js | 17 mxUtils.extend(GitLabClient, GitHubClient); 53 req.send(mxUtils.bind(this, function(req) 70 var auth = mxUtils.bind(this, function() 80 req.send(mxUtils.bind(this, function(req) 109 this.ui.showAuthDialog(this, true, mxUtils.bind(this, function(remember, authSuccess) 119 window.onGitLabCallback = mxUtils.bind(this, function(newAuthInfo, authWindow) 165 }), mxUtils.bind(this, function() 190 var doExecute = mxUtils.bind(this, function(failOnAuth) 194 var timeoutThread = window.setTimeout(mxUtils.bind(this, function() 209 req.send(mxUtils.bind(this, function() [all …]
|
| D | GitHubClient.js | 17 mxUtils.extend(GitHubClient, DrawioClient); 67 var timeoutThread = window.setTimeout(mxUtils.bind(this, function() 81 userReq.send(mxUtils.bind(this, function() 93 this.authenticate(mxUtils.bind(this, function() 131 req.send(mxUtils.bind(this, function(req) 148 var auth = mxUtils.bind(this, function() 153 this.ui.showAuthDialog(this, true, mxUtils.bind(this, function(remember, authSuccess) 162 window.onGitHubCallback = mxUtils.bind(this, function(newAuthInfo, authWindow) 208 }), mxUtils.bind(this, function() 254 var doExecute = mxUtils.bind(this, function(failOnAuth) [all …]
|
| D | NotionClient.js | 18 mxUtils.extend(NotionClient, DrawioClient); 73 var errFn = mxUtils.bind(this, function() 78 error({message: mxResources.get('accessDenied'), retry: mxUtils.bind(this, function() 86 var auth = mxUtils.bind(this, function() 90 this.ui.showAuthDialog(this, true, mxUtils.bind(this, function(remember, authSuccess) 93 mxResources.get('ok'), mxUtils.bind(this, function(token) 99 this.executeRequest('/v1/databases', null, 'GET', mxUtils.bind(this, function() 101 this.executeRequest('/setToken', null, 'GET', mxUtils.bind(this, function() 136 var doExecute = mxUtils.bind(this, function() 140 var timeoutThread = window.setTimeout(mxUtils.bind(this, function() [all …]
|
| D | App.js | 23 window.onunload = mxUtils.bind(this, function() 56 this.editor.addListener('autosaveChanged', mxUtils.bind(this, function() 80 window.openWindow = mxUtils.bind(this, function(url, pre, fallback) 114 window.showOpenAlert = mxUtils.bind(this, function(message) 155 window.Draw.loadPlugin = mxUtils.bind(this, function(callback) 169 setTimeout(mxUtils.bind(this, function() 404 var cookie = mxUtils.trim(cookies[i]); 645 var content = mxUtils.getTextContent(scripts[0]); 657 var content = mxUtils.getTextContent(scripts[scripts.length - 1]); 763 …if (local || mxUtils.confirm(mxResources.replacePlaceholders(warning, [plugins.join('\n')]).replac… [all …]
|
| D | DrawioFileSync.js | 17 this.onlineListener = mxUtils.bind(this, function() 30 this.visibleListener = mxUtils.bind(this, function() 48 this.activityListener = mxUtils.bind(this, function(evt) 65 this.pusherErrorListener = mxUtils.bind(this, function(err) 75 this.connectionListener = mxUtils.bind(this, function() 93 mxUtils.post(EditorUi.cacheUrl, this.getIdParameters() + 108 this.changeListener = mxUtils.bind(this, function(data) 127 this.file.redirectToNewApp(mxUtils.bind(this, function() 171 mxUtils.extend(DrawioFileSync, mxEventSource); 282 window.setTimeout(mxUtils.bind(this, function() [all …]
|
| D | LocalFile.js | 22 mxUtils.extend(LocalFile, DrawioFile); 170 var done = mxUtils.bind(this, function() 181 var doSave = mxUtils.bind(this, function(data) 191 var errorWrapper = mxUtils.bind(this, function(e) 205 this.fileHandle.createWritable().then(mxUtils.bind(this, function(writable) 207 this.fileHandle.getFile().then(mxUtils.bind(this, function(newDesc) 213 …writable.write((binary) ? this.ui.base64ToBlob(data, 'image/png') : data).then(mxUtils.bind(this, … 215 writable.close().then(mxUtils.bind(this, function() 217 this.fileHandle.getFile().then(mxUtils.bind(this, function(desc) 242 }), mxUtils.bind(this, function(e) [all …]
|
| D | DriveFile.js | 13 mxUtils.extend(DriveFile, DrawioFile); 77 mxUtils.bind(this, function(resp) 94 }), mxUtils.bind(this, function() 150 DrawioFile.prototype.save.apply(this, [revision, mxUtils.bind(this, function() 180 this.createSecret(mxUtils.bind(this, function(secret, token) 182 var doSave = mxUtils.bind(this, function(realOverwrite, realRevision) 188 this.ui.drive.saveFile(this, realRevision, mxUtils.bind(this, function(resp, savedData) 216 this.fileSaved(savedData, lastDesc, mxUtils.bind(this, function() 249 }), mxUtils.bind(this, function(err, desc) 263 this.sync.fileConflict(desc, mxUtils.bind(this, function() [all …]
|
| D | GitHubFile.js | 14 mxUtils.extend(GitHubFile, DrawioFile); 62 mxUtils.get(this.meta.download_url, mxUtils.bind(this, function(req) 65 }), mxUtils.bind(this, function() 210 DrawioFile.prototype.save.apply(this, [null, mxUtils.bind(this, function() 234 var doSave = mxUtils.bind(this, function(message) 248 this.peer.saveFile(this, mxUtils.bind(this, function(etag) 255 this.fileSaved(savedData, savedEtag, mxUtils.bind(this, function() 265 mxUtils.bind(this, function(err) 307 this.ui.pickFolder(this.getMode(), mxUtils.bind(this, function(folderId) 309 this.peer.insertFile(title, this.getData(), mxUtils.bind(this, function(file) [all …]
|
| D | DrawioFile.js | 65 mxUtils.extend(DrawioFile, mxEventSource); 235 this.getLatestVersion(mxUtils.bind(this, function(latestFile) 286 this.ui.getPagesForNode(mxUtils.parseXml( 291 mxUtils.parseXml(file.data). 414 var enc = new mxCodec(mxUtils.createXmlDocument()); 439 return mxUtils.getPrettyXml(file); 493 var fn = mxUtils.bind(this, function(file) 500 mxUtils.parseXml(file.data).documentElement)), 25000) : 'n/a'; 513 this.getLatestVersion(mxUtils.bind(this, function(file) 615 var fn = mxUtils.bind(this, function() [all …]
|
| D | Dialogs.js | 34 mxUtils.br(container); 61 mxUtils.write(label, title); 98 mxUtils.br(label); 99 mxUtils.write(label, labels[i]); 115 editorUi.drive.checkToken(mxUtils.bind(this, function() 125 editorUi.oneDrive.checkToken(mxUtils.bind(this, function() 144 mxUtils.setOpacity(label, 10); 173 editorUi.addListener('clientLoaded', mxUtils.bind(this, function(sender, evt) 178 mxUtils.setOpacity(label, 100); 200 mxUtils.write(hd, mxResources.get('saveDiagramsTo') + ':'); [all …]
|
| D | EditorUi.js | 243 mxUtils.post('/email', 'version=' + encodeURIComponent(EditorUi.VERSION) + 675 mxUtils.setPrefixedStyle(status.style, 'borderRadius', '6px'); 676 mxUtils.setPrefixedStyle(status.style, 'transform', 'translate(-50%,-50%)'); 680 mxUtils.setPrefixedStyle(status.style, 'boxShadow', '2px 2px 3px 0px #ddd'); 695 this.pause = mxUtils.bind(this, function() 701 fn = mxUtils.bind(this, function() 749 var doc = mxUtils.parseXml(data); 939 var doc = mxUtils.parseXml(data); 942 result = (node != null) ? mxUtils.getXml(node) : ''; 983 var node = (data != null && data.length > 0) ? mxUtils.parseXml(data).documentElement : null; [all …]
|
| D | DropboxFile.js | 13 mxUtils.extend(DropboxFile, DrawioFile); 101 promise.then(mxUtils.bind(this, function(resp) 109 (mxUtils.bind(this, function(stat) 112 getXml: mxUtils.bind(this, function(itemSuccess, itemError) 116 }), getUrl: mxUtils.bind(this, function(page) 190 DrawioFile.prototype.save.apply(this, [null, mxUtils.bind(this, function() 214 var fn = mxUtils.bind(this, function(checked) 225 var doSave = mxUtils.bind(this, function(data) 230 this.ui.dropbox.saveFile(title, data, mxUtils.bind(this, function(stat) 242 }), mxUtils.bind(this, function(err) [all …]
|
| D | GraphViewer.js | 14 mxUtils.extend(GraphViewer, mxEventSource); 139 this.zoomEnabled = mxUtils.indexOf(this.toolbarItems, 'zoom') >= 0; 140 this.layersEnabled = mxUtils.indexOf(this.toolbarItems, 'layers') >= 0; 141 this.tagsEnabled = mxUtils.indexOf(this.toolbarItems, 'tags') >= 0; 142 this.lightboxEnabled = mxUtils.indexOf(this.toolbarItems, 'lightbox') >= 0; 163 this.xml = mxUtils.getXml(xmlNode); 167 var render = mxUtils.bind(this, function() 246 this.xml = mxUtils.getXml(this.xmlNode); 317 this.currentPage = mxUtils.mod(number, this.diagrams.length); 334 var update = mxUtils.bind(this, function() [all …]
|
| /plugin/diagramsnet/lib/plugins/ |
| D | rackF5.js | 23 mxUtils.extend(mxRackF5BigIp1600, mxShape); 39 var hasEars = mxUtils.getValue(this.style, 'hasEars', '1'); 40 var isFront = mxUtils.getValue(this.style, 'isFront', '0'); 41 var isDC = mxUtils.getValue(this.style, 'isDC', '0'); 42 var psNum = parseInt(mxUtils.getValue(this.style, 'psNum', '2')); 43 var stencilPath = mxUtils.getValue(this.style, 'path', 'img/lib/f5/'); 101 mxUtils.extend(mxRackF5BigIp2x00, mxShape); 117 var hasEars = mxUtils.getValue(this.style, 'hasEars', '1'); 118 var isFront = mxUtils.getValue(this.style, 'isFront', '0'); 119 var isDC = mxUtils.getValue(this.style, 'isDC', '0'); [all …]
|
| /plugin/diagramsnet/lib/shapes/ |
| D | mxArrows.js | 27 mxUtils.extend(mxShapeArrows2Arrow, mxActor); 50 …var dy = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy))… 51 var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); 52 …var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))… 53 var headCrossline = mxUtils.getValue(this.style, 'headCrossline', false); 54 var tailCrossline = mxUtils.getValue(this.style, 'tailCrossline', false); 89 if (mxUtils.getValue(this.style, 'boundedLbl', false)) 97 if (mxUtils.getValue(this.style, 'flipH', false)) 105 if (mxUtils.getValue(this.style, 'flipV', false)) 116 dy = w * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); [all …]
|
| D | mxAWS4.js | 24 mxUtils.extend(mxShapeAws4ProductIcon, mxShape); 39 var opacity = parseFloat(mxUtils.getValue(this.style, 'opacity', '100')); 54 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', 'none'); 66 var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#ffffff'); 67 var gradientColor = mxUtils.getValue(this.state.style, 'gradientColor', fillColor); 68 var gradientDir = mxUtils.getValue(this.state.style, 'gradientDirection', 'south'); 82 var prIcon = mxUtils.getValue(this.state.style, 'prIcon', ''); 115 mxUtils.extend(mxShapeAws4ResourceIcon, mxShape); 140 var prIcon = mxUtils.getValue(this.state.style, 'resIcon', ''); 145 var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); [all …]
|
| D | mxAndroid.js | 24 mxUtils.extend(mxShapeAndroidTabBar, mxShape); 44 …var textStrings = mxUtils.getValue(this.style, mxShapeAndroidTabBar.prototype.cst.MAIN_TEXT, '+Tab… 45 …var fontColor = mxUtils.getValue(this.style, mxShapeAndroidTabBar.prototype.cst.TEXT_COLOR, 'none'… 46 …var selectedFontColor = mxUtils.getValue(this.style, mxShapeAndroidTabBar.prototype.cst.TEXT_COLOR… 47 …var fontSize = mxUtils.getValue(this.style, mxShapeAndroidTabBar.prototype.cst.TEXT_SIZE, '17').to… 48 var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, 'none'); 49 …var separatorColor = mxUtils.getValue(this.style, mxShapeAndroidTabBar.prototype.cst.STROKE_COLOR2… 50 var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, 'none'); 51 …var selectedFillColor = mxUtils.getValue(this.style, mxShapeAndroidTabBar.prototype.cst.FILL_COLOR… 68 …buttonWidths[i] = mxUtils.getSizeForString(buttonText, fontSize, mxConstants.DEFAULT_FONTFAMILY).w… [all …]
|
| /plugin/diagramsnet/lib/js/grapheditor/ |
| D | Menus.js | 48 var isGraphEnabled = mxUtils.bind(graph, graph.isEnabled); 53 this.put('fontFamily', new Menu(mxUtils.bind(this, function(menu, parent) 55 var addItem = mxUtils.bind(this, function(fontFamily) 98 menu.addItem(mxResources.get('reset'), null, mxUtils.bind(this, function() 107 …onstants.DEFAULT_FONTFAMILY, mxConstants.STYLE_FONTFAMILY, parent, true, mxUtils.bind(this, functi… 109 if (mxUtils.indexOf(this.customFonts, newValue) < 0) 116 this.put('formatBlock', new Menu(mxUtils.bind(this, function(menu, parent) 120 return menu.addItem(label, null, mxUtils.bind(this, function() 143 this.put('fontSize', new Menu(mxUtils.bind(this, function(menu, parent) 147 if (mxUtils.indexOf(sizes, this.defaultFontSize) < 0) [all …]
|
| D | Dialogs.js | 96 var addPresets = mxUtils.bind(this, function(presets, rowLength, defaultColor, addResetOption) 115 (mxUtils.bind(this, function(clr) 213 div.appendChild(mxUtils.button('...', function() 237 mxUtils.br(div); 254 var cancelBtn = mxUtils.button(mxResources.get('cancel'), function() 270 var applyBtn = mxUtils.button(mxResources.get('apply'), doApply); 340 return mxUtils.bind(this, function(color) 370 mxUtils.remove(color, ColorDialog.recentColors); 396 mxUtils.write(h3, mxResources.get('about') + ' GraphEditor'); 404 mxUtils.br(div); [all …]
|
| D | EditorUi.js | 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( [all …]
|
| D | Shapes.js | 25 events = mxUtils.getValue(this.style, mxConstants.STYLE_POINTER_EVENTS, '1') == '1'; 33 var evenRowColor = mxUtils.getValue(state.style, 35 var oddRowColor = mxUtils.getValue(state.style, 37 var evenColColor = mxUtils.getValue(state.style, 39 var oddColColor = mxUtils.getValue(state.style, 46 var clr = (mxUtils.mod(i, 2) == 1) ? evenColColor : oddColColor; 77 var clr = (mxUtils.mod(i, 2) == 1) ? evenRowColor : oddRowColor; 116 mxUtils.extend(TableShape, mxSwimlane); 186 var rowLines = mxUtils.getValue(this.state.style, 188 var columnLines = mxUtils.getValue(this.state.style, [all …]
|
| /plugin/diagramsnet/lib/shapes/ios7/ |
| D | mxIOS7Ui.js | 61 mxUtils.extend(mxShapeIOS7AppBar, mxShape); 88 c.setFillColor(mxUtils.getValue(this.style, mxIOS7C.STYLE_FILLCOLOR2, '#222222')); 166 mxUtils.extend(mxShapeIOS7OnOffButton, mxShape); 186 var state = mxUtils.getValue(this.style, mxIOS7C.BUTTON_STATE, mxIOS7C.STATE_ON); 201 c.setStrokeColor(mxUtils.getValue(this.style, mxIOS7C.STYLE_STROKECOLOR2, '#aaaaaa')); 202 c.setFillColor(mxUtils.getValue(this.style, mxIOS7C.STYLE_FILLCOLOR2, '#ffffff')); 246 mxUtils.extend(mxShapeIOS7Slider, mxShape); 272 var barPos = mxUtils.getValue(this.style, mxIOS7C.BAR_POS, '80'); 279 c.setStrokeColor(mxUtils.getValue(this.style, mxIOS7C.STYLE_STROKECOLOR2, '#a0a0a0')); 290 …var barPos = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'barPos', thi… [all …]
|
| /plugin/diagramsnet/lib/shapes/mockup/ |
| D | mxMockupText.js | 24 mxUtils.extend(mxShapeMockupLink, mxShape); 40 var linkText = mxUtils.getValue(this.style, mxShapeMockupLink.prototype.cst.LINK_TEXT, 'Link'); 41 var textSize = mxUtils.getValue(this.style, mxShapeMockupLink.prototype.cst.TEXT_SIZE, '17'); 42 …var textColor = mxUtils.getValue(this.style, mxShapeMockupLink.prototype.cst.TEXT_COLOR, '#0000ff'… 45 var width = mxUtils.getSizeForString(linkText, textSize, mxConstants.DEFAULT_FONTFAMILY).width; 78 mxUtils.extend(mxShapeMockupLinkBar, mxShape); 98 …var textStrings = mxUtils.getValue(this.style, mxShapeMockupLinkBar.prototype.cst.MAIN_TEXT, '+But… 99 …var fontColor = mxUtils.getValue(this.style, mxShapeMockupLinkBar.prototype.cst.TEXT_COLOR, '#6666… 100 …var selectedFontColor = mxUtils.getValue(this.style, mxShapeMockupLinkBar.prototype.cst.TEXT_COLOR… 101 …var fontSize = mxUtils.getValue(this.style, mxShapeMockupLinkBar.prototype.cst.TEXT_SIZE, '17').to… [all …]
|