@eclipse-papyrus/papyrus-web-parent 2026.2.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/.prettierrc +22 -0
- package/.project +11 -0
- package/.turbo/cache/2e7de991e3eb5b77-meta.json +1 -0
- package/.turbo/cache/2e7de991e3eb5b77.tar.zst +0 -0
- package/.turbo/cache/6d4efa6c3019818e-meta.json +1 -0
- package/.turbo/cache/6d4efa6c3019818e.tar.zst +0 -0
- package/.turbo/cache/904b84e8ab6fefb1-meta.json +1 -0
- package/.turbo/cache/904b84e8ab6fefb1.tar.zst +0 -0
- package/.turbo/cache/b657accc57a869a6-meta.json +1 -0
- package/.turbo/cache/b657accc57a869a6.tar.zst +0 -0
- package/.turbo/cookies/1.cookie +0 -0
- package/.turbo/cookies/2.cookie +0 -0
- package/.turbo/cookies/3.cookie +0 -0
- package/.turbo/cookies/4.cookie +0 -0
- package/.turbo/cookies/5.cookie +0 -0
- package/.turbo/cookies/6.cookie +0 -0
- package/.turbo/cookies/7.cookie +0 -0
- package/.turbo/cookies/8.cookie +0 -0
- package/.turbo/daemon/8a1f25190e5082e3-turbo.log.2026-04-01 +0 -0
- package/package.json +32 -0
- package/papyrus-web/.env.development +2 -0
- package/papyrus-web/.prettierrc +22 -0
- package/papyrus-web/.turbo/turbo-build.log +30 -0
- package/papyrus-web/.turbo/turbo-format-lint.log +6 -0
- package/papyrus-web/README.adoc +84 -0
- package/papyrus-web/dist/assets/Lato-Black-B_kLSaRn.ttf +0 -0
- package/papyrus-web/dist/assets/Lato-BlackItalic-B2JUbIh8.ttf +0 -0
- package/papyrus-web/dist/assets/Lato-Bold-DBmunEOG.ttf +0 -0
- package/papyrus-web/dist/assets/Lato-BoldItalic-DfTVlc2v.ttf +0 -0
- package/papyrus-web/dist/assets/Lato-Italic-CxPt6gM6.ttf +0 -0
- package/papyrus-web/dist/assets/Lato-Light-Cg7pVZQZ.ttf +0 -0
- package/papyrus-web/dist/assets/Lato-LightItalic-BkbZ6uep.ttf +0 -0
- package/papyrus-web/dist/assets/Lato-Regular-57KsL5Ww.ttf +0 -0
- package/papyrus-web/dist/assets/Lato-Thin-CvSM47fD.ttf +0 -0
- package/papyrus-web/dist/assets/Lato-ThinItalic-9M4CJfMt.ttf +0 -0
- package/papyrus-web/dist/assets/browser-ponyfill-CVpHIrSq.js +2 -0
- package/papyrus-web/dist/assets/index-CjSWMYED.js +6122 -0
- package/papyrus-web/dist/assets/index-DJjGIuFa.css +1 -0
- package/papyrus-web/dist/assets/papyrus-icon-DqmMeq_6.png +0 -0
- package/papyrus-web/dist/favicon.ico +0 -0
- package/papyrus-web/dist/index.html +42 -0
- package/papyrus-web/dist/manifest.json +15 -0
- package/papyrus-web/dist/papyrus.ico +0 -0
- package/papyrus-web/index.html +41 -0
- package/papyrus-web/package.json +104 -0
- package/papyrus-web/public/favicon.ico +0 -0
- package/papyrus-web/public/manifest.json +15 -0
- package/papyrus-web/public/papyrus.ico +0 -0
- package/papyrus-web/src/ReactFlow.css +17 -0
- package/papyrus-web/src/core/PapyrusIcon.tsx +17 -0
- package/papyrus-web/src/core/PapyrusNavigationBarIcon.tsx +46 -0
- package/papyrus-web/src/core/URL.ts +34 -0
- package/papyrus-web/src/extensions/ExtensionRegistryMergeStrategy.ts +50 -0
- package/papyrus-web/src/fonts/Lato/Lato-Black.ttf +0 -0
- package/papyrus-web/src/fonts/Lato/Lato-BlackItalic.ttf +0 -0
- package/papyrus-web/src/fonts/Lato/Lato-Bold.ttf +0 -0
- package/papyrus-web/src/fonts/Lato/Lato-BoldItalic.ttf +0 -0
- package/papyrus-web/src/fonts/Lato/Lato-Italic.ttf +0 -0
- package/papyrus-web/src/fonts/Lato/Lato-Light.ttf +0 -0
- package/papyrus-web/src/fonts/Lato/Lato-LightItalic.ttf +0 -0
- package/papyrus-web/src/fonts/Lato/Lato-Regular.ttf +0 -0
- package/papyrus-web/src/fonts/Lato/Lato-Thin.ttf +0 -0
- package/papyrus-web/src/fonts/Lato/Lato-ThinItalic.ttf +0 -0
- package/papyrus-web/src/fonts/Lato/OFL.txt +93 -0
- package/papyrus-web/src/fonts.css +81 -0
- package/papyrus-web/src/footer/Footer.tsx +50 -0
- package/papyrus-web/src/icons/papyrus-icon.png +0 -0
- package/papyrus-web/src/index.tsx +325 -0
- package/papyrus-web/src/portals.css +16 -0
- package/papyrus-web/src/react-app-env.d.ts +1 -0
- package/papyrus-web/src/reset.css +218 -0
- package/papyrus-web/src/variables.css +111 -0
- package/papyrus-web/src/vite-env.d.ts +1 -0
- package/papyrus-web/tsconfig.json +34 -0
- package/papyrus-web/vite.config.js +24 -0
- package/papyrus-web-components/.prettierrc +22 -0
- package/papyrus-web-components/.turbo/turbo-build.log +77 -0
- package/papyrus-web-components/.turbo/turbo-format-lint.log +6 -0
- package/papyrus-web-components/README.adoc +13 -0
- package/papyrus-web-components/dist/diagram-tools/EditProjectView.types.d.ts +48 -0
- package/papyrus-web-components/dist/diagram-tools/EditProjectView.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/diagram-tools/FilterableSortableList.d.ts +3 -0
- package/papyrus-web-components/dist/diagram-tools/FilterableSortableList.d.ts.map +1 -0
- package/papyrus-web-components/dist/diagram-tools/FilterableSortableList.types.d.ts +33 -0
- package/papyrus-web-components/dist/diagram-tools/FilterableSortableList.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/diagram-tools/ModelBrowserFilterBar.d.ts +15 -0
- package/papyrus-web-components/dist/diagram-tools/ModelBrowserFilterBar.d.ts.map +1 -0
- package/papyrus-web-components/dist/diagram-tools/ModelBrowserFilterBar.types.d.ts +20 -0
- package/papyrus-web-components/dist/diagram-tools/ModelBrowserFilterBar.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/diagram-tools/PapyrusPopupToolContribution.d.ts +3 -0
- package/papyrus-web-components/dist/diagram-tools/PapyrusPopupToolContribution.d.ts.map +1 -0
- package/papyrus-web-components/dist/diagram-tools/PapyrusPopupToolContribution.types.d.ts +53 -0
- package/papyrus-web-components/dist/diagram-tools/PapyrusPopupToolContribution.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/diagram-tools/TransferModal.d.ts +3 -0
- package/papyrus-web-components/dist/diagram-tools/TransferModal.d.ts.map +1 -0
- package/papyrus-web-components/dist/diagram-tools/TransferModal.types.d.ts +32 -0
- package/papyrus-web-components/dist/diagram-tools/TransferModal.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/index.d.ts +61 -0
- package/papyrus-web-components/dist/index.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/NodesDocumentTransform.d.ts +15 -0
- package/papyrus-web-components/dist/nodes/NodesDocumentTransform.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/cuboid/CuboidNode.d.ts +18 -0
- package/papyrus-web-components/dist/nodes/cuboid/CuboidNode.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/cuboid/CuboidNode.types.d.ts +29 -0
- package/papyrus-web-components/dist/nodes/cuboid/CuboidNode.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/cuboid/CuboidNodeConverter.d.ts +21 -0
- package/papyrus-web-components/dist/nodes/cuboid/CuboidNodeConverter.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/cuboid/CuboidNodeLayoutHandler.d.ts +23 -0
- package/papyrus-web-components/dist/nodes/cuboid/CuboidNodeLayoutHandler.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/cuboid/CuboidNodeListConverter.d.ts +21 -0
- package/papyrus-web-components/dist/nodes/cuboid/CuboidNodeListConverter.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/cuboid/CuboidNodeListLayoutHandler.d.ts +23 -0
- package/papyrus-web-components/dist/nodes/cuboid/CuboidNodeListLayoutHandler.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/customImage/CustomImageNode.d.ts +3 -0
- package/papyrus-web-components/dist/nodes/customImage/CustomImageNode.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/customImage/CustomImageNode.types.d.ts +34 -0
- package/papyrus-web-components/dist/nodes/customImage/CustomImageNode.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/customImage/CustomImageNodeConverter.d.ts +22 -0
- package/papyrus-web-components/dist/nodes/customImage/CustomImageNodeConverter.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/customImage/CustomImageNodeLayoutHandler.d.ts +23 -0
- package/papyrus-web-components/dist/nodes/customImage/CustomImageNodeLayoutHandler.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/ellipse/EllipseNode.d.ts +15 -0
- package/papyrus-web-components/dist/nodes/ellipse/EllipseNode.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/ellipse/EllipseNode.types.d.ts +33 -0
- package/papyrus-web-components/dist/nodes/ellipse/EllipseNode.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/ellipse/EllipseNodeConverter.d.ts +23 -0
- package/papyrus-web-components/dist/nodes/ellipse/EllipseNodeConverter.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/ellipse/EllipseNodeLayoutHandler.d.ts +25 -0
- package/papyrus-web-components/dist/nodes/ellipse/EllipseNodeLayoutHandler.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/innerFlag/InnerFlagNode.d.ts +18 -0
- package/papyrus-web-components/dist/nodes/innerFlag/InnerFlagNode.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/innerFlag/InnerFlagNode.types.d.ts +23 -0
- package/papyrus-web-components/dist/nodes/innerFlag/InnerFlagNode.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/innerFlag/InnerFlagNodeConverter.d.ts +21 -0
- package/papyrus-web-components/dist/nodes/innerFlag/InnerFlagNodeConverter.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/innerFlag/InnerFlagNodeLayoutHandler.d.ts +21 -0
- package/papyrus-web-components/dist/nodes/innerFlag/InnerFlagNodeLayoutHandler.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/note/NoteLabel.d.ts +18 -0
- package/papyrus-web-components/dist/nodes/note/NoteLabel.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/note/NoteNode.d.ts +19 -0
- package/papyrus-web-components/dist/nodes/note/NoteNode.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/note/NoteNode.types.d.ts +41 -0
- package/papyrus-web-components/dist/nodes/note/NoteNode.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/note/NoteNodeConverter.d.ts +21 -0
- package/papyrus-web-components/dist/nodes/note/NoteNodeConverter.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/note/NoteNodeLayoutHandler.d.ts +21 -0
- package/papyrus-web-components/dist/nodes/note/NoteNodeLayoutHandler.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/outerFlag/OuterFlagNode.d.ts +18 -0
- package/papyrus-web-components/dist/nodes/outerFlag/OuterFlagNode.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/outerFlag/OuterFlagNode.types.d.ts +23 -0
- package/papyrus-web-components/dist/nodes/outerFlag/OuterFlagNode.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/outerFlag/OuterFlagNodeConverter.d.ts +21 -0
- package/papyrus-web-components/dist/nodes/outerFlag/OuterFlagNodeConverter.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/outerFlag/OuterFlagNodeLayoutHandler.d.ts +21 -0
- package/papyrus-web-components/dist/nodes/outerFlag/OuterFlagNodeLayoutHandler.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/package/PackageNode.d.ts +18 -0
- package/papyrus-web-components/dist/nodes/package/PackageNode.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/package/PackageNode.types.d.ts +29 -0
- package/papyrus-web-components/dist/nodes/package/PackageNode.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/package/PackageNodeConverter.d.ts +21 -0
- package/papyrus-web-components/dist/nodes/package/PackageNodeConverter.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/package/PackageNodeLayoutHandler.d.ts +23 -0
- package/papyrus-web-components/dist/nodes/package/PackageNodeLayoutHandler.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/package/PackageNodeListConverter.d.ts +21 -0
- package/papyrus-web-components/dist/nodes/package/PackageNodeListConverter.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/package/PackageNodeListLayoutHandler.d.ts +24 -0
- package/papyrus-web-components/dist/nodes/package/PackageNodeListLayoutHandler.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/rectangleWithExternalLabel/RectangleWithExternalLabelNode.d.ts +18 -0
- package/papyrus-web-components/dist/nodes/rectangleWithExternalLabel/RectangleWithExternalLabelNode.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/rectangleWithExternalLabel/RectangleWithExternalLabelNode.types.d.ts +23 -0
- package/papyrus-web-components/dist/nodes/rectangleWithExternalLabel/RectangleWithExternalLabelNode.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/rectangleWithExternalLabel/RectangleWithExternalLabelNodeConverter.d.ts +21 -0
- package/papyrus-web-components/dist/nodes/rectangleWithExternalLabel/RectangleWithExternalLabelNodeConverter.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/rectangleWithExternalLabel/RectangleWithExternalLabelNodeLayoutHandler.d.ts +20 -0
- package/papyrus-web-components/dist/nodes/rectangleWithExternalLabel/RectangleWithExternalLabelNodeLayoutHandler.d.ts.map +1 -0
- package/papyrus-web-components/dist/papyrus-web-components.es.js +11710 -0
- package/papyrus-web-components/dist/papyrus-web-components.umd.js +11664 -0
- package/papyrus-web-components/dist/profile/apply-profile/ApplyProfileModal.d.ts +3 -0
- package/papyrus-web-components/dist/profile/apply-profile/ApplyProfileModal.d.ts.map +1 -0
- package/papyrus-web-components/dist/profile/apply-profile/ApplyProfileModal.types.d.ts +55 -0
- package/papyrus-web-components/dist/profile/apply-profile/ApplyProfileModal.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/profile/apply-profile/ApplyProfileModalMachine.d.ts +65 -0
- package/papyrus-web-components/dist/profile/apply-profile/ApplyProfileModalMachine.d.ts.map +1 -0
- package/papyrus-web-components/dist/profile/apply-profile/UMLModelTreeItemContextMenuContribution.d.ts +16 -0
- package/papyrus-web-components/dist/profile/apply-profile/UMLModelTreeItemContextMenuContribution.d.ts.map +1 -0
- package/papyrus-web-components/dist/profile/apply-stereotype/ApplyStereotypeModal.d.ts +15 -0
- package/papyrus-web-components/dist/profile/apply-stereotype/ApplyStereotypeModal.d.ts.map +1 -0
- package/papyrus-web-components/dist/profile/apply-stereotype/ApplyStereotypeModal.types.d.ts +48 -0
- package/papyrus-web-components/dist/profile/apply-stereotype/ApplyStereotypeModal.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/profile/apply-stereotype/ApplyStereotypeModalMachine.d.ts +65 -0
- package/papyrus-web-components/dist/profile/apply-stereotype/ApplyStereotypeModalMachine.d.ts.map +1 -0
- package/papyrus-web-components/dist/profile/apply-stereotype/UMLElementTreeItemContextMenuContribution.d.ts +16 -0
- package/papyrus-web-components/dist/profile/apply-stereotype/UMLElementTreeItemContextMenuContribution.d.ts.map +1 -0
- package/papyrus-web-components/dist/profile/publish-profile/PublishProfileDialog.d.ts +16 -0
- package/papyrus-web-components/dist/profile/publish-profile/PublishProfileDialog.d.ts.map +1 -0
- package/papyrus-web-components/dist/profile/publish-profile/PublishProfileDialog.types.d.ts +72 -0
- package/papyrus-web-components/dist/profile/publish-profile/PublishProfileDialog.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/profile/publish-profile/PublishProfileTreeItemContextMenuContribution.d.ts +16 -0
- package/papyrus-web-components/dist/profile/publish-profile/PublishProfileTreeItemContextMenuContribution.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/CustomWidgetsDocumentTransform.d.ts +15 -0
- package/papyrus-web-components/dist/widgets/CustomWidgetsDocumentTransform.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/containmentReference/ContainmentReferenceFragment.types.d.ts +145 -0
- package/papyrus-web-components/dist/widgets/containmentReference/ContainmentReferenceFragment.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/containmentReference/ContainmentReferenceIcon.d.ts +16 -0
- package/papyrus-web-components/dist/widgets/containmentReference/ContainmentReferenceIcon.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/containmentReference/ContainmentReferencePreview.d.ts +19 -0
- package/papyrus-web-components/dist/widgets/containmentReference/ContainmentReferencePreview.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/containmentReference/ContainmentReferenceSection.d.ts +21 -0
- package/papyrus-web-components/dist/widgets/containmentReference/ContainmentReferenceSection.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/containmentReference/ReorderIcon.d.ts +18 -0
- package/papyrus-web-components/dist/widgets/containmentReference/ReorderIcon.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/containmentReference/dialogs/CreateNewChildDialog.d.ts +17 -0
- package/papyrus-web-components/dist/widgets/containmentReference/dialogs/CreateNewChildDialog.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/containmentReference/dialogs/CreateNewChildDialog.types.d.ts +23 -0
- package/papyrus-web-components/dist/widgets/containmentReference/dialogs/CreateNewChildDialog.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/customImage/AddImageIcon.d.ts +17 -0
- package/papyrus-web-components/dist/widgets/customImage/AddImageIcon.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/customImage/CustomImageFragment.types.d.ts +83 -0
- package/papyrus-web-components/dist/widgets/customImage/CustomImageFragment.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/customImage/CustomImageIcon.d.ts +17 -0
- package/papyrus-web-components/dist/widgets/customImage/CustomImageIcon.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/customImage/CustomImagePreview.d.ts +20 -0
- package/papyrus-web-components/dist/widgets/customImage/CustomImagePreview.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/customImage/CustomImageSection.d.ts +21 -0
- package/papyrus-web-components/dist/widgets/customImage/CustomImageSection.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/dialogs/ReorderItemsDialog.d.ts +17 -0
- package/papyrus-web-components/dist/widgets/dialogs/ReorderItemsDialog.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/dialogs/ReorderItemsDialog.types.d.ts +29 -0
- package/papyrus-web-components/dist/widgets/dialogs/ReorderItemsDialog.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/languageExpression/LanguageExpressionFragment.types.d.ts +97 -0
- package/papyrus-web-components/dist/widgets/languageExpression/LanguageExpressionFragment.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/languageExpression/LanguageExpressionIcon.d.ts +16 -0
- package/papyrus-web-components/dist/widgets/languageExpression/LanguageExpressionIcon.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/languageExpression/LanguageExpressionPreview.d.ts +6 -0
- package/papyrus-web-components/dist/widgets/languageExpression/LanguageExpressionPreview.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/languageExpression/LanguageExpressionSection.d.ts +21 -0
- package/papyrus-web-components/dist/widgets/languageExpression/LanguageExpressionSection.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/primitiveList/PrimitiveListWidgetPreview.d.ts +19 -0
- package/papyrus-web-components/dist/widgets/primitiveList/PrimitiveListWidgetPreview.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/primitiveList/PrimitiveListWidgetPropertySection.d.ts +7 -0
- package/papyrus-web-components/dist/widgets/primitiveList/PrimitiveListWidgetPropertySection.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/primitiveList/PrimitiveListWidgetPropertySection.types.d.ts +135 -0
- package/papyrus-web-components/dist/widgets/primitiveList/PrimitiveListWidgetPropertySection.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/primitiveRadio/PrimitiveRadioFragment.type.d.ts +42 -0
- package/papyrus-web-components/dist/widgets/primitiveRadio/PrimitiveRadioFragment.type.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/primitiveRadio/PrimitiveRadioIcon.d.ts +16 -0
- package/papyrus-web-components/dist/widgets/primitiveRadio/PrimitiveRadioIcon.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/primitiveRadio/PrimitiveRadioPreview.d.ts +19 -0
- package/papyrus-web-components/dist/widgets/primitiveRadio/PrimitiveRadioPreview.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/primitiveRadio/PrimitiveRadioSection.d.ts +18 -0
- package/papyrus-web-components/dist/widgets/primitiveRadio/PrimitiveRadioSection.d.ts.map +1 -0
- package/papyrus-web-components/package.json +105 -0
- package/papyrus-web-components/src/diagram-tools/EditProjectView.types.ts +56 -0
- package/papyrus-web-components/src/diagram-tools/FilterableSortableList.tsx +172 -0
- package/papyrus-web-components/src/diagram-tools/FilterableSortableList.types.ts +34 -0
- package/papyrus-web-components/src/diagram-tools/ModelBrowserFilterBar.tsx +73 -0
- package/papyrus-web-components/src/diagram-tools/ModelBrowserFilterBar.types.ts +19 -0
- package/papyrus-web-components/src/diagram-tools/PapyrusPopupToolContribution.tsx +206 -0
- package/papyrus-web-components/src/diagram-tools/PapyrusPopupToolContribution.types.ts +61 -0
- package/papyrus-web-components/src/diagram-tools/TransferModal.tsx +235 -0
- package/papyrus-web-components/src/diagram-tools/TransferModal.types.ts +35 -0
- package/papyrus-web-components/src/index.ts +61 -0
- package/papyrus-web-components/src/nodes/NodesDocumentTransform.ts +242 -0
- package/papyrus-web-components/src/nodes/cuboid/CuboidNode.tsx +183 -0
- package/papyrus-web-components/src/nodes/cuboid/CuboidNode.types.ts +30 -0
- package/papyrus-web-components/src/nodes/cuboid/CuboidNodeConverter.ts +201 -0
- package/papyrus-web-components/src/nodes/cuboid/CuboidNodeLayoutHandler.ts +283 -0
- package/papyrus-web-components/src/nodes/cuboid/CuboidNodeListConverter.ts +238 -0
- package/papyrus-web-components/src/nodes/cuboid/CuboidNodeListLayoutHandler.ts +260 -0
- package/papyrus-web-components/src/nodes/customImage/CustomImageNode.tsx +153 -0
- package/papyrus-web-components/src/nodes/customImage/CustomImageNode.types.ts +37 -0
- package/papyrus-web-components/src/nodes/customImage/CustomImageNodeConverter.ts +212 -0
- package/papyrus-web-components/src/nodes/customImage/CustomImageNodeLayoutHandler.ts +53 -0
- package/papyrus-web-components/src/nodes/ellipse/EllipseNode.tsx +119 -0
- package/papyrus-web-components/src/nodes/ellipse/EllipseNode.types.ts +35 -0
- package/papyrus-web-components/src/nodes/ellipse/EllipseNodeConverter.ts +208 -0
- package/papyrus-web-components/src/nodes/ellipse/EllipseNodeLayoutHandler.ts +284 -0
- package/papyrus-web-components/src/nodes/innerFlag/InnerFlagNode.tsx +156 -0
- package/papyrus-web-components/src/nodes/innerFlag/InnerFlagNode.types.ts +23 -0
- package/papyrus-web-components/src/nodes/innerFlag/InnerFlagNodeConverter.ts +200 -0
- package/papyrus-web-components/src/nodes/innerFlag/InnerFlagNodeLayoutHandler.ts +118 -0
- package/papyrus-web-components/src/nodes/note/NoteLabel.tsx +146 -0
- package/papyrus-web-components/src/nodes/note/NoteNode.tsx +168 -0
- package/papyrus-web-components/src/nodes/note/NoteNode.types.ts +43 -0
- package/papyrus-web-components/src/nodes/note/NoteNodeConverter.ts +200 -0
- package/papyrus-web-components/src/nodes/note/NoteNodeLayoutHandler.ts +85 -0
- package/papyrus-web-components/src/nodes/outerFlag/OuterFlagNode.tsx +153 -0
- package/papyrus-web-components/src/nodes/outerFlag/OuterFlagNode.types.ts +23 -0
- package/papyrus-web-components/src/nodes/outerFlag/OuterFlagNodeConverter.ts +200 -0
- package/papyrus-web-components/src/nodes/outerFlag/OuterFlagNodeLayoutHandler.ts +116 -0
- package/papyrus-web-components/src/nodes/package/PackageNode.tsx +200 -0
- package/papyrus-web-components/src/nodes/package/PackageNode.types.ts +30 -0
- package/papyrus-web-components/src/nodes/package/PackageNodeConverter.ts +243 -0
- package/papyrus-web-components/src/nodes/package/PackageNodeLayoutHandler.ts +229 -0
- package/papyrus-web-components/src/nodes/package/PackageNodeListConverter.ts +254 -0
- package/papyrus-web-components/src/nodes/package/PackageNodeListLayoutHandler.ts +253 -0
- package/papyrus-web-components/src/nodes/rectangleWithExternalLabel/RectangleWithExternalLabelNode.tsx +155 -0
- package/papyrus-web-components/src/nodes/rectangleWithExternalLabel/RectangleWithExternalLabelNode.types.ts +23 -0
- package/papyrus-web-components/src/nodes/rectangleWithExternalLabel/RectangleWithExternalLabelNodeConverter.ts +205 -0
- package/papyrus-web-components/src/nodes/rectangleWithExternalLabel/RectangleWithExternalLabelNodeLayoutHandler.ts +55 -0
- package/papyrus-web-components/src/profile/apply-profile/ApplyProfileModal.tsx +238 -0
- package/papyrus-web-components/src/profile/apply-profile/ApplyProfileModal.types.tsx +65 -0
- package/papyrus-web-components/src/profile/apply-profile/ApplyProfileModalMachine.tsx +175 -0
- package/papyrus-web-components/src/profile/apply-profile/UMLModelTreeItemContextMenuContribution.tsx +74 -0
- package/papyrus-web-components/src/profile/apply-stereotype/ApplyStereotypeModal.tsx +248 -0
- package/papyrus-web-components/src/profile/apply-stereotype/ApplyStereotypeModal.types.ts +57 -0
- package/papyrus-web-components/src/profile/apply-stereotype/ApplyStereotypeModalMachine.ts +185 -0
- package/papyrus-web-components/src/profile/apply-stereotype/UMLElementTreeItemContextMenuContribution.tsx +70 -0
- package/papyrus-web-components/src/profile/publish-profile/PublishProfileDialog.tsx +380 -0
- package/papyrus-web-components/src/profile/publish-profile/PublishProfileDialog.types.ts +84 -0
- package/papyrus-web-components/src/profile/publish-profile/PublishProfileTreeItemContextMenuContribution.tsx +59 -0
- package/papyrus-web-components/src/widgets/CustomWidgetsDocumentTransform.ts +215 -0
- package/papyrus-web-components/src/widgets/containmentReference/ContainmentReferenceFragment.types.ts +178 -0
- package/papyrus-web-components/src/widgets/containmentReference/ContainmentReferenceIcon.tsx +38 -0
- package/papyrus-web-components/src/widgets/containmentReference/ContainmentReferencePreview.tsx +106 -0
- package/papyrus-web-components/src/widgets/containmentReference/ContainmentReferenceSection.tsx +508 -0
- package/papyrus-web-components/src/widgets/containmentReference/ReorderIcon.tsx +31 -0
- package/papyrus-web-components/src/widgets/containmentReference/dialogs/CreateNewChildDialog.tsx +104 -0
- package/papyrus-web-components/src/widgets/containmentReference/dialogs/CreateNewChildDialog.types.ts +24 -0
- package/papyrus-web-components/src/widgets/customImage/AddImageIcon.tsx +35 -0
- package/papyrus-web-components/src/widgets/customImage/CustomImageFragment.types.ts +98 -0
- package/papyrus-web-components/src/widgets/customImage/CustomImageIcon.tsx +34 -0
- package/papyrus-web-components/src/widgets/customImage/CustomImagePreview.tsx +87 -0
- package/papyrus-web-components/src/widgets/customImage/CustomImageSection.tsx +348 -0
- package/papyrus-web-components/src/widgets/dialogs/ReorderItemsDialog.tsx +145 -0
- package/papyrus-web-components/src/widgets/dialogs/ReorderItemsDialog.types.ts +30 -0
- package/papyrus-web-components/src/widgets/languageExpression/LanguageExpressionFragment.types.ts +117 -0
- package/papyrus-web-components/src/widgets/languageExpression/LanguageExpressionIcon.tsx +36 -0
- package/papyrus-web-components/src/widgets/languageExpression/LanguageExpressionPreview.tsx +163 -0
- package/papyrus-web-components/src/widgets/languageExpression/LanguageExpressionSection.tsx +548 -0
- package/papyrus-web-components/src/widgets/primitiveList/PrimitiveListWidgetPreview.tsx +158 -0
- package/papyrus-web-components/src/widgets/primitiveList/PrimitiveListWidgetPropertySection.tsx +616 -0
- package/papyrus-web-components/src/widgets/primitiveList/PrimitiveListWidgetPropertySection.types.ts +162 -0
- package/papyrus-web-components/src/widgets/primitiveRadio/PrimitiveRadioFragment.type.ts +49 -0
- package/papyrus-web-components/src/widgets/primitiveRadio/PrimitiveRadioIcon.tsx +36 -0
- package/papyrus-web-components/src/widgets/primitiveRadio/PrimitiveRadioPreview.tsx +88 -0
- package/papyrus-web-components/src/widgets/primitiveRadio/PrimitiveRadioSection.tsx +128 -0
- package/papyrus-web-components/tsconfig.json +14 -0
- package/papyrus-web-components/vite.config.js +26 -0
- package/turbo.json +31 -0
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
/*****************************************************************************
|
|
2
|
+
* Copyright (c) 2023, 2025 CEA LIST, Obeo.
|
|
3
|
+
*
|
|
4
|
+
* All rights reserved. This program and the accompanying materials
|
|
5
|
+
* are made available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which accompanies this distribution, and is available at
|
|
7
|
+
* https://www.eclipse.org/legal/epl-2.0/
|
|
8
|
+
*
|
|
9
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
|
+
*
|
|
11
|
+
* Contributors:
|
|
12
|
+
* Obeo - Initial API and implementation
|
|
13
|
+
*****************************************************************************/
|
|
14
|
+
import {
|
|
15
|
+
applyRatioOnNewNodeSizeValue,
|
|
16
|
+
computeNodesBox,
|
|
17
|
+
computePreviousSize,
|
|
18
|
+
Diagram,
|
|
19
|
+
DiagramNodeType,
|
|
20
|
+
findNodeIndex,
|
|
21
|
+
ForcedDimensions,
|
|
22
|
+
getBorderNodeExtent,
|
|
23
|
+
getDefaultOrMinHeight,
|
|
24
|
+
getDefaultOrMinWidth,
|
|
25
|
+
getEastBorderNodeFootprintHeight,
|
|
26
|
+
getHeaderHeightFootprint,
|
|
27
|
+
getNorthBorderNodeFootprintWidth,
|
|
28
|
+
getSouthBorderNodeFootprintWidth,
|
|
29
|
+
getWestBorderNodeFootprintHeight,
|
|
30
|
+
ILayoutEngine,
|
|
31
|
+
INodeLayoutHandler,
|
|
32
|
+
NodeData,
|
|
33
|
+
setBorderNodesPosition,
|
|
34
|
+
getInsideLabelWidthConstraint,
|
|
35
|
+
} from '@eclipse-sirius/sirius-components-diagrams';
|
|
36
|
+
import { Node } from '@xyflow/react';
|
|
37
|
+
import { CuboidNodeListData } from './CuboidNode.types';
|
|
38
|
+
|
|
39
|
+
// The number of px reserved on the right & top of the cuboid node to draw perspective lines.
|
|
40
|
+
const cuboidBorder: number = 20;
|
|
41
|
+
// The padding around the label (which is not computed by headerHeightFootprint)
|
|
42
|
+
const labelPadding: number = 18;
|
|
43
|
+
|
|
44
|
+
const rectangularNodePadding: number = 8;
|
|
45
|
+
|
|
46
|
+
export class CuboidNodeListLayoutHandler implements INodeLayoutHandler<CuboidNodeListData> {
|
|
47
|
+
public canHandle(node: Node<NodeData, DiagramNodeType>) {
|
|
48
|
+
return node.type === 'cuboidNodeList';
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
public handle(
|
|
52
|
+
layoutEngine: ILayoutEngine,
|
|
53
|
+
previousDiagram: Diagram | null,
|
|
54
|
+
node: Node<CuboidNodeListData, 'cuboidNodeList'>,
|
|
55
|
+
visibleNodes: Node<NodeData, DiagramNodeType>[],
|
|
56
|
+
directChildren: Node<NodeData, DiagramNodeType>[],
|
|
57
|
+
newlyAddedNodes: Node<NodeData, DiagramNodeType>[],
|
|
58
|
+
forceDimensions?: ForcedDimensions
|
|
59
|
+
) {
|
|
60
|
+
const nodeIndex = findNodeIndex(visibleNodes, node.id);
|
|
61
|
+
const nodeElement = document.getElementById(`${node.id}-cuboidNodeList-${nodeIndex}`)?.children[0];
|
|
62
|
+
const borderWidth = nodeElement ? parseFloat(window.getComputedStyle(nodeElement).borderWidth) : 0;
|
|
63
|
+
if (directChildren.length > 0) {
|
|
64
|
+
this.handleParentNode(
|
|
65
|
+
layoutEngine,
|
|
66
|
+
previousDiagram,
|
|
67
|
+
node,
|
|
68
|
+
visibleNodes,
|
|
69
|
+
directChildren,
|
|
70
|
+
newlyAddedNodes,
|
|
71
|
+
borderWidth,
|
|
72
|
+
forceDimensions
|
|
73
|
+
);
|
|
74
|
+
} else {
|
|
75
|
+
this.handleLeafNode(previousDiagram, node, visibleNodes, borderWidth, forceDimensions);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
private handleParentNode(
|
|
80
|
+
layoutEngine: ILayoutEngine,
|
|
81
|
+
previousDiagram: Diagram | null,
|
|
82
|
+
node: Node<CuboidNodeListData, 'cuboidNodeList'>,
|
|
83
|
+
visibleNodes: Node<NodeData, DiagramNodeType>[],
|
|
84
|
+
directChildren: Node<NodeData, DiagramNodeType>[],
|
|
85
|
+
newlyAddedNodes: Node<NodeData, DiagramNodeType>[],
|
|
86
|
+
borderWidth: number,
|
|
87
|
+
forceDimensions?: ForcedDimensions
|
|
88
|
+
) {
|
|
89
|
+
layoutEngine.layoutNodes(previousDiagram, visibleNodes, directChildren, newlyAddedNodes, forceDimensions);
|
|
90
|
+
|
|
91
|
+
const nodeIndex = findNodeIndex(visibleNodes, node.id);
|
|
92
|
+
const labelElement = document.getElementById(`${node.id}-label-${nodeIndex}`);
|
|
93
|
+
const labelWidth =
|
|
94
|
+
getInsideLabelWidthConstraint(node.data.insideLabel, labelElement) + 2 * borderWidth + labelPadding;
|
|
95
|
+
const labelHeight =
|
|
96
|
+
rectangularNodePadding + (labelElement?.getBoundingClientRect().height ?? 0) + rectangularNodePadding;
|
|
97
|
+
let headerHeightFootprint = getHeaderHeightFootprint(labelElement, node.data.insideLabel, 'TOP');
|
|
98
|
+
const borderNodes = directChildren.filter((node) => node.data.isBorderNode);
|
|
99
|
+
const directNodesChildren = directChildren.filter((child) => !child.data.isBorderNode);
|
|
100
|
+
const minNodeWith = Math.max(labelWidth + cuboidBorder, node.data.defaultWidth ? node.data.defaultWidth : 0);
|
|
101
|
+
const minNodeheight = Math.max(labelHeight, node.data.defaultHeight ? node.data.defaultHeight : 0);
|
|
102
|
+
|
|
103
|
+
const withHeader: boolean = node.data.insideLabel?.isHeader ?? false;
|
|
104
|
+
const northBorderNodeFootprintWidth = getNorthBorderNodeFootprintWidth(visibleNodes, borderNodes, previousDiagram);
|
|
105
|
+
const southBorderNodeFootprintWidth = getSouthBorderNodeFootprintWidth(visibleNodes, borderNodes, previousDiagram);
|
|
106
|
+
|
|
107
|
+
const previousNode: Node<NodeData, string> | undefined = (previousDiagram?.nodes ?? []).find(
|
|
108
|
+
(previouseNode) => previouseNode.id === node.id
|
|
109
|
+
);
|
|
110
|
+
|
|
111
|
+
if (!node.width || node.width < minNodeWith) {
|
|
112
|
+
node.width = minNodeWith;
|
|
113
|
+
}
|
|
114
|
+
if (!node.height || node.height < minNodeheight) {
|
|
115
|
+
node.height = minNodeheight;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (!forceDimensions) {
|
|
119
|
+
let previousChildrenContentBoxWidthToConsider: number = getDefaultOrMinWidth(0, node) - borderWidth * 2;
|
|
120
|
+
let previousChildrenContentBoxHeightToConsider: number = 0;
|
|
121
|
+
if (node.data.resizedByUser) {
|
|
122
|
+
previousChildrenContentBoxWidthToConsider = (previousNode?.width ?? node.width ?? 0) - borderWidth * 2;
|
|
123
|
+
previousChildrenContentBoxHeightToConsider =
|
|
124
|
+
(previousNode?.height ?? node.height ?? 0) -
|
|
125
|
+
borderWidth * 2 -
|
|
126
|
+
(withHeader ? labelElement?.getBoundingClientRect().height ?? 0 : 0);
|
|
127
|
+
}
|
|
128
|
+
let fixedWidth: number = Math.max(
|
|
129
|
+
directNodesChildren.reduce<number>(
|
|
130
|
+
(widerWidth, child) => Math.max(child.width ?? 0, widerWidth),
|
|
131
|
+
labelElement?.getBoundingClientRect().width ?? 0
|
|
132
|
+
),
|
|
133
|
+
northBorderNodeFootprintWidth,
|
|
134
|
+
southBorderNodeFootprintWidth,
|
|
135
|
+
previousChildrenContentBoxWidthToConsider,
|
|
136
|
+
minNodeWith
|
|
137
|
+
);
|
|
138
|
+
fixedWidth = fixedWidth - cuboidBorder - borderWidth;
|
|
139
|
+
const nonGrowableChilds = directNodesChildren.filter(
|
|
140
|
+
(child) => !node.data.growableNodeIds.includes(child.data.descriptionId) || child.data.resizedByUser
|
|
141
|
+
);
|
|
142
|
+
nonGrowableChilds.forEach((nonGrowableChild) => {
|
|
143
|
+
layoutEngine.layoutNodes(previousDiagram, visibleNodes, [nonGrowableChild], newlyAddedNodes, {
|
|
144
|
+
width: fixedWidth,
|
|
145
|
+
height: null,
|
|
146
|
+
});
|
|
147
|
+
});
|
|
148
|
+
previousChildrenContentBoxHeightToConsider -= nonGrowableChilds.reduce<number>(
|
|
149
|
+
(height, node) => height + (node.height ?? 0),
|
|
150
|
+
0
|
|
151
|
+
);
|
|
152
|
+
|
|
153
|
+
const growableChilds = directNodesChildren.filter(
|
|
154
|
+
(child) => node.data.growableNodeIds.includes(child.data.descriptionId) && !child.data.resizedByUser
|
|
155
|
+
);
|
|
156
|
+
const childHeight: number = previousChildrenContentBoxHeightToConsider / growableChilds.length;
|
|
157
|
+
growableChilds.forEach((growableChild) => {
|
|
158
|
+
layoutEngine.layoutNodes(previousDiagram, visibleNodes, [growableChild], newlyAddedNodes, {
|
|
159
|
+
width: fixedWidth,
|
|
160
|
+
height: Math.max(growableChild.height ?? 0, childHeight) - labelPadding,
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
directNodesChildren.forEach((child, index) => {
|
|
165
|
+
child.position = {
|
|
166
|
+
x: borderWidth,
|
|
167
|
+
y: headerHeightFootprint + labelPadding,
|
|
168
|
+
};
|
|
169
|
+
const previousSibling = directNodesChildren[index - 1];
|
|
170
|
+
if (previousSibling) {
|
|
171
|
+
child.position = { ...child.position, y: previousSibling.position.y + (previousSibling.height ?? 0) };
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
const childrenContentBox = computeNodesBox(visibleNodes, directNodesChildren);
|
|
176
|
+
|
|
177
|
+
const labelOnlyWidth = getInsideLabelWidthConstraint(node.data.insideLabel, labelElement);
|
|
178
|
+
const nodeMinComputeWidth = Math.max(childrenContentBox.width, labelOnlyWidth) + borderWidth * 2;
|
|
179
|
+
|
|
180
|
+
const directChildrenAwareNodeHeight =
|
|
181
|
+
childrenContentBox.y + childrenContentBox.height + borderWidth + node.data.bottomGap;
|
|
182
|
+
|
|
183
|
+
const eastBorderNodeFootprintHeight = getEastBorderNodeFootprintHeight(visibleNodes, borderNodes, previousDiagram);
|
|
184
|
+
const westBorderNodeFootprintHeight = getWestBorderNodeFootprintHeight(visibleNodes, borderNodes, previousDiagram);
|
|
185
|
+
|
|
186
|
+
const nodeMinComputeHeight = Math.max(
|
|
187
|
+
directChildrenAwareNodeHeight,
|
|
188
|
+
eastBorderNodeFootprintHeight,
|
|
189
|
+
westBorderNodeFootprintHeight
|
|
190
|
+
);
|
|
191
|
+
|
|
192
|
+
const nodeWidth = forceDimensions?.width ?? getDefaultOrMinWidth(nodeMinComputeWidth, node) + cuboidBorder;
|
|
193
|
+
const nodeHeight = forceDimensions?.height ?? getDefaultOrMinHeight(nodeMinComputeHeight, node);
|
|
194
|
+
|
|
195
|
+
const previousDimensions = computePreviousSize(previousNode, node);
|
|
196
|
+
|
|
197
|
+
if (node.data.resizedByUser) {
|
|
198
|
+
if (nodeMinComputeWidth > previousDimensions.width) {
|
|
199
|
+
node.width = nodeMinComputeWidth;
|
|
200
|
+
} else {
|
|
201
|
+
node.width = previousDimensions.width;
|
|
202
|
+
}
|
|
203
|
+
if (nodeMinComputeHeight > previousDimensions.height) {
|
|
204
|
+
node.height = nodeMinComputeHeight;
|
|
205
|
+
} else {
|
|
206
|
+
node.height = previousDimensions.height;
|
|
207
|
+
}
|
|
208
|
+
} else {
|
|
209
|
+
node.width = nodeWidth;
|
|
210
|
+
node.height = nodeHeight;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
if (node.data.nodeDescription?.keepAspectRatio) {
|
|
214
|
+
applyRatioOnNewNodeSizeValue(node);
|
|
215
|
+
}
|
|
216
|
+
// Update border nodes positions
|
|
217
|
+
borderNodes.forEach((borderNode) => {
|
|
218
|
+
borderNode.extent = getBorderNodeExtent(node, borderNode);
|
|
219
|
+
});
|
|
220
|
+
setBorderNodesPosition(borderNodes, node, previousDiagram);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
private handleLeafNode(
|
|
224
|
+
previousDiagram: Diagram | null,
|
|
225
|
+
node: Node<CuboidNodeListData, 'cuboidNodeList'>,
|
|
226
|
+
visibleNodes: Node<NodeData, DiagramNodeType>[],
|
|
227
|
+
borderWidth: number,
|
|
228
|
+
_forceDimensions?: ForcedDimensions
|
|
229
|
+
) {
|
|
230
|
+
const nodeIndex = findNodeIndex(visibleNodes, node.id);
|
|
231
|
+
const labelElement = document.getElementById(`${node.id}-label-${nodeIndex}`);
|
|
232
|
+
const labelWidth =
|
|
233
|
+
getInsideLabelWidthConstraint(node.data.insideLabel, labelElement) + 2 * borderWidth + labelPadding;
|
|
234
|
+
|
|
235
|
+
const labelHeight =
|
|
236
|
+
rectangularNodePadding + (labelElement?.getBoundingClientRect().height ?? 0) + rectangularNodePadding;
|
|
237
|
+
|
|
238
|
+
const minNodeWith = Math.max(labelWidth + cuboidBorder, node.data.defaultWidth ? node.data.defaultWidth : 0);
|
|
239
|
+
const minNodeheight = Math.max(labelHeight, node.data.defaultHeight ? node.data.defaultHeight : 0);
|
|
240
|
+
|
|
241
|
+
const previousNode = (previousDiagram?.nodes ?? []).find((previouseNode) => previouseNode.id === node.id);
|
|
242
|
+
const previousDimensions = computePreviousSize(previousNode, node);
|
|
243
|
+
|
|
244
|
+
if (node.data.resizedByUser) {
|
|
245
|
+
if (minNodeWith > previousDimensions.width) {
|
|
246
|
+
node.width = minNodeWith;
|
|
247
|
+
} else {
|
|
248
|
+
node.width = previousDimensions.width;
|
|
249
|
+
}
|
|
250
|
+
if (minNodeheight > previousDimensions.height) {
|
|
251
|
+
node.height = minNodeheight;
|
|
252
|
+
} else {
|
|
253
|
+
node.height = previousDimensions.height;
|
|
254
|
+
}
|
|
255
|
+
} else {
|
|
256
|
+
node.width = minNodeWith;
|
|
257
|
+
node.height = minNodeheight;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/*****************************************************************************
|
|
2
|
+
* Copyright (c) 2024, 2025 CEA LIST, Obeo, Artal Technologies.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials
|
|
5
|
+
* are made available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which accompanies this distribution, and is available at
|
|
7
|
+
* https://www.eclipse.org/legal/epl-2.0/
|
|
8
|
+
*
|
|
9
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
|
+
*
|
|
11
|
+
* Contributors:
|
|
12
|
+
* Obeo - Initial API and implementation
|
|
13
|
+
* Titouan BOUETE-GIRAUD (Artal Technologies) - Issue 218
|
|
14
|
+
* Aurelien Didier (Artal Technologies) - Issue 218
|
|
15
|
+
*****************************************************************************/
|
|
16
|
+
import { getCSSColor, ServerContext, ServerContextValue, useMultiToast } from '@eclipse-sirius/sirius-components-core';
|
|
17
|
+
import {
|
|
18
|
+
defaultHeight,
|
|
19
|
+
defaultWidth,
|
|
20
|
+
DiagramContext,
|
|
21
|
+
DiagramContextValue,
|
|
22
|
+
} from '@eclipse-sirius/sirius-components-diagrams';
|
|
23
|
+
import { Theme, useTheme } from '@mui/material/styles';
|
|
24
|
+
import { ResizeControlVariant } from '@xyflow/system';
|
|
25
|
+
import Typography from '@mui/material/Typography';
|
|
26
|
+
import { Edge, Node, NodeProps, useStoreApi, NodeResizeControl } from '@xyflow/react';
|
|
27
|
+
import { memo, useContext, useEffect, useState } from 'react';
|
|
28
|
+
import { CustomImageNodeData, NodeComponentsMap } from './CustomImageNode.types';
|
|
29
|
+
import {
|
|
30
|
+
EdgeData,
|
|
31
|
+
NodeData,
|
|
32
|
+
useConnectorNodeStyle,
|
|
33
|
+
useDropNodeStyle,
|
|
34
|
+
useConnectionLineNodeStyle,
|
|
35
|
+
} from '@eclipse-sirius/sirius-components-diagrams';
|
|
36
|
+
|
|
37
|
+
const resizeControlLineStyle = (theme: Theme): React.CSSProperties => {
|
|
38
|
+
return { borderColor: 'transparent', borderWidth: theme.spacing(0.25) };
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
const defaultErrorMessage = 'The provided shape for this node is not a valid image';
|
|
42
|
+
|
|
43
|
+
interface CustomImageNodeState {
|
|
44
|
+
url: string;
|
|
45
|
+
validImage: boolean;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const customImageNodeStyle = (
|
|
49
|
+
theme: Theme,
|
|
50
|
+
style: React.CSSProperties,
|
|
51
|
+
selected: boolean,
|
|
52
|
+
hovered: boolean,
|
|
53
|
+
faded: boolean
|
|
54
|
+
): React.CSSProperties => {
|
|
55
|
+
const customImageNodeStyle: React.CSSProperties = {
|
|
56
|
+
display: 'flex',
|
|
57
|
+
padding: '0px',
|
|
58
|
+
width: '100%',
|
|
59
|
+
height: '100%',
|
|
60
|
+
opacity: faded ? '0.4' : '',
|
|
61
|
+
...style,
|
|
62
|
+
border: 'none',
|
|
63
|
+
background: getCSSColor(String(style.background), theme),
|
|
64
|
+
alignItems: 'center',
|
|
65
|
+
justifyContent: 'center',
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
if (!!selected || hovered) {
|
|
69
|
+
customImageNodeStyle.outline = `${theme.palette.selected} solid 1px`;
|
|
70
|
+
}
|
|
71
|
+
return customImageNodeStyle;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export const CustomImageNode: NodeComponentsMap['customImageNode'] = memo(
|
|
75
|
+
({ data, id, selected, dragging }: NodeProps<Node<CustomImageNodeData>>) => {
|
|
76
|
+
const { readOnly } = useContext<DiagramContextValue>(DiagramContext);
|
|
77
|
+
const theme = useTheme();
|
|
78
|
+
const { addErrorMessage } = useMultiToast();
|
|
79
|
+
const { httpOrigin } = useContext<ServerContextValue>(ServerContext);
|
|
80
|
+
const [state, setState] = useState<CustomImageNodeState>({
|
|
81
|
+
url: data.shape && data.shape !== '' ? httpOrigin + data.shape : '',
|
|
82
|
+
validImage: data.shape !== undefined && data.shape !== '',
|
|
83
|
+
});
|
|
84
|
+
const { style: connectionFeedbackStyle } = useConnectorNodeStyle(id, data.nodeDescription.id);
|
|
85
|
+
const { style: dropFeedbackStyle } = useDropNodeStyle(data.isDropNodeTarget, data.isDropNodeCandidate, dragging);
|
|
86
|
+
const { style: connectionLineActiveNodeStyle } = useConnectionLineNodeStyle(data.connectionLinePositionOnNode);
|
|
87
|
+
|
|
88
|
+
const onErrorLoadingImage = () => {
|
|
89
|
+
setState((prevState) => ({ ...prevState, validImage: false }));
|
|
90
|
+
addErrorMessage(defaultErrorMessage);
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
const storeApi = useStoreApi<Node<NodeData>, Edge<EdgeData>>();
|
|
94
|
+
const getNodeById = (id: string) => storeApi.getState().nodeLookup.get(id);
|
|
95
|
+
const node = getNodeById(id);
|
|
96
|
+
const nodeHeight = node?.height ?? defaultHeight;
|
|
97
|
+
const nodeWidth = node?.width ?? defaultWidth;
|
|
98
|
+
|
|
99
|
+
useEffect(() => {
|
|
100
|
+
setState((prevState) => ({
|
|
101
|
+
...prevState,
|
|
102
|
+
url: data.shape && data.shape !== '' ? httpOrigin + data.shape : '',
|
|
103
|
+
validImage: data.shape !== undefined && data.shape !== '',
|
|
104
|
+
}));
|
|
105
|
+
}, [data.shape]);
|
|
106
|
+
|
|
107
|
+
return (
|
|
108
|
+
<>
|
|
109
|
+
{data.nodeDescription?.userResizable && !readOnly ? (
|
|
110
|
+
<>
|
|
111
|
+
<NodeResizeControl
|
|
112
|
+
variant={ResizeControlVariant.Line}
|
|
113
|
+
position={'top'}
|
|
114
|
+
style={{ ...resizeControlLineStyle(theme) }}
|
|
115
|
+
/>
|
|
116
|
+
<NodeResizeControl
|
|
117
|
+
variant={ResizeControlVariant.Line}
|
|
118
|
+
position={'bottom'}
|
|
119
|
+
style={{ ...resizeControlLineStyle(theme) }}
|
|
120
|
+
/>
|
|
121
|
+
</>
|
|
122
|
+
) : null}
|
|
123
|
+
<div
|
|
124
|
+
style={{
|
|
125
|
+
...customImageNodeStyle(theme, data.style, selected, data.isHovered, data.faded),
|
|
126
|
+
...connectionFeedbackStyle,
|
|
127
|
+
...dropFeedbackStyle,
|
|
128
|
+
...connectionLineActiveNodeStyle,
|
|
129
|
+
}}>
|
|
130
|
+
{state.validImage ? (
|
|
131
|
+
<img
|
|
132
|
+
id={id}
|
|
133
|
+
src={state.url}
|
|
134
|
+
width={nodeWidth - 5}
|
|
135
|
+
height={nodeHeight - 5}
|
|
136
|
+
draggable={false}
|
|
137
|
+
onError={onErrorLoadingImage}
|
|
138
|
+
style={{
|
|
139
|
+
objectFit: 'contain',
|
|
140
|
+
display: 'block',
|
|
141
|
+
margin: 'auto',
|
|
142
|
+
}}
|
|
143
|
+
/>
|
|
144
|
+
) : (
|
|
145
|
+
<Typography data-testid="custom-image-node-no-image" variant="caption">
|
|
146
|
+
No image
|
|
147
|
+
</Typography>
|
|
148
|
+
)}
|
|
149
|
+
</div>
|
|
150
|
+
</>
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*****************************************************************************
|
|
2
|
+
* Copyright (c) 2024, 2025 CEA LIST, Obeo, Artal Technologies.
|
|
3
|
+
*
|
|
4
|
+
* All rights reserved. This program and the accompanying materials
|
|
5
|
+
* are made available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which accompanies this distribution, and is available at
|
|
7
|
+
* https://www.eclipse.org/legal/epl-2.0/
|
|
8
|
+
*
|
|
9
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
|
+
*
|
|
11
|
+
* Contributors:
|
|
12
|
+
* Obeo - Initial API and implementation
|
|
13
|
+
* Titouan BOUETE-GIRAUD (Artal Technologies) - Issue 218
|
|
14
|
+
*****************************************************************************/
|
|
15
|
+
import { GQLNodeStyle, NodeData } from '@eclipse-sirius/sirius-components-diagrams';
|
|
16
|
+
import { Node, NodeProps } from '@xyflow/react';
|
|
17
|
+
import { FC } from 'react';
|
|
18
|
+
|
|
19
|
+
export interface CustomImageNodeData extends NodeData {
|
|
20
|
+
shape: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface GQLCustomImageNodeStyle extends GQLNodeStyle {
|
|
24
|
+
shape: string;
|
|
25
|
+
background: string;
|
|
26
|
+
borderColor: string;
|
|
27
|
+
borderStyle: string;
|
|
28
|
+
borderSize: number;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface NodeDataMap {
|
|
32
|
+
customImageNode: CustomImageNodeData;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type NodeComponentsMap = {
|
|
36
|
+
[K in keyof NodeDataMap]: FC<NodeProps<Node<NodeDataMap[K], K>>>;
|
|
37
|
+
};
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
/*****************************************************************************
|
|
2
|
+
* Copyright (c) 2024, 2026 CEA LIST, Obeo, Artal Technologies.
|
|
3
|
+
*
|
|
4
|
+
* All rights reserved. This program and the accompanying materials
|
|
5
|
+
* are made available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which accompanies this distribution, and is available at
|
|
7
|
+
* https://www.eclipse.org/legal/epl-2.0/
|
|
8
|
+
*
|
|
9
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
|
+
*
|
|
11
|
+
* Contributors:
|
|
12
|
+
* Obeo - Initial API and implementation
|
|
13
|
+
* Titouan BOUETE-GIRAUD (Artal Technologies) - Issue 218
|
|
14
|
+
*****************************************************************************/
|
|
15
|
+
//insipired by: sirius-web/packages/diagrams/frontend/sirius-components-diagrams/src/converter/ImageNodeConverter.ts
|
|
16
|
+
import {
|
|
17
|
+
BorderNodePosition,
|
|
18
|
+
ConnectionHandle,
|
|
19
|
+
GQLDiagram,
|
|
20
|
+
GQLDiagramDescription,
|
|
21
|
+
GQLEdge,
|
|
22
|
+
GQLHandleLayoutData,
|
|
23
|
+
GQLNode,
|
|
24
|
+
GQLNodeDescription,
|
|
25
|
+
GQLNodeLayoutData,
|
|
26
|
+
GQLNodeStyle,
|
|
27
|
+
GQLViewModifier,
|
|
28
|
+
IConvertEngine,
|
|
29
|
+
INodeConverter,
|
|
30
|
+
convertHandles,
|
|
31
|
+
convertInsideLabel,
|
|
32
|
+
convertLineStyle,
|
|
33
|
+
convertOutsideLabels,
|
|
34
|
+
isListLayoutStrategy,
|
|
35
|
+
defaultHeight,
|
|
36
|
+
defaultWidth,
|
|
37
|
+
} from '@eclipse-sirius/sirius-components-diagrams';
|
|
38
|
+
import { Node, XYPosition } from '@xyflow/react';
|
|
39
|
+
import { CustomImageNodeData, GQLCustomImageNodeStyle } from './CustomImageNode.types';
|
|
40
|
+
|
|
41
|
+
const defaultPosition: XYPosition = { x: 0, y: 0 };
|
|
42
|
+
|
|
43
|
+
const toCustomImageNode = (
|
|
44
|
+
gqlDiagram: GQLDiagram,
|
|
45
|
+
gqlNode: GQLNode<GQLCustomImageNodeStyle>,
|
|
46
|
+
gqlParentNode: GQLNode<GQLNodeStyle> | null,
|
|
47
|
+
nodeDescription: GQLNodeDescription,
|
|
48
|
+
isBorderNode: boolean,
|
|
49
|
+
gqlEdges: GQLEdge[]
|
|
50
|
+
): Node<CustomImageNodeData> => {
|
|
51
|
+
const {
|
|
52
|
+
targetObjectId,
|
|
53
|
+
targetObjectLabel,
|
|
54
|
+
targetObjectKind,
|
|
55
|
+
descriptionId,
|
|
56
|
+
id,
|
|
57
|
+
insideLabel,
|
|
58
|
+
outsideLabels,
|
|
59
|
+
state,
|
|
60
|
+
pinned,
|
|
61
|
+
style,
|
|
62
|
+
labelEditable,
|
|
63
|
+
deletable,
|
|
64
|
+
} = gqlNode;
|
|
65
|
+
|
|
66
|
+
const handleLayoutData: GQLHandleLayoutData[] = gqlDiagram.layoutData.nodeLayoutData
|
|
67
|
+
.filter((nodeLayoutData) => nodeLayoutData.id === id)
|
|
68
|
+
.flatMap((nodeLayoutData) => nodeLayoutData.handleLayoutData);
|
|
69
|
+
|
|
70
|
+
const connectionHandles: ConnectionHandle[] = convertHandles(gqlNode.id, gqlEdges, handleLayoutData);
|
|
71
|
+
const gqlNodeLayoutData: GQLNodeLayoutData | undefined = gqlDiagram.layoutData.nodeLayoutData.find(
|
|
72
|
+
(nodeLayoutData) => nodeLayoutData.id === id
|
|
73
|
+
);
|
|
74
|
+
const isNew = gqlNodeLayoutData === undefined;
|
|
75
|
+
const resizedByUser = gqlNodeLayoutData?.resizedByUser ?? false;
|
|
76
|
+
const movedByUser = gqlNodeLayoutData?.movedByUser ?? false;
|
|
77
|
+
|
|
78
|
+
const data: CustomImageNodeData = {
|
|
79
|
+
targetObjectId,
|
|
80
|
+
targetObjectLabel,
|
|
81
|
+
targetObjectKind,
|
|
82
|
+
descriptionId,
|
|
83
|
+
style: {
|
|
84
|
+
display: 'flex',
|
|
85
|
+
background: style.background,
|
|
86
|
+
borderColor: style.borderColor,
|
|
87
|
+
borderWidth: style.borderSize,
|
|
88
|
+
borderStyle: convertLineStyle(style.borderStyle),
|
|
89
|
+
},
|
|
90
|
+
insideLabel: null,
|
|
91
|
+
outsideLabels: convertOutsideLabels(outsideLabels, gqlDiagram.layoutData.labelLayoutData),
|
|
92
|
+
faded: state === GQLViewModifier.Faded,
|
|
93
|
+
pinned,
|
|
94
|
+
isBorderNode: isBorderNode,
|
|
95
|
+
nodeDescription,
|
|
96
|
+
defaultWidth: gqlNode.defaultWidth,
|
|
97
|
+
defaultHeight: gqlNode.defaultHeight,
|
|
98
|
+
borderNodePosition: isBorderNode ? BorderNodePosition.EAST : null,
|
|
99
|
+
connectionHandles,
|
|
100
|
+
labelEditable,
|
|
101
|
+
isNew,
|
|
102
|
+
resizedByUser,
|
|
103
|
+
movedByUser,
|
|
104
|
+
borderLeftWidth: 5,
|
|
105
|
+
borderRightWidth: 5,
|
|
106
|
+
borderBottomWidth: 5,
|
|
107
|
+
isListChild: isListLayoutStrategy(gqlParentNode?.style.childrenLayoutStrategy),
|
|
108
|
+
isDraggedNode: false,
|
|
109
|
+
isDropNodeTarget: false,
|
|
110
|
+
isDropNodeCandidate: false,
|
|
111
|
+
isHovered: false,
|
|
112
|
+
shape: style.shape,
|
|
113
|
+
connectionLinePositionOnNode: 'none',
|
|
114
|
+
nodeAppearanceData: {
|
|
115
|
+
gqlStyle: style,
|
|
116
|
+
customizedStyleProperties: [],
|
|
117
|
+
},
|
|
118
|
+
minComputedWidth: gqlNodeLayoutData?.minComputedSize.width ?? null,
|
|
119
|
+
minComputedHeight: gqlNodeLayoutData?.minComputedSize.height ?? null,
|
|
120
|
+
deletable,
|
|
121
|
+
isLastNodeSelected: false,
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
data.insideLabel = convertInsideLabel(
|
|
125
|
+
insideLabel,
|
|
126
|
+
data,
|
|
127
|
+
`${style.borderSize}px ${style.borderStyle} ${style.borderColor}`,
|
|
128
|
+
gqlNode.childNodes?.some((child) => child.state !== GQLViewModifier.Hidden)
|
|
129
|
+
);
|
|
130
|
+
|
|
131
|
+
const node: Node<CustomImageNodeData> = {
|
|
132
|
+
id,
|
|
133
|
+
type: 'customImageNode',
|
|
134
|
+
data,
|
|
135
|
+
position: defaultPosition,
|
|
136
|
+
hidden: gqlNode.state === GQLViewModifier.Hidden,
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
if (gqlParentNode) {
|
|
140
|
+
node.parentId = gqlParentNode.id;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
const nodeLayoutData = gqlDiagram.layoutData.nodeLayoutData.filter((data) => data.id === id)[0];
|
|
144
|
+
if (nodeLayoutData) {
|
|
145
|
+
const {
|
|
146
|
+
position,
|
|
147
|
+
size: { height, width },
|
|
148
|
+
} = nodeLayoutData;
|
|
149
|
+
node.position = position;
|
|
150
|
+
node.height = height;
|
|
151
|
+
node.width = width;
|
|
152
|
+
node.style = {
|
|
153
|
+
...node.style,
|
|
154
|
+
width: `${node.width}px`,
|
|
155
|
+
height: `${node.height}px`,
|
|
156
|
+
};
|
|
157
|
+
} else {
|
|
158
|
+
node.height = data.defaultHeight ?? defaultHeight;
|
|
159
|
+
node.width = data.defaultWidth ?? defaultWidth;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
return node;
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
export class CustomImageNodeConverter implements INodeConverter {
|
|
166
|
+
canHandle(gqlNode: GQLNode<GQLNodeStyle>) {
|
|
167
|
+
return gqlNode.style.__typename === 'CustomImageNodeStyle';
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
handle(
|
|
171
|
+
convertEngine: IConvertEngine,
|
|
172
|
+
gqlDiagram: GQLDiagram,
|
|
173
|
+
gqlNode: GQLNode<GQLCustomImageNodeStyle>,
|
|
174
|
+
gqlEdges: GQLEdge[],
|
|
175
|
+
parentNode: GQLNode<GQLNodeStyle> | null,
|
|
176
|
+
isBorderNode: boolean,
|
|
177
|
+
nodes: Node[],
|
|
178
|
+
diagramDescription: GQLDiagramDescription,
|
|
179
|
+
nodeDescriptions: GQLNodeDescription[]
|
|
180
|
+
) {
|
|
181
|
+
const nodeDescription = nodeDescriptions.find((description) => description.id === gqlNode.descriptionId);
|
|
182
|
+
if (nodeDescription) {
|
|
183
|
+
nodes.push(toCustomImageNode(gqlDiagram, gqlNode, parentNode, nodeDescription, isBorderNode, gqlEdges));
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
const borderNodeDescriptions: GQLNodeDescription[] = (nodeDescription?.borderNodeDescriptionIds ?? []).flatMap(
|
|
187
|
+
(nodeDescriptionId) =>
|
|
188
|
+
diagramDescription.nodeDescriptions.filter((nodeDescription) => nodeDescription.id === nodeDescriptionId)
|
|
189
|
+
);
|
|
190
|
+
const childNodeDescriptions: GQLNodeDescription[] = (nodeDescription?.childNodeDescriptionIds ?? []).flatMap(
|
|
191
|
+
(nodeDescriptionId) =>
|
|
192
|
+
diagramDescription.nodeDescriptions.filter((nodeDescription) => nodeDescription.id === nodeDescriptionId)
|
|
193
|
+
);
|
|
194
|
+
|
|
195
|
+
convertEngine.convertNodes(
|
|
196
|
+
gqlDiagram,
|
|
197
|
+
gqlNode.borderNodes ?? [],
|
|
198
|
+
gqlNode,
|
|
199
|
+
nodes,
|
|
200
|
+
diagramDescription,
|
|
201
|
+
borderNodeDescriptions
|
|
202
|
+
);
|
|
203
|
+
convertEngine.convertNodes(
|
|
204
|
+
gqlDiagram,
|
|
205
|
+
gqlNode.childNodes ?? [],
|
|
206
|
+
gqlNode,
|
|
207
|
+
nodes,
|
|
208
|
+
diagramDescription,
|
|
209
|
+
childNodeDescriptions
|
|
210
|
+
);
|
|
211
|
+
}
|
|
212
|
+
}
|