babylonjs-node-geometry-editor 6.20.2 → 6.21.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.
- package/babylon.nodeGeometryEditor.d.ts +19 -1
- package/babylon.nodeGeometryEditor.js +1 -1
- package/babylon.nodeGeometryEditor.js.map +1 -1
- package/babylon.nodeGeometryEditor.max.js +239 -2
- package/babylon.nodeGeometryEditor.max.js.map +1 -1
- package/babylon.nodeGeometryEditor.module.d.ts +47 -2
- package/package.json +2 -2
|
@@ -51,8 +51,11 @@ import { GeometryCollectionBlock } from "babylonjs/Meshes/Node/Blocks/geometryCo
|
|
|
51
51
|
import { GeometryInfoBlock } from "babylonjs/Meshes/Node/Blocks/geometryInfoBlock";
|
|
52
52
|
import { MappingBlock } from "babylonjs/Meshes/Node/Blocks/mappingBlock";
|
|
53
53
|
import { MatrixComposeBlock } from "babylonjs/Meshes/Node/Blocks/matrixComposeBlock";
|
|
54
|
+
import { GeometryTextureBlock } from "babylonjs/Meshes/Node/Blocks/Textures/geometryTextureBlock";
|
|
55
|
+
import { GeometryTextureFetchBlock } from "babylonjs/Meshes/Node/Blocks/Textures/geometryTextureFetchBlock";
|
|
56
|
+
import { BoundingBlock } from "babylonjs/Meshes/Node/Blocks/boundingBlock";
|
|
54
57
|
export class BlockTools {
|
|
55
|
-
static GetBlockFromString(data: string): MatrixComposeBlock | 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;
|
|
58
|
+
static GetBlockFromString(data: string): GeometryTextureFetchBlock | GeometryTextureBlock | BoundingBlock | MatrixComposeBlock | 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;
|
|
56
59
|
static GetColorFromConnectionNodeType(type: NodeGeometryBlockConnectionPointTypes): string;
|
|
57
60
|
static GetConnectionNodeTypeFromString(type: string): NodeGeometryBlockConnectionPointTypes.Int | NodeGeometryBlockConnectionPointTypes.Float | NodeGeometryBlockConnectionPointTypes.Vector2 | NodeGeometryBlockConnectionPointTypes.Vector3 | NodeGeometryBlockConnectionPointTypes.Vector4 | NodeGeometryBlockConnectionPointTypes.Matrix | NodeGeometryBlockConnectionPointTypes.AutoDetect;
|
|
58
61
|
static GetStringFromConnectionNodeType(type: NodeGeometryBlockConnectionPointTypes): "" | "Int" | "Float" | "Vector2" | "Vector3" | "Vector4" | "Matrix";
|
|
@@ -616,6 +619,20 @@ export class TeleportOutDisplayManager implements IDisplayManager {
|
|
|
616
619
|
onDispose(nodeData: INodeData, manager: StateManager): void;
|
|
617
620
|
}
|
|
618
621
|
|
|
622
|
+
}
|
|
623
|
+
declare module "babylonjs-node-geometry-editor/graphSystem/display/textureDisplayManager" {
|
|
624
|
+
import { IDisplayManager } from "babylonjs-node-geometry-editor/nodeGraphSystem/interfaces/displayManager";
|
|
625
|
+
import { INodeData } from "babylonjs-node-geometry-editor/nodeGraphSystem/interfaces/nodeData";
|
|
626
|
+
export class TextureDisplayManager implements IDisplayManager {
|
|
627
|
+
private _previewCanvas;
|
|
628
|
+
private _previewImage;
|
|
629
|
+
getHeaderClass(): string;
|
|
630
|
+
shouldDisplayPortLabels(): boolean;
|
|
631
|
+
getHeaderText(nodeData: INodeData): string;
|
|
632
|
+
getBackgroundColor(nodeData: INodeData): string;
|
|
633
|
+
updatePreviewContent(nodeData: INodeData, contentArea: HTMLDivElement): void;
|
|
634
|
+
}
|
|
635
|
+
|
|
619
636
|
}
|
|
620
637
|
declare module "babylonjs-node-geometry-editor/graphSystem/properties/debugNodePropertyComponent" {
|
|
621
638
|
import * as React from "react";
|
|
@@ -756,6 +773,16 @@ export class TeleportOutPropertyTabComponent extends React.Component<IPropertyCo
|
|
|
756
773
|
render(): JSX.Element;
|
|
757
774
|
}
|
|
758
775
|
|
|
776
|
+
}
|
|
777
|
+
declare module "babylonjs-node-geometry-editor/graphSystem/properties/textureNodePropertyComponent" {
|
|
778
|
+
import * as React from "react";
|
|
779
|
+
import { IPropertyComponentProps } from "babylonjs-node-geometry-editor/nodeGraphSystem/interfaces/propertyComponentProps";
|
|
780
|
+
export class TexturePropertyTabComponent extends React.Component<IPropertyComponentProps> {
|
|
781
|
+
constructor(props: IPropertyComponentProps);
|
|
782
|
+
loadTextureData(file: File): Promise<void>;
|
|
783
|
+
render(): JSX.Element;
|
|
784
|
+
}
|
|
785
|
+
|
|
759
786
|
}
|
|
760
787
|
declare module "babylonjs-node-geometry-editor/graphSystem/registerDebugSupport" {
|
|
761
788
|
import { StateManager } from "babylonjs-node-geometry-editor/nodeGraphSystem/stateManager";
|
|
@@ -4058,7 +4085,7 @@ declare module "babylonjs-node-geometry-editor" {
|
|
|
4058
4085
|
|
|
4059
4086
|
declare module BABYLON.NodeGeometryEditor {
|
|
4060
4087
|
export class BlockTools {
|
|
4061
|
-
static GetBlockFromString(data: string): BABYLON.MatrixComposeBlock | 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;
|
|
4088
|
+
static GetBlockFromString(data: string): BABYLON.GeometryTextureFetchBlock | BABYLON.GeometryTextureBlock | BABYLON.BoundingBlock | BABYLON.MatrixComposeBlock | 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;
|
|
4062
4089
|
static GetColorFromConnectionNodeType(type: BABYLON.NodeGeometryBlockConnectionPointTypes): string;
|
|
4063
4090
|
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;
|
|
4064
4091
|
static GetStringFromConnectionNodeType(type: BABYLON.NodeGeometryBlockConnectionPointTypes): "" | "Int" | "Float" | "Vector2" | "Vector3" | "Vector4" | "Matrix";
|
|
@@ -4495,6 +4522,17 @@ declare module BABYLON.NodeGeometryEditor {
|
|
|
4495
4522
|
}
|
|
4496
4523
|
|
|
4497
4524
|
|
|
4525
|
+
export class TextureDisplayManager implements BABYLON.NodeGeometryEditor.SharedUIComponents.IDisplayManager {
|
|
4526
|
+
private _previewCanvas;
|
|
4527
|
+
private _previewImage;
|
|
4528
|
+
getHeaderClass(): string;
|
|
4529
|
+
shouldDisplayPortLabels(): boolean;
|
|
4530
|
+
getHeaderText(nodeData: BABYLON.NodeGeometryEditor.SharedUIComponents.INodeData): string;
|
|
4531
|
+
getBackgroundColor(nodeData: BABYLON.NodeGeometryEditor.SharedUIComponents.INodeData): string;
|
|
4532
|
+
updatePreviewContent(nodeData: BABYLON.NodeGeometryEditor.SharedUIComponents.INodeData, contentArea: HTMLDivElement): void;
|
|
4533
|
+
}
|
|
4534
|
+
|
|
4535
|
+
|
|
4498
4536
|
export class DebugPropertyTabComponent extends React.Component<BABYLON.NodeGeometryEditor.SharedUIComponents.IPropertyComponentProps> {
|
|
4499
4537
|
private _onUpdateRequiredObserver;
|
|
4500
4538
|
constructor(props: BABYLON.NodeGeometryEditor.SharedUIComponents.IPropertyComponentProps);
|
|
@@ -4600,6 +4638,13 @@ declare module BABYLON.NodeGeometryEditor {
|
|
|
4600
4638
|
}
|
|
4601
4639
|
|
|
4602
4640
|
|
|
4641
|
+
export class TexturePropertyTabComponent extends React.Component<BABYLON.NodeGeometryEditor.SharedUIComponents.IPropertyComponentProps> {
|
|
4642
|
+
constructor(props: BABYLON.NodeGeometryEditor.SharedUIComponents.IPropertyComponentProps);
|
|
4643
|
+
loadTextureData(file: File): Promise<void>;
|
|
4644
|
+
render(): JSX.Element;
|
|
4645
|
+
}
|
|
4646
|
+
|
|
4647
|
+
|
|
4603
4648
|
export const RegisterDebugSupport: (stateManager: BABYLON.NodeGeometryEditor.SharedUIComponents.StateManager) => void;
|
|
4604
4649
|
|
|
4605
4650
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-node-geometry-editor",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.21.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
|
+
"babylonjs": "^6.21.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@dev/build-tools": "1.0.0",
|