@babylonjs/inspector 7.53.3 → 7.54.1
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.
@@ -4607,6 +4607,7 @@ export class TextureLinkLineComponent extends React.Component<ITextureLinkLineCo
|
|
4607
4607
|
componentWillUnmount(): void;
|
4608
4608
|
debugTexture(): void;
|
4609
4609
|
onLink(): void;
|
4610
|
+
onLinkTexture(texture: BaseTexture): void;
|
4610
4611
|
updateTexture(file: File): void;
|
4611
4612
|
removeTexture(): void;
|
4612
4613
|
|
@@ -5306,7 +5307,17 @@ import { NodeLink } from "@babylonjs/inspector/nodeGraphSystem/nodeLink";
|
|
5306
5307
|
import { FramePortData } from "@babylonjs/inspector/nodeGraphSystem/types/framePortData";
|
5307
5308
|
export const IsFramePortData: (variableToCheck: any) => variableToCheck is FramePortData;
|
5308
5309
|
export const RefreshNode: (node: GraphNode, visitedNodes?: Set<GraphNode>, visitedLinks?: Set<NodeLink>, canvas?: GraphCanvasComponent) => void;
|
5309
|
-
export const BuildFloatUI: (container: HTMLDivElement, document: Document, displayName: string, isInteger: boolean, source: any, propertyName: string, onChange: () => void, min?: number, max?: number, visualPropertiesRefresh?: Array<() => void
|
5310
|
+
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;
|
5311
|
+
export function GetListOfAcceptedTypes<T extends Record<string, string | number>>(types: T, allValue: number, autoDetectValue: number, port: {
|
5312
|
+
acceptedConnectionPointTypes: number[];
|
5313
|
+
excludedConnectionPointTypes: number[];
|
5314
|
+
type: number;
|
5315
|
+
}, skips?: number[]): string[];
|
5316
|
+
export function GetConnectionErrorMessage<T extends Record<string, string | number>>(sourceType: number, types: T, allValue: number, autoDetectValue: number, port: {
|
5317
|
+
acceptedConnectionPointTypes: number[];
|
5318
|
+
excludedConnectionPointTypes: number[];
|
5319
|
+
type: number;
|
5320
|
+
}, skips?: number[]): string;
|
5310
5321
|
|
5311
5322
|
}
|
5312
5323
|
declare module "@babylonjs/inspector/nodeGraphSystem/stateManager" {
|
@@ -5361,7 +5372,7 @@ export class StateManager {
|
|
5361
5372
|
exportData: (data: any, frame?: Nullable<GraphFrame>) => string;
|
5362
5373
|
isElbowConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
|
5363
5374
|
isDebugConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
|
5364
|
-
applyNodePortDesign: (data: IPortData, element: HTMLElement,
|
5375
|
+
applyNodePortDesign: (data: IPortData, element: HTMLElement, imgHost: HTMLDivElement, pip: HTMLDivElement) => boolean;
|
5365
5376
|
getPortColor: (portData: IPortData) => string;
|
5366
5377
|
storeEditorData: (serializationObject: any, frame?: Nullable<GraphFrame>) => void;
|
5367
5378
|
getEditorDataMap: () => {
|
@@ -5431,7 +5442,7 @@ export class NodePort {
|
|
5431
5442
|
node: GraphNode;
|
5432
5443
|
protected _element: HTMLDivElement;
|
5433
5444
|
protected _portContainer: HTMLElement;
|
5434
|
-
protected
|
5445
|
+
protected _imgHost: HTMLDivElement;
|
5435
5446
|
protected _pip: HTMLDivElement;
|
5436
5447
|
protected _stateManager: StateManager;
|
5437
5448
|
protected _portLabelElement: Element;
|
@@ -5514,6 +5525,7 @@ import { IPortData } from "@babylonjs/inspector/nodeGraphSystem/interfaces/portD
|
|
5514
5525
|
import { IEditablePropertyOption } from "@babylonjs/core/Decorators/nodeDecorator";
|
5515
5526
|
export class GraphNode {
|
5516
5527
|
content: INodeData;
|
5528
|
+
private static _IdGenerator;
|
5517
5529
|
private _visual;
|
5518
5530
|
private _headerContainer;
|
5519
5531
|
private _headerIcon;
|
@@ -6274,6 +6286,31 @@ interface IUnitButtonProps {
|
|
6274
6286
|
|
6275
6287
|
export {};
|
6276
6288
|
|
6289
|
+
}
|
6290
|
+
declare module "@babylonjs/inspector/lines/textureButtonLineComponent" {
|
6291
|
+
import { BaseTexture } from "@babylonjs/core/Materials/Textures/baseTexture";
|
6292
|
+
import { Scene } from "@babylonjs/core/scene";
|
6293
|
+
import * as React from "react";
|
6294
|
+
interface ITextureButtonLineProps {
|
6295
|
+
label: string;
|
6296
|
+
scene: Scene;
|
6297
|
+
onClick: (file: File) => void;
|
6298
|
+
onLink: (texture: BaseTexture) => void;
|
6299
|
+
accept: string;
|
6300
|
+
}
|
6301
|
+
interface ITextureButtonLineState {
|
6302
|
+
isOpen: boolean;
|
6303
|
+
}
|
6304
|
+
export class TextureButtonLine extends React.Component<ITextureButtonLineProps, ITextureButtonLineState> {
|
6305
|
+
private static _IDGenerator;
|
6306
|
+
private _id;
|
6307
|
+
private _uploadInputRef;
|
6308
|
+
constructor(props: ITextureButtonLineProps);
|
6309
|
+
onChange(evt: any): void;
|
6310
|
+
|
6311
|
+
}
|
6312
|
+
export {};
|
6313
|
+
|
6277
6314
|
}
|
6278
6315
|
declare module "@babylonjs/inspector/lines/textLineComponent" {
|
6279
6316
|
import * as React from "react";
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babylonjs/inspector",
|
3
|
-
"version": "7.
|
3
|
+
"version": "7.54.1",
|
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": "^7.
|
36
|
-
"@babylonjs/gui": "^7.
|
37
|
-
"@babylonjs/gui-editor": "^7.
|
38
|
-
"@babylonjs/loaders": "^7.
|
39
|
-
"@babylonjs/materials": "^7.
|
40
|
-
"@babylonjs/serializers": "^7.
|
35
|
+
"@babylonjs/core": "^7.54.1",
|
36
|
+
"@babylonjs/gui": "^7.54.1",
|
37
|
+
"@babylonjs/gui-editor": "^7.54.1",
|
38
|
+
"@babylonjs/loaders": "^7.54.1",
|
39
|
+
"@babylonjs/materials": "^7.54.1",
|
40
|
+
"@babylonjs/serializers": "^7.54.1",
|
41
41
|
"@lts/gui": "1.0.0",
|
42
42
|
"react": "^17.0.2",
|
43
43
|
"react-dom": "^17.0.2"
|