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