@babylonjs/node-editor 6.39.0 → 6.40.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.
@@ -1706,6 +1706,8 @@ export interface IDraggableIconProps {
|
|
1706
1706
|
}
|
1707
1707
|
/**
|
1708
1708
|
* An icon that can be dragged by the user
|
1709
|
+
* @param props properties
|
1710
|
+
* @returns draggable icon element
|
1709
1711
|
*/
|
1710
1712
|
export const DraggableIcon: FC<IDraggableIconProps>;
|
1711
1713
|
|
@@ -1747,6 +1749,8 @@ export interface IFlexibleDragHandlerProps {
|
|
1747
1749
|
}
|
1748
1750
|
/**
|
1749
1751
|
* This component receives the drop events and updates the layout accordingly
|
1752
|
+
* @param props properties
|
1753
|
+
* @returns DragHandler element
|
1750
1754
|
*/
|
1751
1755
|
export const FlexibleDragHandler: FC<IFlexibleDragHandlerProps>;
|
1752
1756
|
|
@@ -1769,6 +1773,8 @@ export interface IFlexibleDropZoneProps {
|
|
1769
1773
|
/**
|
1770
1774
|
* This component contains the drag and drop zone for the resize bars that
|
1771
1775
|
* allow redefining width and height of layout elements
|
1776
|
+
* @param props properties
|
1777
|
+
* @returns drop zone element
|
1772
1778
|
*/
|
1773
1779
|
export const FlexibleDropZone: FC<IFlexibleDropZoneProps>;
|
1774
1780
|
|
@@ -1782,6 +1788,7 @@ export interface IFlexibleGridContainerProps {
|
|
1782
1788
|
}
|
1783
1789
|
/**
|
1784
1790
|
* Component responsible for mapping the layout to the actual components
|
1791
|
+
* @returns GridContainer element
|
1785
1792
|
*/
|
1786
1793
|
export const FlexibleGridContainer: FC<IFlexibleGridContainerProps>;
|
1787
1794
|
|
@@ -1801,6 +1808,8 @@ export interface IFlexibleGridLayoutProps {
|
|
1801
1808
|
/**
|
1802
1809
|
* This component represents a grid layout that can be resized and rearranged
|
1803
1810
|
* by the user.
|
1811
|
+
* @param props properties
|
1812
|
+
* @returns layout element
|
1804
1813
|
*/
|
1805
1814
|
export const FlexibleGridLayout: FC<IFlexibleGridLayoutProps>;
|
1806
1815
|
|
@@ -1844,6 +1853,8 @@ export type ResizeItem = {
|
|
1844
1853
|
};
|
1845
1854
|
/**
|
1846
1855
|
* A component that renders a bar that the user can drag to resize.
|
1856
|
+
* @param props properties
|
1857
|
+
* @returns resize bar element
|
1847
1858
|
*/
|
1848
1859
|
export const FlexibleResizeBar: FC<IFlexibleRowResizerProps>;
|
1849
1860
|
|
@@ -1881,6 +1892,8 @@ export interface IFlexibleTabProps {
|
|
1881
1892
|
* to activate or drag to reorder. It also listens for
|
1882
1893
|
* drop events if the user wants to drop another tab
|
1883
1894
|
* after it.
|
1895
|
+
* @param props properties
|
1896
|
+
* @returns FlexibleTab element
|
1884
1897
|
*/
|
1885
1898
|
export const FlexibleTab: FC<IFlexibleTabProps>;
|
1886
1899
|
|
@@ -1912,6 +1925,8 @@ export interface IFlexibleTabsContainerProps {
|
|
1912
1925
|
/**
|
1913
1926
|
* This component contains a set of tabs of which only one is visible at a time.
|
1914
1927
|
* The tabs can also be dragged from and to different containers.
|
1928
|
+
* @param props properties
|
1929
|
+
* @returns tabs container element
|
1915
1930
|
*/
|
1916
1931
|
export const FlexibleTabsContainer: FC<IFlexibleTabsContainerProps>;
|
1917
1932
|
|
@@ -2035,11 +2050,15 @@ export const getPosInLayout: (layout: Layout, column: number, row?: number) => L
|
|
2035
2050
|
export const removeLayoutRowAndRedistributePercentages: (layout: Layout, column: number, row: number) => void;
|
2036
2051
|
/**
|
2037
2052
|
* Add a percentage string to a number
|
2053
|
+
* @param p1 the percentage string
|
2054
|
+
* @param p2 the number
|
2055
|
+
* @returns the sum of the percentage string and the number
|
2038
2056
|
*/
|
2039
2057
|
export const addPercentageStringToNumber: (p1: string, p2: number) => number;
|
2040
2058
|
/**
|
2041
2059
|
* Parses a percentage string into a number
|
2042
2060
|
* @param p the percentage string
|
2061
|
+
* @returns the parsed number
|
2043
2062
|
*/
|
2044
2063
|
export const parsePercentage: (p: string) => number;
|
2045
2064
|
|
@@ -2251,6 +2270,7 @@ export interface IGraphConnectorHandlerProps {
|
|
2251
2270
|
/**
|
2252
2271
|
* This component is used to initiate a connection between two nodes. Simply
|
2253
2272
|
* drag the handle in a node and drop it in another node to create a connection.
|
2273
|
+
* @returns connector element
|
2254
2274
|
*/
|
2255
2275
|
export const GraphConnectorHandler: FC<IGraphConnectorHandlerProps>;
|
2256
2276
|
|
@@ -2320,6 +2340,8 @@ export const MarkerArrowId = "arrow";
|
|
2320
2340
|
/**
|
2321
2341
|
* This component draws a SVG line between two points, with an optional marker
|
2322
2342
|
* indicating direction
|
2343
|
+
* @param props properties
|
2344
|
+
* @returns graph line element
|
2323
2345
|
*/
|
2324
2346
|
export const GraphLine: FC<IGraphLineProps>;
|
2325
2347
|
|
@@ -2367,6 +2389,8 @@ export interface IGraphContainerProps {
|
|
2367
2389
|
}
|
2368
2390
|
/**
|
2369
2391
|
* This component contains all the nodes and handles their dragging
|
2392
|
+
* @param props properties
|
2393
|
+
* @returns graph node container element
|
2370
2394
|
*/
|
2371
2395
|
export const GraphNodesContainer: FC<IGraphContainerProps>;
|
2372
2396
|
|
@@ -2462,6 +2486,8 @@ export interface ITextInputProps {
|
|
2462
2486
|
}
|
2463
2487
|
/**
|
2464
2488
|
* This component represents a text input that can be submitted or cancelled on buttons
|
2489
|
+
* @param props properties
|
2490
|
+
* @returns TextInputWithSubmit element
|
2465
2491
|
*/
|
2466
2492
|
export const TextInputWithSubmit: (props: ITextInputProps) => JSX.Element;
|
2467
2493
|
|
@@ -2744,6 +2770,7 @@ interface IFloatLineComponentProps {
|
|
2744
2770
|
unit?: React.ReactNode;
|
2745
2771
|
onDragStart?: (newValue: number) => void;
|
2746
2772
|
onDragStop?: (newValue: number) => void;
|
2773
|
+
disabled?: boolean;
|
2747
2774
|
}
|
2748
2775
|
export class FloatLineComponent extends React.Component<IFloatLineComponentProps, {
|
2749
2776
|
value: string;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babylonjs/node-editor",
|
3
|
-
"version": "6.
|
3
|
+
"version": "6.40.0",
|
4
4
|
"main": "dist/babylon.nodeEditor.max.js",
|
5
5
|
"module": "dist/babylon.nodeEditor.max.js",
|
6
6
|
"esnext": "dist/babylon.nodeEditor.max.js",
|
@@ -23,7 +23,7 @@
|
|
23
23
|
"@types/react-dom": ">=16.0.9"
|
24
24
|
},
|
25
25
|
"devDependencies": {
|
26
|
-
"@babylonjs/core": "^6.
|
26
|
+
"@babylonjs/core": "^6.40.0",
|
27
27
|
"react": "^17.0.2",
|
28
28
|
"react-dom": "^17.0.2"
|
29
29
|
},
|