babylonjs-node-geometry-editor 7.53.2 → 7.54.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.
@@ -145,7 +145,7 @@ declare module BABYLON.NodeGeometryEditor {
145
145
  * Static class for BlockTools
146
146
  */
147
147
  export class BlockTools {
148
- static GetBlockFromString(data: string): BABYLON.SubdivideBlock | BABYLON.PointListBlock | BABYLON.CleanGeometryBlock | BABYLON.AggregatorBlock | BABYLON.LatticeBlock | BABYLON.GeometryInterceptorBlock | BABYLON.GeometryRotate2dBlock | BABYLON.GeometryLengthBlock | BABYLON.GeometryDistanceBlock | BABYLON.GeometryDotBlock | BABYLON.GeometryPosterizeBlock | BABYLON.GeometryReplaceColorBlock | BABYLON.GeometryDesaturateBlock | BABYLON.GeometryCurveBlock | BABYLON.GeometryCrossBlock | BABYLON.GeometryClampBlock | BABYLON.BooleanGeometryBlock | BABYLON.GeometryTextureFetchBlock | BABYLON.GeometryTextureBlock | BABYLON.BoundingBlock | BABYLON.MatrixComposeBlock | BABYLON.GeometryInfoBlock | BABYLON.GeometryCollectionBlock | BABYLON.GeometryOptimizeBlock | BABYLON.NullBlock | BABYLON.TeleportInBlock | BABYLON.TeleportOutBlock | BABYLON.DebugBlock | BABYLON.IntFloatConverterBlock | BABYLON.ConditionBlock | BABYLON.GeometryLerpBlock | BABYLON.GeometryNLerpBlock | BABYLON.GeometrySmoothStepBlock | BABYLON.GeometryStepBlock | BABYLON.MappingBlock | BABYLON.SetMaterialIDBlock | BABYLON.InstantiateOnVolumeBlock | BABYLON.InstantiateOnFacesBlock | BABYLON.InstantiateOnVerticesBlock | BABYLON.InstantiateBlock | BABYLON.MapRangeBlock | BABYLON.NormalizeVectorBlock | BABYLON.MeshBlock | BABYLON.VectorConverterBlock | BABYLON.TranslationBlock | BABYLON.ScalingBlock | BABYLON.AlignBlock | BABYLON.RotationXBlock | BABYLON.RotationYBlock | BABYLON.RotationZBlock | BABYLON.ComputeNormalsBlock | BABYLON.SetPositionsBlock | BABYLON.SetNormalsBlock | BABYLON.SetColorsBlock | BABYLON.SetTangentsBlock | BABYLON.SetUVsBlock | BABYLON.NoiseBlock | BABYLON.RandomBlock | BABYLON.GeometryOutputBlock | BABYLON.GridBlock | BABYLON.DiscBlock | BABYLON.IcoSphereBlock | BABYLON.BoxBlock | BABYLON.TorusBlock | BABYLON.SphereBlock | BABYLON.CylinderBlock | BABYLON.CapsuleBlock | BABYLON.PlaneBlock | BABYLON.GeometryElbowBlock | BABYLON.MergeGeometryBlock | BABYLON.GeometryTransformBlock | BABYLON.GeometryModBlock | BABYLON.GeometryPowBlock | BABYLON.GeometryInputBlock | BABYLON.MathBlock | BABYLON.GeometryTrigonometryBlock | BABYLON.GeometryArcTan2Block | BABYLON.InstantiateLinearBlock | BABYLON.InstantiateRadialBlock | null;
148
+ static GetBlockFromString(data: string): BABYLON.GeometryEaseBlock | BABYLON.SubdivideBlock | BABYLON.PointListBlock | BABYLON.CleanGeometryBlock | BABYLON.AggregatorBlock | BABYLON.LatticeBlock | BABYLON.GeometryInterceptorBlock | BABYLON.GeometryRotate2dBlock | BABYLON.GeometryLengthBlock | BABYLON.GeometryDistanceBlock | BABYLON.GeometryDotBlock | BABYLON.GeometryPosterizeBlock | BABYLON.GeometryReplaceColorBlock | BABYLON.GeometryDesaturateBlock | BABYLON.GeometryCurveBlock | BABYLON.GeometryCrossBlock | BABYLON.GeometryClampBlock | BABYLON.BooleanGeometryBlock | BABYLON.GeometryTextureFetchBlock | BABYLON.GeometryTextureBlock | BABYLON.BoundingBlock | BABYLON.MatrixComposeBlock | BABYLON.GeometryInfoBlock | BABYLON.GeometryCollectionBlock | BABYLON.GeometryOptimizeBlock | BABYLON.NullBlock | BABYLON.TeleportInBlock | BABYLON.TeleportOutBlock | BABYLON.DebugBlock | BABYLON.IntFloatConverterBlock | BABYLON.ConditionBlock | BABYLON.GeometryLerpBlock | BABYLON.GeometryNLerpBlock | BABYLON.GeometrySmoothStepBlock | BABYLON.GeometryStepBlock | BABYLON.MappingBlock | BABYLON.SetMaterialIDBlock | BABYLON.InstantiateOnVolumeBlock | BABYLON.InstantiateOnFacesBlock | BABYLON.InstantiateOnVerticesBlock | BABYLON.InstantiateBlock | BABYLON.MapRangeBlock | BABYLON.NormalizeVectorBlock | BABYLON.MeshBlock | BABYLON.VectorConverterBlock | BABYLON.TranslationBlock | BABYLON.ScalingBlock | BABYLON.AlignBlock | BABYLON.RotationXBlock | BABYLON.RotationYBlock | BABYLON.RotationZBlock | BABYLON.ComputeNormalsBlock | BABYLON.SetPositionsBlock | BABYLON.SetNormalsBlock | BABYLON.SetColorsBlock | BABYLON.SetTangentsBlock | BABYLON.SetUVsBlock | BABYLON.NoiseBlock | BABYLON.RandomBlock | BABYLON.GeometryOutputBlock | BABYLON.GridBlock | BABYLON.DiscBlock | BABYLON.IcoSphereBlock | BABYLON.BoxBlock | BABYLON.TorusBlock | BABYLON.SphereBlock | BABYLON.CylinderBlock | BABYLON.CapsuleBlock | BABYLON.PlaneBlock | BABYLON.GeometryElbowBlock | BABYLON.MergeGeometryBlock | BABYLON.GeometryTransformBlock | BABYLON.GeometryModBlock | BABYLON.GeometryPowBlock | BABYLON.GeometryInputBlock | BABYLON.MathBlock | BABYLON.GeometryTrigonometryBlock | BABYLON.GeometryArcTan2Block | BABYLON.InstantiateLinearBlock | BABYLON.InstantiateRadialBlock | null;
149
149
  static GetColorFromConnectionNodeType(type: BABYLON.NodeGeometryBlockConnectionPointTypes): string;
150
150
  static GetConnectionNodeTypeFromString(type: string): BABYLON.NodeGeometryBlockConnectionPointTypes.Int | BABYLON.NodeGeometryBlockConnectionPointTypes.Float | BABYLON.NodeGeometryBlockConnectionPointTypes.Vector2 | BABYLON.NodeGeometryBlockConnectionPointTypes.Vector3 | BABYLON.NodeGeometryBlockConnectionPointTypes.Vector4 | BABYLON.NodeGeometryBlockConnectionPointTypes.Matrix | BABYLON.NodeGeometryBlockConnectionPointTypes.AutoDetect;
151
151
  static GetStringFromConnectionNodeType(type: BABYLON.NodeGeometryBlockConnectionPointTypes): "" | "Int" | "Float" | "Vector2" | "Vector3" | "Vector4" | "Matrix";
@@ -1360,7 +1360,17 @@ declare module BABYLON.NodeGeometryEditor {
1360
1360
  declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
1361
1361
  export const IsFramePortData: (variableToCheck: any) => variableToCheck is BABYLON.NodeGeometryEditor.SharedUIComponents.FramePortData;
1362
1362
  export const RefreshNode: (node: BABYLON.NodeGeometryEditor.SharedUIComponents.GraphNode, visitedNodes?: Set<BABYLON.NodeGeometryEditor.SharedUIComponents.GraphNode>, visitedLinks?: Set<BABYLON.NodeGeometryEditor.SharedUIComponents.NodeLink>, canvas?: BABYLON.NodeGeometryEditor.SharedUIComponents.GraphCanvasComponent) => void;
1363
- export const BuildFloatUI: (container: HTMLDivElement, document: Document, displayName: string, isInteger: boolean, source: any, propertyName: string, onChange: () => void, min?: number, max?: number, visualPropertiesRefresh?: Array<() => void>) => void;
1363
+ export const BuildFloatUI: (container: HTMLDivElement, document: Document, displayName: string, isInteger: boolean, source: any, propertyName: string, onChange: () => void, min?: number, max?: number, visualPropertiesRefresh?: Array<() => void>, additionalClassName?: string) => void;
1364
+ export function GetListOfAcceptedTypes<T extends Record<string, string | number>>(types: T, allValue: number, autoDetectValue: number, port: {
1365
+ acceptedConnectionPointTypes: number[];
1366
+ excludedConnectionPointTypes: number[];
1367
+ type: number;
1368
+ }, skips?: number[]): string[];
1369
+ export function GetConnectionErrorMessage<T extends Record<string, string | number>>(sourceType: number, types: T, allValue: number, autoDetectValue: number, port: {
1370
+ acceptedConnectionPointTypes: number[];
1371
+ excludedConnectionPointTypes: number[];
1372
+ type: number;
1373
+ }, skips?: number[]): string;
1364
1374
 
1365
1375
 
1366
1376
 
@@ -1408,7 +1418,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
1408
1418
  exportData: (data: any, frame?: BABYLON.Nullable<BABYLON.NodeGeometryEditor.SharedUIComponents.GraphFrame>) => string;
1409
1419
  isElbowConnectionAllowed: (nodeA: BABYLON.NodeGeometryEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeGeometryEditor.SharedUIComponents.NodePort, nodeB: BABYLON.NodeGeometryEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeGeometryEditor.SharedUIComponents.NodePort) => boolean;
1410
1420
  isDebugConnectionAllowed: (nodeA: BABYLON.NodeGeometryEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeGeometryEditor.SharedUIComponents.NodePort, nodeB: BABYLON.NodeGeometryEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeGeometryEditor.SharedUIComponents.NodePort) => boolean;
1411
- applyNodePortDesign: (data: BABYLON.NodeGeometryEditor.SharedUIComponents.IPortData, element: HTMLElement, img: HTMLImageElement, pip: HTMLDivElement) => void;
1421
+ applyNodePortDesign: (data: BABYLON.NodeGeometryEditor.SharedUIComponents.IPortData, element: HTMLElement, imgHost: HTMLDivElement, pip: HTMLDivElement) => boolean;
1412
1422
  getPortColor: (portData: BABYLON.NodeGeometryEditor.SharedUIComponents.IPortData) => string;
1413
1423
  storeEditorData: (serializationObject: any, frame?: BABYLON.Nullable<BABYLON.NodeGeometryEditor.SharedUIComponents.GraphFrame>) => void;
1414
1424
  getEditorDataMap: () => {
@@ -1482,7 +1492,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
1482
1492
  node: BABYLON.NodeGeometryEditor.SharedUIComponents.GraphNode;
1483
1493
  protected _element: HTMLDivElement;
1484
1494
  protected _portContainer: HTMLElement;
1485
- protected _img: HTMLImageElement;
1495
+ protected _imgHost: HTMLDivElement;
1486
1496
  protected _pip: HTMLDivElement;
1487
1497
  protected _stateManager: BABYLON.NodeGeometryEditor.SharedUIComponents.StateManager;
1488
1498
  protected _portLabelElement: Element;
@@ -1569,6 +1579,7 @@ declare module BABYLON.NodeGeometryEditor {
1569
1579
  declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
1570
1580
  export class GraphNode {
1571
1581
  content: BABYLON.NodeGeometryEditor.SharedUIComponents.INodeData;
1582
+ private static _IdGenerator;
1572
1583
  private _visual;
1573
1584
  private _headerContainer;
1574
1585
  private _headerIcon;
@@ -1600,11 +1611,11 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
1600
1611
  private _onUpdateRequiredObserver;
1601
1612
  private _onHighlightNodeObserver;
1602
1613
  private _ownerCanvas;
1603
- private _isSelected;
1604
1614
  private _displayManager;
1605
1615
  private _isVisible;
1606
1616
  private _enclosingFrameId;
1607
1617
  private _visualPropertiesRefresh;
1618
+ private _lastClick;
1608
1619
  addClassToVisual(className: string): void;
1609
1620
  removeClassFromVisual(className: string): void;
1610
1621
  get isCollapsed(): boolean;
@@ -1624,10 +1635,8 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
1624
1635
  get height(): number;
1625
1636
  get id(): number;
1626
1637
  get name(): string;
1627
- get isSelected(): boolean;
1628
1638
  get enclosingFrameId(): number;
1629
1639
  set enclosingFrameId(value: number);
1630
- set isSelected(value: boolean);
1631
1640
  setIsSelected(value: boolean, marqueeSelection: boolean): void;
1632
1641
  get rootElement(): HTMLDivElement;
1633
1642
  constructor(content: BABYLON.NodeGeometryEditor.SharedUIComponents.INodeData, stateManager: BABYLON.NodeGeometryEditor.SharedUIComponents.StateManager);
@@ -1639,10 +1648,11 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
1639
1648
  private _refreshFrames;
1640
1649
  _refreshLinks(): void;
1641
1650
  refresh(): void;
1651
+ private _expand;
1652
+ private _searchMiddle;
1642
1653
  private _onDown;
1643
1654
  cleanAccumulation(useCeil?: boolean): void;
1644
1655
  private _onUp;
1645
- private _attach;
1646
1656
  private _onMove;
1647
1657
  renderProperties(): BABYLON.Nullable<JSX.Element>;
1648
1658
  _forceRebuild(source: any, propertyName: string, notifiers?: BABYLON.IEditablePropertyOption["notifiers"]): void;
@@ -1860,6 +1870,8 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
1860
1870
  private _candidateLinkedHasMoved;
1861
1871
  private _x;
1862
1872
  private _y;
1873
+ private _lastx;
1874
+ private _lasty;
1863
1875
  private _zoom;
1864
1876
  private _selectedNodes;
1865
1877
  private _selectedLink;
@@ -1873,6 +1885,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
1873
1885
  private _frames;
1874
1886
  private _nodeDataContentList;
1875
1887
  private _altKeyIsPressed;
1888
+ private _shiftKeyIsPressed;
1876
1889
  private _multiKeyIsPressed;
1877
1890
  private _oldY;
1878
1891
  _frameIsMoving: boolean;