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