UNPKG

@zklogic/draw.io

Version:

Draw.IO - Graph Editor integration in Angular-cli

1 lines 5.54 kB
Sidebar.prototype.addDFDPalette=function(){var e=100,t="html=1;dashed=0;whitespace=wrap;shape=mxgraph.dfd.",r=(mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.STYLE_VERTICAL_ALIGN,"mxgraph.flowchart"),a="dfd data flow diagram ";this.setCurrentSearchEntryLibrary("dfd"),this.addPaletteFunctions("dfd","Data Flow Diagram",!1,[this.createVertexTemplateEntry(t+"start",80,30,"","Start / End",null,null,this.getTagsForStencil(r,"start end",a).join(" ")),this.createVertexTemplateEntry("html=1;dashed=0;whitespace=wrap;",e,50,"","Activity / Process / Entity / External Interactor",null,null,this.getTagsForStencil(r,"activity process entity external interactor",a).join(" ")),this.createVertexTemplateEntry("shape=rhombus;html=1;dashed=0;whitespace=wrap;perimeter=rhombusPerimeter;",60,50,"","Decision / Entity Relationship",null,null,this.getTagsForStencil(r,"decision entity relationship",a).join(" ")),this.createVertexTemplateEntry("shape=ellipse;html=1;dashed=0;whitespace=wrap;aspect=fixed;perimeter=ellipsePerimeter;",30,30,"","Reference",null,null,this.getTagsForStencil(r,"reference",a).join(" ")),this.createVertexTemplateEntry("shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;dashed=0;",e,50,"","Product / Result",null,null,this.getTagsForStencil(r,"product result",a).join(" ")),this.createVertexTemplateEntry("shape=manualInput;whiteSpace=wrap;html=1;dashed=0;size=15;",e,50,"","Order / Command",null,null,this.getTagsForStencil(r,"order command",a).join(" ")),this.createVertexTemplateEntry("shape=document;whiteSpace=wrap;html=1;boundedLbl=1;dashed=0;flipH=1;",e,70,"","Information / Data Carrier / SOP",null,null,this.getTagsForStencil(r,"information data carrier sop",a).join(" ")),this.createVertexTemplateEntry("triangle;whiteSpace=wrap;html=1;dashed=0;direction=south;",60,60,"","Information/Data Carrier/SOP / Stop State",null,null,this.getTagsForStencil(r,"information data carrier sop",a).join(" ")),this.createVertexTemplateEntry(t+"archive",60,60,"","Final Report / Archive",null,null,this.getTagsForStencil(r,"final report archive",a).join(" ")),this.createVertexTemplateEntry("shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;size=0.25",e,50,"","Check",null,null,this.getTagsForStencil(r,"check",a).join(" ")),this.createVertexTemplateEntry(t+"check2",e,50,"","Check 2",null,null,this.getTagsForStencil(r,"check",a).join(" ")),this.createVertexTemplateEntry("shape=ellipse;html=1;dashed=0;whitespace=wrap;perimeter=ellipsePerimeter;",30,30,"","Data Process",null,null,this.getTagsForStencil(r,"data process",a).join(" ")),this.createVertexTemplateEntry("shape=ellipse;html=1;dashed=0;whitespace=wrap;aspect=fixed;perimeter=ellipsePerimeter;",60,60,"","Data Process / State",null,null,this.getTagsForStencil(r,"data process",a).join(" ")),this.createVertexTemplateEntry("ellipse;shape=doubleEllipse;html=1;dashed=0;whitespace=wrap;aspect=fixed;",60,60,"","Multiple Process / Start State / Multi State",null,null,this.getTagsForStencil(r,"multiple process start state multi",a).join(" ")),this.createVertexTemplateEntry("shape=ellipse;html=1;dashed=0;whitespace=wrap;aspect=fixed;strokeWidth=5;perimeter=ellipsePerimeter;",60,60,"","Stop State",null,null,this.getTagsForStencil(r,"stop state",a).join(" ")),this.createVertexTemplateEntry("html=1;dashed=0;whitespace=wrap;shape=partialRectangle;right=0;left=0;",e,30,"","Data Store",null,null,this.getTagsForStencil(r,"data store",a).join(" ")),this.createVertexTemplateEntry("html=1;dashed=0;whitespace=wrap;shape=partialRectangle;right=0;",e,30,"","Data Store",null,null,this.getTagsForStencil(r,"data store",a).join(" ")),this.createVertexTemplateEntry(t+"dataStoreID;align=left;spacingLeft=3;points=[[0,0],[0.5,0],[1,0],[0,0.5],[1,0.5],[0,1],[0.5,1],[1,1]];",e,30,"","Data Store with ID",null,null,this.getTagsForStencil(r,"data store with id identification",a).join(" ")),this.createVertexTemplateEntry("swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=20;fillColor=#ffffff;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;swimlaneFillColor=#ffffff;",e,50,"","Entity",null,null,this.getTagsForStencil(r,"entity",a).join(" ")),this.createVertexTemplateEntry("shape=cloud;whiteSpace=wrap;html=1;",120,120,"","Object",null,null,this.getTagsForStencil(r,"object",a).join(" ")),this.createVertexTemplateEntry("shape=ellipse;html=1;dashed=0;whitespace=wrap;perimeter=ellipsePerimeter;",e,50,"","Oval Process",null,null,this.getTagsForStencil(r,"oval process",a).join(" ")),this.createVertexTemplateEntry("shape=cylinder;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;",60,80,"","Data Store",null,null,this.getTagsForStencil(r,"data store",a).join(" ")),this.addEntry(a+"external entity",(function(){var r=new mxCell("",new mxGeometry(0,0,e,100),t+"externalEntity");r.vertex=!0;var a=new mxCell("Id",new mxGeometry(0,0,20,20),"autosize=1;part=1;resizable=0;strokeColor=inherit;fillColor=inherit;gradientColor=inherit;");return a.geometry.relative=!0,a.geometry.offset=new mxPoint(15,15),a.vertex=!0,r.insert(a),sb.createVertexTemplateFromCells([r],r.geometry.width,r.geometry.height,"External Entity")})),this.createVertexTemplateEntry(t+"loop",80,30,"","Loop",null,null,this.getTagsForStencil(r,"loop",a).join(" ")),this.createEdgeTemplateEntry("endArrow=classic;html=1;",50,50,"","Directional Connector",null,a+"directional directed")]),this.setCurrentSearchEntryLibrary()};