babylonjs-node-geometry-editor 6.17.1 → 6.19.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.
@@ -39,6 +39,7 @@ import { SetMaterialIDBlock } from "babylonjs/Meshes/Node/Blocks/Set/setMaterial
39
39
  import { InstantiateOnVerticesBlock } from "babylonjs/Meshes/Node/Blocks/Instances/instantiateOnVerticesBlock";
40
40
  import { InstantiateOnFacesBlock } from "babylonjs/Meshes/Node/Blocks/Instances/instantiateOnFacesBlock";
41
41
  import { InstantiateOnVolumeBlock } from "babylonjs/Meshes/Node/Blocks/Instances/instantiateOnVolumeBlock";
42
+ import { InstantiateBlock } from "babylonjs/Meshes/Node/Blocks/Instances/instantiateBlock";
42
43
  import { DebugBlock } from "babylonjs/Meshes/Node/Blocks/debugBlock";
43
44
  import { TeleportInBlock } from "babylonjs/Meshes/Node/Blocks/Teleport/teleportInBlock";
44
45
  import { TeleportOutBlock } from "babylonjs/Meshes/Node/Blocks/Teleport/teleportOutBlock";
@@ -48,8 +49,9 @@ import { IntFloatConverterBlock } from "babylonjs/Meshes/Node/Blocks/intFloatCon
48
49
  import { ConditionBlock } from "babylonjs/Meshes/Node/Blocks/conditionBlock";
49
50
  import { GeometryCollectionBlock } from "babylonjs/Meshes/Node/Blocks/geometryCollectionBlock";
50
51
  import { GeometryInfoBlock } from "babylonjs/Meshes/Node/Blocks/geometryInfoBlock";
52
+ import { MappingBlock } from "babylonjs/Meshes/Node/Blocks/mappingBlock";
51
53
  export class BlockTools {
52
- static GetBlockFromString(data: string): GeometryInfoBlock | GeometryCollectionBlock | GeometryOptimizeBlock | NullBlock | TeleportInBlock | TeleportOutBlock | DebugBlock | IntFloatConverterBlock | ConditionBlock | SetMaterialIDBlock | InstantiateOnVolumeBlock | InstantiateOnFacesBlock | InstantiateOnVerticesBlock | 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 | GeometryInputBlock | MathBlock | GeometryTrigonometryBlock | null;
54
+ static GetBlockFromString(data: string): GeometryInfoBlock | GeometryCollectionBlock | GeometryOptimizeBlock | NullBlock | TeleportInBlock | TeleportOutBlock | DebugBlock | IntFloatConverterBlock | ConditionBlock | 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 | GeometryInputBlock | MathBlock | GeometryTrigonometryBlock | null;
53
55
  static GetColorFromConnectionNodeType(type: NodeGeometryBlockConnectionPointTypes): string;
54
56
  static GetConnectionNodeTypeFromString(type: string): NodeGeometryBlockConnectionPointTypes.Int | NodeGeometryBlockConnectionPointTypes.Float | NodeGeometryBlockConnectionPointTypes.Vector2 | NodeGeometryBlockConnectionPointTypes.Vector3 | NodeGeometryBlockConnectionPointTypes.Vector4 | NodeGeometryBlockConnectionPointTypes.Matrix | NodeGeometryBlockConnectionPointTypes.AutoDetect;
55
57
  static GetStringFromConnectionNodeType(type: NodeGeometryBlockConnectionPointTypes): "" | "Int" | "Float" | "Vector2" | "Vector3" | "Vector4" | "Matrix";
@@ -136,6 +138,7 @@ export class PreviewManager {
136
138
  private _nodeGeometry;
137
139
  private _onBuildObserver;
138
140
  private _onFrameObserver;
141
+ private _onExportToGLBObserver;
139
142
  private _onAnimationCommandActivatedObserver;
140
143
  private _onUpdateRequiredObserver;
141
144
  private _onPreviewBackgroundChangedObserver;
@@ -209,7 +212,7 @@ interface IInputsPropertyTabComponentProps {
209
212
  }
210
213
  export class InputsPropertyTabComponent extends React.Component<IInputsPropertyTabComponentProps> {
211
214
  constructor(props: IInputsPropertyTabComponentProps);
212
- processInputBlockUpdate(ib: GeometryInputBlock): void;
215
+ processInputBlockUpdate(): void;
213
216
  renderInputBlock(block: GeometryInputBlock): JSX.Element | null;
214
217
  render(): JSX.Element;
215
218
  }
@@ -305,7 +308,7 @@ export class PropertyTabComponent extends React.Component<IPropertyTabComponentP
305
308
  constructor(props: IPropertyTabComponentProps);
306
309
  componentDidMount(): void;
307
310
  componentWillUnmount(): void;
308
- processInputBlockUpdate(ib: GeometryInputBlock): void;
311
+ processInputBlockUpdate(): void;
309
312
  renderInputBlock(block: GeometryInputBlock): JSX.Element | null;
310
313
  load(file: File): void;
311
314
  loadFrame(file: File): void;
@@ -313,6 +316,7 @@ export class PropertyTabComponent extends React.Component<IPropertyTabComponentP
313
316
  customSave(): void;
314
317
  saveToSnippetServer(): void;
315
318
  loadFromSnippet(): void;
319
+ exportAsGLB(): void;
316
320
  render(): JSX.Element;
317
321
  }
318
322
  export {};
@@ -356,6 +360,7 @@ export class GlobalState {
356
360
  lockObject: LockObject;
357
361
  pointerOverCanvas: boolean;
358
362
  onRefreshPreviewMeshControlComponentRequiredObservable: Observable<void>;
363
+ onExportToGLBRequired: Observable<void>;
359
364
  customSave?: {
360
365
  label: string;
361
366
  action: (data: string) => Promise<void>;
@@ -3559,6 +3564,7 @@ export class NodePort {
3559
3564
  node: GraphNode;
3560
3565
  protected _element: HTMLDivElement;
3561
3566
  protected _img: HTMLImageElement;
3567
+ protected _pip: HTMLDivElement;
3562
3568
  protected _stateManager: StateManager;
3563
3569
  protected _portLabelElement: Element;
3564
3570
  protected _onCandidateLinkMovedObserver: Nullable<Observer<Nullable<Vector2>>>;
@@ -3667,7 +3673,7 @@ export class StateManager {
3667
3673
  }>;
3668
3674
  exportData: (data: any, frame?: Nullable<GraphFrame>) => string;
3669
3675
  isElbowConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
3670
- applyNodePortDesign: (data: IPortData, element: HTMLElement, img: HTMLImageElement) => void;
3676
+ applyNodePortDesign: (data: IPortData, element: HTMLElement, img: HTMLImageElement, pip: HTMLDivElement) => void;
3671
3677
  storeEditorData: (serializationObject: any, frame?: Nullable<GraphFrame>) => void;
3672
3678
  getEditorDataMap: () => {
3673
3679
  [key: number]: number;
@@ -4045,7 +4051,7 @@ declare module "babylonjs-node-geometry-editor" {
4045
4051
 
4046
4052
  declare module BABYLON.NodeGeometryEditor {
4047
4053
  export class BlockTools {
4048
- static GetBlockFromString(data: string): BABYLON.GeometryInfoBlock | BABYLON.GeometryCollectionBlock | BABYLON.GeometryOptimizeBlock | BABYLON.NullBlock | BABYLON.TeleportInBlock | BABYLON.TeleportOutBlock | BABYLON.DebugBlock | BABYLON.IntFloatConverterBlock | BABYLON.ConditionBlock | BABYLON.SetMaterialIDBlock | BABYLON.InstantiateOnVolumeBlock | BABYLON.InstantiateOnFacesBlock | BABYLON.InstantiateOnVerticesBlock | BABYLON.MapRangeBlock | BABYLON.NormalizeVectorBlock | BABYLON.MeshBlock | BABYLON.VectorConverterBlock | BABYLON.TranslationBlock | BABYLON.ScalingBlock | BABYLON.AlignBlock | BABYLON.RotationXBlock | BABYLON.RotationYBlock | BABYLON.RotationZBlock | BABYLON.ComputeNormalsBlock | BABYLON.SetPositionsBlock | BABYLON.SetNormalsBlock | BABYLON.SetColorsBlock | BABYLON.SetTangentsBlock | BABYLON.SetUVsBlock | BABYLON.NoiseBlock | BABYLON.RandomBlock | BABYLON.GeometryOutputBlock | BABYLON.GridBlock | BABYLON.DiscBlock | BABYLON.IcoSphereBlock | BABYLON.BoxBlock | BABYLON.TorusBlock | BABYLON.SphereBlock | BABYLON.CylinderBlock | BABYLON.CapsuleBlock | BABYLON.PlaneBlock | BABYLON.GeometryElbowBlock | BABYLON.MergeGeometryBlock | BABYLON.GeometryTransformBlock | BABYLON.GeometryInputBlock | BABYLON.MathBlock | BABYLON.GeometryTrigonometryBlock | null;
4054
+ static GetBlockFromString(data: string): BABYLON.GeometryInfoBlock | BABYLON.GeometryCollectionBlock | BABYLON.GeometryOptimizeBlock | BABYLON.NullBlock | BABYLON.TeleportInBlock | BABYLON.TeleportOutBlock | BABYLON.DebugBlock | BABYLON.IntFloatConverterBlock | BABYLON.ConditionBlock | BABYLON.MappingBlock | BABYLON.SetMaterialIDBlock | BABYLON.InstantiateOnVolumeBlock | BABYLON.InstantiateOnFacesBlock | BABYLON.InstantiateOnVerticesBlock | BABYLON.InstantiateBlock | BABYLON.MapRangeBlock | BABYLON.NormalizeVectorBlock | BABYLON.MeshBlock | BABYLON.VectorConverterBlock | BABYLON.TranslationBlock | BABYLON.ScalingBlock | BABYLON.AlignBlock | BABYLON.RotationXBlock | BABYLON.RotationYBlock | BABYLON.RotationZBlock | BABYLON.ComputeNormalsBlock | BABYLON.SetPositionsBlock | BABYLON.SetNormalsBlock | BABYLON.SetColorsBlock | BABYLON.SetTangentsBlock | BABYLON.SetUVsBlock | BABYLON.NoiseBlock | BABYLON.RandomBlock | BABYLON.GeometryOutputBlock | BABYLON.GridBlock | BABYLON.DiscBlock | BABYLON.IcoSphereBlock | BABYLON.BoxBlock | BABYLON.TorusBlock | BABYLON.SphereBlock | BABYLON.CylinderBlock | BABYLON.CapsuleBlock | BABYLON.PlaneBlock | BABYLON.GeometryElbowBlock | BABYLON.MergeGeometryBlock | BABYLON.GeometryTransformBlock | BABYLON.GeometryInputBlock | BABYLON.MathBlock | BABYLON.GeometryTrigonometryBlock | null;
4049
4055
  static GetColorFromConnectionNodeType(type: BABYLON.NodeGeometryBlockConnectionPointTypes): string;
4050
4056
  static GetConnectionNodeTypeFromString(type: string): BABYLON.NodeGeometryBlockConnectionPointTypes.Int | BABYLON.NodeGeometryBlockConnectionPointTypes.Float | BABYLON.NodeGeometryBlockConnectionPointTypes.Vector2 | BABYLON.NodeGeometryBlockConnectionPointTypes.Vector3 | BABYLON.NodeGeometryBlockConnectionPointTypes.Vector4 | BABYLON.NodeGeometryBlockConnectionPointTypes.Matrix | BABYLON.NodeGeometryBlockConnectionPointTypes.AutoDetect;
4051
4057
  static GetStringFromConnectionNodeType(type: BABYLON.NodeGeometryBlockConnectionPointTypes): "" | "Int" | "Float" | "Vector2" | "Vector3" | "Vector4" | "Matrix";
@@ -4115,6 +4121,7 @@ declare module BABYLON.NodeGeometryEditor {
4115
4121
  private _nodeGeometry;
4116
4122
  private _onBuildObserver;
4117
4123
  private _onFrameObserver;
4124
+ private _onExportToGLBObserver;
4118
4125
  private _onAnimationCommandActivatedObserver;
4119
4126
  private _onUpdateRequiredObserver;
4120
4127
  private _onPreviewBackgroundChangedObserver;
@@ -4177,7 +4184,7 @@ declare module BABYLON.NodeGeometryEditor {
4177
4184
  }
4178
4185
  export class InputsPropertyTabComponent extends React.Component<IInputsPropertyTabComponentProps> {
4179
4186
  constructor(props: IInputsPropertyTabComponentProps);
4180
- processInputBlockUpdate(ib: BABYLON.GeometryInputBlock): void;
4187
+ processInputBlockUpdate(): void;
4181
4188
  renderInputBlock(block: BABYLON.GeometryInputBlock): JSX.Element | null;
4182
4189
  render(): JSX.Element;
4183
4190
  }
@@ -4238,7 +4245,7 @@ declare module BABYLON.NodeGeometryEditor {
4238
4245
  constructor(props: IPropertyTabComponentProps);
4239
4246
  componentDidMount(): void;
4240
4247
  componentWillUnmount(): void;
4241
- processInputBlockUpdate(ib: BABYLON.GeometryInputBlock): void;
4248
+ processInputBlockUpdate(): void;
4242
4249
  renderInputBlock(block: BABYLON.GeometryInputBlock): JSX.Element | null;
4243
4250
  load(file: File): void;
4244
4251
  loadFrame(file: File): void;
@@ -4246,6 +4253,7 @@ declare module BABYLON.NodeGeometryEditor {
4246
4253
  customSave(): void;
4247
4254
  saveToSnippetServer(): void;
4248
4255
  loadFromSnippet(): void;
4256
+ exportAsGLB(): void;
4249
4257
  render(): JSX.Element;
4250
4258
  }
4251
4259
 
@@ -4276,6 +4284,7 @@ declare module BABYLON.NodeGeometryEditor {
4276
4284
  lockObject: BABYLON.NodeGeometryEditor.SharedUIComponents.LockObject;
4277
4285
  pointerOverCanvas: boolean;
4278
4286
  onRefreshPreviewMeshControlComponentRequiredObservable: BABYLON.Observable<void>;
4287
+ onExportToGLBRequired: BABYLON.Observable<void>;
4279
4288
  customSave?: {
4280
4289
  label: string;
4281
4290
  action: (data: string) => Promise<void>;
@@ -7558,6 +7567,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
7558
7567
  node: BABYLON.NodeGeometryEditor.SharedUIComponents.GraphNode;
7559
7568
  protected _element: HTMLDivElement;
7560
7569
  protected _img: HTMLImageElement;
7570
+ protected _pip: HTMLDivElement;
7561
7571
  protected _stateManager: BABYLON.NodeGeometryEditor.SharedUIComponents.StateManager;
7562
7572
  protected _portLabelElement: Element;
7563
7573
  protected _onCandidateLinkMovedObserver: BABYLON.Nullable<BABYLON.Observer<BABYLON.Nullable<BABYLON.Vector2>>>;
@@ -7665,7 +7675,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
7665
7675
  }>;
7666
7676
  exportData: (data: any, frame?: BABYLON.Nullable<BABYLON.NodeGeometryEditor.SharedUIComponents.GraphFrame>) => string;
7667
7677
  isElbowConnectionAllowed: (nodeA: BABYLON.NodeGeometryEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeGeometryEditor.SharedUIComponents.NodePort, nodeB: BABYLON.NodeGeometryEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeGeometryEditor.SharedUIComponents.NodePort) => boolean;
7668
- applyNodePortDesign: (data: BABYLON.NodeGeometryEditor.SharedUIComponents.IPortData, element: HTMLElement, img: HTMLImageElement) => void;
7678
+ applyNodePortDesign: (data: BABYLON.NodeGeometryEditor.SharedUIComponents.IPortData, element: HTMLElement, img: HTMLImageElement, pip: HTMLDivElement) => void;
7669
7679
  storeEditorData: (serializationObject: any, frame?: BABYLON.Nullable<BABYLON.NodeGeometryEditor.SharedUIComponents.GraphFrame>) => void;
7670
7680
  getEditorDataMap: () => {
7671
7681
  [key: number]: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-node-geometry-editor",
3
- "version": "6.17.1",
3
+ "version": "6.19.0",
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*.*"
15
15
  },
16
16
  "dependencies": {
17
- "babylonjs": "^6.17.1"
17
+ "babylonjs": "^6.19.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@dev/build-tools": "1.0.0",