kitchen-simulator 1.1.1-test.2 → 1.1.1-test.21
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 +9 -9
- package/es/KitchenConfiguratorApp.js +13 -13
- 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 +2 -3
- 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 +6 -6
- package/es/catalog/factories/wall-factory.js +6 -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 -4
- 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 -1
- package/es/catalog/molding/molding-fbm/planner-element.js +1 -1
- package/es/catalog/molding/molding-lrm/planner-element.js +1 -1
- package/es/catalog/properties/export.js +9 -9
- package/es/catalog/properties/property-checkbox.js +4 -4
- package/es/catalog/properties/property-color.js +3 -3
- package/es/catalog/properties/property-enum.js +4 -4
- package/es/catalog/properties/property-hidden.js +1 -1
- package/es/catalog/properties/property-lenght-measure.js +5 -5
- package/es/catalog/properties/property-length-measure.js +4 -4
- package/es/catalog/properties/property-length-measure_hole.js +5 -5
- package/es/catalog/properties/property-number.js +3 -3
- package/es/catalog/properties/property-read-only.js +3 -3
- package/es/catalog/properties/property-string.js +3 -3
- package/es/catalog/properties/property-toggle.js +3 -3
- package/es/catalog/utils/geom-utils.js +1 -1
- package/es/catalog/utils/item-loader.js +7 -7
- package/es/catalog/utils/load-obj.js +2 -2
- 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 +3 -3
- package/es/class/guide.js +1 -1
- package/es/class/hole.js +5 -5
- package/es/class/item.js +10 -12
- package/es/class/layer.js +4 -4
- package/es/class/line.js +5 -6
- package/es/class/project.js +7 -7
- package/es/class/vertex.js +6 -6
- package/es/components/content.js +6 -6
- package/es/components/export.js +3 -3
- package/es/components/style/button.js +2 -2
- package/es/components/style/cancel-button.js +1 -1
- package/es/components/style/content-container.js +1 -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 +3 -3
- package/es/components/style/form-number-input_2.js +3 -3
- package/es/components/style/form-select.js +2 -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 +2 -2
- package/es/components/viewer2d/area.js +3 -3
- package/es/components/viewer2d/export.js +14 -14
- package/es/components/viewer2d/grids/grid-horizontal-streak.js +1 -1
- package/es/components/viewer2d/grids/grid-streak.js +1 -1
- package/es/components/viewer2d/grids/grid-vertical-streak.js +1 -1
- package/es/components/viewer2d/grids/grids.js +2 -2
- package/es/components/viewer2d/group.js +3 -3
- package/es/components/viewer2d/item.js +6 -6
- package/es/components/viewer2d/layer.js +5 -5
- package/es/components/viewer2d/line.js +5 -5
- package/es/components/viewer2d/ruler.js +4 -4
- package/es/components/viewer2d/rulerDist.js +1 -1
- package/es/components/viewer2d/rulerX.js +2 -2
- package/es/components/viewer2d/rulerY.js +2 -2
- package/es/components/viewer2d/scene.js +3 -3
- package/es/components/viewer2d/snap.js +2 -2
- package/es/components/viewer2d/state.js +4 -4
- package/es/components/viewer2d/utils.js +2 -2
- package/es/components/viewer2d/vertex.js +2 -3
- package/es/components/viewer2d/viewer2d.js +12 -14
- package/es/components/viewer3d/front3D.js +2 -2
- 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 +1 -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 +4 -4
- package/es/components/viewer3d/ruler-utils/state3D.js +1 -1
- package/es/components/viewer3d/scene-creator.js +10 -11
- package/es/components/viewer3d/viewer3d-first-person.js +6 -6
- package/es/components/viewer3d/viewer3d.js +15 -17
- package/es/index.js +14 -14
- package/es/models.js +3 -3
- 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 -3
- 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 -1
- 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 +5 -5
- 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 +1 -1
- package/es/utils/snap-scene.js +2 -2
- package/es/utils/snap.js +1 -1
- package/lib/KitchenConfiguratorApp.js +7 -7
- package/lib/catalog/areas/area/planner-element.js +7 -7
- package/lib/catalog/factories/area-factory-3d.js +0 -1
- 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 -2
- 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/properties/property-checkbox.js +8 -7
- package/lib/catalog/properties/property-color.js +9 -7
- package/lib/catalog/properties/property-enum.js +9 -7
- package/lib/catalog/properties/property-hidden.js +9 -7
- package/lib/catalog/properties/property-lenght-measure.js +11 -9
- package/lib/catalog/properties/property-length-measure.js +11 -9
- package/lib/catalog/properties/property-length-measure_hole.js +11 -9
- package/lib/catalog/properties/property-number.js +10 -8
- package/lib/catalog/properties/property-read-only.js +9 -7
- package/lib/catalog/properties/property-string.js +9 -7
- package/lib/catalog/properties/property-toggle.js +9 -7
- package/lib/catalog/utils/geom-utils.js +1 -1
- package/lib/catalog/utils/item-loader.js +4 -4
- 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 -2
- package/lib/class/vertex.js +1 -1
- package/lib/components/content.js +6 -6
- package/lib/components/style/button.js +5 -6
- package/lib/components/style/content-container.js +5 -4
- package/lib/components/style/content-title.js +2 -2
- package/lib/components/style/form-number-input.js +15 -15
- package/lib/components/style/form-number-input_2.js +12 -13
- package/lib/components/viewer2d/area.js +6 -4
- package/lib/components/viewer2d/grids/grid-horizontal-streak.js +6 -4
- package/lib/components/viewer2d/grids/grid-streak.js +6 -4
- package/lib/components/viewer2d/grids/grid-vertical-streak.js +6 -4
- package/lib/components/viewer2d/grids/grids.js +2 -2
- package/lib/components/viewer2d/group.js +6 -6
- package/lib/components/viewer2d/item.js +6 -6
- package/lib/components/viewer2d/layer.js +6 -4
- package/lib/components/viewer2d/line.js +6 -6
- package/lib/components/viewer2d/ruler.js +6 -4
- package/lib/components/viewer2d/rulerDist.js +6 -4
- package/lib/components/viewer2d/rulerX.js +12 -13
- package/lib/components/viewer2d/rulerY.js +10 -11
- package/lib/components/viewer2d/scene.js +5 -6
- package/lib/components/viewer2d/snap.js +4 -4
- package/lib/components/viewer2d/state.js +4 -4
- package/lib/components/viewer2d/vertex.js +3 -4
- package/lib/components/viewer2d/viewer2d.js +13 -15
- 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/scene-creator.js +1 -2
- package/lib/components/viewer3d/viewer3d-first-person.js +10 -10
- package/lib/components/viewer3d/viewer3d.js +17 -18
- 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 +5 -3
- package/package.json +6 -17
|
@@ -7,12 +7,12 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
7
7
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
8
8
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import PropTypes from 'prop-types';
|
|
10
|
+
import * as PropTypes from 'prop-types/prop-types';
|
|
11
11
|
import { Seq } from 'immutable';
|
|
12
|
-
import { FormLabel, FormSelect } from
|
|
13
|
-
import PropertyStyle from
|
|
12
|
+
import { FormLabel, FormSelect } from "../../components/style/export";
|
|
13
|
+
import PropertyStyle from "./shared-property-style";
|
|
14
14
|
import styled from 'styled-components';
|
|
15
|
-
import { TEXT_COLOR_NEUTRAL_0, DEFAULT_FONT_FAMILY } from
|
|
15
|
+
import { TEXT_COLOR_NEUTRAL_0, DEFAULT_FONT_FAMILY } from "../../constants";
|
|
16
16
|
var EnumWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n margin-top: 3px;\n"])));
|
|
17
17
|
var EnumTitle = styled.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-right: auto;\n width: 110px;\n color: ", ";\n font-family: ", ";\n\n @media screen and (min-width: 1024) {\n font-size: 11px;\n }\n @media screen and (max-width: 1024) {\n font-size: 11px;\n }\n @media screen and (min-width: 1366) {\n font-size: 13px;\n }\n @media screen and (max-width: 1366) {\n font-size: 13px;\n }\n @media screen and (min-width: 1440) {\n font-size: 16px;\n }\n @media screen and (max-width: 1440) {\n font-size: 16px;\n }\n font-weight: 400;\n line-height: 15px;\n text-align: left;\n"])), TEXT_COLOR_NEUTRAL_0, DEFAULT_FONT_FAMILY);
|
|
18
18
|
export default function PropertyEnum(_ref) {
|
|
@@ -3,13 +3,13 @@ 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 PropTypes from 'prop-types';
|
|
7
|
-
import { BASE_CABINET_LAYOUTPOS, TALL_CABINET_LAYOUTPOS, UNITS_LENGTH, UNIT_INCH } from
|
|
6
|
+
import * as PropTypes from 'prop-types/prop-types';
|
|
7
|
+
import { BASE_CABINET_LAYOUTPOS, TALL_CABINET_LAYOUTPOS, UNITS_LENGTH, UNIT_INCH } from "./../../constants";
|
|
8
8
|
import convert from 'convert-units';
|
|
9
|
-
import { FormLabel, FormNumberInput, FormSelect } from
|
|
9
|
+
import { FormLabel, FormNumberInput, FormSelect } from "../../components/style/export";
|
|
10
10
|
import { Map } from 'immutable';
|
|
11
|
-
import { toFixedFloat } from
|
|
12
|
-
import PropertyStyle from
|
|
11
|
+
import { toFixedFloat } from "../../utils/math";
|
|
12
|
+
import PropertyStyle from "./shared-property-style";
|
|
13
13
|
var internalTableStyle = {
|
|
14
14
|
borderCollapse: 'collapse'
|
|
15
15
|
};
|
|
@@ -5,12 +5,12 @@ 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 PropTypes from 'prop-types';
|
|
9
|
-
import { UNITS_LENGTH, UNIT_INCH, UNIT_CENTIMETER, DEFAULT_FONT_FAMILY, TEXT_COLOR_NEUTRAL_0, BASE_CABINET_LAYOUTPOS, TALL_CABINET_LAYOUTPOS } from
|
|
8
|
+
import * as PropTypes from 'prop-types/prop-types';
|
|
9
|
+
import { UNITS_LENGTH, UNIT_INCH, UNIT_CENTIMETER, DEFAULT_FONT_FAMILY, TEXT_COLOR_NEUTRAL_0, BASE_CABINET_LAYOUTPOS, TALL_CABINET_LAYOUTPOS } from "../../constants";
|
|
10
10
|
import convert from 'convert-units';
|
|
11
|
-
import { FormLabel, FormNumberInput, FormSelect } from
|
|
11
|
+
import { FormLabel, FormNumberInput, FormSelect } from "../../components/style/export";
|
|
12
12
|
import { Map } from 'immutable';
|
|
13
|
-
import { toFixedFloat } from
|
|
13
|
+
import { toFixedFloat } from "../../utils/math";
|
|
14
14
|
import styled from 'styled-components';
|
|
15
15
|
var DistanceFloorWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n margin-top: 3px;\n"])));
|
|
16
16
|
var DistanceFloorTitle = styled.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-right: auto;\n width: 110px;\n color: ", ";\n font-family: ", ";\n font-size: 16px;\n\n @media screen and (min-width: 1024) {\n font-size: 11px;\n }\n @media screen and (max-width: 1024) {\n font-size: 11px;\n }\n @media screen and (min-width: 1366) {\n font-size: 13px;\n }\n @media screen and (max-width: 1366) {\n font-size: 13px;\n }\n @media screen and (min-width: 1440) {\n font-size: 16px;\n }\n @media screen and (max-width: 1440) {\n font-size: 16px;\n }\n font-weight: 400;\n line-height: 15px;\n text-align: left;\n"])), TEXT_COLOR_NEUTRAL_0, DEFAULT_FONT_FAMILY);
|
|
@@ -3,13 +3,13 @@ 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 PropTypes from 'prop-types';
|
|
7
|
-
import { UNITS_LENGTH, UNIT_INCH, UNIT_CENTIMETER, BASE_CABINET_LAYOUTPOS, TALL_CABINET_LAYOUTPOS } from
|
|
6
|
+
import * as PropTypes from 'prop-types/prop-types';
|
|
7
|
+
import { UNITS_LENGTH, UNIT_INCH, UNIT_CENTIMETER, BASE_CABINET_LAYOUTPOS, TALL_CABINET_LAYOUTPOS } from "../../constants";
|
|
8
8
|
import convert from 'convert-units';
|
|
9
|
-
import { FormLabel, FormNumberInput1, FormSelect } from
|
|
9
|
+
import { FormLabel, FormNumberInput1, FormSelect } from "../../components/style/export";
|
|
10
10
|
import { Map } from 'immutable';
|
|
11
|
-
import { toFixedFloat } from
|
|
12
|
-
import PropertyStyle from
|
|
11
|
+
import { toFixedFloat } from "../../utils/math";
|
|
12
|
+
import PropertyStyle from "./shared-property-style";
|
|
13
13
|
var internalTableStyle = {
|
|
14
14
|
borderCollapse: 'collapse'
|
|
15
15
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import { FormLabel, FormNumberInput } from
|
|
4
|
-
import PropertyStyle from
|
|
2
|
+
import * as PropTypes from 'prop-types/prop-types';
|
|
3
|
+
import { FormLabel, FormNumberInput } from "../../components/style/export";
|
|
4
|
+
import PropertyStyle from "./shared-property-style";
|
|
5
5
|
export default function PropertyNumber(_ref) {
|
|
6
6
|
var value = _ref.value,
|
|
7
7
|
onUpdate = _ref.onUpdate,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import { FormLabel } from
|
|
4
|
-
import PropertyStyle from
|
|
2
|
+
import * as PropTypes from 'prop-types/prop-types';
|
|
3
|
+
import { FormLabel } from "../../components/style/export";
|
|
4
|
+
import PropertyStyle from "./shared-property-style";
|
|
5
5
|
export default function PropertyReadOnly(_ref) {
|
|
6
6
|
var value = _ref.value,
|
|
7
7
|
onUpdate = _ref.onUpdate,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import { FormLabel, FormTextInput } from
|
|
4
|
-
import PropertyStyle from
|
|
2
|
+
import * as PropTypes from 'prop-types/prop-types';
|
|
3
|
+
import { FormLabel, FormTextInput } from "../../components/style/export";
|
|
4
|
+
import PropertyStyle from "./shared-property-style";
|
|
5
5
|
var tableStyle = {
|
|
6
6
|
width: '100%',
|
|
7
7
|
borderSpacing: '2px 0',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import { FormLabel, Button } from
|
|
4
|
-
import PropertyStyle from
|
|
2
|
+
import * as PropTypes from 'prop-types/prop-types';
|
|
3
|
+
import { FormLabel, Button } from "../../components/style/export";
|
|
4
|
+
import PropertyStyle from "./shared-property-style";
|
|
5
5
|
export default function PropertyToggle(_ref) {
|
|
6
6
|
var value = _ref.value,
|
|
7
7
|
onUpdate = _ref.onUpdate,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Three from 'three';
|
|
2
|
-
import { OBJTYPE_MESH } from
|
|
2
|
+
import { OBJTYPE_MESH } from "../../constants";
|
|
3
3
|
export function controlGeom() {
|
|
4
4
|
var vertices = new Float32Array([0, 0.02, 0.55, -0.08, 0, 0.5, -0.05, 0, 0.5, -0.05, 0, -0.5, -0.08, 0, -0.5, 0, 0.02, -0.55, 0.08, 0, -0.5, 0.05, 0, -0.5, 0.05, 0, 0.5, 0.08, 0, 0.5, 0, 0.02, 0.55, -0.08, 0.04, 0.5, -0.05, 0.04, 0.5, -0.05, 0.04, -0.5, -0.08, 0.04, -0.5, 0, 0.02, -0.55, 0.08, 0.04, -0.5, 0.05, 0.04, -0.5, 0.05, 0.04, 0.5, 0.08, 0.04, 0.5, 0, 0.02, 0.55]);
|
|
5
5
|
var indices = new Uint16Array([0, 1, 9, 4, 5, 6, 2, 3, 8, 3, 7, 8, 10, 11, 19, 14, 15, 16, 12, 13, 18, 13, 17, 18, 10, 1, 11, 10, 9, 19, 1, 2, 11, 2, 12, 11, 8, 9, 18, 9, 18, 19, 12, 2, 3, 12, 3, 13, 17, 7, 8, 17, 8, 18, 5, 4, 14, 15, 6, 16]);
|
|
@@ -11,15 +11,15 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
11
11
|
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; } }
|
|
12
12
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
13
13
|
import convert from 'convert-units';
|
|
14
|
-
import {
|
|
14
|
+
import { fromJS, Map } from 'immutable';
|
|
15
15
|
import React, { useState } from 'react';
|
|
16
16
|
import * as Three from 'three';
|
|
17
|
-
import * as SceneCreator from
|
|
18
|
-
import { ARROW_COLOR, OBJTYPE_GROUP, OBJTYPE_MESH, SHADE_DARK_PURPLE_COLOR, SHAPE_SVG_DEPTH, SHAPE_SVG_PADDING, SHAPE_SVG_WIDTH,
|
|
19
|
-
import { Item } from
|
|
20
|
-
import * as GeomUtils from
|
|
21
|
-
import { loadGLTF } from
|
|
22
|
-
import { animateDoor, translateDrawer } from
|
|
17
|
+
import * as SceneCreator from "../../components/viewer3d/scene-creator";
|
|
18
|
+
import { ARROW_COLOR, BASE_CABINET_LAYOUTPOS, OBJTYPE_GROUP, OBJTYPE_MESH, SHADE_DARK_PURPLE_COLOR, SHAPE_SVG_DEPTH, SHAPE_SVG_PADDING, SHAPE_SVG_WIDTH, STATUS_WARNING_COLOR, STATUS_WARNING_LIGHT_COLOR, TALL_CABINET_LAYOUTPOS, UNIT_CENTIMETER, UNIT_INCH, WALL_CABINET_LAYOUTPOS } from "../../constants";
|
|
19
|
+
import { Item } from "../../models";
|
|
20
|
+
import * as GeomUtils from "./geom-utils";
|
|
21
|
+
import { loadGLTF } from "./load-obj";
|
|
22
|
+
import { animateDoor, translateDrawer } from "../../utils/helper";
|
|
23
23
|
|
|
24
24
|
// env Map ///////////////
|
|
25
25
|
var paramsCounter = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Box3, BufferAttribute, BufferGeometry, LoaderUtils, LoadingManager, Vector3 } from 'three';
|
|
2
2
|
import { MTLLoader } from 'three/examples/jsm/loaders/MTLLoader.js';
|
|
3
3
|
import { OBJLoader } from 'three/examples/jsm/loaders/OBJLoader.js';
|
|
4
4
|
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
|
|
5
5
|
import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader.js';
|
|
6
|
-
import { OBJTYPE_MESH } from
|
|
6
|
+
import { OBJTYPE_MESH } from "../../constants";
|
|
7
7
|
export function loadObjWithMaterial(mtlFile, objFile, imgPath) {
|
|
8
8
|
var manager = new LoadingManager();
|
|
9
9
|
var mtlLoader = new MTLLoader(manager);
|
package/es/class/area.js
CHANGED
|
@@ -8,8 +8,8 @@ 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, Group } from
|
|
12
|
-
import { IDBroker, NameGenerator } from
|
|
11
|
+
import { Layer, Vertex, Group } from "./export";
|
|
12
|
+
import { IDBroker, NameGenerator } from "../utils/export";
|
|
13
13
|
var Area = /*#__PURE__*/function () {
|
|
14
14
|
function Area() {
|
|
15
15
|
_classCallCheck(this, Area);
|
package/es/class/export.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import Project from
|
|
2
|
-
import Group from
|
|
3
|
-
import Layer from
|
|
4
|
-
import Line from
|
|
5
|
-
import Hole from
|
|
6
|
-
import Vertex from
|
|
7
|
-
import Area from
|
|
8
|
-
import Item from
|
|
9
|
-
import FuseUtils from
|
|
10
|
-
import { HorizontalGuide, VerticalGuide } from
|
|
1
|
+
import Project from "./project";
|
|
2
|
+
import Group from "./group";
|
|
3
|
+
import Layer from "./layer";
|
|
4
|
+
import Line from "./line";
|
|
5
|
+
import Hole from "./hole";
|
|
6
|
+
import Vertex from "./vertex";
|
|
7
|
+
import Area from "./area";
|
|
8
|
+
import Item from "./item";
|
|
9
|
+
import FuseUtils from "./FuseUtils";
|
|
10
|
+
import { HorizontalGuide, VerticalGuide } from "./guide";
|
|
11
11
|
export { Project, Group, FuseUtils, Layer, Line, Hole, Vertex, Area, Item, HorizontalGuide, VerticalGuide };
|
|
12
12
|
export default {
|
|
13
13
|
Project: Project,
|
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 { Project, Line, Hole, Item, Area, Layer, Vertex } from
|
|
13
|
+
import { Project, Line, Hole, Item, Area, Layer, Vertex } from "./export";
|
|
14
14
|
import { Map, List } from 'immutable';
|
|
15
|
-
import { Group as GroupModel } from
|
|
16
|
-
import { IDBroker, MathUtils, GeometryUtils } from
|
|
15
|
+
import { Group as GroupModel } from "../models";
|
|
16
|
+
import { IDBroker, MathUtils, GeometryUtils } from "../utils/export";
|
|
17
17
|
var Group = /*#__PURE__*/function () {
|
|
18
18
|
function Group() {
|
|
19
19
|
_classCallCheck(this, Group);
|
package/es/class/guide.js
CHANGED
|
@@ -4,7 +4,7 @@ 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 { IDBroker } from
|
|
7
|
+
import { IDBroker } from "../utils/export";
|
|
8
8
|
var HorizontalGuide = /*#__PURE__*/function () {
|
|
9
9
|
function HorizontalGuide() {
|
|
10
10
|
_classCallCheck(this, HorizontalGuide);
|
package/es/class/hole.js
CHANGED
|
@@ -5,11 +5,11 @@ 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 { Map, List, fromJS } from 'immutable';
|
|
8
|
-
import { Layer, Group } from
|
|
9
|
-
import { IDBroker, NameGenerator } from
|
|
10
|
-
import { nearestSnap, addLineSegmentSnap } from
|
|
11
|
-
import { MODE_IDLE, MODE_IDLE_3D, MODE_DRAWING_HOLE, MODE_DRAWING_HOLE_3D, MODE_DRAGGING_HOLE, MODE_DRAGGING_HOLE_3D } from
|
|
12
|
-
import { GeometryUtils } from
|
|
8
|
+
import { Layer, Group } from "./export";
|
|
9
|
+
import { IDBroker, NameGenerator } from "../utils/export";
|
|
10
|
+
import { nearestSnap, addLineSegmentSnap } from "../utils/snap";
|
|
11
|
+
import { MODE_IDLE, MODE_IDLE_3D, MODE_DRAWING_HOLE, MODE_DRAWING_HOLE_3D, MODE_DRAGGING_HOLE, MODE_DRAGGING_HOLE_3D } from "../constants";
|
|
12
|
+
import { GeometryUtils } from "../utils/export";
|
|
13
13
|
var Hole = /*#__PURE__*/function () {
|
|
14
14
|
function Hole() {
|
|
15
15
|
_classCallCheck(this, Hole);
|
package/es/class/item.js
CHANGED
|
@@ -14,15 +14,13 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
14
14
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
15
|
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); }
|
|
16
16
|
import convert from 'convert-units';
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { hasMoldingLayout } from '../utils/molding';
|
|
25
|
-
import { getInstallationSuffix } from '../components/viewer2d/utils';
|
|
17
|
+
import { Group, Hole, Layer } from "./export";
|
|
18
|
+
import { GeometryUtils, IDBroker, MoldingUtils, NameGenerator } from "../utils/export";
|
|
19
|
+
import { fromJS, Map } from 'immutable';
|
|
20
|
+
import { INSTALLATION_SUFFIX_TYPE, MODE_DRAGGING_ITEM, MODE_DRAGGING_ITEM_3D, MODE_DRAWING_ITEM, MODE_DRAWING_ITEM_3D, MODE_IDLE, MODE_IDLE_3D, MODE_ROTATING_ITEM, MODE_ROTATING_ITEM_3D, MOLDING_LOCATIONS } from "../constants";
|
|
21
|
+
import { debugUtil } from "../utils/helper";
|
|
22
|
+
import { hasMoldingLayout } from "../utils/molding";
|
|
23
|
+
import { getInstallationSuffix } from "../components/viewer2d/utils";
|
|
26
24
|
var allItemRect;
|
|
27
25
|
var allItemSnap;
|
|
28
26
|
var allLines;
|
|
@@ -726,7 +724,7 @@ var Item = /*#__PURE__*/function () {
|
|
|
726
724
|
value: function beginDraggingItem(state, layerID, itemID, x, y) {
|
|
727
725
|
var item = state.getIn(['scene', 'layers', layerID, 'items', itemID]);
|
|
728
726
|
time1 = debugUtil();
|
|
729
|
-
if (
|
|
727
|
+
if (!item) return;
|
|
730
728
|
state = state.merge({
|
|
731
729
|
mode: MODE_DRAGGING_ITEM,
|
|
732
730
|
draggingSupport: Map({
|
|
@@ -747,7 +745,7 @@ var Item = /*#__PURE__*/function () {
|
|
|
747
745
|
value: function beginDraggingItem3D(state, layerID, itemID, x, y) {
|
|
748
746
|
var item = state.getIn(['scene', 'layers', layerID, 'items', itemID]);
|
|
749
747
|
state = state.setIn(['scene', 'isEndDragging'], false);
|
|
750
|
-
if (
|
|
748
|
+
if (!item) return {
|
|
751
749
|
updatedState: state
|
|
752
750
|
};
|
|
753
751
|
state = state.merge({
|
|
@@ -780,7 +778,7 @@ var Item = /*#__PURE__*/function () {
|
|
|
780
778
|
var diffX = startPointX - x;
|
|
781
779
|
var diffY = startPointY - y;
|
|
782
780
|
var item = scene.getIn(['layers', layerID, 'items', itemID]);
|
|
783
|
-
if (
|
|
781
|
+
if (!item) return {
|
|
784
782
|
updatedState: state
|
|
785
783
|
};
|
|
786
784
|
var tX = originalX - diffX;
|
package/es/class/layer.js
CHANGED
|
@@ -5,10 +5,10 @@ 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 { Project, Area, Line, Hole, Item, Vertex } from
|
|
9
|
-
import { GraphInnerCycles, GeometryUtils, IDBroker } from
|
|
10
|
-
import { Layer as LayerModel } from
|
|
11
|
-
import { isEmpty } from
|
|
8
|
+
import { Project, Area, Line, Hole, Item, Vertex } from "./export";
|
|
9
|
+
import { GraphInnerCycles, GeometryUtils, IDBroker } from "../utils/export";
|
|
10
|
+
import { Layer as LayerModel } from "../models";
|
|
11
|
+
import { isEmpty } from "../utils/helper";
|
|
12
12
|
var sameSet = function sameSet(set1, set2) {
|
|
13
13
|
return set1.size === set2.size && set1.isSuperset(set2) && set1.isSubset(set2);
|
|
14
14
|
};
|
package/es/class/line.js
CHANGED
|
@@ -10,13 +10,12 @@ 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 { Group,
|
|
15
|
-
import {
|
|
13
|
+
import { fromJS, List, Map } from 'immutable';
|
|
14
|
+
import { Group, Hole, Layer, Vertex } from "./export";
|
|
15
|
+
import { GeometryUtils, history, IDBroker, NameGenerator, SnapSceneUtils, SnapUtils } from "../utils/export";
|
|
16
16
|
import * as Three from 'three';
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { isEmpty } from '../../src/utils/helper';
|
|
17
|
+
import { END_DRAGGING_LINE, END_DRAGGING_VERTEX, END_DRAWING_LINE, EPSILON, MIN_ANGLE_DISALLOW_DRAW_WALL, MODE_DRAGGING_LINE, MODE_DRAWING_LINE, MODE_IDLE, MODE_WAITING_DRAWING_LINE, UNIT_ANGLE } from "../constants";
|
|
18
|
+
import { isEmpty } from "../utils/helper";
|
|
20
19
|
var timeGlobal = 0;
|
|
21
20
|
var TimeRecorder = /*#__PURE__*/function () {
|
|
22
21
|
function TimeRecorder(name) {
|
package/es/class/project.js
CHANGED
|
@@ -8,13 +8,13 @@ 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 { Map, List } from 'immutable';
|
|
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
|
|
12
|
-
import * as constants from
|
|
13
|
-
import { State, Catalog, Scene } from
|
|
14
|
-
import { GeometryUtils, history } from
|
|
15
|
-
import { Layer, Group, Line, Hole, Item, Area, HorizontalGuide, VerticalGuide } from
|
|
16
|
-
import * as viewer2DActions from
|
|
17
|
-
import { isEmpty } from
|
|
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";
|
|
12
|
+
import * as constants from "../constants";
|
|
13
|
+
import { State, Catalog, Scene } from "../models";
|
|
14
|
+
import { GeometryUtils, history } from "../utils/export";
|
|
15
|
+
import { Layer, Group, Line, Hole, Item, Area, HorizontalGuide, VerticalGuide } from "../class/export";
|
|
16
|
+
import * as viewer2DActions from "../actions/viewer2d-actions";
|
|
17
|
+
import { isEmpty } from "../utils/helper";
|
|
18
18
|
var Project = /*#__PURE__*/function () {
|
|
19
19
|
function Project() {
|
|
20
20
|
_classCallCheck(this, Project);
|
package/es/class/vertex.js
CHANGED
|
@@ -5,12 +5,12 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
|
|
|
5
5
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
6
6
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
7
|
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); }
|
|
8
|
-
import {
|
|
9
|
-
import { Vertex as VertexModel } from
|
|
10
|
-
import {
|
|
11
|
-
import { END_DRAGGING_VERTEX, MODE_DRAGGING_VERTEX
|
|
12
|
-
import { Layer, Line
|
|
13
|
-
import { isEmpty } from
|
|
8
|
+
import { List, Map } from 'immutable';
|
|
9
|
+
import { Vertex as VertexModel } from "../models";
|
|
10
|
+
import { GeometryUtils, IDBroker, SnapSceneUtils, SnapUtils } from "../utils/export";
|
|
11
|
+
import { END_DRAGGING_VERTEX, MODE_DRAGGING_VERTEX } from "../constants";
|
|
12
|
+
import { Layer, Line } from "../class/export";
|
|
13
|
+
import { isEmpty } from "../utils/helper";
|
|
14
14
|
var Vertex = /*#__PURE__*/function () {
|
|
15
15
|
function Vertex() {
|
|
16
16
|
_classCallCheck(this, Vertex);
|
package/es/components/content.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import Viewer2D from
|
|
4
|
-
import Viewer3D from
|
|
5
|
-
import Viewer3DFirstPerson from
|
|
6
|
-
import * as constants from
|
|
7
|
-
import Front3D from
|
|
2
|
+
import * as PropTypes from 'prop-types/prop-types';
|
|
3
|
+
import Viewer2D from "./viewer2d/viewer2d";
|
|
4
|
+
import Viewer3D from "./viewer3d/viewer3d";
|
|
5
|
+
import Viewer3DFirstPerson from "./viewer3d/viewer3d-first-person";
|
|
6
|
+
import * as constants from "../constants";
|
|
7
|
+
import Front3D from "./viewer3d/front3D";
|
|
8
8
|
export default function Content(_ref, _ref2) {
|
|
9
9
|
var width = _ref.width,
|
|
10
10
|
height = _ref.height,
|
package/es/components/export.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Content from
|
|
2
|
-
import Viewer2DComponents from
|
|
3
|
-
import StyleComponents from
|
|
1
|
+
import Content from "./content";
|
|
2
|
+
import Viewer2DComponents from "./viewer2d/export";
|
|
3
|
+
import StyleComponents from "./style/export";
|
|
4
4
|
export { Content, Viewer2DComponents, StyleComponents };
|
|
5
5
|
export default {
|
|
6
6
|
Content: Content,
|
|
@@ -16,8 +16,8 @@ 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 'prop-types';
|
|
20
|
-
import * as SharedStyle from
|
|
19
|
+
import * as PropTypes from 'prop-types/prop-types';
|
|
20
|
+
import * as SharedStyle from "../../shared-style";
|
|
21
21
|
var BASE_STYLE = {
|
|
22
22
|
display: 'inline-block',
|
|
23
23
|
fontWeight: '400',
|
|
@@ -3,7 +3,7 @@ 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
|
|
6
|
+
import Button from "./button";
|
|
7
7
|
var STYLE = {
|
|
8
8
|
borderColor: '#adadad',
|
|
9
9
|
backgroundColor: '#e6e6e6'
|
|
@@ -5,7 +5,7 @@ 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 'prop-types';
|
|
8
|
+
import * as PropTypes from 'prop-types/prop-types';
|
|
9
9
|
var STYLE = {
|
|
10
10
|
padding: '0 20px',
|
|
11
11
|
overflowY: 'auto'
|
|
@@ -9,8 +9,8 @@ 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 'prop-types';
|
|
13
|
-
import * as SharedStyle from
|
|
12
|
+
import * as PropTypes from 'prop-types/prop-types';
|
|
13
|
+
import * as SharedStyle from "../../shared-style";
|
|
14
14
|
var STYLE = {
|
|
15
15
|
color: SharedStyle.PRIMARY_COLOR.alt,
|
|
16
16
|
fontWeight: 300
|
|
@@ -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: '#c12e2a',
|
|
10
10
|
backgroundColor: '#c9302c',
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import Button from
|
|
2
|
-
import CancelButton from
|
|
3
|
-
import ContentContainer from
|
|
4
|
-
import ContentTitle from
|
|
5
|
-
import DeleteButton from
|
|
6
|
-
import FormBlock from
|
|
7
|
-
import FormColorInput from
|
|
8
|
-
import FormLabel from
|
|
9
|
-
import FormNumberInput from
|
|
10
|
-
import FormSelect from
|
|
11
|
-
import FormSlider from
|
|
12
|
-
import FormSubmitButton from
|
|
13
|
-
import FormTextInput from
|
|
14
|
-
import FormNumberInput2 from
|
|
1
|
+
import Button from "./button";
|
|
2
|
+
import CancelButton from "./cancel-button";
|
|
3
|
+
import ContentContainer from "./content-container";
|
|
4
|
+
import ContentTitle from "./content-title";
|
|
5
|
+
import DeleteButton from "./delete-button";
|
|
6
|
+
import FormBlock from "./form-block";
|
|
7
|
+
import FormColorInput from "./form-color-input";
|
|
8
|
+
import FormLabel from "./form-label";
|
|
9
|
+
import FormNumberInput from "./form-number-input";
|
|
10
|
+
import FormSelect from "./form-select";
|
|
11
|
+
import FormSlider from "./form-slider";
|
|
12
|
+
import FormSubmitButton from "./form-submit-button";
|
|
13
|
+
import FormTextInput from "./form-text-input";
|
|
14
|
+
import FormNumberInput2 from "./form-number-input_2";
|
|
15
15
|
export { Button, CancelButton, ContentContainer, ContentTitle, DeleteButton, FormBlock, FormColorInput, FormLabel, FormNumberInput, FormSelect, FormSlider, FormSubmitButton, FormTextInput, FormNumberInput2 };
|
|
16
16
|
export default {
|
|
17
17
|
Button: Button,
|
|
@@ -3,7 +3,7 @@ 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 FormTextInput from
|
|
6
|
+
import FormTextInput from "./form-text-input";
|
|
7
7
|
var STYLE = {
|
|
8
8
|
padding: 0,
|
|
9
9
|
border: 0
|
|
@@ -14,10 +14,10 @@ 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 'prop-types';
|
|
18
|
-
import { KEYBOARD_BUTTON_CODE, TEXT_COLOR_NEUTRAL_0, SECONDARY_PURPLE_COLOR, DEFAULT_FONT_FAMILY } from
|
|
17
|
+
import * as PropTypes from 'prop-types/prop-types';
|
|
18
|
+
import { KEYBOARD_BUTTON_CODE, TEXT_COLOR_NEUTRAL_0, SECONDARY_PURPLE_COLOR, DEFAULT_FONT_FAMILY } from "../../constants";
|
|
19
19
|
import styled from 'styled-components';
|
|
20
|
-
import { isValidNumber } from
|
|
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);
|
|
22
22
|
var FormNumberInput = /*#__PURE__*/function (_Component) {
|
|
23
23
|
function FormNumberInput(props, context) {
|
|
@@ -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 * as PropTypes from 'prop-types/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%',
|