kitchen-simulator 1.1.1-test.3 → 1.1.1-test.30
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/es/KitchenConfigurator.js +36 -37
- package/es/KitchenConfiguratorApp.js +47 -45
- package/es/actions/area-actions.js +1 -1
- package/es/actions/export.js +10 -10
- package/es/actions/groups-actions.js +1 -1
- package/es/actions/holes-actions.js +1 -1
- package/es/actions/items-actions.js +1 -1
- package/es/actions/lines-actions.js +1 -1
- package/es/actions/project-actions.js +1 -1
- package/es/actions/scene-actions.js +1 -1
- package/es/actions/vertices-actions.js +1 -1
- package/es/actions/viewer2d-actions.js +1 -1
- package/es/actions/viewer3d-actions.js +1 -1
- package/es/catalog/areas/area/planner-element.js +6 -6
- package/es/catalog/catalog.js +3 -3
- package/es/catalog/factories/area-factory-3d.js +1 -1
- package/es/catalog/factories/area-factory.js +3 -3
- package/es/catalog/factories/export.js +2 -2
- package/es/catalog/factories/wall-factory-3d.js +5 -5
- package/es/catalog/factories/wall-factory.js +7 -6
- package/es/catalog/holes/door-closet/planner-element.js +2 -2
- package/es/catalog/holes/door-exterior/planner-element.js +2 -2
- package/es/catalog/holes/door-interior/planner-element.js +2 -2
- package/es/catalog/holes/door-sliding/planner-element.js +2 -2
- package/es/catalog/holes/doorway-framed/planner-element.js +2 -2
- package/es/catalog/holes/export.js +13 -13
- package/es/catalog/holes/window-clear/planner-element.js +2 -2
- package/es/catalog/holes/window-cross/planner-element.js +2 -2
- package/es/catalog/holes/window-double-hung/planner-element.js +2 -2
- package/es/catalog/holes/window-vertical/planner-element.js +2 -2
- package/es/catalog/lines/wall/planner-element.js +10 -10
- package/es/catalog/molding/molding-dcm/planner-element.js +1 -3
- package/es/catalog/molding/molding-fbm/planner-element.js +1 -3
- package/es/catalog/molding/molding-lrm/planner-element.js +1 -3
- package/es/catalog/properties/export.js +9 -9
- package/es/catalog/properties/property-checkbox.js +11 -12
- package/es/catalog/properties/property-color.js +13 -11
- package/es/catalog/properties/property-enum.js +12 -12
- package/es/catalog/properties/property-hidden.js +11 -10
- package/es/catalog/properties/property-lenght-measure.js +19 -18
- package/es/catalog/properties/property-length-measure.js +18 -17
- package/es/catalog/properties/property-length-measure_hole.js +19 -18
- package/es/catalog/properties/property-number.js +13 -12
- package/es/catalog/properties/property-read-only.js +12 -11
- package/es/catalog/properties/property-string.js +12 -11
- package/es/catalog/properties/property-toggle.js +12 -11
- package/es/catalog/utils/geom-utils.js +1 -1
- package/es/catalog/utils/item-loader.js +6 -6
- package/es/catalog/utils/load-obj.js +1 -1
- package/es/catalog/utils/mtl-loader.js +2 -1
- package/es/catalog/utils/obj-loader.js +2 -1
- package/es/class/area.js +2 -2
- package/es/class/export.js +10 -10
- package/es/class/group.js +4 -4
- package/es/class/guide.js +1 -1
- package/es/class/hole.js +5 -6
- package/es/class/item.js +10 -12
- package/es/class/layer.js +4 -4
- package/es/class/line.js +4 -4
- package/es/class/project.js +8 -8
- package/es/class/vertex.js +5 -5
- package/es/components/content.js +16 -15
- package/es/components/disclaimer/disclaimer.js +66 -86
- package/es/components/export.js +3 -3
- package/es/components/style/button.js +9 -8
- package/es/components/style/cancel-button.js +1 -1
- package/es/components/style/content-container.js +2 -1
- package/es/components/style/content-title.js +2 -2
- package/es/components/style/delete-button.js +2 -2
- package/es/components/style/export.js +14 -14
- package/es/components/style/form-color-input.js +1 -1
- package/es/components/style/form-number-input.js +21 -22
- package/es/components/style/form-number-input_2.js +18 -19
- package/es/components/style/form-select.js +1 -2
- package/es/components/style/form-slider.js +1 -1
- package/es/components/style/form-submit-button.js +2 -2
- package/es/components/style/form-text-input.js +1 -2
- package/es/components/viewer2d/area.js +9 -8
- package/es/components/viewer2d/export.js +14 -14
- package/es/components/viewer2d/grids/grid-horizontal-streak.js +7 -7
- package/es/components/viewer2d/grids/grid-streak.js +7 -7
- package/es/components/viewer2d/grids/grid-vertical-streak.js +7 -7
- package/es/components/viewer2d/grids/grids.js +7 -5
- package/es/components/viewer2d/group.js +14 -12
- package/es/components/viewer2d/item.js +17 -17
- package/es/components/viewer2d/layer.js +11 -10
- package/es/components/viewer2d/line.js +14 -16
- package/es/components/viewer2d/ruler.js +9 -9
- package/es/components/viewer2d/rulerDist.js +7 -6
- package/es/components/viewer2d/rulerX.js +18 -18
- package/es/components/viewer2d/rulerY.js +16 -16
- package/es/components/viewer2d/scene.js +11 -13
- package/es/components/viewer2d/snap.js +8 -7
- package/es/components/viewer2d/state.js +10 -9
- package/es/components/viewer2d/utils.js +2 -2
- package/es/components/viewer2d/vertex.js +7 -6
- package/es/components/viewer2d/viewer2d.js +27 -25
- package/es/components/viewer3d/front3D.js +3 -3
- package/es/components/viewer3d/grid-creator.js +2 -2
- package/es/components/viewer3d/grids/grid-horizontal-streak.js +1 -1
- package/es/components/viewer3d/grids/grid-streak.js +0 -1
- package/es/components/viewer3d/grids/grid-vertical-streak.js +1 -1
- package/es/components/viewer3d/libs/mtl-loader.js +1 -1
- package/es/components/viewer3d/libs/obj-loader.js +1 -1
- package/es/components/viewer3d/libs/orbit-controls.js +5 -4
- package/es/components/viewer3d/libs/pointer-lock-controls.js +4 -3
- package/es/components/viewer3d/pointer-lock-navigation.js +1 -1
- package/es/components/viewer3d/ruler-utils/itemRect.js +1 -1
- package/es/components/viewer3d/ruler-utils/layer3D.js +5 -5
- package/es/components/viewer3d/ruler-utils/ruler3D.js +1 -1
- package/es/components/viewer3d/ruler-utils/scene3D.js +2 -4
- package/es/components/viewer3d/ruler-utils/state3D.js +1 -1
- package/es/components/viewer3d/scene-creator.js +10 -10
- package/es/components/viewer3d/viewer3d-first-person.js +20 -21
- package/es/components/viewer3d/viewer3d.js +31 -34
- package/es/index.js +14 -14
- package/es/models.js +4 -4
- package/es/plugins/autosave.js +1 -1
- package/es/plugins/console-debugger.js +1 -1
- package/es/plugins/export.js +3 -3
- package/es/plugins/keyboard.js +2 -2
- package/es/reducers/areas-reducer.js +2 -2
- package/es/reducers/export.js +11 -11
- package/es/reducers/groups-reducer.js +3 -3
- package/es/reducers/holes-reducer.js +3 -3
- package/es/reducers/items-reducer.js +3 -6
- package/es/reducers/lines-reducer.js +3 -3
- package/es/reducers/project-reducer.js +3 -3
- package/es/reducers/reducer.js +3 -3
- package/es/reducers/scene-reducer.js +3 -3
- package/es/reducers/user-reducer.js +1 -2
- package/es/reducers/vertices-reducer.js +3 -3
- package/es/reducers/viewer2d-reducer.js +1 -1
- package/es/reducers/viewer3d-reducer.js +3 -3
- package/es/styles/export.js +1 -1
- package/es/translator/translator.js +3 -3
- package/es/utils/export.js +11 -11
- package/es/utils/geometry.js +6 -6
- package/es/utils/get-edges-of-subgraphs.js +2 -1
- package/es/utils/graph-cycles.js +2 -3
- package/es/utils/graph-inner-cycles.js +3 -3
- package/es/utils/graph.js +2 -1
- package/es/utils/helper.js +3 -71
- package/es/utils/molding.js +5 -5
- package/es/utils/react-if.js +6 -5
- package/es/utils/snap-scene.js +3 -3
- package/es/utils/snap.js +2 -2
- package/lib/KitchenConfigurator.js +27 -29
- package/lib/KitchenConfiguratorApp.js +42 -41
- package/lib/catalog/areas/area/planner-element.js +7 -7
- package/lib/catalog/factories/wall-factory-3d.js +1 -1
- package/lib/catalog/factories/wall-factory.js +1 -1
- package/lib/catalog/holes/door-closet/planner-element.js +1 -1
- package/lib/catalog/holes/door-exterior/planner-element.js +1 -1
- package/lib/catalog/holes/door-interior/planner-element.js +1 -1
- package/lib/catalog/holes/door-sliding/planner-element.js +1 -1
- package/lib/catalog/holes/doorway-framed/planner-element.js +1 -1
- package/lib/catalog/holes/export.js +13 -13
- package/lib/catalog/holes/window-clear/planner-element.js +1 -1
- package/lib/catalog/holes/window-cross/planner-element.js +1 -1
- package/lib/catalog/holes/window-double-hung/planner-element.js +1 -1
- package/lib/catalog/holes/window-vertical/planner-element.js +1 -1
- package/lib/catalog/lines/wall/planner-element.js +11 -11
- package/lib/catalog/molding/molding-dcm/planner-element.js +0 -5
- package/lib/catalog/molding/molding-fbm/planner-element.js +0 -5
- package/lib/catalog/molding/molding-lrm/planner-element.js +0 -5
- package/lib/catalog/properties/property-checkbox.js +10 -12
- package/lib/catalog/properties/property-color.js +11 -9
- package/lib/catalog/properties/property-enum.js +10 -11
- package/lib/catalog/properties/property-hidden.js +11 -11
- package/lib/catalog/properties/property-lenght-measure.js +15 -15
- package/lib/catalog/properties/property-length-measure.js +15 -15
- package/lib/catalog/properties/property-length-measure_hole.js +15 -15
- package/lib/catalog/properties/property-number.js +12 -10
- package/lib/catalog/properties/property-read-only.js +11 -9
- package/lib/catalog/properties/property-string.js +11 -9
- package/lib/catalog/properties/property-toggle.js +11 -9
- package/lib/catalog/utils/geom-utils.js +1 -1
- package/lib/catalog/utils/item-loader.js +4 -6
- package/lib/catalog/utils/load-obj.js +1 -1
- package/lib/catalog/utils/mtl-loader.js +6 -2
- package/lib/catalog/utils/obj-loader.js +6 -2
- package/lib/class/item.js +3 -5
- package/lib/class/line.js +1 -1
- package/lib/class/vertex.js +1 -1
- package/lib/components/content.js +12 -10
- package/lib/components/disclaimer/disclaimer.js +66 -86
- package/lib/components/style/button.js +8 -9
- package/lib/components/style/content-container.js +5 -4
- package/lib/components/style/content-title.js +2 -3
- package/lib/components/style/form-number-input.js +19 -21
- package/lib/components/style/form-number-input_2.js +16 -19
- package/lib/components/style/form-select.js +0 -3
- package/lib/components/style/form-text-input.js +0 -1
- package/lib/components/viewer2d/area.js +8 -6
- package/lib/components/viewer2d/grids/grid-horizontal-streak.js +8 -7
- package/lib/components/viewer2d/grids/grid-streak.js +8 -7
- package/lib/components/viewer2d/grids/grid-vertical-streak.js +8 -7
- package/lib/components/viewer2d/grids/grids.js +5 -5
- package/lib/components/viewer2d/group.js +13 -10
- package/lib/components/viewer2d/item.js +12 -12
- package/lib/components/viewer2d/layer.js +8 -6
- package/lib/components/viewer2d/line.js +12 -13
- package/lib/components/viewer2d/ruler.js +8 -7
- package/lib/components/viewer2d/rulerDist.js +8 -6
- package/lib/components/viewer2d/rulerX.js +17 -19
- package/lib/components/viewer2d/rulerY.js +15 -17
- package/lib/components/viewer2d/scene.js +9 -13
- package/lib/components/viewer2d/snap.js +8 -6
- package/lib/components/viewer2d/state.js +7 -7
- package/lib/components/viewer2d/vertex.js +7 -5
- package/lib/components/viewer2d/viewer2d.js +19 -20
- package/lib/components/viewer3d/grids/grid-streak.js +0 -1
- package/lib/components/viewer3d/libs/mtl-loader.js +5 -1
- package/lib/components/viewer3d/libs/obj-loader.js +5 -1
- package/lib/components/viewer3d/libs/orbit-controls.js +9 -4
- package/lib/components/viewer3d/libs/pointer-lock-controls.js +8 -3
- package/lib/components/viewer3d/ruler-utils/scene3D.js +0 -2
- package/lib/components/viewer3d/scene-creator.js +1 -1
- package/lib/components/viewer3d/viewer3d-first-person.js +14 -16
- package/lib/components/viewer3d/viewer3d.js +21 -24
- package/lib/reducers/user-reducer.js +0 -1
- package/lib/utils/geometry.js +1 -1
- package/lib/utils/get-edges-of-subgraphs.js +7 -1
- package/lib/utils/graph-cycles.js +9 -9
- package/lib/utils/graph.js +9 -3
- package/lib/utils/helper.js +2 -70
- package/lib/utils/react-if.js +7 -5
- package/package.json +12 -28
|
@@ -15,10 +15,10 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
|
|
|
15
15
|
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
16
16
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
17
17
|
import React, { Component } from 'react';
|
|
18
|
-
import PropTypes from 'prop-types';
|
|
19
|
-
import * as SharedStyle from
|
|
18
|
+
//import PropTypes from 'prop-types';
|
|
19
|
+
import * as SharedStyle from "../../shared-style";
|
|
20
20
|
import { MdUpdate } from 'react-icons/md';
|
|
21
|
-
import { KEYBOARD_BUTTON_CODE } from
|
|
21
|
+
import { KEYBOARD_BUTTON_CODE } from "../../constants";
|
|
22
22
|
var STYLE_INPUT = {
|
|
23
23
|
display: 'block',
|
|
24
24
|
width: '100%',
|
|
@@ -179,23 +179,22 @@ var FormNumberInput = /*#__PURE__*/function (_Component) {
|
|
|
179
179
|
})));
|
|
180
180
|
}
|
|
181
181
|
}]);
|
|
182
|
-
}(Component);
|
|
182
|
+
}(Component); // FormNumberInput.propTypes = {
|
|
183
|
+
// value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
184
|
+
// style: PropTypes.object,
|
|
185
|
+
// onChange: PropTypes.func.isRequired,
|
|
186
|
+
// onValid: PropTypes.func,
|
|
187
|
+
// onInvalid: PropTypes.func,
|
|
188
|
+
// min: PropTypes.number,
|
|
189
|
+
// max: PropTypes.number,
|
|
190
|
+
// precision: PropTypes.number,
|
|
191
|
+
// placeholder: PropTypes.string
|
|
192
|
+
// };
|
|
193
|
+
// FormNumberInput.contextTypes = {
|
|
194
|
+
// translator: PropTypes.object.isRequired,
|
|
195
|
+
// projectActions: PropTypes.object.isRequired
|
|
196
|
+
// };
|
|
183
197
|
export { FormNumberInput as default };
|
|
184
|
-
FormNumberInput.propTypes = {
|
|
185
|
-
value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
186
|
-
style: PropTypes.object,
|
|
187
|
-
onChange: PropTypes.func.isRequired,
|
|
188
|
-
onValid: PropTypes.func,
|
|
189
|
-
onInvalid: PropTypes.func,
|
|
190
|
-
min: PropTypes.number,
|
|
191
|
-
max: PropTypes.number,
|
|
192
|
-
precision: PropTypes.number,
|
|
193
|
-
placeholder: PropTypes.string
|
|
194
|
-
};
|
|
195
|
-
FormNumberInput.contextTypes = {
|
|
196
|
-
translator: PropTypes.object.isRequired,
|
|
197
|
-
projectActions: PropTypes.object.isRequired
|
|
198
|
-
};
|
|
199
198
|
FormNumberInput.defaultProps = {
|
|
200
199
|
value: 0,
|
|
201
200
|
style: {},
|
|
@@ -5,9 +5,8 @@ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i
|
|
|
5
5
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
6
6
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import * as SharedStyle from '../../shared-style';
|
|
9
8
|
import styled from 'styled-components';
|
|
10
|
-
import {
|
|
9
|
+
import { DEFAULT_FONT_FAMILY, SECONDARY_PURPLE_COLOR, TEXT_COLOR_NEUTRAL_3 } from "../../constants";
|
|
11
10
|
var StyledSelect = styled.select(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: block;\n width: 120px;\n float: right;\n padding: 15px 10px 12px 0px;\n color: ", ";\n border: 2px solid;\n font-family: ", ";\n font-size: 12px;\n font-weight: 600;\n line-height: 17px;\n text-align: right;\n outline: none;\n border-radius: 5px;\n :hover {\n border-color: ", ";\n }\n :focus {\n border-color: ", ";\n }\n"])), TEXT_COLOR_NEUTRAL_3, DEFAULT_FONT_FAMILY, SECONDARY_PURPLE_COLOR, SECONDARY_PURPLE_COLOR);
|
|
12
11
|
export default function FormSelect(_ref) {
|
|
13
12
|
var children = _ref.children,
|
|
@@ -4,7 +4,7 @@ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i
|
|
|
4
4
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import ReactRange from '@mapbox/react-range';
|
|
7
|
-
import FormTextInput from
|
|
7
|
+
import FormTextInput from "./form-text-input";
|
|
8
8
|
var sliderContainerStyle = {
|
|
9
9
|
display: 'inline-block',
|
|
10
10
|
width: '80%',
|
|
@@ -3,8 +3,8 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
|
|
|
3
3
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
4
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import Button from
|
|
7
|
-
import * as SharedStyle from
|
|
6
|
+
import Button from "./button";
|
|
7
|
+
import * as SharedStyle from "../../shared-style";
|
|
8
8
|
var STYLE = {
|
|
9
9
|
borderColor: '#415375',
|
|
10
10
|
backgroundColor: '#415375',
|
|
@@ -18,8 +18,7 @@ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new T
|
|
|
18
18
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
19
19
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
20
20
|
import React, { Component } from 'react';
|
|
21
|
-
import
|
|
22
|
-
import { PROJECT_NAME_LENGTH_LIMIT, TEXT_COLOR_NEUTRAL_3, BG_COLOR_0, DEFAULT_FONT_FAMILY, SECONDARY_PURPLE_COLOR } from '../../constants';
|
|
21
|
+
import { BG_COLOR_0, DEFAULT_FONT_FAMILY, PROJECT_NAME_LENGTH_LIMIT, SECONDARY_PURPLE_COLOR, TEXT_COLOR_NEUTRAL_3 } from "../../constants";
|
|
23
22
|
import styled from 'styled-components';
|
|
24
23
|
var StyledInput = styled.input(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: block;\n padding: 15px 10px 12px 0px;\n width: 120px;\n font-family: ", ";\n font-size: 12px;\n font-weight: 600;\n line-height: 17px;\n color: ", ";\n background-color: ", ";\n border: 2px solid;\n text-align: right;\n float: right;\n border-radius: 5px;\n outline: 0;\n :focus {\n border-color: ", ";\n }\n"])), DEFAULT_FONT_FAMILY, TEXT_COLOR_NEUTRAL_3, BG_COLOR_0, SECONDARY_PURPLE_COLOR);
|
|
25
24
|
var FormTextInput = /*#__PURE__*/function (_Component) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
2
|
+
//import PropTypes from 'prop-types';
|
|
3
3
|
import polylabel from 'polylabel';
|
|
4
4
|
import areapolygon from 'area-polygon';
|
|
5
5
|
import convert from 'convert-units';
|
|
6
|
-
import { formatNumber } from
|
|
7
|
-
import { DECIMAL_PLACES_2 } from
|
|
6
|
+
import { formatNumber } from "../../utils/math";
|
|
7
|
+
import { DECIMAL_PLACES_2 } from "../../constants";
|
|
8
8
|
var STYLE_TEXT = {
|
|
9
9
|
textAnchor: 'middle',
|
|
10
10
|
fontSize: '12px',
|
|
@@ -74,8 +74,9 @@ export default function Area(_ref) {
|
|
|
74
74
|
}
|
|
75
75
|
}, rendered, renderedAreaSize);
|
|
76
76
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
77
|
+
|
|
78
|
+
// Area.propTypes = {
|
|
79
|
+
// area: PropTypes.object.isRequired,
|
|
80
|
+
// layer: PropTypes.object.isRequired,
|
|
81
|
+
// catalog: PropTypes.object.isRequired
|
|
82
|
+
// };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import Viewer2D from
|
|
2
|
-
import Vertex from
|
|
3
|
-
import State from
|
|
4
|
-
import Snap from
|
|
5
|
-
import Scene from
|
|
6
|
-
import Ruler from
|
|
7
|
-
import Line from
|
|
8
|
-
import Layer from
|
|
9
|
-
import Item from
|
|
10
|
-
import Area from
|
|
11
|
-
import Grids from
|
|
12
|
-
import Group from
|
|
13
|
-
import RulerX from
|
|
14
|
-
import RulerY from
|
|
1
|
+
import Viewer2D from "./viewer2d";
|
|
2
|
+
import Vertex from "./vertex";
|
|
3
|
+
import State from "./state";
|
|
4
|
+
import Snap from "./snap";
|
|
5
|
+
import Scene from "./scene";
|
|
6
|
+
import Ruler from "./ruler";
|
|
7
|
+
import Line from "./line";
|
|
8
|
+
import Layer from "./layer";
|
|
9
|
+
import Item from "./item";
|
|
10
|
+
import Area from "./area";
|
|
11
|
+
import Grids from "./grids/grids";
|
|
12
|
+
import Group from "./group";
|
|
13
|
+
import RulerX from "./rulerX";
|
|
14
|
+
import RulerY from "./rulerY";
|
|
15
15
|
export { Viewer2D, Vertex, State, Snap, Scene, Ruler, Line, Layer, Item, Area, Grids, Group, RulerX, RulerY };
|
|
16
16
|
export default {
|
|
17
17
|
Viewer2D: Viewer2D,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
2
|
+
//import PropTypes from 'prop-types';
|
|
3
3
|
import { List } from 'immutable';
|
|
4
|
-
import convert from 'convert-units';
|
|
5
4
|
export default function GridHorizontalStreak(_ref) {
|
|
6
5
|
var width = _ref.width,
|
|
7
6
|
height = _ref.height,
|
|
@@ -30,8 +29,9 @@ export default function GridHorizontalStreak(_ref) {
|
|
|
30
29
|
}
|
|
31
30
|
return /*#__PURE__*/React.createElement("g", null, rendered);
|
|
32
31
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
|
|
33
|
+
// GridHorizontalStreak.propTypes = {
|
|
34
|
+
// width: PropTypes.number.isRequired,
|
|
35
|
+
// height: PropTypes.number.isRequired,
|
|
36
|
+
// grid: PropTypes.object.isRequired
|
|
37
|
+
// };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
2
|
+
//import PropTypes from 'prop-types';
|
|
3
3
|
import { List } from 'immutable';
|
|
4
|
-
import convert from 'convert-units';
|
|
5
4
|
export default function GridStreak(_ref) {
|
|
6
5
|
var width = _ref.width,
|
|
7
6
|
height = _ref.height,
|
|
@@ -30,8 +29,9 @@ export default function GridStreak(_ref) {
|
|
|
30
29
|
}
|
|
31
30
|
return /*#__PURE__*/React.createElement("g", null, rendered);
|
|
32
31
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
|
|
33
|
+
// GridStreak.propTypes = {
|
|
34
|
+
// width: PropTypes.number.isRequired,
|
|
35
|
+
// height: PropTypes.number.isRequired,
|
|
36
|
+
// grid: PropTypes.object.isRequired
|
|
37
|
+
// };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
2
|
+
//import PropTypes from 'prop-types';
|
|
3
3
|
import { List } from 'immutable';
|
|
4
|
-
import convert from 'convert-units';
|
|
5
4
|
export default function GridVerticalStreak(_ref) {
|
|
6
5
|
var width = _ref.width,
|
|
7
6
|
height = _ref.height,
|
|
@@ -30,8 +29,9 @@ export default function GridVerticalStreak(_ref) {
|
|
|
30
29
|
}
|
|
31
30
|
return /*#__PURE__*/React.createElement("g", null, rendered);
|
|
32
31
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
|
|
33
|
+
// GridVerticalStreak.propTypes = {
|
|
34
|
+
// width: PropTypes.number.isRequired,
|
|
35
|
+
// height: PropTypes.number.isRequired,
|
|
36
|
+
// grid: PropTypes.object.isRequired
|
|
37
|
+
// };
|
|
@@ -5,8 +5,8 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
5
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import React, { memo } from 'react';
|
|
8
|
-
import PropTypes from 'prop-types';
|
|
9
|
-
import GridStreak from
|
|
8
|
+
//import PropTypes from 'prop-types';
|
|
9
|
+
import GridStreak from "./grid-streak";
|
|
10
10
|
var propsAreEqual = function propsAreEqual(oldScene, newScene) {
|
|
11
11
|
return oldScene.scene.width === newScene.scene.width && oldScene.scene.height === newScene.scene.height && oldScene.scene.grids === newScene.scene.grids;
|
|
12
12
|
};
|
|
@@ -29,7 +29,9 @@ var drawGrid = function drawGrid(_ref) {
|
|
|
29
29
|
return /*#__PURE__*/React.createElement("g", null, renderedGrids);
|
|
30
30
|
};
|
|
31
31
|
var Grids = /*#__PURE__*/memo(drawGrid, propsAreEqual);
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
|
|
33
|
+
// Grids.propTypes = {
|
|
34
|
+
// scene: PropTypes.object.isRequired
|
|
35
|
+
// };
|
|
36
|
+
|
|
35
37
|
export default Grids;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import If from
|
|
4
|
-
import * as sharedStyles from
|
|
2
|
+
//import PropTypes from 'prop-types';
|
|
3
|
+
import If from "../../utils/react-if";
|
|
4
|
+
import * as sharedStyles from "../../shared-style";
|
|
5
5
|
var cx = 0;
|
|
6
6
|
var cy = 0;
|
|
7
7
|
var radius = 5;
|
|
@@ -42,12 +42,14 @@ export default function Group(_ref, _ref2) {
|
|
|
42
42
|
style: STYLE_CIRCLE
|
|
43
43
|
}, /*#__PURE__*/React.createElement("title", null, translator.t("Group's Barycenter"))))));
|
|
44
44
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
45
|
+
|
|
46
|
+
// Group.propTypes = {
|
|
47
|
+
// group: PropTypes.object.isRequired,
|
|
48
|
+
// layer: PropTypes.object.isRequired,
|
|
49
|
+
// scene: PropTypes.object.isRequired,
|
|
50
|
+
// catalog: PropTypes.object.isRequired
|
|
51
|
+
// };
|
|
52
|
+
|
|
53
|
+
// Group.contextTypes = {
|
|
54
|
+
// translator: PropTypes.object.isRequired
|
|
55
|
+
// };
|
|
@@ -4,15 +4,13 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
|
|
|
4
4
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
|
-
import React from 'react';
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import If from '../../utils/react-if';
|
|
11
|
-
import RulerDist from './rulerDist';
|
|
7
|
+
import React, { useState } from 'react';
|
|
8
|
+
//import PropTypes from 'prop-types';
|
|
9
|
+
import RulerDist from "./rulerDist";
|
|
12
10
|
import convert from 'convert-units';
|
|
13
|
-
import { GeometryUtils } from
|
|
14
|
-
import { MODE_ROTATING_ITEM,
|
|
15
|
-
import { returnReplaceableDeepSearchType } from
|
|
11
|
+
import { GeometryUtils } from "../../utils/export";
|
|
12
|
+
import { MODE_ROTATING_ITEM, WALL_CABINET_LAYOUTPOS } from "../../constants";
|
|
13
|
+
import { returnReplaceableDeepSearchType } from "./utils";
|
|
16
14
|
var STYLE_LINE = {
|
|
17
15
|
fill: '#0096fd',
|
|
18
16
|
stroke: '#0096fd'
|
|
@@ -502,12 +500,14 @@ export default function Item(_ref, _ref2) {
|
|
|
502
500
|
}
|
|
503
501
|
}, measure ? renderedRuler : null, parts, warning_buttons));
|
|
504
502
|
}
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
503
|
+
|
|
504
|
+
// Item.propTypes = {
|
|
505
|
+
// item: PropTypes.object.isRequired,
|
|
506
|
+
// layer: PropTypes.object.isRequired,
|
|
507
|
+
// scene: PropTypes.object.isRequired,
|
|
508
|
+
// catalog: PropTypes.object.isRequired
|
|
509
|
+
// };
|
|
510
|
+
|
|
511
|
+
// Item.contextTypes = {
|
|
512
|
+
// itemsActions: PropTypes.object.isRequired
|
|
513
|
+
// };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import {
|
|
4
|
-
import { GeometryUtils } from
|
|
5
|
-
import { MODE_DRAWING_LINE, WALL_CABINET_LAYOUTPOS } from
|
|
6
|
-
import { returnReplaceableDeepSearchType } from
|
|
2
|
+
//import PropTypes from 'prop-types';
|
|
3
|
+
import { Area, Group, Item, Line, Vertex } from "./export";
|
|
4
|
+
import { GeometryUtils } from "../../utils/export";
|
|
5
|
+
import { MODE_DRAWING_LINE, WALL_CABINET_LAYOUTPOS } from "../../constants";
|
|
6
|
+
import { returnReplaceableDeepSearchType } from "./utils";
|
|
7
7
|
var STYLE = {
|
|
8
8
|
stroke: '#494949',
|
|
9
9
|
strokeWidth: 1,
|
|
@@ -157,8 +157,9 @@ export default function Layer(_ref) {
|
|
|
157
157
|
});
|
|
158
158
|
}));
|
|
159
159
|
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
160
|
+
|
|
161
|
+
// Layer.propTypes = {
|
|
162
|
+
// layer: PropTypes.object.isRequired,
|
|
163
|
+
// scene: PropTypes.object.isRequired,
|
|
164
|
+
// catalog: PropTypes.object.isRequired
|
|
165
|
+
// };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import { GeometryUtils } from
|
|
4
|
-
import Ruler from
|
|
5
|
-
import { BASE_CABINET_LAYOUTPOS, LINE_THICKNESS, WALL_CABINET_LAYOUTPOS } from
|
|
2
|
+
//import PropTypes from 'prop-types';
|
|
3
|
+
import { GeometryUtils } from "../../utils/export";
|
|
4
|
+
import Ruler from "./ruler";
|
|
5
|
+
import { BASE_CABINET_LAYOUTPOS, LINE_THICKNESS, WALL_CABINET_LAYOUTPOS } from "../../constants";
|
|
6
6
|
import * as Three from 'three';
|
|
7
|
-
import { isEmpty } from
|
|
8
|
-
import Tooltip from '@material-ui/core/Tooltip';
|
|
7
|
+
import { isEmpty } from "./utils";
|
|
9
8
|
var STYLE = {
|
|
10
9
|
stroke: 'rgb(77, 77, 77)',
|
|
11
10
|
strokeWidth: '1px'
|
|
@@ -795,9 +794,7 @@ export default function Line(_ref) {
|
|
|
795
794
|
} : {}
|
|
796
795
|
}, renderedLine, /*#__PURE__*/React.createElement("g", {
|
|
797
796
|
transform: "translate(".concat(x1, ", ").concat(y1, ") rotate(").concat(angle, ", 0, 0)")
|
|
798
|
-
}, renderedHoles)), line.selected && /*#__PURE__*/React.createElement(
|
|
799
|
-
title: "Elevation View"
|
|
800
|
-
}, /*#__PURE__*/React.createElement("g", {
|
|
797
|
+
}, renderedHoles)), line.selected && /*#__PURE__*/React.createElement("g", {
|
|
801
798
|
id: 'elevation-button',
|
|
802
799
|
key: 1,
|
|
803
800
|
transform: "translate(".concat(x1 + 35, ", ").concat(y1 - 15, ")"),
|
|
@@ -827,7 +824,7 @@ export default function Line(_ref) {
|
|
|
827
824
|
style: {
|
|
828
825
|
transform: 'rotateX(180deg)'
|
|
829
826
|
}
|
|
830
|
-
}))
|
|
827
|
+
})), line.selected && /*#__PURE__*/React.createElement("g", {
|
|
831
828
|
id: 'remove-button',
|
|
832
829
|
key: 2,
|
|
833
830
|
transform: "translate(".concat(x1 + 10, ", ").concat(y1, ")"),
|
|
@@ -877,9 +874,10 @@ export default function Line(_ref) {
|
|
|
877
874
|
"data-part": "remove"
|
|
878
875
|
}));
|
|
879
876
|
}
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
877
|
+
|
|
878
|
+
// Line.propTypes = {
|
|
879
|
+
// line: PropTypes.object.isRequired,
|
|
880
|
+
// layer: PropTypes.object.isRequired,
|
|
881
|
+
// scene: PropTypes.object.isRequired,
|
|
882
|
+
// catalog: PropTypes.object.isRequired
|
|
883
|
+
// };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
2
|
+
//import PropTypes from 'prop-types';
|
|
3
3
|
import convert from 'convert-units';
|
|
4
|
-
import IDBroker from
|
|
5
|
-
import {
|
|
6
|
-
import { LINE_THICKNESS, SHADE_LIGHT_BLUE_COLOR, TEXT_COLOR_NEUTRAL_7 } from '../../constants';
|
|
4
|
+
import IDBroker from "../../utils/id-broker";
|
|
5
|
+
import { LINE_THICKNESS, TEXT_COLOR_NEUTRAL_7 } from "../../constants";
|
|
7
6
|
var STYLE = {
|
|
8
7
|
stroke: TEXT_COLOR_NEUTRAL_7,
|
|
9
8
|
strokeWidth: '1px'
|
|
@@ -93,8 +92,9 @@ export default function Ruler(_ref) {
|
|
|
93
92
|
style: STYLE
|
|
94
93
|
}));
|
|
95
94
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
95
|
+
|
|
96
|
+
// Ruler.propTypes = {
|
|
97
|
+
// length: PropTypes.number.isRequired,
|
|
98
|
+
// unit: PropTypes.string.isRequired,
|
|
99
|
+
// transform: PropTypes.string.isRequired
|
|
100
|
+
// };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
2
|
+
//import PropTypes from 'prop-types';
|
|
3
3
|
import convert from 'convert-units';
|
|
4
4
|
var ARROW_STYLE = {
|
|
5
5
|
stroke: '#1183B7',
|
|
@@ -139,8 +139,9 @@ export default function RulerDist(_ref) {
|
|
|
139
139
|
}));
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
142
|
+
|
|
143
|
+
// RulerDist.propTypes = {
|
|
144
|
+
// length: PropTypes.number.isRequired,
|
|
145
|
+
// unit: PropTypes.string.isRequired,
|
|
146
|
+
// transform: PropTypes.string.isRequired
|
|
147
|
+
// };
|
|
@@ -15,8 +15,8 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
|
|
|
15
15
|
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
16
16
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
17
17
|
import React, { Component } from 'react';
|
|
18
|
-
import PropTypes from 'prop-types';
|
|
19
|
-
import * as SharedStyle from
|
|
18
|
+
//import PropTypes from 'prop-types';
|
|
19
|
+
import * as SharedStyle from "../../shared-style";
|
|
20
20
|
var RulerX = /*#__PURE__*/function (_Component) {
|
|
21
21
|
function RulerX(props, context) {
|
|
22
22
|
_classCallCheck(this, RulerX);
|
|
@@ -125,20 +125,19 @@ var RulerX = /*#__PURE__*/function (_Component) {
|
|
|
125
125
|
}, positiveDomElements));
|
|
126
126
|
}
|
|
127
127
|
}]);
|
|
128
|
-
}(Component);
|
|
128
|
+
}(Component); // RulerX.propTypes = {
|
|
129
|
+
// unitPixelSize: PropTypes.number.isRequired,
|
|
130
|
+
// positiveUnitsNumber: PropTypes.number,
|
|
131
|
+
// negativeUnitsNumber: PropTypes.number,
|
|
132
|
+
// zoom: PropTypes.number.isRequired,
|
|
133
|
+
// mouseX: PropTypes.number.isRequired,
|
|
134
|
+
// width: PropTypes.number.isRequired,
|
|
135
|
+
// zeroLeftPosition: PropTypes.number.isRequired,
|
|
136
|
+
// backgroundColor: PropTypes.string,
|
|
137
|
+
// fontColor: PropTypes.string,
|
|
138
|
+
// markerColor: PropTypes.string
|
|
139
|
+
// };
|
|
129
140
|
export { RulerX as default };
|
|
130
|
-
RulerX.propTypes = {
|
|
131
|
-
unitPixelSize: PropTypes.number.isRequired,
|
|
132
|
-
positiveUnitsNumber: PropTypes.number,
|
|
133
|
-
negativeUnitsNumber: PropTypes.number,
|
|
134
|
-
zoom: PropTypes.number.isRequired,
|
|
135
|
-
mouseX: PropTypes.number.isRequired,
|
|
136
|
-
width: PropTypes.number.isRequired,
|
|
137
|
-
zeroLeftPosition: PropTypes.number.isRequired,
|
|
138
|
-
backgroundColor: PropTypes.string,
|
|
139
|
-
fontColor: PropTypes.string,
|
|
140
|
-
markerColor: PropTypes.string
|
|
141
|
-
};
|
|
142
141
|
RulerX.defaultProps = {
|
|
143
142
|
positiveUnitsNumber: 50,
|
|
144
143
|
negativeUnitsNumber: 50,
|
|
@@ -146,6 +145,7 @@ RulerX.defaultProps = {
|
|
|
146
145
|
fontColor: SharedStyle.COLORS.white,
|
|
147
146
|
markerColor: SharedStyle.SECONDARY_COLOR.main
|
|
148
147
|
};
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
148
|
+
|
|
149
|
+
// RulerX.contextTypes = {
|
|
150
|
+
// translator: PropTypes.object.isRequired
|
|
151
|
+
// };
|
|
@@ -15,8 +15,8 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
|
|
|
15
15
|
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
16
16
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
17
17
|
import React, { Component } from 'react';
|
|
18
|
-
import PropTypes from 'prop-types';
|
|
19
|
-
import * as SharedStyle from
|
|
18
|
+
//import PropTypes from 'prop-types';
|
|
19
|
+
import * as SharedStyle from "../../shared-style";
|
|
20
20
|
var RulerY = /*#__PURE__*/function (_Component) {
|
|
21
21
|
function RulerY(props, context) {
|
|
22
22
|
_classCallCheck(this, RulerY);
|
|
@@ -129,18 +129,17 @@ var RulerY = /*#__PURE__*/function (_Component) {
|
|
|
129
129
|
}, positiveDomElements));
|
|
130
130
|
}
|
|
131
131
|
}]);
|
|
132
|
-
}(Component);
|
|
132
|
+
}(Component); // RulerY.propTypes = {
|
|
133
|
+
// unitPixelSize: PropTypes.number.isRequired,
|
|
134
|
+
// zoom: PropTypes.number.isRequired,
|
|
135
|
+
// mouseY: PropTypes.number.isRequired,
|
|
136
|
+
// height: PropTypes.number.isRequired,
|
|
137
|
+
// zeroTopPosition: PropTypes.number.isRequired,
|
|
138
|
+
// backgroundColor: PropTypes.string,
|
|
139
|
+
// fontColor: PropTypes.string,
|
|
140
|
+
// markerColor: PropTypes.string
|
|
141
|
+
// };
|
|
133
142
|
export { RulerY as default };
|
|
134
|
-
RulerY.propTypes = {
|
|
135
|
-
unitPixelSize: PropTypes.number.isRequired,
|
|
136
|
-
zoom: PropTypes.number.isRequired,
|
|
137
|
-
mouseY: PropTypes.number.isRequired,
|
|
138
|
-
height: PropTypes.number.isRequired,
|
|
139
|
-
zeroTopPosition: PropTypes.number.isRequired,
|
|
140
|
-
backgroundColor: PropTypes.string,
|
|
141
|
-
fontColor: PropTypes.string,
|
|
142
|
-
markerColor: PropTypes.string
|
|
143
|
-
};
|
|
144
143
|
RulerY.defaultProps = {
|
|
145
144
|
positiveUnitsNumber: 50,
|
|
146
145
|
negativeUnitsNumber: 50,
|
|
@@ -148,6 +147,7 @@ RulerY.defaultProps = {
|
|
|
148
147
|
fontColor: SharedStyle.COLORS.white,
|
|
149
148
|
markerColor: SharedStyle.SECONDARY_COLOR.main
|
|
150
149
|
};
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
150
|
+
|
|
151
|
+
// RulerY.contextTypes = {
|
|
152
|
+
// translator: PropTypes.object.isRequired
|
|
153
|
+
// };
|
|
@@ -22,9 +22,8 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
|
|
|
22
22
|
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
23
23
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
24
24
|
import React, { Component } from 'react';
|
|
25
|
-
import PropTypes from 'prop-types';
|
|
26
|
-
import {
|
|
27
|
-
import { searchForSkuValue } from './utils';
|
|
25
|
+
//import PropTypes from 'prop-types';
|
|
26
|
+
import { Grids, Layer } from "./export";
|
|
28
27
|
var Scene = /*#__PURE__*/function (_Component) {
|
|
29
28
|
function Scene() {
|
|
30
29
|
_classCallCheck(this, Scene);
|
|
@@ -128,13 +127,12 @@ var Scene = /*#__PURE__*/function (_Component) {
|
|
|
128
127
|
}));
|
|
129
128
|
}
|
|
130
129
|
}]);
|
|
131
|
-
}(Component);
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
};
|
|
130
|
+
}(Component); // Scene.propTypes = {
|
|
131
|
+
// scene: PropTypes.object.isRequired,
|
|
132
|
+
// catalog: PropTypes.object.isRequired,
|
|
133
|
+
// relatedLines: PropTypes.object.isRequired
|
|
134
|
+
// };
|
|
135
|
+
// Scene.contextTypes = {
|
|
136
|
+
// projectActions: PropTypes.object.isRequired
|
|
137
|
+
// };
|
|
138
|
+
export { Scene as default };
|