@babylonjs/inspector 6.38.1 → 6.40.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.
@@ -604,12 +604,16 @@ export class Context {
|
|
604
604
|
* If any current active animation has a key at the received frameNumber,
|
605
605
|
* return the index of the animation in the active animation array, and
|
606
606
|
* the index of the frame on the animation.
|
607
|
-
* @param frameNumber
|
607
|
+
* @param frameNumber the frame number to look for
|
608
|
+
* @returns null if no key was found, or an object with the animation index and key index
|
608
609
|
*/
|
609
610
|
getKeyAtAnyFrameIndex(frameNumber: number): {
|
610
611
|
animationIndex: number;
|
611
612
|
keyIndex: number;
|
612
613
|
} | null;
|
614
|
+
/**
|
615
|
+
* @returns true if any active animation has a quaternion animation
|
616
|
+
*/
|
613
617
|
hasActiveQuaternionAnimationKeyPoints(): boolean;
|
614
618
|
}
|
615
619
|
|
@@ -2368,6 +2372,118 @@ export class MeshPropertyGridComponent extends React.Component<IMeshPropertyGrid
|
|
2368
2372
|
}
|
2369
2373
|
export {};
|
2370
2374
|
|
2375
|
+
}
|
2376
|
+
declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/meshes/physics/physicsBodyGridComponent" {
|
2377
|
+
/// <reference types="react" />
|
2378
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
2379
|
+
import { PhysicsBody } from "@babylonjs/core/Physics/v2/physicsBody";
|
2380
|
+
import { GlobalState } from "@babylonjs/inspector/components/globalState";
|
2381
|
+
import { PropertyChangedEvent } from "@babylonjs/inspector/propertyChangedEvent";
|
2382
|
+
import { LockObject } from "@babylonjs/inspector/tabs/propertyGrids/lockObject";
|
2383
|
+
/**
|
2384
|
+
* Properties of the physics body grid component.
|
2385
|
+
*/
|
2386
|
+
export interface IPhysicsBodyGridComponentProps {
|
2387
|
+
/**
|
2388
|
+
* Lock object
|
2389
|
+
*/
|
2390
|
+
lockObject: LockObject;
|
2391
|
+
/**
|
2392
|
+
* Callback raised on the property changed event
|
2393
|
+
*/
|
2394
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2395
|
+
/**
|
2396
|
+
* Physics body to edit
|
2397
|
+
*/
|
2398
|
+
body: PhysicsBody;
|
2399
|
+
/**
|
2400
|
+
* Global state
|
2401
|
+
*/
|
2402
|
+
globalState: GlobalState;
|
2403
|
+
}
|
2404
|
+
/**
|
2405
|
+
* Component that allows displaying and tweaking a physics body's properties.
|
2406
|
+
* @param props the component props
|
2407
|
+
* @returns the component
|
2408
|
+
*/
|
2409
|
+
export function PhysicsBodyGridComponent(props: IPhysicsBodyGridComponentProps): JSX.Element;
|
2410
|
+
|
2411
|
+
}
|
2412
|
+
declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/meshes/physics/physicsMassPropertiesGridComponent" {
|
2413
|
+
/// <reference types="react" />
|
2414
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
2415
|
+
import { PhysicsBody } from "@babylonjs/core/Physics/v2/physicsBody";
|
2416
|
+
import { GlobalState } from "@babylonjs/inspector/components/globalState";
|
2417
|
+
import { PropertyChangedEvent } from "@babylonjs/inspector/components/propertyChangedEvent";
|
2418
|
+
import { LockObject } from "@babylonjs/inspector/tabs/propertyGrids/lockObject";
|
2419
|
+
/**
|
2420
|
+
* Properties of the physics mass properties grid component.
|
2421
|
+
*/
|
2422
|
+
export interface IPhysicsMassPropertiesGridComponentProps {
|
2423
|
+
/**
|
2424
|
+
* Lock object
|
2425
|
+
*/
|
2426
|
+
lockObject: LockObject;
|
2427
|
+
/**
|
2428
|
+
* Callback raised on the property changed event
|
2429
|
+
*/
|
2430
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2431
|
+
/**
|
2432
|
+
* Physics body to edit
|
2433
|
+
*/
|
2434
|
+
body: PhysicsBody;
|
2435
|
+
/**
|
2436
|
+
* Global state
|
2437
|
+
*/
|
2438
|
+
globalState: GlobalState;
|
2439
|
+
/**
|
2440
|
+
* Index of the instance to edit
|
2441
|
+
*/
|
2442
|
+
instanceIndex?: number;
|
2443
|
+
}
|
2444
|
+
/**
|
2445
|
+
* Component that displays the mass properties of a physics body.
|
2446
|
+
* @param props the component props
|
2447
|
+
* @returns the component
|
2448
|
+
*/
|
2449
|
+
export function PhysicsMassPropertiesGridComponent(props: IPhysicsMassPropertiesGridComponentProps): JSX.Element;
|
2450
|
+
|
2451
|
+
}
|
2452
|
+
declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/meshes/physics/physicsMaterialGridComponent" {
|
2453
|
+
/// <reference types="react" />
|
2454
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
2455
|
+
import { PhysicsBody } from "@babylonjs/core/Physics/v2/physicsBody";
|
2456
|
+
import { GlobalState } from "@babylonjs/inspector/components/globalState";
|
2457
|
+
import { PropertyChangedEvent } from "@babylonjs/inspector/propertyChangedEvent";
|
2458
|
+
import { LockObject } from "@babylonjs/inspector/tabs/propertyGrids/lockObject";
|
2459
|
+
/**
|
2460
|
+
* Properties of the physics material grid component.
|
2461
|
+
*/
|
2462
|
+
export interface IPhysicsMaterialGridComponentProps {
|
2463
|
+
/**
|
2464
|
+
* Lock object
|
2465
|
+
*/
|
2466
|
+
lockObject: LockObject;
|
2467
|
+
/**
|
2468
|
+
* Callback raised on the property changed event
|
2469
|
+
*/
|
2470
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2471
|
+
/**
|
2472
|
+
* Physics body to edit
|
2473
|
+
*/
|
2474
|
+
body: PhysicsBody;
|
2475
|
+
/**
|
2476
|
+
* Global state
|
2477
|
+
*/
|
2478
|
+
globalState: GlobalState;
|
2479
|
+
}
|
2480
|
+
/**
|
2481
|
+
* Component that displays the physic material properties of a physics body.
|
2482
|
+
* @param props the component props
|
2483
|
+
* @returns the component
|
2484
|
+
*/
|
2485
|
+
export function PhysicsMaterialGridComponent(props: IPhysicsMaterialGridComponentProps): JSX.Element;
|
2486
|
+
|
2371
2487
|
}
|
2372
2488
|
declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/meshes/skeletonPropertyGridComponent" {
|
2373
2489
|
import * as React from "react";
|
@@ -2432,7 +2548,7 @@ enum MetadataTypes {
|
|
2432
2548
|
OBJECT = "Object",
|
2433
2549
|
JSON = "JSON"
|
2434
2550
|
}
|
2435
|
-
/**
|
2551
|
+
/** Metadata Grid Component */
|
2436
2552
|
export class MetadataGridComponent extends React.Component<IMetadataComponentProps, {
|
2437
2553
|
selectedEntityMetadata: string;
|
2438
2554
|
dirty: boolean;
|
@@ -2443,17 +2559,25 @@ export class MetadataGridComponent extends React.Component<IMetadataComponentPro
|
|
2443
2559
|
isValidJson: boolean;
|
2444
2560
|
}> {
|
2445
2561
|
private readonly _textAreaHost;
|
2446
|
-
/**
|
2562
|
+
/**
|
2563
|
+
* @param props - component props
|
2564
|
+
*/
|
2447
2565
|
constructor(props: IMetadataComponentProps);
|
2448
2566
|
/** @ignorenaming */
|
2449
2567
|
componentDidMount(): void;
|
2450
|
-
/**
|
2568
|
+
/**
|
2569
|
+
* @param prevProps - previous component props
|
2570
|
+
*/
|
2451
2571
|
componentDidUpdate(prevProps: Readonly<IMetadataComponentProps>): void;
|
2452
2572
|
/** on entity refresh */
|
2453
2573
|
refreshSelected(): void;
|
2454
|
-
/**
|
2574
|
+
/**
|
2575
|
+
* @param disabled - is disabled
|
2576
|
+
*/
|
2455
2577
|
setTextAreaDisabled(disabled: boolean): void;
|
2456
|
-
/**
|
2578
|
+
/**
|
2579
|
+
* @returns class name
|
2580
|
+
*/
|
2457
2581
|
getClassName(): string;
|
2458
2582
|
/**
|
2459
2583
|
* Determines the Metadata type
|
@@ -2461,13 +2585,26 @@ export class MetadataGridComponent extends React.Component<IMetadataComponentPro
|
|
2461
2585
|
* @returns MetadataTypes
|
2462
2586
|
*/
|
2463
2587
|
getEntityType(entity: any): MetadataTypes;
|
2464
|
-
/**
|
2588
|
+
/**
|
2589
|
+
* @param input - any input
|
2590
|
+
* @returns is string
|
2591
|
+
*/
|
2465
2592
|
isString(input: any): boolean;
|
2466
|
-
/**
|
2593
|
+
/**
|
2594
|
+
* @param object - any object
|
2595
|
+
* @returns is parsable
|
2596
|
+
*/
|
2467
2597
|
parsableJson(object: Object): boolean;
|
2468
|
-
/**
|
2598
|
+
/**
|
2599
|
+
* @param string - any string
|
2600
|
+
* @returns parsable string
|
2601
|
+
*/
|
2469
2602
|
parsableString(string: string): JSON | null;
|
2470
|
-
/**
|
2603
|
+
/**
|
2604
|
+
* @param validJson - a valid json
|
2605
|
+
* @param metadata - any metadata
|
2606
|
+
* @returns parsed metadata
|
2607
|
+
*/
|
2471
2608
|
parseMetaObject(validJson: boolean, metadata: any): any;
|
2472
2609
|
/**
|
2473
2610
|
* Recurse through an object to check for any Functions, returns False if found at least one
|
@@ -2478,7 +2615,9 @@ export class MetadataGridComponent extends React.Component<IMetadataComponentPro
|
|
2478
2615
|
copyToClipboard(): void;
|
2479
2616
|
/** Safely checks if valid JSON then appends necessary props without overwriting existing */
|
2480
2617
|
populateGltfExtras(): void;
|
2481
|
-
/**
|
2618
|
+
/** render
|
2619
|
+
* @returns the component
|
2620
|
+
*/
|
2482
2621
|
render(): JSX.Element;
|
2483
2622
|
}
|
2484
2623
|
export {};
|
@@ -4488,6 +4627,7 @@ export class TextureHelper {
|
|
4488
4627
|
* @param height the height of the result, which does not have to match the source texture height
|
4489
4628
|
* @param face if the texture has multiple faces, the face index to use for the source
|
4490
4629
|
* @param channels a filter for which of the RGBA channels to return in the result
|
4630
|
+
* @param globalState the global state to use for rendering the texture
|
4491
4631
|
* @param lod if the texture has multiple LODs, the lod index to use for the source
|
4492
4632
|
* @returns the 8-bit texture data
|
4493
4633
|
*/
|
@@ -4806,6 +4946,8 @@ export interface IDraggableIconProps {
|
|
4806
4946
|
}
|
4807
4947
|
/**
|
4808
4948
|
* An icon that can be dragged by the user
|
4949
|
+
* @param props properties
|
4950
|
+
* @returns draggable icon element
|
4809
4951
|
*/
|
4810
4952
|
export const DraggableIcon: FC<IDraggableIconProps>;
|
4811
4953
|
|
@@ -4847,6 +4989,8 @@ export interface IFlexibleDragHandlerProps {
|
|
4847
4989
|
}
|
4848
4990
|
/**
|
4849
4991
|
* This component receives the drop events and updates the layout accordingly
|
4992
|
+
* @param props properties
|
4993
|
+
* @returns DragHandler element
|
4850
4994
|
*/
|
4851
4995
|
export const FlexibleDragHandler: FC<IFlexibleDragHandlerProps>;
|
4852
4996
|
|
@@ -4869,6 +5013,8 @@ export interface IFlexibleDropZoneProps {
|
|
4869
5013
|
/**
|
4870
5014
|
* This component contains the drag and drop zone for the resize bars that
|
4871
5015
|
* allow redefining width and height of layout elements
|
5016
|
+
* @param props properties
|
5017
|
+
* @returns drop zone element
|
4872
5018
|
*/
|
4873
5019
|
export const FlexibleDropZone: FC<IFlexibleDropZoneProps>;
|
4874
5020
|
|
@@ -4882,6 +5028,7 @@ export interface IFlexibleGridContainerProps {
|
|
4882
5028
|
}
|
4883
5029
|
/**
|
4884
5030
|
* Component responsible for mapping the layout to the actual components
|
5031
|
+
* @returns GridContainer element
|
4885
5032
|
*/
|
4886
5033
|
export const FlexibleGridContainer: FC<IFlexibleGridContainerProps>;
|
4887
5034
|
|
@@ -4901,6 +5048,8 @@ export interface IFlexibleGridLayoutProps {
|
|
4901
5048
|
/**
|
4902
5049
|
* This component represents a grid layout that can be resized and rearranged
|
4903
5050
|
* by the user.
|
5051
|
+
* @param props properties
|
5052
|
+
* @returns layout element
|
4904
5053
|
*/
|
4905
5054
|
export const FlexibleGridLayout: FC<IFlexibleGridLayoutProps>;
|
4906
5055
|
|
@@ -4944,6 +5093,8 @@ export type ResizeItem = {
|
|
4944
5093
|
};
|
4945
5094
|
/**
|
4946
5095
|
* A component that renders a bar that the user can drag to resize.
|
5096
|
+
* @param props properties
|
5097
|
+
* @returns resize bar element
|
4947
5098
|
*/
|
4948
5099
|
export const FlexibleResizeBar: FC<IFlexibleRowResizerProps>;
|
4949
5100
|
|
@@ -4981,6 +5132,8 @@ export interface IFlexibleTabProps {
|
|
4981
5132
|
* to activate or drag to reorder. It also listens for
|
4982
5133
|
* drop events if the user wants to drop another tab
|
4983
5134
|
* after it.
|
5135
|
+
* @param props properties
|
5136
|
+
* @returns FlexibleTab element
|
4984
5137
|
*/
|
4985
5138
|
export const FlexibleTab: FC<IFlexibleTabProps>;
|
4986
5139
|
|
@@ -5012,6 +5165,8 @@ export interface IFlexibleTabsContainerProps {
|
|
5012
5165
|
/**
|
5013
5166
|
* This component contains a set of tabs of which only one is visible at a time.
|
5014
5167
|
* The tabs can also be dragged from and to different containers.
|
5168
|
+
* @param props properties
|
5169
|
+
* @returns tabs container element
|
5015
5170
|
*/
|
5016
5171
|
export const FlexibleTabsContainer: FC<IFlexibleTabsContainerProps>;
|
5017
5172
|
|
@@ -5135,11 +5290,15 @@ export const getPosInLayout: (layout: Layout, column: number, row?: number) => L
|
|
5135
5290
|
export const removeLayoutRowAndRedistributePercentages: (layout: Layout, column: number, row: number) => void;
|
5136
5291
|
/**
|
5137
5292
|
* Add a percentage string to a number
|
5293
|
+
* @param p1 the percentage string
|
5294
|
+
* @param p2 the number
|
5295
|
+
* @returns the sum of the percentage string and the number
|
5138
5296
|
*/
|
5139
5297
|
export const addPercentageStringToNumber: (p1: string, p2: number) => number;
|
5140
5298
|
/**
|
5141
5299
|
* Parses a percentage string into a number
|
5142
5300
|
* @param p the percentage string
|
5301
|
+
* @returns the parsed number
|
5143
5302
|
*/
|
5144
5303
|
export const parsePercentage: (p: string) => number;
|
5145
5304
|
|
@@ -5351,6 +5510,7 @@ export interface IGraphConnectorHandlerProps {
|
|
5351
5510
|
/**
|
5352
5511
|
* This component is used to initiate a connection between two nodes. Simply
|
5353
5512
|
* drag the handle in a node and drop it in another node to create a connection.
|
5513
|
+
* @returns connector element
|
5354
5514
|
*/
|
5355
5515
|
export const GraphConnectorHandler: FC<IGraphConnectorHandlerProps>;
|
5356
5516
|
|
@@ -5420,6 +5580,8 @@ export const MarkerArrowId = "arrow";
|
|
5420
5580
|
/**
|
5421
5581
|
* This component draws a SVG line between two points, with an optional marker
|
5422
5582
|
* indicating direction
|
5583
|
+
* @param props properties
|
5584
|
+
* @returns graph line element
|
5423
5585
|
*/
|
5424
5586
|
export const GraphLine: FC<IGraphLineProps>;
|
5425
5587
|
|
@@ -5467,6 +5629,8 @@ export interface IGraphContainerProps {
|
|
5467
5629
|
}
|
5468
5630
|
/**
|
5469
5631
|
* This component contains all the nodes and handles their dragging
|
5632
|
+
* @param props properties
|
5633
|
+
* @returns graph node container element
|
5470
5634
|
*/
|
5471
5635
|
export const GraphNodesContainer: FC<IGraphContainerProps>;
|
5472
5636
|
|
@@ -5562,6 +5726,8 @@ export interface ITextInputProps {
|
|
5562
5726
|
}
|
5563
5727
|
/**
|
5564
5728
|
* This component represents a text input that can be submitted or cancelled on buttons
|
5729
|
+
* @param props properties
|
5730
|
+
* @returns TextInputWithSubmit element
|
5565
5731
|
*/
|
5566
5732
|
export const TextInputWithSubmit: (props: ITextInputProps) => JSX.Element;
|
5567
5733
|
|
@@ -5844,6 +6010,7 @@ interface IFloatLineComponentProps {
|
|
5844
6010
|
unit?: React.ReactNode;
|
5845
6011
|
onDragStart?: (newValue: number) => void;
|
5846
6012
|
onDragStop?: (newValue: number) => void;
|
6013
|
+
disabled?: boolean;
|
5847
6014
|
}
|
5848
6015
|
export class FloatLineComponent extends React.Component<IFloatLineComponentProps, {
|
5849
6016
|
value: string;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babylonjs/inspector",
|
3
|
-
"version": "6.
|
3
|
+
"version": "6.40.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.40.0",
|
36
|
+
"@babylonjs/gui": "^6.40.0",
|
37
|
+
"@babylonjs/gui-editor": "^6.40.0",
|
38
|
+
"@babylonjs/loaders": "^6.40.0",
|
39
|
+
"@babylonjs/materials": "^6.40.0",
|
40
|
+
"@babylonjs/serializers": "^6.40.0",
|
41
41
|
"@lts/gui": "1.0.0",
|
42
42
|
"react": "^17.0.2",
|
43
43
|
"react-dom": "^17.0.2"
|