@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.
Files changed (353) hide show
  1. package/colorPicker/colorComponentEntry.d.ts +1 -1
  2. package/colorPicker/colorComponentEntry.js.map +1 -1
  3. package/colorPicker/colorPicker.d.ts +1 -1
  4. package/colorPicker/colorPicker.js.map +1 -1
  5. package/colorPicker/hexColor.d.ts +1 -1
  6. package/colorPicker/hexColor.js.map +1 -1
  7. package/components/Button.d.ts +1 -1
  8. package/components/Button.js.map +1 -1
  9. package/components/Label.d.ts +1 -1
  10. package/components/Label.js.map +1 -1
  11. package/components/bars/CommandBarComponent.d.ts +1 -1
  12. package/components/bars/CommandBarComponent.js.map +1 -1
  13. package/components/bars/CommandButton.module.scss +2 -0
  14. package/components/colorPicker/ColorComponentEntry.d.ts +1 -1
  15. package/components/colorPicker/ColorComponentEntry.js.map +1 -1
  16. package/components/colorPicker/ColorPicker.d.ts +1 -1
  17. package/components/colorPicker/ColorPicker.js.map +1 -1
  18. package/components/colorPicker/HexColor.d.ts +1 -1
  19. package/components/colorPicker/HexColor.js.map +1 -1
  20. package/components/layout/DraggableIcon.d.ts +2 -2
  21. package/components/layout/DraggableIcon.js.map +1 -1
  22. package/components/layout/FlexibleColumn.d.ts +1 -1
  23. package/components/layout/FlexibleColumn.js.map +1 -1
  24. package/components/layout/FlexibleDragHandler.d.ts +1 -1
  25. package/components/layout/FlexibleDragHandler.js.map +1 -1
  26. package/components/layout/FlexibleDropZone.d.ts +1 -1
  27. package/components/layout/FlexibleDropZone.js.map +1 -1
  28. package/components/layout/FlexibleGridContainer.d.ts +1 -1
  29. package/components/layout/FlexibleGridContainer.js.map +1 -1
  30. package/components/layout/FlexibleGridLayout.d.ts +2 -2
  31. package/components/layout/FlexibleGridLayout.js.map +1 -1
  32. package/components/layout/FlexibleResizeBar.d.ts +1 -1
  33. package/components/layout/FlexibleResizeBar.js.map +1 -1
  34. package/components/layout/FlexibleTab.d.ts +2 -2
  35. package/components/layout/FlexibleTab.js.map +1 -1
  36. package/components/layout/FlexibleTabsContainer.d.ts +2 -2
  37. package/components/layout/FlexibleTabsContainer.js.map +1 -1
  38. package/components/layout/LayoutContext.d.ts +1 -1
  39. package/components/layout/LayoutContext.js.map +1 -1
  40. package/components/layout/types.d.ts +1 -1
  41. package/components/layout/types.js.map +1 -1
  42. package/components/layout/utils.d.ts +1 -1
  43. package/components/layout/utils.js.map +1 -1
  44. package/components/lines/ColorPickerLineComponent.d.ts +2 -2
  45. package/components/lines/ColorPickerLineComponent.js.map +1 -1
  46. package/components/lines/NumericInputComponent.d.ts +1 -1
  47. package/components/lines/NumericInputComponent.js.map +1 -1
  48. package/components/lines/OptionsLineComponent.js.map +1 -1
  49. package/components/propertyTabComponentBase.d.ts +1 -1
  50. package/components/propertyTabComponentBase.js.map +1 -1
  51. package/components/reactGraphSystem/GraphConnectorHandle.d.ts +1 -1
  52. package/components/reactGraphSystem/GraphConnectorHandle.js.map +1 -1
  53. package/components/reactGraphSystem/GraphContainer.d.ts +1 -1
  54. package/components/reactGraphSystem/GraphContainer.js.map +1 -1
  55. package/components/reactGraphSystem/GraphLine.d.ts +1 -1
  56. package/components/reactGraphSystem/GraphLine.js.map +1 -1
  57. package/components/reactGraphSystem/GraphLinesContainer.d.ts +1 -1
  58. package/components/reactGraphSystem/GraphLinesContainer.js.map +1 -1
  59. package/components/reactGraphSystem/GraphNode.d.ts +1 -1
  60. package/components/reactGraphSystem/GraphNode.js.map +1 -1
  61. package/components/reactGraphSystem/GraphNodesContainer.d.ts +1 -1
  62. package/components/reactGraphSystem/GraphNodesContainer.js.map +1 -1
  63. package/components/reactGraphSystem/NodeRenderer.d.ts +2 -2
  64. package/components/reactGraphSystem/NodeRenderer.js.map +1 -1
  65. package/constToOptionsMaps.js.map +1 -1
  66. package/copyCommandToClipboard.js.map +1 -1
  67. package/fluent/hoc/buttonLine.d.ts +2 -2
  68. package/fluent/hoc/buttonLine.js.map +1 -1
  69. package/fluent/hoc/childWindow.d.ts +1 -1
  70. package/fluent/hoc/childWindow.js +1 -3
  71. package/fluent/hoc/childWindow.js.map +1 -1
  72. package/fluent/hoc/fileUploadLine.d.ts +2 -2
  73. package/fluent/hoc/fileUploadLine.js.map +1 -1
  74. package/fluent/hoc/fluentToolWrapper.d.ts +2 -2
  75. package/fluent/hoc/fluentToolWrapper.js.map +1 -1
  76. package/fluent/hoc/gradientList.d.ts +2 -2
  77. package/fluent/hoc/gradientList.js.map +1 -1
  78. package/fluent/hoc/pane.d.ts +2 -2
  79. package/fluent/hoc/pane.js.map +1 -1
  80. package/fluent/hoc/propertyLines/booleanBadgePropertyLine.d.ts +3 -3
  81. package/fluent/hoc/propertyLines/booleanBadgePropertyLine.js.map +1 -1
  82. package/fluent/hoc/propertyLines/checkboxPropertyLine.d.ts +3 -3
  83. package/fluent/hoc/propertyLines/checkboxPropertyLine.js.map +1 -1
  84. package/fluent/hoc/propertyLines/colorPropertyLine.d.ts +4 -5
  85. package/fluent/hoc/propertyLines/colorPropertyLine.js.map +1 -1
  86. package/fluent/hoc/propertyLines/comboBoxPropertyLine.d.ts +3 -3
  87. package/fluent/hoc/propertyLines/comboBoxPropertyLine.js.map +1 -1
  88. package/fluent/hoc/propertyLines/dropdownPropertyLine.d.ts +3 -3
  89. package/fluent/hoc/propertyLines/dropdownPropertyLine.js.map +1 -1
  90. package/fluent/hoc/propertyLines/entitySelectorPropertyLine.d.ts +12 -12
  91. package/fluent/hoc/propertyLines/entitySelectorPropertyLine.js.map +1 -1
  92. package/fluent/hoc/propertyLines/hexPropertyLine.d.ts +2 -2
  93. package/fluent/hoc/propertyLines/hexPropertyLine.js.map +1 -1
  94. package/fluent/hoc/propertyLines/inputPropertyLine.d.ts +4 -4
  95. package/fluent/hoc/propertyLines/inputPropertyLine.js.map +1 -1
  96. package/fluent/hoc/propertyLines/linkPropertyLine.d.ts +3 -3
  97. package/fluent/hoc/propertyLines/linkPropertyLine.js.map +1 -1
  98. package/fluent/hoc/propertyLines/propertyLine.d.ts +3 -3
  99. package/fluent/hoc/propertyLines/propertyLine.js +2 -4
  100. package/fluent/hoc/propertyLines/propertyLine.js.map +1 -1
  101. package/fluent/hoc/propertyLines/spinButtonPropertyLine.d.ts +3 -3
  102. package/fluent/hoc/propertyLines/spinButtonPropertyLine.js.map +1 -1
  103. package/fluent/hoc/propertyLines/stringifiedPropertyLine.d.ts +3 -3
  104. package/fluent/hoc/propertyLines/stringifiedPropertyLine.js.map +1 -1
  105. package/fluent/hoc/propertyLines/switchPropertyLine.d.ts +3 -3
  106. package/fluent/hoc/propertyLines/switchPropertyLine.js.map +1 -1
  107. package/fluent/hoc/propertyLines/syncedSliderPropertyLine.d.ts +2 -2
  108. package/fluent/hoc/propertyLines/syncedSliderPropertyLine.js.map +1 -1
  109. package/fluent/hoc/propertyLines/textAreaPropertyLine.d.ts +3 -3
  110. package/fluent/hoc/propertyLines/textAreaPropertyLine.js.map +1 -1
  111. package/fluent/hoc/propertyLines/textPropertyLine.d.ts +3 -3
  112. package/fluent/hoc/propertyLines/textPropertyLine.js.map +1 -1
  113. package/fluent/hoc/propertyLines/vectorPropertyLine.d.ts +4 -5
  114. package/fluent/hoc/propertyLines/vectorPropertyLine.js +2 -2
  115. package/fluent/hoc/propertyLines/vectorPropertyLine.js.map +1 -1
  116. package/fluent/hoc/textureUpload.d.ts +3 -3
  117. package/fluent/hoc/textureUpload.js.map +1 -1
  118. package/fluent/hooks/keyboardHooks.d.ts +1 -1
  119. package/fluent/hooks/keyboardHooks.js +1 -1
  120. package/fluent/hooks/keyboardHooks.js.map +1 -1
  121. package/fluent/primitives/accordion.contexts.d.ts +2 -2
  122. package/fluent/primitives/accordion.contexts.js.map +1 -1
  123. package/fluent/primitives/accordion.d.ts +1 -1
  124. package/fluent/primitives/accordion.js +1 -1
  125. package/fluent/primitives/accordion.js.map +1 -1
  126. package/fluent/primitives/button.d.ts +3 -3
  127. package/fluent/primitives/button.js.map +1 -1
  128. package/fluent/primitives/checkbox.d.ts +2 -2
  129. package/fluent/primitives/checkbox.js.map +1 -1
  130. package/fluent/primitives/clusteredLightContainerSelector.d.ts +5 -5
  131. package/fluent/primitives/clusteredLightContainerSelector.js.map +1 -1
  132. package/fluent/primitives/collapse.d.ts +1 -1
  133. package/fluent/primitives/collapse.js.map +1 -1
  134. package/fluent/primitives/colorPicker.d.ts +2 -2
  135. package/fluent/primitives/colorPicker.js +1 -1
  136. package/fluent/primitives/colorPicker.js.map +1 -1
  137. package/fluent/primitives/comboBox.d.ts +1 -1
  138. package/fluent/primitives/comboBox.js.map +1 -1
  139. package/fluent/primitives/contextMenu.d.ts +4 -4
  140. package/fluent/primitives/contextMenu.js +2 -2
  141. package/fluent/primitives/contextMenu.js.map +1 -1
  142. package/fluent/primitives/dropdown.d.ts +2 -2
  143. package/fluent/primitives/dropdown.js.map +1 -1
  144. package/fluent/primitives/entitySelector.d.ts +2 -2
  145. package/fluent/primitives/entitySelector.js +2 -6
  146. package/fluent/primitives/entitySelector.js.map +1 -1
  147. package/fluent/primitives/gradient.d.ts +2 -2
  148. package/fluent/primitives/gradient.js.map +1 -1
  149. package/fluent/primitives/infoLabel.d.ts +1 -1
  150. package/fluent/primitives/infoLabel.js.map +1 -1
  151. package/fluent/primitives/lazyComponent.d.ts +2 -2
  152. package/fluent/primitives/lazyComponent.js.map +1 -1
  153. package/fluent/primitives/link.d.ts +1 -1
  154. package/fluent/primitives/link.js.map +1 -1
  155. package/fluent/primitives/list.d.ts +1 -1
  156. package/fluent/primitives/list.js +1 -1
  157. package/fluent/primitives/list.js.map +1 -1
  158. package/fluent/primitives/materialSelector.d.ts +6 -6
  159. package/fluent/primitives/materialSelector.js.map +1 -1
  160. package/fluent/primitives/messageBar.d.ts +1 -1
  161. package/fluent/primitives/messageBar.js.map +1 -1
  162. package/fluent/primitives/nodeSelector.d.ts +6 -6
  163. package/fluent/primitives/nodeSelector.js.map +1 -1
  164. package/fluent/primitives/popover.d.ts +3 -3
  165. package/fluent/primitives/popover.js +1 -1
  166. package/fluent/primitives/popover.js.map +1 -1
  167. package/fluent/primitives/positionedPopover.d.ts +1 -1
  168. package/fluent/primitives/positionedPopover.js.map +1 -1
  169. package/fluent/primitives/primitive.d.ts +1 -1
  170. package/fluent/primitives/primitive.js.map +1 -1
  171. package/fluent/primitives/searchBar.js.map +1 -1
  172. package/fluent/primitives/searchBox.d.ts +1 -1
  173. package/fluent/primitives/searchBox.js.map +1 -1
  174. package/fluent/primitives/skeletonSelector.d.ts +6 -6
  175. package/fluent/primitives/skeletonSelector.js.map +1 -1
  176. package/fluent/primitives/slider.d.ts +2 -2
  177. package/fluent/primitives/slider.js.map +1 -1
  178. package/fluent/primitives/spinButton.d.ts +1 -1
  179. package/fluent/primitives/spinButton.js +5 -2
  180. package/fluent/primitives/spinButton.js.map +1 -1
  181. package/fluent/primitives/switch.d.ts +2 -2
  182. package/fluent/primitives/switch.js.map +1 -1
  183. package/fluent/primitives/syncedSlider.d.ts +2 -2
  184. package/fluent/primitives/syncedSlider.js +1 -1
  185. package/fluent/primitives/syncedSlider.js.map +1 -1
  186. package/fluent/primitives/textInput.d.ts +2 -2
  187. package/fluent/primitives/textInput.js.map +1 -1
  188. package/fluent/primitives/textarea.d.ts +2 -2
  189. package/fluent/primitives/textarea.js.map +1 -1
  190. package/fluent/primitives/textureSelector.d.ts +6 -6
  191. package/fluent/primitives/textureSelector.js +2 -2
  192. package/fluent/primitives/textureSelector.js.map +1 -1
  193. package/fluent/primitives/toast.d.ts +34 -3
  194. package/fluent/primitives/toast.js +9 -4
  195. package/fluent/primitives/toast.js.map +1 -1
  196. package/fluent/primitives/toggleButton.d.ts +3 -3
  197. package/fluent/primitives/toggleButton.js.map +1 -1
  198. package/fluent/primitives/tooltip.d.ts +2 -2
  199. package/fluent/primitives/tooltip.js.map +1 -1
  200. package/fluent/primitives/uploadButton.d.ts +2 -2
  201. package/fluent/primitives/uploadButton.js.map +1 -1
  202. package/fluent/primitives/utils.d.ts +2 -2
  203. package/fluent/primitives/utils.js.map +1 -1
  204. package/historyStack.d.ts +9 -1
  205. package/historyStack.js +15 -0
  206. package/historyStack.js.map +1 -1
  207. package/lines/booleanLineComponent.js +2 -2
  208. package/lines/checkBoxLineComponent.d.ts +3 -3
  209. package/lines/checkBoxLineComponent.js.map +1 -1
  210. package/lines/color3LineComponent.d.ts +3 -3
  211. package/lines/color3LineComponent.js.map +1 -1
  212. package/lines/color4LineComponent.d.ts +3 -3
  213. package/lines/color4LineComponent.js.map +1 -1
  214. package/lines/colorLineComponent.d.ts +3 -3
  215. package/lines/colorLineComponent.js.map +1 -1
  216. package/lines/colorPickerComponent.d.ts +2 -2
  217. package/lines/colorPickerComponent.js.map +1 -1
  218. package/lines/draggableLineComponent.d.ts +1 -1
  219. package/lines/draggableLineComponent.js.map +1 -1
  220. package/lines/fileButtonLineComponent.js +1 -1
  221. package/lines/floatLineComponent.d.ts +3 -3
  222. package/lines/floatLineComponent.js.map +1 -1
  223. package/lines/hexLineComponent.d.ts +3 -3
  224. package/lines/hexLineComponent.js.map +1 -1
  225. package/lines/lineContainerComponent.d.ts +1 -1
  226. package/lines/lineContainerComponent.js.map +1 -1
  227. package/lines/lineWithFileButtonComponent.js +1 -1
  228. package/lines/lineWithFileButtonComponent.js.map +1 -1
  229. package/lines/linkButtonComponent.d.ts +1 -1
  230. package/lines/linkButtonComponent.js.map +1 -1
  231. package/lines/matrixLineComponent.d.ts +4 -5
  232. package/lines/matrixLineComponent.js.map +1 -1
  233. package/lines/messageLineComponent.d.ts +1 -1
  234. package/lines/messageLineComponent.js.map +1 -1
  235. package/lines/numericInputComponent.d.ts +1 -1
  236. package/lines/numericInputComponent.js.map +1 -1
  237. package/lines/optionsLineComponent.d.ts +3 -3
  238. package/lines/optionsLineComponent.js.map +1 -1
  239. package/lines/radioLineComponent.d.ts +1 -1
  240. package/lines/radioLineComponent.js.map +1 -1
  241. package/lines/sliderLineComponent.d.ts +3 -3
  242. package/lines/sliderLineComponent.js.map +1 -1
  243. package/lines/targetsProxy.d.ts +2 -2
  244. package/lines/targetsProxy.js.map +1 -1
  245. package/lines/textInputLineComponent.d.ts +4 -5
  246. package/lines/textInputLineComponent.js.map +1 -1
  247. package/lines/textureButtonLineComponent.d.ts +2 -2
  248. package/lines/textureButtonLineComponent.js.map +1 -1
  249. package/lines/vector2LineComponent.d.ts +3 -3
  250. package/lines/vector2LineComponent.js.map +1 -1
  251. package/lines/vector3LineComponent.d.ts +3 -3
  252. package/lines/vector3LineComponent.js.map +1 -1
  253. package/lines/vector4LineComponent.d.ts +3 -3
  254. package/lines/vector4LineComponent.js.map +1 -1
  255. package/nodeGraphSystem/automaticProperties.d.ts +2 -2
  256. package/nodeGraphSystem/automaticProperties.js.map +1 -1
  257. package/nodeGraphSystem/common.module.scss +3 -0
  258. package/nodeGraphSystem/frameNodePort.d.ts +6 -6
  259. package/nodeGraphSystem/frameNodePort.js.map +1 -1
  260. package/nodeGraphSystem/graphCanvas.d.ts +43 -6
  261. package/nodeGraphSystem/graphCanvas.js +139 -6
  262. package/nodeGraphSystem/graphCanvas.js.map +1 -1
  263. package/nodeGraphSystem/graphFrame.d.ts +4 -4
  264. package/nodeGraphSystem/graphFrame.js.map +1 -1
  265. package/nodeGraphSystem/graphMinimap.d.ts +79 -0
  266. package/nodeGraphSystem/graphMinimap.js +319 -0
  267. package/nodeGraphSystem/graphMinimap.js.map +1 -0
  268. package/nodeGraphSystem/graphMinimap.module.scss +30 -0
  269. package/nodeGraphSystem/graphNode.d.ts +24 -8
  270. package/nodeGraphSystem/graphNode.js +76 -1
  271. package/nodeGraphSystem/graphNode.js.map +1 -1
  272. package/nodeGraphSystem/graphNode.module.scss +61 -0
  273. package/nodeGraphSystem/graphSearch.d.ts +54 -0
  274. package/nodeGraphSystem/graphSearch.js +181 -0
  275. package/nodeGraphSystem/graphSearch.js.map +1 -0
  276. package/nodeGraphSystem/graphSearch.module.scss +86 -0
  277. package/nodeGraphSystem/graphStickyNote.d.ts +94 -0
  278. package/nodeGraphSystem/graphStickyNote.js +310 -0
  279. package/nodeGraphSystem/graphStickyNote.js.map +1 -0
  280. package/nodeGraphSystem/graphStickyNote.module.scss +87 -0
  281. package/nodeGraphSystem/interfaces/displayManager.d.ts +4 -4
  282. package/nodeGraphSystem/interfaces/displayManager.js.map +1 -1
  283. package/nodeGraphSystem/interfaces/nodeContainer.d.ts +2 -2
  284. package/nodeGraphSystem/interfaces/nodeContainer.js.map +1 -1
  285. package/nodeGraphSystem/interfaces/nodeData.d.ts +4 -2
  286. package/nodeGraphSystem/interfaces/nodeData.js.map +1 -1
  287. package/nodeGraphSystem/interfaces/nodeLocationInfo.d.ts +10 -0
  288. package/nodeGraphSystem/interfaces/nodeLocationInfo.js.map +1 -1
  289. package/nodeGraphSystem/interfaces/portData.d.ts +4 -3
  290. package/nodeGraphSystem/interfaces/portData.js +1 -0
  291. package/nodeGraphSystem/interfaces/portData.js.map +1 -1
  292. package/nodeGraphSystem/interfaces/propertyComponentProps.d.ts +2 -2
  293. package/nodeGraphSystem/interfaces/propertyComponentProps.js.map +1 -1
  294. package/nodeGraphSystem/interfaces/selectionChangedOptions.d.ts +8 -7
  295. package/nodeGraphSystem/interfaces/selectionChangedOptions.js.map +1 -1
  296. package/nodeGraphSystem/nodeLink.d.ts +16 -4
  297. package/nodeGraphSystem/nodeLink.js +77 -0
  298. package/nodeGraphSystem/nodeLink.js.map +1 -1
  299. package/nodeGraphSystem/nodePort.d.ts +8 -8
  300. package/nodeGraphSystem/nodePort.js +26 -1
  301. package/nodeGraphSystem/nodePort.js.map +1 -1
  302. package/nodeGraphSystem/nodePort.module.scss +37 -0
  303. package/nodeGraphSystem/propertyLedger.d.ts +2 -2
  304. package/nodeGraphSystem/propertyLedger.js.map +1 -1
  305. package/nodeGraphSystem/searchBox.d.ts +1 -1
  306. package/nodeGraphSystem/searchBox.js.map +1 -1
  307. package/nodeGraphSystem/stateManager.d.ts +18 -12
  308. package/nodeGraphSystem/stateManager.js +6 -0
  309. package/nodeGraphSystem/stateManager.js.map +1 -1
  310. package/nodeGraphSystem/tools.d.ts +4 -4
  311. package/nodeGraphSystem/tools.js.map +1 -1
  312. package/nodeGraphSystem/typeLedger.d.ts +4 -4
  313. package/nodeGraphSystem/typeLedger.js.map +1 -1
  314. package/nodeGraphSystem/types/framePortData.d.ts +2 -2
  315. package/nodeGraphSystem/types/framePortData.js.map +1 -1
  316. package/package.json +3 -4
  317. package/split/splitContainer.d.ts +1 -1
  318. package/split/splitContainer.js +3 -2
  319. package/split/splitContainer.js.map +1 -1
  320. package/split/splitter.d.ts +1 -1
  321. package/split/splitter.js.map +1 -1
  322. package/tabs/propertyGrids/gui/checkboxPropertyGridComponent.d.ts +4 -4
  323. package/tabs/propertyGrids/gui/checkboxPropertyGridComponent.js.map +1 -1
  324. package/tabs/propertyGrids/gui/colorPickerPropertyGridComponent.d.ts +4 -4
  325. package/tabs/propertyGrids/gui/colorPickerPropertyGridComponent.js.map +1 -1
  326. package/tabs/propertyGrids/gui/commonControlPropertyGridComponent.d.ts +3 -3
  327. package/tabs/propertyGrids/gui/commonControlPropertyGridComponent.js.map +1 -1
  328. package/tabs/propertyGrids/gui/controlPropertyGridComponent.d.ts +4 -4
  329. package/tabs/propertyGrids/gui/controlPropertyGridComponent.js.map +1 -1
  330. package/tabs/propertyGrids/gui/ellipsePropertyGridComponent.d.ts +4 -4
  331. package/tabs/propertyGrids/gui/ellipsePropertyGridComponent.js.map +1 -1
  332. package/tabs/propertyGrids/gui/gridPropertyGridComponent.d.ts +4 -4
  333. package/tabs/propertyGrids/gui/gridPropertyGridComponent.js.map +1 -1
  334. package/tabs/propertyGrids/gui/imageBasedSliderPropertyGridComponent.d.ts +4 -4
  335. package/tabs/propertyGrids/gui/imageBasedSliderPropertyGridComponent.js.map +1 -1
  336. package/tabs/propertyGrids/gui/imagePropertyGridComponent.d.ts +3 -3
  337. package/tabs/propertyGrids/gui/imagePropertyGridComponent.js.map +1 -1
  338. package/tabs/propertyGrids/gui/inputTextPropertyGridComponent.d.ts +4 -4
  339. package/tabs/propertyGrids/gui/inputTextPropertyGridComponent.js.map +1 -1
  340. package/tabs/propertyGrids/gui/linePropertyGridComponent.d.ts +4 -4
  341. package/tabs/propertyGrids/gui/linePropertyGridComponent.js.map +1 -1
  342. package/tabs/propertyGrids/gui/radioButtonPropertyGridComponent.d.ts +4 -4
  343. package/tabs/propertyGrids/gui/radioButtonPropertyGridComponent.js.map +1 -1
  344. package/tabs/propertyGrids/gui/rectanglePropertyGridComponent.d.ts +4 -4
  345. package/tabs/propertyGrids/gui/rectanglePropertyGridComponent.js.map +1 -1
  346. package/tabs/propertyGrids/gui/scrollViewerPropertyGridComponent.d.ts +4 -4
  347. package/tabs/propertyGrids/gui/scrollViewerPropertyGridComponent.js.map +1 -1
  348. package/tabs/propertyGrids/gui/sliderPropertyGridComponent.d.ts +4 -4
  349. package/tabs/propertyGrids/gui/sliderPropertyGridComponent.js.map +1 -1
  350. package/tabs/propertyGrids/gui/stackPanelPropertyGridComponent.d.ts +4 -4
  351. package/tabs/propertyGrids/gui/stackPanelPropertyGridComponent.js.map +1 -1
  352. package/tabs/propertyGrids/gui/textBlockPropertyGridComponent.d.ts +4 -4
  353. 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.props.stateManager.hostDocument.addEventListener("keyup", () => this.onKeyUp(), false);
231
- this.props.stateManager.hostDocument.addEventListener("keydown", (evt) => {
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
- }, false);
236
- this.props.stateManager.hostDocument.defaultView.addEventListener("blur", () => {
282
+ };
283
+ this._blurHandler = () => {
237
284
  this._altKeyIsPressed = false;
238
285
  this._shiftKeyIsPressed = false;
239
286
  this._multiKeyIsPressed = false;
240
- }, false);
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;