@babylonjs/shared-ui-components 5.28.0 → 5.30.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/colorPicker/colorComponentEntry.d.ts +18 -18
- package/colorPicker/colorComponentEntry.js +36 -36
- package/colorPicker/colorPicker.d.ts +43 -43
- package/colorPicker/colorPicker.js +136 -136
- package/colorPicker/hexColor.d.ts +20 -20
- package/colorPicker/hexColor.js +42 -42
- package/components/Button.d.ts +10 -10
- package/components/Button.js +6 -6
- package/components/Icon.d.ts +6 -6
- package/components/Icon.js +6 -6
- package/components/Label.d.ts +7 -7
- package/components/Label.js +6 -6
- package/components/MessageDialog.d.ts +7 -7
- package/components/MessageDialog.js +22 -22
- package/components/Toggle.d.ts +8 -8
- package/components/Toggle.js +15 -15
- package/components/bars/CommandBarComponent.d.ts +16 -16
- package/components/bars/CommandBarComponent.js +68 -68
- package/components/bars/CommandBarComponent.js.map +1 -1
- package/components/bars/CommandButtonComponent.d.ts +11 -11
- package/components/bars/CommandButtonComponent.js +6 -6
- package/components/bars/CommandDropdownComponent.d.ts +26 -26
- package/components/bars/CommandDropdownComponent.js +48 -48
- package/components/classNames.d.ts +2 -2
- package/components/classNames.js +18 -18
- package/components/colorPicker/ColorComponentEntry.d.ts +18 -18
- package/components/colorPicker/ColorComponentEntry.js +37 -37
- package/components/colorPicker/ColorPicker.d.ts +43 -43
- package/components/colorPicker/ColorPicker.js +137 -137
- package/components/colorPicker/HexColor.d.ts +20 -20
- package/components/colorPicker/HexColor.js +45 -45
- package/components/layout/DraggableIcon.d.ts +23 -0
- package/components/layout/DraggableIcon.js +18 -0
- package/components/layout/DraggableIcon.js.map +1 -0
- package/components/layout/FlexibleColumn.d.ts +17 -0
- package/components/layout/FlexibleColumn.js +12 -0
- package/components/layout/FlexibleColumn.js.map +1 -0
- package/components/layout/FlexibleDragHandler.d.ts +18 -0
- package/components/layout/FlexibleDragHandler.js +88 -0
- package/components/layout/FlexibleDragHandler.js.map +1 -0
- package/components/layout/FlexibleDropZone.d.ts +19 -0
- package/components/layout/FlexibleDropZone.js +12 -0
- package/components/layout/FlexibleDropZone.js.map +1 -0
- package/components/layout/FlexibleGridContainer.d.ts +10 -0
- package/components/layout/FlexibleGridContainer.js +23 -0
- package/components/layout/FlexibleGridContainer.js.map +1 -0
- package/components/layout/FlexibleGridLayout.d.ts +16 -0
- package/components/layout/FlexibleGridLayout.js +24 -0
- package/components/layout/FlexibleGridLayout.js.map +1 -0
- package/components/layout/FlexibleResizeBar.d.ts +40 -0
- package/components/layout/FlexibleResizeBar.js +21 -0
- package/components/layout/FlexibleResizeBar.js.map +1 -0
- package/components/layout/FlexibleTab.d.ts +34 -0
- package/components/layout/FlexibleTab.js +36 -0
- package/components/layout/FlexibleTab.js.map +1 -0
- package/components/layout/FlexibleTabsContainer.d.ts +28 -0
- package/components/layout/FlexibleTabsContainer.js +54 -0
- package/components/layout/FlexibleTabsContainer.js.map +1 -0
- package/components/layout/LayoutContext.d.ts +12 -0
- package/components/layout/LayoutContext.js +3 -0
- package/components/layout/LayoutContext.js.map +1 -0
- package/components/layout/types.d.ts +82 -0
- package/components/layout/types.js +13 -0
- package/components/layout/types.js.map +1 -0
- package/components/layout/utils.d.ts +25 -0
- package/components/layout/utils.js +68 -0
- package/components/layout/utils.js.map +1 -0
- package/components/lines/ColorLineComponent.d.ts +40 -40
- package/components/lines/ColorLineComponent.js +145 -145
- package/components/lines/ColorPickerLineComponent.d.ts +33 -33
- package/components/lines/ColorPickerLineComponent.js +61 -61
- package/components/lines/FileButtonLineComponent.d.ts +16 -16
- package/components/lines/FileButtonLineComponent.js +21 -21
- package/components/lines/NumericInputComponent.d.ts +31 -31
- package/components/lines/NumericInputComponent.js +86 -86
- package/lines/booleanLineComponent.d.ts +11 -11
- package/lines/booleanLineComponent.js +14 -14
- package/lines/buttonLineComponent.d.ts +12 -12
- package/lines/buttonLineComponent.js +10 -10
- package/lines/checkBoxLineComponent.d.ts +36 -36
- package/lines/checkBoxLineComponent.js +88 -88
- package/lines/color3LineComponent.d.ts +18 -18
- package/lines/color3LineComponent.js +9 -9
- package/lines/color4LineComponent.d.ts +18 -18
- package/lines/color4LineComponent.js +9 -9
- package/lines/colorLineComponent.d.ts +40 -40
- package/lines/colorLineComponent.js +144 -144
- package/lines/colorPickerComponent.d.ts +31 -31
- package/lines/colorPickerComponent.js +60 -60
- package/lines/draggableLineComponent.d.ts +9 -9
- package/lines/draggableLineComponent.js +12 -12
- package/lines/fileButtonLineComponent.d.ts +17 -17
- package/lines/fileButtonLineComponent.js +20 -20
- package/lines/fileMultipleButtonLineComponent.d.ts +17 -17
- package/lines/fileMultipleButtonLineComponent.js +20 -20
- package/lines/floatLineComponent.d.ts +50 -50
- package/lines/floatLineComponent.js +175 -175
- package/lines/hexLineComponent.d.ts +40 -40
- package/lines/hexLineComponent.js +121 -121
- package/lines/iSelectedLineContainer.d.ts +4 -4
- package/lines/iSelectedLineContainer.js +1 -1
- package/lines/iconButtonLineComponent.d.ts +11 -11
- package/lines/iconButtonLineComponent.js +10 -10
- package/lines/iconComponent.d.ts +9 -9
- package/lines/iconComponent.js +7 -7
- package/lines/indentedTextLineComponent.d.ts +16 -16
- package/lines/indentedTextLineComponent.js +26 -26
- package/lines/inputArrowsComponent.d.ts +13 -13
- package/lines/inputArrowsComponent.js +37 -37
- package/lines/lineContainerComponent.d.ts +19 -19
- package/lines/lineContainerComponent.js +49 -49
- package/lines/linkButtonComponent.d.ts +16 -16
- package/lines/linkButtonComponent.js +20 -20
- package/lines/matrixLineComponent.d.ts +36 -36
- package/lines/matrixLineComponent.js +102 -102
- package/lines/messageLineComponent.d.ts +12 -12
- package/lines/messageLineComponent.js +14 -14
- package/lines/numericInputComponent.d.ts +31 -31
- package/lines/numericInputComponent.js +85 -85
- package/lines/optionsLineComponent.d.ts +48 -48
- package/lines/optionsLineComponent.js +118 -118
- package/lines/popup.d.ts +4 -4
- package/lines/popup.js +67 -67
- package/lines/radioLineComponent.d.ts +21 -21
- package/lines/radioLineComponent.js +26 -26
- package/lines/sliderLineComponent.d.ts +37 -37
- package/lines/sliderLineComponent.js +89 -89
- package/lines/targetsProxy.d.ts +11 -11
- package/lines/targetsProxy.js +42 -42
- package/lines/textInputLineComponent.d.ts +47 -47
- package/lines/textInputLineComponent.js +154 -154
- package/lines/textLineComponent.d.ts +21 -21
- package/lines/textLineComponent.js +30 -30
- package/lines/unitButton.d.ts +8 -8
- package/lines/unitButton.js +7 -7
- package/lines/valueLineComponent.d.ts +15 -15
- package/lines/valueLineComponent.js +12 -12
- package/lines/vector2LineComponent.d.ts +36 -36
- package/lines/vector2LineComponent.js +63 -63
- package/lines/vector3LineComponent.d.ts +41 -41
- package/lines/vector3LineComponent.js +74 -74
- package/lines/vector4LineComponent.d.ts +42 -42
- package/lines/vector4LineComponent.js +81 -81
- package/nodeGraphSystem/displayLedger.d.ts +5 -5
- package/nodeGraphSystem/displayLedger.js +3 -3
- package/nodeGraphSystem/frameNodePort.d.ts +25 -25
- package/nodeGraphSystem/frameNodePort.js +59 -59
- package/nodeGraphSystem/graphCanvas.d.ts +117 -111
- package/nodeGraphSystem/graphCanvas.js +1137 -1131
- package/nodeGraphSystem/graphCanvas.js.map +1 -1
- package/nodeGraphSystem/graphFrame.d.ts +153 -153
- package/nodeGraphSystem/graphFrame.js +1328 -1328
- package/nodeGraphSystem/graphNode.d.ts +81 -79
- package/nodeGraphSystem/graphNode.js +465 -459
- package/nodeGraphSystem/graphNode.js.map +1 -1
- package/nodeGraphSystem/interfaces/displayManager.d.ts +13 -13
- package/nodeGraphSystem/interfaces/displayManager.js +1 -1
- package/nodeGraphSystem/interfaces/nodeContainer.d.ts +6 -6
- package/nodeGraphSystem/interfaces/nodeContainer.js +1 -1
- package/nodeGraphSystem/interfaces/nodeData.d.ts +15 -15
- package/nodeGraphSystem/interfaces/nodeData.js +1 -1
- package/nodeGraphSystem/interfaces/nodeLocationInfo.d.ts +26 -26
- package/nodeGraphSystem/interfaces/nodeLocationInfo.js +1 -1
- package/nodeGraphSystem/interfaces/portData.d.ts +28 -28
- package/nodeGraphSystem/interfaces/portData.js +7 -7
- package/nodeGraphSystem/interfaces/propertyComponentProps.d.ts +6 -6
- package/nodeGraphSystem/interfaces/propertyComponentProps.js +1 -1
- package/nodeGraphSystem/interfaces/selectionChangedOptions.d.ts +11 -11
- package/nodeGraphSystem/interfaces/selectionChangedOptions.js +1 -1
- package/nodeGraphSystem/nodeLink.d.ts +31 -31
- package/nodeGraphSystem/nodeLink.js +182 -182
- package/nodeGraphSystem/nodePort.d.ts +35 -35
- package/nodeGraphSystem/nodePort.js +128 -128
- package/nodeGraphSystem/propertyLedger.d.ts +8 -8
- package/nodeGraphSystem/propertyLedger.js +3 -3
- package/nodeGraphSystem/stateManager.d.ts +45 -45
- package/nodeGraphSystem/stateManager.js +18 -18
- package/nodeGraphSystem/tools.d.ts +5 -5
- package/nodeGraphSystem/tools.js +36 -36
- package/nodeGraphSystem/typeLedger.d.ts +8 -8
- package/nodeGraphSystem/typeLedger.js +2 -2
- package/nodeGraphSystem/types/framePortData.d.ts +7 -7
- package/nodeGraphSystem/types/framePortData.js +1 -1
- package/package.json +4 -3
- package/propertyChangedEvent.d.ts +7 -7
- package/propertyChangedEvent.js +2 -2
- package/stories/Button.stories.d.ts +10 -10
- package/stories/Button.stories.js +19 -19
- package/stories/Icon.stories.d.ts +9 -9
- package/stories/Icon.stories.js +16 -16
- package/stories/Label.stories.d.ts +8 -8
- package/stories/Label.stories.js +10 -10
- package/stories/MessageDialog.stories.d.ts +9 -9
- package/stories/MessageDialog.stories.js +19 -19
- package/stories/Toggle.stories.d.ts +9 -9
- package/stories/Toggle.stories.js +17 -17
- package/stories/bars/CommandBarComponent.stories.d.ts +11 -11
- package/stories/bars/CommandBarComponent.stories.js +12 -12
- package/stories/bars/CommandButtonComponent.stories.d.ts +6 -6
- package/stories/bars/CommandButtonComponent.stories.js +6 -6
- package/stories/colorPicker/ColorPicker.stories.d.ts +11 -11
- package/stories/colorPicker/ColorPicker.stories.js +4 -4
- package/stories/layout/FlexibleGridLayout.stories.d.ts +46 -0
- package/stories/layout/FlexibleGridLayout.stories.js +48 -0
- package/stories/layout/FlexibleGridLayout.stories.js.map +1 -0
- package/stories/lines/ColorLineComponent.stories.d.ts +21 -21
- package/stories/lines/ColorLineComponent.stories.js +9 -9
- package/stories/lines/ColorPickerLineComponent.stories.d.ts +14 -14
- package/stories/lines/ColorPickerLineComponent.stories.js +10 -10
- package/stories/lines/FileButtonLineComponent.stories.d.ts +6 -6
- package/stories/lines/FileButtonLineComponent.stories.js +5 -5
- package/stories/lines/NumericInputComponent.stories.d.ts +11 -11
- package/stories/lines/NumericInputComponent.stories.js +5 -5
- package/stringTools.d.ts +11 -11
- package/stringTools.js +88 -88
- package/tabs/propertyGrids/gui/checkboxPropertyGridComponent.d.ts +15 -15
- package/tabs/propertyGrids/gui/checkboxPropertyGridComponent.js +15 -15
- package/tabs/propertyGrids/gui/colorPickerPropertyGridComponent.d.ts +15 -15
- package/tabs/propertyGrids/gui/colorPickerPropertyGridComponent.js +14 -14
- package/tabs/propertyGrids/gui/commonControlPropertyGridComponent.d.ts +17 -17
- package/tabs/propertyGrids/gui/commonControlPropertyGridComponent.js +55 -55
- package/tabs/propertyGrids/gui/controlPropertyGridComponent.d.ts +15 -15
- package/tabs/propertyGrids/gui/controlPropertyGridComponent.js +12 -12
- package/tabs/propertyGrids/gui/ellipsePropertyGridComponent.d.ts +15 -15
- package/tabs/propertyGrids/gui/ellipsePropertyGridComponent.js +15 -15
- package/tabs/propertyGrids/gui/gridPropertyGridComponent.d.ts +17 -17
- package/tabs/propertyGrids/gui/gridPropertyGridComponent.js +38 -38
- package/tabs/propertyGrids/gui/imageBasedSliderPropertyGridComponent.d.ts +15 -15
- package/tabs/propertyGrids/gui/imageBasedSliderPropertyGridComponent.js +16 -16
- package/tabs/propertyGrids/gui/imagePropertyGridComponent.d.ts +15 -15
- package/tabs/propertyGrids/gui/imagePropertyGridComponent.js +25 -25
- package/tabs/propertyGrids/gui/inputTextPropertyGridComponent.d.ts +15 -15
- package/tabs/propertyGrids/gui/inputTextPropertyGridComponent.js +17 -17
- package/tabs/propertyGrids/gui/linePropertyGridComponent.d.ts +16 -16
- package/tabs/propertyGrids/gui/linePropertyGridComponent.js +27 -27
- package/tabs/propertyGrids/gui/radioButtonPropertyGridComponent.d.ts +15 -15
- package/tabs/propertyGrids/gui/radioButtonPropertyGridComponent.js +17 -17
- package/tabs/propertyGrids/gui/rectanglePropertyGridComponent.d.ts +15 -15
- package/tabs/propertyGrids/gui/rectanglePropertyGridComponent.js +15 -15
- package/tabs/propertyGrids/gui/scrollViewerPropertyGridComponent.d.ts +15 -15
- package/tabs/propertyGrids/gui/scrollViewerPropertyGridComponent.js +15 -15
- package/tabs/propertyGrids/gui/sliderPropertyGridComponent.d.ts +15 -15
- package/tabs/propertyGrids/gui/sliderPropertyGridComponent.js +16 -16
- package/tabs/propertyGrids/gui/stackPanelPropertyGridComponent.d.ts +15 -15
- package/tabs/propertyGrids/gui/stackPanelPropertyGridComponent.js +14 -14
- package/tabs/propertyGrids/gui/textBlockPropertyGridComponent.d.ts +15 -15
- package/tabs/propertyGrids/gui/textBlockPropertyGridComponent.js +34 -34
- package/tabs/propertyGrids/lockObject.d.ts +9 -9
- package/tabs/propertyGrids/lockObject.js +11 -11
@@ -1,87 +1,87 @@
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
import * as React from "react";
|
3
|
-
import style from "./NumericInputComponent.modules.scss";
|
4
|
-
export class NumericInputComponent extends React.Component {
|
5
|
-
constructor(props) {
|
6
|
-
super(props);
|
7
|
-
this._localChange = false;
|
8
|
-
this.state = { value: this.props.value.toFixed(this.props.precision !== undefined ? this.props.precision : 3) };
|
9
|
-
}
|
10
|
-
componentWillUnmount() {
|
11
|
-
if (this.props.lockObject) {
|
12
|
-
this.props.lockObject.lock = false;
|
13
|
-
}
|
14
|
-
}
|
15
|
-
shouldComponentUpdate(nextProps, nextState) {
|
16
|
-
if (this._localChange) {
|
17
|
-
return true;
|
18
|
-
}
|
19
|
-
if (nextProps.value.toString() !== nextState.value) {
|
20
|
-
nextState.value = nextProps.value.toFixed(this.props.precision !== undefined ? this.props.precision : 3);
|
21
|
-
return true;
|
22
|
-
}
|
23
|
-
return false;
|
24
|
-
}
|
25
|
-
updateValue(valueString) {
|
26
|
-
if (/[^0-9.-]/g.test(valueString)) {
|
27
|
-
return;
|
28
|
-
}
|
29
|
-
const valueAsNumber = parseFloat(valueString);
|
30
|
-
this._localChange = true;
|
31
|
-
this.setState({ value: valueString });
|
32
|
-
if (isNaN(valueAsNumber)) {
|
33
|
-
return;
|
34
|
-
}
|
35
|
-
this.props.onChange(valueAsNumber);
|
36
|
-
}
|
37
|
-
onBlur() {
|
38
|
-
this._localChange = false;
|
39
|
-
const valueAsNumber = parseFloat(this.state.value);
|
40
|
-
if (this.props.lockObject) {
|
41
|
-
this.props.lockObject.lock = false;
|
42
|
-
}
|
43
|
-
if (isNaN(valueAsNumber)) {
|
44
|
-
this.props.onChange(this.props.value);
|
45
|
-
return;
|
46
|
-
}
|
47
|
-
this.props.onChange(valueAsNumber);
|
48
|
-
}
|
49
|
-
incrementValue(amount) {
|
50
|
-
let currentValue = parseFloat(this.state.value);
|
51
|
-
if (isNaN(currentValue)) {
|
52
|
-
currentValue = 0;
|
53
|
-
}
|
54
|
-
this.updateValue((currentValue + amount).toFixed(this.props.precision !== undefined ? this.props.precision : 3));
|
55
|
-
}
|
56
|
-
onKeyDown(evt) {
|
57
|
-
const step = this.props.step || 1;
|
58
|
-
const handleArrowKey = (sign) => {
|
59
|
-
if (evt.shiftKey) {
|
60
|
-
sign *= 10;
|
61
|
-
if (evt.ctrlKey || evt.metaKey) {
|
62
|
-
sign *= 10;
|
63
|
-
}
|
64
|
-
}
|
65
|
-
this.incrementValue(sign * step);
|
66
|
-
evt.preventDefault();
|
67
|
-
};
|
68
|
-
if (evt.key === "ArrowUp") {
|
69
|
-
handleArrowKey(1);
|
70
|
-
}
|
71
|
-
else if (evt.key === "ArrowDown") {
|
72
|
-
handleArrowKey(-1);
|
73
|
-
}
|
74
|
-
}
|
75
|
-
render() {
|
76
|
-
return (_jsxs("div", { className: style.numeric, children: [this.props.icon && _jsx("img", { src: this.props.icon, title: this.props.iconLabel, alt: this.props.iconLabel, className: "icon" }), this.props.label && (_jsx("div", { className: style.numericLabel, title: this.props.label, children: `${this.props.label}: ` })), _jsx("input", { type: "number", step: this.props.step, className: style.numericInput, value: this.state.value, onChange: (evt) => this.updateValue(evt.target.value), onKeyDown: (evt) => this.onKeyDown(evt), onFocus: () => {
|
77
|
-
if (this.props.lockObject) {
|
78
|
-
this.props.lockObject.lock = true;
|
79
|
-
}
|
80
|
-
}, onBlur: () => this.onBlur() })] }));
|
81
|
-
}
|
82
|
-
}
|
83
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
84
|
-
NumericInputComponent.defaultProps = {
|
85
|
-
step: 1,
|
86
|
-
};
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import * as React from "react";
|
3
|
+
import style from "./NumericInputComponent.modules.scss";
|
4
|
+
export class NumericInputComponent extends React.Component {
|
5
|
+
constructor(props) {
|
6
|
+
super(props);
|
7
|
+
this._localChange = false;
|
8
|
+
this.state = { value: this.props.value.toFixed(this.props.precision !== undefined ? this.props.precision : 3) };
|
9
|
+
}
|
10
|
+
componentWillUnmount() {
|
11
|
+
if (this.props.lockObject) {
|
12
|
+
this.props.lockObject.lock = false;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
shouldComponentUpdate(nextProps, nextState) {
|
16
|
+
if (this._localChange) {
|
17
|
+
return true;
|
18
|
+
}
|
19
|
+
if (nextProps.value.toString() !== nextState.value) {
|
20
|
+
nextState.value = nextProps.value.toFixed(this.props.precision !== undefined ? this.props.precision : 3);
|
21
|
+
return true;
|
22
|
+
}
|
23
|
+
return false;
|
24
|
+
}
|
25
|
+
updateValue(valueString) {
|
26
|
+
if (/[^0-9.-]/g.test(valueString)) {
|
27
|
+
return;
|
28
|
+
}
|
29
|
+
const valueAsNumber = parseFloat(valueString);
|
30
|
+
this._localChange = true;
|
31
|
+
this.setState({ value: valueString });
|
32
|
+
if (isNaN(valueAsNumber)) {
|
33
|
+
return;
|
34
|
+
}
|
35
|
+
this.props.onChange(valueAsNumber);
|
36
|
+
}
|
37
|
+
onBlur() {
|
38
|
+
this._localChange = false;
|
39
|
+
const valueAsNumber = parseFloat(this.state.value);
|
40
|
+
if (this.props.lockObject) {
|
41
|
+
this.props.lockObject.lock = false;
|
42
|
+
}
|
43
|
+
if (isNaN(valueAsNumber)) {
|
44
|
+
this.props.onChange(this.props.value);
|
45
|
+
return;
|
46
|
+
}
|
47
|
+
this.props.onChange(valueAsNumber);
|
48
|
+
}
|
49
|
+
incrementValue(amount) {
|
50
|
+
let currentValue = parseFloat(this.state.value);
|
51
|
+
if (isNaN(currentValue)) {
|
52
|
+
currentValue = 0;
|
53
|
+
}
|
54
|
+
this.updateValue((currentValue + amount).toFixed(this.props.precision !== undefined ? this.props.precision : 3));
|
55
|
+
}
|
56
|
+
onKeyDown(evt) {
|
57
|
+
const step = this.props.step || 1;
|
58
|
+
const handleArrowKey = (sign) => {
|
59
|
+
if (evt.shiftKey) {
|
60
|
+
sign *= 10;
|
61
|
+
if (evt.ctrlKey || evt.metaKey) {
|
62
|
+
sign *= 10;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
this.incrementValue(sign * step);
|
66
|
+
evt.preventDefault();
|
67
|
+
};
|
68
|
+
if (evt.key === "ArrowUp") {
|
69
|
+
handleArrowKey(1);
|
70
|
+
}
|
71
|
+
else if (evt.key === "ArrowDown") {
|
72
|
+
handleArrowKey(-1);
|
73
|
+
}
|
74
|
+
}
|
75
|
+
render() {
|
76
|
+
return (_jsxs("div", { className: style.numeric, children: [this.props.icon && _jsx("img", { src: this.props.icon, title: this.props.iconLabel, alt: this.props.iconLabel, className: "icon" }), this.props.label && (_jsx("div", { className: style.numericLabel, title: this.props.label, children: `${this.props.label}: ` })), _jsx("input", { type: "number", step: this.props.step, className: style.numericInput, value: this.state.value, onChange: (evt) => this.updateValue(evt.target.value), onKeyDown: (evt) => this.onKeyDown(evt), onFocus: () => {
|
77
|
+
if (this.props.lockObject) {
|
78
|
+
this.props.lockObject.lock = true;
|
79
|
+
}
|
80
|
+
}, onBlur: () => this.onBlur() })] }));
|
81
|
+
}
|
82
|
+
}
|
83
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
84
|
+
NumericInputComponent.defaultProps = {
|
85
|
+
step: 1,
|
86
|
+
};
|
87
87
|
//# sourceMappingURL=NumericInputComponent.js.map
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import * as React from "react";
|
2
|
-
export interface IBooleanLineComponentProps {
|
3
|
-
label: string;
|
4
|
-
value: boolean;
|
5
|
-
icon?: string;
|
6
|
-
iconLabel?: string;
|
7
|
-
}
|
8
|
-
export declare class BooleanLineComponent extends React.Component<IBooleanLineComponentProps> {
|
9
|
-
constructor(props: IBooleanLineComponentProps);
|
10
|
-
render(): JSX.Element;
|
11
|
-
}
|
1
|
+
import * as React from "react";
|
2
|
+
export interface IBooleanLineComponentProps {
|
3
|
+
label: string;
|
4
|
+
value: boolean;
|
5
|
+
icon?: string;
|
6
|
+
iconLabel?: string;
|
7
|
+
}
|
8
|
+
export declare class BooleanLineComponent extends React.Component<IBooleanLineComponentProps> {
|
9
|
+
constructor(props: IBooleanLineComponentProps);
|
10
|
+
render(): JSX.Element;
|
11
|
+
}
|
@@ -1,15 +1,15 @@
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
import * as React from "react";
|
3
|
-
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
4
|
-
import { faCheck, faTimesCircle } from "@fortawesome/free-solid-svg-icons";
|
5
|
-
export class BooleanLineComponent extends React.Component {
|
6
|
-
constructor(props) {
|
7
|
-
super(props);
|
8
|
-
}
|
9
|
-
render() {
|
10
|
-
const check = this.props.value ? _jsx(FontAwesomeIcon, { icon: faCheck }) : _jsx(FontAwesomeIcon, { icon: faTimesCircle });
|
11
|
-
const className = this.props.value ? "value check" : "value uncheck";
|
12
|
-
return (_jsxs("div", { className: "textLine", children: [this.props.icon && _jsx("img", { src: this.props.icon, title: this.props.iconLabel, alt: this.props.iconLabel, className: "icon" }), _jsx("div", { className: "label", title: this.props.label, children: this.props.label }), _jsx("div", { className: className, children: check })] }));
|
13
|
-
}
|
14
|
-
}
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import * as React from "react";
|
3
|
+
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
4
|
+
import { faCheck, faTimesCircle } from "@fortawesome/free-solid-svg-icons";
|
5
|
+
export class BooleanLineComponent extends React.Component {
|
6
|
+
constructor(props) {
|
7
|
+
super(props);
|
8
|
+
}
|
9
|
+
render() {
|
10
|
+
const check = this.props.value ? _jsx(FontAwesomeIcon, { icon: faCheck }) : _jsx(FontAwesomeIcon, { icon: faTimesCircle });
|
11
|
+
const className = this.props.value ? "value check" : "value uncheck";
|
12
|
+
return (_jsxs("div", { className: "textLine", children: [this.props.icon && _jsx("img", { src: this.props.icon, title: this.props.iconLabel, alt: this.props.iconLabel, className: "icon" }), _jsx("div", { className: "label", title: this.props.label, children: this.props.label }), _jsx("div", { className: className, children: check })] }));
|
13
|
+
}
|
14
|
+
}
|
15
15
|
//# sourceMappingURL=booleanLineComponent.js.map
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import * as React from "react";
|
2
|
-
export interface IButtonLineComponentProps {
|
3
|
-
label: string;
|
4
|
-
onClick: () => void;
|
5
|
-
icon?: string;
|
6
|
-
iconLabel?: string;
|
7
|
-
isDisabled?: boolean;
|
8
|
-
}
|
9
|
-
export declare class ButtonLineComponent extends React.Component<IButtonLineComponentProps> {
|
10
|
-
constructor(props: IButtonLineComponentProps);
|
11
|
-
render(): JSX.Element;
|
12
|
-
}
|
1
|
+
import * as React from "react";
|
2
|
+
export interface IButtonLineComponentProps {
|
3
|
+
label: string;
|
4
|
+
onClick: () => void;
|
5
|
+
icon?: string;
|
6
|
+
iconLabel?: string;
|
7
|
+
isDisabled?: boolean;
|
8
|
+
}
|
9
|
+
export declare class ButtonLineComponent extends React.Component<IButtonLineComponentProps> {
|
10
|
+
constructor(props: IButtonLineComponentProps);
|
11
|
+
render(): JSX.Element;
|
12
|
+
}
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
import * as React from "react";
|
3
|
-
export class ButtonLineComponent extends React.Component {
|
4
|
-
constructor(props) {
|
5
|
-
super(props);
|
6
|
-
}
|
7
|
-
render() {
|
8
|
-
return (_jsxs("div", { className: "buttonLine" + (this.props.isDisabled ? " disabled" : ""), children: [this.props.icon && _jsx("img", { src: this.props.icon, title: this.props.iconLabel, alt: this.props.iconLabel, className: "icon" }), _jsx("button", { onClick: () => this.props.onClick(), children: this.props.label })] }));
|
9
|
-
}
|
10
|
-
}
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import * as React from "react";
|
3
|
+
export class ButtonLineComponent extends React.Component {
|
4
|
+
constructor(props) {
|
5
|
+
super(props);
|
6
|
+
}
|
7
|
+
render() {
|
8
|
+
return (_jsxs("div", { className: "buttonLine" + (this.props.isDisabled ? " disabled" : ""), children: [this.props.icon && _jsx("img", { src: this.props.icon, title: this.props.iconLabel, alt: this.props.iconLabel, className: "icon" }), _jsx("button", { onClick: () => this.props.onClick(), children: this.props.label })] }));
|
9
|
+
}
|
10
|
+
}
|
11
11
|
//# sourceMappingURL=buttonLineComponent.js.map
|
@@ -1,36 +1,36 @@
|
|
1
|
-
import * as React from "react";
|
2
|
-
import type { Observable } from "@babylonjs/core/Misc/observable.js";
|
3
|
-
import type { PropertyChangedEvent } from "./../propertyChangedEvent";
|
4
|
-
import type { IconDefinition } from "@fortawesome/fontawesome-common-types";
|
5
|
-
export interface ICheckBoxLineComponentProps {
|
6
|
-
label?: string;
|
7
|
-
target?: any;
|
8
|
-
propertyName?: string;
|
9
|
-
isSelected?: () => boolean;
|
10
|
-
onSelect?: (value: boolean) => void;
|
11
|
-
onValueChanged?: () => void;
|
12
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
13
|
-
disabled?: boolean;
|
14
|
-
icon?: string;
|
15
|
-
iconLabel?: string;
|
16
|
-
faIcons?: {
|
17
|
-
enabled: IconDefinition;
|
18
|
-
disabled: IconDefinition;
|
19
|
-
};
|
20
|
-
large?: boolean;
|
21
|
-
}
|
22
|
-
export declare class CheckBoxLineComponent extends React.Component<ICheckBoxLineComponentProps, {
|
23
|
-
isSelected: boolean;
|
24
|
-
isDisabled?: boolean;
|
25
|
-
isConflict: boolean;
|
26
|
-
}> {
|
27
|
-
private _localChange;
|
28
|
-
constructor(props: ICheckBoxLineComponentProps);
|
29
|
-
shouldComponentUpdate(nextProps: ICheckBoxLineComponentProps, nextState: {
|
30
|
-
isSelected: boolean;
|
31
|
-
isDisabled: boolean;
|
32
|
-
isConflict: boolean;
|
33
|
-
}): boolean;
|
34
|
-
onChange(): void;
|
35
|
-
render(): JSX.Element;
|
36
|
-
}
|
1
|
+
import * as React from "react";
|
2
|
+
import type { Observable } from "@babylonjs/core/Misc/observable.js";
|
3
|
+
import type { PropertyChangedEvent } from "./../propertyChangedEvent";
|
4
|
+
import type { IconDefinition } from "@fortawesome/fontawesome-common-types";
|
5
|
+
export interface ICheckBoxLineComponentProps {
|
6
|
+
label?: string;
|
7
|
+
target?: any;
|
8
|
+
propertyName?: string;
|
9
|
+
isSelected?: () => boolean;
|
10
|
+
onSelect?: (value: boolean) => void;
|
11
|
+
onValueChanged?: () => void;
|
12
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
13
|
+
disabled?: boolean;
|
14
|
+
icon?: string;
|
15
|
+
iconLabel?: string;
|
16
|
+
faIcons?: {
|
17
|
+
enabled: IconDefinition;
|
18
|
+
disabled: IconDefinition;
|
19
|
+
};
|
20
|
+
large?: boolean;
|
21
|
+
}
|
22
|
+
export declare class CheckBoxLineComponent extends React.Component<ICheckBoxLineComponentProps, {
|
23
|
+
isSelected: boolean;
|
24
|
+
isDisabled?: boolean;
|
25
|
+
isConflict: boolean;
|
26
|
+
}> {
|
27
|
+
private _localChange;
|
28
|
+
constructor(props: ICheckBoxLineComponentProps);
|
29
|
+
shouldComponentUpdate(nextProps: ICheckBoxLineComponentProps, nextState: {
|
30
|
+
isSelected: boolean;
|
31
|
+
isDisabled: boolean;
|
32
|
+
isConflict: boolean;
|
33
|
+
}): boolean;
|
34
|
+
onChange(): void;
|
35
|
+
render(): JSX.Element;
|
36
|
+
}
|
@@ -1,89 +1,89 @@
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
import * as React from "react";
|
3
|
-
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
4
|
-
import { conflictingValuesPlaceholder } from "./targetsProxy.js";
|
5
|
-
import toggleOnIcon_40px from "../imgs/toggleOnIcon_40px.svg";
|
6
|
-
import toggleOffIcon_40px from "../imgs/toggleOffIcon_40px.svg";
|
7
|
-
import toggleOnIcon_30px from "../imgs/toggleOnIcon_30px.svg";
|
8
|
-
import toggleMixedIcon_30px from "../imgs/toggleMixedIcon_30px.svg";
|
9
|
-
import toggleOffIcon_30px from "../imgs/toggleOffIcon_30px.svg";
|
10
|
-
const Icons = {
|
11
|
-
size30: {
|
12
|
-
on: toggleOnIcon_30px,
|
13
|
-
mixed: toggleMixedIcon_30px,
|
14
|
-
off: toggleOffIcon_30px,
|
15
|
-
},
|
16
|
-
size40: {
|
17
|
-
on: toggleOnIcon_40px,
|
18
|
-
mixed: "",
|
19
|
-
off: toggleOffIcon_40px,
|
20
|
-
},
|
21
|
-
};
|
22
|
-
export class CheckBoxLineComponent extends React.Component {
|
23
|
-
constructor(props) {
|
24
|
-
super(props);
|
25
|
-
this._localChange = false;
|
26
|
-
if (this.props.isSelected) {
|
27
|
-
this.state = { isSelected: this.props.isSelected(), isConflict: false };
|
28
|
-
}
|
29
|
-
else {
|
30
|
-
this.state = {
|
31
|
-
isSelected: this.props.target[this.props.propertyName] === true,
|
32
|
-
isConflict: this.props.target[this.props.propertyName] === conflictingValuesPlaceholder,
|
33
|
-
};
|
34
|
-
}
|
35
|
-
if (this.props.disabled) {
|
36
|
-
this.state = { ...this.state, isDisabled: this.props.disabled };
|
37
|
-
}
|
38
|
-
}
|
39
|
-
shouldComponentUpdate(nextProps, nextState) {
|
40
|
-
let selected;
|
41
|
-
if (nextProps.isSelected) {
|
42
|
-
selected = nextProps.isSelected();
|
43
|
-
}
|
44
|
-
else {
|
45
|
-
selected = nextProps.target[nextProps.propertyName] === true;
|
46
|
-
if (nextProps.target[nextProps.propertyName] === conflictingValuesPlaceholder) {
|
47
|
-
nextState.isConflict = true;
|
48
|
-
}
|
49
|
-
}
|
50
|
-
if (selected !== nextState.isSelected || this._localChange) {
|
51
|
-
nextState.isSelected = selected;
|
52
|
-
this._localChange = false;
|
53
|
-
return true;
|
54
|
-
}
|
55
|
-
if (nextProps.disabled !== nextState.isDisabled) {
|
56
|
-
return true;
|
57
|
-
}
|
58
|
-
return nextProps.label !== this.props.label || nextProps.target !== this.props.target || nextState.isConflict !== this.state.isConflict;
|
59
|
-
}
|
60
|
-
onChange() {
|
61
|
-
this._localChange = true;
|
62
|
-
if (this.props.onSelect) {
|
63
|
-
this.props.onSelect(!this.state.isSelected);
|
64
|
-
}
|
65
|
-
else {
|
66
|
-
if (this.props.onPropertyChangedObservable) {
|
67
|
-
this.props.onPropertyChangedObservable.notifyObservers({
|
68
|
-
object: this.props.target,
|
69
|
-
property: this.props.propertyName,
|
70
|
-
value: !this.state.isSelected,
|
71
|
-
initialValue: this.state.isSelected,
|
72
|
-
});
|
73
|
-
}
|
74
|
-
if (this.props.target && this.props.propertyName) {
|
75
|
-
this.props.target[this.props.propertyName] = !this.state.isSelected;
|
76
|
-
}
|
77
|
-
}
|
78
|
-
if (this.props.onValueChanged) {
|
79
|
-
this.props.onValueChanged();
|
80
|
-
}
|
81
|
-
this.setState({ isSelected: !this.state.isSelected, isConflict: false });
|
82
|
-
}
|
83
|
-
render() {
|
84
|
-
const icons = this.props.large ? Icons.size40 : Icons.size30;
|
85
|
-
const icon = this.state.isConflict ? icons.mixed : this.state.isSelected ? icons.on : icons.off;
|
86
|
-
return (_jsxs("div", { className: "checkBoxLine", children: [this.props.icon && _jsx("img", { src: this.props.icon, title: this.props.iconLabel, alt: this.props.iconLabel, className: "icon" }), this.props.label && (_jsx("div", { className: "label", title: this.props.iconLabel, children: this.props.label })), this.props.faIcons && (_jsx(FontAwesomeIcon, { className: `cbx ${this.props.disabled ? "disabled" : ""}`, icon: this.state.isSelected ? this.props.faIcons.enabled : this.props.faIcons.disabled, onClick: () => !this.props.disabled && this.onChange() })), !this.props.faIcons && (_jsx("div", { className: "checkBox", children: _jsxs("label", { className: `container lbl${this.props.disabled ? " disabled" : ""} ${this.state.isSelected ? "checked" : ""}`, children: [_jsx("input", { type: "checkbox", className: `cbx hidden ${this.state.isConflict ? "conflict" : ""}`, checked: this.state.isSelected, onChange: () => this.onChange(), disabled: !!this.props.disabled }), _jsx("img", { className: "icon", src: icon, alt: this.props.label })] }) }))] }));
|
87
|
-
}
|
88
|
-
}
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import * as React from "react";
|
3
|
+
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
4
|
+
import { conflictingValuesPlaceholder } from "./targetsProxy.js";
|
5
|
+
import toggleOnIcon_40px from "../imgs/toggleOnIcon_40px.svg";
|
6
|
+
import toggleOffIcon_40px from "../imgs/toggleOffIcon_40px.svg";
|
7
|
+
import toggleOnIcon_30px from "../imgs/toggleOnIcon_30px.svg";
|
8
|
+
import toggleMixedIcon_30px from "../imgs/toggleMixedIcon_30px.svg";
|
9
|
+
import toggleOffIcon_30px from "../imgs/toggleOffIcon_30px.svg";
|
10
|
+
const Icons = {
|
11
|
+
size30: {
|
12
|
+
on: toggleOnIcon_30px,
|
13
|
+
mixed: toggleMixedIcon_30px,
|
14
|
+
off: toggleOffIcon_30px,
|
15
|
+
},
|
16
|
+
size40: {
|
17
|
+
on: toggleOnIcon_40px,
|
18
|
+
mixed: "",
|
19
|
+
off: toggleOffIcon_40px,
|
20
|
+
},
|
21
|
+
};
|
22
|
+
export class CheckBoxLineComponent extends React.Component {
|
23
|
+
constructor(props) {
|
24
|
+
super(props);
|
25
|
+
this._localChange = false;
|
26
|
+
if (this.props.isSelected) {
|
27
|
+
this.state = { isSelected: this.props.isSelected(), isConflict: false };
|
28
|
+
}
|
29
|
+
else {
|
30
|
+
this.state = {
|
31
|
+
isSelected: this.props.target[this.props.propertyName] === true,
|
32
|
+
isConflict: this.props.target[this.props.propertyName] === conflictingValuesPlaceholder,
|
33
|
+
};
|
34
|
+
}
|
35
|
+
if (this.props.disabled) {
|
36
|
+
this.state = { ...this.state, isDisabled: this.props.disabled };
|
37
|
+
}
|
38
|
+
}
|
39
|
+
shouldComponentUpdate(nextProps, nextState) {
|
40
|
+
let selected;
|
41
|
+
if (nextProps.isSelected) {
|
42
|
+
selected = nextProps.isSelected();
|
43
|
+
}
|
44
|
+
else {
|
45
|
+
selected = nextProps.target[nextProps.propertyName] === true;
|
46
|
+
if (nextProps.target[nextProps.propertyName] === conflictingValuesPlaceholder) {
|
47
|
+
nextState.isConflict = true;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
if (selected !== nextState.isSelected || this._localChange) {
|
51
|
+
nextState.isSelected = selected;
|
52
|
+
this._localChange = false;
|
53
|
+
return true;
|
54
|
+
}
|
55
|
+
if (nextProps.disabled !== nextState.isDisabled) {
|
56
|
+
return true;
|
57
|
+
}
|
58
|
+
return nextProps.label !== this.props.label || nextProps.target !== this.props.target || nextState.isConflict !== this.state.isConflict;
|
59
|
+
}
|
60
|
+
onChange() {
|
61
|
+
this._localChange = true;
|
62
|
+
if (this.props.onSelect) {
|
63
|
+
this.props.onSelect(!this.state.isSelected);
|
64
|
+
}
|
65
|
+
else {
|
66
|
+
if (this.props.onPropertyChangedObservable) {
|
67
|
+
this.props.onPropertyChangedObservable.notifyObservers({
|
68
|
+
object: this.props.target,
|
69
|
+
property: this.props.propertyName,
|
70
|
+
value: !this.state.isSelected,
|
71
|
+
initialValue: this.state.isSelected,
|
72
|
+
});
|
73
|
+
}
|
74
|
+
if (this.props.target && this.props.propertyName) {
|
75
|
+
this.props.target[this.props.propertyName] = !this.state.isSelected;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
if (this.props.onValueChanged) {
|
79
|
+
this.props.onValueChanged();
|
80
|
+
}
|
81
|
+
this.setState({ isSelected: !this.state.isSelected, isConflict: false });
|
82
|
+
}
|
83
|
+
render() {
|
84
|
+
const icons = this.props.large ? Icons.size40 : Icons.size30;
|
85
|
+
const icon = this.state.isConflict ? icons.mixed : this.state.isSelected ? icons.on : icons.off;
|
86
|
+
return (_jsxs("div", { className: "checkBoxLine", children: [this.props.icon && _jsx("img", { src: this.props.icon, title: this.props.iconLabel, alt: this.props.iconLabel, className: "icon" }), this.props.label && (_jsx("div", { className: "label", title: this.props.iconLabel, children: this.props.label })), this.props.faIcons && (_jsx(FontAwesomeIcon, { className: `cbx ${this.props.disabled ? "disabled" : ""}`, icon: this.state.isSelected ? this.props.faIcons.enabled : this.props.faIcons.disabled, onClick: () => !this.props.disabled && this.onChange() })), !this.props.faIcons && (_jsx("div", { className: "checkBox", children: _jsxs("label", { className: `container lbl${this.props.disabled ? " disabled" : ""} ${this.state.isSelected ? "checked" : ""}`, children: [_jsx("input", { type: "checkbox", className: `cbx hidden ${this.state.isConflict ? "conflict" : ""}`, checked: this.state.isSelected, onChange: () => this.onChange(), disabled: !!this.props.disabled }), _jsx("img", { className: "icon", src: icon, alt: this.props.label })] }) }))] }));
|
87
|
+
}
|
88
|
+
}
|
89
89
|
//# sourceMappingURL=checkBoxLineComponent.js.map
|
@@ -1,18 +1,18 @@
|
|
1
|
-
import * as React from "react";
|
2
|
-
import type { Observable } from "@babylonjs/core/Misc/observable.js";
|
3
|
-
import type { PropertyChangedEvent } from "../propertyChangedEvent";
|
4
|
-
import type { LockObject } from "../tabs/propertyGrids/lockObject";
|
5
|
-
export interface IColor3LineComponentProps {
|
6
|
-
label: string;
|
7
|
-
target: any;
|
8
|
-
propertyName: string;
|
9
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
10
|
-
isLinear?: boolean;
|
11
|
-
icon?: string;
|
12
|
-
lockObject: LockObject;
|
13
|
-
iconLabel?: string;
|
14
|
-
onChange?: () => void;
|
15
|
-
}
|
16
|
-
export declare class Color3LineComponent extends React.Component<IColor3LineComponentProps> {
|
17
|
-
render(): JSX.Element;
|
18
|
-
}
|
1
|
+
import * as React from "react";
|
2
|
+
import type { Observable } from "@babylonjs/core/Misc/observable.js";
|
3
|
+
import type { PropertyChangedEvent } from "../propertyChangedEvent";
|
4
|
+
import type { LockObject } from "../tabs/propertyGrids/lockObject";
|
5
|
+
export interface IColor3LineComponentProps {
|
6
|
+
label: string;
|
7
|
+
target: any;
|
8
|
+
propertyName: string;
|
9
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
10
|
+
isLinear?: boolean;
|
11
|
+
icon?: string;
|
12
|
+
lockObject: LockObject;
|
13
|
+
iconLabel?: string;
|
14
|
+
onChange?: () => void;
|
15
|
+
}
|
16
|
+
export declare class Color3LineComponent extends React.Component<IColor3LineComponentProps> {
|
17
|
+
render(): JSX.Element;
|
18
|
+
}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import * as React from "react";
|
3
|
-
import { ColorLineComponent } from "./colorLineComponent.js";
|
4
|
-
export class Color3LineComponent extends React.Component {
|
5
|
-
render() {
|
6
|
-
const props = this.props;
|
7
|
-
return _jsx(ColorLineComponent, { disableAlpha: true, ...props });
|
8
|
-
}
|
9
|
-
}
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import * as React from "react";
|
3
|
+
import { ColorLineComponent } from "./colorLineComponent.js";
|
4
|
+
export class Color3LineComponent extends React.Component {
|
5
|
+
render() {
|
6
|
+
const props = this.props;
|
7
|
+
return _jsx(ColorLineComponent, { disableAlpha: true, ...props });
|
8
|
+
}
|
9
|
+
}
|
10
10
|
//# sourceMappingURL=color3LineComponent.js.map
|
@@ -1,18 +1,18 @@
|
|
1
|
-
import * as React from "react";
|
2
|
-
import type { Observable } from "@babylonjs/core/Misc/observable.js";
|
3
|
-
import type { PropertyChangedEvent } from "../propertyChangedEvent";
|
4
|
-
import type { LockObject } from "../tabs/propertyGrids/lockObject";
|
5
|
-
export interface IColor4LineComponentProps {
|
6
|
-
label: string;
|
7
|
-
target?: any;
|
8
|
-
propertyName: string;
|
9
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
10
|
-
onChange?: () => void;
|
11
|
-
isLinear?: boolean;
|
12
|
-
icon?: string;
|
13
|
-
iconLabel?: string;
|
14
|
-
lockObject: LockObject;
|
15
|
-
}
|
16
|
-
export declare class Color4LineComponent extends React.Component<IColor4LineComponentProps> {
|
17
|
-
render(): JSX.Element;
|
18
|
-
}
|
1
|
+
import * as React from "react";
|
2
|
+
import type { Observable } from "@babylonjs/core/Misc/observable.js";
|
3
|
+
import type { PropertyChangedEvent } from "../propertyChangedEvent";
|
4
|
+
import type { LockObject } from "../tabs/propertyGrids/lockObject";
|
5
|
+
export interface IColor4LineComponentProps {
|
6
|
+
label: string;
|
7
|
+
target?: any;
|
8
|
+
propertyName: string;
|
9
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
10
|
+
onChange?: () => void;
|
11
|
+
isLinear?: boolean;
|
12
|
+
icon?: string;
|
13
|
+
iconLabel?: string;
|
14
|
+
lockObject: LockObject;
|
15
|
+
}
|
16
|
+
export declare class Color4LineComponent extends React.Component<IColor4LineComponentProps> {
|
17
|
+
render(): JSX.Element;
|
18
|
+
}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import * as React from "react";
|
3
|
-
import { ColorLineComponent } from "./colorLineComponent.js";
|
4
|
-
export class Color4LineComponent extends React.Component {
|
5
|
-
render() {
|
6
|
-
const props = this.props;
|
7
|
-
return _jsx(ColorLineComponent, { ...props });
|
8
|
-
}
|
9
|
-
}
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import * as React from "react";
|
3
|
+
import { ColorLineComponent } from "./colorLineComponent.js";
|
4
|
+
export class Color4LineComponent extends React.Component {
|
5
|
+
render() {
|
6
|
+
const props = this.props;
|
7
|
+
return _jsx(ColorLineComponent, { ...props });
|
8
|
+
}
|
9
|
+
}
|
10
10
|
//# sourceMappingURL=color4LineComponent.js.map
|