kitchen-simulator 1.1.1-test.29 → 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 +27 -28
- package/es/KitchenConfiguratorApp.js +35 -33
- 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/catalog.js +2 -2
- package/es/catalog/molding/molding-dcm/planner-element.js +0 -2
- package/es/catalog/molding/molding-fbm/planner-element.js +0 -2
- package/es/catalog/molding/molding-lrm/planner-element.js +0 -2
- package/es/catalog/properties/property-checkbox.js +10 -9
- package/es/catalog/properties/property-color.js +12 -10
- 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 +16 -15
- package/es/catalog/properties/property-length-measure.js +17 -16
- package/es/catalog/properties/property-length-measure_hole.js +16 -15
- package/es/catalog/properties/property-number.js +11 -10
- package/es/catalog/properties/property-read-only.js +10 -9
- package/es/catalog/properties/property-string.js +10 -9
- package/es/catalog/properties/property-toggle.js +11 -10
- package/es/class/area.js +1 -1
- package/es/class/group.js +3 -3
- package/es/class/hole.js +5 -6
- package/es/class/layer.js +2 -2
- package/es/class/project.js +4 -4
- package/es/components/content.js +11 -10
- package/es/components/style/button.js +8 -7
- package/es/components/style/content-container.js +2 -1
- package/es/components/style/content-title.js +1 -1
- package/es/components/style/form-number-input.js +20 -21
- package/es/components/style/form-number-input_2.js +16 -17
- package/es/components/style/form-select.js +1 -2
- package/es/components/style/form-text-input.js +1 -2
- package/es/components/viewer2d/area.js +7 -6
- 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 +6 -4
- package/es/components/viewer2d/group.js +12 -10
- package/es/components/viewer2d/item.js +14 -14
- package/es/components/viewer2d/layer.js +8 -7
- package/es/components/viewer2d/line.js +8 -7
- package/es/components/viewer2d/ruler.js +8 -8
- package/es/components/viewer2d/rulerDist.js +7 -6
- package/es/components/viewer2d/rulerX.js +17 -17
- package/es/components/viewer2d/rulerY.js +15 -15
- package/es/components/viewer2d/scene.js +11 -13
- package/es/components/viewer2d/snap.js +7 -6
- package/es/components/viewer2d/state.js +7 -6
- package/es/components/viewer2d/utils.js +1 -1
- package/es/components/viewer2d/vertex.js +6 -5
- package/es/components/viewer2d/viewer2d.js +18 -16
- package/es/components/viewer3d/front3D.js +1 -1
- package/es/components/viewer3d/grids/grid-streak.js +0 -1
- package/es/components/viewer3d/ruler-utils/layer3D.js +1 -1
- package/es/components/viewer3d/ruler-utils/ruler3D.js +1 -1
- package/es/components/viewer3d/ruler-utils/scene3D.js +0 -2
- package/es/components/viewer3d/viewer3d-first-person.js +15 -16
- package/es/components/viewer3d/viewer3d.js +17 -18
- package/es/models.js +1 -1
- package/es/plugins/keyboard.js +2 -2
- package/es/reducers/holes-reducer.js +1 -1
- package/es/reducers/items-reducer.js +2 -5
- package/es/reducers/lines-reducer.js +1 -1
- package/es/reducers/project-reducer.js +1 -1
- package/es/reducers/reducer.js +2 -2
- package/es/reducers/scene-reducer.js +1 -1
- package/es/reducers/user-reducer.js +1 -2
- package/es/reducers/vertices-reducer.js +1 -1
- package/es/reducers/viewer2d-reducer.js +1 -1
- package/es/reducers/viewer3d-reducer.js +1 -1
- package/es/utils/geometry.js +3 -3
- package/es/utils/react-if.js +6 -5
- package/es/utils/snap-scene.js +2 -2
- package/es/utils/snap.js +1 -1
- package/lib/KitchenConfigurator.js +27 -29
- package/lib/KitchenConfiguratorApp.js +35 -34
- 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 -10
- 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/components/content.js +12 -10
- 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 +9 -7
- 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 +18 -17
- package/lib/components/viewer3d/grids/grid-streak.js +0 -1
- package/lib/components/viewer3d/ruler-utils/scene3D.js +0 -2
- package/lib/components/viewer3d/viewer3d-first-person.js +14 -16
- package/lib/components/viewer3d/viewer3d.js +16 -18
- package/lib/reducers/user-reducer.js +0 -1
- package/lib/utils/geometry.js +1 -1
- package/lib/utils/react-if.js +7 -5
- package/package.json +1 -3
- package/es/compat/propTypesCompat.js +0 -8
- package/lib/compat/propTypesCompat.js +0 -26
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from
|
|
3
|
-
import {
|
|
2
|
+
//import PropTypes from 'prop-types';
|
|
3
|
+
import { Button, FormLabel } from "../../components/style/export";
|
|
4
4
|
import PropertyStyle from "./shared-property-style";
|
|
5
5
|
export default function PropertyToggle(_ref) {
|
|
6
6
|
var value = _ref.value,
|
|
@@ -29,11 +29,12 @@ export default function PropertyToggle(_ref) {
|
|
|
29
29
|
size: "small"
|
|
30
30
|
}, configs.actionName)))));
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
32
|
+
//
|
|
33
|
+
// PropertyToggle.propTypes = {
|
|
34
|
+
// value: PropTypes.any.isRequired,
|
|
35
|
+
// onUpdate: PropTypes.func.isRequired,
|
|
36
|
+
// configs: PropTypes.object.isRequired,
|
|
37
|
+
// sourceElement: PropTypes.object,
|
|
38
|
+
// internalState: PropTypes.object,
|
|
39
|
+
// state: PropTypes.object.isRequired
|
|
40
|
+
// };
|
package/es/class/area.js
CHANGED
|
@@ -8,7 +8,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
8
8
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
9
9
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
10
|
import { fromJS } from 'immutable';
|
|
11
|
-
import { Layer, Vertex
|
|
11
|
+
import { Group, Layer, Vertex } from "./export";
|
|
12
12
|
import { IDBroker, NameGenerator } from "../utils/export";
|
|
13
13
|
var Area = /*#__PURE__*/function () {
|
|
14
14
|
function Area() {
|
package/es/class/group.js
CHANGED
|
@@ -10,10 +10,10 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
|
|
|
10
10
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
11
11
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
12
12
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
13
|
+
import { Area, Hole, Item, Layer, Line, Project, Vertex } from "./export";
|
|
14
|
+
import { List, Map } from 'immutable';
|
|
15
15
|
import { Group as GroupModel } from "../models";
|
|
16
|
-
import {
|
|
16
|
+
import { GeometryUtils, IDBroker } from "../utils/export";
|
|
17
17
|
var Group = /*#__PURE__*/function () {
|
|
18
18
|
function Group() {
|
|
19
19
|
_classCallCheck(this, Group);
|
package/es/class/hole.js
CHANGED
|
@@ -4,12 +4,11 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
|
|
|
4
4
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { GeometryUtils } from "../utils/export";
|
|
7
|
+
import { fromJS, List, Map } from 'immutable';
|
|
8
|
+
import { Group, Layer } from "./export";
|
|
9
|
+
import { GeometryUtils, IDBroker } from "../utils/export";
|
|
10
|
+
import { addLineSegmentSnap, nearestSnap } from "../utils/snap";
|
|
11
|
+
import { MODE_DRAGGING_HOLE, MODE_DRAGGING_HOLE_3D, MODE_DRAWING_HOLE, MODE_DRAWING_HOLE_3D, MODE_IDLE, MODE_IDLE_3D } from "../constants";
|
|
13
12
|
var Hole = /*#__PURE__*/function () {
|
|
14
13
|
function Hole() {
|
|
15
14
|
_classCallCheck(this, Hole);
|
package/es/class/layer.js
CHANGED
|
@@ -5,8 +5,8 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import { List } from 'immutable';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { Area, Hole, Item, Line, Project, Vertex } from "./export";
|
|
9
|
+
import { GeometryUtils, GraphInnerCycles, IDBroker } from "../utils/export";
|
|
10
10
|
import { Layer as LayerModel } from "../models";
|
|
11
11
|
import { isEmpty } from "../utils/helper";
|
|
12
12
|
var sameSet = function sameSet(set1, set2) {
|
package/es/class/project.js
CHANGED
|
@@ -7,12 +7,12 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
|
|
|
7
7
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
8
8
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
9
9
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
|
-
import {
|
|
11
|
-
import { MODE_VIEWING_CATALOG, MODE_CONFIGURING_PROJECT, MODE_IDLE, MODE_DRAWING_ITEM_3D, MODE_3D_VIEW, MODE_DRAGGING_ITEM_3D, MODE_IDLE_3D, MODE_ROTATING_ITEM_3D, MODE_DRAWING_ITEM, MODE_DRAWING_LINE, MODE_WAITING_DRAWING_LINE, MODE_DRAWING_HOLE, ARRAY_3D_MODES, END_DRAWING_LINE } from "../constants";
|
|
10
|
+
import { List, Map } from 'immutable';
|
|
12
11
|
import * as constants from "../constants";
|
|
13
|
-
import {
|
|
12
|
+
import { ARRAY_3D_MODES, END_DRAWING_LINE, MODE_CONFIGURING_PROJECT, MODE_DRAWING_HOLE, MODE_DRAWING_ITEM, MODE_DRAWING_ITEM_3D, MODE_DRAWING_LINE, MODE_IDLE, MODE_IDLE_3D, MODE_VIEWING_CATALOG, MODE_WAITING_DRAWING_LINE } from "../constants";
|
|
13
|
+
import { Catalog, Scene, State } from "../models";
|
|
14
14
|
import { GeometryUtils, history } from "../utils/export";
|
|
15
|
-
import {
|
|
15
|
+
import { Area, Group, Hole, HorizontalGuide, Item, Layer, Line, VerticalGuide } from "../class/export";
|
|
16
16
|
import * as viewer2DActions from "../actions/viewer2d-actions";
|
|
17
17
|
import { isEmpty } from "../utils/helper";
|
|
18
18
|
var Project = /*#__PURE__*/function () {
|
package/es/components/content.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from
|
|
2
|
+
//import PropTypes from 'prop-types';
|
|
3
3
|
import Viewer2D from "./viewer2d/viewer2d";
|
|
4
4
|
import Viewer3D from "./viewer3d/viewer3d";
|
|
5
5
|
import Viewer3DFirstPerson from "./viewer3d/viewer3d-first-person";
|
|
@@ -95,12 +95,13 @@ export default function Content(_ref, _ref2) {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
98
|
+
|
|
99
|
+
// Content.propTypes = {
|
|
100
|
+
// state: PropTypes.object.isRequired,
|
|
101
|
+
// width: PropTypes.number.isRequired,
|
|
102
|
+
// height: PropTypes.number.isRequired,
|
|
103
|
+
// replaceCabinet: PropTypes.func.isRequired
|
|
104
|
+
// };
|
|
105
|
+
// Content.contextTypes = {
|
|
106
|
+
// projectActions: PropTypes.object.isRequired
|
|
107
|
+
// };
|
|
@@ -16,7 +16,7 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
|
|
|
16
16
|
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); }
|
|
17
17
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
18
18
|
import React, { Component } from 'react';
|
|
19
|
-
import PropTypes from
|
|
19
|
+
//import PropTypes from 'prop-types';
|
|
20
20
|
import * as SharedStyle from "../../shared-style";
|
|
21
21
|
var BASE_STYLE = {
|
|
22
22
|
display: 'inline-block',
|
|
@@ -105,9 +105,10 @@ Button.defaultProps = {
|
|
|
105
105
|
borderColor: '#8c8c8c'
|
|
106
106
|
}
|
|
107
107
|
};
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
108
|
+
|
|
109
|
+
// Button.propTypes = {
|
|
110
|
+
// type: PropTypes.string,
|
|
111
|
+
// style: PropTypes.object,
|
|
112
|
+
// styleHover: PropTypes.object,
|
|
113
|
+
// size: PropTypes.oneOf(['large', 'normal', 'small'])
|
|
114
|
+
// };
|
|
@@ -5,7 +5,8 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import PropTypes from
|
|
8
|
+
//import PropTypes from 'prop-types';
|
|
9
|
+
|
|
9
10
|
var STYLE = {
|
|
10
11
|
padding: '0 20px',
|
|
11
12
|
overflowY: 'auto'
|
|
@@ -9,7 +9,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
9
9
|
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; }
|
|
10
10
|
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; }
|
|
11
11
|
import React from 'react';
|
|
12
|
-
import PropTypes from
|
|
12
|
+
//import PropTypes from 'prop-types';
|
|
13
13
|
import * as SharedStyle from "../../shared-style";
|
|
14
14
|
var STYLE = {
|
|
15
15
|
color: SharedStyle.PRIMARY_COLOR.alt,
|
|
@@ -14,8 +14,8 @@ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new T
|
|
|
14
14
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
15
15
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
16
16
|
import React, { Component } from 'react';
|
|
17
|
-
import PropTypes from
|
|
18
|
-
import {
|
|
17
|
+
//import PropTypes from 'prop-types';
|
|
18
|
+
import { DEFAULT_FONT_FAMILY, KEYBOARD_BUTTON_CODE, SECONDARY_PURPLE_COLOR, TEXT_COLOR_NEUTRAL_0 } from "../../constants";
|
|
19
19
|
import styled from 'styled-components';
|
|
20
20
|
import { isValidNumber } from "../../utils/helper";
|
|
21
21
|
var StyledInput = styled.input(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: block;\n padding: 15px 25px 12px 0px;\n width: 120px;\n color: ", ";\n background-color: rgb(255, 255, 255);\n border: 2px solid;\n text-align: right;\n float: right;\n font-family: ", ";\n font-size: 16px;\n font-weight: 600;\n line-height: 17px;\n border-radius: 5px;\n outline: 0;\n :focus {\n border-color: ", ";\n }\n"])), TEXT_COLOR_NEUTRAL_0, DEFAULT_FONT_FAMILY, SECONDARY_PURPLE_COLOR);
|
|
@@ -158,26 +158,25 @@ var FormNumberInput = /*#__PURE__*/function (_Component) {
|
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
160
|
}]);
|
|
161
|
-
}(Component);
|
|
161
|
+
}(Component); // FormNumberInput.propTypes = {
|
|
162
|
+
// value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
163
|
+
// style: PropTypes.object,
|
|
164
|
+
// onChange: PropTypes.func.isRequired,
|
|
165
|
+
// onValid: PropTypes.func,
|
|
166
|
+
// onInvalid: PropTypes.func,
|
|
167
|
+
// min: PropTypes.number,
|
|
168
|
+
// max: PropTypes.number,
|
|
169
|
+
// precision: PropTypes.number,
|
|
170
|
+
// placeholder: PropTypes.string,
|
|
171
|
+
// labelName: PropTypes.string,
|
|
172
|
+
// isCeiling: PropTypes.string
|
|
173
|
+
// };
|
|
174
|
+
// FormNumberInput.contextTypes = {
|
|
175
|
+
// translator: PropTypes.object.isRequired,
|
|
176
|
+
// projectActions: PropTypes.object.isRequired,
|
|
177
|
+
// linesActions: PropTypes.object.isRequired
|
|
178
|
+
// };
|
|
162
179
|
export { FormNumberInput as default };
|
|
163
|
-
FormNumberInput.propTypes = {
|
|
164
|
-
value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
165
|
-
style: PropTypes.object,
|
|
166
|
-
onChange: PropTypes.func.isRequired,
|
|
167
|
-
onValid: PropTypes.func,
|
|
168
|
-
onInvalid: PropTypes.func,
|
|
169
|
-
min: PropTypes.number,
|
|
170
|
-
max: PropTypes.number,
|
|
171
|
-
precision: PropTypes.number,
|
|
172
|
-
placeholder: PropTypes.string,
|
|
173
|
-
labelName: PropTypes.string,
|
|
174
|
-
isCeiling: PropTypes.string
|
|
175
|
-
};
|
|
176
|
-
FormNumberInput.contextTypes = {
|
|
177
|
-
translator: PropTypes.object.isRequired,
|
|
178
|
-
projectActions: PropTypes.object.isRequired,
|
|
179
|
-
linesActions: PropTypes.object.isRequired
|
|
180
|
-
};
|
|
181
180
|
FormNumberInput.defaultProps = {
|
|
182
181
|
value: 0,
|
|
183
182
|
style: {},
|
|
@@ -15,7 +15,7 @@ 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
|
|
18
|
+
//import PropTypes from 'prop-types';
|
|
19
19
|
import * as SharedStyle from "../../shared-style";
|
|
20
20
|
import { MdUpdate } from 'react-icons/md';
|
|
21
21
|
import { KEYBOARD_BUTTON_CODE } from "../../constants";
|
|
@@ -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,
|
|
@@ -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,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from
|
|
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';
|
|
@@ -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,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from
|
|
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
|
|
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
|
|
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,7 +5,7 @@ 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
|
|
8
|
+
//import PropTypes from 'prop-types';
|
|
9
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;
|
|
@@ -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,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from
|
|
2
|
+
//import PropTypes from 'prop-types';
|
|
3
3
|
import If from "../../utils/react-if";
|
|
4
4
|
import * as sharedStyles from "../../shared-style";
|
|
5
5
|
var cx = 0;
|
|
@@ -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,14 +4,12 @@ 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 PropTypes from "../compat/propTypesCompat";
|
|
10
|
-
import If from "../../utils/react-if";
|
|
7
|
+
import React, { useState } from 'react';
|
|
8
|
+
//import PropTypes from 'prop-types';
|
|
11
9
|
import RulerDist from "./rulerDist";
|
|
12
10
|
import convert from 'convert-units';
|
|
13
11
|
import { GeometryUtils } from "../../utils/export";
|
|
14
|
-
import { MODE_ROTATING_ITEM,
|
|
12
|
+
import { MODE_ROTATING_ITEM, WALL_CABINET_LAYOUTPOS } from "../../constants";
|
|
15
13
|
import { returnReplaceableDeepSearchType } from "./utils";
|
|
16
14
|
var STYLE_LINE = {
|
|
17
15
|
fill: '#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,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from
|
|
3
|
-
import {
|
|
2
|
+
//import PropTypes from 'prop-types';
|
|
3
|
+
import { Area, Group, Item, Line, Vertex } from "./export";
|
|
4
4
|
import { GeometryUtils } from "../../utils/export";
|
|
5
5
|
import { MODE_DRAWING_LINE, WALL_CABINET_LAYOUTPOS } from "../../constants";
|
|
6
6
|
import { returnReplaceableDeepSearchType } from "./utils";
|
|
@@ -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,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from
|
|
2
|
+
//import PropTypes from 'prop-types';
|
|
3
3
|
import { GeometryUtils } from "../../utils/export";
|
|
4
4
|
import Ruler from "./ruler";
|
|
5
5
|
import { BASE_CABINET_LAYOUTPOS, LINE_THICKNESS, WALL_CABINET_LAYOUTPOS } from "../../constants";
|
|
@@ -874,9 +874,10 @@ export default function Line(_ref) {
|
|
|
874
874
|
"data-part": "remove"
|
|
875
875
|
}));
|
|
876
876
|
}
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
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
|
|
2
|
+
//import PropTypes from 'prop-types';
|
|
3
3
|
import convert from 'convert-units';
|
|
4
4
|
import IDBroker from "../../utils/id-broker";
|
|
5
|
-
import {
|
|
6
|
-
import { LINE_THICKNESS, SHADE_LIGHT_BLUE_COLOR, TEXT_COLOR_NEUTRAL_7 } from "../../constants";
|
|
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
|
|
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
|
+
// };
|