babylonjs-gui-editor 7.52.0 → 7.52.2
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" {
|
|
@@ -3065,6 +3076,7 @@ interface ITextLineComponentProps {
|
|
|
3065
3076
|
icon?: string;
|
|
3066
3077
|
iconLabel?: string;
|
|
3067
3078
|
tooltip?: string;
|
|
3079
|
+
onCopy?: true | (() => string);
|
|
3068
3080
|
}
|
|
3069
3081
|
export class TextLineComponent extends React.Component<ITextLineComponentProps> {
|
|
3070
3082
|
constructor(props: ITextLineComponentProps);
|
|
@@ -6109,6 +6121,16 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
6109
6121
|
* @param target document or shadow root to copy styles to
|
|
6110
6122
|
*/
|
|
6111
6123
|
export function CopyStyles(source: Document, target: DocumentOrShadowRoot): void;
|
|
6124
|
+
/**
|
|
6125
|
+
* Merges classNames by array of strings or conditions
|
|
6126
|
+
* @param classNames Array of className strings or truthy conditions
|
|
6127
|
+
* @returns A concatenated string, suitable for the className attribute
|
|
6128
|
+
*/
|
|
6129
|
+
export function MergeClassNames(classNames: ClassNameCondition[]): string;
|
|
6130
|
+
/**
|
|
6131
|
+
* className (replicating React type) or a tuple with the second member being any truthy value ["className", true]
|
|
6132
|
+
*/
|
|
6133
|
+
type ClassNameCondition = string | undefined | [string, any];
|
|
6112
6134
|
|
|
6113
6135
|
|
|
6114
6136
|
|
|
@@ -7768,6 +7790,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
7768
7790
|
icon?: string;
|
|
7769
7791
|
iconLabel?: string;
|
|
7770
7792
|
tooltip?: string;
|
|
7793
|
+
onCopy?: true | (() => string);
|
|
7771
7794
|
}
|
|
7772
7795
|
export class TextLineComponent extends React.Component<ITextLineComponentProps> {
|
|
7773
7796
|
constructor(props: ITextLineComponentProps);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-gui-editor",
|
|
3
|
-
"version": "7.52.
|
|
3
|
+
"version": "7.52.2",
|
|
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.2",
|
|
18
|
+
"babylonjs-gui": "^7.52.2"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@dev/build-tools": "1.0.0",
|