babylonjs-gui-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.
|
@@ -2096,7 +2096,17 @@ import { NodeLink } from "babylonjs-gui-editor/nodeGraphSystem/nodeLink";
|
|
|
2096
2096
|
import { FramePortData } from "babylonjs-gui-editor/nodeGraphSystem/types/framePortData";
|
|
2097
2097
|
export const IsFramePortData: (variableToCheck: any) => variableToCheck is FramePortData;
|
|
2098
2098
|
export const RefreshNode: (node: GraphNode, visitedNodes?: Set<GraphNode>, visitedLinks?: Set<NodeLink>, canvas?: GraphCanvasComponent) => void;
|
|
2099
|
-
export const BuildFloatUI: (container: HTMLDivElement, document: Document, displayName: string, isInteger: boolean, source: any, propertyName: string, onChange: () => void, min?: number, max?: number, visualPropertiesRefresh?: Array<() => void
|
|
2099
|
+
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;
|
|
2100
|
+
export function GetListOfAcceptedTypes<T extends Record<string, string | number>>(types: T, allValue: number, autoDetectValue: number, port: {
|
|
2101
|
+
acceptedConnectionPointTypes: number[];
|
|
2102
|
+
excludedConnectionPointTypes: number[];
|
|
2103
|
+
type: number;
|
|
2104
|
+
}, skips?: number[]): string[];
|
|
2105
|
+
export function GetConnectionErrorMessage<T extends Record<string, string | number>>(sourceType: number, types: T, allValue: number, autoDetectValue: number, port: {
|
|
2106
|
+
acceptedConnectionPointTypes: number[];
|
|
2107
|
+
excludedConnectionPointTypes: number[];
|
|
2108
|
+
type: number;
|
|
2109
|
+
}, skips?: number[]): string;
|
|
2100
2110
|
|
|
2101
2111
|
}
|
|
2102
2112
|
declare module "babylonjs-gui-editor/nodeGraphSystem/stateManager" {
|
|
@@ -2151,7 +2161,7 @@ export class StateManager {
|
|
|
2151
2161
|
exportData: (data: any, frame?: Nullable<GraphFrame>) => string;
|
|
2152
2162
|
isElbowConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
|
|
2153
2163
|
isDebugConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
|
|
2154
|
-
applyNodePortDesign: (data: IPortData, element: HTMLElement,
|
|
2164
|
+
applyNodePortDesign: (data: IPortData, element: HTMLElement, imgHost: HTMLDivElement, pip: HTMLDivElement) => boolean;
|
|
2155
2165
|
getPortColor: (portData: IPortData) => string;
|
|
2156
2166
|
storeEditorData: (serializationObject: any, frame?: Nullable<GraphFrame>) => void;
|
|
2157
2167
|
getEditorDataMap: () => {
|
|
@@ -2221,7 +2231,7 @@ export class NodePort {
|
|
|
2221
2231
|
node: GraphNode;
|
|
2222
2232
|
protected _element: HTMLDivElement;
|
|
2223
2233
|
protected _portContainer: HTMLElement;
|
|
2224
|
-
protected
|
|
2234
|
+
protected _imgHost: HTMLDivElement;
|
|
2225
2235
|
protected _pip: HTMLDivElement;
|
|
2226
2236
|
protected _stateManager: StateManager;
|
|
2227
2237
|
protected _portLabelElement: Element;
|
|
@@ -2304,6 +2314,7 @@ import { IPortData } from "babylonjs-gui-editor/nodeGraphSystem/interfaces/portD
|
|
|
2304
2314
|
import { IEditablePropertyOption } from "babylonjs/Decorators/nodeDecorator";
|
|
2305
2315
|
export class GraphNode {
|
|
2306
2316
|
content: INodeData;
|
|
2317
|
+
private static _IdGenerator;
|
|
2307
2318
|
private _visual;
|
|
2308
2319
|
private _headerContainer;
|
|
2309
2320
|
private _headerIcon;
|
|
@@ -2335,11 +2346,11 @@ export class GraphNode {
|
|
|
2335
2346
|
private _onUpdateRequiredObserver;
|
|
2336
2347
|
private _onHighlightNodeObserver;
|
|
2337
2348
|
private _ownerCanvas;
|
|
2338
|
-
private _isSelected;
|
|
2339
2349
|
private _displayManager;
|
|
2340
2350
|
private _isVisible;
|
|
2341
2351
|
private _enclosingFrameId;
|
|
2342
2352
|
private _visualPropertiesRefresh;
|
|
2353
|
+
private _lastClick;
|
|
2343
2354
|
addClassToVisual(className: string): void;
|
|
2344
2355
|
removeClassFromVisual(className: string): void;
|
|
2345
2356
|
get isCollapsed(): boolean;
|
|
@@ -2359,10 +2370,8 @@ export class GraphNode {
|
|
|
2359
2370
|
get height(): number;
|
|
2360
2371
|
get id(): number;
|
|
2361
2372
|
get name(): string;
|
|
2362
|
-
get isSelected(): boolean;
|
|
2363
2373
|
get enclosingFrameId(): number;
|
|
2364
2374
|
set enclosingFrameId(value: number);
|
|
2365
|
-
set isSelected(value: boolean);
|
|
2366
2375
|
setIsSelected(value: boolean, marqueeSelection: boolean): void;
|
|
2367
2376
|
get rootElement(): HTMLDivElement;
|
|
2368
2377
|
constructor(content: INodeData, stateManager: StateManager);
|
|
@@ -2374,10 +2383,11 @@ export class GraphNode {
|
|
|
2374
2383
|
private _refreshFrames;
|
|
2375
2384
|
_refreshLinks(): void;
|
|
2376
2385
|
refresh(): void;
|
|
2386
|
+
private _expand;
|
|
2387
|
+
private _searchMiddle;
|
|
2377
2388
|
private _onDown;
|
|
2378
2389
|
cleanAccumulation(useCeil?: boolean): void;
|
|
2379
2390
|
private _onUp;
|
|
2380
|
-
private _attach;
|
|
2381
2391
|
private _onMove;
|
|
2382
2392
|
renderProperties(): Nullable<JSX.Element>;
|
|
2383
2393
|
_forceRebuild(source: any, propertyName: string, notifiers?: IEditablePropertyOption["notifiers"]): void;
|
|
@@ -2601,6 +2611,8 @@ export class GraphCanvasComponent extends React.Component<IGraphCanvasComponentP
|
|
|
2601
2611
|
private _candidateLinkedHasMoved;
|
|
2602
2612
|
private _x;
|
|
2603
2613
|
private _y;
|
|
2614
|
+
private _lastx;
|
|
2615
|
+
private _lasty;
|
|
2604
2616
|
private _zoom;
|
|
2605
2617
|
private _selectedNodes;
|
|
2606
2618
|
private _selectedLink;
|
|
@@ -2614,6 +2626,7 @@ export class GraphCanvasComponent extends React.Component<IGraphCanvasComponentP
|
|
|
2614
2626
|
private _frames;
|
|
2615
2627
|
private _nodeDataContentList;
|
|
2616
2628
|
private _altKeyIsPressed;
|
|
2629
|
+
private _shiftKeyIsPressed;
|
|
2617
2630
|
private _multiKeyIsPressed;
|
|
2618
2631
|
private _oldY;
|
|
2619
2632
|
_frameIsMoving: boolean;
|
|
@@ -6766,7 +6779,17 @@ declare module BABYLON {
|
|
|
6766
6779
|
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
6767
6780
|
export const IsFramePortData: (variableToCheck: any) => variableToCheck is BABYLON.GuiEditor.SharedUIComponents.FramePortData;
|
|
6768
6781
|
export const RefreshNode: (node: BABYLON.GuiEditor.SharedUIComponents.GraphNode, visitedNodes?: Set<BABYLON.GuiEditor.SharedUIComponents.GraphNode>, visitedLinks?: Set<BABYLON.GuiEditor.SharedUIComponents.NodeLink>, canvas?: BABYLON.GuiEditor.SharedUIComponents.GraphCanvasComponent) => void;
|
|
6769
|
-
export const BuildFloatUI: (container: HTMLDivElement, document: Document, displayName: string, isInteger: boolean, source: any, propertyName: string, onChange: () => void, min?: number, max?: number, visualPropertiesRefresh?: Array<() => void
|
|
6782
|
+
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;
|
|
6783
|
+
export function GetListOfAcceptedTypes<T extends Record<string, string | number>>(types: T, allValue: number, autoDetectValue: number, port: {
|
|
6784
|
+
acceptedConnectionPointTypes: number[];
|
|
6785
|
+
excludedConnectionPointTypes: number[];
|
|
6786
|
+
type: number;
|
|
6787
|
+
}, skips?: number[]): string[];
|
|
6788
|
+
export function GetConnectionErrorMessage<T extends Record<string, string | number>>(sourceType: number, types: T, allValue: number, autoDetectValue: number, port: {
|
|
6789
|
+
acceptedConnectionPointTypes: number[];
|
|
6790
|
+
excludedConnectionPointTypes: number[];
|
|
6791
|
+
type: number;
|
|
6792
|
+
}, skips?: number[]): string;
|
|
6770
6793
|
|
|
6771
6794
|
|
|
6772
6795
|
|
|
@@ -6814,7 +6837,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
6814
6837
|
exportData: (data: any, frame?: Nullable<BABYLON.GuiEditor.SharedUIComponents.GraphFrame>) => string;
|
|
6815
6838
|
isElbowConnectionAllowed: (nodeA: BABYLON.GuiEditor.SharedUIComponents.FrameNodePort | BABYLON.GuiEditor.SharedUIComponents.NodePort, nodeB: BABYLON.GuiEditor.SharedUIComponents.FrameNodePort | BABYLON.GuiEditor.SharedUIComponents.NodePort) => boolean;
|
|
6816
6839
|
isDebugConnectionAllowed: (nodeA: BABYLON.GuiEditor.SharedUIComponents.FrameNodePort | BABYLON.GuiEditor.SharedUIComponents.NodePort, nodeB: BABYLON.GuiEditor.SharedUIComponents.FrameNodePort | BABYLON.GuiEditor.SharedUIComponents.NodePort) => boolean;
|
|
6817
|
-
applyNodePortDesign: (data: BABYLON.GuiEditor.SharedUIComponents.IPortData, element: HTMLElement,
|
|
6840
|
+
applyNodePortDesign: (data: BABYLON.GuiEditor.SharedUIComponents.IPortData, element: HTMLElement, imgHost: HTMLDivElement, pip: HTMLDivElement) => boolean;
|
|
6818
6841
|
getPortColor: (portData: BABYLON.GuiEditor.SharedUIComponents.IPortData) => string;
|
|
6819
6842
|
storeEditorData: (serializationObject: any, frame?: Nullable<BABYLON.GuiEditor.SharedUIComponents.GraphFrame>) => void;
|
|
6820
6843
|
getEditorDataMap: () => {
|
|
@@ -6888,7 +6911,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
6888
6911
|
node: BABYLON.GuiEditor.SharedUIComponents.GraphNode;
|
|
6889
6912
|
protected _element: HTMLDivElement;
|
|
6890
6913
|
protected _portContainer: HTMLElement;
|
|
6891
|
-
protected
|
|
6914
|
+
protected _imgHost: HTMLDivElement;
|
|
6892
6915
|
protected _pip: HTMLDivElement;
|
|
6893
6916
|
protected _stateManager: BABYLON.GuiEditor.SharedUIComponents.StateManager;
|
|
6894
6917
|
protected _portLabelElement: Element;
|
|
@@ -6975,6 +6998,7 @@ declare module BABYLON {
|
|
|
6975
6998
|
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
6976
6999
|
export class GraphNode {
|
|
6977
7000
|
content: BABYLON.GuiEditor.SharedUIComponents.INodeData;
|
|
7001
|
+
private static _IdGenerator;
|
|
6978
7002
|
private _visual;
|
|
6979
7003
|
private _headerContainer;
|
|
6980
7004
|
private _headerIcon;
|
|
@@ -7006,11 +7030,11 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
7006
7030
|
private _onUpdateRequiredObserver;
|
|
7007
7031
|
private _onHighlightNodeObserver;
|
|
7008
7032
|
private _ownerCanvas;
|
|
7009
|
-
private _isSelected;
|
|
7010
7033
|
private _displayManager;
|
|
7011
7034
|
private _isVisible;
|
|
7012
7035
|
private _enclosingFrameId;
|
|
7013
7036
|
private _visualPropertiesRefresh;
|
|
7037
|
+
private _lastClick;
|
|
7014
7038
|
addClassToVisual(className: string): void;
|
|
7015
7039
|
removeClassFromVisual(className: string): void;
|
|
7016
7040
|
get isCollapsed(): boolean;
|
|
@@ -7030,10 +7054,8 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
7030
7054
|
get height(): number;
|
|
7031
7055
|
get id(): number;
|
|
7032
7056
|
get name(): string;
|
|
7033
|
-
get isSelected(): boolean;
|
|
7034
7057
|
get enclosingFrameId(): number;
|
|
7035
7058
|
set enclosingFrameId(value: number);
|
|
7036
|
-
set isSelected(value: boolean);
|
|
7037
7059
|
setIsSelected(value: boolean, marqueeSelection: boolean): void;
|
|
7038
7060
|
get rootElement(): HTMLDivElement;
|
|
7039
7061
|
constructor(content: BABYLON.GuiEditor.SharedUIComponents.INodeData, stateManager: BABYLON.GuiEditor.SharedUIComponents.StateManager);
|
|
@@ -7045,10 +7067,11 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
7045
7067
|
private _refreshFrames;
|
|
7046
7068
|
_refreshLinks(): void;
|
|
7047
7069
|
refresh(): void;
|
|
7070
|
+
private _expand;
|
|
7071
|
+
private _searchMiddle;
|
|
7048
7072
|
private _onDown;
|
|
7049
7073
|
cleanAccumulation(useCeil?: boolean): void;
|
|
7050
7074
|
private _onUp;
|
|
7051
|
-
private _attach;
|
|
7052
7075
|
private _onMove;
|
|
7053
7076
|
renderProperties(): Nullable<JSX.Element>;
|
|
7054
7077
|
_forceRebuild(source: any, propertyName: string, notifiers?: IEditablePropertyOption["notifiers"]): void;
|
|
@@ -7266,6 +7289,8 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
7266
7289
|
private _candidateLinkedHasMoved;
|
|
7267
7290
|
private _x;
|
|
7268
7291
|
private _y;
|
|
7292
|
+
private _lastx;
|
|
7293
|
+
private _lasty;
|
|
7269
7294
|
private _zoom;
|
|
7270
7295
|
private _selectedNodes;
|
|
7271
7296
|
private _selectedLink;
|
|
@@ -7279,6 +7304,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
7279
7304
|
private _frames;
|
|
7280
7305
|
private _nodeDataContentList;
|
|
7281
7306
|
private _altKeyIsPressed;
|
|
7307
|
+
private _shiftKeyIsPressed;
|
|
7282
7308
|
private _multiKeyIsPressed;
|
|
7283
7309
|
private _oldY;
|
|
7284
7310
|
_frameIsMoving: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-gui-editor",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.54.0",
|
|
4
4
|
"main": "babylon.guiEditor.max.js",
|
|
5
5
|
"types": "babylon.guiEditor.module.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"clean": "rimraf dist && rimraf babylon*.* -g"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"babylonjs": "^7.
|
|
18
|
-
"babylonjs-gui": "^7.
|
|
17
|
+
"babylonjs": "^7.54.0",
|
|
18
|
+
"babylonjs-gui": "^7.54.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@dev/build-tools": "1.0.0",
|