babylonjs-node-geometry-editor 6.18.0 → 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.
@@ -1,7 +1,7 @@
1
1
 
2
2
  declare module BABYLON.NodeGeometryEditor {
3
3
  export class BlockTools {
4
- 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.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;
4
+ 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;
5
5
  static GetColorFromConnectionNodeType(type: BABYLON.NodeGeometryBlockConnectionPointTypes): string;
6
6
  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;
7
7
  static GetStringFromConnectionNodeType(type: BABYLON.NodeGeometryBlockConnectionPointTypes): "" | "Int" | "Float" | "Vector2" | "Vector3" | "Vector4" | "Matrix";
@@ -71,6 +71,7 @@ declare module BABYLON.NodeGeometryEditor {
71
71
  private _nodeGeometry;
72
72
  private _onBuildObserver;
73
73
  private _onFrameObserver;
74
+ private _onExportToGLBObserver;
74
75
  private _onAnimationCommandActivatedObserver;
75
76
  private _onUpdateRequiredObserver;
76
77
  private _onPreviewBackgroundChangedObserver;
@@ -133,7 +134,7 @@ declare module BABYLON.NodeGeometryEditor {
133
134
  }
134
135
  export class InputsPropertyTabComponent extends React.Component<IInputsPropertyTabComponentProps> {
135
136
  constructor(props: IInputsPropertyTabComponentProps);
136
- processInputBlockUpdate(ib: BABYLON.GeometryInputBlock): void;
137
+ processInputBlockUpdate(): void;
137
138
  renderInputBlock(block: BABYLON.GeometryInputBlock): JSX.Element | null;
138
139
  render(): JSX.Element;
139
140
  }
@@ -202,6 +203,7 @@ declare module BABYLON.NodeGeometryEditor {
202
203
  customSave(): void;
203
204
  saveToSnippetServer(): void;
204
205
  loadFromSnippet(): void;
206
+ exportAsGLB(): void;
205
207
  render(): JSX.Element;
206
208
  }
207
209
 
@@ -232,6 +234,7 @@ declare module BABYLON.NodeGeometryEditor {
232
234
  lockObject: BABYLON.NodeGeometryEditor.SharedUIComponents.LockObject;
233
235
  pointerOverCanvas: boolean;
234
236
  onRefreshPreviewMeshControlComponentRequiredObservable: BABYLON.Observable<void>;
237
+ onExportToGLBRequired: BABYLON.Observable<void>;
235
238
  customSave?: {
236
239
  label: string;
237
240
  action: (data: string) => Promise<void>;
@@ -3514,6 +3517,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
3514
3517
  node: BABYLON.NodeGeometryEditor.SharedUIComponents.GraphNode;
3515
3518
  protected _element: HTMLDivElement;
3516
3519
  protected _img: HTMLImageElement;
3520
+ protected _pip: HTMLDivElement;
3517
3521
  protected _stateManager: BABYLON.NodeGeometryEditor.SharedUIComponents.StateManager;
3518
3522
  protected _portLabelElement: Element;
3519
3523
  protected _onCandidateLinkMovedObserver: BABYLON.Nullable<BABYLON.Observer<BABYLON.Nullable<BABYLON.Vector2>>>;
@@ -3621,7 +3625,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
3621
3625
  }>;
3622
3626
  exportData: (data: any, frame?: BABYLON.Nullable<BABYLON.NodeGeometryEditor.SharedUIComponents.GraphFrame>) => string;
3623
3627
  isElbowConnectionAllowed: (nodeA: BABYLON.NodeGeometryEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeGeometryEditor.SharedUIComponents.NodePort, nodeB: BABYLON.NodeGeometryEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeGeometryEditor.SharedUIComponents.NodePort) => boolean;
3624
- applyNodePortDesign: (data: BABYLON.NodeGeometryEditor.SharedUIComponents.IPortData, element: HTMLElement, img: HTMLImageElement) => void;
3628
+ applyNodePortDesign: (data: BABYLON.NodeGeometryEditor.SharedUIComponents.IPortData, element: HTMLElement, img: HTMLImageElement, pip: HTMLDivElement) => void;
3625
3629
  storeEditorData: (serializationObject: any, frame?: BABYLON.Nullable<BABYLON.NodeGeometryEditor.SharedUIComponents.GraphFrame>) => void;
3626
3630
  getEditorDataMap: () => {
3627
3631
  [key: number]: number;