babylonjs-gui-editor 7.34.2 → 7.34.4

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.
@@ -34,8 +34,6 @@ export class WorkbenchEditor extends React.Component<IGraphEditorProps, IGraphEd
34
34
  buildColumnLayout(): string;
35
35
  handlePopUp: () => void;
36
36
  handleClosingPopUp: () => void;
37
- createPopupWindow: (title: string, windowVariableName: string, width?: number, height?: number) => Window | null;
38
- copyStyles: (sourceDoc: HTMLDocument, targetDoc: HTMLDocument) => void;
39
37
  switchExpandedState(): void;
40
38
 
41
39
  onCreate(value: string): Control;
@@ -175,6 +173,8 @@ export interface IGUIEditorOptions {
175
173
  */
176
174
  export class GUIEditor {
177
175
  private static _CurrentState;
176
+ /** @internal */
177
+ static _PopupWindow: Window | null;
178
178
  /**
179
179
  * Show the gui editor
180
180
  * @param options defines the options to use to configure the gui editor
@@ -1499,6 +1499,15 @@ export class GuiListComponent extends React.Component<IGuiListComponentProps, {
1499
1499
  }
1500
1500
  export {};
1501
1501
 
1502
+ }
1503
+ declare module "babylonjs-gui-editor/styleHelper" {
1504
+ /**
1505
+ * Copy all styles from a document to another document or shadow root
1506
+ * @param source document to copy styles from
1507
+ * @param target document or shadow root to copy styles to
1508
+ */
1509
+ export function CopyStyles(source: Document, target: Document): void;
1510
+
1502
1511
  }
1503
1512
  declare module "babylonjs-gui-editor/stringTools" {
1504
1513
  export class StringTools {
@@ -1523,6 +1532,21 @@ export class PropertyChangedEvent {
1523
1532
  allowNullValue?: boolean;
1524
1533
  }
1525
1534
 
1535
+ }
1536
+ declare module "babylonjs-gui-editor/popupHelper" {
1537
+ /**
1538
+ * Create a popup window
1539
+ * @param title default title for the popup
1540
+ * @param options options for the popup
1541
+ * @returns the parent control of the popup
1542
+ */
1543
+ export function CreatePopup(title: string, options: Partial<{
1544
+ onParentControlCreateCallback?: (parentControl: HTMLDivElement) => void;
1545
+ onWindowCreateCallback?: (newWindow: Window) => void;
1546
+ width?: number;
1547
+ height?: number;
1548
+ }>): HTMLDivElement | null;
1549
+
1526
1550
  }
1527
1551
  declare module "babylonjs-gui-editor/historyStack" {
1528
1552
  import { IDisposable } from "babylonjs/scene";
@@ -1895,6 +1919,157 @@ export class CheckboxPropertyGridComponent extends React.Component<ICheckboxProp
1895
1919
  }
1896
1920
  export {};
1897
1921
 
1922
+ }
1923
+ declare module "babylonjs-gui-editor/split/splitter" {
1924
+ /// <reference types="react" />
1925
+ import { ControlledSize } from "babylonjs-gui-editor/split/splitContext";
1926
+ /**
1927
+ * Splitter component properties
1928
+ */
1929
+ export interface ISplitterProps {
1930
+ /**
1931
+ * Unique identifier
1932
+ */
1933
+ id?: string;
1934
+ /**
1935
+ * Splitter size
1936
+ */
1937
+ size: number;
1938
+ /**
1939
+ * Minimum size for the controlled element
1940
+ */
1941
+ minSize?: number;
1942
+ /**
1943
+ * Maximum size for the controlled element
1944
+ */
1945
+ maxSize?: number;
1946
+ /**
1947
+ * Initial size for the controlled element
1948
+ */
1949
+ initialSize?: number;
1950
+ /**
1951
+ * Defines the controlled side
1952
+ */
1953
+ controlledSide: ControlledSize;
1954
+ /**
1955
+ * refObject to the splitter element
1956
+ */
1957
+ refObject?: React.RefObject<HTMLDivElement>;
1958
+ }
1959
+ /**
1960
+ * Creates a splitter component
1961
+ * @param props defines the splitter properties
1962
+ * @returns the splitter component
1963
+ */
1964
+ export const Splitter: React.FC<ISplitterProps>;
1965
+
1966
+ }
1967
+ declare module "babylonjs-gui-editor/split/splitContext" {
1968
+ /// <reference types="react" />
1969
+ export enum ControlledSize {
1970
+ First = 0,
1971
+ Second = 1
1972
+ }
1973
+ export enum SplitDirection {
1974
+ Horizontal = 0,
1975
+ Vertical = 1
1976
+ }
1977
+ /**
1978
+ * Context used to share data with splitters
1979
+ */
1980
+ export interface ISplitContext {
1981
+ /**
1982
+ * Split direction
1983
+ */
1984
+ direction: SplitDirection;
1985
+ /**
1986
+ * Function called by splitters to update the offset
1987
+ * @param offset new offet
1988
+ * @param source source element
1989
+ * @param controlledSide defined controlled element
1990
+ */
1991
+ drag: (offset: number, source: HTMLElement, controlledSide: ControlledSize) => void;
1992
+ /**
1993
+ * Function called by splitters to begin dragging
1994
+ */
1995
+ beginDrag: () => void;
1996
+ /**
1997
+ * Function called by splitters to end dragging
1998
+ */
1999
+ endDrag: () => void;
2000
+ /**
2001
+ * Sync sizes for the elements
2002
+ * @param source source element
2003
+ * @param controlledSide defined controlled element
2004
+ * @param size size of the controlled element
2005
+ * @param minSize minimum size for the controlled element
2006
+ * @param maxSize maximum size for the controlled element
2007
+ */
2008
+ sync: (source: HTMLElement, controlledSide: ControlledSize, size?: number, minSize?: number, maxSize?: number) => void;
2009
+ }
2010
+ export const SplitContext: import("react").Context<ISplitContext>;
2011
+
2012
+ }
2013
+ declare module "babylonjs-gui-editor/split/splitContainer" {
2014
+ /// <reference types="react" />
2015
+ import { SplitDirection } from "babylonjs-gui-editor/split/splitContext";
2016
+ /**
2017
+ * Split container properties
2018
+ */
2019
+ export interface ISplitContainerProps {
2020
+ /**
2021
+ * Unique identifier
2022
+ */
2023
+ id?: string;
2024
+ /**
2025
+ * Split direction
2026
+ */
2027
+ direction: SplitDirection;
2028
+ /**
2029
+ * Minimum size for the floating elements
2030
+ */
2031
+ floatingMinSize?: number;
2032
+ /**
2033
+ * RefObject to the root div element
2034
+ */
2035
+ containerRef?: React.RefObject<HTMLDivElement>;
2036
+ /**
2037
+ * Optional class name
2038
+ */
2039
+ className?: string;
2040
+ /**
2041
+ * Pointer down
2042
+ * @param event pointer events
2043
+ */
2044
+ onPointerDown?: (event: React.PointerEvent) => void;
2045
+ /**
2046
+ * Pointer move
2047
+ * @param event pointer events
2048
+ */
2049
+ onPointerMove?: (event: React.PointerEvent) => void;
2050
+ /**
2051
+ * Pointer up
2052
+ * @param event pointer events
2053
+ */
2054
+ onPointerUp?: (event: React.PointerEvent) => void;
2055
+ /**
2056
+ * Drop
2057
+ * @param event drag events
2058
+ */
2059
+ onDrop?: (event: React.DragEvent<HTMLDivElement>) => void;
2060
+ /**
2061
+ * Drag over
2062
+ * @param event drag events
2063
+ */
2064
+ onDragOver?: (event: React.DragEvent<HTMLDivElement>) => void;
2065
+ }
2066
+ /**
2067
+ * Creates a split container component
2068
+ * @param props defines the split container properties
2069
+ * @returns the split container component
2070
+ */
2071
+ export const SplitContainer: React.FC<ISplitContainerProps>;
2072
+
1898
2073
  }
1899
2074
  declare module "babylonjs-gui-editor/nodeGraphSystem/typeLedger" {
1900
2075
  import { INodeContainer } from "babylonjs-gui-editor/nodeGraphSystem/interfaces/nodeContainer";
@@ -2998,13 +3173,6 @@ export class RadioButtonLineComponent extends React.Component<IRadioButtonLineCo
2998
3173
  }
2999
3174
  export {};
3000
3175
 
3001
- }
3002
- declare module "babylonjs-gui-editor/lines/popup" {
3003
- export class Popup {
3004
- static CreatePopup(title: string, windowVariableName: string, width?: number, height?: number): HTMLDivElement | null;
3005
- private static _CopyStyles;
3006
- }
3007
-
3008
3176
  }
3009
3177
  declare module "babylonjs-gui-editor/lines/optionsLineComponent" {
3010
3178
  import * as React from "react";
@@ -4759,8 +4927,6 @@ declare module BABYLON {
4759
4927
  buildColumnLayout(): string;
4760
4928
  handlePopUp: () => void;
4761
4929
  handleClosingPopUp: () => void;
4762
- createPopupWindow: (title: string, windowVariableName: string, width?: number, height?: number) => Window | null;
4763
- copyStyles: (sourceDoc: HTMLDocument, targetDoc: HTMLDocument) => void;
4764
4930
  switchExpandedState(): void;
4765
4931
  render(): import("react/jsx-runtime").JSX.Element;
4766
4932
  onCreate(value: string): BABYLON.GUI.Control;
@@ -4867,6 +5033,8 @@ declare module BABYLON {
4867
5033
  */
4868
5034
  export class GUIEditor {
4869
5035
  private static _CurrentState;
5036
+ /** @internal */
5037
+ static _PopupWindow: Window | null;
4870
5038
  /**
4871
5039
  * Show the gui editor
4872
5040
  * @param options defines the options to use to configure the gui editor
@@ -5905,6 +6073,21 @@ declare module BABYLON {
5905
6073
 
5906
6074
 
5907
6075
 
6076
+ }
6077
+ declare module BABYLON.GuiEditor.SharedUIComponents {
6078
+ /**
6079
+ * Copy all styles from a document to another document or shadow root
6080
+ * @param source document to copy styles from
6081
+ * @param target document or shadow root to copy styles to
6082
+ */
6083
+ export function CopyStyles(source: Document, target: Document): void;
6084
+
6085
+
6086
+
6087
+ }
6088
+ declare module BABYLON {
6089
+
6090
+
5908
6091
  }
5909
6092
  declare module BABYLON.GuiEditor.SharedUIComponents {
5910
6093
  export class StringTools {
@@ -5937,6 +6120,27 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
5937
6120
 
5938
6121
 
5939
6122
 
6123
+ }
6124
+ declare module BABYLON {
6125
+
6126
+
6127
+ }
6128
+ declare module BABYLON.GuiEditor.SharedUIComponents {
6129
+ /**
6130
+ * Create a popup window
6131
+ * @param title default title for the popup
6132
+ * @param options options for the popup
6133
+ * @returns the parent control of the popup
6134
+ */
6135
+ export function CreatePopup(title: string, options: Partial<{
6136
+ onParentControlCreateCallback?: (parentControl: HTMLDivElement) => void;
6137
+ onWindowCreateCallback?: (newWindow: Window) => void;
6138
+ width?: number;
6139
+ height?: number;
6140
+ }>): HTMLDivElement | null;
6141
+
6142
+
6143
+
5940
6144
  }
5941
6145
  declare module BABYLON {
5942
6146
 
@@ -6326,6 +6530,173 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6326
6530
 
6327
6531
 
6328
6532
 
6533
+ }
6534
+ declare module BABYLON {
6535
+
6536
+
6537
+ }
6538
+ declare module BABYLON.GuiEditor.SharedUIComponents {
6539
+ /// <reference types="react" />
6540
+ /**
6541
+ * Splitter component properties
6542
+ */
6543
+ export interface ISplitterProps {
6544
+ /**
6545
+ * Unique identifier
6546
+ */
6547
+ id?: string;
6548
+ /**
6549
+ * Splitter size
6550
+ */
6551
+ size: number;
6552
+ /**
6553
+ * Minimum size for the controlled element
6554
+ */
6555
+ minSize?: number;
6556
+ /**
6557
+ * Maximum size for the controlled element
6558
+ */
6559
+ maxSize?: number;
6560
+ /**
6561
+ * Initial size for the controlled element
6562
+ */
6563
+ initialSize?: number;
6564
+ /**
6565
+ * Defines the controlled side
6566
+ */
6567
+ controlledSide: BABYLON.GuiEditor.SharedUIComponents.ControlledSize;
6568
+ /**
6569
+ * refObject to the splitter element
6570
+ */
6571
+ refObject?: React.RefObject<HTMLDivElement>;
6572
+ }
6573
+ /**
6574
+ * Creates a splitter component
6575
+ * @param props defines the splitter properties
6576
+ * @returns the splitter component
6577
+ */
6578
+ export var Splitter: React.FC<ISplitterProps>;
6579
+
6580
+
6581
+
6582
+ }
6583
+ declare module BABYLON {
6584
+
6585
+
6586
+ }
6587
+ declare module BABYLON.GuiEditor.SharedUIComponents {
6588
+ /// <reference types="react" />
6589
+ export enum ControlledSize {
6590
+ First = 0,
6591
+ Second = 1
6592
+ }
6593
+ export enum SplitDirection {
6594
+ Horizontal = 0,
6595
+ Vertical = 1
6596
+ }
6597
+ /**
6598
+ * Context used to share data with splitters
6599
+ */
6600
+ export interface ISplitContext {
6601
+ /**
6602
+ * Split direction
6603
+ */
6604
+ direction: SplitDirection;
6605
+ /**
6606
+ * Function called by splitters to update the offset
6607
+ * @param offset new offet
6608
+ * @param source source element
6609
+ * @param controlledSide defined controlled element
6610
+ */
6611
+ drag: (offset: number, source: HTMLElement, controlledSide: ControlledSize) => void;
6612
+ /**
6613
+ * Function called by splitters to begin dragging
6614
+ */
6615
+ beginDrag: () => void;
6616
+ /**
6617
+ * Function called by splitters to end dragging
6618
+ */
6619
+ endDrag: () => void;
6620
+ /**
6621
+ * Sync sizes for the elements
6622
+ * @param source source element
6623
+ * @param controlledSide defined controlled element
6624
+ * @param size size of the controlled element
6625
+ * @param minSize minimum size for the controlled element
6626
+ * @param maxSize maximum size for the controlled element
6627
+ */
6628
+ sync: (source: HTMLElement, controlledSide: ControlledSize, size?: number, minSize?: number, maxSize?: number) => void;
6629
+ }
6630
+ export var SplitContext: import("react").Context<ISplitContext>;
6631
+
6632
+
6633
+
6634
+ }
6635
+ declare module BABYLON {
6636
+
6637
+
6638
+ }
6639
+ declare module BABYLON.GuiEditor.SharedUIComponents {
6640
+ /// <reference types="react" />
6641
+ /**
6642
+ * Split container properties
6643
+ */
6644
+ export interface ISplitContainerProps {
6645
+ /**
6646
+ * Unique identifier
6647
+ */
6648
+ id?: string;
6649
+ /**
6650
+ * Split direction
6651
+ */
6652
+ direction: BABYLON.GuiEditor.SharedUIComponents.SplitDirection;
6653
+ /**
6654
+ * Minimum size for the floating elements
6655
+ */
6656
+ floatingMinSize?: number;
6657
+ /**
6658
+ * RefObject to the root div element
6659
+ */
6660
+ containerRef?: React.RefObject<HTMLDivElement>;
6661
+ /**
6662
+ * Optional class name
6663
+ */
6664
+ className?: string;
6665
+ /**
6666
+ * Pointer down
6667
+ * @param event pointer events
6668
+ */
6669
+ onPointerDown?: (event: React.PointerEvent) => void;
6670
+ /**
6671
+ * Pointer move
6672
+ * @param event pointer events
6673
+ */
6674
+ onPointerMove?: (event: React.PointerEvent) => void;
6675
+ /**
6676
+ * Pointer up
6677
+ * @param event pointer events
6678
+ */
6679
+ onPointerUp?: (event: React.PointerEvent) => void;
6680
+ /**
6681
+ * Drop
6682
+ * @param event drag events
6683
+ */
6684
+ onDrop?: (event: React.DragEvent<HTMLDivElement>) => void;
6685
+ /**
6686
+ * Drag over
6687
+ * @param event drag events
6688
+ */
6689
+ onDragOver?: (event: React.DragEvent<HTMLDivElement>) => void;
6690
+ }
6691
+ /**
6692
+ * Creates a split container component
6693
+ * @param props defines the split container properties
6694
+ * @returns the split container component
6695
+ */
6696
+ export var SplitContainer: React.FC<ISplitContainerProps>;
6697
+
6698
+
6699
+
6329
6700
  }
6330
6701
  declare module BABYLON {
6331
6702
 
@@ -7488,19 +7859,6 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
7488
7859
 
7489
7860
 
7490
7861
 
7491
- }
7492
- declare module BABYLON {
7493
-
7494
-
7495
- }
7496
- declare module BABYLON.GuiEditor.SharedUIComponents {
7497
- export class Popup {
7498
- static CreatePopup(title: string, windowVariableName: string, width?: number, height?: number): HTMLDivElement | null;
7499
- private static _CopyStyles;
7500
- }
7501
-
7502
-
7503
-
7504
7862
  }
7505
7863
  declare module BABYLON {
7506
7864
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-gui-editor",
3
- "version": "7.34.2",
3
+ "version": "7.34.4",
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*.* -g"
15
15
  },
16
16
  "dependencies": {
17
- "babylonjs": "^7.34.2",
18
- "babylonjs-gui": "^7.34.2"
17
+ "babylonjs": "^7.34.4",
18
+ "babylonjs-gui": "^7.34.4"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@dev/build-tools": "1.0.0",