@babylonjs/node-editor 7.32.3 → 7.32.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -158,7 +158,6 @@ export class GlobalState {
|
|
158
158
|
onReOrganizedRequiredObservable: Observable<void>;
|
159
159
|
onLogRequiredObservable: Observable<LogEntry>;
|
160
160
|
onIsLoadingChanged: Observable<boolean>;
|
161
|
-
onPreviewCommandActivated: Observable<boolean>;
|
162
161
|
onLightUpdated: Observable<void>;
|
163
162
|
onBackgroundHDRUpdated: Observable<void>;
|
164
163
|
onPreviewBackgroundChanged: Observable<void>;
|
@@ -512,24 +511,6 @@ export class VectorMergerPropertyTabComponent extends React.Component<IPropertyC
|
|
512
511
|
|
513
512
|
}
|
514
513
|
|
515
|
-
}
|
516
|
-
declare module "@babylonjs/node-editor/graphSystem/properties/trigonometryNodePropertyComponent" {
|
517
|
-
import * as React from "react";
|
518
|
-
import { IPropertyComponentProps } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/propertyComponentProps";
|
519
|
-
export class TrigonometryPropertyTabComponent extends React.Component<IPropertyComponentProps> {
|
520
|
-
constructor(props: IPropertyComponentProps);
|
521
|
-
|
522
|
-
}
|
523
|
-
|
524
|
-
}
|
525
|
-
declare module "@babylonjs/node-editor/graphSystem/properties/transformNodePropertyComponent" {
|
526
|
-
import * as React from "react";
|
527
|
-
import { IPropertyComponentProps } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/propertyComponentProps";
|
528
|
-
export class TransformPropertyTabComponent extends React.Component<IPropertyComponentProps> {
|
529
|
-
constructor(props: IPropertyComponentProps);
|
530
|
-
|
531
|
-
}
|
532
|
-
|
533
514
|
}
|
534
515
|
declare module "@babylonjs/node-editor/graphSystem/properties/texturePropertyTabComponent" {
|
535
516
|
import * as React from "react";
|
@@ -699,7 +680,6 @@ export class GradientPropertyTabComponent extends React.Component<IPropertyCompo
|
|
699
680
|
}
|
700
681
|
declare module "@babylonjs/node-editor/graphSystem/properties/genericNodePropertyComponent" {
|
701
682
|
import * as React from "react";
|
702
|
-
import { IEditablePropertyOption } from "@babylonjs/core/Decorators/nodeDecorator";
|
703
683
|
import { IPropertyComponentProps } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/propertyComponentProps";
|
704
684
|
export class GenericPropertyComponent extends React.Component<IPropertyComponentProps> {
|
705
685
|
constructor(props: IPropertyComponentProps);
|
@@ -711,7 +691,6 @@ export class GeneralPropertyTabComponent extends React.Component<IPropertyCompon
|
|
711
691
|
}
|
712
692
|
export class GenericPropertyTabComponent extends React.Component<IPropertyComponentProps> {
|
713
693
|
constructor(props: IPropertyComponentProps);
|
714
|
-
forceRebuild(propertyName: string, notifiers?: IEditablePropertyOption["notifiers"]): void;
|
715
694
|
|
716
695
|
}
|
717
696
|
|
@@ -755,24 +734,6 @@ export class FrameNodePortPropertyTabComponent extends React.Component<IFrameNod
|
|
755
734
|
|
756
735
|
}
|
757
736
|
|
758
|
-
}
|
759
|
-
declare module "@babylonjs/node-editor/graphSystem/properties/curveNodePropertyComponent" {
|
760
|
-
import * as React from "react";
|
761
|
-
import { IPropertyComponentProps } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/propertyComponentProps";
|
762
|
-
export class CurvePropertyTabComponent extends React.Component<IPropertyComponentProps> {
|
763
|
-
constructor(props: IPropertyComponentProps);
|
764
|
-
|
765
|
-
}
|
766
|
-
|
767
|
-
}
|
768
|
-
declare module "@babylonjs/node-editor/graphSystem/properties/conditionalNodePropertyComponent" {
|
769
|
-
import * as React from "react";
|
770
|
-
import { IPropertyComponentProps } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/propertyComponentProps";
|
771
|
-
export class ConditionalPropertyTabComponent extends React.Component<IPropertyComponentProps> {
|
772
|
-
constructor(props: IPropertyComponentProps);
|
773
|
-
|
774
|
-
}
|
775
|
-
|
776
737
|
}
|
777
738
|
declare module "@babylonjs/node-editor/graphSystem/properties/colorMergerPropertyComponent" {
|
778
739
|
import * as React from "react";
|
@@ -1792,6 +1753,7 @@ import { IPortData } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/por
|
|
1792
1753
|
import { ISelectionChangedOptions } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/selectionChangedOptions";
|
1793
1754
|
import { NodePort } from "@babylonjs/node-editor/nodeGraphSystem/nodePort";
|
1794
1755
|
import { HistoryStack } from "@babylonjs/node-editor/historyStack";
|
1756
|
+
import { Scene } from "@babylonjs/core/scene";
|
1795
1757
|
export class StateManager {
|
1796
1758
|
data: any;
|
1797
1759
|
hostDocument: Document;
|
@@ -1806,7 +1768,7 @@ export class StateManager {
|
|
1806
1768
|
onFrameCreatedObservable: Observable<GraphFrame>;
|
1807
1769
|
onUpdateRequiredObservable: Observable<any>;
|
1808
1770
|
onGraphNodeRemovalObservable: Observable<GraphNode>;
|
1809
|
-
onSelectionBoxMoved: Observable<
|
1771
|
+
onSelectionBoxMoved: Observable<ClientRect | DOMRect>;
|
1810
1772
|
onCandidateLinkMoved: Observable<Nullable<Vector2>>;
|
1811
1773
|
onCandidatePortSelectedObservable: Observable<Nullable<FrameNodePort | NodePort>>;
|
1812
1774
|
onNewNodeCreatedObservable: Observable<GraphNode>;
|
@@ -1826,6 +1788,7 @@ export class StateManager {
|
|
1826
1788
|
data: any;
|
1827
1789
|
active: boolean;
|
1828
1790
|
}>;
|
1791
|
+
onPreviewCommandActivated: Observable<boolean>;
|
1829
1792
|
exportData: (data: any, frame?: Nullable<GraphFrame>) => string;
|
1830
1793
|
isElbowConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
|
1831
1794
|
isDebugConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
|
@@ -1834,6 +1797,7 @@ export class StateManager {
|
|
1834
1797
|
getEditorDataMap: () => {
|
1835
1798
|
[key: number]: number;
|
1836
1799
|
};
|
1800
|
+
getScene?: () => Scene;
|
1837
1801
|
createDefaultInputData: (rootData: any, portData: IPortData, nodeContainer: INodeContainer) => Nullable<{
|
1838
1802
|
data: INodeData;
|
1839
1803
|
name: string;
|
@@ -1980,6 +1944,7 @@ export class GraphNode {
|
|
1980
1944
|
private _headerIconImg;
|
1981
1945
|
private _header;
|
1982
1946
|
private _connections;
|
1947
|
+
private _optionsContainer;
|
1983
1948
|
private _inputsContainer;
|
1984
1949
|
private _outputsContainer;
|
1985
1950
|
private _content;
|
@@ -2006,6 +1971,7 @@ export class GraphNode {
|
|
2006
1971
|
private _displayManager;
|
2007
1972
|
private _isVisible;
|
2008
1973
|
private _enclosingFrameId;
|
1974
|
+
private _visualPropertiesRefresh;
|
2009
1975
|
addClassToVisual(className: string): void;
|
2010
1976
|
removeClassFromVisual(className: string): void;
|
2011
1977
|
get isVisible(): boolean;
|
@@ -2044,6 +2010,7 @@ export class GraphNode {
|
|
2044
2010
|
private _onUp;
|
2045
2011
|
private _onMove;
|
2046
2012
|
renderProperties(): Nullable<JSX.Element>;
|
2013
|
+
private _forceRebuild;
|
2047
2014
|
appendVisual(root: HTMLDivElement, owner: GraphCanvasComponent): void;
|
2048
2015
|
dispose(): void;
|
2049
2016
|
}
|
@@ -2370,6 +2337,19 @@ export class DisplayLedger {
|
|
2370
2337
|
};
|
2371
2338
|
}
|
2372
2339
|
|
2340
|
+
}
|
2341
|
+
declare module "@babylonjs/node-editor/nodeGraphSystem/automaticProperties" {
|
2342
|
+
import { IEditablePropertyOption } from "@babylonjs/core/Decorators/nodeDecorator";
|
2343
|
+
import { StateManager } from "@babylonjs/node-editor/nodeGraphSystem/stateManager";
|
2344
|
+
/**
|
2345
|
+
* Function used to force a rebuild of the node system
|
2346
|
+
* @param source source object
|
2347
|
+
* @param stateManager defines the state manager to use
|
2348
|
+
* @param propertyName name of the property that has been changed
|
2349
|
+
* @param notifiers list of notifiers to use
|
2350
|
+
*/
|
2351
|
+
export function ForceRebuild(source: any, stateManager: StateManager, propertyName: string, notifiers?: IEditablePropertyOption["notifiers"]): void;
|
2352
|
+
|
2373
2353
|
}
|
2374
2354
|
declare module "@babylonjs/node-editor/nodeGraphSystem/types/framePortData" {
|
2375
2355
|
import { GraphFrame } from "@babylonjs/node-editor/nodeGraphSystem/graphFrame";
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babylonjs/node-editor",
|
3
|
-
"version": "7.32.
|
3
|
+
"version": "7.32.5",
|
4
4
|
"main": "dist/babylon.nodeEditor.max.js",
|
5
5
|
"module": "dist/babylon.nodeEditor.max.js",
|
6
6
|
"esnext": "dist/babylon.nodeEditor.max.js",
|
@@ -23,7 +23,7 @@
|
|
23
23
|
"@types/react-dom": ">=16.0.9"
|
24
24
|
},
|
25
25
|
"devDependencies": {
|
26
|
-
"@babylonjs/core": "^7.32.
|
26
|
+
"@babylonjs/core": "^7.32.5",
|
27
27
|
"react": "^17.0.2",
|
28
28
|
"react-dom": "^17.0.2"
|
29
29
|
},
|