@babylonjs/node-geometry-editor 6.16.2 → 6.17.1
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/dist/babylon.nodeGeometryEditor.js +1 -1
- package/dist/babylon.nodeGeometryEditor.js.map +1 -1
- package/dist/babylon.nodeGeometryEditor.max.js +160 -94
- package/dist/babylon.nodeGeometryEditor.max.js.map +1 -1
- package/dist/babylon.nodeGeometryEditor.module.d.ts +13 -2
- package/package.json +2 -2
|
@@ -38,6 +38,7 @@ import { GeometryElbowBlock } from "@babylonjs/core/Meshes/Node/Blocks/geometryE
|
|
|
38
38
|
import { SetMaterialIDBlock } from "@babylonjs/core/Meshes/Node/Blocks/Set/setMaterialIDBlock";
|
|
39
39
|
import { InstantiateOnVerticesBlock } from "@babylonjs/core/Meshes/Node/Blocks/Instances/instantiateOnVerticesBlock";
|
|
40
40
|
import { InstantiateOnFacesBlock } from "@babylonjs/core/Meshes/Node/Blocks/Instances/instantiateOnFacesBlock";
|
|
41
|
+
import { InstantiateOnVolumeBlock } from "@babylonjs/core/Meshes/Node/Blocks/Instances/instantiateOnVolumeBlock";
|
|
41
42
|
import { DebugBlock } from "@babylonjs/core/Meshes/Node/Blocks/debugBlock";
|
|
42
43
|
import { TeleportInBlock } from "@babylonjs/core/Meshes/Node/Blocks/Teleport/teleportInBlock";
|
|
43
44
|
import { TeleportOutBlock } from "@babylonjs/core/Meshes/Node/Blocks/Teleport/teleportOutBlock";
|
|
@@ -45,8 +46,10 @@ import { MapRangeBlock } from "@babylonjs/core/Meshes/Node/Blocks/mapRangeBlock"
|
|
|
45
46
|
import { GeometryOptimizeBlock } from "@babylonjs/core/Meshes/Node/Blocks/geometryOptimizeBlock";
|
|
46
47
|
import { IntFloatConverterBlock } from "@babylonjs/core/Meshes/Node/Blocks/intFloatConverterBlock";
|
|
47
48
|
import { ConditionBlock } from "@babylonjs/core/Meshes/Node/Blocks/conditionBlock";
|
|
49
|
+
import { GeometryCollectionBlock } from "@babylonjs/core/Meshes/Node/Blocks/geometryCollectionBlock";
|
|
50
|
+
import { GeometryInfoBlock } from "@babylonjs/core/Meshes/Node/Blocks/geometryInfoBlock";
|
|
48
51
|
export class BlockTools {
|
|
49
|
-
static GetBlockFromString(data: string): GeometryOptimizeBlock | NullBlock | TeleportInBlock | TeleportOutBlock | DebugBlock | IntFloatConverterBlock | ConditionBlock | SetMaterialIDBlock | 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;
|
|
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;
|
|
50
53
|
static GetColorFromConnectionNodeType(type: NodeGeometryBlockConnectionPointTypes): string;
|
|
51
54
|
static GetConnectionNodeTypeFromString(type: string): NodeGeometryBlockConnectionPointTypes.Int | NodeGeometryBlockConnectionPointTypes.Float | NodeGeometryBlockConnectionPointTypes.Vector2 | NodeGeometryBlockConnectionPointTypes.Vector3 | NodeGeometryBlockConnectionPointTypes.Vector4 | NodeGeometryBlockConnectionPointTypes.Matrix | NodeGeometryBlockConnectionPointTypes.AutoDetect;
|
|
52
55
|
static GetStringFromConnectionNodeType(type: NodeGeometryBlockConnectionPointTypes): "" | "Int" | "Float" | "Vector2" | "Vector3" | "Vector4" | "Matrix";
|
|
@@ -357,6 +360,7 @@ export class GlobalState {
|
|
|
357
360
|
label: string;
|
|
358
361
|
action: (data: string) => Promise<void>;
|
|
359
362
|
};
|
|
363
|
+
resyncHandler?: () => void;
|
|
360
364
|
get previewMode(): PreviewMode;
|
|
361
365
|
set previewMode(value: PreviewMode);
|
|
362
366
|
constructor();
|
|
@@ -534,13 +538,18 @@ declare module "@babylonjs/node-geometry-editor/graphSystem/display/inputDisplay
|
|
|
534
538
|
import { IDisplayManager } from "@babylonjs/node-geometry-editor/nodeGraphSystem/interfaces/displayManager";
|
|
535
539
|
import { INodeData } from "@babylonjs/node-geometry-editor/nodeGraphSystem/interfaces/nodeData";
|
|
536
540
|
import { NodeGeometryBlockConnectionPointTypes } from "@babylonjs/core/Meshes/Node/Enums/nodeGeometryConnectionPointTypes";
|
|
541
|
+
import { Nullable } from "@babylonjs/core/types";
|
|
542
|
+
import { StateManager } from "@babylonjs/node-geometry-editor/nodeGraphSystem/stateManager";
|
|
537
543
|
export class InputDisplayManager implements IDisplayManager {
|
|
544
|
+
private _hasHighlights;
|
|
538
545
|
getHeaderClass(nodeData: INodeData): string;
|
|
539
546
|
getHeaderText(nodeData: INodeData): string;
|
|
540
547
|
shouldDisplayPortLabels(): boolean;
|
|
541
548
|
static GetBaseType(type: NodeGeometryBlockConnectionPointTypes): string;
|
|
542
549
|
getBackgroundColor(nodeData: INodeData): string;
|
|
543
550
|
updatePreviewContent(nodeData: INodeData, contentArea: HTMLDivElement): void;
|
|
551
|
+
onSelectionChanged(nodeData: INodeData, selectedData: Nullable<INodeData>, manager: StateManager): void;
|
|
552
|
+
onDispose(nodeData: INodeData, manager: StateManager): void;
|
|
544
553
|
}
|
|
545
554
|
|
|
546
555
|
}
|
|
@@ -787,12 +796,14 @@ import { NodeGeometry } from "@babylonjs/core/Meshes/Node/nodeGeometry";
|
|
|
787
796
|
import { Observable } from "@babylonjs/core/Misc/observable";
|
|
788
797
|
import { Color4 } from "@babylonjs/core/Maths/math.color";
|
|
789
798
|
import { Scene } from "@babylonjs/core/scene";
|
|
799
|
+
import { Mesh } from "@babylonjs/core/Meshes/mesh";
|
|
790
800
|
/**
|
|
791
801
|
* Interface used to specify creation options for the node editor
|
|
792
802
|
*/
|
|
793
803
|
export interface INodeEditorOptions {
|
|
794
804
|
nodeGeometry: NodeGeometry;
|
|
795
|
-
hostScene
|
|
805
|
+
hostScene?: Scene;
|
|
806
|
+
hostMesh?: Mesh;
|
|
796
807
|
hostElement?: HTMLElement;
|
|
797
808
|
customSave?: {
|
|
798
809
|
label: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babylonjs/node-geometry-editor",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.17.1",
|
|
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.17.1",
|
|
27
27
|
"react": "^17.0.2",
|
|
28
28
|
"react-dom": "^17.0.2"
|
|
29
29
|
},
|