@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>;
|
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": "dist/babylon.guiEditor.max.js",
|
5
5
|
"module": "dist/babylon.guiEditor.max.js",
|
6
6
|
"esnext": "dist/babylon.guiEditor.max.js",
|
@@ -24,8 +24,8 @@
|
|
24
24
|
"@types/react-dom": ">=16.0.9"
|
25
25
|
},
|
26
26
|
"devDependencies": {
|
27
|
-
"@babylonjs/core": "^7.52.
|
28
|
-
"@babylonjs/gui": "^7.52.
|
27
|
+
"@babylonjs/core": "^7.52.3",
|
28
|
+
"@babylonjs/gui": "^7.52.3",
|
29
29
|
"react": "^17.0.2",
|
30
30
|
"react-dom": "^17.0.2"
|
31
31
|
},
|