@zklogic/draw.io
Version:
Draw.IO - Graph Editor integration in Angular-cli
1 lines • 11.4 kB
JavaScript
Sidebar.prototype.addArchiMatePalette=function(){var e=100,t=75,l="html=1;outlineConnect=0;whiteSpace=wrap;fillColor=#ffff99;shape=mxgraph.archimate.",i="html=1;outlineConnect=0;whiteSpace=wrap;fillColor=#99ffff;shape=mxgraph.archimate.",n="html=1;outlineConnect=0;whiteSpace=wrap;fillColor=#99ff99;shape=mxgraph.archimate.",a="html=1;outlineConnect=0;whiteSpace=wrap;fillColor=#ffccff;shape=mxgraph.archimate.",r="html=1;outlineConnect=0;whiteSpace=wrap;fillColor=#ccccff;shape=mxgraph.archimate.",s="html=1;outlineConnect=0;whiteSpace=wrap;fillColor=#ffe0e0;shape=mxgraph.archimate.",o="mxgraph.archimate",c="archimate ";this.setCurrentSearchEntryLibrary("archimate"),this.addPaletteFunctions("archimate",mxResources.get("archiMate21"),!1,[this.createVertexTemplateEntry(l+"application;appType=actor",e,t,"","Business Actor",null,null,this.getTagsForStencil(o,"application",c+"business actor").join(" ")),this.createVertexTemplateEntry(l+"application;appType=role",e,t,"","Business Role",null,null,this.getTagsForStencil(o,"",c+"business role").join(" ")),this.createVertexTemplateEntry(l+"application;appType=collab",e,t,"","Business Collaboration",null,null,this.getTagsForStencil(o,"",c+"business collaboration").join(" ")),this.createVertexTemplateEntry(l+"application;appType=interface",e,t,"","Business Interface",null,null,this.getTagsForStencil(o,"",c+"business interface").join(" ")),this.createVertexTemplateEntry(l+"application;appType=interface2",e,t,"","Business Interface",null,null,this.getTagsForStencil(o,"",c+"business interface").join(" ")),this.createVertexTemplateEntry(l+"location",e,t,"","Location",null,null,this.getTagsForStencil(o,"",c+"location").join(" ")),this.createVertexTemplateEntry(l+"business;busType=process",e,t,"","Business Process",null,null,this.getTagsForStencil(o,"",c+"business process").join(" ")),this.createVertexTemplateEntry(l+"business;busType=function",e,t,"","Business Function",null,null,this.getTagsForStencil(o,"",c+"business function").join(" ")),this.createVertexTemplateEntry(l+"business;busType=interaction",e,t,"","Business Interaction",null,null,this.getTagsForStencil(o,"",c+"business interaction").join(" ")),this.createVertexTemplateEntry(l+"business;busType=event",e,t,"","Business Event",null,null,this.getTagsForStencil(o,"",c+"business event").join(" ")),this.createVertexTemplateEntry(l+"business;busType=service",e,t,"","Business Service",null,null,this.getTagsForStencil(o,"",c+"business service").join(" ")),this.createVertexTemplateEntry(l+"businessObject;overflow=fill",e,t,'<table cellpadding="0" cellspacing="0" style="font-size:1em;width:100%;height:100%;"><tr style="height:20px;"><td align="center"></td></tr><tr><td align="left" valign="top" style="padding:4px;"></td></tr></table>',"Business Object",null,null,this.getTagsForStencil(o,"",c+"business object").join(" ")),this.createVertexTemplateEntry(l+"representation",e,t,"","Representation",null,null,this.getTagsForStencil(o,"",c+"representation").join(" ")),this.createVertexTemplateEntry("fillColor=#ffff99;whiteSpace=wrap;shape=cloud;html=1;",e,t,"","Meaning",null,null,this.getTagsForStencil(o,"",c+"meaning").join(" ")),this.createVertexTemplateEntry("fillColor=#ffff99;whiteSpace=wrap;shape=ellipse;html=1;",e,56.25,"","Value",null,null,this.getTagsForStencil(o,"",c+"value").join(" ")),this.createVertexTemplateEntry(l+"product;overflow=fill",e,t,'<table cellpadding="0" cellspacing="0" style="font-size:1em;width:100%;height:100%;"><tr style="height:20px;"><td align="left"></td></tr><tr><td align="left" valign="top" style="padding:4px;"></td></tr></table>',"Product",null,null,this.getTagsForStencil(o,"",c+"product").join(" ")),this.createVertexTemplateEntry(l+"businessObject;overflow=fill",e,t,'<table cellpadding="0" cellspacing="0" style="font-size:1em;width:100%;height:100%;"><tr style="height:20px;"><td align="center"></td></tr><tr><td align="left" valign="top" style="padding:4px;"></td></tr></table>',"Contract",null,null,this.getTagsForStencil(o,"",c+"contract").join(" ")),this.createVertexTemplateEntry(i+"application;appType=comp",e,t,"","Application Component",null,null,this.getTagsForStencil(o,"",c+"application component").join(" ")),this.createVertexTemplateEntry(i+"application;appType=collab",e,t,"","Application Collaboration",null,null,this.getTagsForStencil(o,"",c+"application collaboration").join(" ")),this.createVertexTemplateEntry(i+"application;appType=interface",e,t,"","Application Interface",null,null,this.getTagsForStencil(o,"",c+"application interface").join(" ")),this.createVertexTemplateEntry(i+"application;appType=interface2",e,t,"","Application Interface",null,null,this.getTagsForStencil(o,"",c+"application interface").join(" ")),this.createVertexTemplateEntry(i+"application;appType=function",e,t,"","Application Function",null,null,this.getTagsForStencil(o,"",c+"application function").join(" ")),this.createVertexTemplateEntry(i+"application;appType=interaction",e,t,"","Application Interaction",null,null,this.getTagsForStencil(o,"",c+"application interaction").join(" ")),this.createVertexTemplateEntry(i+"application;appType=service",e,t,"","Application Service",null,null,this.getTagsForStencil(o,"",c+"application service").join(" ")),this.createVertexTemplateEntry(i+"businessObject;overflow=fill",e,t,'<table cellpadding="0" cellspacing="0" style="font-size:1em;width:100%;height:100%;"><tr style="height:20px;"><td align="center"></td></tr><tr><td align="left" valign="top" style="padding:4px;"></td></tr></table>',"Data Object",null,null,this.getTagsForStencil(o,"",c+"data object").join(" ")),this.createVertexTemplateEntry(n+"application;appType=node",e,t,"","Node",null,null,this.getTagsForStencil(o,"",c+"node").join(" ")),this.createVertexTemplateEntry(n+"tech;techType=device",e,t,"","Device",null,null,this.getTagsForStencil(o,"",c+"device").join(" ")),this.createVertexTemplateEntry(n+"application;appType=network",e,t,"","Network",null,null,this.getTagsForStencil(o,"",c+"network").join(" ")),this.createVertexTemplateEntry(n+"application;appType=commPath",e,t,"","Communications Path",null,null,this.getTagsForStencil(o,"",c+"communications path").join(" ")),this.createVertexTemplateEntry(n+"application;appType=interface",e,t,"","Infrastructure Interface",null,null,this.getTagsForStencil(o,"",c+"infrastructure interface").join(" ")),this.createVertexTemplateEntry(n+"application;appType=interface2",e,t,"","Infrastructure Interface",null,null,this.getTagsForStencil(o,"",c+"infrastructure interface").join(" ")),this.createVertexTemplateEntry(n+"application;appType=sysSw",e,t,"","System Software",null,null,this.getTagsForStencil(o,"",c+"system software").join(" ")),this.createVertexTemplateEntry(n+"business;busType=function",e,t,"","Infrastructure Function",null,null,this.getTagsForStencil(o,"",c+"infraastructure function").join(" ")),this.createVertexTemplateEntry(n+"business;busType=service",e,t,"","Infrastructure Service",null,null,this.getTagsForStencil(o,"",c+"infrastructure service").join(" ")),this.createVertexTemplateEntry(n+"application;appType=artifact",e,t,"","Artifact",null,null,this.getTagsForStencil(o,"",c+"artifact").join(" ")),this.createEdgeTemplateEntry("edgeStyle=elbowEdgeStyle;html=1;endArrow=none;elbow=vertical",e,t,"","Association",null,this.getTagsForStencil(o,"",c+"association").join(" ")),this.createEdgeTemplateEntry("edgeStyle=elbowEdgeStyle;html=1;endArrow=open;elbow=vertical;endFill=1;dashed=1",e,t,"","Access",null,this.getTagsForStencil(o,"",c+"access").join(" ")),this.createEdgeTemplateEntry("edgeStyle=elbowEdgeStyle;html=1;endArrow=none;elbow=vertical;endFill=0;dashed=1",e,t,"","Access",null,this.getTagsForStencil(o,"",c+"access").join(" ")),this.createEdgeTemplateEntry("edgeStyle=elbowEdgeStyle;html=1;endArrow=open;elbow=vertical;endFill=1",e,t,"","Used by",null,this.getTagsForStencil(o,"",c+"used by").join(" ")),this.createEdgeTemplateEntry("edgeStyle=elbowEdgeStyle;html=1;endArrow=block;elbow=vertical;endFill=0;dashed=1",e,t,"","Realization",null,this.getTagsForStencil(o,"",c+"realization").join(" ")),this.createEdgeTemplateEntry("endArrow=oval;html=1;endFill=1;startArrow=oval;startFill=1;edgeStyle=elbowEdgeStyle;elbow=vertical",e,t,"","Assignment",null,this.getTagsForStencil(o,"",c+"assignment").join(" ")),this.createEdgeTemplateEntry("endArrow=none;html=1;endFill=0;startArrow=diamondThin;startFill=0;edgeStyle=elbowEdgeStyle;elbow=vertical",e,t,"","Aggregation",null,this.getTagsForStencil(o,"",c+"aggregation").join(" ")),this.createEdgeTemplateEntry("endArrow=none;html=1;endFill=0;startArrow=diamondThin;startFill=1;edgeStyle=elbowEdgeStyle;elbow=vertical",e,t,"","Composition",null,this.getTagsForStencil(o,"",c+"composition").join(" ")),this.createEdgeTemplateEntry("endArrow=block;html=1;endFill=1;startArrow=none;startFill=0;edgeStyle=elbowEdgeStyle;elbow=vertical;dashed=1",e,t,"","A",null,this.getTagsForStencil(o,"",c).join(" ")),this.createEdgeTemplateEntry("endArrow=block;html=1;endFill=1;startArrow=none;startFill=0;edgeStyle=elbowEdgeStyle;elbow=vertical;dashed=1",e,t,"","Flow",null,this.getTagsForStencil(o,"",c+"flow").join(" ")),this.createEdgeTemplateEntry("endArrow=block;html=1;endFill=1;startArrow=none;startFill=0;edgeStyle=elbowEdgeStyle;elbow=vertical;dashed=0",e,t,"","Triggering",null,this.getTagsForStencil(o,"",c+"triggering").join(" ")),this.createVertexTemplateEntry("swimlane;html=1;fillColor=#ffffff;whiteSpace=wrap",e,t,"","Grouping",null,this.getTagsForStencil(o,"",c+"grouping").join(" ")),this.createVertexTemplateEntry("ellipse;html=1;verticalLabelPosition=bottom;labelBackgroundColor=#ffffff;verticalAlign=top;fillColor=#000000",10,10,"","Junction",null,this.getTagsForStencil(o,"",c+"junction").join(" ")),this.createEdgeTemplateEntry("endArrow=block;html=1;endFill=0;edgeStyle=elbowEdgeStyle;elbow=vertical",e,t,"","Specialization",null,this.getTagsForStencil(o,"",c+"specialization").join(" ")),this.createVertexTemplateEntry(a+"motiv;motivType=stake",e,t,"","Stakeholder",null,null,this.getTagsForStencil(o,"",c+"stakeholder").join(" ")),this.createVertexTemplateEntry(a+"motiv;motivType=driver",e,t,"","Driver",null,null,this.getTagsForStencil(o,"",c+"driver").join(" ")),this.createVertexTemplateEntry(a+"motiv;motivType=assess",e,t,"","Assessment",null,null,this.getTagsForStencil(o,"",c+"assesment").join(" ")),this.createVertexTemplateEntry(r+"motiv;motivType=goal",e,t,"","Goal",null,null,this.getTagsForStencil(o,"",c+"goal").join(" ")),this.createVertexTemplateEntry(r+"motiv;motivType=req",e,t,"","Requirement",null,null,this.getTagsForStencil(o,"",c+"goal").join(" ")),this.createVertexTemplateEntry(r+"motiv;motivType=const",e,t,"","Constraint",null,null,this.getTagsForStencil(o,"",c+"constraint").join(" ")),this.createVertexTemplateEntry(r+"motiv;motivType=princ",e,t,"","Principle",null,null,this.getTagsForStencil(o,"",c+"principle").join(" ")),this.createVertexTemplateEntry(s+"rounded=1",e,t,"","Work Package",null,null,this.getTagsForStencil(o,"",c+"work package").join(" ")),this.createVertexTemplateEntry(s+"representation",e,t,"","Deliverable",null,null,this.getTagsForStencil(o,"",c+"deliverable").join(" ")),this.createVertexTemplateEntry(n+"tech;techType=plateau",e,t,"","Plateau",null,null,this.getTagsForStencil(o,"",c+"plateau").join(" ")),this.createVertexTemplateEntry(n+"gap",e,t,"","Gap",null,null,this.getTagsForStencil(o,"",c+"gap").join(" "))]),this.setCurrentSearchEntryLibrary()};