@mx-sose-front/mx-sose-graph 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +343 -0
- package/dist/index.d.ts +3937 -0
- package/dist/index.esm.js +74367 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.umd.js +38 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/style.css +1 -0
- package/package.json +70 -0
- package/src/components/ContextMenu.vue +475 -0
- package/src/components/Diagram/StrategicTaxonomyDiagram.vue +141 -0
- package/src/components/Edge/Edge.vue +366 -0
- package/src/components/InteractionLayer.vue +2033 -0
- package/src/components/Label.vue +0 -0
- package/src/components/LineStyle/ConnectionLine.vue +126 -0
- package/src/components/LineStyle/LineStyleMarker.vue +87 -0
- package/src/components/Pin/Pin.vue +220 -0
- package/src/components/Pin/Port.vue +172 -0
- package/src/components/Shape/Action.vue +121 -0
- package/src/components/Shape/ActivityAction.vue +155 -0
- package/src/components/Shape/Block.vue +306 -0
- package/src/components/Shape/ConceptualRole.vue +266 -0
- package/src/components/Shape/Diagram.vue +220 -0
- package/src/components/Shape/DividingLine.vue +594 -0
- package/src/components/Shape/DogEar.vue +224 -0
- package/src/components/Shape/Package.vue +340 -0
- package/src/constants/edgeShapeKeys.ts +81 -0
- package/src/constants/index.ts +440 -0
- package/src/index.ts +28 -0
- package/src/render/shape-registry.ts +17 -0
- package/src/render/shape-renderer.ts +103 -0
- package/src/statics/icons/childIcons/relations@3x.png +0 -0
- package/src/statics/icons/childIcons/role@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/344/277/241/345/217/267@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/344/277/241/346/201/257@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/344/277/241/346/201/257/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/345/206/205/351/203/250/346/265/201/347/250/213/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/345/206/205/351/203/250/350/277/236/351/200/232/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/345/212/250/344/275/234@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/345/217/202/346/225/260@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/345/217/202/346/225/260/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/345/257/271/350/261/241/346/265/201@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/346/211/247/350/241/214/350/200/205@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/346/216/245/345/217/243@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/346/216/247/345/210/266/346/265/201@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/346/246/202/345/277/265/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/346/246/202/345/277/265/350/241/250@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/346/264/273/345/212/250@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/346/264/273/345/212/250/344/270/216/350/203/275/345/212/233/346/230/240/345/260/204/347/237/251/351/230/265@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/346/264/273/345/212/250/345/212/250/344/275/234@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/346/264/273/345/212/250/346/265/201/347/250/213/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/346/264/273/345/212/250/347/273/223/346/236/204/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/346/265/201/347/250/213/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/347/212/266/346/200/201/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/347/253/257/345/217/243@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/347/272/246/346/235/237@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/347/272/246/346/235/237/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/347/272/246/346/235/237/345/256/232/344/271/211/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/347/272/246/346/235/237/350/241/250@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/347/273/223/346/236/204@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/350/207/252/347/224/261/345/210/206/347/261/273/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/350/247/222/350/211/262@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/350/277/236/346/216/245/345/231/250@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/350/277/236/351/200/232/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/350/277/236/351/200/232/350/241/250@3x.png +0 -0
- package/src/statics/icons/childIcons//344/270/232/345/212/241/351/253/230/347/272/247/346/246/202/345/277/265/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//344/272/272/345/221/230@3x.png +0 -0
- package/src/statics/icons/childIcons//344/272/272/345/221/230/345/206/205/351/203/250/346/265/201/347/250/213/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//344/272/272/345/221/230/345/206/205/351/203/250/350/277/236/351/200/232/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//344/272/272/345/221/230/345/217/202/346/225/260/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//344/272/272/345/221/230/346/246/202/345/277/265/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//344/272/272/345/221/230/346/246/202/345/277/265/350/241/250@3x.png +0 -0
- package/src/statics/icons/childIcons//344/272/272/345/221/230/346/265/201/347/250/213/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//344/272/272/345/221/230/347/212/266/346/200/201/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//344/272/272/345/221/230/347/272/246/346/235/237/345/233/276@3x-2.png +0 -0
- package/src/statics/icons/childIcons//344/272/272/345/221/230/347/272/246/346/235/237/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//344/272/272/345/221/230/347/273/223/346/236/204/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//344/272/272/345/221/230/350/277/236/351/200/232/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//344/272/272/345/221/230/350/277/236/351/200/232/350/241/250@3x.png +0 -0
- package/src/statics/icons/childIcons//344/273/267/345/200/274/346/265/201@3x.png +0 -0
- package/src/statics/icons/childIcons//344/273/273/346/204/217/345/205/263/347/263/273@3x.png +0 -0
- package/src/statics/icons/childIcons//344/273/273/346/204/217/350/277/236/346/216/245/345/231/250@3x.png +0 -0
- package/src/statics/icons/childIcons//344/274/201/344/270/232/344/275/277/345/221/275@3x.png +0 -0
- package/src/statics/icons/childIcons//344/274/201/344/270/232/345/205/250/347/224/237/345/221/275/345/221/250/346/234/237@3x.png +0 -0
- package/src/statics/icons/childIcons//344/274/201/344/270/232/346/204/277/346/231/257@3x.png +0 -0
- package/src/statics/icons/childIcons//344/274/201/344/270/232/347/233/256/346/240/207@3x.png +0 -0
- package/src/statics/icons/childIcons//344/275/215/347/275/256@3x.png +0 -0
- package/src/statics/icons/childIcons//344/275/223/347/263/273/346/236/266/346/236/204@3x.png +0 -0
- package/src/statics/icons/childIcons//344/276/235/350/265/226@3x.png +0 -0
- package/src/statics/icons/childIcons//344/277/235/346/212/244@3x.png +0 -0
- package/src/statics/icons/childIcons//344/277/241/346/201/257/346/250/241/345/236/213@3x.png +0 -0
- package/src/statics/icons/childIcons//345/210/233/351/200/240@3x.png +0 -0
- package/src/statics/icons/childIcons//345/212/237/350/203/275@3x.png +0 -0
- package/src/statics/icons/childIcons//345/212/237/350/203/275/344/270/216/344/270/232/345/212/241/346/264/273/345/212/250/346/230/240/345/260/204/347/237/251/351/230/265@3x.png +0 -0
- package/src/statics/icons/childIcons//345/212/237/350/203/275/345/212/250/344/275/234@3x.png +0 -0
- package/src/statics/icons/childIcons//345/212/237/350/203/275/345/257/271/350/261/241/346/265/201@3x.png +0 -0
- package/src/statics/icons/childIcons//345/212/237/350/203/275/346/216/247/345/210/266/346/265/201@3x.png +0 -0
- package/src/statics/icons/childIcons//345/217/214/345/220/221/345/205/263/350/201/224@3x.png +0 -0
- package/src/statics/icons/childIcons//345/217/227/345/210/260/345/275/261/345/223/215@3x.png +0 -0
- package/src/statics/icons/childIcons//345/234/260/347/220/206/346/224/277/346/262/273/350/214/203/345/233/264/347/261/273/345/236/213@3x.png +0 -0
- package/src/statics/icons/childIcons//345/241/253/345/206/231/350/201/214/344/275/215/347/224/263/350/257/267@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/211/345/205/250/345/206/205/351/203/250/346/265/201/347/250/213/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/211/345/205/250/346/216/247/345/210/266@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/211/345/205/250/346/246/202/345/277/265/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/211/345/205/250/346/246/202/345/277/265/350/241/250@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/211/345/205/250/346/265/201/347/250/213@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/211/345/205/250/346/265/201/347/250/213/345/212/250/344/275/234@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/211/345/205/250/346/265/201/347/250/213/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/211/345/205/250/347/272/246/346/235/237@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/211/345/205/250/347/272/246/346/235/237/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/211/345/205/250/347/272/246/346/235/237/345/256/232/344/271/211/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/211/345/205/250/347/273/223/346/236/204/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/211/345/205/250/350/277/236/351/200/232/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/211/345/205/250/350/277/236/351/200/232/350/241/250@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/211/345/205/250/351/232/224/347/246/273@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/211/345/205/250/351/243/216/351/231/251@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/232/345/220/221/345/205/263/347/263/273@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/232/345/220/221/345/205/263/350/201/224@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/232/345/220/221/347/273/204/346/210/220@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/232/345/220/221/350/201/232/345/220/210@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/236/351/231/205/344/272/272/345/221/230@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/236/351/231/205/344/274/201/344/270/232/351/230/266/346/256/265@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/236/351/231/205/344/275/215/347/275/256@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/236/351/231/205/345/261/236/346/200/247/350/256/276/347/275/256@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/236/351/231/205/346/210/230/347/225/245/351/230/266/346/256/265/347/224/230/347/211/271/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/236/351/231/205/346/214/201/347/273/255/344/273/273/345/212/241@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/236/351/231/205/346/234/215/345/212/241@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/236/351/231/205/346/235/241/344/273/266@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/236/351/231/205/347/216/257/345/242/203@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/236/351/231/205/347/273/204/347/273/207@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/236/351/231/205/350/201/214/344/275/215@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/236/351/231/205/350/201/214/350/264/243@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/236/351/231/205/350/264/243/344/273/273@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/236/351/231/205/350/265/204/346/272/220@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/236/351/231/205/350/265/204/346/272/220/344/270/216/345/256/236/351/231/205/351/241/271/347/233/256/345/257/271/345/272/224/345/205/263/347/263/273/347/237/251/351/230/265@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/236/351/231/205/350/265/204/346/272/220/346/246/202/345/277/265/347/237/251/351/230/265@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/236/351/231/205/350/265/204/346/272/220/347/273/223/346/236/204/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/236/351/231/205/350/265/204/346/272/220/350/277/236/351/200/232/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/236/351/231/205/351/241/271/347/233/256@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/236/351/231/205/351/241/271/347/233/256/344/270/216/350/203/275/345/212/233/347/232/204/346/230/240/345/260/204/347/237/251/351/230/265@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/236/351/231/205/351/241/271/347/233/256/351/207/214/347/250/213/347/242/221@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/236/351/231/205/351/241/271/347/233/256/351/207/214/347/250/213/347/242/221/346/261/207/346/200/273/350/241/250@3x.png +0 -0
- package/src/statics/icons/childIcons//345/256/236/351/231/205/351/243/216/351/231/251@3x.png +0 -0
- package/src/statics/icons/childIcons//345/261/225/347/244/272@3x.png +0 -0
- package/src/statics/icons/childIcons//345/267/262/347/237/245/350/265/204/346/272/220@3x.png +0 -0
- package/src/statics/icons/childIcons//345/274/200/345/261/225/345/267/245/344/275/234/350/203/275/345/212/233@3x.png +0 -0
- package/src/statics/icons/childIcons//345/274/225/347/224/250/345/261/236/346/200/247@3x.png +0 -0
- package/src/statics/icons/childIcons//345/275/261/345/223/215@3x-2.png +0 -0
- package/src/statics/icons/childIcons//345/275/261/345/223/215@3x.png +0 -0
- package/src/statics/icons/childIcons//346/204/277/346/231/257/345/256/243/350/250/200@3x.png +0 -0
- package/src/statics/icons/childIcons//346/210/230/347/225/245@3x.png +0 -0
- package/src/statics/icons/childIcons//346/210/230/347/225/245/344/277/241/346/201/257@3x.png +0 -0
- package/src/statics/icons/childIcons//346/210/230/347/225/245/344/277/241/346/201/257/345/233/276@3x-2.png +0 -0
- package/src/statics/icons/childIcons//346/210/230/347/225/245/344/277/241/346/201/257/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//346/210/230/347/225/245/345/217/202/346/225/260/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//346/210/230/347/225/245/345/256/236/351/231/205/346/210/230/347/225/245/351/230/266/346/256/265/345/210/206/347/261/273/350/241/250@3x.png +0 -0
- package/src/statics/icons/childIcons//346/210/230/347/225/245/345/256/236/351/231/205/351/203/250/347/275/262/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//346/210/230/347/225/245/346/246/202/345/277/265/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//346/210/230/347/225/245/346/265/201/347/250/213/345/233/276@3x-2.png +0 -0
- package/src/statics/icons/childIcons//346/210/230/347/225/245/346/265/201/347/250/213/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//346/210/230/347/225/245/347/212/266/346/200/201/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//346/210/230/347/225/245/347/272/246/346/235/237@3x.png +0 -0
- package/src/statics/icons/childIcons//346/210/230/347/225/245/347/272/246/346/235/237/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//346/210/230/347/225/245/347/272/246/346/235/237/345/256/232/344/271/211/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//346/210/230/347/225/245/347/273/223/346/236/204/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//346/210/230/347/225/245/350/277/236/351/200/232/345/233/276@3x-2.png +0 -0
- package/src/statics/icons/childIcons//346/210/230/347/225/245/350/277/236/351/200/232/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//346/210/230/347/225/245/350/277/236/351/200/232/347/237/251/351/230/265@3x-2.png +0 -0
- package/src/statics/icons/childIcons//346/210/230/347/225/245/350/277/236/351/200/232/347/237/251/351/230/265@3x.png +0 -0
- package/src/statics/icons/childIcons//346/210/230/347/225/245/351/230/266/346/256/265@3x.png +0 -0
- package/src/statics/icons/childIcons//346/211/247/350/241/214@3x.png +0 -0
- package/src/statics/icons/childIcons//346/211/247/350/241/214/350/200/205/345/206/205/351/203/250/350/277/236/351/200/232/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//346/211/247/350/241/214/350/200/205/346/246/202/345/277/265/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//346/211/247/350/241/214/350/200/205/347/273/223/346/236/204/345/233/276@3x-2.png +0 -0
- package/src/statics/icons/childIcons//346/211/247/350/241/214/350/200/205/347/273/223/346/236/204/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//346/211/247/350/241/214/350/200/205/350/277/236/351/200/232/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//346/211/277/346/213/205/351/243/216/351/231/251@3x.png +0 -0
- package/src/statics/icons/childIcons//346/212/200/346/234/257@3x.png +0 -0
- package/src/statics/icons/childIcons//346/213/245/346/234/211/346/265/201/347/250/213@3x.png +0 -0
- package/src/statics/icons/childIcons//346/217/220/344/276/233/346/235/203/351/231/220@3x.png +0 -0
- package/src/statics/icons/childIcons//346/227/266/346/234/272@3x.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241@3x.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241/344/270/216/344/270/232/345/212/241/346/264/273/345/212/250/346/230/240/345/260/204/347/237/251/351/230/265@3x.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241/344/270/216/346/234/215/345/212/241/345/220/210/345/220/214/346/230/240/345/260/204/347/237/251/351/230/265@3x.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241/344/270/216/350/203/275/345/212/233/346/230/240/345/260/204/347/237/251/351/230/265@3x.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241/344/277/241/345/217/267@3x.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241/345/206/205/351/203/250/346/265/201/347/250/213/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241/345/206/205/351/203/250/350/277/236/351/200/232/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241/345/212/237/350/203/275@3x.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241/345/212/237/350/203/275/345/212/250/344/275/234@3x.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241/345/212/250/344/275/234@3x.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241/345/217/202/346/225/260@3x.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241/345/217/202/346/225/260/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241/345/257/271/350/261/241/346/265/201@3x.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241/346/216/245/345/217/243@3x.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241/346/216/247/345/210/266/346/265/201@3x.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241/346/246/202/345/277/265/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241/346/246/202/345/277/265/350/241/250@3x.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241/346/265/201/347/250/213/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241/347/212/266/346/200/201/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241/347/253/257/345/217/243@3x.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241/347/272/246/346/235/237/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241/347/272/246/346/235/237/345/256/232/344/271/211/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241/347/273/223/346/236/204@3x.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241/347/273/223/346/236/204/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241/350/247/222/350/211/262@3x.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241/350/267/257/347/272/277/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241/350/277/236/346/216/245/345/231/250@3x.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241/350/277/236/351/200/232/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241/350/277/236/351/200/232/350/241/250@3x-2.png +0 -0
- package/src/statics/icons/childIcons//346/234/215/345/212/241/350/277/236/351/200/232/350/241/250@3x.png +0 -0
- package/src/statics/icons/childIcons//346/235/203/351/231/220@3x.png +0 -0
- package/src/statics/icons/childIcons//346/235/241/344/273/266@3x.png +0 -0
- package/src/statics/icons/childIcons//346/240/207/345/207/206/344/270/232/345/212/241/346/264/273/345/212/250@3x.png +0 -0
- package/src/statics/icons/childIcons//346/240/207/345/207/206/346/246/202/345/277/265/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//346/240/207/345/207/206/346/246/202/345/277/265/350/241/250@3x.png +0 -0
- package/src/statics/icons/childIcons//346/240/207/345/207/206/347/273/223/346/236/204/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//346/240/207/345/207/206/350/267/257/347/272/277/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//346/240/207/345/207/206/350/277/275/346/272/257/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//346/246/202/345/277/265/350/247/222/350/211/262@3x.png +0 -0
- package/src/statics/icons/childIcons//346/263/233/345/214/226@3x.png +0 -0
- package/src/statics/icons/childIcons//347/212/266/345/206/265@3x.png +0 -0
- package/src/statics/icons/childIcons//347/216/257/345/242/203@3x.png +0 -0
- package/src/statics/icons/childIcons//347/233/270/346/257/224@3x (1).png +0 -0
- package/src/statics/icons/childIcons//347/263/273/347/273/237@3x.png +0 -0
- package/src/statics/icons/childIcons//347/273/204/346/210/220@3x.png +0 -0
- package/src/statics/icons/childIcons//347/273/204/347/273/207@3x.png +0 -0
- package/src/statics/icons/childIcons//347/273/204/347/273/207/351/230/266/346/256/265@3x.png +0 -0
- package/src/statics/icons/childIcons//347/273/221/345/256/232/350/277/236/346/216/245/345/231/250@3x.png +0 -0
- package/src/statics/icons/childIcons//347/274/223/350/247/243@3x.png +0 -0
- package/src/statics/icons/childIcons//350/201/214/344/275/215@3x.png +0 -0
- package/src/statics/icons/childIcons//350/201/232/345/220/210@3x.png +0 -0
- package/src/statics/icons/childIcons//350/203/275/345/212/233@3x.png +0 -0
- package/src/statics/icons/childIcons//350/203/275/345/212/233/350/201/214/350/264/243@3x.png +0 -0
- package/src/statics/icons/childIcons//350/203/275/345/212/233/351/205/215/347/275/256@3x.png +0 -0
- package/src/statics/icons/childIcons//350/203/275/345/244/237/350/203/234/344/273/273@3x.png +0 -0
- package/src/statics/icons/childIcons//350/207/252/347/204/266/350/265/204/346/272/220@3x.png +0 -0
- package/src/statics/icons/childIcons//350/246/201/346/261/202@3x.png +0 -0
- package/src/statics/icons/childIcons//350/256/276/347/275/256/347/261/273/345/236/213.png +0 -0
- package/src/statics/icons/childIcons//350/264/237/350/264/243@3x.png +0 -0
- package/src/statics/icons/childIcons//350/264/243/344/273/273@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/344/272/247/351/243/216/351/231/251/346/230/240/345/260/204/347/237/251/351/230/265@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/346/272/220/344/270/216/344/270/232/345/212/241/346/264/273/345/212/250/346/230/240/345/260/204/347/237/251/351/230/265@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/346/272/220/344/270/216/350/203/275/345/212/233/346/230/240/345/260/204/347/237/251/351/230/265@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/346/272/220/344/277/241/345/217/267@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/346/272/220/344/277/241/346/201/257@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/346/272/220/344/277/241/346/201/257/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/346/272/220/345/206/205/351/203/250/346/265/201/347/250/213/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/346/272/220/345/206/205/351/203/250/350/277/236/351/200/232/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/346/272/220/345/212/250/344/275/234@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/346/272/220/345/217/202/346/225/260@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/346/272/220/345/217/202/346/225/260/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/346/272/220/345/267/245/344/273/266@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/346/272/220/346/216/245/345/217/243@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/346/272/220/346/234/215/345/212/241@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/346/272/220/346/236/266/346/236/204@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/346/272/220/346/246/202/345/277/265/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/346/272/220/346/246/202/345/277/265/350/241/250@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/346/272/220/346/264/273/345/212/250/346/265/201/347/250/213/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/346/272/220/346/264/273/345/212/250/347/273/223/346/236/204/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/346/272/220/346/265/201/347/250/213/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/346/272/220/347/212/266/346/200/201/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/346/272/220/347/253/257/345/217/243@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/346/272/220/347/272/246/346/235/237@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/346/272/220/347/273/223/346/236/204@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/346/272/220/347/273/223/346/236/204/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/346/272/220/347/274/223/350/247/243/346/216/252/346/226/275@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/346/272/220/350/247/222/350/211/262@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/346/272/220/350/277/236/346/216/245/345/231/250@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/346/272/220/350/277/236/351/200/232/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//350/265/204/346/272/220/350/277/236/351/200/232/350/241/250@3x.png +0 -0
- package/src/statics/icons/childIcons//350/275/257/344/273/266@3x.png +0 -0
- package/src/statics/icons/childIcons//350/276/223/345/205/245/346/240/223@3x.png +0 -0
- package/src/statics/icons/childIcons//350/276/223/345/207/272/346/240/223@3x.png +0 -0
- package/src/statics/icons/childIcons//350/276/276/345/210/260@3x.png +0 -0
- package/src/statics/icons/childIcons//350/277/236/346/216/245/345/231/250@3x.png +0 -0
- package/src/statics/icons/childIcons//350/277/236/347/272/277@3x.png +0 -0
- package/src/statics/icons/childIcons//351/207/214/347/250/213/347/242/221/344/276/235/350/265/226@3x.png +0 -0
- package/src/statics/icons/childIcons//351/230/266/346/256/265@3x.png +0 -0
- package/src/statics/icons/childIcons//351/234/200/346/261/202/346/235/203/351/231/220@3x.png +0 -0
- package/src/statics/icons/childIcons//351/241/266/347/272/247/344/270/232/345/212/241/346/246/202/345/277/265/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//351/241/271/347/233/256@3x.png +0 -0
- package/src/statics/icons/childIcons//351/241/271/347/233/256/344/270/273/351/242/230@3x.png +0 -0
- package/src/statics/icons/childIcons//351/241/271/347/233/256/345/206/205/351/203/250/346/265/201/347/250/213/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//351/241/271/347/233/256/346/246/202/345/277/265/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//351/241/271/347/233/256/346/246/202/345/277/265/350/241/250@3x.png +0 -0
- package/src/statics/icons/childIcons//351/241/271/347/233/256/346/264/273/345/212/250@3x.png +0 -0
- package/src/statics/icons/childIcons//351/241/271/347/233/256/346/264/273/345/212/250/344/270/216/350/203/275/345/212/233/347/232/204/346/230/240/345/260/204/347/237/251/351/230/265@3x.png +0 -0
- package/src/statics/icons/childIcons//351/241/271/347/233/256/346/264/273/345/212/250/345/212/250/344/275/234@3x.png +0 -0
- package/src/statics/icons/childIcons//351/241/271/347/233/256/346/265/201/347/250/213/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//351/241/271/347/233/256/347/273/223/346/236/204/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//351/241/271/347/233/256/350/247/222/350/211/262@3x.png +0 -0
- package/src/statics/icons/childIcons//351/241/271/347/233/256/350/267/257/347/272/277/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//351/241/271/347/233/256/350/277/236/351/200/232/345/233/276@3x.png +0 -0
- package/src/statics/icons/childIcons//351/241/271/347/233/256/351/207/214/347/250/213/347/242/221@3x.png +0 -0
- package/src/statics/icons/childIcons//351/241/271/347/233/256/351/207/214/347/250/213/347/242/221/350/247/222/350/211/262@3x.png +0 -0
- package/src/statics/icons/childIcons//351/241/272/345/272/217@3x-2.png +0 -0
- package/src/statics/icons/childIcons//351/241/272/345/272/217@3x.png +0 -0
- package/src/statics/icons/childIcons//351/243/216/351/231/251@3x.png +0 -0
- package/src/statics/icons/childIcons//351/243/216/351/231/251/344/270/216/345/256/211/345/205/250/346/216/247/345/210/266/346/230/240/345/260/204/347/237/251/351/230/265@3x.png +0 -0
- package/src/statics/icons/childIcons//351/253/230/347/272/247/344/270/232/345/212/241/346/246/202/345/277/265@3x.png +0 -0
- package/src/statics/icons/createMenu/config.png +0 -0
- package/src/statics/icons/createMenu/contact.png +0 -0
- package/src/statics/icons/createMenu/copy.png +0 -0
- package/src/statics/icons/createMenu/delete.png +0 -0
- package/src/statics/icons/createMenu/diagram.png +0 -0
- package/src/statics/icons/createMenu/element.png +0 -0
- package/src/statics/icons/createMenu/locateChart.png +0 -0
- package/src/statics/icons/createMenu/paste.png +0 -0
- package/src/statics/icons/createMenu/rename.png +0 -0
- package/src/statics/icons/createMenu/scissors.png +0 -0
- package/src/store/eventBus.ts +38 -0
- package/src/store/graphStore.ts +782 -0
- package/src/store/index.ts +8 -0
- package/src/style/index.css +1 -0
- package/src/style/tailwind.css +33 -0
- package/src/types/index.ts +200 -0
- package/src/utils/autoExpandParent.ts +94 -0
- package/src/utils/colorUtils.ts +137 -0
- package/src/utils/compartment.ts +534 -0
- package/src/utils/containers.ts +910 -0
- package/src/utils/diagram.ts +403 -0
- package/src/utils/dom.ts +21 -0
- package/src/utils/drag.ts +224 -0
- package/src/utils/edgeUtils.ts +787 -0
- package/src/utils/geom.ts +177 -0
- package/src/utils/graphDragService.ts +329 -0
- package/src/utils/highlightUtils.ts +162 -0
- package/src/utils/hittest.ts +135 -0
- package/src/utils/iconLoader.ts +105 -0
- package/src/utils/index.ts +20 -0
- package/src/utils/packgeMap.ts +1 -0
- package/src/utils/pinUtils.ts +484 -0
- package/src/utils/policy.ts +212 -0
- package/src/utils/zorder.ts +39 -0
- package/src/view/graph.vue +419 -0
- package/src/vite-env.d.ts +33 -0
|
@@ -0,0 +1,440 @@
|
|
|
1
|
+
// Shape类型常量
|
|
2
|
+
export const ShapeType = {
|
|
3
|
+
Diagram: 'Diagram', // 图
|
|
4
|
+
Edge: 'Edge', // 线
|
|
5
|
+
Port: 'Port', // 端口
|
|
6
|
+
Label: 'Label', // 标签
|
|
7
|
+
Shape: 'Shape', // 图元
|
|
8
|
+
ConceptualRole: 'ConceptualRole', //概念角色
|
|
9
|
+
} as const
|
|
10
|
+
|
|
11
|
+
// 导出类型
|
|
12
|
+
export type ShapeTypeValue = typeof ShapeType[keyof typeof ShapeType]
|
|
13
|
+
|
|
14
|
+
// 形状类型常量
|
|
15
|
+
export const BlockKeyMap = {
|
|
16
|
+
'ArchitecturalDescription': 'Package', //体系架构
|
|
17
|
+
'Capability': 'Block', //能力
|
|
18
|
+
'StrategicPhase': 'Block', //战略阶段
|
|
19
|
+
'ActualEnterprisePhase': 'Block', //实际企业阶段
|
|
20
|
+
'WholeLifeEnterprise': 'Block', //全企业生命周期
|
|
21
|
+
'EnterpriseMission': 'Block',//企业使命
|
|
22
|
+
'ActualEnduringTask': 'Block',//实际持续任务
|
|
23
|
+
'ValueStream': 'Block',//价值流
|
|
24
|
+
'StrategicInformation': 'Block',//战略信息
|
|
25
|
+
'GeoPoliticalExtentType': 'Block',//地理政治范围类型
|
|
26
|
+
'CapabilityConfiguration': 'Block',//能力配置
|
|
27
|
+
'EnterpriseGoal': 'DividingLine', //企业目标
|
|
28
|
+
"EnterpriseVision": "Block", //企业愿景
|
|
29
|
+
"ActualOrganization": "Block", //实际组织
|
|
30
|
+
"VisionStatement": "Block", //愿景宣言
|
|
31
|
+
'ActualCondition': 'Block',//实际情况
|
|
32
|
+
'ActualEnvironment': 'Block',//实际环境
|
|
33
|
+
'ActualLocation': 'Block',//实际位置
|
|
34
|
+
'Location': 'Block',//位置
|
|
35
|
+
'Condition': 'Block',//状况条件
|
|
36
|
+
'Environment': 'Block',//环境
|
|
37
|
+
'Concern': 'Block', //涉及
|
|
38
|
+
'ActualPost': 'Block', //实际职责,
|
|
39
|
+
'Strategic': 'Package', // 战略层
|
|
40
|
+
'StrategicTaxonomyDiagram': 'Diagram', //战略概念图
|
|
41
|
+
'StrategicInformationDiagram': 'Diagram', //战略信息图
|
|
42
|
+
'StrategicStructureDiagram': 'Diagram', //战略结构图
|
|
43
|
+
'StrategicConnectivityDiagram': 'Diagram', //战略连通图
|
|
44
|
+
// 'StrategicConnectivityMatrixDiagram':'StrategicTaxonomyDiagram', //战略连通矩阵
|
|
45
|
+
'StrategicStatesDiagram': 'Diagram', //战略状态图
|
|
46
|
+
'StrategicProcessesDiagram': 'Diagram', //战略流程图
|
|
47
|
+
'StrategicParametersDiagram': 'Diagram', //战略参数图
|
|
48
|
+
'StrategicConstraintsDiagram': 'Diagram', //战略约束图
|
|
49
|
+
'StrategicConstraintsDefinitionDiagram': 'Diagram', //战略约束定义图
|
|
50
|
+
// 'ActualStrategicPhasesGanttChart': 'StrategicTaxonomyDiagram', //实际战略阶段甘特图
|
|
51
|
+
// 'StrategicActualDeploymentDiagram': 'StrategicTaxonomyDiagram', //战略实际部署图
|
|
52
|
+
// 'ActualStrategicPhasesToCapabilitiesMappingMatrix': 'StrategicTaxonomyDiagram', //实际战略阶段与能力映射矩阵
|
|
53
|
+
'OperationalTaxonomyDiagram': 'Diagram', //业务概念图
|
|
54
|
+
'HighLevelOperationalConceptDiagram': 'Diagram', //顶级业务概念图
|
|
55
|
+
'OperationalFreeFormTaxonomyDiagram': 'Diagram', //业务自由分类图
|
|
56
|
+
'OperationalStructureDiagram': 'Diagram', //业务结构图
|
|
57
|
+
'OperationalConnectivityDiagram': 'Diagram', //业务连通图
|
|
58
|
+
'OperationalInternalConnectivityDiagram': 'Diagram', //业务内部连通图
|
|
59
|
+
'OperationalProcessesDiagram': 'Diagram', //业务流程图
|
|
60
|
+
'OperationalProcessesFlowDiagram': 'Diagram', //业务内部流程图
|
|
61
|
+
'OperationalStatesDiagram': 'Diagram', //业务状态图
|
|
62
|
+
'OperationalInformationDiagram': 'Diagram', //业务信息图
|
|
63
|
+
'OperationalParametricDiagram': 'Diagram', //业务参数图
|
|
64
|
+
'OperationalConstraintsDiagram': 'Diagram', //业务约束图
|
|
65
|
+
'OperationalConstraintsDefinitionDiagram': 'Diagram', //业务约束定义图
|
|
66
|
+
'StrategicTaxonomyTable': 'Diagram', //战略概念表
|
|
67
|
+
'StrategicConnectivityMatrixDiagram': 'Diagram', //战略连通矩阵图
|
|
68
|
+
'StrategicActualStrategicPhaseTaxonomyTable': "Diagram", //战略实际战略阶段分类表
|
|
69
|
+
'ActualStrategicPhasesGanttChart': "Diagram", //实际战略阶段甘特图
|
|
70
|
+
'StrategicActualDeploymentDiagram': "Diagram", //战略实际部署图
|
|
71
|
+
'ActualStrategicPhasesToCapabilitiesMappingMatrix': "Diagram", //实际战略阶段与能力映射矩阵
|
|
72
|
+
'OperationalConnectivityTable': "Diagram", //业务连通表
|
|
73
|
+
'OperationalActivitiesToCapabilitiesMappingMatrix': "Diagram", //业务活动与能力映射矩阵
|
|
74
|
+
'OperationalPerformersToCapabilitiesMappingMatrix': "Diagram", //业务执行者与能力映射矩阵
|
|
75
|
+
'ServicesTaxonomyDiagram': "Diagram", //服务概念图
|
|
76
|
+
'ServicesTaxonomyTable': "Diagram", //服务概念表
|
|
77
|
+
'ServicesStructureDiagram': "Diagram", //服务结构图
|
|
78
|
+
'ServicesConnectivityDiagram': "Diagram", //服务连通图
|
|
79
|
+
'ServicesConnectivityMatrixDiagram': "Diagram", //服务连通矩阵图
|
|
80
|
+
'ServicesConnectivityTable': "Diagram", //服务连通表
|
|
81
|
+
'ServicesInternalConnectivityDiagram': "Diagram", //服务内部连通图
|
|
82
|
+
'ServicesProcessesDiagram': "Diagram", //服务流程图
|
|
83
|
+
'ServicesProcessesFlowDiagram': "Diagram", //服务内部流程图
|
|
84
|
+
'ServicesStatesDiagram': "Diagram", //服务状态图
|
|
85
|
+
'ServicesParametricDiagram': "Diagram", //服务参数图
|
|
86
|
+
'ServicesConstraintsDiagram': "Diagram", //服务约束图
|
|
87
|
+
'ServicesConstraintsDefinitionDiagram': "Diagram", //服务约束定义图
|
|
88
|
+
'ServicesRoadmapDiagram': "Diagram", //服务路线图
|
|
89
|
+
'ServicesToCapabilitiesMappingMatrix': "Diagram", //服务与能力映射矩阵
|
|
90
|
+
'ServicesToOperationalActivitiesMappingMatrix': "Diagram", //服务与业务活动映射矩阵
|
|
91
|
+
'ServicesToServiceContractsMappingMatrix': "Diagram", //服务与服务合同映射矩阵
|
|
92
|
+
'PersonnelTaxonomyDiagram': "Diagram", //人员概念图
|
|
93
|
+
'PersonnelTaxonomyTable': "Diagram", //人员概念表
|
|
94
|
+
'PersonnelStructureDiagram': "Diagram", //人员结构图
|
|
95
|
+
'PersonnelConnectivityDiagram': "Diagram", //人员连通图
|
|
96
|
+
'PersonnelConnectivityTable': "Diagram", //人员连通表
|
|
97
|
+
'PersonnelInternalConnectivityDiagram': "Diagram", //人员内部连通图
|
|
98
|
+
'PersonnelProcessesDiagram': "Diagram", //人员流程图
|
|
99
|
+
'PersonnelProcessesFlowDiagram': "Diagram", //人员内部流程图
|
|
100
|
+
'PersonnelStatesDiagram': "Diagram", //人员状态图
|
|
101
|
+
'PersonnelParametricDiagram': "Diagram", //人员参数图
|
|
102
|
+
'PersonnelConstraintsDiagram': "Diagram", //人员约束图
|
|
103
|
+
'PersonnelConstraintsDefinitionDiagram': "Diagram", //人员约束定义图
|
|
104
|
+
'ResourcesTaxonomyDiagram': "Diagram", //资源概念图
|
|
105
|
+
'ResourcesTaxonomyTable': "Diagram", //资源概念表
|
|
106
|
+
'ResourcesStructureDiagram': "Diagram", //资源结构图
|
|
107
|
+
'ResourcesConnectivityDiagram': "Diagram", //资源连通图
|
|
108
|
+
'ResourcesConnectivityTable': "Diagram", //资源连通表
|
|
109
|
+
'ResourcesInternalConnectivityDiagram': "Diagram", //资源内部连通图
|
|
110
|
+
'ResourcesProcessesDiagram': "Diagram", //资源流程图
|
|
111
|
+
'ResourcesProcessesFlowDiagram': "Diagram", //资源内部流程图
|
|
112
|
+
'ResourcesStatesDiagram': "Diagram", //资源状态图
|
|
113
|
+
'ResourcesInformationDiagram': "Diagram", //资源信息图
|
|
114
|
+
'ResourcesParametricDiagram': "Diagram", //资源参数图
|
|
115
|
+
'FunctionsToOperationalActivitiesMappingMatrix': "Diagram", //功能与业务活动映射矩阵
|
|
116
|
+
'ResourcesToCapabilitiesMappingMatrix': "Diagram", //资源与能力映射矩阵
|
|
117
|
+
'ResourcesToOperationalActivitiesMappingMatrix': "Diagram", //资源与业务活动映射矩阵
|
|
118
|
+
'SecurityTaxonomyDiagram': "Diagram", //安全概念图
|
|
119
|
+
'SecurityTaxonomyTable': "Diagram", //安全概念表
|
|
120
|
+
'SecurityStructureDiagram': "Diagram", //安全结构图
|
|
121
|
+
'SecurityConnectivityDiagram': "Diagram", //安全连通图
|
|
122
|
+
'SecurityConnectivityTable': "Diagram", //安全连通表
|
|
123
|
+
'SecurityProcessesDiagram': "Diagram", //安全流程图
|
|
124
|
+
'SecurityProcessesFlowDiagram': "Diagram", //安全内部流程图
|
|
125
|
+
'SecurityConstraintsDiagram': "Diagram", //安全约束图
|
|
126
|
+
'SecurityConstraintsDefinitionDiagram': "Diagram", //安全约束定义图
|
|
127
|
+
'RisksToAssetsMappingMatrix': "Diagram", //资产风险映射矩阵
|
|
128
|
+
'SecurityControlsToRisksMappingMatrix': "Diagram", //风险与安全控制映射矩阵
|
|
129
|
+
'ProjectsTaxonomyDiagram': "Diagram", //项目概念图
|
|
130
|
+
'ProjectsTaxonomyTable': "Diagram", //项目概念表
|
|
131
|
+
'ProjectsStructureDiagram': "Diagram", //项目结构图
|
|
132
|
+
'ProjectsConnectivityDiagram': "Diagram", //项目连通图
|
|
133
|
+
'ProjectsProcessesDiagram': "Diagram", //项目流程图
|
|
134
|
+
'ProjectsProcessesFlowDiagram': "Diagram", //项目内部流程图
|
|
135
|
+
'ActualProjectMilestoneSummaryTable': "Diagram", //实际项目里程碑汇总表
|
|
136
|
+
'ProjectsRoadmapDiagram': "Diagram", //项目路线图
|
|
137
|
+
'ActualProjectsToCapabilitiesMappingMatrix': "Diagram", //实际项目与能力映射矩阵
|
|
138
|
+
'ActualResponsibleResourcesToActualProjectsMappingMatrix': "Diagram", //实际资源与实际项目对应关系矩阵
|
|
139
|
+
'ProjectActivitiesToCapabilitiesMappingMatrix': "Diagram", //项目活动与能力映射矩阵
|
|
140
|
+
'StandardsTaxonomyDiagram': "Diagram", //标准概念图
|
|
141
|
+
'StandardsTaxonomyTable': "Diagram", //标准概念表
|
|
142
|
+
'StandardsStructureDiagram': "Diagram", //标准结构图
|
|
143
|
+
'StandardsRoadmapDiagram': "Diagram", //标准路线图
|
|
144
|
+
'StandardsTraceabilityDiagram': "Diagram", //标准追溯图
|
|
145
|
+
'ActualResourcesTaxonomyMatrix': "Diagram", //实际资源概念矩阵
|
|
146
|
+
'ActualResourcesStructureDiagram': "Diagram", //实际资源结构图
|
|
147
|
+
'ActualResourcesConnectivityDiagram': "Diagram", //实际资源连通图
|
|
148
|
+
'OperationalInformation': 'Block',//业务信息
|
|
149
|
+
'ResourceInformation': 'Block',//资源信息
|
|
150
|
+
'ActualResource': 'Block',//实际资源
|
|
151
|
+
'InformationModel': 'Package',//信息模型
|
|
152
|
+
'Opportunity': 'DividingLine', //时机
|
|
153
|
+
'OperationalRole': 'Block',//业务角色
|
|
154
|
+
'StandardOperationalActivity': 'Block',//标准业务活动
|
|
155
|
+
'OperationalParameter': 'Block', //业务参数
|
|
156
|
+
'OperationalPerformer': 'Block',//业务执行者
|
|
157
|
+
'OperationalArchitecture': 'Block',//业务结构
|
|
158
|
+
'KnownResource': 'Block',//已知资源
|
|
159
|
+
'NaturalResource': 'Block',//自然资源
|
|
160
|
+
'ResourceArchitecture': 'Block',//资源架构
|
|
161
|
+
'ResourceArtifact': 'Block',//资源工件
|
|
162
|
+
'Software': 'Block',//软件
|
|
163
|
+
'Technology': 'Block',//技术
|
|
164
|
+
'ResourceService': 'Block',//资源服务
|
|
165
|
+
'ResourceInterface': 'Block',//资源接口
|
|
166
|
+
'Function': 'Block',//方法
|
|
167
|
+
'ServiceArchitecture': 'Block',//服务架构
|
|
168
|
+
'ServiceInterface': 'Block',//服务接口
|
|
169
|
+
'ServiceFunction': 'Block',//服务功能
|
|
170
|
+
'ServiceSignal': 'Block',//服务信号
|
|
171
|
+
'ServiceRole': 'Block',//服务角色
|
|
172
|
+
'FunctionAction': 'ActivityAction',//功能动作
|
|
173
|
+
'ServiceFunctionAction': 'ActivityAction',//服务功能动作
|
|
174
|
+
'ServiceParameter': 'Block',//服务参数
|
|
175
|
+
'OperationalActivity': 'Block',//业务活动
|
|
176
|
+
'HighLevelOperationalConcept': 'Block',//高级业务概念
|
|
177
|
+
'ActualProject': 'Block',//实际项目
|
|
178
|
+
'ActualRisk': 'Block',//实际风险
|
|
179
|
+
'ActualPropertySet': 'Block',//实际属性设置
|
|
180
|
+
'Organization': 'Block',//组织
|
|
181
|
+
'ActualPerson': 'Block',//实际人员
|
|
182
|
+
'CapabilityRole': 'Block',//能力职责
|
|
183
|
+
'OperationalSignal': 'Block',//业务信号
|
|
184
|
+
'OperationalInterface': 'Block',//业务接口
|
|
185
|
+
'Service': 'Block', //服务
|
|
186
|
+
'ActualService':'Block', //实际服务
|
|
187
|
+
'Property': 'Block',//引用属性
|
|
188
|
+
'Projectes': 'Block',//项目
|
|
189
|
+
'ProjectMilestone': 'Block',//项目里程碑
|
|
190
|
+
'ActualProjectMilestone': 'Block',//实际项目里程碑
|
|
191
|
+
'ProjectActivity': 'Block',//项目活动
|
|
192
|
+
'ProjectRole': 'Block',//项目角色
|
|
193
|
+
'ProjectMilestoneRole': 'Block',//项目里程碑角色
|
|
194
|
+
'SecurityRisk':'Block',//安全风险
|
|
195
|
+
'StatusIndicators': 'Block', //状态指标
|
|
196
|
+
'SecurityEnclave': 'Block', //安全隔离
|
|
197
|
+
'SecurityControl': 'DividingLine', //安全控制
|
|
198
|
+
'Risk': 'Block', //风险
|
|
199
|
+
'Post': 'Block',//职位
|
|
200
|
+
'Responsibility': 'Block',//责任
|
|
201
|
+
'ActualResponsibility': 'Block',//实际责任
|
|
202
|
+
'System': 'Block',//系统
|
|
203
|
+
'Competence': 'Block',//权限
|
|
204
|
+
|
|
205
|
+
// 线
|
|
206
|
+
'Association': 'Edge', //双向关联
|
|
207
|
+
'DirectedAggregation': 'Edge',//定向聚合
|
|
208
|
+
'Aggregation': 'Edge',//聚合
|
|
209
|
+
'Generalization': 'Edge',//泛化
|
|
210
|
+
'DirectedComposition': 'Edge',//定向组成
|
|
211
|
+
'Composition':'Edge',//组成
|
|
212
|
+
'Implements':'Edge',//执行
|
|
213
|
+
'Phases':'Edge',//阶段
|
|
214
|
+
'Exhibits':'Edge',//展示
|
|
215
|
+
'OrganizationInPhase':'Edge',//组织阶段
|
|
216
|
+
'Sequence':'Edge',//顺序
|
|
217
|
+
'Dependency':'Edge',//依赖
|
|
218
|
+
'Creates':'Edge',//创建
|
|
219
|
+
'ComparesTo':'Edge',//相比
|
|
220
|
+
'ImpactedBy':'Edge',//受到影响
|
|
221
|
+
'Desires':'Edge',//要求
|
|
222
|
+
'Achieves':'Edge',//达到
|
|
223
|
+
'IsCapableToperform':'Edge',//能够胜任
|
|
224
|
+
'ArbitraryConnector':'Edge',//任意连接器
|
|
225
|
+
'ArbitraryRelationship':'Edge',//任意关系
|
|
226
|
+
'DirectedRelationship':'Edge',//定向关系
|
|
227
|
+
'OperationalControlFlow':'Edge',//业务控制流
|
|
228
|
+
'FunctionControlFlow':'Edge',//功能控制流
|
|
229
|
+
'ServiceConnector':'Edge',//服务连接器
|
|
230
|
+
'ServiceControlFlow':'Edge',//服务控制流
|
|
231
|
+
'Connector':'Edge',//连接器
|
|
232
|
+
'OperationalConnector':'Edge',//业务连接器
|
|
233
|
+
'IsCapableToPerform':'Edge',//能够胜任
|
|
234
|
+
'ProjectSequence':'Edge',//项目顺序
|
|
235
|
+
'MilestoneDependency':'Edge',//里程碑依赖
|
|
236
|
+
'DirectedAssociation':'Edge',//定向关联
|
|
237
|
+
'ResourceConnector':'Edge',//资源连接器
|
|
238
|
+
//包
|
|
239
|
+
'Operational': 'Package', // 业务层
|
|
240
|
+
'Services': 'Package', // 服务层
|
|
241
|
+
'Personnel': 'Package', // 人员层
|
|
242
|
+
'Resources': 'Package', // 资源层
|
|
243
|
+
'Security': 'Package', // 安全层
|
|
244
|
+
'Projects': 'Package', // 项目层
|
|
245
|
+
'Standards' : 'Package', // 标准层
|
|
246
|
+
'ActualResources': 'Package', // 实际资源层
|
|
247
|
+
'StrategicTaxonomyPackage': 'Package', // 战略概念包
|
|
248
|
+
'StrategicStructurePackage': 'Package', //战略结构包
|
|
249
|
+
'StrategicConnectivityPackage': 'Package', //战略连接包
|
|
250
|
+
'StrategicProcessesPackage': 'Package', //战略流程包
|
|
251
|
+
'StrategicStatesPackage': 'Package', //战略状态包
|
|
252
|
+
'StrategicInformationPackage': 'Package', //战略信息包
|
|
253
|
+
'StrategicParametersPackage': 'Package', //战略参数包
|
|
254
|
+
'StrategicConstraintsPackage': 'Package', //战略约束包
|
|
255
|
+
'StrategicRoadmapPackage': 'Package', //战略路线包
|
|
256
|
+
'StrategicTraceabilityPackage': 'Package', //战略追溯包
|
|
257
|
+
'OperationalTaxonomyPackage': 'Package', //业务概念包
|
|
258
|
+
'OperationalStructurePackage': 'Package', //业务结构包
|
|
259
|
+
'OperationalConnectivityPackage': 'Package', //业务连通包
|
|
260
|
+
'OperationalProcessesPackage': 'Package', //业务流程包
|
|
261
|
+
'OperationalStatesPackage': 'Package', //业务状态包
|
|
262
|
+
'OperationalInformationPackage': 'Package', //业务信息包
|
|
263
|
+
'OperationalParametersPackage': 'Package', //业务参数包
|
|
264
|
+
'OperationalConstraintsPackage': 'Package', //业务约束包
|
|
265
|
+
'OperationalTraceabilityPackage': 'Package', //业务追溯包
|
|
266
|
+
'ServicesTaxonomyPackage': 'Package', //服务概念包
|
|
267
|
+
'ServicesStructurePackage': 'Package', //服务结构包
|
|
268
|
+
'ServicesConnectivityPackage': 'Package', //服务连通包
|
|
269
|
+
'ServicesProcessesPackage': 'Package', //服务流程包
|
|
270
|
+
'ServicesStatesPackage': 'Package',//服务状态包
|
|
271
|
+
'ServicesParametersPackage': 'Package', //服务参数包
|
|
272
|
+
'ServicesConstraintsPackage': 'Package', //服务约束包
|
|
273
|
+
'ServicesRoadmapPackage': 'Package', //服务路线包
|
|
274
|
+
'ServicesTraceabilityPackage': 'Package', //服务追溯包
|
|
275
|
+
'PersonnelTaxonomyPackage': 'Package', //人员概念包
|
|
276
|
+
'PersonnelStructurePackage': 'Package', //人员结构包
|
|
277
|
+
'PersonnelConnectivityPackage': 'Package', //人员连通包
|
|
278
|
+
'PersonnelProcessesPackage': 'Package', //人员流程包
|
|
279
|
+
'PersonnelStatesPackage': 'Package', //人员状态包
|
|
280
|
+
'PersonnelParametersPackage': 'Package', //人员参数包
|
|
281
|
+
'PersonnelConstraintsPackage': 'Package', //人员约束包
|
|
282
|
+
'ResourcesTaxonomyPackage': 'Package', //资源概念包
|
|
283
|
+
'ResourcesStructurePackage': 'Package', //资源结构包
|
|
284
|
+
'ResourcesConnectivityPackage': 'Package', //资源连通包
|
|
285
|
+
'ResourcesProcessesPackage': 'Package', //资源流程包
|
|
286
|
+
'ResourcesStatesPackage': 'Package', //资源状态包
|
|
287
|
+
'ResourcesInformationPackage': 'Package', //资源信息包
|
|
288
|
+
'ResourcesParametersPackage': 'Package', //资源参数包
|
|
289
|
+
'ResourcesTraceabilityPackage': 'Package', //资源追溯包
|
|
290
|
+
'SecurityTaxonomyPackage': 'Package', //安全概念包
|
|
291
|
+
'SecurityStructurePackage': 'Package', //安全结构包
|
|
292
|
+
'SecurityConnectivityPackage': 'Package', //安全连通包
|
|
293
|
+
'SecurityProcessesPackage': 'Package', //安全流程包
|
|
294
|
+
'SecurityConstraintsPackage': 'Package', //安全约束包
|
|
295
|
+
'SecurityTraceabilityPackage': 'Package', //安全追溯包
|
|
296
|
+
'ProjectsTaxonomyPackage': 'Package', //项目概念包
|
|
297
|
+
'ProjectsStructurePackage': 'Package', //项目结构包
|
|
298
|
+
'ProjectsConnectivityPackage': 'Package', //项目连通包
|
|
299
|
+
'ProjectsProcessesPackage': 'Package', //项目流程包
|
|
300
|
+
'ProjectsRoadmapPackage': 'Package', //项目路线包
|
|
301
|
+
'ProjectsTraceabilityPackage': 'Package', //项目追溯包
|
|
302
|
+
'StandardsTaxonomyPackage': 'Package', //标准概念包
|
|
303
|
+
'StandardsStructurePackage': 'Package', //标准结构包
|
|
304
|
+
'StandardsRoadmapPackage': 'Package', //标准路线包
|
|
305
|
+
'StandardsTraceabilityPackage': 'Package', //标准追溯包
|
|
306
|
+
'ActualResourcesTaxonomyPackage': 'Package', //实际资源概念包
|
|
307
|
+
'ActualResourcesStructurePackage': 'Package', //实际资源结构包
|
|
308
|
+
'ActualResourcesConnectivityPackage': 'Package', //实际资源连通包
|
|
309
|
+
'ConceptRole': 'ConceptualRole', //概念角色
|
|
310
|
+
'OperationalActivityAction': 'ActivityAction', //业务活动动作
|
|
311
|
+
'ResourceParameter': 'Block', //资源参数
|
|
312
|
+
'ResourceRole':'Block', //资源角色
|
|
313
|
+
'ResourceSignal': 'Block', //资源信号
|
|
314
|
+
'OperationalAction': 'ActivityAction', //业务动作
|
|
315
|
+
'ServiceAction': 'ActivityAction', //服务动作
|
|
316
|
+
'ResourceAction': 'ActivityAction', //资源动作
|
|
317
|
+
'ProjectActivityAction': 'ActivityAction', //项目活动动作
|
|
318
|
+
'SecurityProcessAction': 'ActivityAction', //安全流程动作
|
|
319
|
+
} as const
|
|
320
|
+
|
|
321
|
+
// 导出类型
|
|
322
|
+
export type ShapeKeyValue = typeof BlockKeyMap[keyof typeof BlockKeyMap]
|
|
323
|
+
|
|
324
|
+
// 只包含图类型的映射
|
|
325
|
+
export const DiagramKeyMap = {
|
|
326
|
+
'StrategicTaxonomyDiagram': 'StrategicTaxonomyDiagram', //战略概念图
|
|
327
|
+
'StrategicInformationDiagram': 'StrategicTaxonomyDiagram', //战略信息图
|
|
328
|
+
'StrategicStructureDiagram': 'StrategicTaxonomyDiagram', //战略结构图
|
|
329
|
+
'StrategicConnectivityDiagram': 'StrategicTaxonomyDiagram', //战略连通图
|
|
330
|
+
'StrategicStatesDiagram': 'StrategicTaxonomyDiagram', //战略状态图
|
|
331
|
+
'StrategicProcessesDiagram': 'StrategicTaxonomyDiagram', //战略流程图
|
|
332
|
+
'StrategicParametersDiagram': 'StrategicTaxonomyDiagram', //战略参数图
|
|
333
|
+
'StrategicConstraintsDiagram': 'StrategicTaxonomyDiagram', //战略约束图
|
|
334
|
+
'StrategicConstraintsDefinitionDiagram': 'StrategicTaxonomyDiagram', //战略约束定义图
|
|
335
|
+
'OperationalTaxonomyDiagram': 'StrategicTaxonomyDiagram', //业务概念图
|
|
336
|
+
'HighLevelOperationalConceptDiagram': 'StrategicTaxonomyDiagram', //顶级业务概念图
|
|
337
|
+
'OperationalFreeFormTaxonomyDiagram': 'StrategicTaxonomyDiagram', //业务自由分类图
|
|
338
|
+
'OperationalStructureDiagram': 'StrategicTaxonomyDiagram', //业务结构图
|
|
339
|
+
'OperationalConnectivityDiagram': 'StrategicTaxonomyDiagram', //业务连通图
|
|
340
|
+
'OperationalInternalConnectivityDiagram': 'StrategicTaxonomyDiagram', //业务内部连通图
|
|
341
|
+
'OperationalProcessesDiagram': 'StrategicTaxonomyDiagram', //业务流程图
|
|
342
|
+
'OperationalProcessesFlowDiagram': 'StrategicTaxonomyDiagram', //业务内部流程图
|
|
343
|
+
'OperationalStatesDiagram': 'StrategicTaxonomyDiagram', //业务状态图
|
|
344
|
+
'OperationalInformationDiagram': 'StrategicTaxonomyDiagram', //业务信息图
|
|
345
|
+
'OperationalParametricDiagram': 'StrategicTaxonomyDiagram', //业务参数图
|
|
346
|
+
'OperationalConstraintsDiagram': 'StrategicTaxonomyDiagram', //业务约束图
|
|
347
|
+
'OperationalConstraintsDefinitionDiagram': 'StrategicTaxonomyDiagram', //业务约束定义图
|
|
348
|
+
'StrategicTaxonomyTable': 'StrategicTaxonomyDiagram', //战略概念表
|
|
349
|
+
'StrategicConnectivityMatrixDiagram': 'StrategicTaxonomyDiagram', //战略连通矩阵图
|
|
350
|
+
'StrategicActualStrategicPhaseTaxonomyTable': 'StrategicTaxonomyDiagram', //战略实际战略阶段概念表
|
|
351
|
+
'ActualStrategicPhasesGanttChart': 'StrategicTaxonomyDiagram', //战略实际战略阶段甘特图
|
|
352
|
+
'StrategicActualDeploymentDiagram': 'StrategicTaxonomyDiagram', //战略实际部署图
|
|
353
|
+
'ActualStrategicPhasesToCapabilitiesMappingMatrix': 'StrategicTaxonomyDiagram', //战略实际战略阶段到能力映射矩阵图
|
|
354
|
+
'OperationalConnectivityTable': 'StrategicTaxonomyDiagram', //业务连通表
|
|
355
|
+
'OperationalActivitiesToCapabilitiesMappingMatrix': 'StrategicTaxonomyDiagram', //业务活动与能力映射矩阵
|
|
356
|
+
'OperationalPerformersToCapabilitiesMappingMatrix': 'StrategicTaxonomyDiagram', //业务执行者与能力映射矩阵
|
|
357
|
+
'ServicesTaxonomyDiagram': 'StrategicTaxonomyDiagram', //服务概念图
|
|
358
|
+
'ServicesTaxonomyTable': 'StrategicTaxonomyDiagram', //服务概念表
|
|
359
|
+
'ServicesStructureDiagram': 'StrategicTaxonomyDiagram', //服务结构图
|
|
360
|
+
'ServicesConnectivityDiagram': 'StrategicTaxonomyDiagram', //服务连通图
|
|
361
|
+
'ServicesConnectivityMatrixDiagram': 'StrategicTaxonomyDiagram', //服务连通矩阵图
|
|
362
|
+
'ServicesConnectivityTable': 'StrategicTaxonomyDiagram', //服务连通表
|
|
363
|
+
'ServicesInternalConnectivityDiagram': 'StrategicTaxonomyDiagram', //服务内部连通图
|
|
364
|
+
'ServicesProcessesDiagram': 'StrategicTaxonomyDiagram', //服务流程图
|
|
365
|
+
'ServicesProcessesFlowDiagram': 'StrategicTaxonomyDiagram', //服务内部流程图
|
|
366
|
+
'ServicesStatesDiagram': 'StrategicTaxonomyDiagram', //服务状态图
|
|
367
|
+
'ServicesParametricDiagram': 'StrategicTaxonomyDiagram', //服务参数图
|
|
368
|
+
'ServicesConstraintsDiagram': 'StrategicTaxonomyDiagram', //服务约束图
|
|
369
|
+
'ServicesConstraintsDefinitionDiagram': 'StrategicTaxonomyDiagram', //服务约束定义图
|
|
370
|
+
'ServicesRoadmapDiagram': 'StrategicTaxonomyDiagram', //服务路线图
|
|
371
|
+
'ServicesToCapabilitiesMappingMatrix': 'StrategicTaxonomyDiagram', //服务与能力映射矩阵
|
|
372
|
+
'ServicesToOperationalActivitiesMappingMatrix': 'StrategicTaxonomyDiagram', //服务与业务活动映射矩阵
|
|
373
|
+
'ServicesToServiceContractsMappingMatrix': 'StrategicTaxonomyDiagram', //服务与服务合同映射矩阵
|
|
374
|
+
'PersonnelTaxonomyDiagram': 'StrategicTaxonomyDiagram', //人员概念图
|
|
375
|
+
'PersonnelTaxonomyTable': 'StrategicTaxonomyDiagram', //人员概念表
|
|
376
|
+
'PersonnelStructureDiagram': 'StrategicTaxonomyDiagram', //人员结构图
|
|
377
|
+
'PersonnelConnectivityDiagram': 'StrategicTaxonomyDiagram', //人员连通图
|
|
378
|
+
'PersonnelConnectivityTable': 'StrategicTaxonomyDiagram', //人员连通表
|
|
379
|
+
'PersonnelInternalConnectivityDiagram': 'StrategicTaxonomyDiagram', //人员内部连通图
|
|
380
|
+
'PersonnelProcessesDiagram': 'StrategicTaxonomyDiagram', //人员流程图
|
|
381
|
+
'PersonnelProcessesFlowDiagram': 'StrategicTaxonomyDiagram', //人员内部流程图
|
|
382
|
+
'PersonnelStatesDiagram': 'StrategicTaxonomyDiagram', //人员状态图
|
|
383
|
+
'PersonnelParametricDiagram': 'StrategicTaxonomyDiagram', //人员参数图
|
|
384
|
+
'PersonnelConstraintsDiagram': 'StrategicTaxonomyDiagram', //人员约束图
|
|
385
|
+
'PersonnelConstraintsDefinitionDiagram': 'StrategicTaxonomyDiagram', //人员约束定义图
|
|
386
|
+
'ResourcesTaxonomyDiagram': 'StrategicTaxonomyDiagram', //资源概念图
|
|
387
|
+
'ResourcesTaxonomyTable': 'StrategicTaxonomyDiagram', //资源概念表
|
|
388
|
+
'ResourcesStructureDiagram': 'StrategicTaxonomyDiagram', //资源结构图
|
|
389
|
+
'ResourcesConnectivityDiagram': 'StrategicTaxonomyDiagram', //资源连通图
|
|
390
|
+
'ResourcesConnectivityTable': 'StrategicTaxonomyDiagram', //资源连通表
|
|
391
|
+
'ResourcesInternalConnectivityDiagram': 'StrategicTaxonomyDiagram', //资源内部连通图
|
|
392
|
+
'ResourcesProcessesDiagram': 'StrategicTaxonomyDiagram', //资源流程图
|
|
393
|
+
'ResourcesProcessesFlowDiagram': 'StrategicTaxonomyDiagram', //资源内部流程图
|
|
394
|
+
'ResourcesStatesDiagram': 'StrategicTaxonomyDiagram', //资源状态图
|
|
395
|
+
'ResourcesInformationDiagram': 'StrategicTaxonomyDiagram', //资源信息图
|
|
396
|
+
'ResourcesParametricDiagram': 'StrategicTaxonomyDiagram', //资源参数图
|
|
397
|
+
'FunctionsToOperationalActivitiesMappingMatrix': 'StrategicTaxonomyDiagram', //资源功能到业务活动映射矩阵
|
|
398
|
+
'ResourcesToCapabilitiesMappingMatrix': 'StrategicTaxonomyDiagram', //资源与能力映射矩阵
|
|
399
|
+
'ResourcesToOperationalActivitiesMappingMatrix': 'StrategicTaxonomyDiagram', //资源与业务活动映射矩阵
|
|
400
|
+
'SecurityTaxonomyDiagram': 'StrategicTaxonomyDiagram', //安全概念图
|
|
401
|
+
'SecurityTaxonomyTable': 'StrategicTaxonomyDiagram', //安全概念表
|
|
402
|
+
'SecurityStructureDiagram': 'StrategicTaxonomyDiagram', //安全结构图
|
|
403
|
+
'SecurityConnectivityDiagram': 'StrategicTaxonomyDiagram', //安全连通图
|
|
404
|
+
'SecurityConnectivityTable': 'StrategicTaxonomyDiagram', //安全连通表
|
|
405
|
+
'SecurityProcessesDiagram': 'StrategicTaxonomyDiagram', //安全流程图
|
|
406
|
+
'SecurityProcessesFlowDiagram': 'StrategicTaxonomyDiagram', //安全内部流程图
|
|
407
|
+
'SecurityConstraintsDiagram': 'StrategicTaxonomyDiagram', //安全约束图
|
|
408
|
+
'SecurityConstraintsDefinitionDiagram': 'StrategicTaxonomyDiagram', //安全约束定义图
|
|
409
|
+
'RisksToAssetsMappingMatrix': 'StrategicTaxonomyDiagram', //风险与资产映射矩阵
|
|
410
|
+
'SecurityControlsToRisksMappingMatrix': 'StrategicTaxonomyDiagram', //安全控制与风险映射矩阵
|
|
411
|
+
'ProjectsTaxonomyDiagram': 'StrategicTaxonomyDiagram', //项目概念图
|
|
412
|
+
'ProjectsTaxonomyTable': 'StrategicTaxonomyDiagram', //项目概念表
|
|
413
|
+
'ProjectsStructureDiagram': 'StrategicTaxonomyDiagram', //项目结构图
|
|
414
|
+
'ProjectsConnectivityDiagram': 'StrategicTaxonomyDiagram', //项目连通图
|
|
415
|
+
'ProjectsProcessesDiagram': 'StrategicTaxonomyDiagram', //项目流程图
|
|
416
|
+
'ProjectsProcessesFlowDiagram': 'StrategicTaxonomyDiagram', //项目内部流程图
|
|
417
|
+
'ActualProjectMilestoneSummaryTable': 'StrategicTaxonomyDiagram', //实际项目里程碑摘要表
|
|
418
|
+
'ProjectsRoadmapDiagram': 'StrategicTaxonomyDiagram', //项目路线图
|
|
419
|
+
'ActualProjectsToCapabilitiesMappingMatrix': 'StrategicTaxonomyDiagram', //实际项目与能力映射矩阵
|
|
420
|
+
'ActualResponsibleResourcesToActualProjectsMappingMatrix': 'StrategicTaxonomyDiagram', //实际负责资源与实际项目映射矩阵
|
|
421
|
+
'ProjectActivitiesToCapabilitiesMappingMatrix': 'StrategicTaxonomyDiagram', //项目活动到能力映射矩阵
|
|
422
|
+
'StandardsTaxonomyDiagram': 'StrategicTaxonomyDiagram', //标准概念图
|
|
423
|
+
'StandardsTaxonomyTable': 'StrategicTaxonomyDiagram', //标准概念表
|
|
424
|
+
'StandardsStructureDiagram': 'StrategicTaxonomyDiagram', //标准结构图
|
|
425
|
+
'StandardsRoadmapDiagram': 'StrategicTaxonomyDiagram', //标准路线图
|
|
426
|
+
'StandardsTraceabilityDiagram': 'StrategicTaxonomyDiagram', //标准可追溯图
|
|
427
|
+
'ActualResourcesTaxonomyMatrix': 'StrategicTaxonomyDiagram', //实际资源概念矩阵
|
|
428
|
+
'ActualResourcesStructureDiagram': 'StrategicTaxonomyDiagram', //实际资源结构图
|
|
429
|
+
'ActualResourcesConnectivityDiagram': 'StrategicTaxonomyDiagram', //实际资源连通图
|
|
430
|
+
} as const
|
|
431
|
+
|
|
432
|
+
export const PinKeyMap = {
|
|
433
|
+
'OutputPin': 'Pin', //输出引脚
|
|
434
|
+
'InputPin': 'Pin', //输入引脚
|
|
435
|
+
"OperationalPort": "Port"
|
|
436
|
+
} as const
|
|
437
|
+
|
|
438
|
+
// 导出DiagramKeyMap类型
|
|
439
|
+
export type DiagramKeyValue = typeof DiagramKeyMap[keyof typeof DiagramKeyMap]
|
|
440
|
+
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { App, Plugin } from 'vue'
|
|
2
|
+
import GraphView from './view/graph.vue'
|
|
3
|
+
import ElementPlus from 'element-plus'
|
|
4
|
+
// import { pinia } from './store'
|
|
5
|
+
|
|
6
|
+
// 导出组件
|
|
7
|
+
export { GraphView }
|
|
8
|
+
|
|
9
|
+
// 导出 store
|
|
10
|
+
export { useGraphStore, eventBus } from './store'
|
|
11
|
+
|
|
12
|
+
// 导出类型
|
|
13
|
+
export type { Shape, Bounds, Style, NameObject, TaggedValueLabel, Comparent, GraphEvents } from './types'
|
|
14
|
+
|
|
15
|
+
// 插件安装函数
|
|
16
|
+
export const MxSoseGraphPlugin: Plugin<[]> = {
|
|
17
|
+
install(app: App) {
|
|
18
|
+
// 安装 Pinia
|
|
19
|
+
// app.use(pinia)
|
|
20
|
+
// 注册组件
|
|
21
|
+
app.component('GraphView', GraphView)
|
|
22
|
+
// 安装 ElementPlus
|
|
23
|
+
app.use(ElementPlus)
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// 默认导出插件
|
|
28
|
+
export default MxSoseGraphPlugin
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Component } from "vue";
|
|
2
|
+
|
|
3
|
+
type Registry = Record<string, Component>;
|
|
4
|
+
|
|
5
|
+
// 内部可变注册表
|
|
6
|
+
let registry: Registry = {};
|
|
7
|
+
|
|
8
|
+
/** 批量注册(在应用启动或 GraphView 初始化时调用一次) */
|
|
9
|
+
export function registerShapes(map: Registry) {
|
|
10
|
+
registry = { ...registry, ...map };
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/** 读取:通过 shapeKey 拿到组件;没有就返回 null */
|
|
14
|
+
export function getShapeComponentByKey(key?: string | null): Component | null {
|
|
15
|
+
if (!key) return null;
|
|
16
|
+
return registry[key] ?? null;
|
|
17
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import type { CSSProperties } from "vue";
|
|
2
|
+
import type { Shape } from "@/types";
|
|
3
|
+
import { BlockKeyMap, DiagramKeyMap } from "../constants";
|
|
4
|
+
import { getShapeComponentByKey } from "./shape-registry";
|
|
5
|
+
import { PinKeyMap } from "../constants";
|
|
6
|
+
|
|
7
|
+
// 根据 shapeKey 匹配具体组件
|
|
8
|
+
function getComponentByShapeKey(shapeKey: string) {
|
|
9
|
+
const componentName = (BlockKeyMap as any)[shapeKey] || shapeKey;
|
|
10
|
+
return getShapeComponentByKey(componentName) || componentName;
|
|
11
|
+
}
|
|
12
|
+
function getComponentByPinKey(shapeKey: string) {
|
|
13
|
+
const componentName = (PinKeyMap as any)[shapeKey] || shapeKey;
|
|
14
|
+
return getShapeComponentByKey(componentName) || componentName;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// 根据 shapeKey 匹配图类型组件
|
|
18
|
+
export function getComponentByDiagramKey(shapeKey: string) {
|
|
19
|
+
const componentName = (DiagramKeyMap as any)[shapeKey] || shapeKey;
|
|
20
|
+
return getShapeComponentByKey(componentName) || componentName;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// 根据 shape 读取组件
|
|
24
|
+
export const getShapeComponent = (shape: Shape) => {
|
|
25
|
+
const { shapeType, shapeKey } = shape;
|
|
26
|
+
switch (shapeType) {
|
|
27
|
+
case "pin":
|
|
28
|
+
return getComponentByPinKey(shapeKey);
|
|
29
|
+
case "shape":
|
|
30
|
+
return getComponentByShapeKey(shapeKey);
|
|
31
|
+
case "diagram":
|
|
32
|
+
return getComponentByDiagramKey(shapeKey);
|
|
33
|
+
case "edge":
|
|
34
|
+
return getComponentByShapeKey(shapeKey);
|
|
35
|
+
default:
|
|
36
|
+
return "ShapeComponent";
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
// 根据 shape 的 bounds 生成样式
|
|
40
|
+
export const getShapeStyle = (shape: Shape): CSSProperties => {
|
|
41
|
+
const { bounds, shapeType } = shape;
|
|
42
|
+
|
|
43
|
+
// Edge组件需要特殊处理
|
|
44
|
+
if (shapeType === "edge") {
|
|
45
|
+
// 解析waypoints计算边界框
|
|
46
|
+
let waypoints: Array<{ x: number; y: number }> = [];
|
|
47
|
+
|
|
48
|
+
if (shape.waypointId) {
|
|
49
|
+
if (typeof shape.waypointId === "string") {
|
|
50
|
+
try {
|
|
51
|
+
waypoints = JSON.parse(shape.waypointId);
|
|
52
|
+
} catch (error) {
|
|
53
|
+
console.error("解析waypointId失败:", error);
|
|
54
|
+
waypoints = [];
|
|
55
|
+
}
|
|
56
|
+
} else if (Array.isArray(shape.waypointId)) {
|
|
57
|
+
waypoints = shape.waypointId;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (waypoints.length === 0) {
|
|
62
|
+
return {
|
|
63
|
+
position: "absolute",
|
|
64
|
+
left: "0px",
|
|
65
|
+
top: "0px",
|
|
66
|
+
width: "100px",
|
|
67
|
+
height: "50px",
|
|
68
|
+
opacity: 0, // 初始时隐藏
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// 计算边界框
|
|
73
|
+
const xs = waypoints.map((wp) => wp.x);
|
|
74
|
+
const ys = waypoints.map((wp) => wp.y);
|
|
75
|
+
|
|
76
|
+
const minX = Math.min(...xs);
|
|
77
|
+
const maxX = Math.max(...xs);
|
|
78
|
+
const minY = Math.min(...ys);
|
|
79
|
+
const maxY = Math.max(...ys);
|
|
80
|
+
|
|
81
|
+
// 计算容器尺寸和位置
|
|
82
|
+
const padding = 10;
|
|
83
|
+
const width = Math.max(maxX - minX + padding * 2, 20); // 最小宽度20
|
|
84
|
+
const height = maxY - minY + padding * 2;
|
|
85
|
+
|
|
86
|
+
return {
|
|
87
|
+
position: "absolute",
|
|
88
|
+
left: `${minX - padding}px`,
|
|
89
|
+
top: `${minY - padding}px`,
|
|
90
|
+
width: `${width}px`,
|
|
91
|
+
height: `${height}px`,
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// 其他组件使用bounds
|
|
96
|
+
return {
|
|
97
|
+
position: "absolute",
|
|
98
|
+
left: `${bounds?.x || 0}px`,
|
|
99
|
+
top: `${bounds?.y || 0}px`,
|
|
100
|
+
width: `${bounds?.width || 100}px`,
|
|
101
|
+
height: `${bounds?.height || 50}px`,
|
|
102
|
+
};
|
|
103
|
+
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|