@darajs/ui-causal-graph-editor 1.0.0-a.1
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 +201 -0
- package/dist/graph-viewer/causal-graph-editor.d.ts +44 -0
- package/dist/graph-viewer/causal-graph-editor.d.ts.map +1 -0
- package/dist/graph-viewer/causal-graph-editor.js +357 -0
- package/dist/graph-viewer/causal-graph-editor.js.map +1 -0
- package/dist/graph-viewer/utils/use-iterate-edges.d.ts +32 -0
- package/dist/graph-viewer/utils/use-iterate-edges.d.ts.map +1 -0
- package/dist/graph-viewer/utils/use-iterate-edges.js +34 -0
- package/dist/graph-viewer/utils/use-iterate-edges.js.map +1 -0
- package/dist/graph-viewer/utils/use-iterate-nodes.d.ts +32 -0
- package/dist/graph-viewer/utils/use-iterate-nodes.d.ts.map +1 -0
- package/dist/graph-viewer/utils/use-iterate-nodes.js +30 -0
- package/dist/graph-viewer/utils/use-iterate-nodes.js.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -0
- package/dist/jest-setup.d.ts +18 -0
- package/dist/jest-setup.d.ts.map +1 -0
- package/dist/jest-setup.js +18 -0
- package/dist/jest-setup.js.map +1 -0
- package/dist/node-hierarchy-builder/index.d.ts +19 -0
- package/dist/node-hierarchy-builder/index.d.ts.map +1 -0
- package/dist/node-hierarchy-builder/index.js +18 -0
- package/dist/node-hierarchy-builder/index.js.map +1 -0
- package/dist/node-hierarchy-builder/layer-divider.d.ts +15 -0
- package/dist/node-hierarchy-builder/layer-divider.d.ts.map +1 -0
- package/dist/node-hierarchy-builder/layer-divider.js +122 -0
- package/dist/node-hierarchy-builder/layer-divider.js.map +1 -0
- package/dist/node-hierarchy-builder/layer-label-editor.d.ts +24 -0
- package/dist/node-hierarchy-builder/layer-label-editor.d.ts.map +1 -0
- package/dist/node-hierarchy-builder/layer-label-editor.js +93 -0
- package/dist/node-hierarchy-builder/layer-label-editor.js.map +1 -0
- package/dist/node-hierarchy-builder/layer.d.ts +35 -0
- package/dist/node-hierarchy-builder/layer.d.ts.map +1 -0
- package/dist/node-hierarchy-builder/layer.js +114 -0
- package/dist/node-hierarchy-builder/layer.js.map +1 -0
- package/dist/node-hierarchy-builder/node-hierarchy-builder.d.ts +27 -0
- package/dist/node-hierarchy-builder/node-hierarchy-builder.d.ts.map +1 -0
- package/dist/node-hierarchy-builder/node-hierarchy-builder.js +190 -0
- package/dist/node-hierarchy-builder/node-hierarchy-builder.js.map +1 -0
- package/dist/node-hierarchy-builder/node.d.ts +21 -0
- package/dist/node-hierarchy-builder/node.d.ts.map +1 -0
- package/dist/node-hierarchy-builder/node.js +90 -0
- package/dist/node-hierarchy-builder/node.js.map +1 -0
- package/dist/node-hierarchy-builder/shared.d.ts +93 -0
- package/dist/node-hierarchy-builder/shared.d.ts.map +1 -0
- package/dist/node-hierarchy-builder/shared.js +88 -0
- package/dist/node-hierarchy-builder/shared.js.map +1 -0
- package/dist/shared/causal-graph-store.d.ts +107 -0
- package/dist/shared/causal-graph-store.d.ts.map +1 -0
- package/dist/shared/causal-graph-store.js +142 -0
- package/dist/shared/causal-graph-store.js.map +1 -0
- package/dist/shared/editor-overlay/buttons/add-node-button.d.ts +7 -0
- package/dist/shared/editor-overlay/buttons/add-node-button.d.ts.map +1 -0
- package/dist/shared/editor-overlay/buttons/add-node-button.js +31 -0
- package/dist/shared/editor-overlay/buttons/add-node-button.js.map +1 -0
- package/dist/shared/editor-overlay/buttons/center-graph-button.d.ts +7 -0
- package/dist/shared/editor-overlay/buttons/center-graph-button.d.ts.map +1 -0
- package/dist/shared/editor-overlay/buttons/center-graph-button.js +32 -0
- package/dist/shared/editor-overlay/buttons/center-graph-button.js.map +1 -0
- package/dist/shared/editor-overlay/buttons/drag-mode-button.d.ts +27 -0
- package/dist/shared/editor-overlay/buttons/drag-mode-button.d.ts.map +1 -0
- package/dist/shared/editor-overlay/buttons/drag-mode-button.js +35 -0
- package/dist/shared/editor-overlay/buttons/drag-mode-button.js.map +1 -0
- package/dist/shared/editor-overlay/buttons/index.d.ts +21 -0
- package/dist/shared/editor-overlay/buttons/index.d.ts.map +1 -0
- package/dist/shared/editor-overlay/buttons/index.js +21 -0
- package/dist/shared/editor-overlay/buttons/index.js.map +1 -0
- package/dist/shared/editor-overlay/buttons/recalculate-layout-button.d.ts +7 -0
- package/dist/shared/editor-overlay/buttons/recalculate-layout-button.d.ts.map +1 -0
- package/dist/shared/editor-overlay/buttons/recalculate-layout-button.js +28 -0
- package/dist/shared/editor-overlay/buttons/recalculate-layout-button.js.map +1 -0
- package/dist/shared/editor-overlay/floating-elements.d.ts +29 -0
- package/dist/shared/editor-overlay/floating-elements.d.ts.map +1 -0
- package/dist/shared/editor-overlay/floating-elements.js +17 -0
- package/dist/shared/editor-overlay/floating-elements.js.map +1 -0
- package/dist/shared/editor-overlay/index.d.ts +22 -0
- package/dist/shared/editor-overlay/index.d.ts.map +1 -0
- package/dist/shared/editor-overlay/index.js +22 -0
- package/dist/shared/editor-overlay/index.js.map +1 -0
- package/dist/shared/editor-overlay/legend/index.d.ts +19 -0
- package/dist/shared/editor-overlay/legend/index.d.ts.map +1 -0
- package/dist/shared/editor-overlay/legend/index.js +19 -0
- package/dist/shared/editor-overlay/legend/index.js.map +1 -0
- package/dist/shared/editor-overlay/legend/legend-data.d.ts +34 -0
- package/dist/shared/editor-overlay/legend/legend-data.d.ts.map +1 -0
- package/dist/shared/editor-overlay/legend/legend-data.js +41 -0
- package/dist/shared/editor-overlay/legend/legend-data.js.map +1 -0
- package/dist/shared/editor-overlay/legend/legend-list.d.ts +6 -0
- package/dist/shared/editor-overlay/legend/legend-list.d.ts.map +1 -0
- package/dist/shared/editor-overlay/legend/legend-list.js +96 -0
- package/dist/shared/editor-overlay/legend/legend-list.js.map +1 -0
- package/dist/shared/editor-overlay/legend/legend.d.ts +7 -0
- package/dist/shared/editor-overlay/legend/legend.d.ts.map +1 -0
- package/dist/shared/editor-overlay/legend/legend.js +80 -0
- package/dist/shared/editor-overlay/legend/legend.js.map +1 -0
- package/dist/shared/editor-overlay/overlay.d.ts +35 -0
- package/dist/shared/editor-overlay/overlay.d.ts.map +1 -0
- package/dist/shared/editor-overlay/overlay.js +41 -0
- package/dist/shared/editor-overlay/overlay.js.map +1 -0
- package/dist/shared/editor-overlay/panel-content/edge/edge-editor.d.ts +8 -0
- package/dist/shared/editor-overlay/panel-content/edge/edge-editor.d.ts.map +1 -0
- package/dist/shared/editor-overlay/panel-content/edge/edge-editor.js +40 -0
- package/dist/shared/editor-overlay/panel-content/edge/edge-editor.js.map +1 -0
- package/dist/shared/editor-overlay/panel-content/edge/edge-info-content.d.ts +22 -0
- package/dist/shared/editor-overlay/panel-content/edge/edge-info-content.d.ts.map +1 -0
- package/dist/shared/editor-overlay/panel-content/edge/edge-info-content.js +36 -0
- package/dist/shared/editor-overlay/panel-content/edge/edge-info-content.js.map +1 -0
- package/dist/shared/editor-overlay/panel-content/edge/editor-props.d.ts +35 -0
- package/dist/shared/editor-overlay/panel-content/edge/editor-props.d.ts.map +1 -0
- package/dist/shared/editor-overlay/panel-content/edge/editor-props.js +2 -0
- package/dist/shared/editor-overlay/panel-content/edge/editor-props.js.map +1 -0
- package/dist/shared/editor-overlay/panel-content/edge/encoder-editor.d.ts +23 -0
- package/dist/shared/editor-overlay/panel-content/edge/encoder-editor.d.ts.map +1 -0
- package/dist/shared/editor-overlay/panel-content/edge/encoder-editor.js +10 -0
- package/dist/shared/editor-overlay/panel-content/edge/encoder-editor.js.map +1 -0
- package/dist/shared/editor-overlay/panel-content/edge/index.d.ts +18 -0
- package/dist/shared/editor-overlay/panel-content/edge/index.d.ts.map +1 -0
- package/dist/shared/editor-overlay/panel-content/edge/index.js +18 -0
- package/dist/shared/editor-overlay/panel-content/edge/index.js.map +1 -0
- package/dist/shared/editor-overlay/panel-content/edge/pag-editor.d.ts +23 -0
- package/dist/shared/editor-overlay/panel-content/edge/pag-editor.d.ts.map +1 -0
- package/dist/shared/editor-overlay/panel-content/edge/pag-editor.js +10 -0
- package/dist/shared/editor-overlay/panel-content/edge/pag-editor.js.map +1 -0
- package/dist/shared/editor-overlay/panel-content/edge/resolver-editor.d.ts +7 -0
- package/dist/shared/editor-overlay/panel-content/edge/resolver-editor.d.ts.map +1 -0
- package/dist/shared/editor-overlay/panel-content/edge/resolver-editor.js +31 -0
- package/dist/shared/editor-overlay/panel-content/edge/resolver-editor.js.map +1 -0
- package/dist/shared/editor-overlay/panel-content/edge/sections/constraint-editor.d.ts +27 -0
- package/dist/shared/editor-overlay/panel-content/edge/sections/constraint-editor.d.ts.map +1 -0
- package/dist/shared/editor-overlay/panel-content/edge/sections/constraint-editor.js +53 -0
- package/dist/shared/editor-overlay/panel-content/edge/sections/constraint-editor.js.map +1 -0
- package/dist/shared/editor-overlay/panel-content/edge/sections/description-editor.d.ts +15 -0
- package/dist/shared/editor-overlay/panel-content/edge/sections/description-editor.d.ts.map +1 -0
- package/dist/shared/editor-overlay/panel-content/edge/sections/description-editor.js +60 -0
- package/dist/shared/editor-overlay/panel-content/edge/sections/description-editor.js.map +1 -0
- package/dist/shared/editor-overlay/panel-content/edge/sections/direction-editor.d.ts +21 -0
- package/dist/shared/editor-overlay/panel-content/edge/sections/direction-editor.d.ts.map +1 -0
- package/dist/shared/editor-overlay/panel-content/edge/sections/direction-editor.js +90 -0
- package/dist/shared/editor-overlay/panel-content/edge/sections/direction-editor.js.map +1 -0
- package/dist/shared/editor-overlay/panel-content/edge/sections/edge-type-editor.d.ts +17 -0
- package/dist/shared/editor-overlay/panel-content/edge/sections/edge-type-editor.d.ts.map +1 -0
- package/dist/shared/editor-overlay/panel-content/edge/sections/edge-type-editor.js +61 -0
- package/dist/shared/editor-overlay/panel-content/edge/sections/edge-type-editor.js.map +1 -0
- package/dist/shared/editor-overlay/panel-content/edge/sections/index.d.ts +19 -0
- package/dist/shared/editor-overlay/panel-content/edge/sections/index.d.ts.map +1 -0
- package/dist/shared/editor-overlay/panel-content/edge/sections/index.js +19 -0
- package/dist/shared/editor-overlay/panel-content/edge/sections/index.js.map +1 -0
- package/dist/shared/editor-overlay/panel-content/index.d.ts +20 -0
- package/dist/shared/editor-overlay/panel-content/index.d.ts.map +1 -0
- package/dist/shared/editor-overlay/panel-content/index.js +20 -0
- package/dist/shared/editor-overlay/panel-content/index.js.map +1 -0
- package/dist/shared/editor-overlay/panel-content/node/index.d.ts +18 -0
- package/dist/shared/editor-overlay/panel-content/node/index.d.ts.map +1 -0
- package/dist/shared/editor-overlay/panel-content/node/index.js +18 -0
- package/dist/shared/editor-overlay/panel-content/node/index.js.map +1 -0
- package/dist/shared/editor-overlay/panel-content/node/label-editor.d.ts +11 -0
- package/dist/shared/editor-overlay/panel-content/node/label-editor.d.ts.map +1 -0
- package/dist/shared/editor-overlay/panel-content/node/label-editor.js +89 -0
- package/dist/shared/editor-overlay/panel-content/node/label-editor.js.map +1 -0
- package/dist/shared/editor-overlay/panel-content/node/node-info-content.d.ts +32 -0
- package/dist/shared/editor-overlay/panel-content/node/node-info-content.d.ts.map +1 -0
- package/dist/shared/editor-overlay/panel-content/node/node-info-content.js +12 -0
- package/dist/shared/editor-overlay/panel-content/node/node-info-content.js.map +1 -0
- package/dist/shared/editor-overlay/panel-content/panel-content.d.ts +17 -0
- package/dist/shared/editor-overlay/panel-content/panel-content.d.ts.map +1 -0
- package/dist/shared/editor-overlay/panel-content/panel-content.js +27 -0
- package/dist/shared/editor-overlay/panel-content/panel-content.js.map +1 -0
- package/dist/shared/editor-overlay/panel-content/panel-title.d.ts +12 -0
- package/dist/shared/editor-overlay/panel-content/panel-title.d.ts.map +1 -0
- package/dist/shared/editor-overlay/panel-content/panel-title.js +48 -0
- package/dist/shared/editor-overlay/panel-content/panel-title.js.map +1 -0
- package/dist/shared/editor-overlay/panel-content/styled.d.ts +9 -0
- package/dist/shared/editor-overlay/panel-content/styled.d.ts.map +1 -0
- package/dist/shared/editor-overlay/panel-content/styled.js +43 -0
- package/dist/shared/editor-overlay/panel-content/styled.js.map +1 -0
- package/dist/shared/editor-overlay/positional-divs.d.ts +14 -0
- package/dist/shared/editor-overlay/positional-divs.d.ts.map +1 -0
- package/dist/shared/editor-overlay/positional-divs.js +117 -0
- package/dist/shared/editor-overlay/positional-divs.js.map +1 -0
- package/dist/shared/editor-overlay/search-bar/index.d.ts +19 -0
- package/dist/shared/editor-overlay/search-bar/index.d.ts.map +1 -0
- package/dist/shared/editor-overlay/search-bar/index.js +19 -0
- package/dist/shared/editor-overlay/search-bar/index.js.map +1 -0
- package/dist/shared/editor-overlay/search-bar/search-bar.d.ts +21 -0
- package/dist/shared/editor-overlay/search-bar/search-bar.d.ts.map +1 -0
- package/dist/shared/editor-overlay/search-bar/search-bar.js +160 -0
- package/dist/shared/editor-overlay/search-bar/search-bar.js.map +1 -0
- package/dist/shared/editor-overlay/search-bar/use-search.d.ts +32 -0
- package/dist/shared/editor-overlay/search-bar/use-search.d.ts.map +1 -0
- package/dist/shared/editor-overlay/search-bar/use-search.js +75 -0
- package/dist/shared/editor-overlay/search-bar/use-search.js.map +1 -0
- package/dist/shared/graph-layout/circular-layout.d.ts +18 -0
- package/dist/shared/graph-layout/circular-layout.d.ts.map +1 -0
- package/dist/shared/graph-layout/circular-layout.js +38 -0
- package/dist/shared/graph-layout/circular-layout.js.map +1 -0
- package/dist/shared/graph-layout/common.d.ts +64 -0
- package/dist/shared/graph-layout/common.d.ts.map +1 -0
- package/dist/shared/graph-layout/common.js +42 -0
- package/dist/shared/graph-layout/common.js.map +1 -0
- package/dist/shared/graph-layout/custom-layout.d.ts +35 -0
- package/dist/shared/graph-layout/custom-layout.d.ts.map +1 -0
- package/dist/shared/graph-layout/custom-layout.js +29 -0
- package/dist/shared/graph-layout/custom-layout.js.map +1 -0
- package/dist/shared/graph-layout/fcose-layout.d.ts +88 -0
- package/dist/shared/graph-layout/fcose-layout.d.ts.map +1 -0
- package/dist/shared/graph-layout/fcose-layout.js +196 -0
- package/dist/shared/graph-layout/fcose-layout.js.map +1 -0
- package/dist/shared/graph-layout/force-atlas-layout.d.ts +79 -0
- package/dist/shared/graph-layout/force-atlas-layout.d.ts.map +1 -0
- package/dist/shared/graph-layout/force-atlas-layout.js +163 -0
- package/dist/shared/graph-layout/force-atlas-layout.js.map +1 -0
- package/dist/shared/graph-layout/index.d.ts +25 -0
- package/dist/shared/graph-layout/index.d.ts.map +1 -0
- package/dist/shared/graph-layout/index.js +25 -0
- package/dist/shared/graph-layout/index.js.map +1 -0
- package/dist/shared/graph-layout/marketing-layout.d.ts +30 -0
- package/dist/shared/graph-layout/marketing-layout.d.ts.map +1 -0
- package/dist/shared/graph-layout/marketing-layout.js +105 -0
- package/dist/shared/graph-layout/marketing-layout.js.map +1 -0
- package/dist/shared/graph-layout/planar-layout.d.ts +32 -0
- package/dist/shared/graph-layout/planar-layout.d.ts.map +1 -0
- package/dist/shared/graph-layout/planar-layout.js +95 -0
- package/dist/shared/graph-layout/planar-layout.js.map +1 -0
- package/dist/shared/graph-layout/spring-layout.d.ts +56 -0
- package/dist/shared/graph-layout/spring-layout.d.ts.map +1 -0
- package/dist/shared/graph-layout/spring-layout.js +148 -0
- package/dist/shared/graph-layout/spring-layout.js.map +1 -0
- package/dist/shared/parsers.d.ts +63 -0
- package/dist/shared/parsers.d.ts.map +1 -0
- package/dist/shared/parsers.js +176 -0
- package/dist/shared/parsers.js.map +1 -0
- package/dist/shared/pointer-context.d.ts +21 -0
- package/dist/shared/pointer-context.d.ts.map +1 -0
- package/dist/shared/pointer-context.js +23 -0
- package/dist/shared/pointer-context.js.map +1 -0
- package/dist/shared/rendering/background.d.ts +32 -0
- package/dist/shared/rendering/background.d.ts.map +1 -0
- package/dist/shared/rendering/background.js +91 -0
- package/dist/shared/rendering/background.js.map +1 -0
- package/dist/shared/rendering/colors.d.ts +27 -0
- package/dist/shared/rendering/colors.d.ts.map +1 -0
- package/dist/shared/rendering/colors.js +14 -0
- package/dist/shared/rendering/colors.js.map +1 -0
- package/dist/shared/rendering/edge/curve.d.ts +51 -0
- package/dist/shared/rendering/edge/curve.d.ts.map +1 -0
- package/dist/shared/rendering/edge/curve.js +122 -0
- package/dist/shared/rendering/edge/curve.js.map +1 -0
- package/dist/shared/rendering/edge/definitions.d.ts +71 -0
- package/dist/shared/rendering/edge/definitions.d.ts.map +1 -0
- package/dist/shared/rendering/edge/definitions.js +31 -0
- package/dist/shared/rendering/edge/definitions.js.map +1 -0
- package/dist/shared/rendering/edge/edge-object.d.ts +93 -0
- package/dist/shared/rendering/edge/edge-object.d.ts.map +1 -0
- package/dist/shared/rendering/edge/edge-object.js +483 -0
- package/dist/shared/rendering/edge/edge-object.js.map +1 -0
- package/dist/shared/rendering/edge/index.d.ts +19 -0
- package/dist/shared/rendering/edge/index.d.ts.map +1 -0
- package/dist/shared/rendering/edge/index.js +19 -0
- package/dist/shared/rendering/edge/index.js.map +1 -0
- package/dist/shared/rendering/edge/symbols.d.ts +40 -0
- package/dist/shared/rendering/edge/symbols.d.ts.map +1 -0
- package/dist/shared/rendering/edge/symbols.js +150 -0
- package/dist/shared/rendering/edge/symbols.js.map +1 -0
- package/dist/shared/rendering/engine.d.ts +342 -0
- package/dist/shared/rendering/engine.d.ts.map +1 -0
- package/dist/shared/rendering/engine.js +990 -0
- package/dist/shared/rendering/engine.js.map +1 -0
- package/dist/shared/rendering/node/definitions.d.ts +57 -0
- package/dist/shared/rendering/node/definitions.d.ts.map +1 -0
- package/dist/shared/rendering/node/definitions.js +2 -0
- package/dist/shared/rendering/node/definitions.js.map +1 -0
- package/dist/shared/rendering/node/index.d.ts +20 -0
- package/dist/shared/rendering/node/index.d.ts.map +1 -0
- package/dist/shared/rendering/node/index.js +19 -0
- package/dist/shared/rendering/node/index.js.map +1 -0
- package/dist/shared/rendering/node/node-object.d.ts +77 -0
- package/dist/shared/rendering/node/node-object.d.ts.map +1 -0
- package/dist/shared/rendering/node/node-object.js +241 -0
- package/dist/shared/rendering/node/node-object.js.map +1 -0
- package/dist/shared/rendering/node/utils.d.ts +33 -0
- package/dist/shared/rendering/node/utils.d.ts.map +1 -0
- package/dist/shared/rendering/node/utils.js +27 -0
- package/dist/shared/rendering/node/utils.js.map +1 -0
- package/dist/shared/rendering/svg.d.ts +26 -0
- package/dist/shared/rendering/svg.d.ts.map +1 -0
- package/dist/shared/rendering/svg.js +44 -0
- package/dist/shared/rendering/svg.js.map +1 -0
- package/dist/shared/rendering/text.d.ts +33 -0
- package/dist/shared/rendering/text.d.ts.map +1 -0
- package/dist/shared/rendering/text.js +107 -0
- package/dist/shared/rendering/text.js.map +1 -0
- package/dist/shared/rendering/texture-cache.d.ts +32 -0
- package/dist/shared/rendering/texture-cache.d.ts.map +1 -0
- package/dist/shared/rendering/texture-cache.js +76 -0
- package/dist/shared/rendering/texture-cache.js.map +1 -0
- package/dist/shared/rendering/use-render-engine.d.ts +86 -0
- package/dist/shared/rendering/use-render-engine.d.ts.map +1 -0
- package/dist/shared/rendering/use-render-engine.js +89 -0
- package/dist/shared/rendering/use-render-engine.js.map +1 -0
- package/dist/shared/rendering/utils.d.ts +24 -0
- package/dist/shared/rendering/utils.d.ts.map +1 -0
- package/dist/shared/rendering/utils.js +60 -0
- package/dist/shared/rendering/utils.js.map +1 -0
- package/dist/shared/serializer.d.ts +39 -0
- package/dist/shared/serializer.d.ts.map +1 -0
- package/dist/shared/serializer.js +131 -0
- package/dist/shared/serializer.js.map +1 -0
- package/dist/shared/settings-context.d.ts +56 -0
- package/dist/shared/settings-context.d.ts.map +1 -0
- package/dist/shared/settings-context.js +36 -0
- package/dist/shared/settings-context.js.map +1 -0
- package/dist/shared/styles.d.ts +4 -0
- package/dist/shared/styles.d.ts.map +1 -0
- package/dist/shared/styles.js +52 -0
- package/dist/shared/styles.js.map +1 -0
- package/dist/shared/use-causal-graph-editor.d.ts +19 -0
- package/dist/shared/use-causal-graph-editor.d.ts.map +1 -0
- package/dist/shared/use-causal-graph-editor.js +58 -0
- package/dist/shared/use-causal-graph-editor.js.map +1 -0
- package/dist/shared/use-drag-mode.d.ts +33 -0
- package/dist/shared/use-drag-mode.d.ts.map +1 -0
- package/dist/shared/use-drag-mode.js +75 -0
- package/dist/shared/use-drag-mode.js.map +1 -0
- package/dist/shared/use-edge-encoder.d.ts +45 -0
- package/dist/shared/use-edge-encoder.d.ts.map +1 -0
- package/dist/shared/use-edge-encoder.js +121 -0
- package/dist/shared/use-edge-encoder.js.map +1 -0
- package/dist/shared/utils.d.ts +52 -0
- package/dist/shared/utils.d.ts.map +1 -0
- package/dist/shared/utils.js +99 -0
- package/dist/shared/utils.js.map +1 -0
- package/dist/types.d.ts +213 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +98 -0
- package/dist/types.js.map +1 -0
- package/package.json +123 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2023 Impulse Innovations Ltd.
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { LegendLineDefinition } from '../shared/editor-overlay';
|
|
3
|
+
import { CausalGraph, CausalGraphEdge, CausalGraphNode, EdgeConstraint, ZoomThresholds } from '../types';
|
|
4
|
+
import { GraphLayout } from '../shared/graph-layout';
|
|
5
|
+
import { Settings } from '../shared/settings-context';
|
|
6
|
+
export interface CausalGraphEditorProps extends Settings {
|
|
7
|
+
/** Optional additional legends to show */
|
|
8
|
+
additionalLegends?: LegendLineDefinition[];
|
|
9
|
+
/** Input nodes */
|
|
10
|
+
availableInputs?: string[];
|
|
11
|
+
/** Standard class name prop */
|
|
12
|
+
className?: string;
|
|
13
|
+
/** The backend data */
|
|
14
|
+
graphData?: CausalGraph;
|
|
15
|
+
/** Graph layout to use */
|
|
16
|
+
graphLayout: GraphLayout;
|
|
17
|
+
/** Optional initial constraints to show in edge encoder mode */
|
|
18
|
+
initialConstraints?: EdgeConstraint[];
|
|
19
|
+
/** Array of node names that cannot be removed */
|
|
20
|
+
nonRemovableNodes?: Array<string>;
|
|
21
|
+
/** Event handler for clicking on an edge */
|
|
22
|
+
onClickEdge?: (edge: CausalGraphEdge) => void | Promise<void>;
|
|
23
|
+
/** Event handler for clicking on a node */
|
|
24
|
+
onClickNode?: (node: CausalGraphNode) => void | Promise<void>;
|
|
25
|
+
/** Handler called when constraints are update in edge encoder mode */
|
|
26
|
+
onEdgeConstraintsUpdate?: (constraints: EdgeConstraint[]) => void | Promise<void>;
|
|
27
|
+
/** onUpdate handler for live updating the edited graph */
|
|
28
|
+
onUpdate?: (data: CausalGraph) => void | Promise<void>;
|
|
29
|
+
/** Pass through of the native style prop */
|
|
30
|
+
style?: React.CSSProperties;
|
|
31
|
+
/** Optional parameter to force a tooltip to use a particular font size */
|
|
32
|
+
tooltipSize?: number;
|
|
33
|
+
/** Optional parameter to specify when parts of the graph should be hidden. */
|
|
34
|
+
zoomThresholds?: ZoomThresholds;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The high level causal graph editor presents causal graphs at a high level for domain experts to view them, without
|
|
38
|
+
* over complicating the view.
|
|
39
|
+
*
|
|
40
|
+
* @param props the component props
|
|
41
|
+
*/
|
|
42
|
+
declare function CausalGraphEditor(props: CausalGraphEditorProps): JSX.Element;
|
|
43
|
+
export default CausalGraphEditor;
|
|
44
|
+
//# sourceMappingURL=causal-graph-editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"causal-graph-editor.d.ts","sourceRoot":"","sources":["../../src/graph-viewer/causal-graph-editor.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,EA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CAAC,EAAE,MAAM,CAAC;IACrB,8EAA8E;IAC9E,cAAc,CAAC,EAAE,cAAc,CAAC;CACnC;AAED;;;;;GAKG;AACH,iBAAS,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,GAAG,GAAG,CAAC,OAAO,CAogBrE;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2023 Impulse Innovations Limited
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
import debounce from 'lodash/debounce';
|
|
19
|
+
import noop from 'lodash/noop';
|
|
20
|
+
import { useEffect, useMemo, useState } from 'react';
|
|
21
|
+
import * as React from 'react';
|
|
22
|
+
import { useTheme } from '@darajs/styled-components';
|
|
23
|
+
import { Tooltip } from '@darajs/ui-components';
|
|
24
|
+
import { Status, useUpdateEffect } from '@darajs/ui-utils';
|
|
25
|
+
import { ConfirmationModal } from '@darajs/ui-widgets';
|
|
26
|
+
import { AddNodeButton, CenterGraphButton, DragModeButton, EdgeInfoContent, Legend, NodeInfoContent, Overlay, RecalculateLayoutButton, SearchBar, getLegendData, useSearch, } from '../shared/editor-overlay';
|
|
27
|
+
import { getTooltipContent, willCreateCycle } from '../shared/utils';
|
|
28
|
+
import { EdgeType, EditorMode, } from '../types';
|
|
29
|
+
import PointerContext from '../shared/pointer-context';
|
|
30
|
+
import { useRenderEngine } from '../shared/rendering/use-render-engine';
|
|
31
|
+
import { causalGraphSerializer, serializeGraphEdge, serializeGraphNode } from '../shared/serializer';
|
|
32
|
+
import { SettingsProvider } from '../shared/settings-context';
|
|
33
|
+
import { Center, Graph, Wrapper } from '../shared/styles';
|
|
34
|
+
import useCausalGraphEditor from '../shared/use-causal-graph-editor';
|
|
35
|
+
import useDragMode from '../shared/use-drag-mode';
|
|
36
|
+
import { useEdgeConstraintEncoder } from '../shared/use-edge-encoder';
|
|
37
|
+
import useIterateEdges from './utils/use-iterate-edges';
|
|
38
|
+
import useIterateNodes from './utils/use-iterate-nodes';
|
|
39
|
+
/**
|
|
40
|
+
* The high level causal graph editor presents causal graphs at a high level for domain experts to view them, without
|
|
41
|
+
* over complicating the view.
|
|
42
|
+
*
|
|
43
|
+
* @param props the component props
|
|
44
|
+
*/
|
|
45
|
+
function CausalGraphEditor(props) {
|
|
46
|
+
var _a, _b;
|
|
47
|
+
const theme = useTheme();
|
|
48
|
+
const canvasParentRef = React.useRef(null);
|
|
49
|
+
const { state, api } = useCausalGraphEditor(props.graphData, props.editorMode, props.availableInputs, props.graphLayout.requiresPosition);
|
|
50
|
+
const { getCenterPosition, useEngineEvent, resetViewport, resetLayout, onSetDragMode, onNodeSelected, onEdgeSelected, onSearchResults, onUpdateConstraints, } = useRenderEngine(canvasParentRef, state.graph, props.graphLayout, props.editable, props.editorMode, props.initialConstraints, props.zoomThresholds);
|
|
51
|
+
// track selection
|
|
52
|
+
const [selectedEdge, setSelectedEdge] = useState(null);
|
|
53
|
+
const [selectedNode, setSelectedNode] = useState(null);
|
|
54
|
+
// track node highlighted by search separately
|
|
55
|
+
// this is used instead of selection when there is no concept of selection, i.e. not editable or allowSelectionWhenNotEditable
|
|
56
|
+
const [highlightedNode, setHighlightedNode] = useState();
|
|
57
|
+
useUpdateEffect(() => {
|
|
58
|
+
// Update visual selection when a node is highlighted
|
|
59
|
+
onNodeSelected(highlightedNode);
|
|
60
|
+
}, [highlightedNode]);
|
|
61
|
+
useUpdateEffect(() => {
|
|
62
|
+
// Only tell engine to update styles in editable mode or if we show the panel
|
|
63
|
+
if (props.editable || props.allowSelectionWhenNotEditable) {
|
|
64
|
+
onNodeSelected(selectedNode);
|
|
65
|
+
}
|
|
66
|
+
if (props.onClickNode) {
|
|
67
|
+
let serializedNode = null;
|
|
68
|
+
if (selectedNode) {
|
|
69
|
+
serializedNode = serializeGraphNode(state.graph.getNodeAttributes(selectedNode), true);
|
|
70
|
+
}
|
|
71
|
+
props.onClickNode(serializedNode);
|
|
72
|
+
}
|
|
73
|
+
}, [selectedNode]);
|
|
74
|
+
useUpdateEffect(() => {
|
|
75
|
+
// Only tell engine to update styles in editable mode or if we show the panel
|
|
76
|
+
if (props.editable || props.allowSelectionWhenNotEditable) {
|
|
77
|
+
onEdgeSelected(selectedEdge);
|
|
78
|
+
}
|
|
79
|
+
if (props.onClickEdge) {
|
|
80
|
+
let serializedEdge = null;
|
|
81
|
+
if (selectedEdge) {
|
|
82
|
+
const [source, target] = selectedEdge;
|
|
83
|
+
serializedEdge = serializeGraphEdge(state.graph.getEdgeAttributes(source, target), source, target);
|
|
84
|
+
}
|
|
85
|
+
props.onClickEdge(serializedEdge);
|
|
86
|
+
}
|
|
87
|
+
}, [selectedEdge]);
|
|
88
|
+
// constraints
|
|
89
|
+
const { constraints, addConstraint, updateConstraint, removeConstraint, reverseConstraint } = useEdgeConstraintEncoder(props.initialConstraints, props.onEdgeConstraintsUpdate);
|
|
90
|
+
const selectedConstraint = useMemo(() => {
|
|
91
|
+
if (props.editorMode === EditorMode.EDGE_ENCODER && selectedEdge) {
|
|
92
|
+
const [source, target] = selectedEdge;
|
|
93
|
+
// Find constraint with either matching or reversed source/target
|
|
94
|
+
return constraints.find((c) => (c.source === source && c.target === target) || (c.source === target && c.target === source));
|
|
95
|
+
}
|
|
96
|
+
}, [props.editorMode, selectedEdge, constraints]);
|
|
97
|
+
// deletion
|
|
98
|
+
function onRemoveNode() {
|
|
99
|
+
api.removeNode(selectedNode);
|
|
100
|
+
setSelectedNode(null);
|
|
101
|
+
}
|
|
102
|
+
function onRemoveConstraint() {
|
|
103
|
+
// Remove constraint that's selected
|
|
104
|
+
removeConstraint(selectedConstraint.id);
|
|
105
|
+
}
|
|
106
|
+
function onConfirmRemoveEdge() {
|
|
107
|
+
// In encoder mode, remove related constraint
|
|
108
|
+
if (props.editorMode === EditorMode.EDGE_ENCODER) {
|
|
109
|
+
onRemoveConstraint();
|
|
110
|
+
}
|
|
111
|
+
api.removeEdge(selectedEdge);
|
|
112
|
+
setSelectedEdge(null);
|
|
113
|
+
}
|
|
114
|
+
const { onConfirmation: askToRemoveEdge, modalProps: removeEdgeProps } = ConfirmationModal.useConfirmationModal((edge) => `You are about to remove the edge: ${edge[0]} -> ${edge[1]} which was forced by prior domain knowledge. Are you sure?`, onConfirmRemoveEdge);
|
|
115
|
+
function onRemoveEdge() {
|
|
116
|
+
const edgeAttributes = state.graph.getEdgeAttributes(...selectedEdge);
|
|
117
|
+
if (edgeAttributes['meta.rendering_properties.forced'] === true) {
|
|
118
|
+
askToRemoveEdge(selectedEdge);
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
onConfirmRemoveEdge();
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
let onDelete = null;
|
|
125
|
+
if (selectedEdge) {
|
|
126
|
+
onDelete = onRemoveEdge;
|
|
127
|
+
}
|
|
128
|
+
else if (selectedNode) {
|
|
129
|
+
const disableRemoval = props.disableNodeRemoval || ((_a = props.nonRemovableNodes) === null || _a === void 0 ? void 0 : _a.includes(selectedNode));
|
|
130
|
+
if (!disableRemoval) {
|
|
131
|
+
onDelete = onRemoveNode;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
// other api handlers
|
|
135
|
+
function onAddEdge(edge) {
|
|
136
|
+
var _a;
|
|
137
|
+
// Skip if a cycle would be created
|
|
138
|
+
// The check needs to happen before we commit an action
|
|
139
|
+
if (willCreateCycle(state.graph, edge)) {
|
|
140
|
+
(_a = props.onNotify) === null || _a === void 0 ? void 0 : _a.call(props, {
|
|
141
|
+
key: 'create-edge-cycle',
|
|
142
|
+
message: 'Could not create an edge as it would create a cycle',
|
|
143
|
+
status: Status.WARNING,
|
|
144
|
+
title: 'Cycle detected',
|
|
145
|
+
});
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
if (props.editorMode === EditorMode.EDGE_ENCODER) {
|
|
149
|
+
const [source, target] = edge;
|
|
150
|
+
addConstraint(source, target);
|
|
151
|
+
}
|
|
152
|
+
api.addEdge(edge);
|
|
153
|
+
setSelectedNode(null);
|
|
154
|
+
setSelectedEdge(edge);
|
|
155
|
+
}
|
|
156
|
+
function onAddNode() {
|
|
157
|
+
const position = getCenterPosition();
|
|
158
|
+
api.addLatentNode(position);
|
|
159
|
+
}
|
|
160
|
+
function onReverseEdge() {
|
|
161
|
+
var _a;
|
|
162
|
+
const [source, target] = selectedEdge;
|
|
163
|
+
// Skip if a cycle would be created
|
|
164
|
+
// This creates a clone of the graph without the reversed edge so we can properly check if the reverse would create a cycle
|
|
165
|
+
const graphCopy = state.graph.copy();
|
|
166
|
+
graphCopy.dropEdge(source, target);
|
|
167
|
+
if (willCreateCycle(graphCopy, selectedEdge)) {
|
|
168
|
+
(_a = props.onNotify) === null || _a === void 0 ? void 0 : _a.call(props, {
|
|
169
|
+
key: 'reverse-edge-cycle',
|
|
170
|
+
message: 'Could not reverse the edge as it would create a cycle',
|
|
171
|
+
status: Status.WARNING,
|
|
172
|
+
title: 'Cycle detected',
|
|
173
|
+
});
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
// Reverse the edge
|
|
177
|
+
api.reverseEdge(selectedEdge);
|
|
178
|
+
// Update selection to the new edge
|
|
179
|
+
setSelectedEdge([target, source]);
|
|
180
|
+
}
|
|
181
|
+
function onReverseConstraint() {
|
|
182
|
+
setSelectedEdge(null);
|
|
183
|
+
reverseConstraint(selectedConstraint);
|
|
184
|
+
}
|
|
185
|
+
function confirmDirection(reverse) {
|
|
186
|
+
api.updateEdgeType(selectedEdge, EdgeType.DIRECTED_EDGE);
|
|
187
|
+
if (reverse) {
|
|
188
|
+
if (props.editorMode === EditorMode.EDGE_ENCODER) {
|
|
189
|
+
onReverseConstraint();
|
|
190
|
+
}
|
|
191
|
+
onReverseEdge();
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
const tooltipRef = React.useRef(null);
|
|
195
|
+
const [tooltipContent, setTooltipContent] = useState(null);
|
|
196
|
+
// keep track of when a drag action is happening
|
|
197
|
+
const [isDragging, setIsDragging] = useState(false);
|
|
198
|
+
// keep track of open panels so we can prevent tooltips from appearing below them
|
|
199
|
+
const [isInPanel, setIsInPanel] = useState(false);
|
|
200
|
+
function onPanelEnter() {
|
|
201
|
+
setIsInPanel(true);
|
|
202
|
+
}
|
|
203
|
+
function onPanelExit() {
|
|
204
|
+
setIsInPanel(false);
|
|
205
|
+
}
|
|
206
|
+
useEngineEvent('dragStart', () => {
|
|
207
|
+
setIsDragging(true);
|
|
208
|
+
});
|
|
209
|
+
useEngineEvent('dragEnd', () => {
|
|
210
|
+
setIsDragging(false);
|
|
211
|
+
});
|
|
212
|
+
useEngineEvent('nodeMouseover', (event, nodeId) => {
|
|
213
|
+
const nodeAttributes = state.graph.getNodeAttributes(nodeId);
|
|
214
|
+
tooltipRef.current = () => ({
|
|
215
|
+
bottom: event.clientY,
|
|
216
|
+
height: 0,
|
|
217
|
+
left: event.clientX,
|
|
218
|
+
right: event.clientX,
|
|
219
|
+
top: event.clientY,
|
|
220
|
+
width: 0,
|
|
221
|
+
});
|
|
222
|
+
setTooltipContent(getTooltipContent(nodeId, nodeAttributes['meta.rendering_properties.tooltip'], theme, nodeAttributes['meta.rendering_properties.label'], props.tooltipSize));
|
|
223
|
+
});
|
|
224
|
+
useEngineEvent('nodeMouseout', () => {
|
|
225
|
+
setTooltipContent(null);
|
|
226
|
+
});
|
|
227
|
+
useEngineEvent('edgeMouseover', (event, edgeKey) => {
|
|
228
|
+
var _a, _b;
|
|
229
|
+
const edgeAttributes = state.graph.getEdgeAttributes(edgeKey);
|
|
230
|
+
const sourceNodeKey = state.graph.source(edgeKey);
|
|
231
|
+
const targetNodeKey = state.graph.target(edgeKey);
|
|
232
|
+
const sourceNodeAttributes = state.graph.getNodeAttributes(sourceNodeKey);
|
|
233
|
+
const targetNodeAttributes = state.graph.getNodeAttributes(targetNodeKey);
|
|
234
|
+
const sourceLabel = (_a = sourceNodeAttributes['meta.rendering_properties.label']) !== null && _a !== void 0 ? _a : sourceNodeAttributes.id;
|
|
235
|
+
const targetLabel = (_b = targetNodeAttributes['meta.rendering_properties.label']) !== null && _b !== void 0 ? _b : targetNodeAttributes.id;
|
|
236
|
+
const tooltipArrow = props.editorMode === EditorMode.DEFAULT ? '➜' : '-';
|
|
237
|
+
const edgeTooltipContent = getTooltipContent(`${sourceLabel} ${tooltipArrow} ${targetLabel}`, edgeAttributes['meta.rendering_properties.tooltip'], theme, null, props.tooltipSize);
|
|
238
|
+
tooltipRef.current = () => ({
|
|
239
|
+
bottom: event.clientY,
|
|
240
|
+
height: 0,
|
|
241
|
+
left: event.clientX,
|
|
242
|
+
right: event.clientX,
|
|
243
|
+
top: event.clientY,
|
|
244
|
+
width: 0,
|
|
245
|
+
});
|
|
246
|
+
setTooltipContent(edgeTooltipContent);
|
|
247
|
+
});
|
|
248
|
+
useEngineEvent('edgeMouseout', () => {
|
|
249
|
+
setTooltipContent(null);
|
|
250
|
+
});
|
|
251
|
+
// Sync state to engine events
|
|
252
|
+
useEngineEvent('backgroundClick', () => {
|
|
253
|
+
setSelectedEdge(null);
|
|
254
|
+
setSelectedNode(null);
|
|
255
|
+
});
|
|
256
|
+
useEngineEvent('nodeClick', (event, nodeId) => {
|
|
257
|
+
setSelectedEdge(null);
|
|
258
|
+
setSelectedNode(nodeId);
|
|
259
|
+
});
|
|
260
|
+
useEngineEvent('edgeClick', (event, source, target) => {
|
|
261
|
+
setSelectedNode(null);
|
|
262
|
+
setSelectedEdge([source, target]);
|
|
263
|
+
});
|
|
264
|
+
useEngineEvent('createEdge', (event, source, target) => {
|
|
265
|
+
onAddEdge([source, target]);
|
|
266
|
+
});
|
|
267
|
+
// Sync state up
|
|
268
|
+
useUpdateEffect(() => {
|
|
269
|
+
onUpdateConstraints(constraints);
|
|
270
|
+
}, [constraints]);
|
|
271
|
+
/** Debouncing the prop in case multiple changes happen at the same time */
|
|
272
|
+
const debouncedOnUpdate = useMemo(() => { var _a; return debounce((_a = props.onUpdate) !== null && _a !== void 0 ? _a : noop, 150, { trailing: true }); }, [props.onUpdate]);
|
|
273
|
+
const isMounted = React.useRef(false);
|
|
274
|
+
function updateState() {
|
|
275
|
+
if (!isMounted.current) {
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
if (props.onUpdate) {
|
|
279
|
+
debouncedOnUpdate(causalGraphSerializer(state));
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
useEffect(() => {
|
|
283
|
+
updateState();
|
|
284
|
+
// Attach listeners so each graph update will send an update
|
|
285
|
+
state.graph.on('nodeAdded', updateState);
|
|
286
|
+
state.graph.on('edgeAdded', updateState);
|
|
287
|
+
state.graph.on('edgeDropped', updateState);
|
|
288
|
+
state.graph.on('nodeDropped', updateState);
|
|
289
|
+
state.graph.on('edgeAttributesUpdated', updateState);
|
|
290
|
+
state.graph.on('nodeAttributesUpdated', updateState);
|
|
291
|
+
isMounted.current = true;
|
|
292
|
+
return () => {
|
|
293
|
+
state.graph.off('nodeAdded', updateState);
|
|
294
|
+
state.graph.off('edgeAdded', updateState);
|
|
295
|
+
state.graph.off('edgeDropped', updateState);
|
|
296
|
+
state.graph.off('nodeDropped', updateState);
|
|
297
|
+
state.graph.off('edgeAttributesUpdated', updateState);
|
|
298
|
+
state.graph.off('nodeAttributesUpdated', updateState);
|
|
299
|
+
};
|
|
300
|
+
}, [state.graph]);
|
|
301
|
+
// Search
|
|
302
|
+
const { currentSearchNode, onNextSearchResult, onPrevSearchResult, onSearchBarChange, searchResults } = useSearch({
|
|
303
|
+
graph: state.graph,
|
|
304
|
+
// when selection is possible use selectedNode, otherwise use highlightedNode
|
|
305
|
+
setSelectedNode: props.editable || props.allowSelectionWhenNotEditable ? setSelectedNode : setHighlightedNode,
|
|
306
|
+
});
|
|
307
|
+
useEffect(() => {
|
|
308
|
+
onSearchResults(searchResults);
|
|
309
|
+
}, [searchResults]);
|
|
310
|
+
const [showFrameButtons, setShowFrameButtons] = useState(false);
|
|
311
|
+
const { nextNode, prevNode } = useIterateNodes(selectedNode, setSelectedNode, state);
|
|
312
|
+
const { nextEdge, prevEdge } = useIterateEdges(selectedEdge, setSelectedEdge, state);
|
|
313
|
+
function onNext() {
|
|
314
|
+
if (selectedNode) {
|
|
315
|
+
nextNode();
|
|
316
|
+
}
|
|
317
|
+
else if (selectedEdge) {
|
|
318
|
+
nextEdge();
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
function onPrev() {
|
|
322
|
+
if (selectedNode) {
|
|
323
|
+
prevNode();
|
|
324
|
+
}
|
|
325
|
+
else if (selectedEdge) {
|
|
326
|
+
prevEdge();
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
// dragging
|
|
330
|
+
const { dragMode, setDragMode } = useDragMode(props.editable, !props.disableEdgeAdd, props.graphLayout.supportsDrag, onSetDragMode);
|
|
331
|
+
let contentSelected = false;
|
|
332
|
+
let panelTitle = '';
|
|
333
|
+
if (selectedEdge) {
|
|
334
|
+
contentSelected = state.graph.hasEdge(selectedEdge[0], selectedEdge[1]);
|
|
335
|
+
panelTitle = 'Edge';
|
|
336
|
+
}
|
|
337
|
+
else if (selectedNode && state.editorMode !== EditorMode.EDGE_ENCODER) {
|
|
338
|
+
contentSelected = state.graph.hasNode(selectedNode);
|
|
339
|
+
panelTitle = 'Node';
|
|
340
|
+
}
|
|
341
|
+
if (Object.keys((_b = props.graphData) === null || _b === void 0 ? void 0 : _b.nodes).length === 0) {
|
|
342
|
+
return (_jsx(Wrapper, { style: props.style, children: _jsx(Center, { style: { height: 300 }, children: "The CausalGraph structure is empty." }) }));
|
|
343
|
+
}
|
|
344
|
+
return (_jsx(SettingsProvider, { settings: {
|
|
345
|
+
allowNodeDrag: props.graphLayout.supportsDrag,
|
|
346
|
+
allowSelectionWhenNotEditable: props.allowSelectionWhenNotEditable,
|
|
347
|
+
disableEdgeAdd: props.disableEdgeAdd,
|
|
348
|
+
disableLatentNodeAdd: props.disableLatentNodeAdd,
|
|
349
|
+
disableNodeRemoval: props.disableNodeRemoval,
|
|
350
|
+
editable: props.editable,
|
|
351
|
+
editorMode: props.editorMode,
|
|
352
|
+
onNotify: props.onNotify,
|
|
353
|
+
verboseDescriptions: props.verboseDescriptions,
|
|
354
|
+
}, children: _jsx(PointerContext.Provider, { value: { disablePointerEvents: isDragging, onPanelEnter, onPanelExit }, children: _jsx("div", { style: Object.assign({ display: 'flex', flex: '1 1 auto', flexDirection: 'column', minHeight: '100px', position: 'relative' }, props.style), children: _jsxs(Graph, { onMouseEnter: () => setShowFrameButtons(true), onMouseLeave: () => setShowFrameButtons(false), children: [_jsxs(Overlay, { bottomLeft: _jsx(Legend, { listItems: getLegendData(state.editorMode, props.additionalLegends) }), onDelete: onDelete, onNext: onNext, onPrev: onPrev, showFrameButtons: !isDragging && showFrameButtons, title: panelTitle, topLeft: _jsx(RecalculateLayoutButton, { onResetLayout: resetLayout }), topRight: _jsxs(_Fragment, { children: [_jsx(SearchBar, { onChange: onSearchBarChange, onClose: () => setSelectedNode(null), onNext: onNextSearchResult, onPrev: onPrevSearchResult, selectedResult: currentSearchNode + 1, totalNumberOfResults: searchResults.length }), _jsx(CenterGraphButton, { onResetZoom: resetViewport }), _jsx(AddNodeButton, { onAddNode: onAddNode }), _jsx(DragModeButton, { dragMode: dragMode, setDragMode: setDragMode })] }), validContentSelected: contentSelected, children: [selectedEdge && (_jsx(EdgeInfoContent, { api: api, onConfirmDirection: confirmDirection, onUpdateConstraint: updateConstraint, selectedConstraint: selectedConstraint, selectedEdge: selectedEdge, state: state }, selectedEdge.join('-'))), selectedNode && (_jsx(NodeInfoContent, { api: api, selectedNode: selectedNode, state: state }, selectedNode))] }), _jsx("div", { ref: canvasParentRef, style: { height: '100%', width: '100%' } }), _jsx(Tooltip, { content: tooltipContent, followCursor: true, getReferenceClientRect: tooltipRef.current, visible: !isInPanel && !!tooltipContent }), _jsx(ConfirmationModal, Object.assign({ title: "Confirm Removal" }, removeEdgeProps))] }) }) }) }));
|
|
355
|
+
}
|
|
356
|
+
export default CausalGraphEditor;
|
|
357
|
+
//# sourceMappingURL=causal-graph-editor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"causal-graph-editor.js","sourceRoot":"","sources":["../../src/graph-viewer/causal-graph-editor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AACvC,OAAO,IAAI,MAAM,aAAa,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,OAAO,EACH,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,MAAM,EAEN,eAAe,EACf,OAAO,EACP,uBAAuB,EACvB,SAAS,EACT,aAAa,EACb,SAAS,GACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,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