@babylonjs/node-editor 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.
|
@@ -1798,7 +1798,8 @@ export {};
|
|
|
1798
1798
|
}
|
|
1799
1799
|
declare module "@babylonjs/node-editor/sharedComponents/matrixLineComponent" {
|
|
1800
1800
|
import * as React from "react";
|
|
1801
|
-
import { Vector3,
|
|
1801
|
+
import { Vector3, Vector4 } from "@babylonjs/core/Maths/math.vector";
|
|
1802
|
+
import { Matrix } from "@babylonjs/core/Maths/math.vector";
|
|
1802
1803
|
import { Observable } from "@babylonjs/core/Misc/observable";
|
|
1803
1804
|
import { PropertyChangedEvent } from "@babylonjs/node-editor/sharedComponents/propertyChangedEvent";
|
|
1804
1805
|
import { GlobalState } from "@babylonjs/node-editor/globalState";
|
|
@@ -2290,6 +2291,7 @@ export interface ICheckBoxLineComponentProps {
|
|
|
2290
2291
|
enabled: IconDefinition;
|
|
2291
2292
|
disabled: IconDefinition;
|
|
2292
2293
|
};
|
|
2294
|
+
large?: boolean;
|
|
2293
2295
|
}
|
|
2294
2296
|
export class CheckBoxLineComponent extends React.Component<ICheckBoxLineComponentProps, {
|
|
2295
2297
|
isSelected: boolean;
|
|
@@ -2501,12 +2503,12 @@ interface IFloatLineComponentProps {
|
|
|
2501
2503
|
icon?: string;
|
|
2502
2504
|
iconLabel?: string;
|
|
2503
2505
|
defaultValue?: number;
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
unitLocked?: boolean;
|
|
2506
|
+
arrows?: boolean;
|
|
2507
|
+
unit?: React.ReactNode;
|
|
2507
2508
|
}
|
|
2508
2509
|
export class FloatLineComponent extends React.Component<IFloatLineComponentProps, {
|
|
2509
2510
|
value: string;
|
|
2511
|
+
dragging: boolean;
|
|
2510
2512
|
}> {
|
|
2511
2513
|
private _localChange;
|
|
2512
2514
|
private _store;
|
|
@@ -2515,11 +2517,14 @@ export class FloatLineComponent extends React.Component<IFloatLineComponentProps
|
|
|
2515
2517
|
getValueString(value: any): string;
|
|
2516
2518
|
shouldComponentUpdate(nextProps: IFloatLineComponentProps, nextState: {
|
|
2517
2519
|
value: string;
|
|
2520
|
+
dragging: boolean;
|
|
2518
2521
|
}): boolean;
|
|
2519
2522
|
raiseOnPropertyChanged(newValue: number, previousValue: number): void;
|
|
2520
2523
|
updateValue(valueString: string): void;
|
|
2521
2524
|
lock(): void;
|
|
2522
2525
|
unlock(): void;
|
|
2526
|
+
incrementValue(amount: number): void;
|
|
2527
|
+
onKeyDown(event: React.KeyboardEvent): void;
|
|
2523
2528
|
render(): JSX.Element;
|
|
2524
2529
|
}
|
|
2525
2530
|
export {};
|
|
@@ -2623,6 +2628,7 @@ export class InputArrowsComponent extends React.Component<IInputArrowsComponentP
|
|
|
2623
2628
|
private _arrowsRef;
|
|
2624
2629
|
private _drag;
|
|
2625
2630
|
private _releaseListener;
|
|
2631
|
+
private _lockChangeListener;
|
|
2626
2632
|
render(): JSX.Element;
|
|
2627
2633
|
}
|
|
2628
2634
|
export {};
|
|
@@ -2808,6 +2814,7 @@ interface ISliderLineComponentProps {
|
|
|
2808
2814
|
icon?: string;
|
|
2809
2815
|
iconLabel?: string;
|
|
2810
2816
|
lockObject?: LockObject;
|
|
2817
|
+
unit?: React.ReactNode;
|
|
2811
2818
|
}
|
|
2812
2819
|
export class SliderLineComponent extends React.Component<ISliderLineComponentProps, {
|
|
2813
2820
|
value: number;
|
|
@@ -2844,7 +2851,7 @@ import * as React from "react";
|
|
|
2844
2851
|
import { Observable } from "@babylonjs/core/Misc/observable";
|
|
2845
2852
|
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
|
2846
2853
|
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
|
2847
|
-
interface ITextInputLineComponentProps {
|
|
2854
|
+
export interface ITextInputLineComponentProps {
|
|
2848
2855
|
label?: string;
|
|
2849
2856
|
lockObject?: LockObject;
|
|
2850
2857
|
target?: any;
|
|
@@ -2857,9 +2864,6 @@ interface ITextInputLineComponentProps {
|
|
|
2857
2864
|
noUnderline?: boolean;
|
|
2858
2865
|
numbersOnly?: boolean;
|
|
2859
2866
|
delayInput?: boolean;
|
|
2860
|
-
unit?: string;
|
|
2861
|
-
onUnitClicked?: (unit: string) => void;
|
|
2862
|
-
unitLocked?: boolean;
|
|
2863
2867
|
arrows?: boolean;
|
|
2864
2868
|
arrowsIncrement?: (amount: number) => void;
|
|
2865
2869
|
step?: number;
|
|
@@ -2868,6 +2872,7 @@ interface ITextInputLineComponentProps {
|
|
|
2868
2872
|
min?: number;
|
|
2869
2873
|
max?: number;
|
|
2870
2874
|
placeholder?: string;
|
|
2875
|
+
unit?: React.ReactNode;
|
|
2871
2876
|
}
|
|
2872
2877
|
export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
|
|
2873
2878
|
value: string;
|
|
@@ -2881,12 +2886,12 @@ export class TextInputLineComponent extends React.Component<ITextInputLineCompon
|
|
|
2881
2886
|
dragging: boolean;
|
|
2882
2887
|
}): boolean;
|
|
2883
2888
|
raiseOnPropertyChanged(newValue: string, previousValue: string): void;
|
|
2889
|
+
getCurrentNumericValue(value: string): number;
|
|
2884
2890
|
updateValue(value: string): void;
|
|
2885
2891
|
incrementValue(amount: number): void;
|
|
2886
2892
|
onKeyDown(event: React.KeyboardEvent): void;
|
|
2887
2893
|
render(): JSX.Element;
|
|
2888
2894
|
}
|
|
2889
|
-
export {};
|
|
2890
2895
|
|
|
2891
2896
|
}
|
|
2892
2897
|
declare module "shared-ui-components/lines/textLineComponent" {
|
|
@@ -2912,6 +2917,17 @@ export class TextLineComponent extends React.Component<ITextLineComponentProps>
|
|
|
2912
2917
|
}
|
|
2913
2918
|
export {};
|
|
2914
2919
|
|
|
2920
|
+
}
|
|
2921
|
+
declare module "shared-ui-components/lines/unitButton" {
|
|
2922
|
+
/// <reference types="react" />
|
|
2923
|
+
interface IUnitButtonProps {
|
|
2924
|
+
unit: string;
|
|
2925
|
+
locked?: boolean;
|
|
2926
|
+
onClick?: (unit: string) => void;
|
|
2927
|
+
}
|
|
2928
|
+
export function UnitButton(props: IUnitButtonProps): JSX.Element;
|
|
2929
|
+
export {};
|
|
2930
|
+
|
|
2915
2931
|
}
|
|
2916
2932
|
declare module "shared-ui-components/lines/valueLineComponent" {
|
|
2917
2933
|
import * as React from "react";
|
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,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babylonjs/node-editor",
|
|
3
|
-
"version": "5.0.0
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"main": "dist/babylon.nodeEditor.max.js",
|
|
5
5
|
"module": "dist/babylon.nodeEditor.max.js",
|
|
6
6
|
"esnext": "dist/babylon.nodeEditor.max.js",
|
|
7
7
|
"typings": "dist/babylon.nodeEditor.module.d.ts",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist",
|
|
10
|
-
"readme.md"
|
|
10
|
+
"readme.md",
|
|
11
|
+
"license.md"
|
|
11
12
|
],
|
|
12
13
|
"scripts": {
|
|
13
14
|
"build": "npm run clean && npm run build:dev && npm run build:prod && npm run build:declaration",
|
|
@@ -17,19 +18,33 @@
|
|
|
17
18
|
"clean": "rimraf dist"
|
|
18
19
|
},
|
|
19
20
|
"dependencies": {
|
|
20
|
-
"@babylonjs/core": "^5.0.0
|
|
21
|
-
"@babylonjs/gui": "^5.0.0-rc.9",
|
|
22
|
-
"react": "^17.0.2",
|
|
23
|
-
"react-dom": "^17.0.2",
|
|
24
|
-
"tslib": "^2.3.1"
|
|
21
|
+
"@babylonjs/core": "^5.0.0"
|
|
25
22
|
},
|
|
26
23
|
"peerDependencies": {
|
|
27
24
|
"@types/react": ">=16.7.3",
|
|
28
25
|
"@types/react-dom": ">=16.0.9"
|
|
29
26
|
},
|
|
30
27
|
"devDependencies": {
|
|
28
|
+
"react": "^17.0.2",
|
|
29
|
+
"react-dom": "^17.0.2",
|
|
31
30
|
"rimraf": "^3.0.2",
|
|
32
31
|
"typescript": "^4.4.4"
|
|
33
32
|
},
|
|
34
|
-
"
|
|
33
|
+
"keywords": [
|
|
34
|
+
"3D",
|
|
35
|
+
"javascript",
|
|
36
|
+
"html5",
|
|
37
|
+
"webgl",
|
|
38
|
+
"babylon.js"
|
|
39
|
+
],
|
|
40
|
+
"license": "Apache-2.0",
|
|
41
|
+
"sideEffects": true,
|
|
42
|
+
"homepage": "https://www.babylonjs.com",
|
|
43
|
+
"repository": {
|
|
44
|
+
"type": "git",
|
|
45
|
+
"url": "https://github.com/BabylonJS/Babylon.js.git"
|
|
46
|
+
},
|
|
47
|
+
"bugs": {
|
|
48
|
+
"url": "https://github.com/BabylonJS/Babylon.js/issues"
|
|
49
|
+
}
|
|
35
50
|
}
|