@babylonjs/node-geometry-editor 9.5.1 → 9.6.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.
|
@@ -276,11 +276,12 @@ import { PointListBlock } from "@babylonjs/core/Meshes/Node/Blocks/Sources/point
|
|
|
276
276
|
import { SubdivideBlock } from "@babylonjs/core/Meshes/Node/Blocks/subdivideBlock";
|
|
277
277
|
import { GeometryEaseBlock } from "@babylonjs/core/Meshes/Node/Blocks/geometryEaseBlock";
|
|
278
278
|
import { ExtrudeGeometryBlock } from "@babylonjs/core/Meshes/Node/Blocks/extrudeGeometryBlock";
|
|
279
|
+
import { BevelBlock } from "@babylonjs/core/Meshes/Node/Blocks/bevelBlock";
|
|
279
280
|
/**
|
|
280
281
|
* Static class for BlockTools
|
|
281
282
|
*/
|
|
282
283
|
export class BlockTools {
|
|
283
|
-
static GetBlockFromString(data: string): GeometryEaseBlock | SubdivideBlock | ExtrudeGeometryBlock | PointListBlock | CleanGeometryBlock | AggregatorBlock | LatticeBlock | 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;
|
|
284
|
+
static GetBlockFromString(data: string): GeometryEaseBlock | SubdivideBlock | ExtrudeGeometryBlock | BevelBlock | PointListBlock | CleanGeometryBlock | AggregatorBlock | LatticeBlock | 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;
|
|
284
285
|
static GetColorFromConnectionNodeType(type: NodeGeometryBlockConnectionPointTypes): string;
|
|
285
286
|
static GetConnectionNodeTypeFromString(type: string): NodeGeometryBlockConnectionPointTypes.Int | NodeGeometryBlockConnectionPointTypes.Float | NodeGeometryBlockConnectionPointTypes.Vector2 | NodeGeometryBlockConnectionPointTypes.Vector3 | NodeGeometryBlockConnectionPointTypes.Vector4 | NodeGeometryBlockConnectionPointTypes.Matrix | NodeGeometryBlockConnectionPointTypes.AutoDetect;
|
|
286
287
|
static GetStringFromConnectionNodeType(type: NodeGeometryBlockConnectionPointTypes): "" | "Int" | "Float" | "Vector2" | "Vector3" | "Vector4" | "Matrix";
|
|
@@ -2103,8 +2104,9 @@ export class GraphNode {
|
|
|
2103
2104
|
* Shows a validation badge on the node header.
|
|
2104
2105
|
* @param severity - "error" | "warning" | null. Pass null to hide the badge.
|
|
2105
2106
|
* @param tooltip - tooltip text shown on hover.
|
|
2107
|
+
* @param onClick - optional callback invoked when the badge is clicked.
|
|
2106
2108
|
*/
|
|
2107
|
-
setValidationState(severity: "error" | "warning" | null, tooltip?: string): void;
|
|
2109
|
+
setValidationState(severity: "error" | "warning" | null, tooltip?: string, onClick?: () => void): void;
|
|
2108
2110
|
/**
|
|
2109
2111
|
* Shows or hides a breakpoint indicator on the node.
|
|
2110
2112
|
* @param active - true to show the red breakpoint dot, false to hide.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babylonjs/node-geometry-editor",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.6.0",
|
|
4
4
|
"main": "dist/babylon.nodeGeometryEditor.js",
|
|
5
5
|
"module": "dist/babylon.nodeGeometryEditor.js",
|
|
6
6
|
"esnext": "dist/babylon.nodeGeometryEditor.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@types/react-dom": ">=16.0.9"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@babylonjs/core": "9.
|
|
26
|
+
"@babylonjs/core": "9.6.0",
|
|
27
27
|
"@tools/node-geometry-editor": "1.0.0",
|
|
28
28
|
"react": "^18.2.0",
|
|
29
29
|
"react-dom": "^18.2.0"
|