babylonjs-gui-editor 7.52.1 → 7.52.3
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.
|
@@ -1506,6 +1506,17 @@ declare module "babylonjs-gui-editor/styleHelper" {
|
|
|
1506
1506
|
* @param target document or shadow root to copy styles to
|
|
1507
1507
|
*/
|
|
1508
1508
|
export function CopyStyles(source: Document, target: DocumentOrShadowRoot): void;
|
|
1509
|
+
/**
|
|
1510
|
+
* Merges classNames by array of strings or conditions
|
|
1511
|
+
* @param classNames Array of className strings or truthy conditions
|
|
1512
|
+
* @returns A concatenated string, suitable for the className attribute
|
|
1513
|
+
*/
|
|
1514
|
+
export function MergeClassNames(classNames: ClassNameCondition[]): string;
|
|
1515
|
+
/**
|
|
1516
|
+
* className (replicating React type) or a tuple with the second member being any truthy value ["className", true]
|
|
1517
|
+
*/
|
|
1518
|
+
type ClassNameCondition = string | undefined | [string, any];
|
|
1519
|
+
export {};
|
|
1509
1520
|
|
|
1510
1521
|
}
|
|
1511
1522
|
declare module "babylonjs-gui-editor/stringTools" {
|
|
@@ -2366,6 +2377,7 @@ export class GraphNode {
|
|
|
2366
2377
|
private _onDown;
|
|
2367
2378
|
cleanAccumulation(useCeil?: boolean): void;
|
|
2368
2379
|
private _onUp;
|
|
2380
|
+
private _attach;
|
|
2369
2381
|
private _onMove;
|
|
2370
2382
|
renderProperties(): Nullable<JSX.Element>;
|
|
2371
2383
|
_forceRebuild(source: any, propertyName: string, notifiers?: IEditablePropertyOption["notifiers"]): void;
|
|
@@ -3065,6 +3077,7 @@ interface ITextLineComponentProps {
|
|
|
3065
3077
|
icon?: string;
|
|
3066
3078
|
iconLabel?: string;
|
|
3067
3079
|
tooltip?: string;
|
|
3080
|
+
onCopy?: true | (() => string);
|
|
3068
3081
|
}
|
|
3069
3082
|
export class TextLineComponent extends React.Component<ITextLineComponentProps> {
|
|
3070
3083
|
constructor(props: ITextLineComponentProps);
|
|
@@ -3767,7 +3780,7 @@ export interface ICheckBoxLineComponentProps {
|
|
|
3767
3780
|
label?: string;
|
|
3768
3781
|
target?: any;
|
|
3769
3782
|
propertyName?: string;
|
|
3770
|
-
isSelected?: () => boolean;
|
|
3783
|
+
isSelected?: boolean | (() => boolean);
|
|
3771
3784
|
onSelect?: (value: boolean) => void;
|
|
3772
3785
|
onValueChanged?: () => void;
|
|
3773
3786
|
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
@@ -6109,6 +6122,16 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
6109
6122
|
* @param target document or shadow root to copy styles to
|
|
6110
6123
|
*/
|
|
6111
6124
|
export function CopyStyles(source: Document, target: DocumentOrShadowRoot): void;
|
|
6125
|
+
/**
|
|
6126
|
+
* Merges classNames by array of strings or conditions
|
|
6127
|
+
* @param classNames Array of className strings or truthy conditions
|
|
6128
|
+
* @returns A concatenated string, suitable for the className attribute
|
|
6129
|
+
*/
|
|
6130
|
+
export function MergeClassNames(classNames: ClassNameCondition[]): string;
|
|
6131
|
+
/**
|
|
6132
|
+
* className (replicating React type) or a tuple with the second member being any truthy value ["className", true]
|
|
6133
|
+
*/
|
|
6134
|
+
type ClassNameCondition = string | undefined | [string, any];
|
|
6112
6135
|
|
|
6113
6136
|
|
|
6114
6137
|
|
|
@@ -7025,6 +7048,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
7025
7048
|
private _onDown;
|
|
7026
7049
|
cleanAccumulation(useCeil?: boolean): void;
|
|
7027
7050
|
private _onUp;
|
|
7051
|
+
private _attach;
|
|
7028
7052
|
private _onMove;
|
|
7029
7053
|
renderProperties(): Nullable<JSX.Element>;
|
|
7030
7054
|
_forceRebuild(source: any, propertyName: string, notifiers?: IEditablePropertyOption["notifiers"]): void;
|
|
@@ -7768,6 +7792,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
7768
7792
|
icon?: string;
|
|
7769
7793
|
iconLabel?: string;
|
|
7770
7794
|
tooltip?: string;
|
|
7795
|
+
onCopy?: true | (() => string);
|
|
7771
7796
|
}
|
|
7772
7797
|
export class TextLineComponent extends React.Component<ITextLineComponentProps> {
|
|
7773
7798
|
constructor(props: ITextLineComponentProps);
|
|
@@ -8547,7 +8572,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
8547
8572
|
label?: string;
|
|
8548
8573
|
target?: any;
|
|
8549
8574
|
propertyName?: string;
|
|
8550
|
-
isSelected?: () => boolean;
|
|
8575
|
+
isSelected?: boolean | (() => boolean);
|
|
8551
8576
|
onSelect?: (value: boolean) => void;
|
|
8552
8577
|
onValueChanged?: () => void;
|
|
8553
8578
|
onPropertyChangedObservable?: Observable<BABYLON.GuiEditor.SharedUIComponents.PropertyChangedEvent>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-gui-editor",
|
|
3
|
-
"version": "7.52.
|
|
3
|
+
"version": "7.52.3",
|
|
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.52.
|
|
18
|
-
"babylonjs-gui": "^7.52.
|
|
17
|
+
"babylonjs": "^7.52.3",
|
|
18
|
+
"babylonjs-gui": "^7.52.3"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@dev/build-tools": "1.0.0",
|