@babylonjs/inspector 5.18.0 → 5.21.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;
|
@@ -4444,6 +4468,15 @@ export type LabelProps = {
|
|
4444
4468
|
};
|
4445
4469
|
export const Label: React.FC<LabelProps>;
|
4446
4470
|
|
4471
|
+
}
|
4472
|
+
declare module "@babylonjs/inspector/components/MessageDialog" {
|
4473
|
+
import * as React from "react";
|
4474
|
+
export interface MessageDialogProps {
|
4475
|
+
message: string;
|
4476
|
+
isError: boolean;
|
4477
|
+
}
|
4478
|
+
export const MessageDialog: React.FC<MessageDialogProps>;
|
4479
|
+
|
4447
4480
|
}
|
4448
4481
|
declare module "@babylonjs/inspector/components/Toggle" {
|
4449
4482
|
/// <reference types="react" />
|
@@ -4741,8 +4774,8 @@ export class FloatLineComponent extends React.Component<IFloatLineComponentProps
|
|
4741
4774
|
updateValue(valueString: string): void;
|
4742
4775
|
lock(): void;
|
4743
4776
|
unlock(): void;
|
4744
|
-
incrementValue(amount: number): void;
|
4745
|
-
onKeyDown(event: React.KeyboardEvent): void;
|
4777
|
+
incrementValue(amount: number, processStep?: boolean): void;
|
4778
|
+
onKeyDown(event: React.KeyboardEvent<HTMLInputElement>): void;
|
4746
4779
|
render(): JSX.Element;
|
4747
4780
|
}
|
4748
4781
|
export {};
|
@@ -4979,8 +5012,10 @@ export class NumericInputComponent extends React.Component<INumericInputComponen
|
|
4979
5012
|
shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
|
4980
5013
|
value: string;
|
4981
5014
|
}): boolean;
|
4982
|
-
updateValue(
|
5015
|
+
updateValue(valueString: string): void;
|
4983
5016
|
onBlur(): void;
|
5017
|
+
incrementValue(amount: number): void;
|
5018
|
+
onKeyDown(evt: React.KeyboardEvent<HTMLInputElement>): void;
|
4984
5019
|
render(): JSX.Element;
|
4985
5020
|
}
|
4986
5021
|
export {};
|
@@ -5433,6 +5468,7 @@ export class GraphCanvasComponent extends React.Component<IGraphCanvasComponentP
|
|
5433
5468
|
private _oldY;
|
5434
5469
|
_frameIsMoving: boolean;
|
5435
5470
|
_isLoading: boolean;
|
5471
|
+
_targetLinkCandidate: Nullable<NodeLink>;
|
5436
5472
|
private _copiedNodes;
|
5437
5473
|
private _copiedFrames;
|
5438
5474
|
get gridSize(): number;
|
@@ -5459,7 +5495,7 @@ export class GraphCanvasComponent extends React.Component<IGraphCanvasComponentP
|
|
5459
5495
|
private _selectedFrameAndNodesConflict;
|
5460
5496
|
constructor(props: IGraphCanvasComponentProps);
|
5461
5497
|
populateConnectedEntriesBeforeRemoval(item: GraphNode, items: GraphNode[], inputs: Nullable<IPortData>[], outputs: Nullable<IPortData>[]): void;
|
5462
|
-
automaticRewire(inputs: Nullable<IPortData>[], outputs: Nullable<IPortData>[]): void;
|
5498
|
+
automaticRewire(inputs: Nullable<IPortData>[], outputs: Nullable<IPortData>[], firstOnly?: boolean): void;
|
5463
5499
|
handleKeyDown(evt: KeyboardEvent, onRemove: (nodeData: INodeData) => void, mouseLocationX: number, mouseLocationY: number, dataGenerator: (nodeData: INodeData) => any, rootElement: HTMLDivElement): void;
|
5464
5500
|
pasteSelection(copiedNodes: GraphNode[], currentX: number, currentY: number, dataGenerator: (nodeData: INodeData) => any, selectNew?: boolean): GraphNode[];
|
5465
5501
|
reconnectNewNodes(nodeIndex: number, newNodes: GraphNode[], sourceNodes: GraphNode[], done: boolean[]): void;
|
@@ -5867,13 +5903,17 @@ export class NodeLink {
|
|
5867
5903
|
private _selectionPath;
|
5868
5904
|
private _onSelectionChangedObserver;
|
5869
5905
|
private _isVisible;
|
5906
|
+
private _isTargetCandidate;
|
5870
5907
|
onDisposedObservable: Observable<NodeLink>;
|
5908
|
+
get isTargetCandidate(): boolean;
|
5909
|
+
set isTargetCandidate(value: boolean);
|
5871
5910
|
get isVisible(): boolean;
|
5872
5911
|
set isVisible(value: boolean);
|
5873
5912
|
get portA(): FrameNodePort | NodePort;
|
5874
5913
|
get portB(): FrameNodePort | NodePort | undefined;
|
5875
5914
|
get nodeA(): GraphNode;
|
5876
5915
|
get nodeB(): GraphNode | undefined;
|
5916
|
+
intersectsWith(rect: DOMRect): boolean;
|
5877
5917
|
update(endX?: number, endY?: number, straight?: boolean): void;
|
5878
5918
|
constructor(graphCanvas: GraphCanvasComponent, portA: NodePort, nodeA: GraphNode, portB?: NodePort, nodeB?: GraphNode);
|
5879
5919
|
onClick(evt: MouseEvent): void;
|
@@ -6052,6 +6092,18 @@ const _default: {
|
|
6052
6092
|
export default _default;
|
6053
6093
|
export const Default: any;
|
6054
6094
|
|
6095
|
+
}
|
6096
|
+
declare module "@babylonjs/inspector/stories/MessageDialog.stories" {
|
6097
|
+
/// <reference types="react" />
|
6098
|
+
import { MessageDialogProps } from "@babylonjs/inspector/components/MessageDialog";
|
6099
|
+
const _default: {
|
6100
|
+
title: string;
|
6101
|
+
component: import("react").FC<MessageDialogProps>;
|
6102
|
+
};
|
6103
|
+
export default _default;
|
6104
|
+
export const NoError: any;
|
6105
|
+
export const Error: any;
|
6106
|
+
|
6055
6107
|
}
|
6056
6108
|
declare module "@babylonjs/inspector/stories/Toggle.stories" {
|
6057
6109
|
/// <reference types="react" />
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babylonjs/inspector",
|
3
|
-
"version": "5.
|
3
|
+
"version": "5.21.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.21.0",
|
36
|
+
"@babylonjs/gui": "^5.21.0",
|
37
|
+
"@babylonjs/gui-editor": "^5.21.0",
|
38
|
+
"@babylonjs/loaders": "^5.21.0",
|
39
|
+
"@babylonjs/materials": "^5.21.0",
|
40
|
+
"@babylonjs/serializers": "^5.21.0",
|
41
41
|
"@lts/gui": "1.0.0",
|
42
42
|
"react": "^17.0.2",
|
43
43
|
"react-dom": "^17.0.2",
|