@babylonjs/node-geometry-editor 7.28.0 → 7.30.0

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.
@@ -264,11 +264,12 @@ import { GeometryReplaceColorBlock } from "@babylonjs/core/Meshes/Node/Blocks/ge
264
264
  import { GeometryRotate2dBlock } from "@babylonjs/core/Meshes/Node/Blocks/geometryRotate2dBlock";
265
265
  import { GeometryLengthBlock } from "@babylonjs/core/Meshes/Node/Blocks/geometryLengthBlock";
266
266
  import { GeometryInterceptorBlock } from "@babylonjs/core/Meshes/Node/Blocks/geometryInterceptorBlock";
267
+ import { LatticeBlock } from "@babylonjs/core/Meshes/Node/Blocks/Set/latticeBlock";
267
268
  /**
268
269
  * Static class for BlockTools
269
270
  */
270
271
  export class BlockTools {
271
- static GetBlockFromString(data: string): GeometryInterceptorBlock | GeometryRotate2dBlock | GeometryLengthBlock | GeometryDistanceBlock | GeometryDotBlock | GeometryPosterizeBlock | GeometryReplaceColorBlock | GeometryDesaturateBlock | GeometryCurveBlock | GeometryCrossBlock | GeometryClampBlock | BooleanGeometryBlock | GeometryTextureFetchBlock | GeometryTextureBlock | BoundingBlock | MatrixComposeBlock | GeometryInfoBlock | GeometryCollectionBlock | GeometryOptimizeBlock | NullBlock | TeleportInBlock | TeleportOutBlock | DebugBlock | IntFloatConverterBlock | ConditionBlock | GeometryLerpBlock | GeometryNLerpBlock | GeometrySmoothStepBlock | GeometryStepBlock | MappingBlock | SetMaterialIDBlock | InstantiateOnVolumeBlock | InstantiateOnFacesBlock | InstantiateOnVerticesBlock | InstantiateBlock | MapRangeBlock | NormalizeVectorBlock | MeshBlock | VectorConverterBlock | TranslationBlock | ScalingBlock | AlignBlock | RotationXBlock | RotationYBlock | RotationZBlock | ComputeNormalsBlock | SetPositionsBlock | SetNormalsBlock | SetColorsBlock | SetTangentsBlock | SetUVsBlock | NoiseBlock | RandomBlock | GeometryOutputBlock | GridBlock | DiscBlock | IcoSphereBlock | BoxBlock | TorusBlock | SphereBlock | CylinderBlock | CapsuleBlock | PlaneBlock | GeometryElbowBlock | MergeGeometryBlock | GeometryTransformBlock | GeometryModBlock | GeometryPowBlock | GeometryInputBlock | MathBlock | GeometryTrigonometryBlock | GeometryArcTan2Block | InstantiateLinearBlock | InstantiateRadialBlock | null;
272
+ static GetBlockFromString(data: string): LatticeBlock | GeometryInterceptorBlock | GeometryRotate2dBlock | GeometryLengthBlock | GeometryDistanceBlock | GeometryDotBlock | GeometryPosterizeBlock | GeometryReplaceColorBlock | GeometryDesaturateBlock | GeometryCurveBlock | GeometryCrossBlock | GeometryClampBlock | BooleanGeometryBlock | GeometryTextureFetchBlock | GeometryTextureBlock | BoundingBlock | MatrixComposeBlock | GeometryInfoBlock | GeometryCollectionBlock | GeometryOptimizeBlock | NullBlock | TeleportInBlock | TeleportOutBlock | DebugBlock | IntFloatConverterBlock | ConditionBlock | GeometryLerpBlock | GeometryNLerpBlock | GeometrySmoothStepBlock | GeometryStepBlock | MappingBlock | SetMaterialIDBlock | InstantiateOnVolumeBlock | InstantiateOnFacesBlock | InstantiateOnVerticesBlock | InstantiateBlock | MapRangeBlock | NormalizeVectorBlock | MeshBlock | VectorConverterBlock | TranslationBlock | ScalingBlock | AlignBlock | RotationXBlock | RotationYBlock | RotationZBlock | ComputeNormalsBlock | SetPositionsBlock | SetNormalsBlock | SetColorsBlock | SetTangentsBlock | SetUVsBlock | NoiseBlock | RandomBlock | GeometryOutputBlock | GridBlock | DiscBlock | IcoSphereBlock | BoxBlock | TorusBlock | SphereBlock | CylinderBlock | CapsuleBlock | PlaneBlock | GeometryElbowBlock | MergeGeometryBlock | GeometryTransformBlock | GeometryModBlock | GeometryPowBlock | GeometryInputBlock | MathBlock | GeometryTrigonometryBlock | GeometryArcTan2Block | InstantiateLinearBlock | InstantiateRadialBlock | null;
272
273
  static GetColorFromConnectionNodeType(type: NodeGeometryBlockConnectionPointTypes): string;
273
274
  static GetConnectionNodeTypeFromString(type: string): NodeGeometryBlockConnectionPointTypes.Int | NodeGeometryBlockConnectionPointTypes.Float | NodeGeometryBlockConnectionPointTypes.Vector2 | NodeGeometryBlockConnectionPointTypes.Vector3 | NodeGeometryBlockConnectionPointTypes.Vector4 | NodeGeometryBlockConnectionPointTypes.Matrix | NodeGeometryBlockConnectionPointTypes.AutoDetect;
274
275
  static GetStringFromConnectionNodeType(type: NodeGeometryBlockConnectionPointTypes): "" | "Int" | "Float" | "Vector2" | "Vector3" | "Vector4" | "Matrix";
@@ -311,92 +312,6 @@ export class Popup {
311
312
  static _CopyStyles(sourceDoc: HTMLDocument, targetDoc: HTMLDocument): void;
312
313
  }
313
314
 
314
- }
315
- declare module "@babylonjs/node-geometry-editor/sharedComponents/lineWithFileButtonComponent" {
316
- import * as React from "react";
317
- interface ILineWithFileButtonComponentProps {
318
- title: string;
319
- closed?: boolean;
320
- label: string;
321
- iconImage: any;
322
- onIconClick: (file: File) => void;
323
- accept: string;
324
- uploadName?: string;
325
- }
326
- export class LineWithFileButtonComponent extends React.Component<ILineWithFileButtonComponentProps, {
327
- isExpanded: boolean;
328
- }> {
329
- private _uploadRef;
330
- constructor(props: ILineWithFileButtonComponentProps);
331
- onChange(evt: any): void;
332
- switchExpandedState(): void;
333
-
334
- }
335
- export {};
336
-
337
- }
338
- declare module "@babylonjs/node-geometry-editor/sharedComponents/lineContainerComponent" {
339
- import * as React from "react";
340
- interface ILineContainerComponentProps {
341
- title: string;
342
- children: any[] | any;
343
- closed?: boolean;
344
- }
345
- export class LineContainerComponent extends React.Component<ILineContainerComponentProps, {
346
- isExpanded: boolean;
347
- }> {
348
- constructor(props: ILineContainerComponentProps);
349
- switchExpandedState(): void;
350
-
351
-
352
- }
353
- export {};
354
-
355
- }
356
- declare module "@babylonjs/node-geometry-editor/sharedComponents/fileButtonLineComponent" {
357
- import * as React from "react";
358
- interface IFileButtonLineComponentProps {
359
- label: string;
360
- onClick: (file: File) => void;
361
- accept: string;
362
- uploadName?: string;
363
- }
364
- export class FileButtonLineComponent extends React.Component<IFileButtonLineComponentProps> {
365
- private _uploadRef;
366
- constructor(props: IFileButtonLineComponentProps);
367
- onChange(evt: any): void;
368
-
369
- }
370
- export {};
371
-
372
- }
373
- declare module "@babylonjs/node-geometry-editor/sharedComponents/draggableLineWithButtonComponent" {
374
- import * as React from "react";
375
- export interface IDraggableLineWithButtonComponent {
376
- data: string;
377
- tooltip: string;
378
- iconImage: any;
379
- onIconClick: (value: string) => void;
380
- iconTitle: string;
381
- lenSuffixToRemove?: number;
382
- }
383
- export class DraggableLineWithButtonComponent extends React.Component<IDraggableLineWithButtonComponent> {
384
- constructor(props: IDraggableLineWithButtonComponent);
385
-
386
- }
387
-
388
- }
389
- declare module "@babylonjs/node-geometry-editor/sharedComponents/draggableLineComponent" {
390
- import * as React from "react";
391
- export interface IButtonLineComponentProps {
392
- data: string;
393
- tooltip: string;
394
- }
395
- export class DraggableLineComponent extends React.Component<IButtonLineComponentProps> {
396
- constructor(props: IButtonLineComponentProps);
397
-
398
- }
399
-
400
315
  }
401
316
  declare module "@babylonjs/node-geometry-editor/sharedComponents/checkBoxLineComponent" {
402
317
  import * as React from "react";
@@ -987,6 +902,7 @@ export class PreviewManager {
987
902
  private _matStd;
988
903
  private _matNME;
989
904
  private _matVertexColor;
905
+ private _axis;
990
906
  constructor(targetCanvas: HTMLCanvasElement, globalState: GlobalState);
991
907
  private _updateStandardMaterial;
992
908
  private _handleAnimations;
@@ -2687,6 +2603,30 @@ export class LinkButtonComponent extends React.Component<ILinkButtonComponentPro
2687
2603
  }
2688
2604
  export {};
2689
2605
 
2606
+ }
2607
+ declare module "@babylonjs/node-geometry-editor/lines/lineWithFileButtonComponent" {
2608
+ import * as React from "react";
2609
+ interface ILineWithFileButtonComponentProps {
2610
+ title: string;
2611
+ closed?: boolean;
2612
+ multiple?: boolean;
2613
+ label: string;
2614
+ iconImage: any;
2615
+ onIconClick: (file: File) => void;
2616
+ accept: string;
2617
+ uploadName?: string;
2618
+ }
2619
+ export class LineWithFileButtonComponent extends React.Component<ILineWithFileButtonComponentProps, {
2620
+ isExpanded: boolean;
2621
+ }> {
2622
+ private _uploadRef;
2623
+ constructor(props: ILineWithFileButtonComponentProps);
2624
+ onChange(evt: any): void;
2625
+ switchExpandedState(): void;
2626
+
2627
+ }
2628
+ export {};
2629
+
2690
2630
  }
2691
2631
  declare module "@babylonjs/node-geometry-editor/lines/lineContainerComponent" {
2692
2632
  import * as React from "react";
@@ -2915,10 +2855,28 @@ export class FileButtonLine extends React.Component<IFileButtonLineProps> {
2915
2855
  }
2916
2856
  export {};
2917
2857
 
2858
+ }
2859
+ declare module "@babylonjs/node-geometry-editor/lines/draggableLineWithButtonComponent" {
2860
+ import * as React from "react";
2861
+ export interface IDraggableLineWithButtonComponent {
2862
+ format: string;
2863
+ data: string;
2864
+ tooltip: string;
2865
+ iconImage: any;
2866
+ onIconClick: (value: string) => void;
2867
+ iconTitle: string;
2868
+ lenSuffixToRemove?: number;
2869
+ }
2870
+ export class DraggableLineWithButtonComponent extends React.Component<IDraggableLineWithButtonComponent> {
2871
+ constructor(props: IDraggableLineWithButtonComponent);
2872
+
2873
+ }
2874
+
2918
2875
  }
2919
2876
  declare module "@babylonjs/node-geometry-editor/lines/draggableLineComponent" {
2920
2877
  import * as React from "react";
2921
2878
  export interface IButtonLineComponentProps {
2879
+ format: string;
2922
2880
  data: string;
2923
2881
  tooltip: string;
2924
2882
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/node-geometry-editor",
3
- "version": "7.28.0",
3
+ "version": "7.30.0",
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.28.0",
26
+ "@babylonjs/core": "^7.30.0",
27
27
  "react": "^17.0.2",
28
28
  "react-dom": "^17.0.2"
29
29
  },