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.
package/babylon.guiEditor.d.ts
CHANGED
|
@@ -1182,6 +1182,16 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1182
1182
|
* @param target document or shadow root to copy styles to
|
|
1183
1183
|
*/
|
|
1184
1184
|
export function CopyStyles(source: Document, target: DocumentOrShadowRoot): void;
|
|
1185
|
+
/**
|
|
1186
|
+
* Merges classNames by array of strings or conditions
|
|
1187
|
+
* @param classNames Array of className strings or truthy conditions
|
|
1188
|
+
* @returns A concatenated string, suitable for the className attribute
|
|
1189
|
+
*/
|
|
1190
|
+
export function MergeClassNames(classNames: ClassNameCondition[]): string;
|
|
1191
|
+
/**
|
|
1192
|
+
* className (replicating React type) or a tuple with the second member being any truthy value ["className", true]
|
|
1193
|
+
*/
|
|
1194
|
+
type ClassNameCondition = string | undefined | [string, any];
|
|
1185
1195
|
|
|
1186
1196
|
|
|
1187
1197
|
|
|
@@ -2098,6 +2108,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
2098
2108
|
private _onDown;
|
|
2099
2109
|
cleanAccumulation(useCeil?: boolean): void;
|
|
2100
2110
|
private _onUp;
|
|
2111
|
+
private _attach;
|
|
2101
2112
|
private _onMove;
|
|
2102
2113
|
renderProperties(): Nullable<JSX.Element>;
|
|
2103
2114
|
_forceRebuild(source: any, propertyName: string, notifiers?: IEditablePropertyOption["notifiers"]): void;
|
|
@@ -2841,6 +2852,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
2841
2852
|
icon?: string;
|
|
2842
2853
|
iconLabel?: string;
|
|
2843
2854
|
tooltip?: string;
|
|
2855
|
+
onCopy?: true | (() => string);
|
|
2844
2856
|
}
|
|
2845
2857
|
export class TextLineComponent extends React.Component<ITextLineComponentProps> {
|
|
2846
2858
|
constructor(props: ITextLineComponentProps);
|
|
@@ -3620,7 +3632,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
3620
3632
|
label?: string;
|
|
3621
3633
|
target?: any;
|
|
3622
3634
|
propertyName?: string;
|
|
3623
|
-
isSelected?: () => boolean;
|
|
3635
|
+
isSelected?: boolean | (() => boolean);
|
|
3624
3636
|
onSelect?: (value: boolean) => void;
|
|
3625
3637
|
onValueChanged?: () => void;
|
|
3626
3638
|
onPropertyChangedObservable?: Observable<BABYLON.GuiEditor.SharedUIComponents.PropertyChangedEvent>;
|