@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.
|
@@ -51,8 +51,11 @@ import { GeometryCollectionBlock } from "@babylonjs/core/Meshes/Node/Blocks/geom
|
|
|
51
51
|
import { GeometryInfoBlock } from "@babylonjs/core/Meshes/Node/Blocks/geometryInfoBlock";
|
|
52
52
|
import { MappingBlock } from "@babylonjs/core/Meshes/Node/Blocks/mappingBlock";
|
|
53
53
|
import { MatrixComposeBlock } from "@babylonjs/core/Meshes/Node/Blocks/matrixComposeBlock";
|
|
54
|
+
import { GeometryTextureBlock } from "@babylonjs/core/Meshes/Node/Blocks/Textures/geometryTextureBlock";
|
|
55
|
+
import { GeometryTextureFetchBlock } from "@babylonjs/core/Meshes/Node/Blocks/Textures/geometryTextureFetchBlock";
|
|
56
|
+
import { BoundingBlock } from "@babylonjs/core/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";
|
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": "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": "^6.
|
|
26
|
+
"@babylonjs/core": "^6.21.0",
|
|
27
27
|
"react": "^17.0.2",
|
|
28
28
|
"react-dom": "^17.0.2"
|
|
29
29
|
},
|