@babylonjs/node-geometry-editor 7.27.3 → 7.29.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.
|
@@ -263,11 +263,12 @@ import { GeometryDotBlock } from "@babylonjs/core/Meshes/Node/Blocks/geometryDot
|
|
|
263
263
|
import { GeometryReplaceColorBlock } from "@babylonjs/core/Meshes/Node/Blocks/geometryReplaceColorBlock";
|
|
264
264
|
import { GeometryRotate2dBlock } from "@babylonjs/core/Meshes/Node/Blocks/geometryRotate2dBlock";
|
|
265
265
|
import { GeometryLengthBlock } from "@babylonjs/core/Meshes/Node/Blocks/geometryLengthBlock";
|
|
266
|
+
import { GeometryInterceptorBlock } from "@babylonjs/core/Meshes/Node/Blocks/geometryInterceptorBlock";
|
|
266
267
|
/**
|
|
267
268
|
* Static class for BlockTools
|
|
268
269
|
*/
|
|
269
270
|
export class BlockTools {
|
|
270
|
-
static GetBlockFromString(data: string): GeometryRotate2dBlock | GeometryLengthBlock | GeometryDistanceBlock | GeometryDotBlock | GeometryPosterizeBlock | GeometryReplaceColorBlock | GeometryDesaturateBlock | GeometryCurveBlock | GeometryCrossBlock | GeometryClampBlock | BooleanGeometryBlock | GeometryTextureFetchBlock | GeometryTextureBlock | BoundingBlock | MatrixComposeBlock | GeometryInfoBlock | GeometryCollectionBlock | GeometryOptimizeBlock | NullBlock | TeleportInBlock | TeleportOutBlock | DebugBlock | IntFloatConverterBlock | ConditionBlock | GeometryLerpBlock | GeometryNLerpBlock | GeometrySmoothStepBlock | GeometryStepBlock | 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 | GeometryModBlock | GeometryPowBlock | GeometryInputBlock | MathBlock | GeometryTrigonometryBlock | GeometryArcTan2Block | InstantiateLinearBlock | InstantiateRadialBlock | null;
|
|
271
|
+
static GetBlockFromString(data: string): GeometryInterceptorBlock | GeometryRotate2dBlock | GeometryLengthBlock | GeometryDistanceBlock | GeometryDotBlock | GeometryPosterizeBlock | GeometryReplaceColorBlock | GeometryDesaturateBlock | GeometryCurveBlock | GeometryCrossBlock | GeometryClampBlock | BooleanGeometryBlock | GeometryTextureFetchBlock | GeometryTextureBlock | BoundingBlock | MatrixComposeBlock | GeometryInfoBlock | GeometryCollectionBlock | GeometryOptimizeBlock | NullBlock | TeleportInBlock | TeleportOutBlock | DebugBlock | IntFloatConverterBlock | ConditionBlock | GeometryLerpBlock | GeometryNLerpBlock | GeometrySmoothStepBlock | GeometryStepBlock | 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 | GeometryModBlock | GeometryPowBlock | GeometryInputBlock | MathBlock | GeometryTrigonometryBlock | GeometryArcTan2Block | InstantiateLinearBlock | InstantiateRadialBlock | null;
|
|
271
272
|
static GetColorFromConnectionNodeType(type: NodeGeometryBlockConnectionPointTypes): string;
|
|
272
273
|
static GetConnectionNodeTypeFromString(type: string): NodeGeometryBlockConnectionPointTypes.Int | NodeGeometryBlockConnectionPointTypes.Float | NodeGeometryBlockConnectionPointTypes.Vector2 | NodeGeometryBlockConnectionPointTypes.Vector3 | NodeGeometryBlockConnectionPointTypes.Vector4 | NodeGeometryBlockConnectionPointTypes.Matrix | NodeGeometryBlockConnectionPointTypes.AutoDetect;
|
|
273
274
|
static GetStringFromConnectionNodeType(type: NodeGeometryBlockConnectionPointTypes): "" | "Int" | "Float" | "Vector2" | "Vector3" | "Vector4" | "Matrix";
|
|
@@ -310,92 +311,6 @@ export class Popup {
|
|
|
310
311
|
static _CopyStyles(sourceDoc: HTMLDocument, targetDoc: HTMLDocument): void;
|
|
311
312
|
}
|
|
312
313
|
|
|
313
|
-
}
|
|
314
|
-
declare module "@babylonjs/node-geometry-editor/sharedComponents/lineWithFileButtonComponent" {
|
|
315
|
-
import * as React from "react";
|
|
316
|
-
interface ILineWithFileButtonComponentProps {
|
|
317
|
-
title: string;
|
|
318
|
-
closed?: boolean;
|
|
319
|
-
label: string;
|
|
320
|
-
iconImage: any;
|
|
321
|
-
onIconClick: (file: File) => void;
|
|
322
|
-
accept: string;
|
|
323
|
-
uploadName?: string;
|
|
324
|
-
}
|
|
325
|
-
export class LineWithFileButtonComponent extends React.Component<ILineWithFileButtonComponentProps, {
|
|
326
|
-
isExpanded: boolean;
|
|
327
|
-
}> {
|
|
328
|
-
private _uploadRef;
|
|
329
|
-
constructor(props: ILineWithFileButtonComponentProps);
|
|
330
|
-
onChange(evt: any): void;
|
|
331
|
-
switchExpandedState(): void;
|
|
332
|
-
|
|
333
|
-
}
|
|
334
|
-
export {};
|
|
335
|
-
|
|
336
|
-
}
|
|
337
|
-
declare module "@babylonjs/node-geometry-editor/sharedComponents/lineContainerComponent" {
|
|
338
|
-
import * as React from "react";
|
|
339
|
-
interface ILineContainerComponentProps {
|
|
340
|
-
title: string;
|
|
341
|
-
children: any[] | any;
|
|
342
|
-
closed?: boolean;
|
|
343
|
-
}
|
|
344
|
-
export class LineContainerComponent extends React.Component<ILineContainerComponentProps, {
|
|
345
|
-
isExpanded: boolean;
|
|
346
|
-
}> {
|
|
347
|
-
constructor(props: ILineContainerComponentProps);
|
|
348
|
-
switchExpandedState(): void;
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
}
|
|
352
|
-
export {};
|
|
353
|
-
|
|
354
|
-
}
|
|
355
|
-
declare module "@babylonjs/node-geometry-editor/sharedComponents/fileButtonLineComponent" {
|
|
356
|
-
import * as React from "react";
|
|
357
|
-
interface IFileButtonLineComponentProps {
|
|
358
|
-
label: string;
|
|
359
|
-
onClick: (file: File) => void;
|
|
360
|
-
accept: string;
|
|
361
|
-
uploadName?: string;
|
|
362
|
-
}
|
|
363
|
-
export class FileButtonLineComponent extends React.Component<IFileButtonLineComponentProps> {
|
|
364
|
-
private _uploadRef;
|
|
365
|
-
constructor(props: IFileButtonLineComponentProps);
|
|
366
|
-
onChange(evt: any): void;
|
|
367
|
-
|
|
368
|
-
}
|
|
369
|
-
export {};
|
|
370
|
-
|
|
371
|
-
}
|
|
372
|
-
declare module "@babylonjs/node-geometry-editor/sharedComponents/draggableLineWithButtonComponent" {
|
|
373
|
-
import * as React from "react";
|
|
374
|
-
export interface IDraggableLineWithButtonComponent {
|
|
375
|
-
data: string;
|
|
376
|
-
tooltip: string;
|
|
377
|
-
iconImage: any;
|
|
378
|
-
onIconClick: (value: string) => void;
|
|
379
|
-
iconTitle: string;
|
|
380
|
-
lenSuffixToRemove?: number;
|
|
381
|
-
}
|
|
382
|
-
export class DraggableLineWithButtonComponent extends React.Component<IDraggableLineWithButtonComponent> {
|
|
383
|
-
constructor(props: IDraggableLineWithButtonComponent);
|
|
384
|
-
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
}
|
|
388
|
-
declare module "@babylonjs/node-geometry-editor/sharedComponents/draggableLineComponent" {
|
|
389
|
-
import * as React from "react";
|
|
390
|
-
export interface IButtonLineComponentProps {
|
|
391
|
-
data: string;
|
|
392
|
-
tooltip: string;
|
|
393
|
-
}
|
|
394
|
-
export class DraggableLineComponent extends React.Component<IButtonLineComponentProps> {
|
|
395
|
-
constructor(props: IButtonLineComponentProps);
|
|
396
|
-
|
|
397
|
-
}
|
|
398
|
-
|
|
399
314
|
}
|
|
400
315
|
declare module "@babylonjs/node-geometry-editor/sharedComponents/checkBoxLineComponent" {
|
|
401
316
|
import * as React from "react";
|
|
@@ -2686,6 +2601,30 @@ export class LinkButtonComponent extends React.Component<ILinkButtonComponentPro
|
|
|
2686
2601
|
}
|
|
2687
2602
|
export {};
|
|
2688
2603
|
|
|
2604
|
+
}
|
|
2605
|
+
declare module "@babylonjs/node-geometry-editor/lines/lineWithFileButtonComponent" {
|
|
2606
|
+
import * as React from "react";
|
|
2607
|
+
interface ILineWithFileButtonComponentProps {
|
|
2608
|
+
title: string;
|
|
2609
|
+
closed?: boolean;
|
|
2610
|
+
multiple?: boolean;
|
|
2611
|
+
label: string;
|
|
2612
|
+
iconImage: any;
|
|
2613
|
+
onIconClick: (file: File) => void;
|
|
2614
|
+
accept: string;
|
|
2615
|
+
uploadName?: string;
|
|
2616
|
+
}
|
|
2617
|
+
export class LineWithFileButtonComponent extends React.Component<ILineWithFileButtonComponentProps, {
|
|
2618
|
+
isExpanded: boolean;
|
|
2619
|
+
}> {
|
|
2620
|
+
private _uploadRef;
|
|
2621
|
+
constructor(props: ILineWithFileButtonComponentProps);
|
|
2622
|
+
onChange(evt: any): void;
|
|
2623
|
+
switchExpandedState(): void;
|
|
2624
|
+
|
|
2625
|
+
}
|
|
2626
|
+
export {};
|
|
2627
|
+
|
|
2689
2628
|
}
|
|
2690
2629
|
declare module "@babylonjs/node-geometry-editor/lines/lineContainerComponent" {
|
|
2691
2630
|
import * as React from "react";
|
|
@@ -2914,10 +2853,28 @@ export class FileButtonLine extends React.Component<IFileButtonLineProps> {
|
|
|
2914
2853
|
}
|
|
2915
2854
|
export {};
|
|
2916
2855
|
|
|
2856
|
+
}
|
|
2857
|
+
declare module "@babylonjs/node-geometry-editor/lines/draggableLineWithButtonComponent" {
|
|
2858
|
+
import * as React from "react";
|
|
2859
|
+
export interface IDraggableLineWithButtonComponent {
|
|
2860
|
+
format: string;
|
|
2861
|
+
data: string;
|
|
2862
|
+
tooltip: string;
|
|
2863
|
+
iconImage: any;
|
|
2864
|
+
onIconClick: (value: string) => void;
|
|
2865
|
+
iconTitle: string;
|
|
2866
|
+
lenSuffixToRemove?: number;
|
|
2867
|
+
}
|
|
2868
|
+
export class DraggableLineWithButtonComponent extends React.Component<IDraggableLineWithButtonComponent> {
|
|
2869
|
+
constructor(props: IDraggableLineWithButtonComponent);
|
|
2870
|
+
|
|
2871
|
+
}
|
|
2872
|
+
|
|
2917
2873
|
}
|
|
2918
2874
|
declare module "@babylonjs/node-geometry-editor/lines/draggableLineComponent" {
|
|
2919
2875
|
import * as React from "react";
|
|
2920
2876
|
export interface IButtonLineComponentProps {
|
|
2877
|
+
format: string;
|
|
2921
2878
|
data: string;
|
|
2922
2879
|
tooltip: string;
|
|
2923
2880
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babylonjs/node-geometry-editor",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.29.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": "^7.
|
|
26
|
+
"@babylonjs/core": "^7.29.0",
|
|
27
27
|
"react": "^17.0.2",
|
|
28
28
|
"react-dom": "^17.0.2"
|
|
29
29
|
},
|