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.
|
@@ -261,11 +261,12 @@ import { AggregatorBlock } from "babylonjs/Meshes/Node/Blocks/Set/aggregatorBloc
|
|
|
261
261
|
import { CleanGeometryBlock } from "babylonjs/Meshes/Node/Blocks/cleanGeometryBlock";
|
|
262
262
|
import { PointListBlock } from "babylonjs/Meshes/Node/Blocks/Sources/pointListBlock";
|
|
263
263
|
import { SubdivideBlock } from "babylonjs/Meshes/Node/Blocks/subdivideBlock";
|
|
264
|
+
import { GeometryEaseBlock } from "babylonjs/Meshes/Node/Blocks/geometryEaseBlock";
|
|
264
265
|
/**
|
|
265
266
|
* Static class for BlockTools
|
|
266
267
|
*/
|
|
267
268
|
export class BlockTools {
|
|
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;
|
|
269
|
+
static GetBlockFromString(data: string): GeometryEaseBlock | 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;
|
|
269
270
|
static GetColorFromConnectionNodeType(type: NodeGeometryBlockConnectionPointTypes): string;
|
|
270
271
|
static GetConnectionNodeTypeFromString(type: string): NodeGeometryBlockConnectionPointTypes.Int | NodeGeometryBlockConnectionPointTypes.Float | NodeGeometryBlockConnectionPointTypes.Vector2 | NodeGeometryBlockConnectionPointTypes.Vector3 | NodeGeometryBlockConnectionPointTypes.Vector4 | NodeGeometryBlockConnectionPointTypes.Matrix | NodeGeometryBlockConnectionPointTypes.AutoDetect;
|
|
271
272
|
static GetStringFromConnectionNodeType(type: NodeGeometryBlockConnectionPointTypes): "" | "Int" | "Float" | "Vector2" | "Vector3" | "Vector4" | "Matrix";
|
|
@@ -1598,7 +1599,17 @@ import { NodeLink } from "babylonjs-node-geometry-editor/nodeGraphSystem/nodeLin
|
|
|
1598
1599
|
import { FramePortData } from "babylonjs-node-geometry-editor/nodeGraphSystem/types/framePortData";
|
|
1599
1600
|
export const IsFramePortData: (variableToCheck: any) => variableToCheck is FramePortData;
|
|
1600
1601
|
export const RefreshNode: (node: GraphNode, visitedNodes?: Set<GraphNode>, visitedLinks?: Set<NodeLink>, canvas?: GraphCanvasComponent) => void;
|
|
1601
|
-
export const BuildFloatUI: (container: HTMLDivElement, document: Document, displayName: string, isInteger: boolean, source: any, propertyName: string, onChange: () => void, min?: number, max?: number, visualPropertiesRefresh?: Array<() => void
|
|
1602
|
+
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;
|
|
1603
|
+
export function GetListOfAcceptedTypes<T extends Record<string, string | number>>(types: T, allValue: number, autoDetectValue: number, port: {
|
|
1604
|
+
acceptedConnectionPointTypes: number[];
|
|
1605
|
+
excludedConnectionPointTypes: number[];
|
|
1606
|
+
type: number;
|
|
1607
|
+
}, skips?: number[]): string[];
|
|
1608
|
+
export function GetConnectionErrorMessage<T extends Record<string, string | number>>(sourceType: number, types: T, allValue: number, autoDetectValue: number, port: {
|
|
1609
|
+
acceptedConnectionPointTypes: number[];
|
|
1610
|
+
excludedConnectionPointTypes: number[];
|
|
1611
|
+
type: number;
|
|
1612
|
+
}, skips?: number[]): string;
|
|
1602
1613
|
|
|
1603
1614
|
}
|
|
1604
1615
|
declare module "babylonjs-node-geometry-editor/nodeGraphSystem/stateManager" {
|
|
@@ -1653,7 +1664,7 @@ export class StateManager {
|
|
|
1653
1664
|
exportData: (data: any, frame?: Nullable<GraphFrame>) => string;
|
|
1654
1665
|
isElbowConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
|
|
1655
1666
|
isDebugConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
|
|
1656
|
-
applyNodePortDesign: (data: IPortData, element: HTMLElement,
|
|
1667
|
+
applyNodePortDesign: (data: IPortData, element: HTMLElement, imgHost: HTMLDivElement, pip: HTMLDivElement) => boolean;
|
|
1657
1668
|
getPortColor: (portData: IPortData) => string;
|
|
1658
1669
|
storeEditorData: (serializationObject: any, frame?: Nullable<GraphFrame>) => void;
|
|
1659
1670
|
getEditorDataMap: () => {
|
|
@@ -1723,7 +1734,7 @@ export class NodePort {
|
|
|
1723
1734
|
node: GraphNode;
|
|
1724
1735
|
protected _element: HTMLDivElement;
|
|
1725
1736
|
protected _portContainer: HTMLElement;
|
|
1726
|
-
protected
|
|
1737
|
+
protected _imgHost: HTMLDivElement;
|
|
1727
1738
|
protected _pip: HTMLDivElement;
|
|
1728
1739
|
protected _stateManager: StateManager;
|
|
1729
1740
|
protected _portLabelElement: Element;
|
|
@@ -1806,6 +1817,7 @@ import { IPortData } from "babylonjs-node-geometry-editor/nodeGraphSystem/interf
|
|
|
1806
1817
|
import { IEditablePropertyOption } from "babylonjs/Decorators/nodeDecorator";
|
|
1807
1818
|
export class GraphNode {
|
|
1808
1819
|
content: INodeData;
|
|
1820
|
+
private static _IdGenerator;
|
|
1809
1821
|
private _visual;
|
|
1810
1822
|
private _headerContainer;
|
|
1811
1823
|
private _headerIcon;
|
|
@@ -1837,11 +1849,11 @@ export class GraphNode {
|
|
|
1837
1849
|
private _onUpdateRequiredObserver;
|
|
1838
1850
|
private _onHighlightNodeObserver;
|
|
1839
1851
|
private _ownerCanvas;
|
|
1840
|
-
private _isSelected;
|
|
1841
1852
|
private _displayManager;
|
|
1842
1853
|
private _isVisible;
|
|
1843
1854
|
private _enclosingFrameId;
|
|
1844
1855
|
private _visualPropertiesRefresh;
|
|
1856
|
+
private _lastClick;
|
|
1845
1857
|
addClassToVisual(className: string): void;
|
|
1846
1858
|
removeClassFromVisual(className: string): void;
|
|
1847
1859
|
get isCollapsed(): boolean;
|
|
@@ -1861,10 +1873,8 @@ export class GraphNode {
|
|
|
1861
1873
|
get height(): number;
|
|
1862
1874
|
get id(): number;
|
|
1863
1875
|
get name(): string;
|
|
1864
|
-
get isSelected(): boolean;
|
|
1865
1876
|
get enclosingFrameId(): number;
|
|
1866
1877
|
set enclosingFrameId(value: number);
|
|
1867
|
-
set isSelected(value: boolean);
|
|
1868
1878
|
setIsSelected(value: boolean, marqueeSelection: boolean): void;
|
|
1869
1879
|
get rootElement(): HTMLDivElement;
|
|
1870
1880
|
constructor(content: INodeData, stateManager: StateManager);
|
|
@@ -1876,10 +1886,11 @@ export class GraphNode {
|
|
|
1876
1886
|
private _refreshFrames;
|
|
1877
1887
|
_refreshLinks(): void;
|
|
1878
1888
|
refresh(): void;
|
|
1889
|
+
private _expand;
|
|
1890
|
+
private _searchMiddle;
|
|
1879
1891
|
private _onDown;
|
|
1880
1892
|
cleanAccumulation(useCeil?: boolean): void;
|
|
1881
1893
|
private _onUp;
|
|
1882
|
-
private _attach;
|
|
1883
1894
|
private _onMove;
|
|
1884
1895
|
renderProperties(): Nullable<JSX.Element>;
|
|
1885
1896
|
_forceRebuild(source: any, propertyName: string, notifiers?: IEditablePropertyOption["notifiers"]): void;
|
|
@@ -2103,6 +2114,8 @@ export class GraphCanvasComponent extends React.Component<IGraphCanvasComponentP
|
|
|
2103
2114
|
private _candidateLinkedHasMoved;
|
|
2104
2115
|
private _x;
|
|
2105
2116
|
private _y;
|
|
2117
|
+
private _lastx;
|
|
2118
|
+
private _lasty;
|
|
2106
2119
|
private _zoom;
|
|
2107
2120
|
private _selectedNodes;
|
|
2108
2121
|
private _selectedLink;
|
|
@@ -2116,6 +2129,7 @@ export class GraphCanvasComponent extends React.Component<IGraphCanvasComponentP
|
|
|
2116
2129
|
private _frames;
|
|
2117
2130
|
private _nodeDataContentList;
|
|
2118
2131
|
private _altKeyIsPressed;
|
|
2132
|
+
private _shiftKeyIsPressed;
|
|
2119
2133
|
private _multiKeyIsPressed;
|
|
2120
2134
|
private _oldY;
|
|
2121
2135
|
_frameIsMoving: boolean;
|
|
@@ -4587,7 +4601,7 @@ declare module BABYLON.NodeGeometryEditor {
|
|
|
4587
4601
|
* Static class for BlockTools
|
|
4588
4602
|
*/
|
|
4589
4603
|
export class BlockTools {
|
|
4590
|
-
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;
|
|
4604
|
+
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;
|
|
4591
4605
|
static GetColorFromConnectionNodeType(type: BABYLON.NodeGeometryBlockConnectionPointTypes): string;
|
|
4592
4606
|
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;
|
|
4593
4607
|
static GetStringFromConnectionNodeType(type: BABYLON.NodeGeometryBlockConnectionPointTypes): "" | "Int" | "Float" | "Vector2" | "Vector3" | "Vector4" | "Matrix";
|
|
@@ -5802,7 +5816,17 @@ declare module BABYLON.NodeGeometryEditor {
|
|
|
5802
5816
|
declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
5803
5817
|
export const IsFramePortData: (variableToCheck: any) => variableToCheck is BABYLON.NodeGeometryEditor.SharedUIComponents.FramePortData;
|
|
5804
5818
|
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;
|
|
5805
|
-
export const BuildFloatUI: (container: HTMLDivElement, document: Document, displayName: string, isInteger: boolean, source: any, propertyName: string, onChange: () => void, min?: number, max?: number, visualPropertiesRefresh?: Array<() => void
|
|
5819
|
+
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;
|
|
5820
|
+
export function GetListOfAcceptedTypes<T extends Record<string, string | number>>(types: T, allValue: number, autoDetectValue: number, port: {
|
|
5821
|
+
acceptedConnectionPointTypes: number[];
|
|
5822
|
+
excludedConnectionPointTypes: number[];
|
|
5823
|
+
type: number;
|
|
5824
|
+
}, skips?: number[]): string[];
|
|
5825
|
+
export function GetConnectionErrorMessage<T extends Record<string, string | number>>(sourceType: number, types: T, allValue: number, autoDetectValue: number, port: {
|
|
5826
|
+
acceptedConnectionPointTypes: number[];
|
|
5827
|
+
excludedConnectionPointTypes: number[];
|
|
5828
|
+
type: number;
|
|
5829
|
+
}, skips?: number[]): string;
|
|
5806
5830
|
|
|
5807
5831
|
|
|
5808
5832
|
|
|
@@ -5850,7 +5874,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
5850
5874
|
exportData: (data: any, frame?: BABYLON.Nullable<BABYLON.NodeGeometryEditor.SharedUIComponents.GraphFrame>) => string;
|
|
5851
5875
|
isElbowConnectionAllowed: (nodeA: BABYLON.NodeGeometryEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeGeometryEditor.SharedUIComponents.NodePort, nodeB: BABYLON.NodeGeometryEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeGeometryEditor.SharedUIComponents.NodePort) => boolean;
|
|
5852
5876
|
isDebugConnectionAllowed: (nodeA: BABYLON.NodeGeometryEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeGeometryEditor.SharedUIComponents.NodePort, nodeB: BABYLON.NodeGeometryEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeGeometryEditor.SharedUIComponents.NodePort) => boolean;
|
|
5853
|
-
applyNodePortDesign: (data: BABYLON.NodeGeometryEditor.SharedUIComponents.IPortData, element: HTMLElement,
|
|
5877
|
+
applyNodePortDesign: (data: BABYLON.NodeGeometryEditor.SharedUIComponents.IPortData, element: HTMLElement, imgHost: HTMLDivElement, pip: HTMLDivElement) => boolean;
|
|
5854
5878
|
getPortColor: (portData: BABYLON.NodeGeometryEditor.SharedUIComponents.IPortData) => string;
|
|
5855
5879
|
storeEditorData: (serializationObject: any, frame?: BABYLON.Nullable<BABYLON.NodeGeometryEditor.SharedUIComponents.GraphFrame>) => void;
|
|
5856
5880
|
getEditorDataMap: () => {
|
|
@@ -5924,7 +5948,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
5924
5948
|
node: BABYLON.NodeGeometryEditor.SharedUIComponents.GraphNode;
|
|
5925
5949
|
protected _element: HTMLDivElement;
|
|
5926
5950
|
protected _portContainer: HTMLElement;
|
|
5927
|
-
protected
|
|
5951
|
+
protected _imgHost: HTMLDivElement;
|
|
5928
5952
|
protected _pip: HTMLDivElement;
|
|
5929
5953
|
protected _stateManager: BABYLON.NodeGeometryEditor.SharedUIComponents.StateManager;
|
|
5930
5954
|
protected _portLabelElement: Element;
|
|
@@ -6011,6 +6035,7 @@ declare module BABYLON.NodeGeometryEditor {
|
|
|
6011
6035
|
declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
6012
6036
|
export class GraphNode {
|
|
6013
6037
|
content: BABYLON.NodeGeometryEditor.SharedUIComponents.INodeData;
|
|
6038
|
+
private static _IdGenerator;
|
|
6014
6039
|
private _visual;
|
|
6015
6040
|
private _headerContainer;
|
|
6016
6041
|
private _headerIcon;
|
|
@@ -6042,11 +6067,11 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
6042
6067
|
private _onUpdateRequiredObserver;
|
|
6043
6068
|
private _onHighlightNodeObserver;
|
|
6044
6069
|
private _ownerCanvas;
|
|
6045
|
-
private _isSelected;
|
|
6046
6070
|
private _displayManager;
|
|
6047
6071
|
private _isVisible;
|
|
6048
6072
|
private _enclosingFrameId;
|
|
6049
6073
|
private _visualPropertiesRefresh;
|
|
6074
|
+
private _lastClick;
|
|
6050
6075
|
addClassToVisual(className: string): void;
|
|
6051
6076
|
removeClassFromVisual(className: string): void;
|
|
6052
6077
|
get isCollapsed(): boolean;
|
|
@@ -6066,10 +6091,8 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
6066
6091
|
get height(): number;
|
|
6067
6092
|
get id(): number;
|
|
6068
6093
|
get name(): string;
|
|
6069
|
-
get isSelected(): boolean;
|
|
6070
6094
|
get enclosingFrameId(): number;
|
|
6071
6095
|
set enclosingFrameId(value: number);
|
|
6072
|
-
set isSelected(value: boolean);
|
|
6073
6096
|
setIsSelected(value: boolean, marqueeSelection: boolean): void;
|
|
6074
6097
|
get rootElement(): HTMLDivElement;
|
|
6075
6098
|
constructor(content: BABYLON.NodeGeometryEditor.SharedUIComponents.INodeData, stateManager: BABYLON.NodeGeometryEditor.SharedUIComponents.StateManager);
|
|
@@ -6081,10 +6104,11 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
6081
6104
|
private _refreshFrames;
|
|
6082
6105
|
_refreshLinks(): void;
|
|
6083
6106
|
refresh(): void;
|
|
6107
|
+
private _expand;
|
|
6108
|
+
private _searchMiddle;
|
|
6084
6109
|
private _onDown;
|
|
6085
6110
|
cleanAccumulation(useCeil?: boolean): void;
|
|
6086
6111
|
private _onUp;
|
|
6087
|
-
private _attach;
|
|
6088
6112
|
private _onMove;
|
|
6089
6113
|
renderProperties(): BABYLON.Nullable<JSX.Element>;
|
|
6090
6114
|
_forceRebuild(source: any, propertyName: string, notifiers?: BABYLON.IEditablePropertyOption["notifiers"]): void;
|
|
@@ -6302,6 +6326,8 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
6302
6326
|
private _candidateLinkedHasMoved;
|
|
6303
6327
|
private _x;
|
|
6304
6328
|
private _y;
|
|
6329
|
+
private _lastx;
|
|
6330
|
+
private _lasty;
|
|
6305
6331
|
private _zoom;
|
|
6306
6332
|
private _selectedNodes;
|
|
6307
6333
|
private _selectedLink;
|
|
@@ -6315,6 +6341,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
6315
6341
|
private _frames;
|
|
6316
6342
|
private _nodeDataContentList;
|
|
6317
6343
|
private _altKeyIsPressed;
|
|
6344
|
+
private _shiftKeyIsPressed;
|
|
6318
6345
|
private _multiKeyIsPressed;
|
|
6319
6346
|
private _oldY;
|
|
6320
6347
|
_frameIsMoving: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-node-geometry-editor",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.54.0",
|
|
4
4
|
"main": "babylon.nodeGeometryEditor.js",
|
|
5
5
|
"types": "babylon.nodeGeometryEditor.module.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"clean": "rimraf dist && rimraf babylon*.* -g"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"babylonjs": "^7.
|
|
17
|
+
"babylonjs": "^7.54.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@dev/build-tools": "1.0.0",
|