babylonjs-node-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.
package/babylon.nodeEditor.d.ts
CHANGED
|
@@ -961,6 +961,16 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
961
961
|
* @param target document or shadow root to copy styles to
|
|
962
962
|
*/
|
|
963
963
|
export function CopyStyles(source: Document, target: DocumentOrShadowRoot): void;
|
|
964
|
+
/**
|
|
965
|
+
* Merges classNames by array of strings or conditions
|
|
966
|
+
* @param classNames Array of className strings or truthy conditions
|
|
967
|
+
* @returns A concatenated string, suitable for the className attribute
|
|
968
|
+
*/
|
|
969
|
+
export function MergeClassNames(classNames: ClassNameCondition[]): string;
|
|
970
|
+
/**
|
|
971
|
+
* className (replicating React type) or a tuple with the second member being any truthy value ["className", true]
|
|
972
|
+
*/
|
|
973
|
+
type ClassNameCondition = string | undefined | [string, any];
|
|
964
974
|
|
|
965
975
|
|
|
966
976
|
|
|
@@ -2620,6 +2630,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2620
2630
|
icon?: string;
|
|
2621
2631
|
iconLabel?: string;
|
|
2622
2632
|
tooltip?: string;
|
|
2633
|
+
onCopy?: true | (() => string);
|
|
2623
2634
|
}
|
|
2624
2635
|
export class TextLineComponent extends React.Component<ITextLineComponentProps> {
|
|
2625
2636
|
constructor(props: ITextLineComponentProps);
|