babylonjs-gui-editor 6.38.1 → 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.
@@ -644,7 +644,8 @@ export class PropertyTabComponent extends React.Component<IPropertyTabComponentP
644
644
  renderNode(nodes: Control[]): JSX.Element;
645
645
  /**
646
646
  * returns the class name of a list of controls if they share a class, or an empty string if not
647
- * @param nodes
647
+ * @param nodes the list of controls to check
648
+ * @returns the class name of a list of controls if they share a class, or an empty string if not
648
649
  */
649
650
  getControlsCommonClassName(nodes: Control[]): string;
650
651
  renderProperties(nodes: Control[]): JSX.Element | undefined;
@@ -1010,6 +1011,9 @@ interface IGizmoLineProps {
1010
1011
  }
1011
1012
  /**
1012
1013
  * This class represents the gizmo drawn on a line Control.
1014
+ * It is used to scale and rotate the control around a pivot point
1015
+ * @param props the properties of the gizmo
1016
+ * @returns a gizmo line
1013
1017
  */
1014
1018
  export function GizmoLine(props: IGizmoLineProps): JSX.Element;
1015
1019
  export {};
@@ -1799,6 +1803,8 @@ export interface IDraggableIconProps {
1799
1803
  }
1800
1804
  /**
1801
1805
  * An icon that can be dragged by the user
1806
+ * @param props properties
1807
+ * @returns draggable icon element
1802
1808
  */
1803
1809
  export const DraggableIcon: FC<IDraggableIconProps>;
1804
1810
 
@@ -1840,6 +1846,8 @@ export interface IFlexibleDragHandlerProps {
1840
1846
  }
1841
1847
  /**
1842
1848
  * This component receives the drop events and updates the layout accordingly
1849
+ * @param props properties
1850
+ * @returns DragHandler element
1843
1851
  */
1844
1852
  export const FlexibleDragHandler: FC<IFlexibleDragHandlerProps>;
1845
1853
 
@@ -1862,6 +1870,8 @@ export interface IFlexibleDropZoneProps {
1862
1870
  /**
1863
1871
  * This component contains the drag and drop zone for the resize bars that
1864
1872
  * allow redefining width and height of layout elements
1873
+ * @param props properties
1874
+ * @returns drop zone element
1865
1875
  */
1866
1876
  export const FlexibleDropZone: FC<IFlexibleDropZoneProps>;
1867
1877
 
@@ -1875,6 +1885,7 @@ export interface IFlexibleGridContainerProps {
1875
1885
  }
1876
1886
  /**
1877
1887
  * Component responsible for mapping the layout to the actual components
1888
+ * @returns GridContainer element
1878
1889
  */
1879
1890
  export const FlexibleGridContainer: FC<IFlexibleGridContainerProps>;
1880
1891
 
@@ -1894,6 +1905,8 @@ export interface IFlexibleGridLayoutProps {
1894
1905
  /**
1895
1906
  * This component represents a grid layout that can be resized and rearranged
1896
1907
  * by the user.
1908
+ * @param props properties
1909
+ * @returns layout element
1897
1910
  */
1898
1911
  export const FlexibleGridLayout: FC<IFlexibleGridLayoutProps>;
1899
1912
 
@@ -1937,6 +1950,8 @@ export type ResizeItem = {
1937
1950
  };
1938
1951
  /**
1939
1952
  * A component that renders a bar that the user can drag to resize.
1953
+ * @param props properties
1954
+ * @returns resize bar element
1940
1955
  */
1941
1956
  export const FlexibleResizeBar: FC<IFlexibleRowResizerProps>;
1942
1957
 
@@ -1974,6 +1989,8 @@ export interface IFlexibleTabProps {
1974
1989
  * to activate or drag to reorder. It also listens for
1975
1990
  * drop events if the user wants to drop another tab
1976
1991
  * after it.
1992
+ * @param props properties
1993
+ * @returns FlexibleTab element
1977
1994
  */
1978
1995
  export const FlexibleTab: FC<IFlexibleTabProps>;
1979
1996
 
@@ -2005,6 +2022,8 @@ export interface IFlexibleTabsContainerProps {
2005
2022
  /**
2006
2023
  * This component contains a set of tabs of which only one is visible at a time.
2007
2024
  * The tabs can also be dragged from and to different containers.
2025
+ * @param props properties
2026
+ * @returns tabs container element
2008
2027
  */
2009
2028
  export const FlexibleTabsContainer: FC<IFlexibleTabsContainerProps>;
2010
2029
 
@@ -2128,11 +2147,15 @@ export const getPosInLayout: (layout: Layout, column: number, row?: number) => L
2128
2147
  export const removeLayoutRowAndRedistributePercentages: (layout: Layout, column: number, row: number) => void;
2129
2148
  /**
2130
2149
  * Add a percentage string to a number
2150
+ * @param p1 the percentage string
2151
+ * @param p2 the number
2152
+ * @returns the sum of the percentage string and the number
2131
2153
  */
2132
2154
  export const addPercentageStringToNumber: (p1: string, p2: number) => number;
2133
2155
  /**
2134
2156
  * Parses a percentage string into a number
2135
2157
  * @param p the percentage string
2158
+ * @returns the parsed number
2136
2159
  */
2137
2160
  export const parsePercentage: (p: string) => number;
2138
2161
 
@@ -2344,6 +2367,7 @@ export interface IGraphConnectorHandlerProps {
2344
2367
  /**
2345
2368
  * This component is used to initiate a connection between two nodes. Simply
2346
2369
  * drag the handle in a node and drop it in another node to create a connection.
2370
+ * @returns connector element
2347
2371
  */
2348
2372
  export const GraphConnectorHandler: FC<IGraphConnectorHandlerProps>;
2349
2373
 
@@ -2413,6 +2437,8 @@ export const MarkerArrowId = "arrow";
2413
2437
  /**
2414
2438
  * This component draws a SVG line between two points, with an optional marker
2415
2439
  * indicating direction
2440
+ * @param props properties
2441
+ * @returns graph line element
2416
2442
  */
2417
2443
  export const GraphLine: FC<IGraphLineProps>;
2418
2444
 
@@ -2460,6 +2486,8 @@ export interface IGraphContainerProps {
2460
2486
  }
2461
2487
  /**
2462
2488
  * This component contains all the nodes and handles their dragging
2489
+ * @param props properties
2490
+ * @returns graph node container element
2463
2491
  */
2464
2492
  export const GraphNodesContainer: FC<IGraphContainerProps>;
2465
2493
 
@@ -2555,6 +2583,8 @@ export interface ITextInputProps {
2555
2583
  }
2556
2584
  /**
2557
2585
  * This component represents a text input that can be submitted or cancelled on buttons
2586
+ * @param props properties
2587
+ * @returns TextInputWithSubmit element
2558
2588
  */
2559
2589
  export const TextInputWithSubmit: (props: ITextInputProps) => JSX.Element;
2560
2590
 
@@ -2837,6 +2867,7 @@ interface IFloatLineComponentProps {
2837
2867
  unit?: React.ReactNode;
2838
2868
  onDragStart?: (newValue: number) => void;
2839
2869
  onDragStop?: (newValue: number) => void;
2870
+ disabled?: boolean;
2840
2871
  }
2841
2872
  export class FloatLineComponent extends React.Component<IFloatLineComponentProps, {
2842
2873
  value: string;
@@ -5149,7 +5180,8 @@ declare module BABYLON {
5149
5180
  renderNode(nodes: BABYLON.GUI.Control[]): JSX.Element;
5150
5181
  /**
5151
5182
  * returns the class name of a list of controls if they share a class, or an empty string if not
5152
- * @param nodes
5183
+ * @param nodes the list of controls to check
5184
+ * @returns the class name of a list of controls if they share a class, or an empty string if not
5153
5185
  */
5154
5186
  getControlsCommonClassName(nodes: BABYLON.GUI.Control[]): string;
5155
5187
  renderProperties(nodes: BABYLON.GUI.Control[]): JSX.Element | undefined;
@@ -5457,6 +5489,9 @@ declare module BABYLON {
5457
5489
  }
5458
5490
  /**
5459
5491
  * This class represents the gizmo drawn on a line Control.
5492
+ * It is used to scale and rotate the control around a pivot point
5493
+ * @param props the properties of the gizmo
5494
+ * @returns a gizmo line
5460
5495
  */
5461
5496
  export function GizmoLine(props: IGizmoLineProps): JSX.Element;
5462
5497
 
@@ -6216,6 +6251,8 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6216
6251
  }
6217
6252
  /**
6218
6253
  * An icon that can be dragged by the user
6254
+ * @param props properties
6255
+ * @returns draggable icon element
6219
6256
  */
6220
6257
  export var DraggableIcon: React.FC<IDraggableIconProps>;
6221
6258
 
@@ -6265,6 +6302,8 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6265
6302
  }
6266
6303
  /**
6267
6304
  * This component receives the drop events and updates the layout accordingly
6305
+ * @param props properties
6306
+ * @returns DragHandler element
6268
6307
  */
6269
6308
  export var FlexibleDragHandler: React.FC<IFlexibleDragHandlerProps>;
6270
6309
 
@@ -6291,6 +6330,8 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6291
6330
  /**
6292
6331
  * This component contains the drag and drop zone for the resize bars that
6293
6332
  * allow redefining width and height of layout elements
6333
+ * @param props properties
6334
+ * @returns drop zone element
6294
6335
  */
6295
6336
  export var FlexibleDropZone: React.FC<IFlexibleDropZoneProps>;
6296
6337
 
@@ -6308,6 +6349,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6308
6349
  }
6309
6350
  /**
6310
6351
  * Component responsible for mapping the layout to the actual components
6352
+ * @returns GridContainer element
6311
6353
  */
6312
6354
  export var FlexibleGridContainer: React.FC<IFlexibleGridContainerProps>;
6313
6355
 
@@ -6330,6 +6372,8 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6330
6372
  /**
6331
6373
  * This component represents a grid layout that can be resized and rearranged
6332
6374
  * by the user.
6375
+ * @param props properties
6376
+ * @returns layout element
6333
6377
  */
6334
6378
  export var FlexibleGridLayout: React.FC<IFlexibleGridLayoutProps>;
6335
6379
 
@@ -6376,6 +6420,8 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6376
6420
  };
6377
6421
  /**
6378
6422
  * A component that renders a bar that the user can drag to resize.
6423
+ * @param props properties
6424
+ * @returns resize bar element
6379
6425
  */
6380
6426
  export var FlexibleResizeBar: React.FC<IFlexibleRowResizerProps>;
6381
6427
 
@@ -6416,6 +6462,8 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6416
6462
  * to activate or drag to reorder. It also listens for
6417
6463
  * drop events if the user wants to drop another tab
6418
6464
  * after it.
6465
+ * @param props properties
6466
+ * @returns FlexibleTab element
6419
6467
  */
6420
6468
  export var FlexibleTab: React.FC<IFlexibleTabProps>;
6421
6469
 
@@ -6450,6 +6498,8 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6450
6498
  /**
6451
6499
  * This component contains a set of tabs of which only one is visible at a time.
6452
6500
  * The tabs can also be dragged from and to different containers.
6501
+ * @param props properties
6502
+ * @returns tabs container element
6453
6503
  */
6454
6504
  export var FlexibleTabsContainer: React.FC<IFlexibleTabsContainerProps>;
6455
6505
 
@@ -6585,11 +6635,15 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6585
6635
  export const removeLayoutRowAndRedistributePercentages: (layout: BABYLON.GuiEditor.SharedUIComponents.Layout, column: number, row: number) => void;
6586
6636
  /**
6587
6637
  * Add a percentage string to a number
6638
+ * @param p1 the percentage string
6639
+ * @param p2 the number
6640
+ * @returns the sum of the percentage string and the number
6588
6641
  */
6589
6642
  export const addPercentageStringToNumber: (p1: string, p2: number) => number;
6590
6643
  /**
6591
6644
  * Parses a percentage string into a number
6592
6645
  * @param p the percentage string
6646
+ * @returns the parsed number
6593
6647
  */
6594
6648
  export const parsePercentage: (p: string) => number;
6595
6649
 
@@ -6820,6 +6874,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6820
6874
  /**
6821
6875
  * This component is used to initiate a connection between two nodes. Simply
6822
6876
  * drag the handle in a node and drop it in another node to create a connection.
6877
+ * @returns connector element
6823
6878
  */
6824
6879
  export var GraphConnectorHandler: React.FC<IGraphConnectorHandlerProps>;
6825
6880
 
@@ -6902,6 +6957,8 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6902
6957
  /**
6903
6958
  * This component draws a SVG line between two points, with an optional marker
6904
6959
  * indicating direction
6960
+ * @param props properties
6961
+ * @returns graph line element
6905
6962
  */
6906
6963
  export var GraphLine: React.FC<IGraphLineProps>;
6907
6964
 
@@ -6961,6 +7018,8 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6961
7018
  }
6962
7019
  /**
6963
7020
  * This component contains all the nodes and handles their dragging
7021
+ * @param props properties
7022
+ * @returns graph node container element
6964
7023
  */
6965
7024
  export var GraphNodesContainer: React.FC<IGraphContainerProps>;
6966
7025
 
@@ -7069,6 +7128,8 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
7069
7128
  }
7070
7129
  /**
7071
7130
  * This component represents a text input that can be submitted or cancelled on buttons
7131
+ * @param props properties
7132
+ * @returns TextInputWithSubmit element
7072
7133
  */
7073
7134
  export const TextInputWithSubmit: (props: ITextInputProps) => JSX.Element;
7074
7135
 
@@ -7378,6 +7439,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
7378
7439
  unit?: React.ReactNode;
7379
7440
  onDragStart?: (newValue: number) => void;
7380
7441
  onDragStop?: (newValue: number) => void;
7442
+ disabled?: boolean;
7381
7443
  }
7382
7444
  export class FloatLineComponent extends React.Component<IFloatLineComponentProps, {
7383
7445
  value: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-gui-editor",
3
- "version": "6.38.1",
3
+ "version": "6.40.0",
4
4
  "main": "babylon.guiEditor.max.js",
5
5
  "types": "babylon.guiEditor.module.d.ts",
6
6
  "files": [
@@ -14,8 +14,8 @@
14
14
  "clean": "rimraf dist && rimraf babylon*.*"
15
15
  },
16
16
  "dependencies": {
17
- "babylonjs": "^6.38.1",
18
- "babylonjs-gui": "^6.38.1"
17
+ "babylonjs": "^6.40.0",
18
+ "babylonjs-gui": "^6.40.0"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@dev/build-tools": "1.0.0",