babylonjs-node-geometry-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.
@@ -1008,6 +1008,17 @@ declare module "babylonjs-node-geometry-editor/styleHelper" {
1008
1008
  * @param target document or shadow root to copy styles to
1009
1009
  */
1010
1010
  export function CopyStyles(source: Document, target: DocumentOrShadowRoot): void;
1011
+ /**
1012
+ * Merges classNames by array of strings or conditions
1013
+ * @param classNames Array of className strings or truthy conditions
1014
+ * @returns A concatenated string, suitable for the className attribute
1015
+ */
1016
+ export function MergeClassNames(classNames: ClassNameCondition[]): string;
1017
+ /**
1018
+ * className (replicating React type) or a tuple with the second member being any truthy value ["className", true]
1019
+ */
1020
+ type ClassNameCondition = string | undefined | [string, any];
1021
+ export {};
1011
1022
 
1012
1023
  }
1013
1024
  declare module "babylonjs-node-geometry-editor/stringTools" {
@@ -1868,6 +1879,7 @@ export class GraphNode {
1868
1879
  private _onDown;
1869
1880
  cleanAccumulation(useCeil?: boolean): void;
1870
1881
  private _onUp;
1882
+ private _attach;
1871
1883
  private _onMove;
1872
1884
  renderProperties(): Nullable<JSX.Element>;
1873
1885
  _forceRebuild(source: any, propertyName: string, notifiers?: IEditablePropertyOption["notifiers"]): void;
@@ -2567,6 +2579,7 @@ interface ITextLineComponentProps {
2567
2579
  icon?: string;
2568
2580
  iconLabel?: string;
2569
2581
  tooltip?: string;
2582
+ onCopy?: true | (() => string);
2570
2583
  }
2571
2584
  export class TextLineComponent extends React.Component<ITextLineComponentProps> {
2572
2585
  constructor(props: ITextLineComponentProps);
@@ -3269,7 +3282,7 @@ export interface ICheckBoxLineComponentProps {
3269
3282
  label?: string;
3270
3283
  target?: any;
3271
3284
  propertyName?: string;
3272
- isSelected?: () => boolean;
3285
+ isSelected?: boolean | (() => boolean);
3273
3286
  onSelect?: (value: boolean) => void;
3274
3287
  onValueChanged?: () => void;
3275
3288
  onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
@@ -5145,6 +5158,16 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
5145
5158
  * @param target document or shadow root to copy styles to
5146
5159
  */
5147
5160
  export function CopyStyles(source: Document, target: DocumentOrShadowRoot): void;
5161
+ /**
5162
+ * Merges classNames by array of strings or conditions
5163
+ * @param classNames Array of className strings or truthy conditions
5164
+ * @returns A concatenated string, suitable for the className attribute
5165
+ */
5166
+ export function MergeClassNames(classNames: ClassNameCondition[]): string;
5167
+ /**
5168
+ * className (replicating React type) or a tuple with the second member being any truthy value ["className", true]
5169
+ */
5170
+ type ClassNameCondition = string | undefined | [string, any];
5148
5171
 
5149
5172
 
5150
5173
 
@@ -6061,6 +6084,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
6061
6084
  private _onDown;
6062
6085
  cleanAccumulation(useCeil?: boolean): void;
6063
6086
  private _onUp;
6087
+ private _attach;
6064
6088
  private _onMove;
6065
6089
  renderProperties(): BABYLON.Nullable<JSX.Element>;
6066
6090
  _forceRebuild(source: any, propertyName: string, notifiers?: BABYLON.IEditablePropertyOption["notifiers"]): void;
@@ -6804,6 +6828,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
6804
6828
  icon?: string;
6805
6829
  iconLabel?: string;
6806
6830
  tooltip?: string;
6831
+ onCopy?: true | (() => string);
6807
6832
  }
6808
6833
  export class TextLineComponent extends React.Component<ITextLineComponentProps> {
6809
6834
  constructor(props: ITextLineComponentProps);
@@ -7583,7 +7608,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
7583
7608
  label?: string;
7584
7609
  target?: any;
7585
7610
  propertyName?: string;
7586
- isSelected?: () => boolean;
7611
+ isSelected?: boolean | (() => boolean);
7587
7612
  onSelect?: (value: boolean) => void;
7588
7613
  onValueChanged?: () => void;
7589
7614
  onPropertyChangedObservable?: BABYLON.Observable<BABYLON.NodeGeometryEditor.SharedUIComponents.PropertyChangedEvent>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-node-geometry-editor",
3
- "version": "7.52.1",
3
+ "version": "7.52.3",
4
4
  "main": "babylon.nodeGeometryEditor.js",
5
5
  "types": "babylon.nodeGeometryEditor.module.d.ts",
6
6
  "files": [
@@ -14,7 +14,7 @@
14
14
  "clean": "rimraf dist && rimraf babylon*.* -g"
15
15
  },
16
16
  "dependencies": {
17
- "babylonjs": "^7.52.1"
17
+ "babylonjs": "^7.52.3"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@dev/build-tools": "1.0.0",