Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gojs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴斌
vue-gojs
Commits
5eabe37e
Commit
5eabe37e
authored
Oct 19, 2023
by
吴斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:点击导入显示示例组态。
parent
a095925c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
52 additions
and
26 deletions
+52
-26
App.vue
src/App.vue
+0
-0
冷却器-2.svg
src/assets/models/ammonia/冷却器-2.svg
+3
-3
冷却器.svg
src/assets/models/ammonia/冷却器.svg
+3
-3
压缩机.svg
src/assets/models/ammonia/压缩机.svg
+3
-3
合成塔.svg
src/assets/models/ammonia/合成塔.svg
+3
-3
开工炉.svg
src/assets/models/ammonia/开工炉.svg
+3
-3
换热器.svg
src/assets/models/ammonia/换热器.svg
+3
-3
氨分离罐.svg
src/assets/models/ammonia/氨分离罐.svg
+3
-3
ModelData.ts
src/kit/ModelData.ts
+27
-2
NodeTemplateKit.ts
src/kit/NodeTemplateKit.ts
+4
-3
No files found.
src/App.vue
View file @
5eabe37e
This diff is collapsed.
Click to expand it.
src/assets/models/ammonia/冷却器-2.svg
View file @
5eabe37e
<svg
width=
"265"
height=
"260"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xml:space=
"preserve"
overflow=
"hidden"
><g
transform=
"translate(-1002 -119)"
><path
d=
"M1046.33 203.5 1181.95 203.5 1222.67 203.5 1264.5 203.5 1264.5 244.5 1264.5 285.5 1222.67 285.5 1181.95 285.5 1046.33 285.5C1023.23 285.5 1004.5 267.145 1004.5 244.5 1004.5 221.855 1023.23 203.5 1046.33 203.5Z"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/><path
d=
"M1222.5 203.5 1222.5 286"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/></g></svg>
<svg
width=
"164"
height=
"54"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xml:space=
"preserve"
overflow=
"hidden"
><g
transform=
"translate(-728 -451)"
><path
d=
"M755.063 452 864.938 452C879.331 452 891 463.641 891 478 891 492.359 879.331 504 864.938 504L755.063 504C740.669 504 729 492.359 729 478 729 463.641 740.669 452 755.063 452Z"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/><rect
x=
"729"
y=
"452"
width=
"31.9999"
height=
"51.9999"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
/></g></svg>
<svg
width=
"265"
height=
"260"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xml:space=
"preserve"
overflow=
"hidden"
><g
transform=
"translate(-1002 -119)"
><path
d=
"M1046.33 203.5 1181.95 203.5 1222.67 203.5 1264.5 203.5 1264.5 244.5 1264.5 285.5 1222.67 285.5 1181.95 285.5 1046.33 285.5C1023.23 285.5 1004.5 267.145 1004.5 244.5 1004.5 221.855 1023.23 203.5 1046.33 203.5Z"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/><path
d=
"M1222.5 203.5 1222.5 286"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/></g></svg>
\ No newline at end of file
<svg
width=
"164"
height=
"54"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xml:space=
"preserve"
overflow=
"hidden"
><g
transform=
"translate(-728 -451)"
><path
d=
"M755.063 452 864.938 452C879.331 452 891 463.641 891 478 891 492.359 879.331 504 864.938 504L755.063 504C740.669 504 729 492.359 729 478 729 463.641 740.669 452 755.063 452Z"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/><rect
x=
"729"
y=
"452"
width=
"31.9999"
height=
"51.9999"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
/></g></svg>
\ No newline at end of file
src/assets/models/ammonia/冷却器.svg
View file @
5eabe37e
<svg
width=
"265"
height=
"259"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xml:space=
"preserve"
overflow=
"hidden"
><g
transform=
"translate(-562 -107)"
><path
d=
"M606.329 204.5 782.671 204.5C805.773 204.5 824.5 222.185 824.5 244 824.5 265.815 805.773 283.5 782.671 283.5L606.329 283.5C583.227 283.5 564.5 265.815 564.5 244 564.5 222.185 583.227 204.5 606.329 204.5Z"
stroke=
"#1C334E"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/></g></svg>
<svg
width=
"132"
height=
"54"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xml:space=
"preserve"
overflow=
"hidden"
><g
transform=
"translate(-473 -451)"
><path
d=
"M494.914 452 583.086 452C594.636 452 604 463.641 604 478 604 492.359 594.636 504 583.086 504L494.914 504C483.364 504 474 492.359 474 478 474 463.641 483.364 452 494.914 452Z"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/></g></svg>
<svg
width=
"265"
height=
"259"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xml:space=
"preserve"
overflow=
"hidden"
><g
transform=
"translate(-562 -107)"
><path
d=
"M606.329 204.5 782.671 204.5C805.773 204.5 824.5 222.185 824.5 244 824.5 265.815 805.773 283.5 782.671 283.5L606.329 283.5C583.227 283.5 564.5 265.815 564.5 244 564.5 222.185 583.227 204.5 606.329 204.5Z"
stroke=
"#1C334E"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/></g></svg>
\ No newline at end of file
<svg
width=
"132"
height=
"54"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xml:space=
"preserve"
overflow=
"hidden"
><g
transform=
"translate(-473 -451)"
><path
d=
"M494.914 452 583.086 452C594.636 452 604 463.641 604 478 604 492.359 594.636 504 583.086 504L494.914 504C483.364 504 474 492.359 474 478 474 463.641 483.364 452 494.914 452Z"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/></g></svg>
\ No newline at end of file
src/assets/models/ammonia/压缩机.svg
View file @
5eabe37e
<svg
width=
"265"
height=
"265"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xml:space=
"preserve"
overflow=
"hidden"
><g
transform=
"translate(-94 -117)"
><path
d=
"M96.5001 379.5 161.5 119.5 291.5 119.5 356.5 379.5Z"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/></g></svg>
<svg
width=
"128"
height=
"105"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xml:space=
"preserve"
overflow=
"hidden"
><g
transform=
"translate(-1014 -420)"
><path
d=
"M1015 523 1015 422 1141 442.2 1141 502.8Z"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/></g></svg>
<svg
width=
"265"
height=
"265"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xml:space=
"preserve"
overflow=
"hidden"
><g
transform=
"translate(-94 -117)"
><path
d=
"M96.5001 379.5 161.5 119.5 291.5 119.5 356.5 379.5Z"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/></g></svg>
\ No newline at end of file
<svg
width=
"128"
height=
"105"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xml:space=
"preserve"
overflow=
"hidden"
><g
transform=
"translate(-1014 -420)"
><path
d=
"M1015 523 1015 422 1141 442.2 1141 502.8Z"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/></g></svg>
\ No newline at end of file
src/assets/models/ammonia/合成塔.svg
View file @
5eabe37e
<svg
width=
"649"
height=
"655"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xml:space=
"preserve"
overflow=
"hidden"
><g
transform=
"translate(-57 -761)"
><path
d=
"M382 763.5C414.65 763.5 441.116 781.152 441.116 802.922L441.116 939.913 447.138 942.102C478.127 956.116 498.5 979.849 498.5 1006.76L498.5 1335.52C498.5 1378.58 446.345 1413.5 382 1413.5 317.655 1413.5 265.5 1378.58 265.5 1335.52L265.5 1006.76C265.5 979.849 285.873 956.116 316.862 942.101L322.883 939.914 322.883 802.922C322.883 781.152 349.349 763.5 382 763.5Z"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/><rect
x=
"339.5"
y=
"818.5"
width=
"82.9998"
height=
"165"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
/><path
d=
"M458.5 1018.44 458.5 1219.26 458.5 1279.56 458.5 1341.5 380.5 1341.5 302.5 1341.5 302.5 1279.56 302.5 1219.26 302.5 1018.44C302.5 984.235 337.419 956.5 380.5 956.5 423.58 956.5 458.5 984.235 458.5 1018.44Z"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/><rect
x=
"302.5"
y=
"1148.5"
width=
"156"
height=
"156"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
/><path
d=
"M302.5 1148.5 458.405 1304.41"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/><path
d=
"M0 0 155.905 155.906"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
transform=
"matrix(1 0 0 -1 302.5 1304.41)"
/><rect
x=
"302.5"
y=
"1072.5"
width=
"156"
height=
"62.9999"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
/><path
d=
"M302.5 1072.5 458.405 1135.51"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/><path
d=
"M0 0 155.905 63.0114"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
transform=
"matrix(1 0 0 -1 302.5 1135.51)"
/><rect
x=
"302.5"
y=
"1011.5"
width=
"156"
height=
"45.9997"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
/><path
d=
"M302.5 1011.5 458.405 1057.41"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/><path
d=
"M0 0 155.905 45.9055"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
transform=
"matrix(1 0 0 -1 302.5 1057.41)"
/></g></svg>
<svg
width=
"172"
height=
"544"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xml:space=
"preserve"
overflow=
"hidden"
><g
transform=
"translate(-2038 -129)"
><path
d=
"M2124 130C2145.43 130 2162.8 142.406 2162.8 157.707L2162.8 245.134 2184.1 256.974C2199.49 269.655 2209 287.173 2209 306.521L2209 601.929C2209 640.624 2170.95 672 2124 672 2077.05 672 2039 640.624 2039 601.929L2039 306.521C2039 287.173 2048.51 269.655 2063.9 256.974L2085.2 245.134 2085.2 157.707C2085.2 142.406 2102.57 130 2124 130Z"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/><rect
x=
"2097"
y=
"156"
width=
"55"
height=
"147"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
/><path
d=
"M2124.5 251C2162.89 251 2194 282.85 2194 322.129L2194 621.999 2194 622 2194 620.875 2055 620.875 2055 322.129C2055 282.85 2086.11 251 2124.5 251Z"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/><rect
x=
"2055"
y=
"494"
width=
"139"
height=
"110"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
/><path
d=
"M2055 494 2193.75 603.258"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"none"
fill-rule=
"evenodd"
/><path
d=
"M0 0 138.753 109.543"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"none"
fill-rule=
"evenodd"
transform=
"matrix(1 0 0 -1 2055 603.543)"
/><rect
x=
"2055"
y=
"437"
width=
"139"
height=
"39.0002"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
/><path
d=
"M2055 437 2193.75 475.792"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"none"
fill-rule=
"evenodd"
/><path
d=
"M0 0 138.753 38.8927"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"none"
fill-rule=
"evenodd"
transform=
"matrix(1 0 0 -1 2055 475.893)"
/><rect
x=
"2055"
y=
"381"
width=
"139"
height=
"38.0002"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
/><path
d=
"M2055 381 2193.75 419.791"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"none"
fill-rule=
"evenodd"
/><path
d=
"M0 0 138.753 38.8927"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"none"
fill-rule=
"evenodd"
transform=
"matrix(1 0 0 -1 2055 419.893)"
/><rect
x=
"2055"
y=
"324"
width=
"139"
height=
"38.9998"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
/><path
d=
"M2055 324 2193.75 362.792"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"none"
fill-rule=
"evenodd"
/><path
d=
"M0 0 138.753 38.8927"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"none"
fill-rule=
"evenodd"
transform=
"matrix(1 0 0 -1 2055 362.893)"
/></g></svg>
<svg
width=
"649"
height=
"655"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xml:space=
"preserve"
overflow=
"hidden"
><g
transform=
"translate(-57 -761)"
><path
d=
"M382 763.5C414.65 763.5 441.116 781.152 441.116 802.922L441.116 939.913 447.138 942.102C478.127 956.116 498.5 979.849 498.5 1006.76L498.5 1335.52C498.5 1378.58 446.345 1413.5 382 1413.5 317.655 1413.5 265.5 1378.58 265.5 1335.52L265.5 1006.76C265.5 979.849 285.873 956.116 316.862 942.101L322.883 939.914 322.883 802.922C322.883 781.152 349.349 763.5 382 763.5Z"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/><rect
x=
"339.5"
y=
"818.5"
width=
"82.9998"
height=
"165"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
/><path
d=
"M458.5 1018.44 458.5 1219.26 458.5 1279.56 458.5 1341.5 380.5 1341.5 302.5 1341.5 302.5 1279.56 302.5 1219.26 302.5 1018.44C302.5 984.235 337.419 956.5 380.5 956.5 423.58 956.5 458.5 984.235 458.5 1018.44Z"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/><rect
x=
"302.5"
y=
"1148.5"
width=
"156"
height=
"156"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
/><path
d=
"M302.5 1148.5 458.405 1304.41"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/><path
d=
"M0 0 155.905 155.906"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
transform=
"matrix(1 0 0 -1 302.5 1304.41)"
/><rect
x=
"302.5"
y=
"1072.5"
width=
"156"
height=
"62.9999"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
/><path
d=
"M302.5 1072.5 458.405 1135.51"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/><path
d=
"M0 0 155.905 63.0114"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
transform=
"matrix(1 0 0 -1 302.5 1135.51)"
/><rect
x=
"302.5"
y=
"1011.5"
width=
"156"
height=
"45.9997"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
/><path
d=
"M302.5 1011.5 458.405 1057.41"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/><path
d=
"M0 0 155.905 45.9055"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
transform=
"matrix(1 0 0 -1 302.5 1057.41)"
/></g></svg>
\ No newline at end of file
<svg
width=
"172"
height=
"544"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xml:space=
"preserve"
overflow=
"hidden"
><g
transform=
"translate(-2038 -129)"
><path
d=
"M2124 130C2145.43 130 2162.8 142.406 2162.8 157.707L2162.8 245.134 2184.1 256.974C2199.49 269.655 2209 287.173 2209 306.521L2209 601.929C2209 640.624 2170.95 672 2124 672 2077.05 672 2039 640.624 2039 601.929L2039 306.521C2039 287.173 2048.51 269.655 2063.9 256.974L2085.2 245.134 2085.2 157.707C2085.2 142.406 2102.57 130 2124 130Z"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/><rect
x=
"2097"
y=
"156"
width=
"55"
height=
"147"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
/><path
d=
"M2124.5 251C2162.89 251 2194 282.85 2194 322.129L2194 621.999 2194 622 2194 620.875 2055 620.875 2055 322.129C2055 282.85 2086.11 251 2124.5 251Z"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/><rect
x=
"2055"
y=
"494"
width=
"139"
height=
"110"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
/><path
d=
"M2055 494 2193.75 603.258"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"none"
fill-rule=
"evenodd"
/><path
d=
"M0 0 138.753 109.543"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"none"
fill-rule=
"evenodd"
transform=
"matrix(1 0 0 -1 2055 603.543)"
/><rect
x=
"2055"
y=
"437"
width=
"139"
height=
"39.0002"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
/><path
d=
"M2055 437 2193.75 475.792"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"none"
fill-rule=
"evenodd"
/><path
d=
"M0 0 138.753 38.8927"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"none"
fill-rule=
"evenodd"
transform=
"matrix(1 0 0 -1 2055 475.893)"
/><rect
x=
"2055"
y=
"381"
width=
"139"
height=
"38.0002"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
/><path
d=
"M2055 381 2193.75 419.791"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"none"
fill-rule=
"evenodd"
/><path
d=
"M0 0 138.753 38.8927"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"none"
fill-rule=
"evenodd"
transform=
"matrix(1 0 0 -1 2055 419.893)"
/><rect
x=
"2055"
y=
"324"
width=
"139"
height=
"38.9998"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
/><path
d=
"M2055 324 2193.75 362.792"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"none"
fill-rule=
"evenodd"
/><path
d=
"M0 0 138.753 38.8927"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"none"
fill-rule=
"evenodd"
transform=
"matrix(1 0 0 -1 2055 362.893)"
/></g></svg>
\ No newline at end of file
src/assets/models/ammonia/开工炉.svg
View file @
5eabe37e
<svg
width=
"390"
height=
"394"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xml:space=
"preserve"
overflow=
"hidden"
><g
transform=
"translate(-809 -899)"
><path
d=
"M943.521 901.5 1064.48 901.5 1064.48 1004.3 1066.33 1004.3 1097.5 1035.45 1097.5 1290.5 910.5 1290.5 910.5 1035.45 941.667 1004.3 943.521 1004.3Z"
stroke=
"#1C334E"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/><path
d=
"M931.5 1033.36 1066.2 1032.5 938.364 1103.64 1072.21 1097.64 941.796 1172.21 1076.5 1169.64 940.938 1233.93 1071.35 1229.64 993.275 1290.5"
stroke=
"#1C334E"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"none"
fill-rule=
"evenodd"
/></g></svg>
<svg
width=
"159"
height=
"334"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xml:space=
"preserve"
overflow=
"hidden"
><g
transform=
"translate(-1768 -191)"
><path
d=
"M1815.49 192 1879.51 192 1879.51 285.908 1880.1 285.908 1926 337.357 1926 523 1769 523 1769 337.357 1814.9 285.908 1815.49 285.908Z"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/><path
d=
"M1799 304 1815.69 334 1896 331 1815.69 369 1888.7 367 1820.9 409 1883.48 408 1829.25 451 1879.31 449 1819.86 481 1894.96 479 1846.98 522 1846.98 521 1846.98 521"
stroke=
"#172C51"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"none"
fill-rule=
"evenodd"
/></g></svg>
<svg
width=
"390"
height=
"394"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xml:space=
"preserve"
overflow=
"hidden"
><g
transform=
"translate(-809 -899)"
><path
d=
"M943.521 901.5 1064.48 901.5 1064.48 1004.3 1066.33 1004.3 1097.5 1035.45 1097.5 1290.5 910.5 1290.5 910.5 1035.45 941.667 1004.3 943.521 1004.3Z"
stroke=
"#1C334E"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/><path
d=
"M931.5 1033.36 1066.2 1032.5 938.364 1103.64 1072.21 1097.64 941.796 1172.21 1076.5 1169.64 940.938 1233.93 1071.35 1229.64 993.275 1290.5"
stroke=
"#1C334E"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"none"
fill-rule=
"evenodd"
/></g></svg>
\ No newline at end of file
<svg
width=
"159"
height=
"334"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xml:space=
"preserve"
overflow=
"hidden"
><g
transform=
"translate(-1768 -191)"
><path
d=
"M1815.49 192 1879.51 192 1879.51 285.908 1880.1 285.908 1926 337.357 1926 523 1769 523 1769 337.357 1814.9 285.908 1815.49 285.908Z"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/><path
d=
"M1799 304 1815.69 334 1896 331 1815.69 369 1888.7 367 1820.9 409 1883.48 408 1829.25 451 1879.31 449 1819.86 481 1894.96 479 1846.98 522 1846.98 521 1846.98 521"
stroke=
"#172C51"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"none"
fill-rule=
"evenodd"
/></g></svg>
\ No newline at end of file
src/assets/models/ammonia/换热器.svg
View file @
5eabe37e
<svg
width=
"265"
height=
"260"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xml:space=
"preserve"
overflow=
"hidden"
><g
transform=
"translate(-1387 -114)"
><rect
x=
"1389.5"
y=
"202.5"
width=
"260"
height=
"83.0002"
stroke=
"#1C334E"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
/><rect
x=
"1418.5"
y=
"202.5"
width=
"201"
height=
"83.0002"
stroke=
"#1C334E"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
/></g></svg>
<svg
width=
"262"
height=
"58"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xml:space=
"preserve"
overflow=
"hidden"
><g
transform=
"translate(-1208 -447)"
><rect
x=
"1209"
y=
"448"
width=
"27.0001"
height=
"56"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
/><rect
x=
"1441"
y=
"448"
width=
"27.9999"
height=
"56"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
/><rect
x=
"1236"
y=
"448"
width=
"205"
height=
"56"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
/></g></svg>
<svg
width=
"265"
height=
"260"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xml:space=
"preserve"
overflow=
"hidden"
><g
transform=
"translate(-1387 -114)"
><rect
x=
"1389.5"
y=
"202.5"
width=
"260"
height=
"83.0002"
stroke=
"#1C334E"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
/><rect
x=
"1418.5"
y=
"202.5"
width=
"201"
height=
"83.0002"
stroke=
"#1C334E"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
/></g></svg>
\ No newline at end of file
<svg
width=
"262"
height=
"58"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xml:space=
"preserve"
overflow=
"hidden"
><g
transform=
"translate(-1208 -447)"
><rect
x=
"1209"
y=
"448"
width=
"27.0001"
height=
"56"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
/><rect
x=
"1441"
y=
"448"
width=
"27.9999"
height=
"56"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
/><rect
x=
"1236"
y=
"448"
width=
"205"
height=
"56"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
/></g></svg>
\ No newline at end of file
src/assets/models/ammonia/氨分离罐.svg
View file @
5eabe37e
<svg
width=
"265"
height=
"260"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xml:space=
"preserve"
overflow=
"hidden"
><g
transform=
"translate(-1744 -119)"
><path
d=
"M1784.15 203.5 1906.2 203.5 1942.85 203.5 1980.5 203.5 1980.5 244.5 1980.5 285.5 1942.85 285.5 1906.2 285.5 1784.15 285.5C1763.36 285.5 1746.5 267.145 1746.5 244.5 1746.5 221.855 1763.36 203.5 1784.15 203.5Z"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/><rect
x=
"1980.5"
y=
"175.5"
width=
"26.0001"
height=
"138"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
/><path
d=
"M1784.5 203.5 1784.5 286"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/></g></svg>
<svg
width=
"181"
height=
"380"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xml:space=
"preserve"
overflow=
"hidden"
><g
transform=
"translate(-154 -129)"
><rect
x=
"155"
y=
"130"
width=
"179"
height=
"48.0001"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
/><path
d=
"M194 457.5C194 429.61 216.609 407 244.5 407 272.39 407 295 429.61 295 457.5 295 485.39 272.39 508 244.5 508 216.609 508 194 485.39 194 457.5Z"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/><rect
x=
"194"
y=
"178"
width=
"101"
height=
"274"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
/></g></svg>
<svg
width=
"265"
height=
"260"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xml:space=
"preserve"
overflow=
"hidden"
><g
transform=
"translate(-1744 -119)"
><path
d=
"M1784.15 203.5 1906.2 203.5 1942.85 203.5 1980.5 203.5 1980.5 244.5 1980.5 285.5 1942.85 285.5 1906.2 285.5 1784.15 285.5C1763.36 285.5 1746.5 267.145 1746.5 244.5 1746.5 221.855 1763.36 203.5 1784.15 203.5Z"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/><rect
x=
"1980.5"
y=
"175.5"
width=
"26.0001"
height=
"138"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
/><path
d=
"M1784.5 203.5 1784.5 286"
stroke=
"#000000"
stroke-width=
"4.58333"
stroke-linejoin=
"round"
stroke-miterlimit=
"10"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/></g></svg>
\ No newline at end of file
<svg
width=
"181"
height=
"380"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xml:space=
"preserve"
overflow=
"hidden"
><g
transform=
"translate(-154 -129)"
><rect
x=
"155"
y=
"130"
width=
"179"
height=
"48.0001"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
/><path
d=
"M194 457.5C194 429.61 216.609 407 244.5 407 272.39 407 295 429.61 295 457.5 295 485.39 272.39 508 244.5 508 216.609 508 194 485.39 194 457.5Z"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
fill-rule=
"evenodd"
/><rect
x=
"194"
y=
"178"
width=
"101"
height=
"274"
stroke=
"#000000"
stroke-width=
"2.29167"
stroke-miterlimit=
"8"
fill=
"#FFFFFF"
/></g></svg>
\ No newline at end of file
src/kit/ModelData.ts
View file @
5eabe37e
...
...
@@ -15,7 +15,7 @@ export const SourceNodeCategory: { key: string; name: string; type: string }[] =
]
export
const
SourceNodeModel
=
[
//{name: 节点名称, nodeCollection: 节点
类别, img: 节点图片路径, geometry: 节点形状, ports: 端口
}
//{name: 节点名称, nodeCollection: 节点
分类, img: 节点图片路径, geometry: 节点形状, ports: 端口, category: 节点类型
}
//svg
//computer
{
name
:
"电脑"
,
nodeCollection
:
"computer"
,
img
:
"src/assets/models/computer/电脑.svg"
,
category
:
'svg'
},
...
...
@@ -42,5 +42,30 @@ export const SourceNodeModel = [
{
name
:
"矩形"
,
nodeCollection
:
"shape"
,
shape
:
"Rectangle"
,
fill
:
"white"
,
stroke
:
"black"
,
category
:
'shape'
},
//geometry
{
name
:
"弯头"
,
nodeCollection
:
"pipe"
,
geometry
:
"F1 M0 40 L0 30 Q0 0 30 0 L40 0 40 20 30 20 Q20 20 20 30 L20 40z"
,
fill
:
"rgba(128, 128, 128, 0.5)"
,
category
:
'geometry'
},
{
name
:
"弯头"
,
nodeCollection
:
"pipe"
,
geometry
:
"F1 M0 40 L0 30 Q0 0 30 0 L40 0 40 20 30 20 Q20 20 20 30 L20 40z"
,
fill
:
"rgba(128, 128, 128, 0.5)"
,
category
:
'geometry'
,
portArray
:[
{
"name"
:
"端口1"
,
"portId"
:
"7b1d1bec-3674-4960-9bd1-901c28940f34"
,
"alignment"
:
"1 0.25 0 0"
,
"fromLinkable"
:
true
,
"toLinkable"
:
true
,
"fromMaxLinks"
:
999
,
"toMaxLinks"
:
999
,
"fromSpot"
:
"1 0.5 0 0"
,
"toSpot"
:
"1 0.5 0 0"
},
{
"name"
:
"端口2"
,
"portId"
:
"4062f627-9bee-4ca5-b00d-cc6b39c566d9"
,
"alignment"
:
"0.25 1 0 0"
,
"fromLinkable"
:
true
,
"toLinkable"
:
true
,
"fromMaxLinks"
:
999
,
"toMaxLinks"
:
999
,
"fromSpot"
:
"0.5 1 0 0"
,
"toSpot"
:
"0.5 1 0 0"
}
]
},
{
name
:
"三头"
,
nodeCollection
:
"pipe"
,
geometry
:
"F1 M0 0 L60 0 60 20 50 20 Q40 20 40 30 L40 40 20 40 20 30 Q20 20 10 20 L0 20z"
,
fill
:
"rgba(128, 128, 128, 0.5)"
,
category
:
'geometry'
,
portArray
:[
{
"name"
:
"端口1"
,
"portId"
:
"854f9c8e-0652-44aa-9705-95dc825ad577"
,
"alignment"
:
"0 0.25 0 0"
,
"fromLinkable"
:
true
,
"toLinkable"
:
true
,
"fromMaxLinks"
:
999
,
"toMaxLinks"
:
999
,
"fromSpot"
:
"0 0.5 0 0"
,
"toSpot"
:
"0 0.5 0 0"
,
"isHighlighted"
:
false
},
{
"name"
:
"端口2"
,
"portId"
:
"9c6c8565-d1f4-46fa-b67b-db673fd127aa"
,
"alignment"
:
"1 0.25 0 0"
,
"fromLinkable"
:
true
,
"toLinkable"
:
true
,
"fromMaxLinks"
:
999
,
"toMaxLinks"
:
999
,
"fromSpot"
:
"1 0.5 0 0"
,
"toSpot"
:
"1 0.5 0 0"
,
"isHighlighted"
:
false
},
{
"name"
:
"端口3"
,
"portId"
:
"d88aaad3-7e10-47ab-81ec-0040f3c21cf7"
,
"alignment"
:
"0.5 1 0 0"
,
"fromLinkable"
:
true
,
"toLinkable"
:
true
,
"fromMaxLinks"
:
999
,
"toMaxLinks"
:
999
,
"fromSpot"
:
"0.5 1 0 0"
,
"toSpot"
:
"0.5 1 0 0"
,
"isHighlighted"
:
false
},
]
},
{
name
:
"四头"
,
nodeCollection
:
"pipe"
,
geometry
:
"F1 M0 0 L20 0 20 20 0 20z"
,
fill
:
"rgba(128, 128, 128, 0.5)"
,
category
:
'geometry'
,
portArray
:[
{
"name"
:
"端口1"
,
"portId"
:
"f0438186-a2ab-43cc-b365-9a7e6dfcdfde"
,
"alignment"
:
"0 0.5 0 0"
,
"fromLinkable"
:
true
,
"toLinkable"
:
true
,
"fromMaxLinks"
:
999
,
"toMaxLinks"
:
999
,
"fromSpot"
:
"0 0.5 0 0"
,
"toSpot"
:
"0 0.5 0 0"
,
"isHighlighted"
:
false
},
{
"name"
:
"端口2"
,
"portId"
:
"5ebe28be-db70-4b3b-873d-0a24211de76a"
,
"alignment"
:
"0.5 0 0 0"
,
"fromLinkable"
:
true
,
"toLinkable"
:
true
,
"fromMaxLinks"
:
999
,
"toMaxLinks"
:
999
,
"fromSpot"
:
"0.5 0 0 0"
,
"toSpot"
:
"0.5 0 0 0"
,
"isHighlighted"
:
false
},
{
"name"
:
"端口3"
,
"portId"
:
"a82cf436-c76d-4643-be62-6215c831abc2"
,
"alignment"
:
"1 0.5 0 0"
,
"fromLinkable"
:
true
,
"toLinkable"
:
true
,
"fromMaxLinks"
:
999
,
"toMaxLinks"
:
999
,
"fromSpot"
:
"1 0.5 0 0"
,
"toSpot"
:
"1 0.5 0 0"
,
"isHighlighted"
:
false
},
{
"name"
:
"端口4"
,
"portId"
:
"630c547b-eb8c-4907-97c1-f7721c58a4df"
,
"alignment"
:
"0.5 1 0 0"
,
"fromLinkable"
:
true
,
"toLinkable"
:
true
,
"fromMaxLinks"
:
999
,
"toMaxLinks"
:
999
,
"fromSpot"
:
"0.5 1 0 0"
,
"toSpot"
:
"0.5 1 0 0"
,
"isHighlighted"
:
false
}
]
}
]
src/kit/NodeTemplateKit.ts
View file @
5eabe37e
...
...
@@ -118,7 +118,7 @@ export var nodeRotateAdornment = GO(go.Adornment,
// 节点选中效果 装饰器
export
var
nodeSelectionAdornment
=
GO
(
go
.
Adornment
,
"Auto"
,
GO
(
go
.
Shape
,
{
fill
:
null
,
stroke
:
"deepskyblue"
,
strokeWidth
:
1
.5
,
strokeDashArray
:
[
4
,
2
]
}),
GO
(
go
.
Shape
,
{
fill
:
null
,
stroke
:
"deepskyblue"
,
strokeWidth
:
0
.5
,
strokeDashArray
:
[
4
,
2
]
}),
GO
(
go
.
Placeholder
)
);
...
...
@@ -138,14 +138,15 @@ export var nodeResizeAdornment = GO(go.Adornment, "Spot",
);
export
var
nodePortTemplate
=
GO
(
go
.
Panel
,
"Spot"
,
{
background
:
"black"
,
desiredSize
:
new
go
.
Size
(
10
,
10
),
cursor
:
"pointer"
},
{
background
:
"black"
,
desiredSize
:
new
go
.
Size
(
5
,
5
),
cursor
:
"pointer"
},
new
go
.
Binding
(
"portId"
,
"portId"
),
new
go
.
Binding
(
"alignment"
,
"alignment"
,
go
.
Spot
.
parse
).
makeTwoWay
(
go
.
Spot
.
stringify
),
new
go
.
Binding
(
"fromLinkable"
,
"fromLinkable"
),
new
go
.
Binding
(
"toLinkable"
,
"toLinkable"
),
new
go
.
Binding
(
"fromSpot"
,
"fromSpot"
,
go
.
Spot
.
parse
).
makeTwoWay
(
go
.
Spot
.
stringify
),
new
go
.
Binding
(
"toSpot"
,
"toSpot"
,
go
.
Spot
.
parse
).
makeTwoWay
(
go
.
Spot
.
stringify
),
new
go
.
Binding
(
'maxLinks'
,
'maxLinks'
),
new
go
.
Binding
(
'fromMaxLinks'
,
'fromMaxLinks'
),
new
go
.
Binding
(
'toMaxLinks'
,
'toMaxLinks'
),
new
go
.
Binding
(
'background'
,
''
,
(
data
)
=>
{
return
data
[
'isHighlighted'
]?
'yellow'
:
'black'
}),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment