@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.
- package/dist/babylon.nodeGeometryEditor.js +1 -1
- package/dist/babylon.nodeGeometryEditor.js.map +1 -1
- package/dist/babylon.nodeGeometryEditor.max.js +160 -151
- package/dist/babylon.nodeGeometryEditor.max.js.map +1 -1
- package/dist/babylon.nodeGeometryEditor.module.d.ts +8 -3
- package/package.json +2 -2
|
@@ -49,8 +49,9 @@ import { IntFloatConverterBlock } from "@babylonjs/core/Meshes/Node/Blocks/intFl
|
|
|
49
49
|
import { ConditionBlock } from "@babylonjs/core/Meshes/Node/Blocks/conditionBlock";
|
|
50
50
|
import { GeometryCollectionBlock } from "@babylonjs/core/Meshes/Node/Blocks/geometryCollectionBlock";
|
|
51
51
|
import { GeometryInfoBlock } from "@babylonjs/core/Meshes/Node/Blocks/geometryInfoBlock";
|
|
52
|
+
import { MappingBlock } from "@babylonjs/core/Meshes/Node/Blocks/mappingBlock";
|
|
52
53
|
export class BlockTools {
|
|
53
|
-
static GetBlockFromString(data: string): GeometryInfoBlock | GeometryCollectionBlock | GeometryOptimizeBlock | NullBlock | TeleportInBlock | TeleportOutBlock | DebugBlock | IntFloatConverterBlock | ConditionBlock | 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;
|
|
54
|
+
static GetBlockFromString(data: string): 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;
|
|
54
55
|
static GetColorFromConnectionNodeType(type: NodeGeometryBlockConnectionPointTypes): string;
|
|
55
56
|
static GetConnectionNodeTypeFromString(type: string): NodeGeometryBlockConnectionPointTypes.Int | NodeGeometryBlockConnectionPointTypes.Float | NodeGeometryBlockConnectionPointTypes.Vector2 | NodeGeometryBlockConnectionPointTypes.Vector3 | NodeGeometryBlockConnectionPointTypes.Vector4 | NodeGeometryBlockConnectionPointTypes.Matrix | NodeGeometryBlockConnectionPointTypes.AutoDetect;
|
|
56
57
|
static GetStringFromConnectionNodeType(type: NodeGeometryBlockConnectionPointTypes): "" | "Int" | "Float" | "Vector2" | "Vector3" | "Vector4" | "Matrix";
|
|
@@ -137,6 +138,7 @@ export class PreviewManager {
|
|
|
137
138
|
private _nodeGeometry;
|
|
138
139
|
private _onBuildObserver;
|
|
139
140
|
private _onFrameObserver;
|
|
141
|
+
private _onExportToGLBObserver;
|
|
140
142
|
private _onAnimationCommandActivatedObserver;
|
|
141
143
|
private _onUpdateRequiredObserver;
|
|
142
144
|
private _onPreviewBackgroundChangedObserver;
|
|
@@ -210,7 +212,7 @@ interface IInputsPropertyTabComponentProps {
|
|
|
210
212
|
}
|
|
211
213
|
export class InputsPropertyTabComponent extends React.Component<IInputsPropertyTabComponentProps> {
|
|
212
214
|
constructor(props: IInputsPropertyTabComponentProps);
|
|
213
|
-
processInputBlockUpdate(
|
|
215
|
+
processInputBlockUpdate(): void;
|
|
214
216
|
renderInputBlock(block: GeometryInputBlock): JSX.Element | null;
|
|
215
217
|
render(): JSX.Element;
|
|
216
218
|
}
|
|
@@ -314,6 +316,7 @@ export class PropertyTabComponent extends React.Component<IPropertyTabComponentP
|
|
|
314
316
|
customSave(): void;
|
|
315
317
|
saveToSnippetServer(): void;
|
|
316
318
|
loadFromSnippet(): void;
|
|
319
|
+
exportAsGLB(): void;
|
|
317
320
|
render(): JSX.Element;
|
|
318
321
|
}
|
|
319
322
|
export {};
|
|
@@ -357,6 +360,7 @@ export class GlobalState {
|
|
|
357
360
|
lockObject: LockObject;
|
|
358
361
|
pointerOverCanvas: boolean;
|
|
359
362
|
onRefreshPreviewMeshControlComponentRequiredObservable: Observable<void>;
|
|
363
|
+
onExportToGLBRequired: Observable<void>;
|
|
360
364
|
customSave?: {
|
|
361
365
|
label: string;
|
|
362
366
|
action: (data: string) => Promise<void>;
|
|
@@ -3560,6 +3564,7 @@ export class NodePort {
|
|
|
3560
3564
|
node: GraphNode;
|
|
3561
3565
|
protected _element: HTMLDivElement;
|
|
3562
3566
|
protected _img: HTMLImageElement;
|
|
3567
|
+
protected _pip: HTMLDivElement;
|
|
3563
3568
|
protected _stateManager: StateManager;
|
|
3564
3569
|
protected _portLabelElement: Element;
|
|
3565
3570
|
protected _onCandidateLinkMovedObserver: Nullable<Observer<Nullable<Vector2>>>;
|
|
@@ -3668,7 +3673,7 @@ export class StateManager {
|
|
|
3668
3673
|
}>;
|
|
3669
3674
|
exportData: (data: any, frame?: Nullable<GraphFrame>) => string;
|
|
3670
3675
|
isElbowConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
|
|
3671
|
-
applyNodePortDesign: (data: IPortData, element: HTMLElement, img: HTMLImageElement) => void;
|
|
3676
|
+
applyNodePortDesign: (data: IPortData, element: HTMLElement, img: HTMLImageElement, pip: HTMLDivElement) => void;
|
|
3672
3677
|
storeEditorData: (serializationObject: any, frame?: Nullable<GraphFrame>) => void;
|
|
3673
3678
|
getEditorDataMap: () => {
|
|
3674
3679
|
[key: number]: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babylonjs/node-geometry-editor",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.19.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.19.0",
|
|
27
27
|
"react": "^17.0.2",
|
|
28
28
|
"react-dom": "^17.0.2"
|
|
29
29
|
},
|