@babylonjs/inspector 5.0.0-rc.9 → 5.0.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.
- package/dist/babylon.inspector.bundle.js +1 -1
- package/dist/babylon.inspector.bundle.js.map +1 -1
- package/dist/babylon.inspector.bundle.max.js +3038 -2802
- package/dist/babylon.inspector.bundle.max.js.map +1 -1
- package/dist/babylon.inspector.module.d.ts +42 -18
- package/license.md +71 -0
- package/package.json +28 -8
@@ -187,7 +187,8 @@ export class PaneComponent extends React.Component<IPaneComponentProps, {
|
|
187
187
|
}
|
188
188
|
declare module "@babylonjs/inspector/components/actionTabs/tabs/debugTabComponent" {
|
189
189
|
/// <reference types="react" />
|
190
|
-
import {
|
190
|
+
import { IPaneComponentProps } from "@babylonjs/inspector/components/actionTabs/paneComponent";
|
191
|
+
import { PaneComponent } from "@babylonjs/inspector/components/actionTabs/paneComponent";
|
191
192
|
import "@babylonjs/core/Physics/physicsEngineComponent";
|
192
193
|
export class DebugTabComponent extends PaneComponent {
|
193
194
|
private _physicsViewersEnabled;
|
@@ -2948,7 +2949,8 @@ export {};
|
|
2948
2949
|
}
|
2949
2950
|
declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGridTabComponent" {
|
2950
2951
|
/// <reference types="react" />
|
2951
|
-
import {
|
2952
|
+
import { IPaneComponentProps } from "@babylonjs/inspector/components/actionTabs/paneComponent";
|
2953
|
+
import { PaneComponent } from "@babylonjs/inspector/components/actionTabs/paneComponent";
|
2952
2954
|
export class PropertyGridTabComponent extends PaneComponent {
|
2953
2955
|
private _timerIntervalId;
|
2954
2956
|
private _lockObject;
|
@@ -2962,7 +2964,8 @@ export class PropertyGridTabComponent extends PaneComponent {
|
|
2962
2964
|
}
|
2963
2965
|
declare module "@babylonjs/inspector/components/actionTabs/tabs/settingsTabComponent" {
|
2964
2966
|
/// <reference types="react" />
|
2965
|
-
import {
|
2967
|
+
import { IPaneComponentProps } from "@babylonjs/inspector/components/actionTabs/paneComponent";
|
2968
|
+
import { PaneComponent } from "@babylonjs/inspector/components/actionTabs/paneComponent";
|
2966
2969
|
export class SettingsTabComponent extends PaneComponent {
|
2967
2970
|
constructor(props: IPaneComponentProps);
|
2968
2971
|
render(): JSX.Element;
|
@@ -2971,7 +2974,8 @@ export class SettingsTabComponent extends PaneComponent {
|
|
2971
2974
|
}
|
2972
2975
|
declare module "@babylonjs/inspector/components/actionTabs/tabs/statisticsTabComponent" {
|
2973
2976
|
/// <reference types="react" />
|
2974
|
-
import {
|
2977
|
+
import { IPaneComponentProps } from "@babylonjs/inspector/components/actionTabs/paneComponent";
|
2978
|
+
import { PaneComponent } from "@babylonjs/inspector/components/actionTabs/paneComponent";
|
2975
2979
|
export class StatisticsTabComponent extends PaneComponent {
|
2976
2980
|
private _sceneInstrumentation;
|
2977
2981
|
private _engineInstrumentation;
|
@@ -3004,15 +3008,16 @@ export {};
|
|
3004
3008
|
}
|
3005
3009
|
declare module "@babylonjs/inspector/components/actionTabs/tabs/toolsTabComponent" {
|
3006
3010
|
/// <reference types="react" />
|
3007
|
-
import {
|
3008
|
-
import {
|
3011
|
+
import { IPaneComponentProps } from "@babylonjs/inspector/components/actionTabs/paneComponent";
|
3012
|
+
import { PaneComponent } from "@babylonjs/inspector/components/actionTabs/paneComponent";
|
3009
3013
|
export class ToolsTabComponent extends PaneComponent {
|
3010
3014
|
private _lockObject;
|
3011
3015
|
private _videoRecorder;
|
3012
3016
|
private _screenShotSize;
|
3013
3017
|
private _gifOptions;
|
3014
3018
|
private _useWidthHeight;
|
3015
|
-
private
|
3019
|
+
private _isExportingGltf;
|
3020
|
+
private _gltfExportOptions;
|
3016
3021
|
private _gifWorkerBlob;
|
3017
3022
|
private _gifRecorder;
|
3018
3023
|
private _previousRenderingScale;
|
@@ -3030,7 +3035,6 @@ export class ToolsTabComponent extends PaneComponent {
|
|
3030
3035
|
recordGIFInternal(): void;
|
3031
3036
|
recordGIF(): void;
|
3032
3037
|
importAnimations(event: any): void;
|
3033
|
-
shouldExport(node: Node): boolean;
|
3034
3038
|
exportGLTF(): void;
|
3035
3039
|
exportBabylon(): void;
|
3036
3040
|
createEnvTexture(): void;
|
@@ -3092,7 +3096,8 @@ export {};
|
|
3092
3096
|
declare module "@babylonjs/inspector/components/globalState" {
|
3093
3097
|
import { IGLTFValidationResults } from "babylonjs-gltf2interface";
|
3094
3098
|
import { Nullable } from "@babylonjs/core/types";
|
3095
|
-
import {
|
3099
|
+
import { Observer } from "@babylonjs/core/Misc/observable";
|
3100
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
3096
3101
|
import { ISceneLoaderPlugin, ISceneLoaderPluginAsync } from "@babylonjs/core/Loading/sceneLoader";
|
3097
3102
|
import { Scene } from "@babylonjs/core/scene";
|
3098
3103
|
import { Light } from "@babylonjs/core/Lights/light";
|
@@ -4224,6 +4229,10 @@ export class Inspector {
|
|
4224
4229
|
static _ClosePersistentPopup(): void;
|
4225
4230
|
}
|
4226
4231
|
|
4232
|
+
}
|
4233
|
+
declare module "@babylonjs/inspector/legacy/legacy" {
|
4234
|
+
export * from "@babylonjs/inspector/index";
|
4235
|
+
|
4227
4236
|
}
|
4228
4237
|
declare module "@babylonjs/inspector/lod" {
|
4229
4238
|
/** @hidden */
|
@@ -4394,6 +4403,7 @@ export interface ICheckBoxLineComponentProps {
|
|
4394
4403
|
enabled: IconDefinition;
|
4395
4404
|
disabled: IconDefinition;
|
4396
4405
|
};
|
4406
|
+
large?: boolean;
|
4397
4407
|
}
|
4398
4408
|
export class CheckBoxLineComponent extends React.Component<ICheckBoxLineComponentProps, {
|
4399
4409
|
isSelected: boolean;
|
@@ -4605,12 +4615,12 @@ interface IFloatLineComponentProps {
|
|
4605
4615
|
icon?: string;
|
4606
4616
|
iconLabel?: string;
|
4607
4617
|
defaultValue?: number;
|
4608
|
-
|
4609
|
-
|
4610
|
-
unitLocked?: boolean;
|
4618
|
+
arrows?: boolean;
|
4619
|
+
unit?: React.ReactNode;
|
4611
4620
|
}
|
4612
4621
|
export class FloatLineComponent extends React.Component<IFloatLineComponentProps, {
|
4613
4622
|
value: string;
|
4623
|
+
dragging: boolean;
|
4614
4624
|
}> {
|
4615
4625
|
private _localChange;
|
4616
4626
|
private _store;
|
@@ -4619,11 +4629,14 @@ export class FloatLineComponent extends React.Component<IFloatLineComponentProps
|
|
4619
4629
|
getValueString(value: any): string;
|
4620
4630
|
shouldComponentUpdate(nextProps: IFloatLineComponentProps, nextState: {
|
4621
4631
|
value: string;
|
4632
|
+
dragging: boolean;
|
4622
4633
|
}): boolean;
|
4623
4634
|
raiseOnPropertyChanged(newValue: number, previousValue: number): void;
|
4624
4635
|
updateValue(valueString: string): void;
|
4625
4636
|
lock(): void;
|
4626
4637
|
unlock(): void;
|
4638
|
+
incrementValue(amount: number): void;
|
4639
|
+
onKeyDown(event: React.KeyboardEvent): void;
|
4627
4640
|
render(): JSX.Element;
|
4628
4641
|
}
|
4629
4642
|
export {};
|
@@ -4727,6 +4740,7 @@ export class InputArrowsComponent extends React.Component<IInputArrowsComponentP
|
|
4727
4740
|
private _arrowsRef;
|
4728
4741
|
private _drag;
|
4729
4742
|
private _releaseListener;
|
4743
|
+
private _lockChangeListener;
|
4730
4744
|
render(): JSX.Element;
|
4731
4745
|
}
|
4732
4746
|
export {};
|
@@ -4912,6 +4926,7 @@ interface ISliderLineComponentProps {
|
|
4912
4926
|
icon?: string;
|
4913
4927
|
iconLabel?: string;
|
4914
4928
|
lockObject?: LockObject;
|
4929
|
+
unit?: React.ReactNode;
|
4915
4930
|
}
|
4916
4931
|
export class SliderLineComponent extends React.Component<ISliderLineComponentProps, {
|
4917
4932
|
value: number;
|
@@ -4948,7 +4963,7 @@ import * as React from "react";
|
|
4948
4963
|
import { Observable } from "@babylonjs/core/Misc/observable";
|
4949
4964
|
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
4950
4965
|
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
4951
|
-
interface ITextInputLineComponentProps {
|
4966
|
+
export interface ITextInputLineComponentProps {
|
4952
4967
|
label?: string;
|
4953
4968
|
lockObject?: LockObject;
|
4954
4969
|
target?: any;
|
@@ -4961,9 +4976,6 @@ interface ITextInputLineComponentProps {
|
|
4961
4976
|
noUnderline?: boolean;
|
4962
4977
|
numbersOnly?: boolean;
|
4963
4978
|
delayInput?: boolean;
|
4964
|
-
unit?: string;
|
4965
|
-
onUnitClicked?: (unit: string) => void;
|
4966
|
-
unitLocked?: boolean;
|
4967
4979
|
arrows?: boolean;
|
4968
4980
|
arrowsIncrement?: (amount: number) => void;
|
4969
4981
|
step?: number;
|
@@ -4972,6 +4984,7 @@ interface ITextInputLineComponentProps {
|
|
4972
4984
|
min?: number;
|
4973
4985
|
max?: number;
|
4974
4986
|
placeholder?: string;
|
4987
|
+
unit?: React.ReactNode;
|
4975
4988
|
}
|
4976
4989
|
export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
|
4977
4990
|
value: string;
|
@@ -4985,12 +4998,12 @@ export class TextInputLineComponent extends React.Component<ITextInputLineCompon
|
|
4985
4998
|
dragging: boolean;
|
4986
4999
|
}): boolean;
|
4987
5000
|
raiseOnPropertyChanged(newValue: string, previousValue: string): void;
|
5001
|
+
getCurrentNumericValue(value: string): number;
|
4988
5002
|
updateValue(value: string): void;
|
4989
5003
|
incrementValue(amount: number): void;
|
4990
5004
|
onKeyDown(event: React.KeyboardEvent): void;
|
4991
5005
|
render(): JSX.Element;
|
4992
5006
|
}
|
4993
|
-
export {};
|
4994
5007
|
|
4995
5008
|
}
|
4996
5009
|
declare module "shared-ui-components/lines/textLineComponent" {
|
@@ -5016,6 +5029,17 @@ export class TextLineComponent extends React.Component<ITextLineComponentProps>
|
|
5016
5029
|
}
|
5017
5030
|
export {};
|
5018
5031
|
|
5032
|
+
}
|
5033
|
+
declare module "shared-ui-components/lines/unitButton" {
|
5034
|
+
/// <reference types="react" />
|
5035
|
+
interface IUnitButtonProps {
|
5036
|
+
unit: string;
|
5037
|
+
locked?: boolean;
|
5038
|
+
onClick?: (unit: string) => void;
|
5039
|
+
}
|
5040
|
+
export function UnitButton(props: IUnitButtonProps): JSX.Element;
|
5041
|
+
export {};
|
5042
|
+
|
5019
5043
|
}
|
5020
5044
|
declare module "shared-ui-components/lines/valueLineComponent" {
|
5021
5045
|
import * as React from "react";
|
@@ -5487,7 +5511,7 @@ export class LockObject {
|
|
5487
5511
|
}
|
5488
5512
|
|
5489
5513
|
declare module "@babylonjs/inspector" {
|
5490
|
-
export * from "@babylonjs/inspector/
|
5514
|
+
export * from "@babylonjs/inspector/legacy/legacy";
|
5491
5515
|
}
|
5492
5516
|
|
5493
5517
|
|
package/license.md
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
# Apache License 2.0 (Apache)
|
2
|
+
|
3
|
+
Apache License
|
4
|
+
Version 2.0, January 2004
|
5
|
+
<http://www.apache.org/licenses/>
|
6
|
+
|
7
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
8
|
+
|
9
|
+
## Definitions
|
10
|
+
|
11
|
+
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
12
|
+
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
14
|
+
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
16
|
+
|
17
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
18
|
+
|
19
|
+
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
20
|
+
|
21
|
+
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
22
|
+
|
23
|
+
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
24
|
+
|
25
|
+
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
26
|
+
|
27
|
+
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
28
|
+
|
29
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
30
|
+
|
31
|
+
## Grant of Copyright License
|
32
|
+
|
33
|
+
Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
34
|
+
|
35
|
+
## Grant of Patent License
|
36
|
+
|
37
|
+
Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
38
|
+
|
39
|
+
## Redistribution
|
40
|
+
|
41
|
+
You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
42
|
+
|
43
|
+
1. You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
44
|
+
|
45
|
+
2. You must cause any modified files to carry prominent notices stating that You changed the files; and
|
46
|
+
|
47
|
+
3. You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
48
|
+
|
49
|
+
4. If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
|
50
|
+
|
51
|
+
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
52
|
+
|
53
|
+
## Submission of Contributions
|
54
|
+
|
55
|
+
Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
56
|
+
|
57
|
+
## Trademarks
|
58
|
+
|
59
|
+
This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
60
|
+
|
61
|
+
## Disclaimer of Warranty
|
62
|
+
|
63
|
+
Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
64
|
+
|
65
|
+
## Limitation of Liability
|
66
|
+
|
67
|
+
In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
68
|
+
|
69
|
+
## Accepting Warranty or Additional Liability
|
70
|
+
|
71
|
+
While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
package/package.json
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babylonjs/inspector",
|
3
|
-
"version": "5.0.0
|
3
|
+
"version": "5.0.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",
|
7
7
|
"files": [
|
8
8
|
"dist",
|
9
|
-
"readme.md"
|
9
|
+
"readme.md",
|
10
|
+
"license.md"
|
10
11
|
],
|
11
12
|
"scripts": {
|
12
13
|
"build": "npm run clean && npm run build:dev && npm run build:prod && npm run build:declaration",
|
@@ -16,11 +17,11 @@
|
|
16
17
|
"clean": "rimraf dist"
|
17
18
|
},
|
18
19
|
"dependencies": {
|
19
|
-
"@babylonjs/core": "^5.0.0
|
20
|
-
"@babylonjs/gui": "^5.0.0
|
21
|
-
"
|
22
|
-
"
|
23
|
-
"
|
20
|
+
"@babylonjs/core": "^5.0.0",
|
21
|
+
"@babylonjs/gui": "^5.0.0",
|
22
|
+
"@babylonjs/loaders": "^5.0.0",
|
23
|
+
"@babylonjs/materials": "^5.0.0",
|
24
|
+
"@babylonjs/serializers": "^5.0.0"
|
24
25
|
},
|
25
26
|
"peerDependencies": {
|
26
27
|
"@types/react": ">=16.7.3",
|
@@ -28,8 +29,27 @@
|
|
28
29
|
},
|
29
30
|
"devDependencies": {
|
30
31
|
"@lts/gui": "1.0.0",
|
32
|
+
"react": "^17.0.2",
|
33
|
+
"react-dom": "^17.0.2",
|
31
34
|
"rimraf": "^3.0.2",
|
32
35
|
"typescript": "^4.4.4"
|
33
36
|
},
|
34
|
-
"
|
37
|
+
"keywords": [
|
38
|
+
"3D",
|
39
|
+
"javascript",
|
40
|
+
"html5",
|
41
|
+
"webgl",
|
42
|
+
"babylon.js"
|
43
|
+
],
|
44
|
+
"license": "Apache-2.0",
|
45
|
+
"esnext": "dist/babylon.inspector.bundle.max.js",
|
46
|
+
"sideEffects": true,
|
47
|
+
"homepage": "https://www.babylonjs.com",
|
48
|
+
"repository": {
|
49
|
+
"type": "git",
|
50
|
+
"url": "https://github.com/BabylonJS/Babylon.js.git"
|
51
|
+
},
|
52
|
+
"bugs": {
|
53
|
+
"url": "https://github.com/BabylonJS/Babylon.js/issues"
|
54
|
+
}
|
35
55
|
}
|