babylonjs-node-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.
- package/babylon.nodeEditor.d.ts +20 -7
- package/babylon.nodeEditor.js +1 -1
- package/babylon.nodeEditor.js.map +1 -1
- package/babylon.nodeEditor.max.js +250 -109
- package/babylon.nodeEditor.module.d.ts +40 -14
- package/package.json +2 -2
package/babylon.nodeEditor.d.ts
CHANGED
|
@@ -1605,7 +1605,17 @@ declare module BABYLON.NodeEditor {
|
|
|
1605
1605
|
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
1606
1606
|
export const IsFramePortData: (variableToCheck: any) => variableToCheck is BABYLON.NodeEditor.SharedUIComponents.FramePortData;
|
|
1607
1607
|
export const RefreshNode: (node: BABYLON.NodeEditor.SharedUIComponents.GraphNode, visitedNodes?: Set<BABYLON.NodeEditor.SharedUIComponents.GraphNode>, visitedLinks?: Set<BABYLON.NodeEditor.SharedUIComponents.NodeLink>, canvas?: BABYLON.NodeEditor.SharedUIComponents.GraphCanvasComponent) => void;
|
|
1608
|
-
export const BuildFloatUI: (container: HTMLDivElement, document: Document, displayName: string, isInteger: boolean, source: any, propertyName: string, onChange: () => void, min?: number, max?: number, visualPropertiesRefresh?: Array<() => void
|
|
1608
|
+
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;
|
|
1609
|
+
export function GetListOfAcceptedTypes<T extends Record<string, string | number>>(types: T, allValue: number, autoDetectValue: number, port: {
|
|
1610
|
+
acceptedConnectionPointTypes: number[];
|
|
1611
|
+
excludedConnectionPointTypes: number[];
|
|
1612
|
+
type: number;
|
|
1613
|
+
}, skips?: number[]): string[];
|
|
1614
|
+
export function GetConnectionErrorMessage<T extends Record<string, string | number>>(sourceType: number, types: T, allValue: number, autoDetectValue: number, port: {
|
|
1615
|
+
acceptedConnectionPointTypes: number[];
|
|
1616
|
+
excludedConnectionPointTypes: number[];
|
|
1617
|
+
type: number;
|
|
1618
|
+
}, skips?: number[]): string;
|
|
1609
1619
|
|
|
1610
1620
|
|
|
1611
1621
|
|
|
@@ -1653,7 +1663,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1653
1663
|
exportData: (data: any, frame?: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.GraphFrame>) => string;
|
|
1654
1664
|
isElbowConnectionAllowed: (nodeA: BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort, nodeB: BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort) => boolean;
|
|
1655
1665
|
isDebugConnectionAllowed: (nodeA: BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort, nodeB: BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort) => boolean;
|
|
1656
|
-
applyNodePortDesign: (data: BABYLON.NodeEditor.SharedUIComponents.IPortData, element: HTMLElement,
|
|
1666
|
+
applyNodePortDesign: (data: BABYLON.NodeEditor.SharedUIComponents.IPortData, element: HTMLElement, imgHost: HTMLDivElement, pip: HTMLDivElement) => boolean;
|
|
1657
1667
|
getPortColor: (portData: BABYLON.NodeEditor.SharedUIComponents.IPortData) => string;
|
|
1658
1668
|
storeEditorData: (serializationObject: any, frame?: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.GraphFrame>) => void;
|
|
1659
1669
|
getEditorDataMap: () => {
|
|
@@ -1727,7 +1737,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1727
1737
|
node: BABYLON.NodeEditor.SharedUIComponents.GraphNode;
|
|
1728
1738
|
protected _element: HTMLDivElement;
|
|
1729
1739
|
protected _portContainer: HTMLElement;
|
|
1730
|
-
protected
|
|
1740
|
+
protected _imgHost: HTMLDivElement;
|
|
1731
1741
|
protected _pip: HTMLDivElement;
|
|
1732
1742
|
protected _stateManager: BABYLON.NodeEditor.SharedUIComponents.StateManager;
|
|
1733
1743
|
protected _portLabelElement: Element;
|
|
@@ -1814,6 +1824,7 @@ declare module BABYLON.NodeEditor {
|
|
|
1814
1824
|
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
1815
1825
|
export class GraphNode {
|
|
1816
1826
|
content: BABYLON.NodeEditor.SharedUIComponents.INodeData;
|
|
1827
|
+
private static _IdGenerator;
|
|
1817
1828
|
private _visual;
|
|
1818
1829
|
private _headerContainer;
|
|
1819
1830
|
private _headerIcon;
|
|
@@ -1845,11 +1856,11 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1845
1856
|
private _onUpdateRequiredObserver;
|
|
1846
1857
|
private _onHighlightNodeObserver;
|
|
1847
1858
|
private _ownerCanvas;
|
|
1848
|
-
private _isSelected;
|
|
1849
1859
|
private _displayManager;
|
|
1850
1860
|
private _isVisible;
|
|
1851
1861
|
private _enclosingFrameId;
|
|
1852
1862
|
private _visualPropertiesRefresh;
|
|
1863
|
+
private _lastClick;
|
|
1853
1864
|
addClassToVisual(className: string): void;
|
|
1854
1865
|
removeClassFromVisual(className: string): void;
|
|
1855
1866
|
get isCollapsed(): boolean;
|
|
@@ -1869,10 +1880,8 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1869
1880
|
get height(): number;
|
|
1870
1881
|
get id(): number;
|
|
1871
1882
|
get name(): string;
|
|
1872
|
-
get isSelected(): boolean;
|
|
1873
1883
|
get enclosingFrameId(): number;
|
|
1874
1884
|
set enclosingFrameId(value: number);
|
|
1875
|
-
set isSelected(value: boolean);
|
|
1876
1885
|
setIsSelected(value: boolean, marqueeSelection: boolean): void;
|
|
1877
1886
|
get rootElement(): HTMLDivElement;
|
|
1878
1887
|
constructor(content: BABYLON.NodeEditor.SharedUIComponents.INodeData, stateManager: BABYLON.NodeEditor.SharedUIComponents.StateManager);
|
|
@@ -1884,10 +1893,11 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1884
1893
|
private _refreshFrames;
|
|
1885
1894
|
_refreshLinks(): void;
|
|
1886
1895
|
refresh(): void;
|
|
1896
|
+
private _expand;
|
|
1897
|
+
private _searchMiddle;
|
|
1887
1898
|
private _onDown;
|
|
1888
1899
|
cleanAccumulation(useCeil?: boolean): void;
|
|
1889
1900
|
private _onUp;
|
|
1890
|
-
private _attach;
|
|
1891
1901
|
private _onMove;
|
|
1892
1902
|
renderProperties(): BABYLON.Nullable<JSX.Element>;
|
|
1893
1903
|
_forceRebuild(source: any, propertyName: string, notifiers?: BABYLON.IEditablePropertyOption["notifiers"]): void;
|
|
@@ -2105,6 +2115,8 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2105
2115
|
private _candidateLinkedHasMoved;
|
|
2106
2116
|
private _x;
|
|
2107
2117
|
private _y;
|
|
2118
|
+
private _lastx;
|
|
2119
|
+
private _lasty;
|
|
2108
2120
|
private _zoom;
|
|
2109
2121
|
private _selectedNodes;
|
|
2110
2122
|
private _selectedLink;
|
|
@@ -2118,6 +2130,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2118
2130
|
private _frames;
|
|
2119
2131
|
private _nodeDataContentList;
|
|
2120
2132
|
private _altKeyIsPressed;
|
|
2133
|
+
private _shiftKeyIsPressed;
|
|
2121
2134
|
private _multiKeyIsPressed;
|
|
2122
2135
|
private _oldY;
|
|
2123
2136
|
_frameIsMoving: boolean;
|