@babylonjs/inspector 6.1.0 → 6.3.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.
@@ -2334,7 +2334,6 @@ import { LockObject } from "@babylonjs/inspector/tabs/propertyGrids/lockObject";
|
|
2334
2334
|
import { GlobalState } from "@babylonjs/inspector/components/globalState";
|
2335
2335
|
import "@babylonjs/core/Physics/physicsEngineComponent";
|
2336
2336
|
import "@babylonjs/core/Physics/v1/physicsEngineComponent";
|
2337
|
-
import "@babylonjs/core/Physics/v1/physicsEngineComponent";
|
2338
2337
|
interface IMeshPropertyGridComponentProps {
|
2339
2338
|
globalState: GlobalState;
|
2340
2339
|
mesh: Mesh;
|
@@ -2413,6 +2412,73 @@ export class TransformNodePropertyGridComponent extends React.Component<ITransfo
|
|
2413
2412
|
}
|
2414
2413
|
export {};
|
2415
2414
|
|
2415
|
+
}
|
2416
|
+
declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/metadata/metadataPropertyGridComponent" {
|
2417
|
+
import * as React from "react";
|
2418
|
+
import { GlobalState } from "@babylonjs/inspector/components/globalState";
|
2419
|
+
import "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/metadata/metadataPropertyGrid.scss";
|
2420
|
+
interface IMetadataComponentProps {
|
2421
|
+
globalState: GlobalState;
|
2422
|
+
entity: any;
|
2423
|
+
}
|
2424
|
+
enum MetadataTypes {
|
2425
|
+
UNDEFINED = "undefined",
|
2426
|
+
NULL = "null",
|
2427
|
+
STRING = "string",
|
2428
|
+
OBJECT = "Object",
|
2429
|
+
JSON = "JSON"
|
2430
|
+
}
|
2431
|
+
/** @ignorenaming */
|
2432
|
+
export class MetadataGridComponent extends React.Component<IMetadataComponentProps, {
|
2433
|
+
selectedEntityMetadata: string;
|
2434
|
+
dirty: boolean;
|
2435
|
+
prettyJson: boolean;
|
2436
|
+
preventObjCorruption: boolean;
|
2437
|
+
metadataPropType: MetadataTypes;
|
2438
|
+
statusMessage: string | null;
|
2439
|
+
isValidJson: boolean;
|
2440
|
+
}> {
|
2441
|
+
private readonly _textAreaHost;
|
2442
|
+
/** @ignorenaming */
|
2443
|
+
constructor(props: IMetadataComponentProps);
|
2444
|
+
/** @ignorenaming */
|
2445
|
+
componentDidMount(): void;
|
2446
|
+
/** @ignorenaming */
|
2447
|
+
componentDidUpdate(prevProps: Readonly<IMetadataComponentProps>): void;
|
2448
|
+
/** on entity refresh */
|
2449
|
+
refreshSelected(): void;
|
2450
|
+
/** @ignorenaming */
|
2451
|
+
setTextAreaDisabled(disabled: boolean): void;
|
2452
|
+
/** textarea style */
|
2453
|
+
getClassName(): string;
|
2454
|
+
/**
|
2455
|
+
* Determines the Metadata type
|
2456
|
+
* @param entity Picked entity
|
2457
|
+
* @returns MetadataTypes
|
2458
|
+
*/
|
2459
|
+
getEntityType(entity: any): MetadataTypes;
|
2460
|
+
/** @ignorenaming */
|
2461
|
+
isString(input: any): boolean;
|
2462
|
+
/** @ignorenaming */
|
2463
|
+
parsableJson(object: Object): boolean;
|
2464
|
+
/** @ignorenaming */
|
2465
|
+
parsableString(string: string): JSON | null;
|
2466
|
+
/** @ignorenaming */
|
2467
|
+
parseMetaObject(validJson: boolean, metadata: any): any;
|
2468
|
+
/**
|
2469
|
+
* Recurse through an object to check for any Functions, returns False if found at least one
|
2470
|
+
* @param o Any Object, String or number
|
2471
|
+
* @returns Boolean
|
2472
|
+
*/
|
2473
|
+
objectCanSafelyStringify(o: Object | string | number): boolean;
|
2474
|
+
copyToClipboard(): void;
|
2475
|
+
/** Safely checks if valid JSON then appends necessary props without overwriting existing */
|
2476
|
+
populateGltfExtras(): void;
|
2477
|
+
/** @ignorenaming */
|
2478
|
+
render(): JSX.Element;
|
2479
|
+
}
|
2480
|
+
export {};
|
2481
|
+
|
2416
2482
|
}
|
2417
2483
|
declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/parentPropertyGridComponent" {
|
2418
2484
|
import * as React from "react";
|
@@ -3059,7 +3125,8 @@ export class PropertyGridTabComponent extends PaneComponent {
|
|
3059
3125
|
timerRefresh(): void;
|
3060
3126
|
componentDidMount(): void;
|
3061
3127
|
componentWillUnmount(): void;
|
3062
|
-
|
3128
|
+
renderContent(): JSX.Element | null;
|
3129
|
+
render(): JSX.Element;
|
3063
3130
|
}
|
3064
3131
|
|
3065
3132
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babylonjs/inspector",
|
3
|
-
"version": "6.
|
3
|
+
"version": "6.3.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": "^6.
|
36
|
-
"@babylonjs/gui": "^6.
|
37
|
-
"@babylonjs/gui-editor": "^6.
|
38
|
-
"@babylonjs/loaders": "^6.
|
39
|
-
"@babylonjs/materials": "^6.
|
40
|
-
"@babylonjs/serializers": "^6.
|
35
|
+
"@babylonjs/core": "^6.3.0",
|
36
|
+
"@babylonjs/gui": "^6.3.0",
|
37
|
+
"@babylonjs/gui-editor": "^6.3.0",
|
38
|
+
"@babylonjs/loaders": "^6.3.0",
|
39
|
+
"@babylonjs/materials": "^6.3.0",
|
40
|
+
"@babylonjs/serializers": "^6.3.0",
|
41
41
|
"@lts/gui": "1.0.0",
|
42
42
|
"react": "^17.0.2",
|
43
43
|
"react-dom": "^17.0.2",
|