Lines Matching refs:put

256 …on(a){a=mxObjectIdentity.get(a);return this.map[a]};mxDictionary.prototype.put=function(a,b){var c…  method in mxDictionary
292 …ar b=new mxDictionary,c=[],d=0;d<a.length;d++)b.get(a[d])||(c.push(a[d]),b.put(a[d],!0));return c}…
312 …xCellPath.PATH_SEPARATOR),c.put(a,d));var g=c.get(e);null==g&&(g=mxCellPath.create(e).split(mxCell…
777 …){if(null!=c&&null!=a&&(b=null!=b?b:!0,e=e||new mxDictionary,!e.get(a)&&(e.put(a,!0),d=c(a,d),null…
811 …RATOR),c.put(d,g));var d=e.getTerminal(e.getTerminal(!1)==a),k=c.get(d);null==k&&(k=mxCellPath.cre…
873 …,e=0;e<b.length;e++){c[e]=new mxGraphHierarchyNode(b[e]);this.vertexMapper.put(b[e],c[e]);var f=a.…
874 new mxGraphHierarchyEdge(l),m=0;m<l.length;m++){var n=l[m];this.edgeMapper.put(n,k);d.resetEdge(n);…
884 …,f=0;f<b.length;f++){c[f]=new mxGraphHierarchyNode(b[f]);this.vertexMapper.put(b[f],c[f]);c[f].swi…
885 …new mxGraphHierarchyEdge(m),n=0;n<m.length;n++){var p=m[n];this.edgeMapper.put(p,l);d.resetEdge(p)…
913 …e][f],k=new WeightedCellSorter(g,e);k.rankIndex=f;k.visited=!0;b.push(k);c.put(g,k)}}a=10*b.length…
950 …Ancestor(this.parent,e,this.traverseAncestors))))&&c.push(b[f]);this.edgesCache.put(a,c);return c};
951 …leTerminal(a,b));null!=e&&(this.isPort(e)&&(e=this.graph.model.getParent(e)),c.put(a,e));return e};
969 …Ancestor(e,this.parent,this.traverseAncestors))))&&c.push(b[f]);this.edgesCache.put(a,c);return c};
970 …leTerminal(a,b));null!=e&&(this.isPort(e)&&(e=this.graph.model.getParent(e)),c.put(a,e));return e};
997 …mostCells=function(a){for(var b=new mxDictionary,c=[],d=0;d<a.length;d++)b.put(a[d],!0);for(d=0;d<…
1006 …onary,d=0;d<a.length;d++){var e=this.getParent(a[d]);null==e||c.get(e)||(c.put(e,!0),b.push(e))}re…
1155 …isteners(a,b[d],e),null!=b[d].cursor&&(e.node.style.cursor=b[d].cursor));c.put(b[d],e)}null!=a.ove…
1276 …&&this.graph.isCellVisible(a)&&(null==c?(c=this.createState(a),this.states.put(a,c)):c.style=this.…
1312 …&&this.model.contains(a))if(this.model.isEdge(a)||this.model.isVertex(a))c.put(a,!0),d.push(a);els…
1365 …ar e=null;if(null!=a){for(var f=new mxDictionary,e=[],g=0;g<a.length;g++)f.put(a[g],!0),e.push(a[g…
1373 …xDictionary,e=0;e<a.length;e++)d.put(a[e],!0);for(e=0;e<c.length;e++)null!=this.view.getState(c[e]…
1375 …is.model.beginUpdate();try{for(var d=new mxDictionary,e=0;e<a.length;e++)d.put(a[e],!0);for(e=0;e<…
1376 …g),this.model.setTerminal(d,null,f))}}),k=0;k<f.length;k++)d.get(f[k])||(d.put(f[k],!0),g(f[k],!0)…
1399 …is.model.beginUpdate();try{for(var l=new mxDictionary,m=0;m<a.length;m++)l.put(a[m],!0);for(var n=…
1410 …es=function(a){if(null!=a){for(var b=new mxDictionary,c=0;c<a.length;c++)b.put(a[c],!0);this.model…
1426 …s.view.scale,c=this.view.translate,d=new mxDictionary,e=0;e<a.length;e++)d.put(a[e],!0);for(e=0;e<…
1504 …a[g],!1);l==b&&null!=k&&k!=b&&d?f.get(k)||(f.put(k,!0),e.push(k)):k==b&&null!=l&&l!=b&&c&&!f.get(l…
1510 …=null!=b?b:!0,f=null!=f?f:!1,e=e||new mxDictionary,null==d||!e.get(d))&&(e.put(d,!0),d=c(a,d),null…
1587 …deltas.get(a.cell);null==f?(f={point:new mxPoint(b,c),state:a},this.deltas.put(a.cell,f),this.coun…
1613 …r(b=0;b<a.length;b++)c=this.graph.view.getState(a[b]),null==c||g.get(c)||g.put(c,!0);this.guide.is…
1614 …n(a,b){var c=this.graph.view.getState(a),d=0;if(null!=c&&null==b.get(a)){b.put(a,c);d++;for(var c=…
1624 …=this.graph.view.getState(e.cell);f!=e&&(e.destroy(),null!=f?this.allCells.put(e.cell,f):this.allC…
1636 …&&this.removeEmptyParents){for(var k=new mxDictionary,l=0;l<a.length;l++)k.put(a[l],!0);for(l=0;l<…
1637 this.graph.model.getParent(a[l]);null==m||k.get(m)||(k.put(m,!0),g.push(m))}}a=this.graph.moveCells…
1670 …tive(e)||(null!=e.refresh&&e.refresh(),e.redraw()));null!=e&&this.handlers.put(b[c],e)}}a.visit(mx…
1671 …(d),this.fireEvent(new mxEventObject(mxEvent.ADD,"state",d)),this.handlers.put(b[c],e)):e.updatePa…
1672 …b.startY;b.destroy();b=this.graph.createHandler(a);null!=b&&(this.handlers.put(a.cell,b),null!=c&&…
2309 …r f=a.isTableCell(b[c])?a.model.getParent(b[c]):b[c];null==f||d.get(f)||(d.put(f,!0),e.push(f))}a.…
2375 …tries;a=[];for(var p=0;p<n.length;p++)if(l=n[p],0==h==(null==c.get(l))&&(m.put(l,l),a.push(l),g==f…
2576 …ctive(e)?this.isCellSelected(c.cell)||(this.selectionCellsHandler.handlers.put(c.cell,e),this.sele…
2584 …ected(b[e])?b[e]:this.graph.getCompositeParent(b[e]);null==f||c.get(f)||(c.put(f,!0),d.push(f))}re…
2780 null,b),d=new mxDictionary,e=0;e<a.length;e++)d.put(a[e],!0);for(var f=new mxCodec,g=new mxGraphMod…
2804 …ved=function(a){if(null!=a){for(var b=new mxDictionary,c=0;c<a.length;c++)b.put(a[c],!0);for(var d=
2805 [],c=0;c<a.length;c++){var e=this.model.getParent(a[c]);null==e||b.get(e)||(b.put(e,!0),d.push(e))}…
2829 …m,n,p,q){var J=null;if(null!=q)for(J=new mxDictionary,m=0;m<q.length;m++)J.put(q[m],!0);if(q=this.…
2879 …r.prototype.getHandledSelectionCells=function(){function a(a){c.get(a)||(c.put(a,!0),e.push(a))}fo…
3510 …ionCell())}catch(g){d.handleError(g)}},null,null,Editor.ctrlKey+"+D");this.put("turn",new Action(m…
3511 null!=a?mxEvent.isShiftDown(a):!1)},null,null,Editor.ctrlKey+"+R"));this.put("selectConnections",ne…
3519put("insertImage",new Action(mxResources.get("image")+"...",function(){c.isEnabled()&&!c.isCellLoc…
3531 …c.view.scale,(c.container.scrollWidth-c.container.clientWidth)/2)}}));this.put("customZoom",new Ac…
3538 "/help"+a+".html")});var h=!1;this.put("about",new Action(mxResources.get("about")+" Graph Editor..…
3559 …ces.get(a)+"..."):f=mxResources.get(a);return this.put(a,new Action(f,b,d,e,c))};Actions.prototype…
3561 …Utils.bind(b,b.isEnabled);this.customFonts=[];this.customFontSizes=[];this.put("fontFamily",new Me…
3563 …s.editorUi.fireEvent(new mxEventObject("customFontsChanged")))}))})));this.put("formatBlock",new M…
3565 …rgin-bottom:0px;">'+mxResources.get("blockquote")+"</blockquote>"})));this.put("fontSize",new Menu…
3568 …k(a))}),null,function(){m=b.cellEditor.saveSelection();return!1})})));this.put("direction",new Men…
3569 …tants.STYLE_FLIPV,!1)},c);this.addMenuItems(a,["-","rotation"],c)})));this.put("align",new Menu(mx…
3570 …lign"),null,function(){b.alignCells(mxConstants.ALIGN_BOTTOM)},c)})));this.put("distribute",new Me…
3571 c)})));this.put("line",new Menu(mxUtils.bind(this,function(a,c){var d=b.view.getState(b.getSelectio…
3577 c,!0,null,!0).setAttribute("title",mxResources.get("simpleArrow")))})));this.put("layout",new Menu(…
3583put("navigation",new Menu(mxUtils.bind(this,function(a,b){this.addMenuItems(a,"home - exitGroup en…
3584 …isEnabled=d;this.put("insert",new Menu(mxUtils.bind(this,function(a,b){this.addMenuItems(a,["inser…
3585put("viewPanels",new Menu(mxUtils.bind(this,function(a,b){null!=this.editorUi.format&&this.addMenu…
3586put("file",new Menu(mxUtils.bind(this,function(a,b){this.addMenuItems(a,"new open - save saveAs - …
3587put("extras",new Menu(mxUtils.bind(this,function(a,b){this.addMenuItems(a,["copyConnect","collapse…
3738 C.put(c,e);e.style.overflow="hidden";e.style.position="relative";e.style.padding="4px";e.style.heig…
11795 …tainer,window.innerWidth,window.innerHeight,!0,!1,null,!1,!0)}});c.actions.put("insertTemplate",ne…
11798 …back(function(){return c.editor.graph.view.unit==mxConstants.METERS});this.put("units",new Menu(mx…
11800 …tainer,320,120,!0,!0);b.init()}).isEnabled=k;window.mxFreehand&&(c.actions.put("insertFreehand",ne…
11801 …rawing()))})).isEnabled=function(){return k()&&mxClient.IS_SVG});c.actions.put("exportXml",new Act…
11803put("exportUrl",new Action(mxResources.get("url")+"...",function(){c.showPublishLinkDialog(mxResou…
11805 ".html","html",f,"text/html")}))})})}));c.actions.put("exportPdf",new Action(mxResources.get("forma…
11817put("pageBackgroundImage",new Action(mxResources.get("backgroundImage")+"...",function(){if(!c.isO…
11818 …xportSvg(b/100,d,e,f,g,k,l,!m,!1,p,t,u,v)}),!0,null,"svg",!0)}));c.actions.put("exportPng",new Act…
11819 …adFile(d?"xmlpng":"png",null,null,b,null,null,e,f,g)}),!1,!0)}));c.actions.put("exportJpg",new Act…
11821put("shadowVisible",new Action(mxResources.get("shadow"),function(){g.setShadowVisible(!g.shadowVi…
11827 …"findWindow";return null!=this[b]&&this[b].window.isVisible()}));c.actions.put("exportVsdx",new Ac…
11831 …r,620,460,!0,!1);b.init()});if(mxClient.IS_CHROMEAPP||isLocalStorage){this.put("language",new Menu…
11841 …ddMenuItem(b,"runLayout",d,null,null,mxResources.get("apply")+"...")};this.put("help",new Menu(mxU…
11854 …show();mxLog.window.div.style.zIndex=mxPopupMenu.prototype.zIndex-2});this.put("testDevelop",new M…
11855 …ontainer,360,isLocalStorage?mxClient.IS_IOS?300:280:260,!0,!0)});c.actions.put("createShape",new A…
11856 640,480,!0,!1),b.init())})).isEnabled=k;c.actions.put("embedHtml",new Action(mxResources.get("html"…
11859 c.showDialog(e.container,450,240,!0,!0);e.init()}))})})}));c.actions.put("liveImage",new Action("Li…
11860put("embedImage",new Action(mxResources.get("image")+"...",function(){c.showEmbedImageDialog(funct…
11861 …image"),!0,"https://www.diagrams.net/doc/faq/embed-svg.html")}));c.actions.put("embedIframe",new A…
11862 …</iframe>');c.showDialog(p.container,450,240,!0,!0);p.init()})},!0)}));c.actions.put("embedNotion",
11863 …,!0));c.showDialog(l.container,450,240,!0,!0);l.init()})},!0)}));c.actions.put("publishLink",new A…
11869 …,mxResources.get("cancel"),mxResources.get("discardChanges")):b()}}));this.put("exportAs",new Menu…
11870 …rstChild.nextSibling.innerHTML=mxResources.get("advanced")+"...")})));this.put("importFrom",new Me…
11878 …;c.showDialog(b.container,300,80,!0,!0);b.init()},d))}))).isEnabled=k;this.put("theme",new Menu(mx…
11886put("publish",new Menu(mxUtils.bind(this,function(b,c){this.addMenuItems(b,["publishLink"],c)})));…
11887 …b=c.getCurrentFile();null!=b&&b.share()}catch(y){c.handleError(y)}}));this.put("embed",new Menu(mx…
11890put("insertText",new Action(mxResources.get("text"),function(){g.isEnabled()&&!g.isCellLocked(g.ge…
11891put("insertEllipse",new Action(mxResources.get("ellipse"),function(){g.isEnabled()&&!g.isCellLocke…
11892 …dSeparator(d):c.addInsertItem(b,d,mxResources.get(e[f])+"...",e[f])});this.put("insert",new Menu(m…
11893put("insertLayout",new Menu(mxUtils.bind(this,function(b,d){c.addInsertMenuItems(b,d,"horizontalFl…
11894put("openRecent",new Menu(function(b,d){var e=c.getRecent();if(null!=e){for(var f=0;f<e.length;f++…
11899 …ntainer,300,80,!0,!0);b.init()},d))}));Editor.enableCustomLibraries&&(this.put("newLibrary",new Me…
11903 "...",null,function(){c.showLibraryDialog(null,null,null,null,App.MODE_DEVICE)},d)})),this.put("ope…
11908 …(){c.showRemotelyStoredLibrary(mxResources.get("libraries"))},d))})));this.put("edit",new Menu(mxU…
11911 …s"],d);c.commentsSupported()&&c.menus.addMenuItems(b,["comments"],d)};this.put("view",new Menu(mxU…
11913 ["-","fullscreen"],d)})));this.put("extras",new Menu(mxUtils.bind(this,function(b,d){"1"==urlParams…
11916 …nnerHeight,!0,!1,null,!1,!0)}),this.addMenuItem(b,"templates",d))})));this.put("file",new Menu(mxU…
11923 this.previousExtFonts=c};this.put("fontFamily",new Menu(mxUtils.bind(this,function(d,e){for(var f=m…
12091put("toggleDarkMode",new Action(mxResources.get("dark"),function(b){c.setDarkMode(!Editor.darkMode…
12092put("togglePagesVisible",new Action(mxResources.get("pages"),function(b){c.setPagesVisible(!Editor…
12093put("formatSql",new Action(mxResources.get("formatSql")+"...",function(){var b=new ParseDialog(c,"…
12094put("plantUml",new Action(mxResources.get("plantUml")+"...",function(){var b=new ParseDialog(c,mxR…
12095put("editCell",new Menu(mxUtils.bind(this,function(b,c){var d=this.editorUi.editor.graph,e=d.getSe…
12099 …:"1"!=urlParams.noFileMenu&&c.menus.addMenuItems(b,["-","close"])})));this.put("save",new Menu(mxU…
12101put("exportAs",new Menu(mxUtils.bind(this,function(b,d){k.funct(b,d);mxClient.IS_CHROMEAPP||Editor…
12102put("importFrom",new Menu(mxUtils.bind(this,function(b,e){m.funct(b,e);this.addMenuItems(b,["editD…
12104 …s",d);this.addMenuItems(b,["-","fullscreen"],d);b.addSeparator(d)})));this.put("insertAdvanced",ne…
12106 …hDialog(c,e,f);c.showDialog(b.container,620,420,!0,!1);b.init()}),d)};this.put("insertLayout",new …