Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
liangzhen
/
framework-tools-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f3cc5597
authored
Dec 01, 2023
by
Thews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20231201wangwansu
1 parent
42d23ab0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
140 additions
and
140 deletions
public/drawio/js/diagramly/sidebar/Sidebar-ArchiMate.js
public/drawio/js/diagramly/sidebar/Sidebar-ArchiMate3.js
public/drawio/js/diagramly/sidebar/Sidebar.js
public/drawio/js/diagramly/sidebar/Sidebar-ArchiMate.js
View file @
f3cc559
...
@@ -17,136 +17,136 @@
...
@@ -17,136 +17,136 @@
var
dt
=
'archimate '
;
var
dt
=
'archimate '
;
this
.
setCurrentSearchEntryLibrary
(
'archimate'
);
this
.
setCurrentSearchEntryLibrary
(
'archimate'
);
//
this.addPaletteFunctions('archimate', mxResources.get('archiMate21'), false,
this
.
addPaletteFunctions
(
'archimate'
,
mxResources
.
get
(
'archiMate21'
),
false
,
//
[
[
//
this.createVertexTemplateEntry(am1 + 'application;appType=actor',
this
.
createVertexTemplateEntry
(
am1
+
'application;appType=actor'
,
//
w, h, '', 'Business Actor', null, null, this.getTagsForStencil(gn, 'application', dt + 'business actor').join(' ')),
w
,
h
,
''
,
'Business Actor'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
'application'
,
dt
+
'business actor'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am1 + 'application;appType=role',
this
.
createVertexTemplateEntry
(
am1
+
'application;appType=role'
,
//
w, h, '', 'Business Role', null, null, this.getTagsForStencil(gn, '', dt + 'business role').join(' ')),
w
,
h
,
''
,
'Business Role'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'business role'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am1 + 'application;appType=collab',
this
.
createVertexTemplateEntry
(
am1
+
'application;appType=collab'
,
//
w, h, '', 'Business Collaboration', null, null, this.getTagsForStencil(gn, '', dt + 'business collaboration').join(' ')),
w
,
h
,
''
,
'Business Collaboration'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'business collaboration'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am1 + 'application;appType=interface',
this
.
createVertexTemplateEntry
(
am1
+
'application;appType=interface'
,
//
w, h, '', 'Business Interface', null, null, this.getTagsForStencil(gn, '', dt + 'business interface').join(' ')),
w
,
h
,
''
,
'Business Interface'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'business interface'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am1 + 'application;appType=interface2',
this
.
createVertexTemplateEntry
(
am1
+
'application;appType=interface2'
,
//
w, h, '', 'Business Interface', null, null, this.getTagsForStencil(gn, '', dt + 'business interface').join(' ')),
w
,
h
,
''
,
'Business Interface'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'business interface'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am1 + 'location',
this
.
createVertexTemplateEntry
(
am1
+
'location'
,
//
w, h, '', 'Location', null, null, this.getTagsForStencil(gn, '', dt + 'location').join(' ')),
w
,
h
,
''
,
'Location'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'location'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am1 + 'business;busType=process',
this
.
createVertexTemplateEntry
(
am1
+
'business;busType=process'
,
//
w, h, '', 'Business Process', null, null, this.getTagsForStencil(gn, '', dt + 'business process').join(' ')),
w
,
h
,
''
,
'Business Process'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'business process'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am1 + 'business;busType=function',
this
.
createVertexTemplateEntry
(
am1
+
'business;busType=function'
,
//
w, h, '', 'Business Function', null, null, this.getTagsForStencil(gn, '', dt + 'business function').join(' ')),
w
,
h
,
''
,
'Business Function'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'business function'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am1 + 'business;busType=interaction',
this
.
createVertexTemplateEntry
(
am1
+
'business;busType=interaction'
,
//
w, h, '', 'Business Interaction', null, null, this.getTagsForStencil(gn, '', dt + 'business interaction').join(' ')),
w
,
h
,
''
,
'Business Interaction'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'business interaction'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am1 + 'business;busType=event',
this
.
createVertexTemplateEntry
(
am1
+
'business;busType=event'
,
//
w, h, '', 'Business Event', null, null, this.getTagsForStencil(gn, '', dt + 'business event').join(' ')),
w
,
h
,
''
,
'Business Event'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'business event'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am1 + 'business;busType=service',
this
.
createVertexTemplateEntry
(
am1
+
'business;busType=service'
,
//
w, h, '', 'Business Service', null, null, this.getTagsForStencil(gn, '', dt + 'business service').join(' ')),
w
,
h
,
''
,
'Business Service'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'business service'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am1 + 'businessObject;overflow=fill', w, h,
this
.
createVertexTemplateEntry
(
am1
+
'businessObject;overflow=fill'
,
w
,
h
,
//
'<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>',
'<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(gn, '', dt + 'business object').join(' ')),
'Business Object'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'business object'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am1 + 'representation',
this
.
createVertexTemplateEntry
(
am1
+
'representation'
,
//
w, h, '', 'Representation', null, null, this.getTagsForStencil(gn, '', dt + 'representation').join(' ')),
w
,
h
,
''
,
'Representation'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'representation'
).
join
(
' '
)),
//
this.createVertexTemplateEntry('fillColor=#ffff99;whiteSpace=wrap;shape=cloud;html=1;',
this
.
createVertexTemplateEntry
(
'fillColor=#ffff99;whiteSpace=wrap;shape=cloud;html=1;'
,
//
w, h, '', 'Meaning', null, null, this.getTagsForStencil(gn, '', dt + 'meaning').join(' ')),
w
,
h
,
''
,
'Meaning'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'meaning'
).
join
(
' '
)),
//
this.createVertexTemplateEntry('fillColor=#ffff99;whiteSpace=wrap;shape=ellipse;html=1;',
this
.
createVertexTemplateEntry
(
'fillColor=#ffff99;whiteSpace=wrap;shape=ellipse;html=1;'
,
//
w, h * 0.75, '', 'Value', null, null, this.getTagsForStencil(gn, '', dt + 'value').join(' ')),
w
,
h
*
0.75
,
''
,
'Value'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'value'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am1 + 'product;overflow=fill', w, h,
this
.
createVertexTemplateEntry
(
am1
+
'product;overflow=fill'
,
w
,
h
,
//
'<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>',
'<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(gn, '', dt + 'product').join(' ')),
'Product'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'product'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am1 + 'businessObject;overflow=fill', w, h,
this
.
createVertexTemplateEntry
(
am1
+
'businessObject;overflow=fill'
,
w
,
h
,
//
'<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>',
'<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(gn, '', dt + 'contract').join(' ')),
'Contract'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'contract'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am2 + 'application;appType=comp',
this
.
createVertexTemplateEntry
(
am2
+
'application;appType=comp'
,
//
w, h, '', 'Application Component', null, null, this.getTagsForStencil(gn, '', dt + 'application component').join(' ')),
w
,
h
,
''
,
'Application Component'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'application component'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am2 + 'application;appType=collab',
this
.
createVertexTemplateEntry
(
am2
+
'application;appType=collab'
,
//
w, h, '', 'Application Collaboration', null, null, this.getTagsForStencil(gn, '', dt + 'application collaboration').join(' ')),
w
,
h
,
''
,
'Application Collaboration'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'application collaboration'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am2 + 'application;appType=interface',
this
.
createVertexTemplateEntry
(
am2
+
'application;appType=interface'
,
//
w, h, '', 'Application Interface', null, null, this.getTagsForStencil(gn, '', dt + 'application interface').join(' ')),
w
,
h
,
''
,
'Application Interface'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'application interface'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am2 + 'application;appType=interface2',
this
.
createVertexTemplateEntry
(
am2
+
'application;appType=interface2'
,
//
w, h, '', 'Application Interface', null, null, this.getTagsForStencil(gn, '', dt + 'application interface').join(' ')),
w
,
h
,
''
,
'Application Interface'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'application interface'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am2 + 'application;appType=function',
this
.
createVertexTemplateEntry
(
am2
+
'application;appType=function'
,
//
w, h, '', 'Application Function', null, null, this.getTagsForStencil(gn, '', dt + 'application function').join(' ')),
w
,
h
,
''
,
'Application Function'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'application function'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am2 + 'application;appType=interaction',
this
.
createVertexTemplateEntry
(
am2
+
'application;appType=interaction'
,
//
w, h, '', 'Application Interaction', null, null, this.getTagsForStencil(gn, '', dt + 'application interaction').join(' ')),
w
,
h
,
''
,
'Application Interaction'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'application interaction'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am2 + 'application;appType=service',
this
.
createVertexTemplateEntry
(
am2
+
'application;appType=service'
,
//
w, h, '', 'Application Service', null, null, this.getTagsForStencil(gn, '', dt + 'application service').join(' ')),
w
,
h
,
''
,
'Application Service'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'application service'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am2 + 'businessObject;overflow=fill', w, h,
this
.
createVertexTemplateEntry
(
am2
+
'businessObject;overflow=fill'
,
w
,
h
,
//
'<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>',
'<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(gn, '', dt + 'data object').join(' ')),
'Data Object'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'data object'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am3 + 'application;appType=node',
this
.
createVertexTemplateEntry
(
am3
+
'application;appType=node'
,
//
w, h, '', 'Node', null, null, this.getTagsForStencil(gn, '', dt + 'node').join(' ')),
w
,
h
,
''
,
'Node'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'node'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am3 + 'tech;techType=device',
this
.
createVertexTemplateEntry
(
am3
+
'tech;techType=device'
,
//
w, h, '', 'Device', null, null, this.getTagsForStencil(gn, '', dt + 'device').join(' ')),
w
,
h
,
''
,
'Device'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'device'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am3 + 'application;appType=network',
this
.
createVertexTemplateEntry
(
am3
+
'application;appType=network'
,
//
w, h, '', 'Network', null, null, this.getTagsForStencil(gn, '', dt + 'network').join(' ')),
w
,
h
,
''
,
'Network'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'network'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am3 + 'application;appType=commPath',
this
.
createVertexTemplateEntry
(
am3
+
'application;appType=commPath'
,
//
w, h, '', 'Communications Path', null, null, this.getTagsForStencil(gn, '', dt + 'communications path').join(' ')),
w
,
h
,
''
,
'Communications Path'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'communications path'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am3 + 'application;appType=interface',
this
.
createVertexTemplateEntry
(
am3
+
'application;appType=interface'
,
//
w, h, '', 'Infrastructure Interface', null, null, this.getTagsForStencil(gn, '', dt + 'infrastructure interface').join(' ')),
w
,
h
,
''
,
'Infrastructure Interface'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'infrastructure interface'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am3 + 'application;appType=interface2',
this
.
createVertexTemplateEntry
(
am3
+
'application;appType=interface2'
,
//
w, h, '', 'Infrastructure Interface', null, null, this.getTagsForStencil(gn, '', dt + 'infrastructure interface').join(' ')),
w
,
h
,
''
,
'Infrastructure Interface'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'infrastructure interface'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am3 + 'application;appType=sysSw',
this
.
createVertexTemplateEntry
(
am3
+
'application;appType=sysSw'
,
//
w, h, '', 'System Software', null, null, this.getTagsForStencil(gn, '', dt + 'system software').join(' ')),
w
,
h
,
''
,
'System Software'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'system software'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am3 + 'business;busType=function',
this
.
createVertexTemplateEntry
(
am3
+
'business;busType=function'
,
//
w, h, '', 'Infrastructure Function', null, null, this.getTagsForStencil(gn, '', dt + 'infraastructure function').join(' ')),
w
,
h
,
''
,
'Infrastructure Function'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'infraastructure function'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am3 + 'business;busType=service',
this
.
createVertexTemplateEntry
(
am3
+
'business;busType=service'
,
//
w, h, '', 'Infrastructure Service', null, null, this.getTagsForStencil(gn, '', dt + 'infrastructure service').join(' ')),
w
,
h
,
''
,
'Infrastructure Service'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'infrastructure service'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am3 + 'application;appType=artifact',
this
.
createVertexTemplateEntry
(
am3
+
'application;appType=artifact'
,
//
w, h, '', 'Artifact', null, null, this.getTagsForStencil(gn, '', dt + 'artifact').join(' ')),
w
,
h
,
''
,
'Artifact'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'artifact'
).
join
(
' '
)),
//
this.createEdgeTemplateEntry('edgeStyle=elbowEdgeStyle;html=1;endArrow=none;elbow=vertical',
this
.
createEdgeTemplateEntry
(
'edgeStyle=elbowEdgeStyle;html=1;endArrow=none;elbow=vertical'
,
//
w, h, '', 'Association', null, this.getTagsForStencil(gn, '', dt + 'association').join(' ')),
w
,
h
,
''
,
'Association'
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'association'
).
join
(
' '
)),
//
this.createEdgeTemplateEntry('edgeStyle=elbowEdgeStyle;html=1;endArrow=open;elbow=vertical;endFill=1;dashed=1',
this
.
createEdgeTemplateEntry
(
'edgeStyle=elbowEdgeStyle;html=1;endArrow=open;elbow=vertical;endFill=1;dashed=1'
,
//
w, h, '', 'Access', null, this.getTagsForStencil(gn, '', dt + 'access').join(' ')),
w
,
h
,
''
,
'Access'
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'access'
).
join
(
' '
)),
//
this.createEdgeTemplateEntry('edgeStyle=elbowEdgeStyle;html=1;endArrow=none;elbow=vertical;endFill=0;dashed=1',
this
.
createEdgeTemplateEntry
(
'edgeStyle=elbowEdgeStyle;html=1;endArrow=none;elbow=vertical;endFill=0;dashed=1'
,
//
w, h, '', 'Access', null, this.getTagsForStencil(gn, '', dt + 'access').join(' ')),
w
,
h
,
''
,
'Access'
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'access'
).
join
(
' '
)),
//
this.createEdgeTemplateEntry('edgeStyle=elbowEdgeStyle;html=1;endArrow=open;elbow=vertical;endFill=1',
this
.
createEdgeTemplateEntry
(
'edgeStyle=elbowEdgeStyle;html=1;endArrow=open;elbow=vertical;endFill=1'
,
//
w, h, '', 'Used by', null, this.getTagsForStencil(gn, '', dt + 'used by').join(' ')),
w
,
h
,
''
,
'Used by'
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'used by'
).
join
(
' '
)),
//
this.createEdgeTemplateEntry('edgeStyle=elbowEdgeStyle;html=1;endArrow=block;elbow=vertical;endFill=0;dashed=1',
this
.
createEdgeTemplateEntry
(
'edgeStyle=elbowEdgeStyle;html=1;endArrow=block;elbow=vertical;endFill=0;dashed=1'
,
//
w, h, '', 'Realization', null, this.getTagsForStencil(gn, '', dt + 'realization').join(' ')),
w
,
h
,
''
,
'Realization'
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'realization'
).
join
(
' '
)),
//
this.createEdgeTemplateEntry('endArrow=oval;html=1;endFill=1;startArrow=oval;startFill=1;edgeStyle=elbowEdgeStyle;elbow=vertical',
this
.
createEdgeTemplateEntry
(
'endArrow=oval;html=1;endFill=1;startArrow=oval;startFill=1;edgeStyle=elbowEdgeStyle;elbow=vertical'
,
//
w, h, '', 'Assignment', null, this.getTagsForStencil(gn, '', dt + 'assignment').join(' ')),
w
,
h
,
''
,
'Assignment'
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'assignment'
).
join
(
' '
)),
//
this.createEdgeTemplateEntry('endArrow=none;html=1;endFill=0;startArrow=diamondThin;startFill=0;edgeStyle=elbowEdgeStyle;elbow=vertical',
this
.
createEdgeTemplateEntry
(
'endArrow=none;html=1;endFill=0;startArrow=diamondThin;startFill=0;edgeStyle=elbowEdgeStyle;elbow=vertical'
,
//
w, h, '', 'Aggregation', null, this.getTagsForStencil(gn, '', dt + 'aggregation').join(' ')),
w
,
h
,
''
,
'Aggregation'
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'aggregation'
).
join
(
' '
)),
//
this.createEdgeTemplateEntry('endArrow=none;html=1;endFill=0;startArrow=diamondThin;startFill=1;edgeStyle=elbowEdgeStyle;elbow=vertical',
this
.
createEdgeTemplateEntry
(
'endArrow=none;html=1;endFill=0;startArrow=diamondThin;startFill=1;edgeStyle=elbowEdgeStyle;elbow=vertical'
,
//
w, h, '', 'Composition', null, this.getTagsForStencil(gn, '', dt + 'composition').join(' ')),
w
,
h
,
''
,
'Composition'
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'composition'
).
join
(
' '
)),
//
this.createEdgeTemplateEntry('endArrow=block;html=1;endFill=1;startArrow=none;startFill=0;edgeStyle=elbowEdgeStyle;elbow=vertical;dashed=1',
this
.
createEdgeTemplateEntry
(
'endArrow=block;html=1;endFill=1;startArrow=none;startFill=0;edgeStyle=elbowEdgeStyle;elbow=vertical;dashed=1'
,
//
w, h, '', 'A', null, this.getTagsForStencil(gn, '', dt).join(' ')),
w
,
h
,
''
,
'A'
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
).
join
(
' '
)),
//
this.createEdgeTemplateEntry('endArrow=block;html=1;endFill=1;startArrow=none;startFill=0;edgeStyle=elbowEdgeStyle;elbow=vertical;dashed=1',
this
.
createEdgeTemplateEntry
(
'endArrow=block;html=1;endFill=1;startArrow=none;startFill=0;edgeStyle=elbowEdgeStyle;elbow=vertical;dashed=1'
,
//
w, h, '', 'Flow', null, this.getTagsForStencil(gn, '', dt + 'flow').join(' ')),
w
,
h
,
''
,
'Flow'
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'flow'
).
join
(
' '
)),
//
this.createEdgeTemplateEntry('endArrow=block;html=1;endFill=1;startArrow=none;startFill=0;edgeStyle=elbowEdgeStyle;elbow=vertical;dashed=0',
this
.
createEdgeTemplateEntry
(
'endArrow=block;html=1;endFill=1;startArrow=none;startFill=0;edgeStyle=elbowEdgeStyle;elbow=vertical;dashed=0'
,
//
w, h, '', 'Triggering', null, this.getTagsForStencil(gn, '', dt + 'triggering').join(' ')),
w
,
h
,
''
,
'Triggering'
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'triggering'
).
join
(
' '
)),
//
this.createVertexTemplateEntry('swimlane;html=1;fillColor=#ffffff;whiteSpace=wrap',
this
.
createVertexTemplateEntry
(
'swimlane;html=1;fillColor=#ffffff;whiteSpace=wrap'
,
//
w, h, '', 'Grouping', null, this.getTagsForStencil(gn, '', dt + 'grouping').join(' ')),
w
,
h
,
''
,
'Grouping'
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'grouping'
).
join
(
' '
)),
//
this.createVertexTemplateEntry('ellipse;html=1;verticalLabelPosition=bottom;labelBackgroundColor=#ffffff;verticalAlign=top;fillColor=strokeColor',
this
.
createVertexTemplateEntry
(
'ellipse;html=1;verticalLabelPosition=bottom;labelBackgroundColor=#ffffff;verticalAlign=top;fillColor=strokeColor'
,
//
10, 10, '', 'Junction', null, this.getTagsForStencil(gn, '', dt + 'junction').join(' ')),
10
,
10
,
''
,
'Junction'
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'junction'
).
join
(
' '
)),
//
this.createEdgeTemplateEntry('endArrow=block;html=1;endFill=0;edgeStyle=elbowEdgeStyle;elbow=vertical',
this
.
createEdgeTemplateEntry
(
'endArrow=block;html=1;endFill=0;edgeStyle=elbowEdgeStyle;elbow=vertical'
,
//
w, h, '', 'Specialization', null, this.getTagsForStencil(gn, '', dt + 'specialization').join(' ')),
w
,
h
,
''
,
'Specialization'
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'specialization'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am4 + 'motiv;motivType=stake',
this
.
createVertexTemplateEntry
(
am4
+
'motiv;motivType=stake'
,
//
w, h, '', 'Stakeholder', null, null, this.getTagsForStencil(gn, '', dt + 'stakeholder').join(' ')),
w
,
h
,
''
,
'Stakeholder'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'stakeholder'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am4 + 'motiv;motivType=driver',
this
.
createVertexTemplateEntry
(
am4
+
'motiv;motivType=driver'
,
//
w, h, '', 'Driver', null, null, this.getTagsForStencil(gn, '', dt + 'driver').join(' ')),
w
,
h
,
''
,
'Driver'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'driver'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am4 + 'motiv;motivType=assess',
this
.
createVertexTemplateEntry
(
am4
+
'motiv;motivType=assess'
,
//
w, h, '', 'Assessment', null, null, this.getTagsForStencil(gn, '', dt + 'assesment').join(' ')),
w
,
h
,
''
,
'Assessment'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'assesment'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am5 + 'motiv;motivType=goal',
this
.
createVertexTemplateEntry
(
am5
+
'motiv;motivType=goal'
,
//
w, h, '', 'Goal', null, null, this.getTagsForStencil(gn, '', dt + 'goal').join(' ')),
w
,
h
,
''
,
'Goal'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'goal'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am5 + 'motiv;motivType=req',
this
.
createVertexTemplateEntry
(
am5
+
'motiv;motivType=req'
,
//
w, h, '', 'Requirement', null, null, this.getTagsForStencil(gn, '', dt + 'goal').join(' ')),
w
,
h
,
''
,
'Requirement'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'goal'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am5 + 'motiv;motivType=const',
this
.
createVertexTemplateEntry
(
am5
+
'motiv;motivType=const'
,
//
w, h, '', 'Constraint', null, null, this.getTagsForStencil(gn, '', dt + 'constraint').join(' ')),
w
,
h
,
''
,
'Constraint'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'constraint'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am5 + 'motiv;motivType=princ',
this
.
createVertexTemplateEntry
(
am5
+
'motiv;motivType=princ'
,
//
w, h, '', 'Principle', null, null, this.getTagsForStencil(gn, '', dt + 'principle').join(' ')),
w
,
h
,
''
,
'Principle'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'principle'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am6 + 'rounded=1',
this
.
createVertexTemplateEntry
(
am6
+
'rounded=1'
,
//
w, h, '', 'Work Package', null, null, this.getTagsForStencil(gn, '', dt + 'work package').join(' ')),
w
,
h
,
''
,
'Work Package'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'work package'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am6 + 'representation',
this
.
createVertexTemplateEntry
(
am6
+
'representation'
,
//
w, h, '', 'Deliverable', null, null, this.getTagsForStencil(gn, '', dt + 'deliverable').join(' ')),
w
,
h
,
''
,
'Deliverable'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'deliverable'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am3 + 'tech;techType=plateau',
this
.
createVertexTemplateEntry
(
am3
+
'tech;techType=plateau'
,
//
w, h, '', 'Plateau', null, null, this.getTagsForStencil(gn, '', dt + 'plateau').join(' ')),
w
,
h
,
''
,
'Plateau'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'plateau'
).
join
(
' '
)),
//
this.createVertexTemplateEntry(am3 + 'gap',
this
.
createVertexTemplateEntry
(
am3
+
'gap'
,
//
w, h, '', 'Gap', null, null, this.getTagsForStencil(gn, '', dt + 'gap').join(' '))
w
,
h
,
''
,
'Gap'
,
null
,
null
,
this
.
getTagsForStencil
(
gn
,
''
,
dt
+
'gap'
).
join
(
' '
))
//
]);
]);
this
.
setCurrentSearchEntryLibrary
();
this
.
setCurrentSearchEntryLibrary
();
};
};
...
...
public/drawio/js/diagramly/sidebar/Sidebar-ArchiMate3.js
View file @
f3cc559
...
@@ -4,23 +4,23 @@
...
@@ -4,23 +4,23 @@
Sidebar
.
prototype
.
addArchimate3Palette
=
function
()
Sidebar
.
prototype
.
addArchimate3Palette
=
function
()
{
{
this
.
setCurrentSearchEntryLibrary
(
'archimate3'
,
'archimate3Application'
);
this
.
setCurrentSearchEntryLibrary
(
'archimate3'
,
'archimate3Application'
);
//
this.addArchimate3ApplicationPalette();
this
.
addArchimate3ApplicationPalette
();
this
.
setCurrentSearchEntryLibrary
(
'archimate3'
,
'archimate3Business'
);
this
.
setCurrentSearchEntryLibrary
(
'archimate3'
,
'archimate3Business'
);
//
this.addArchimate3BusinessPalette();
this
.
addArchimate3BusinessPalette
();
this
.
setCurrentSearchEntryLibrary
(
'archimate3'
,
'archimate3Composite'
);
this
.
setCurrentSearchEntryLibrary
(
'archimate3'
,
'archimate3Composite'
);
//
this.addArchimate3CompositePalette();
this
.
addArchimate3CompositePalette
();
this
.
setCurrentSearchEntryLibrary
(
'archimate3'
,
'archimate3Implementation and Migration'
);
this
.
setCurrentSearchEntryLibrary
(
'archimate3'
,
'archimate3Implementation and Migration'
);
//
this.addArchimate3ImplementationAndMigrationPalette();
this
.
addArchimate3ImplementationAndMigrationPalette
();
this
.
setCurrentSearchEntryLibrary
(
'archimate3'
,
'archimate3Motivation'
);
this
.
setCurrentSearchEntryLibrary
(
'archimate3'
,
'archimate3Motivation'
);
//
this.addArchimate3MotivationPalette();
this
.
addArchimate3MotivationPalette
();
this
.
setCurrentSearchEntryLibrary
(
'archimate3'
,
'archimate3Physical'
);
this
.
setCurrentSearchEntryLibrary
(
'archimate3'
,
'archimate3Physical'
);
//
this.addArchimate3PhysicalPalette();
this
.
addArchimate3PhysicalPalette
();
this
.
setCurrentSearchEntryLibrary
(
'archimate3'
,
'archimate3Relationships'
);
this
.
setCurrentSearchEntryLibrary
(
'archimate3'
,
'archimate3Relationships'
);
//
this.addArchimate3RelationshipsPalette();
this
.
addArchimate3RelationshipsPalette
();
this
.
setCurrentSearchEntryLibrary
(
'archimate3'
,
'archimate3Strategy'
);
this
.
setCurrentSearchEntryLibrary
(
'archimate3'
,
'archimate3Strategy'
);
//
this.addArchimate3StrategyPalette();
this
.
addArchimate3StrategyPalette
();
this
.
setCurrentSearchEntryLibrary
(
'archimate3'
,
'archimate3Technology'
);
this
.
setCurrentSearchEntryLibrary
(
'archimate3'
,
'archimate3Technology'
);
//
this.addArchimate3TechnologyPalette();
this
.
addArchimate3TechnologyPalette
();
this
.
setCurrentSearchEntryLibrary
();
this
.
setCurrentSearchEntryLibrary
();
};
};
...
...
public/drawio/js/diagramly/sidebar/Sidebar.js
View file @
f3cc559
...
@@ -154,7 +154,7 @@
...
@@ -154,7 +154,7 @@
{
id
:
'atlassian'
,
libs
:
[
'atlassian'
]},
{
id
:
'atlassian'
,
libs
:
[
'atlassian'
]},
{
id
:
'fluid_power'
,
libs
:
[
'fluid_power'
]},
{
id
:
'fluid_power'
,
libs
:
[
'fluid_power'
]},
{
id
:
'gmdl'
,
prefix
:
'gmdl'
,
libs
:
Sidebar
.
prototype
.
gmdl
},
{
id
:
'gmdl'
,
prefix
:
'gmdl'
,
libs
:
Sidebar
.
prototype
.
gmdl
},
{
id
:
'archimate3'
,
prefix
:
'archimate3'
,
libs
:
Sidebar
.
prototype
.
archimate3
},
{
id
:
'archimate'
,
libs
:
[
'archimate'
]},
{
id
:
'archimate'
,
libs
:
[
'archimate'
]},
{
id
:
'webicons'
,
libs
:
[
'webicons'
,
'weblogos'
]},
{
id
:
'webicons'
,
libs
:
[
'webicons'
,
'weblogos'
]},
{
id
:
'sysml'
,
prefix
:
'sysml'
,
libs
:
Sidebar
.
prototype
.
sysml
}];
{
id
:
'sysml'
,
prefix
:
'sysml'
,
libs
:
Sidebar
.
prototype
.
sysml
}];
...
@@ -379,7 +379,7 @@
...
@@ -379,7 +379,7 @@
// Merges array of semicolon separated strings into a single array
// Merges array of semicolon separated strings into a single array
var
temp
=
all
.
join
(
';'
).
split
(
';'
);
var
temp
=
all
.
join
(
';'
).
split
(
';'
);
temp
.
push
(
'archimate'
);
//二次开发,调整初始化左侧菜单展示项
//
temp.push('archimate');//二次开发,调整初始化左侧菜单展示项
console
.
log
(
temp
)
console
.
log
(
temp
)
console
.
log
(
this
.
configuration
)
console
.
log
(
this
.
configuration
)
...
@@ -513,8 +513,8 @@
...
@@ -513,8 +513,8 @@
{
title
:
mxResources
.
get
(
'business'
),
{
title
:
mxResources
.
get
(
'business'
),
// 二次开发 20231117 wangwansu ArchiMate 3.0英文改中文
// 二次开发 20231117 wangwansu ArchiMate 3.0英文改中文
entries
:
[
entries
:
[
//
{title: 'ArchiMate 3.0', id: 'archimate3', image: IMAGE_PATH + '/sidebar-archimate3.png'},
{
title
:
'ArchiMate 3.0'
,
id
:
'archimate3'
,
image
:
IMAGE_PATH
+
'/sidebar-archimate3.png'
},
//
{title: mxResources.get('archiMate21'), id: 'archimate', image: IMAGE_PATH + '/sidebar-archimate.png'},
{
title
:
mxResources
.
get
(
'archiMate21'
),
id
:
'archimate'
,
image
:
IMAGE_PATH
+
'/sidebar-archimate.png'
},
{
title
:
mxResources
.
get
(
'bpmn'
)
+
' 2.0'
,
id
:
'bpmn2'
,
image
:
IMAGE_PATH
+
'/sidebar-bpmn.png'
},
{
title
:
mxResources
.
get
(
'bpmn'
)
+
' 2.0'
,
id
:
'bpmn2'
,
image
:
IMAGE_PATH
+
'/sidebar-bpmn.png'
},
{
title
:
mxResources
.
get
(
'sysml'
),
id
:
'sysml'
,
image
:
IMAGE_PATH
+
'/sidebar-sysml.png'
},
{
title
:
mxResources
.
get
(
'sysml'
),
id
:
'sysml'
,
image
:
IMAGE_PATH
+
'/sidebar-sysml.png'
},
{
title
:
'Value Stream Mapping'
,
id
:
'lean_mapping'
,
image
:
IMAGE_PATH
+
'/sidebar-leanmapping.png'
}]},
{
title
:
'Value Stream Mapping'
,
id
:
'lean_mapping'
,
image
:
IMAGE_PATH
+
'/sidebar-leanmapping.png'
}]},
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment