@babylonjs/inspector 5.17.1 → 5.20.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.
@@ -1421,6 +1421,27 @@ export class CustomPropertyGridComponent extends React.Component<ICustomProperty
|
|
1421
1421
|
}
|
1422
1422
|
export {};
|
1423
1423
|
|
1424
|
+
}
|
1425
|
+
declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/emptyPropertyGridComponent" {
|
1426
|
+
import * as React from "react";
|
1427
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
1428
|
+
import { PropertyChangedEvent } from "@babylonjs/inspector/components/propertyChangedEvent";
|
1429
|
+
import { LockObject } from "@babylonjs/inspector/tabs/propertyGrids/lockObject";
|
1430
|
+
import { GlobalState } from "@babylonjs/inspector/components/globalState";
|
1431
|
+
interface IEmptyPropertyGridComponentProps {
|
1432
|
+
globalState: GlobalState;
|
1433
|
+
item: {
|
1434
|
+
inspectableCustomProperties: any;
|
1435
|
+
};
|
1436
|
+
lockObject: LockObject;
|
1437
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
1438
|
+
}
|
1439
|
+
export class EmptyPropertyGridComponent extends React.Component<IEmptyPropertyGridComponentProps> {
|
1440
|
+
constructor(props: IEmptyPropertyGridComponentProps);
|
1441
|
+
render(): JSX.Element;
|
1442
|
+
}
|
1443
|
+
export {};
|
1444
|
+
|
1424
1445
|
}
|
1425
1446
|
declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/fogPropertyGridComponent" {
|
1426
1447
|
import * as React from "react";
|
@@ -3110,7 +3131,7 @@ declare module "@babylonjs/inspector/components/embedHost/embedHostComponent" {
|
|
3110
3131
|
import * as React from "react";
|
3111
3132
|
import { Scene } from "@babylonjs/core/scene";
|
3112
3133
|
import { GlobalState } from "@babylonjs/inspector/components/globalState";
|
3113
|
-
import { IExplorerExtensibilityGroup, DebugLayerTab } from "@babylonjs/core/Debug/debugLayer";
|
3134
|
+
import { IExplorerExtensibilityGroup, DebugLayerTab, IExplorerAdditionalNode } from "@babylonjs/core/Debug/debugLayer";
|
3114
3135
|
import "@babylonjs/inspector/components/embedHost/embedHost.scss";
|
3115
3136
|
interface IEmbedHostComponentProps {
|
3116
3137
|
scene: Scene;
|
@@ -3121,6 +3142,7 @@ interface IEmbedHostComponentProps {
|
|
3121
3142
|
onClose: () => void;
|
3122
3143
|
onPopup: () => void;
|
3123
3144
|
extensibilityGroups?: IExplorerExtensibilityGroup[];
|
3145
|
+
additionalNodes?: IExplorerAdditionalNode[];
|
3124
3146
|
initialTab?: DebugLayerTab;
|
3125
3147
|
}
|
3126
3148
|
export class EmbedHostComponent extends React.Component<IEmbedHostComponentProps> {
|
@@ -3760,8 +3782,9 @@ export function SetGUIEditorURL(guiEditorURL: string): void;
|
|
3760
3782
|
* if you are in an ES6 environment, you must first call InjectGUIEditor to provide the gui-editor package
|
3761
3783
|
* If you are in a UMD environment, it will load the package from a URL
|
3762
3784
|
* @param adt
|
3785
|
+
* @param embed defines whether editor is being opened from the Playground
|
3763
3786
|
*/
|
3764
|
-
export function EditAdvancedDynamicTexture(adt: AdvancedDynamicTexture): Promise<void>;
|
3787
|
+
export function EditAdvancedDynamicTexture(adt: AdvancedDynamicTexture, embed?: boolean): Promise<void>;
|
3765
3788
|
|
3766
3789
|
}
|
3767
3790
|
declare module "@babylonjs/inspector/components/sceneExplorer/entities/lightTreeItemComponent" {
|
@@ -4054,7 +4077,7 @@ export {};
|
|
4054
4077
|
declare module "@babylonjs/inspector/components/sceneExplorer/sceneExplorerComponent" {
|
4055
4078
|
import * as React from "react";
|
4056
4079
|
import { Nullable } from "@babylonjs/core/types";
|
4057
|
-
import { IExplorerExtensibilityGroup } from "@babylonjs/core/Debug/debugLayer";
|
4080
|
+
import { IExplorerAdditionalNode, IExplorerExtensibilityGroup } from "@babylonjs/core/Debug/debugLayer";
|
4058
4081
|
import { Scene } from "@babylonjs/core/scene";
|
4059
4082
|
import { GlobalState } from "@babylonjs/inspector/components/globalState";
|
4060
4083
|
import "@babylonjs/core/Sprites/spriteSceneComponent";
|
@@ -4075,6 +4098,7 @@ interface ISceneExplorerComponentProps {
|
|
4075
4098
|
noExpand?: boolean;
|
4076
4099
|
noClose?: boolean;
|
4077
4100
|
extensibilityGroups?: IExplorerExtensibilityGroup[];
|
4101
|
+
additionalNodes?: IExplorerAdditionalNode[];
|
4078
4102
|
globalState: GlobalState;
|
4079
4103
|
popupMode?: boolean;
|
4080
4104
|
onPopup?: () => void;
|
@@ -4741,8 +4765,8 @@ export class FloatLineComponent extends React.Component<IFloatLineComponentProps
|
|
4741
4765
|
updateValue(valueString: string): void;
|
4742
4766
|
lock(): void;
|
4743
4767
|
unlock(): void;
|
4744
|
-
incrementValue(amount: number): void;
|
4745
|
-
onKeyDown(event: React.KeyboardEvent): void;
|
4768
|
+
incrementValue(amount: number, processStep?: boolean): void;
|
4769
|
+
onKeyDown(event: React.KeyboardEvent<HTMLInputElement>): void;
|
4746
4770
|
render(): JSX.Element;
|
4747
4771
|
}
|
4748
4772
|
export {};
|
@@ -4979,8 +5003,10 @@ export class NumericInputComponent extends React.Component<INumericInputComponen
|
|
4979
5003
|
shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
|
4980
5004
|
value: string;
|
4981
5005
|
}): boolean;
|
4982
|
-
updateValue(
|
5006
|
+
updateValue(valueString: string): void;
|
4983
5007
|
onBlur(): void;
|
5008
|
+
incrementValue(amount: number): void;
|
5009
|
+
onKeyDown(evt: React.KeyboardEvent<HTMLInputElement>): void;
|
4984
5010
|
render(): JSX.Element;
|
4985
5011
|
}
|
4986
5012
|
export {};
|
@@ -5433,6 +5459,7 @@ export class GraphCanvasComponent extends React.Component<IGraphCanvasComponentP
|
|
5433
5459
|
private _oldY;
|
5434
5460
|
_frameIsMoving: boolean;
|
5435
5461
|
_isLoading: boolean;
|
5462
|
+
_targetLinkCandidate: Nullable<NodeLink>;
|
5436
5463
|
private _copiedNodes;
|
5437
5464
|
private _copiedFrames;
|
5438
5465
|
get gridSize(): number;
|
@@ -5459,7 +5486,7 @@ export class GraphCanvasComponent extends React.Component<IGraphCanvasComponentP
|
|
5459
5486
|
private _selectedFrameAndNodesConflict;
|
5460
5487
|
constructor(props: IGraphCanvasComponentProps);
|
5461
5488
|
populateConnectedEntriesBeforeRemoval(item: GraphNode, items: GraphNode[], inputs: Nullable<IPortData>[], outputs: Nullable<IPortData>[]): void;
|
5462
|
-
automaticRewire(inputs: Nullable<IPortData>[], outputs: Nullable<IPortData>[]): void;
|
5489
|
+
automaticRewire(inputs: Nullable<IPortData>[], outputs: Nullable<IPortData>[], firstOnly?: boolean): void;
|
5463
5490
|
handleKeyDown(evt: KeyboardEvent, onRemove: (nodeData: INodeData) => void, mouseLocationX: number, mouseLocationY: number, dataGenerator: (nodeData: INodeData) => any, rootElement: HTMLDivElement): void;
|
5464
5491
|
pasteSelection(copiedNodes: GraphNode[], currentX: number, currentY: number, dataGenerator: (nodeData: INodeData) => any, selectNew?: boolean): GraphNode[];
|
5465
5492
|
reconnectNewNodes(nodeIndex: number, newNodes: GraphNode[], sourceNodes: GraphNode[], done: boolean[]): void;
|
@@ -5867,13 +5894,17 @@ export class NodeLink {
|
|
5867
5894
|
private _selectionPath;
|
5868
5895
|
private _onSelectionChangedObserver;
|
5869
5896
|
private _isVisible;
|
5897
|
+
private _isTargetCandidate;
|
5870
5898
|
onDisposedObservable: Observable<NodeLink>;
|
5899
|
+
get isTargetCandidate(): boolean;
|
5900
|
+
set isTargetCandidate(value: boolean);
|
5871
5901
|
get isVisible(): boolean;
|
5872
5902
|
set isVisible(value: boolean);
|
5873
5903
|
get portA(): FrameNodePort | NodePort;
|
5874
5904
|
get portB(): FrameNodePort | NodePort | undefined;
|
5875
5905
|
get nodeA(): GraphNode;
|
5876
5906
|
get nodeB(): GraphNode | undefined;
|
5907
|
+
intersectsWith(rect: DOMRect): boolean;
|
5877
5908
|
update(endX?: number, endY?: number, straight?: boolean): void;
|
5878
5909
|
constructor(graphCanvas: GraphCanvasComponent, portA: NodePort, nodeA: GraphNode, portB?: NodePort, nodeB?: GraphNode);
|
5879
5910
|
onClick(evt: MouseEvent): void;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babylonjs/inspector",
|
3
|
-
"version": "5.
|
3
|
+
"version": "5.20.0",
|
4
4
|
"module": "dist/babylon.inspector.bundle.max.js",
|
5
5
|
"main": "dist/babylon.inspector.bundle.max.js",
|
6
6
|
"typings": "dist/babylon.inspector.module.d.ts",
|
@@ -32,12 +32,12 @@
|
|
32
32
|
"@types/react-dom": ">=16.0.9"
|
33
33
|
},
|
34
34
|
"devDependencies": {
|
35
|
-
"@babylonjs/core": "^5.
|
36
|
-
"@babylonjs/gui": "^5.
|
37
|
-
"@babylonjs/gui-editor": "^5.
|
38
|
-
"@babylonjs/loaders": "^5.
|
39
|
-
"@babylonjs/materials": "^5.
|
40
|
-
"@babylonjs/serializers": "^5.
|
35
|
+
"@babylonjs/core": "^5.20.0",
|
36
|
+
"@babylonjs/gui": "^5.20.0",
|
37
|
+
"@babylonjs/gui-editor": "^5.20.0",
|
38
|
+
"@babylonjs/loaders": "^5.20.0",
|
39
|
+
"@babylonjs/materials": "^5.20.0",
|
40
|
+
"@babylonjs/serializers": "^5.20.0",
|
41
41
|
"@lts/gui": "1.0.0",
|
42
42
|
"react": "^17.0.2",
|
43
43
|
"react-dom": "^17.0.2",
|