@babylonjs/shared-ui-components 9.0.0 → 9.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/colorPicker/colorComponentEntry.d.ts +1 -1
- package/colorPicker/colorComponentEntry.js.map +1 -1
- package/colorPicker/colorPicker.d.ts +1 -1
- package/colorPicker/colorPicker.js.map +1 -1
- package/colorPicker/hexColor.d.ts +1 -1
- package/colorPicker/hexColor.js.map +1 -1
- package/components/Button.d.ts +1 -1
- package/components/Button.js.map +1 -1
- package/components/Label.d.ts +1 -1
- package/components/Label.js.map +1 -1
- package/components/bars/CommandBarComponent.d.ts +1 -1
- package/components/bars/CommandBarComponent.js.map +1 -1
- package/components/bars/CommandButton.module.scss +2 -0
- package/components/colorPicker/ColorComponentEntry.d.ts +1 -1
- package/components/colorPicker/ColorComponentEntry.js.map +1 -1
- package/components/colorPicker/ColorPicker.d.ts +1 -1
- package/components/colorPicker/ColorPicker.js.map +1 -1
- package/components/colorPicker/HexColor.d.ts +1 -1
- package/components/colorPicker/HexColor.js.map +1 -1
- package/components/layout/DraggableIcon.d.ts +2 -2
- package/components/layout/DraggableIcon.js.map +1 -1
- package/components/layout/FlexibleColumn.d.ts +1 -1
- package/components/layout/FlexibleColumn.js.map +1 -1
- package/components/layout/FlexibleDragHandler.d.ts +1 -1
- package/components/layout/FlexibleDragHandler.js.map +1 -1
- package/components/layout/FlexibleDropZone.d.ts +1 -1
- package/components/layout/FlexibleDropZone.js.map +1 -1
- package/components/layout/FlexibleGridContainer.d.ts +1 -1
- package/components/layout/FlexibleGridContainer.js.map +1 -1
- package/components/layout/FlexibleGridLayout.d.ts +2 -2
- package/components/layout/FlexibleGridLayout.js.map +1 -1
- package/components/layout/FlexibleResizeBar.d.ts +1 -1
- package/components/layout/FlexibleResizeBar.js.map +1 -1
- package/components/layout/FlexibleTab.d.ts +2 -2
- package/components/layout/FlexibleTab.js.map +1 -1
- package/components/layout/FlexibleTabsContainer.d.ts +2 -2
- package/components/layout/FlexibleTabsContainer.js.map +1 -1
- package/components/layout/LayoutContext.d.ts +1 -1
- package/components/layout/LayoutContext.js.map +1 -1
- package/components/layout/types.d.ts +1 -1
- package/components/layout/types.js.map +1 -1
- package/components/layout/utils.d.ts +1 -1
- package/components/layout/utils.js.map +1 -1
- package/components/lines/ColorPickerLineComponent.d.ts +2 -2
- package/components/lines/ColorPickerLineComponent.js.map +1 -1
- package/components/lines/NumericInputComponent.d.ts +1 -1
- package/components/lines/NumericInputComponent.js.map +1 -1
- package/components/lines/OptionsLineComponent.js.map +1 -1
- package/components/propertyTabComponentBase.d.ts +1 -1
- package/components/propertyTabComponentBase.js.map +1 -1
- package/components/reactGraphSystem/GraphConnectorHandle.d.ts +1 -1
- package/components/reactGraphSystem/GraphConnectorHandle.js.map +1 -1
- package/components/reactGraphSystem/GraphContainer.d.ts +1 -1
- package/components/reactGraphSystem/GraphContainer.js.map +1 -1
- package/components/reactGraphSystem/GraphLine.d.ts +1 -1
- package/components/reactGraphSystem/GraphLine.js.map +1 -1
- package/components/reactGraphSystem/GraphLinesContainer.d.ts +1 -1
- package/components/reactGraphSystem/GraphLinesContainer.js.map +1 -1
- package/components/reactGraphSystem/GraphNode.d.ts +1 -1
- package/components/reactGraphSystem/GraphNode.js.map +1 -1
- package/components/reactGraphSystem/GraphNodesContainer.d.ts +1 -1
- package/components/reactGraphSystem/GraphNodesContainer.js.map +1 -1
- package/components/reactGraphSystem/NodeRenderer.d.ts +2 -2
- package/components/reactGraphSystem/NodeRenderer.js.map +1 -1
- package/constToOptionsMaps.js.map +1 -1
- package/copyCommandToClipboard.js.map +1 -1
- package/fluent/hoc/buttonLine.d.ts +2 -2
- package/fluent/hoc/buttonLine.js.map +1 -1
- package/fluent/hoc/childWindow.d.ts +1 -1
- package/fluent/hoc/childWindow.js +1 -3
- package/fluent/hoc/childWindow.js.map +1 -1
- package/fluent/hoc/fileUploadLine.d.ts +2 -2
- package/fluent/hoc/fileUploadLine.js.map +1 -1
- package/fluent/hoc/fluentToolWrapper.d.ts +2 -2
- package/fluent/hoc/fluentToolWrapper.js.map +1 -1
- package/fluent/hoc/gradientList.d.ts +2 -2
- package/fluent/hoc/gradientList.js.map +1 -1
- package/fluent/hoc/pane.d.ts +2 -2
- package/fluent/hoc/pane.js.map +1 -1
- package/fluent/hoc/propertyLines/booleanBadgePropertyLine.d.ts +3 -3
- package/fluent/hoc/propertyLines/booleanBadgePropertyLine.js.map +1 -1
- package/fluent/hoc/propertyLines/checkboxPropertyLine.d.ts +3 -3
- package/fluent/hoc/propertyLines/checkboxPropertyLine.js.map +1 -1
- package/fluent/hoc/propertyLines/colorPropertyLine.d.ts +4 -5
- package/fluent/hoc/propertyLines/colorPropertyLine.js.map +1 -1
- package/fluent/hoc/propertyLines/comboBoxPropertyLine.d.ts +3 -3
- package/fluent/hoc/propertyLines/comboBoxPropertyLine.js.map +1 -1
- package/fluent/hoc/propertyLines/dropdownPropertyLine.d.ts +3 -3
- package/fluent/hoc/propertyLines/dropdownPropertyLine.js.map +1 -1
- package/fluent/hoc/propertyLines/entitySelectorPropertyLine.d.ts +12 -12
- package/fluent/hoc/propertyLines/entitySelectorPropertyLine.js.map +1 -1
- package/fluent/hoc/propertyLines/hexPropertyLine.d.ts +2 -2
- package/fluent/hoc/propertyLines/hexPropertyLine.js.map +1 -1
- package/fluent/hoc/propertyLines/inputPropertyLine.d.ts +4 -4
- package/fluent/hoc/propertyLines/inputPropertyLine.js.map +1 -1
- package/fluent/hoc/propertyLines/linkPropertyLine.d.ts +3 -3
- package/fluent/hoc/propertyLines/linkPropertyLine.js.map +1 -1
- package/fluent/hoc/propertyLines/propertyLine.d.ts +3 -3
- package/fluent/hoc/propertyLines/propertyLine.js +2 -4
- package/fluent/hoc/propertyLines/propertyLine.js.map +1 -1
- package/fluent/hoc/propertyLines/spinButtonPropertyLine.d.ts +3 -3
- package/fluent/hoc/propertyLines/spinButtonPropertyLine.js.map +1 -1
- package/fluent/hoc/propertyLines/stringifiedPropertyLine.d.ts +3 -3
- package/fluent/hoc/propertyLines/stringifiedPropertyLine.js.map +1 -1
- package/fluent/hoc/propertyLines/switchPropertyLine.d.ts +3 -3
- package/fluent/hoc/propertyLines/switchPropertyLine.js.map +1 -1
- package/fluent/hoc/propertyLines/syncedSliderPropertyLine.d.ts +2 -2
- package/fluent/hoc/propertyLines/syncedSliderPropertyLine.js.map +1 -1
- package/fluent/hoc/propertyLines/textAreaPropertyLine.d.ts +3 -3
- package/fluent/hoc/propertyLines/textAreaPropertyLine.js.map +1 -1
- package/fluent/hoc/propertyLines/textPropertyLine.d.ts +3 -3
- package/fluent/hoc/propertyLines/textPropertyLine.js.map +1 -1
- package/fluent/hoc/propertyLines/vectorPropertyLine.d.ts +4 -5
- package/fluent/hoc/propertyLines/vectorPropertyLine.js +2 -2
- package/fluent/hoc/propertyLines/vectorPropertyLine.js.map +1 -1
- package/fluent/hoc/textureUpload.d.ts +3 -3
- package/fluent/hoc/textureUpload.js.map +1 -1
- package/fluent/hooks/keyboardHooks.d.ts +1 -1
- package/fluent/hooks/keyboardHooks.js +1 -1
- package/fluent/hooks/keyboardHooks.js.map +1 -1
- package/fluent/primitives/accordion.contexts.d.ts +2 -2
- package/fluent/primitives/accordion.contexts.js.map +1 -1
- package/fluent/primitives/accordion.d.ts +1 -1
- package/fluent/primitives/accordion.js +1 -1
- package/fluent/primitives/accordion.js.map +1 -1
- package/fluent/primitives/button.d.ts +3 -3
- package/fluent/primitives/button.js.map +1 -1
- package/fluent/primitives/checkbox.d.ts +2 -2
- package/fluent/primitives/checkbox.js.map +1 -1
- package/fluent/primitives/clusteredLightContainerSelector.d.ts +5 -5
- package/fluent/primitives/clusteredLightContainerSelector.js.map +1 -1
- package/fluent/primitives/collapse.d.ts +1 -1
- package/fluent/primitives/collapse.js.map +1 -1
- package/fluent/primitives/colorPicker.d.ts +2 -2
- package/fluent/primitives/colorPicker.js +1 -1
- package/fluent/primitives/colorPicker.js.map +1 -1
- package/fluent/primitives/comboBox.d.ts +1 -1
- package/fluent/primitives/comboBox.js.map +1 -1
- package/fluent/primitives/contextMenu.d.ts +4 -4
- package/fluent/primitives/contextMenu.js +2 -2
- package/fluent/primitives/contextMenu.js.map +1 -1
- package/fluent/primitives/dropdown.d.ts +2 -2
- package/fluent/primitives/dropdown.js.map +1 -1
- package/fluent/primitives/entitySelector.d.ts +2 -2
- package/fluent/primitives/entitySelector.js +2 -6
- package/fluent/primitives/entitySelector.js.map +1 -1
- package/fluent/primitives/gradient.d.ts +2 -2
- package/fluent/primitives/gradient.js.map +1 -1
- package/fluent/primitives/infoLabel.d.ts +1 -1
- package/fluent/primitives/infoLabel.js.map +1 -1
- package/fluent/primitives/lazyComponent.d.ts +2 -2
- package/fluent/primitives/lazyComponent.js.map +1 -1
- package/fluent/primitives/link.d.ts +1 -1
- package/fluent/primitives/link.js.map +1 -1
- package/fluent/primitives/list.d.ts +1 -1
- package/fluent/primitives/list.js +1 -1
- package/fluent/primitives/list.js.map +1 -1
- package/fluent/primitives/materialSelector.d.ts +6 -6
- package/fluent/primitives/materialSelector.js.map +1 -1
- package/fluent/primitives/messageBar.d.ts +1 -1
- package/fluent/primitives/messageBar.js.map +1 -1
- package/fluent/primitives/nodeSelector.d.ts +6 -6
- package/fluent/primitives/nodeSelector.js.map +1 -1
- package/fluent/primitives/popover.d.ts +3 -3
- package/fluent/primitives/popover.js +1 -1
- package/fluent/primitives/popover.js.map +1 -1
- package/fluent/primitives/positionedPopover.d.ts +1 -1
- package/fluent/primitives/positionedPopover.js.map +1 -1
- package/fluent/primitives/primitive.d.ts +1 -1
- package/fluent/primitives/primitive.js.map +1 -1
- package/fluent/primitives/searchBar.js.map +1 -1
- package/fluent/primitives/searchBox.d.ts +1 -1
- package/fluent/primitives/searchBox.js.map +1 -1
- package/fluent/primitives/skeletonSelector.d.ts +6 -6
- package/fluent/primitives/skeletonSelector.js.map +1 -1
- package/fluent/primitives/slider.d.ts +2 -2
- package/fluent/primitives/slider.js.map +1 -1
- package/fluent/primitives/spinButton.d.ts +1 -1
- package/fluent/primitives/spinButton.js +5 -2
- package/fluent/primitives/spinButton.js.map +1 -1
- package/fluent/primitives/switch.d.ts +2 -2
- package/fluent/primitives/switch.js.map +1 -1
- package/fluent/primitives/syncedSlider.d.ts +2 -2
- package/fluent/primitives/syncedSlider.js +1 -1
- package/fluent/primitives/syncedSlider.js.map +1 -1
- package/fluent/primitives/textInput.d.ts +2 -2
- package/fluent/primitives/textInput.js.map +1 -1
- package/fluent/primitives/textarea.d.ts +2 -2
- package/fluent/primitives/textarea.js.map +1 -1
- package/fluent/primitives/textureSelector.d.ts +6 -6
- package/fluent/primitives/textureSelector.js +2 -2
- package/fluent/primitives/textureSelector.js.map +1 -1
- package/fluent/primitives/toast.d.ts +34 -3
- package/fluent/primitives/toast.js +9 -4
- package/fluent/primitives/toast.js.map +1 -1
- package/fluent/primitives/toggleButton.d.ts +3 -3
- package/fluent/primitives/toggleButton.js.map +1 -1
- package/fluent/primitives/tooltip.d.ts +2 -2
- package/fluent/primitives/tooltip.js.map +1 -1
- package/fluent/primitives/uploadButton.d.ts +2 -2
- package/fluent/primitives/uploadButton.js.map +1 -1
- package/fluent/primitives/utils.d.ts +2 -2
- package/fluent/primitives/utils.js.map +1 -1
- package/historyStack.d.ts +9 -1
- package/historyStack.js +15 -0
- package/historyStack.js.map +1 -1
- package/lines/booleanLineComponent.js +2 -2
- package/lines/checkBoxLineComponent.d.ts +3 -3
- package/lines/checkBoxLineComponent.js.map +1 -1
- package/lines/color3LineComponent.d.ts +3 -3
- package/lines/color3LineComponent.js.map +1 -1
- package/lines/color4LineComponent.d.ts +3 -3
- package/lines/color4LineComponent.js.map +1 -1
- package/lines/colorLineComponent.d.ts +3 -3
- package/lines/colorLineComponent.js.map +1 -1
- package/lines/colorPickerComponent.d.ts +2 -2
- package/lines/colorPickerComponent.js.map +1 -1
- package/lines/draggableLineComponent.d.ts +1 -1
- package/lines/draggableLineComponent.js.map +1 -1
- package/lines/fileButtonLineComponent.js +1 -1
- package/lines/floatLineComponent.d.ts +3 -3
- package/lines/floatLineComponent.js.map +1 -1
- package/lines/hexLineComponent.d.ts +3 -3
- package/lines/hexLineComponent.js.map +1 -1
- package/lines/lineContainerComponent.d.ts +1 -1
- package/lines/lineContainerComponent.js.map +1 -1
- package/lines/lineWithFileButtonComponent.js +1 -1
- package/lines/lineWithFileButtonComponent.js.map +1 -1
- package/lines/linkButtonComponent.d.ts +1 -1
- package/lines/linkButtonComponent.js.map +1 -1
- package/lines/matrixLineComponent.d.ts +4 -5
- package/lines/matrixLineComponent.js.map +1 -1
- package/lines/messageLineComponent.d.ts +1 -1
- package/lines/messageLineComponent.js.map +1 -1
- package/lines/numericInputComponent.d.ts +1 -1
- package/lines/numericInputComponent.js.map +1 -1
- package/lines/optionsLineComponent.d.ts +3 -3
- package/lines/optionsLineComponent.js.map +1 -1
- package/lines/radioLineComponent.d.ts +1 -1
- package/lines/radioLineComponent.js.map +1 -1
- package/lines/sliderLineComponent.d.ts +3 -3
- package/lines/sliderLineComponent.js.map +1 -1
- package/lines/targetsProxy.d.ts +2 -2
- package/lines/targetsProxy.js.map +1 -1
- package/lines/textInputLineComponent.d.ts +4 -5
- package/lines/textInputLineComponent.js.map +1 -1
- package/lines/textureButtonLineComponent.d.ts +2 -2
- package/lines/textureButtonLineComponent.js.map +1 -1
- package/lines/vector2LineComponent.d.ts +3 -3
- package/lines/vector2LineComponent.js.map +1 -1
- package/lines/vector3LineComponent.d.ts +3 -3
- package/lines/vector3LineComponent.js.map +1 -1
- package/lines/vector4LineComponent.d.ts +3 -3
- package/lines/vector4LineComponent.js.map +1 -1
- package/nodeGraphSystem/automaticProperties.d.ts +2 -2
- package/nodeGraphSystem/automaticProperties.js.map +1 -1
- package/nodeGraphSystem/common.module.scss +3 -0
- package/nodeGraphSystem/frameNodePort.d.ts +6 -6
- package/nodeGraphSystem/frameNodePort.js.map +1 -1
- package/nodeGraphSystem/graphCanvas.d.ts +43 -6
- package/nodeGraphSystem/graphCanvas.js +139 -6
- package/nodeGraphSystem/graphCanvas.js.map +1 -1
- package/nodeGraphSystem/graphFrame.d.ts +4 -4
- package/nodeGraphSystem/graphFrame.js.map +1 -1
- package/nodeGraphSystem/graphMinimap.d.ts +79 -0
- package/nodeGraphSystem/graphMinimap.js +319 -0
- package/nodeGraphSystem/graphMinimap.js.map +1 -0
- package/nodeGraphSystem/graphMinimap.module.scss +30 -0
- package/nodeGraphSystem/graphNode.d.ts +24 -8
- package/nodeGraphSystem/graphNode.js +76 -1
- package/nodeGraphSystem/graphNode.js.map +1 -1
- package/nodeGraphSystem/graphNode.module.scss +61 -0
- package/nodeGraphSystem/graphSearch.d.ts +54 -0
- package/nodeGraphSystem/graphSearch.js +181 -0
- package/nodeGraphSystem/graphSearch.js.map +1 -0
- package/nodeGraphSystem/graphSearch.module.scss +86 -0
- package/nodeGraphSystem/graphStickyNote.d.ts +94 -0
- package/nodeGraphSystem/graphStickyNote.js +310 -0
- package/nodeGraphSystem/graphStickyNote.js.map +1 -0
- package/nodeGraphSystem/graphStickyNote.module.scss +87 -0
- package/nodeGraphSystem/interfaces/displayManager.d.ts +4 -4
- package/nodeGraphSystem/interfaces/displayManager.js.map +1 -1
- package/nodeGraphSystem/interfaces/nodeContainer.d.ts +2 -2
- package/nodeGraphSystem/interfaces/nodeContainer.js.map +1 -1
- package/nodeGraphSystem/interfaces/nodeData.d.ts +4 -2
- package/nodeGraphSystem/interfaces/nodeData.js.map +1 -1
- package/nodeGraphSystem/interfaces/nodeLocationInfo.d.ts +10 -0
- package/nodeGraphSystem/interfaces/nodeLocationInfo.js.map +1 -1
- package/nodeGraphSystem/interfaces/portData.d.ts +4 -3
- package/nodeGraphSystem/interfaces/portData.js +1 -0
- package/nodeGraphSystem/interfaces/portData.js.map +1 -1
- package/nodeGraphSystem/interfaces/propertyComponentProps.d.ts +2 -2
- package/nodeGraphSystem/interfaces/propertyComponentProps.js.map +1 -1
- package/nodeGraphSystem/interfaces/selectionChangedOptions.d.ts +8 -7
- package/nodeGraphSystem/interfaces/selectionChangedOptions.js.map +1 -1
- package/nodeGraphSystem/nodeLink.d.ts +16 -4
- package/nodeGraphSystem/nodeLink.js +77 -0
- package/nodeGraphSystem/nodeLink.js.map +1 -1
- package/nodeGraphSystem/nodePort.d.ts +8 -8
- package/nodeGraphSystem/nodePort.js +26 -1
- package/nodeGraphSystem/nodePort.js.map +1 -1
- package/nodeGraphSystem/nodePort.module.scss +37 -0
- package/nodeGraphSystem/propertyLedger.d.ts +2 -2
- package/nodeGraphSystem/propertyLedger.js.map +1 -1
- package/nodeGraphSystem/searchBox.d.ts +1 -1
- package/nodeGraphSystem/searchBox.js.map +1 -1
- package/nodeGraphSystem/stateManager.d.ts +18 -12
- package/nodeGraphSystem/stateManager.js +6 -0
- package/nodeGraphSystem/stateManager.js.map +1 -1
- package/nodeGraphSystem/tools.d.ts +4 -4
- package/nodeGraphSystem/tools.js.map +1 -1
- package/nodeGraphSystem/typeLedger.d.ts +4 -4
- package/nodeGraphSystem/typeLedger.js.map +1 -1
- package/nodeGraphSystem/types/framePortData.d.ts +2 -2
- package/nodeGraphSystem/types/framePortData.js.map +1 -1
- package/package.json +3 -4
- package/split/splitContainer.d.ts +1 -1
- package/split/splitContainer.js +3 -2
- package/split/splitContainer.js.map +1 -1
- package/split/splitter.d.ts +1 -1
- package/split/splitter.js.map +1 -1
- package/tabs/propertyGrids/gui/checkboxPropertyGridComponent.d.ts +4 -4
- package/tabs/propertyGrids/gui/checkboxPropertyGridComponent.js.map +1 -1
- package/tabs/propertyGrids/gui/colorPickerPropertyGridComponent.d.ts +4 -4
- package/tabs/propertyGrids/gui/colorPickerPropertyGridComponent.js.map +1 -1
- package/tabs/propertyGrids/gui/commonControlPropertyGridComponent.d.ts +3 -3
- package/tabs/propertyGrids/gui/commonControlPropertyGridComponent.js.map +1 -1
- package/tabs/propertyGrids/gui/controlPropertyGridComponent.d.ts +4 -4
- package/tabs/propertyGrids/gui/controlPropertyGridComponent.js.map +1 -1
- package/tabs/propertyGrids/gui/ellipsePropertyGridComponent.d.ts +4 -4
- package/tabs/propertyGrids/gui/ellipsePropertyGridComponent.js.map +1 -1
- package/tabs/propertyGrids/gui/gridPropertyGridComponent.d.ts +4 -4
- package/tabs/propertyGrids/gui/gridPropertyGridComponent.js.map +1 -1
- package/tabs/propertyGrids/gui/imageBasedSliderPropertyGridComponent.d.ts +4 -4
- package/tabs/propertyGrids/gui/imageBasedSliderPropertyGridComponent.js.map +1 -1
- package/tabs/propertyGrids/gui/imagePropertyGridComponent.d.ts +3 -3
- package/tabs/propertyGrids/gui/imagePropertyGridComponent.js.map +1 -1
- package/tabs/propertyGrids/gui/inputTextPropertyGridComponent.d.ts +4 -4
- package/tabs/propertyGrids/gui/inputTextPropertyGridComponent.js.map +1 -1
- package/tabs/propertyGrids/gui/linePropertyGridComponent.d.ts +4 -4
- package/tabs/propertyGrids/gui/linePropertyGridComponent.js.map +1 -1
- package/tabs/propertyGrids/gui/radioButtonPropertyGridComponent.d.ts +4 -4
- package/tabs/propertyGrids/gui/radioButtonPropertyGridComponent.js.map +1 -1
- package/tabs/propertyGrids/gui/rectanglePropertyGridComponent.d.ts +4 -4
- package/tabs/propertyGrids/gui/rectanglePropertyGridComponent.js.map +1 -1
- package/tabs/propertyGrids/gui/scrollViewerPropertyGridComponent.d.ts +4 -4
- package/tabs/propertyGrids/gui/scrollViewerPropertyGridComponent.js.map +1 -1
- package/tabs/propertyGrids/gui/sliderPropertyGridComponent.d.ts +4 -4
- package/tabs/propertyGrids/gui/sliderPropertyGridComponent.js.map +1 -1
- package/tabs/propertyGrids/gui/stackPanelPropertyGridComponent.d.ts +4 -4
- package/tabs/propertyGrids/gui/stackPanelPropertyGridComponent.js.map +1 -1
- package/tabs/propertyGrids/gui/textBlockPropertyGridComponent.d.ts +4 -4
- package/tabs/propertyGrids/gui/textBlockPropertyGridComponent.js.map +1 -1
|
@@ -7,6 +7,7 @@ import { NodePort } from "./nodePort.js";
|
|
|
7
7
|
import { Vector2 } from "@babylonjs/core/Maths/math.vector.js";
|
|
8
8
|
import { DataStorage } from "@babylonjs/core/Misc/dataStorage.js";
|
|
9
9
|
import { GraphFrame } from "./graphFrame.js";
|
|
10
|
+
import { GraphStickyNote } from "./graphStickyNote.js";
|
|
10
11
|
import { FrameNodePort } from "./frameNodePort.js";
|
|
11
12
|
import { PortDataDirection } from "./interfaces/portData.js";
|
|
12
13
|
import * as styles from "./graphCanvas.module.scss";
|
|
@@ -14,6 +15,8 @@ import * as commonStyles from "./common.module.scss";
|
|
|
14
15
|
import { TypeLedger } from "./typeLedger.js";
|
|
15
16
|
import { RefreshNode } from "./tools.js";
|
|
16
17
|
import { SearchBoxComponent } from "./searchBox.js";
|
|
18
|
+
import { GraphMinimapComponent } from "./graphMinimap.js";
|
|
19
|
+
import { GraphSearchComponent } from "./graphSearch.js";
|
|
17
20
|
export class GraphCanvasComponent extends React.Component {
|
|
18
21
|
get gridSize() {
|
|
19
22
|
return this._gridSize;
|
|
@@ -67,6 +70,12 @@ export class GraphCanvasComponent extends React.Component {
|
|
|
67
70
|
get selectedFrames() {
|
|
68
71
|
return this._selectedFrames;
|
|
69
72
|
}
|
|
73
|
+
get stickyNotes() {
|
|
74
|
+
return this._stickyNotes;
|
|
75
|
+
}
|
|
76
|
+
get selectedStickyNotes() {
|
|
77
|
+
return this._selectedStickyNotes;
|
|
78
|
+
}
|
|
70
79
|
get selectedPort() {
|
|
71
80
|
return this._selectedPort;
|
|
72
81
|
}
|
|
@@ -96,6 +105,12 @@ export class GraphCanvasComponent extends React.Component {
|
|
|
96
105
|
}
|
|
97
106
|
return false;
|
|
98
107
|
}
|
|
108
|
+
_deselectAllStickyNotes() {
|
|
109
|
+
for (const note of this._selectedStickyNotes) {
|
|
110
|
+
note.setIsSelected(false);
|
|
111
|
+
}
|
|
112
|
+
this._selectedStickyNotes = [];
|
|
113
|
+
}
|
|
99
114
|
constructor(props) {
|
|
100
115
|
super(props);
|
|
101
116
|
this._minZoom = 0.1;
|
|
@@ -130,17 +145,25 @@ export class GraphCanvasComponent extends React.Component {
|
|
|
130
145
|
this._selectedFrames = [];
|
|
131
146
|
this._frameCandidate = null;
|
|
132
147
|
this._frames = [];
|
|
148
|
+
this._stickyNotes = [];
|
|
149
|
+
this._selectedStickyNotes = [];
|
|
133
150
|
this._nodeDataContentList = new Array();
|
|
134
151
|
this._altKeyIsPressed = false;
|
|
135
152
|
this._shiftKeyIsPressed = false;
|
|
136
153
|
this._multiKeyIsPressed = false;
|
|
137
154
|
this._oldY = -1;
|
|
155
|
+
this._keyUpHandler = null;
|
|
156
|
+
this._keyDownHandler = null;
|
|
157
|
+
this._blurHandler = null;
|
|
138
158
|
this._frameIsMoving = false;
|
|
139
159
|
this._isLoading = false;
|
|
140
160
|
this._targetLinkCandidate = null;
|
|
141
161
|
this._isCopyingOrPasting = false;
|
|
142
162
|
this._copiedNodes = [];
|
|
143
163
|
this._copiedFrames = [];
|
|
164
|
+
this._searchRef = React.createRef();
|
|
165
|
+
props.stateManager.enablePortCompatibilityHighlight = !!props.enablePortCompatibilityHighlight;
|
|
166
|
+
props.stateManager.enableNodeBadges = !!props.enableNodeBadges;
|
|
144
167
|
props.stateManager.onSelectionChangedObservable.add((options) => {
|
|
145
168
|
const { selection, forceKeepSelection, marqueeSelection = false } = options || {};
|
|
146
169
|
if (!selection) {
|
|
@@ -148,6 +171,10 @@ export class GraphCanvasComponent extends React.Component {
|
|
|
148
171
|
this._selectedLink = null;
|
|
149
172
|
this._selectedFrames = [];
|
|
150
173
|
this._selectedPort = null;
|
|
174
|
+
for (const note of this._selectedStickyNotes) {
|
|
175
|
+
note.setIsSelected(false);
|
|
176
|
+
}
|
|
177
|
+
this._selectedStickyNotes = [];
|
|
151
178
|
}
|
|
152
179
|
else {
|
|
153
180
|
if (selection instanceof NodeLink) {
|
|
@@ -155,18 +182,36 @@ export class GraphCanvasComponent extends React.Component {
|
|
|
155
182
|
this._selectedFrames = [];
|
|
156
183
|
this._selectedLink = selection;
|
|
157
184
|
this._selectedPort = null;
|
|
185
|
+
this._deselectAllStickyNotes();
|
|
158
186
|
}
|
|
159
187
|
else if (selection instanceof NodePort) {
|
|
160
188
|
this._selectedNodes = [];
|
|
161
189
|
this._selectedFrames = [];
|
|
162
190
|
this._selectedLink = null;
|
|
163
191
|
this._selectedPort = selection;
|
|
192
|
+
this._deselectAllStickyNotes();
|
|
164
193
|
}
|
|
165
194
|
else if (selection instanceof FrameNodePort) {
|
|
166
195
|
this._selectedNodes = [];
|
|
167
196
|
this._selectedFrames = [];
|
|
168
197
|
this._selectedLink = null;
|
|
169
198
|
this._selectedPort = selection;
|
|
199
|
+
this._deselectAllStickyNotes();
|
|
200
|
+
}
|
|
201
|
+
else if (this.props.enableStickyNotes && selection instanceof GraphStickyNote) {
|
|
202
|
+
if (this._multiKeyIsPressed || this._shiftKeyIsPressed || forceKeepSelection) {
|
|
203
|
+
if (!this._selectedStickyNotes.includes(selection)) {
|
|
204
|
+
this._selectedStickyNotes.push(selection);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
else {
|
|
208
|
+
this._selectedNodes = [];
|
|
209
|
+
this._selectedFrames = [];
|
|
210
|
+
this._selectedStickyNotes = [selection];
|
|
211
|
+
this._selectedLink = null;
|
|
212
|
+
this._selectedPort = null;
|
|
213
|
+
}
|
|
214
|
+
selection.setIsSelected(true);
|
|
170
215
|
}
|
|
171
216
|
else if (selection instanceof GraphNode || selection instanceof GraphFrame) {
|
|
172
217
|
// If in marquee selection mode, always prioritize selecting nodes. Otherwise, always prioritize selecting the type of
|
|
@@ -202,6 +247,7 @@ export class GraphCanvasComponent extends React.Component {
|
|
|
202
247
|
this._selectedNodes = [];
|
|
203
248
|
this._selectedLink = null;
|
|
204
249
|
this._selectedPort = null;
|
|
250
|
+
this._deselectAllStickyNotes();
|
|
205
251
|
}
|
|
206
252
|
}
|
|
207
253
|
else if (selection instanceof GraphNode) {
|
|
@@ -215,6 +261,7 @@ export class GraphCanvasComponent extends React.Component {
|
|
|
215
261
|
this._selectedNodes = [selection];
|
|
216
262
|
this._selectedLink = null;
|
|
217
263
|
this._selectedPort = null;
|
|
264
|
+
this._deselectAllStickyNotes();
|
|
218
265
|
}
|
|
219
266
|
}
|
|
220
267
|
}
|
|
@@ -227,17 +274,20 @@ export class GraphCanvasComponent extends React.Component {
|
|
|
227
274
|
props.stateManager.onGridSizeChanged.add(() => {
|
|
228
275
|
this.gridSize = DataStorage.ReadNumber("GridSize", 20);
|
|
229
276
|
});
|
|
230
|
-
this.
|
|
231
|
-
this.
|
|
277
|
+
this._keyUpHandler = () => this.onKeyUp();
|
|
278
|
+
this._keyDownHandler = (evt) => {
|
|
232
279
|
this._altKeyIsPressed = evt.altKey;
|
|
233
280
|
this._shiftKeyIsPressed = evt.shiftKey;
|
|
234
281
|
this._multiKeyIsPressed = evt.ctrlKey || evt.metaKey;
|
|
235
|
-
}
|
|
236
|
-
this.
|
|
282
|
+
};
|
|
283
|
+
this._blurHandler = () => {
|
|
237
284
|
this._altKeyIsPressed = false;
|
|
238
285
|
this._shiftKeyIsPressed = false;
|
|
239
286
|
this._multiKeyIsPressed = false;
|
|
240
|
-
}
|
|
287
|
+
};
|
|
288
|
+
this.props.stateManager.hostDocument.addEventListener("keyup", this._keyUpHandler, false);
|
|
289
|
+
this.props.stateManager.hostDocument.addEventListener("keydown", this._keyDownHandler, false);
|
|
290
|
+
this.props.stateManager.hostDocument.defaultView.addEventListener("blur", this._blurHandler, false);
|
|
241
291
|
// Store additional data to serialization object
|
|
242
292
|
this.props.stateManager.storeEditorData = (editorData, graphFrame) => {
|
|
243
293
|
editorData.frames = [];
|
|
@@ -251,6 +301,12 @@ export class GraphCanvasComponent extends React.Component {
|
|
|
251
301
|
for (const frame of this._frames) {
|
|
252
302
|
editorData.frames.push(frame.serialize(true));
|
|
253
303
|
}
|
|
304
|
+
if (this.props.enableStickyNotes) {
|
|
305
|
+
editorData.stickyNotes = [];
|
|
306
|
+
for (const note of this._stickyNotes) {
|
|
307
|
+
editorData.stickyNotes.push(note.serialize());
|
|
308
|
+
}
|
|
309
|
+
}
|
|
254
310
|
}
|
|
255
311
|
};
|
|
256
312
|
}
|
|
@@ -360,6 +416,13 @@ export class GraphCanvasComponent extends React.Component {
|
|
|
360
416
|
frame.dispose();
|
|
361
417
|
}
|
|
362
418
|
}
|
|
419
|
+
if (this.props.enableStickyNotes && this._selectedStickyNotes.length) {
|
|
420
|
+
needRebuild = true;
|
|
421
|
+
for (const note of this._selectedStickyNotes) {
|
|
422
|
+
note.dispose();
|
|
423
|
+
}
|
|
424
|
+
this._selectedStickyNotes = [];
|
|
425
|
+
}
|
|
363
426
|
if (!needRebuild) {
|
|
364
427
|
return;
|
|
365
428
|
}
|
|
@@ -627,8 +690,14 @@ export class GraphCanvasComponent extends React.Component {
|
|
|
627
690
|
for (const frame of frames) {
|
|
628
691
|
frame.dispose();
|
|
629
692
|
}
|
|
693
|
+
const notes = this._stickyNotes.splice(0);
|
|
694
|
+
for (const note of notes) {
|
|
695
|
+
note.element.parentElement?.removeChild(note.element);
|
|
696
|
+
}
|
|
630
697
|
this._nodes = [];
|
|
631
698
|
this._frames = [];
|
|
699
|
+
this._stickyNotes = [];
|
|
700
|
+
this._selectedStickyNotes = [];
|
|
632
701
|
this._links = [];
|
|
633
702
|
this._graphCanvas.innerHTML = "";
|
|
634
703
|
this._svgCanvas.innerHTML = "";
|
|
@@ -749,6 +818,18 @@ export class GraphCanvasComponent extends React.Component {
|
|
|
749
818
|
this.gridSize = DataStorage.ReadNumber("GridSize", 20);
|
|
750
819
|
this.updateTransform();
|
|
751
820
|
}
|
|
821
|
+
componentWillUnmount() {
|
|
822
|
+
const doc = this.props.stateManager.hostDocument;
|
|
823
|
+
if (this._keyUpHandler) {
|
|
824
|
+
doc.removeEventListener("keyup", this._keyUpHandler);
|
|
825
|
+
}
|
|
826
|
+
if (this._keyDownHandler) {
|
|
827
|
+
doc.removeEventListener("keydown", this._keyDownHandler);
|
|
828
|
+
}
|
|
829
|
+
if (this._blurHandler) {
|
|
830
|
+
doc.defaultView?.removeEventListener("blur", this._blurHandler);
|
|
831
|
+
}
|
|
832
|
+
}
|
|
752
833
|
onMove(evt) {
|
|
753
834
|
if (this.stateManager.modalIsDisplayed) {
|
|
754
835
|
return;
|
|
@@ -876,6 +957,9 @@ export class GraphCanvasComponent extends React.Component {
|
|
|
876
957
|
this._candidateLink = new NodeLink(this, portElement, portElement.node);
|
|
877
958
|
}
|
|
878
959
|
this._candidateLinkedHasMoved = false;
|
|
960
|
+
if (this.stateManager.enablePortCompatibilityHighlight) {
|
|
961
|
+
this.stateManager.candidateSourcePortData = this._candidateLink.portA.portData;
|
|
962
|
+
}
|
|
879
963
|
}
|
|
880
964
|
return;
|
|
881
965
|
}
|
|
@@ -947,6 +1031,7 @@ export class GraphCanvasComponent extends React.Component {
|
|
|
947
1031
|
this._candidateLink.dispose();
|
|
948
1032
|
this._candidateLink = null;
|
|
949
1033
|
this._candidatePort = null;
|
|
1034
|
+
this.stateManager.candidateSourcePortData = null;
|
|
950
1035
|
}
|
|
951
1036
|
if (this._selectionBox) {
|
|
952
1037
|
this._selectionBox.parentElement.removeChild(this._selectionBox);
|
|
@@ -1021,6 +1106,16 @@ export class GraphCanvasComponent extends React.Component {
|
|
|
1021
1106
|
this.x = 0;
|
|
1022
1107
|
this.y = 0;
|
|
1023
1108
|
}
|
|
1109
|
+
/**
|
|
1110
|
+
* Pans the canvas so the given node is visible and roughly centered.
|
|
1111
|
+
* @param node - the node to bring into view
|
|
1112
|
+
*/
|
|
1113
|
+
zoomToNode(node) {
|
|
1114
|
+
const containerWidth = this._rootContainer.clientWidth;
|
|
1115
|
+
const containerHeight = this._rootContainer.clientHeight;
|
|
1116
|
+
this.x = -node.x + containerWidth / (2 * this.zoom) - 100;
|
|
1117
|
+
this.y = -node.y + containerHeight / (2 * this.zoom) - 20;
|
|
1118
|
+
}
|
|
1024
1119
|
processCandidatePort() {
|
|
1025
1120
|
let pointB = this._candidateLink.portA.portData;
|
|
1026
1121
|
let nodeB = this._candidateLink.portA.node;
|
|
@@ -1182,7 +1277,13 @@ export class GraphCanvasComponent extends React.Component {
|
|
|
1182
1277
|
for (const frame of frames) {
|
|
1183
1278
|
frame.dispose();
|
|
1184
1279
|
}
|
|
1280
|
+
const notes = this._stickyNotes.splice(0);
|
|
1281
|
+
for (const note of notes) {
|
|
1282
|
+
note.element.parentElement?.removeChild(note.element);
|
|
1283
|
+
}
|
|
1185
1284
|
this._frames = [];
|
|
1285
|
+
this._stickyNotes = [];
|
|
1286
|
+
this._selectedStickyNotes = [];
|
|
1186
1287
|
this.x = editorData.x || 0;
|
|
1187
1288
|
this.y = editorData.y || 0;
|
|
1188
1289
|
this.zoom = editorData.zoom || 1;
|
|
@@ -1193,6 +1294,13 @@ export class GraphCanvasComponent extends React.Component {
|
|
|
1193
1294
|
this._frames.push(frame);
|
|
1194
1295
|
}
|
|
1195
1296
|
}
|
|
1297
|
+
// Sticky notes
|
|
1298
|
+
if (this.props.enableStickyNotes && editorData.stickyNotes) {
|
|
1299
|
+
for (const noteData of editorData.stickyNotes) {
|
|
1300
|
+
const note = GraphStickyNote.Parse(noteData, this);
|
|
1301
|
+
this._stickyNotes.push(note);
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1196
1304
|
}
|
|
1197
1305
|
reOrganize(editorData = null, isImportingAFrame = false) {
|
|
1198
1306
|
if (!editorData || !editorData.locations) {
|
|
@@ -1228,8 +1336,33 @@ export class GraphCanvasComponent extends React.Component {
|
|
|
1228
1336
|
this._frames.push(frame);
|
|
1229
1337
|
this.stateManager.onSelectionChangedObservable.notifyObservers({ selection: frame });
|
|
1230
1338
|
}
|
|
1339
|
+
/**
|
|
1340
|
+
* Create a new sticky note at the given canvas-space position.
|
|
1341
|
+
* @param x - x position in canvas space
|
|
1342
|
+
* @param y - y position in canvas space
|
|
1343
|
+
* @returns the created sticky note
|
|
1344
|
+
*/
|
|
1345
|
+
addStickyNote(x, y) {
|
|
1346
|
+
if (!this.props.enableStickyNotes) {
|
|
1347
|
+
return null;
|
|
1348
|
+
}
|
|
1349
|
+
const note = new GraphStickyNote(this);
|
|
1350
|
+
note.x = x;
|
|
1351
|
+
note.y = y;
|
|
1352
|
+
this._stickyNotes.push(note);
|
|
1353
|
+
this.stateManager.onSelectionChangedObservable.notifyObservers({ selection: note });
|
|
1354
|
+
return note;
|
|
1355
|
+
}
|
|
1356
|
+
/**
|
|
1357
|
+
* Open the find-in-graph search bar, if enabled.
|
|
1358
|
+
*/
|
|
1359
|
+
showSearch() {
|
|
1360
|
+
if (this.props.enableFindInGraph) {
|
|
1361
|
+
this._searchRef.current?.show();
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1231
1364
|
render() {
|
|
1232
|
-
return (_jsxs("div", { ref: this._hostCanvasRef, id: "graph-canvas", className: styles["graph-canvas"], onWheel: (evt) => this.onWheel(evt), onPointerMove: (evt) => this.onMove(evt), onPointerDown: (evt) => this.onDown(evt), onPointerUp: (evt) => this.onUp(evt), children: [_jsxs("div", { id: "graph-container", className: styles["graph-container"], ref: this._rootContainerRef, children: [_jsx("div", { id: "graph-canvas-container", className: styles["graph-canvas-container"], ref: this._graphCanvasRef }), _jsx("div", { id: "frame-container", className: styles["frame-container"], ref: this._frameContainerRef }), _jsx("svg", { id: "graph-svg-container", className: styles["graph-svg-container"], ref: this._svgCanvasRef }), _jsx("div", { id: "selection-container", className: styles["selection-container"], ref: this._selectionContainerRef })] }), _jsx(SearchBoxComponent, { stateManager: this.stateManager })] }));
|
|
1365
|
+
return (_jsxs("div", { ref: this._hostCanvasRef, id: "graph-canvas", className: styles["graph-canvas"], onWheel: (evt) => this.onWheel(evt), onPointerMove: (evt) => this.onMove(evt), onPointerDown: (evt) => this.onDown(evt), onPointerUp: (evt) => this.onUp(evt), children: [_jsxs("div", { id: "graph-container", className: styles["graph-container"], ref: this._rootContainerRef, children: [_jsx("div", { id: "graph-canvas-container", className: styles["graph-canvas-container"], ref: this._graphCanvasRef }), _jsx("div", { id: "frame-container", className: styles["frame-container"], ref: this._frameContainerRef }), _jsx("svg", { id: "graph-svg-container", className: styles["graph-svg-container"], ref: this._svgCanvasRef }), _jsx("div", { id: "selection-container", className: styles["selection-container"], ref: this._selectionContainerRef })] }), _jsx(SearchBoxComponent, { stateManager: this.stateManager }), this.props.enableMinimap && _jsx(GraphMinimapComponent, { canvas: this }), this.props.enableFindInGraph && _jsx(GraphSearchComponent, { ref: this._searchRef, canvas: this })] }));
|
|
1233
1366
|
}
|
|
1234
1367
|
}
|
|
1235
1368
|
GraphCanvasComponent.NodeWidth = 100;
|