@babylonjs/node-geometry-editor 7.49.0 → 7.51.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.
@@ -260,11 +260,12 @@ import { LatticeBlock } from "@babylonjs/core/Meshes/Node/Blocks/Set/latticeBloc
260
260
  import { AggregatorBlock } from "@babylonjs/core/Meshes/Node/Blocks/Set/aggregatorBlock";
261
261
  import { CleanGeometryBlock } from "@babylonjs/core/Meshes/Node/Blocks/cleanGeometryBlock";
262
262
  import { PointListBlock } from "@babylonjs/core/Meshes/Node/Blocks/Sources/pointListBlock";
263
+ import { SubdivideBlock } from "@babylonjs/core/Meshes/Node/Blocks/subdivideBlock";
263
264
  /**
264
265
  * Static class for BlockTools
265
266
  */
266
267
  export class BlockTools {
267
- static GetBlockFromString(data: string): 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;
268
+ static GetBlockFromString(data: string): SubdivideBlock | 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;
268
269
  static GetColorFromConnectionNodeType(type: NodeGeometryBlockConnectionPointTypes): string;
269
270
  static GetConnectionNodeTypeFromString(type: string): NodeGeometryBlockConnectionPointTypes.Int | NodeGeometryBlockConnectionPointTypes.Float | NodeGeometryBlockConnectionPointTypes.Vector2 | NodeGeometryBlockConnectionPointTypes.Vector3 | NodeGeometryBlockConnectionPointTypes.Vector4 | NodeGeometryBlockConnectionPointTypes.Matrix | NodeGeometryBlockConnectionPointTypes.AutoDetect;
270
271
  static GetStringFromConnectionNodeType(type: NodeGeometryBlockConnectionPointTypes): "" | "Int" | "Float" | "Vector2" | "Vector3" | "Vector4" | "Matrix";
@@ -2602,30 +2603,32 @@ export interface ITextInputLineComponentProps {
2602
2603
  max?: number;
2603
2604
  placeholder?: string;
2604
2605
  unit?: React.ReactNode;
2605
- validator?: (value: string) => boolean;
2606
+ validator?: (input: string) => boolean;
2607
+ onValidateChangeFailed?: (invalidInput: string) => void;
2606
2608
  multilines?: boolean;
2607
2609
  throttlePropertyChangedNotification?: boolean;
2608
2610
  throttlePropertyChangedNotificationDelay?: number;
2609
2611
  disabled?: boolean;
2610
2612
  }
2611
- export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
2612
- value: string;
2613
+ interface ITextInputLineComponentState {
2614
+ input: string;
2613
2615
  dragging: boolean;
2614
- }> {
2616
+ inputValid: boolean;
2617
+ }
2618
+ export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, ITextInputLineComponentState> {
2615
2619
  private _localChange;
2616
2620
  constructor(props: ITextInputLineComponentProps);
2617
2621
  componentWillUnmount(): void;
2618
- shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: {
2619
- value: string;
2620
- dragging: boolean;
2621
- }): boolean;
2622
+ shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: ITextInputLineComponentState): boolean;
2622
2623
  raiseOnPropertyChanged(newValue: string, previousValue: string): void;
2623
2624
  getCurrentNumericValue(value: string): number;
2624
- updateValue(value: string, valueToValidate?: string): void;
2625
+ updateInput(input: string): void;
2626
+ updateValue(adjustedInput?: string, updateState?: boolean): void;
2625
2627
  incrementValue(amount: number): void;
2626
2628
  onKeyDown(event: React.KeyboardEvent): void;
2627
2629
 
2628
2630
  }
2631
+ export {};
2629
2632
 
2630
2633
  }
2631
2634
  declare module "@babylonjs/node-geometry-editor/lines/targetsProxy" {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/node-geometry-editor",
3
- "version": "7.49.0",
3
+ "version": "7.51.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.49.0",
26
+ "@babylonjs/core": "^7.51.0",
27
27
  "react": "^17.0.2",
28
28
  "react-dom": "^17.0.2"
29
29
  },