@zklogic/draw.io
Version:
Draw.IO - Graph Editor integration in Angular-cli
1 lines • 6.16 kB
JavaScript
Sidebar.prototype.addFlowchartPalette=function(){var e=100,t=100,a="strokeWidth=2;html=1;shape=mxgraph.flowchart.",r=mxConstants.STYLE_VERTICAL_LABEL_POSITION+"=bottom;"+mxConstants.STYLE_VERTICAL_ALIGN+"=top;html=1;shape=mxgraph.flowchart.",n=mxConstants.STYLE_VERTICAL_LABEL_POSITION+"=bottom;"+mxConstants.STYLE_VERTICAL_ALIGN+"=top;html=1;shape=",l="mxgraph.flowchart",i="";this.setCurrentSearchEntryLibrary("flowchart"),this.addPaletteFunctions("flowchart",mxResources.get("flowchart"),!1,[this.createVertexTemplateEntry(a+"annotation_1;align=left;pointerEvents=1;",50,t,"","Annotation",null,null,this.getTagsForStencil(l,"annotation_1",i).join(" ")),this.createVertexTemplateEntry(a+"annotation_2;align=left;labelPosition=right;pointerEvents=1;",50,t,"","Annotation",null,null,this.getTagsForStencil(l,"annotation_2",i).join(" ")),this.createVertexTemplateEntry(n+"card;whiteSpace=wrap;size=20;arcSize=12;",e,60,"","Card",null,null,this.getTagsForStencil(l,"card",i).join(" ")),this.createVertexTemplateEntry(r+"collate;",e,t,"","Collate",null,null,this.getTagsForStencil(l,"collate",i).join(" ")),this.createVertexTemplateEntry("shape=parallelogram;html=1;strokeWidth=2;perimeter=parallelogramPerimeter;whiteSpace=wrap;rounded=1;arcSize=12;size=0.23;",e,60,"","Data",null,null,this.getTagsForStencil(l,"data",i).join(" ")),this.createVertexTemplateEntry(a+"database;whiteSpace=wrap;",60,60,"","Database",null,null,this.getTagsForStencil(l,"database",i).join(" ")),this.createVertexTemplateEntry(a+"decision;whiteSpace=wrap;",e,t,"","Decision",null,null,this.getTagsForStencil(l,"decision",i).join(" ")),this.createVertexTemplateEntry(a+"delay;whiteSpace=wrap;",e,60,"","Delay",null,null,this.getTagsForStencil(l,"delay",i).join(" ")),this.createVertexTemplateEntry(a+"direct_data;whiteSpace=wrap;",e,60,"","Direct Data",null,null,this.getTagsForStencil(l,"direct_data",i).join(" ")),this.createVertexTemplateEntry(a+"display;whiteSpace=wrap;",e,60,"","Display",null,null,this.getTagsForStencil(l,"display",i).join(" ")),this.createVertexTemplateEntry(a+"document2;whiteSpace=wrap;size=0.25;",e,60,"","Document",null,null,this.getTagsForStencil(l,"document",i).join(" ")),this.createVertexTemplateEntry(a+"extract_or_measurement;whiteSpace=wrap;",95,60,"","Extract or Measurement",null,null,this.getTagsForStencil(l,"extract_or_measurement",i).join(" ")),this.createVertexTemplateEntry("shape=internalStorage;whiteSpace=wrap;html=1;dx=15;dy=15;rounded=1;arcSize=8;strokeWidth=2;",70,70,"","Internal Storage",null,null,this.getTagsForStencil(l,"internal_storage",i).join(" ")),this.createVertexTemplateEntry(a+"loop_limit;whiteSpace=wrap;",e,60,"","Loop Limit",null,null,this.getTagsForStencil(l,"loop_limit",i).join(" ")),this.createVertexTemplateEntry("html=1;strokeWidth=2;shape=manualInput;whiteSpace=wrap;rounded=1;size=26;arcSize=11;",e,60,"","Manual Input",null,null,this.getTagsForStencil(l,"manual_input",i).join(" ")),this.createVertexTemplateEntry("verticalLabelPosition=middle;verticalAlign=middle;html=1;shape=trapezoid;perimeter=trapezoidPerimeter;whiteSpace=wrap;size=0.23;arcSize=10;flipV=1;labelPosition=center;align=center;",e,60,"","Manual Operation",null,null,this.getTagsForStencil(l,"manual_operation",i).join(" ")),this.createVertexTemplateEntry(a+"merge_or_storage;whiteSpace=wrap;",95,60,"","Merge or Storage",null,null,this.getTagsForStencil(l,"merge_or_storage",i).join(" ")),this.createVertexTemplateEntry(a+"multi-document;whiteSpace=wrap;",88,60,"","Multi-Document",null,null,this.getTagsForStencil(l,"multi-document",i).join(" ")),this.createVertexTemplateEntry(n+"offPageConnector;rounded=0;size=0.5;",60,60,"","Off-Page Reference",null,null,this.getTagsForStencil(l,"off-page_reference",i).join(" ")),this.createVertexTemplateEntry(r+"on-page_reference;",60,60,"","On-Page Reference",null,null,this.getTagsForStencil(l,"on-page_reference",i).join(" ")),this.createVertexTemplateEntry(r+"summing_function;",70,70,"","Or",null,null,this.getTagsForStencil(l,"summing_function",i).join(" ")),this.createVertexTemplateEntry("shape=tape;whiteSpace=wrap;html=1;strokeWidth=2;size=0.19",e,65,"","Tape",null,null,this.getTagsForStencil(l,"tape",i).join(" ")),this.createVertexTemplateEntry(r+"parallel_mode;pointerEvents=1",95,40,"","Parallel Mode",null,null,this.getTagsForStencil(l,"parallel_mode",i).join(" ")),this.createVertexTemplateEntry(n+"process;whiteSpace=wrap;rounded=1;size=0.14;arcSize=6;",e,60,"","Predefined Process",null,null,this.getTagsForStencil(l,"predefined_process",i).join(" ")),this.createVertexTemplateEntry(n+"hexagon;perimeter=hexagonPerimeter2;arcSize=6;size=0.27;",e,60,"","Preparation",null,null,this.getTagsForStencil(l,"preparation",i).join(" ")),this.createVertexTemplateEntry("rounded=1;whiteSpace=wrap;html=1;absoluteArcSize=1;arcSize=14;strokeWidth=2;",e,t,"","Process",null,null,this.getTagsForStencil(l,"process",i).join(" ")),this.createVertexTemplateEntry(a+"sequential_data;whiteSpace=wrap;",e,t,"","Sequential Data",null,null,this.getTagsForStencil(l,"sequential_data",i).join(" ")),this.createVertexTemplateEntry(r+"sort;",e,t,"","Sort",null,null,this.getTagsForStencil(l,"sort",i).join(" ")),this.createVertexTemplateEntry(a+"start_1;whiteSpace=wrap;",e,60,"","Start",null,null,this.getTagsForStencil(l,"start_1",i).join(" ")),this.createVertexTemplateEntry(a+"start_2;whiteSpace=wrap;",e,t,"","Start",null,null,this.getTagsForStencil(l,"start_2",i).join(" ")),this.createVertexTemplateEntry(a+"stored_data;whiteSpace=wrap;",e,60,"","Stored Data",null,null,this.getTagsForStencil(l,"stored_data",i).join(" ")),this.createVertexTemplateEntry(r+"or;",70,70,"","Summing Junction",null,null,this.getTagsForStencil(l,"or",i).join(" ")),this.createVertexTemplateEntry(a+"terminator;whiteSpace=wrap;",e,60,"","Terminator",null,null,this.getTagsForStencil(l,"terminator",i).join(" ")),this.createVertexTemplateEntry(mxConstants.STYLE_VERTICAL_LABEL_POSITION+"=bottom;"+mxConstants.STYLE_VERTICAL_ALIGN+"=top;html=1;strokeWidth=2;shape=mxgraph.arrows2.arrow;dy=0.6;dx=40;notch=0;",e,70,"","Transfer",null,null,this.getTagsForStencil(l,"transfer",i).join(" "))]),this.setCurrentSearchEntryLibrary()};