kitchen-simulator 1.1.1-test.5 → 1.1.1-test.7
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 +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 +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 -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 -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 +3 -3
- package/es/catalog/properties/property-color.js +2 -2
- package/es/catalog/properties/property-enum.js +3 -3
- package/es/catalog/properties/property-lenght-measure.js +4 -4
- package/es/catalog/properties/property-length-measure.js +3 -3
- package/es/catalog/properties/property-length-measure_hole.js +4 -4
- package/es/catalog/properties/property-number.js +2 -2
- package/es/catalog/properties/property-read-only.js +2 -2
- package/es/catalog/properties/property-string.js +2 -2
- package/es/catalog/properties/property-toggle.js +2 -2
- 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/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 +6 -6
- package/es/class/layer.js +4 -4
- package/es/class/line.js +4 -4
- package/es/class/project.js +7 -7
- package/es/class/vertex.js +5 -5
- package/es/components/content.js +5 -5
- package/es/components/export.js +3 -3
- package/es/components/style/button.js +1 -1
- package/es/components/style/cancel-button.js +1 -1
- package/es/components/style/content-title.js +1 -1
- 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 +2 -2
- package/es/components/style/form-number-input_2.js +2 -2
- 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 +2 -2
- package/es/components/viewer2d/export.js +14 -14
- package/es/components/viewer2d/grids/grids.js +1 -1
- package/es/components/viewer2d/group.js +2 -2
- package/es/components/viewer2d/item.js +5 -5
- package/es/components/viewer2d/layer.js +4 -4
- package/es/components/viewer2d/line.js +4 -4
- package/es/components/viewer2d/ruler.js +3 -3
- package/es/components/viewer2d/rulerX.js +1 -1
- package/es/components/viewer2d/rulerY.js +1 -1
- package/es/components/viewer2d/scene.js +2 -2
- package/es/components/viewer2d/snap.js +1 -1
- package/es/components/viewer2d/state.js +3 -3
- package/es/components/viewer2d/utils.js +2 -2
- package/es/components/viewer2d/vertex.js +1 -1
- package/es/components/viewer2d/viewer2d.js +9 -9
- 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/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 -10
- package/es/components/viewer3d/viewer3d-first-person.js +5 -5
- package/es/components/viewer3d/viewer3d.js +10 -10
- 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/graph-inner-cycles.js +3 -3
- package/es/utils/helper.js +3 -3
- package/es/utils/molding.js +5 -5
- package/es/utils/snap-scene.js +2 -2
- package/es/utils/snap.js +1 -1
- package/lib/KitchenConfiguratorApp.js +9 -9
- package/lib/catalog/areas/area/planner-element.js +7 -7
- package/lib/catalog/factories/wall-factory-3d.js +2 -2
- 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/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/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/class/line.js +1 -1
- package/lib/class/vertex.js +1 -1
- package/lib/components/viewer2d/line.js +1 -1
- package/lib/components/viewer2d/viewer2d.js +15 -15
- package/lib/components/viewer3d/scene-creator.js +2 -2
- package/lib/utils/helper.js +1 -1
- package/package.json +3 -13
|
@@ -30,21 +30,21 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
30
30
|
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); }
|
|
31
31
|
import axios from 'axios';
|
|
32
32
|
import * as convert from 'convert-units';
|
|
33
|
-
import { Plugins as PlannerPlugins } from
|
|
33
|
+
import { Plugins as PlannerPlugins } from "./index";
|
|
34
34
|
import * as PropTypes from 'prop-types';
|
|
35
35
|
import React, { Component } from 'react';
|
|
36
36
|
import ReactGA from 'react-ga4';
|
|
37
37
|
import { hotjar } from 'react-hotjar';
|
|
38
38
|
import { connect } from 'react-redux';
|
|
39
39
|
import { bindActionCreators } from 'redux';
|
|
40
|
-
import * as constants from
|
|
41
|
-
import { base64Decode, getPath } from
|
|
42
|
-
import actions from
|
|
43
|
-
import Catalog from
|
|
44
|
-
import { Content } from
|
|
45
|
-
import Translator from
|
|
46
|
-
import { objectsMap } from
|
|
47
|
-
import { VERSION } from
|
|
40
|
+
import * as constants from "./constants";
|
|
41
|
+
import { base64Decode, getPath } from "./utils/helper";
|
|
42
|
+
import actions from "./actions/export";
|
|
43
|
+
import Catalog from "./catalog/catalog";
|
|
44
|
+
import { Content } from "./components/export";
|
|
45
|
+
import Translator from "./translator/translator";
|
|
46
|
+
import { objectsMap } from "./utils/objects-utils";
|
|
47
|
+
import { VERSION } from "./version";
|
|
48
48
|
var toolbarW = 0;
|
|
49
49
|
var wrapperStyle = {
|
|
50
50
|
display: 'flex',
|
|
@@ -22,24 +22,24 @@ import React, { useEffect } from 'react';
|
|
|
22
22
|
import * as PropTypes from 'prop-types';
|
|
23
23
|
import { Provider } from 'react-redux';
|
|
24
24
|
import { createStore } from 'redux';
|
|
25
|
-
import * as Models from
|
|
26
|
-
import KitchenConfigurator from
|
|
27
|
-
import AppContext from
|
|
28
|
-
import Catalog from
|
|
25
|
+
import * as Models from "./models";
|
|
26
|
+
import KitchenConfigurator from "./KitchenConfigurator";
|
|
27
|
+
import AppContext from "./AppContext";
|
|
28
|
+
import Catalog from "./catalog/catalog";
|
|
29
29
|
import { SVGLoader } from 'three/addons/loaders/SVGLoader';
|
|
30
|
-
import { isEmpty } from
|
|
31
|
-
import { TOE_KICK_MOLDING } from
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import * as Holes from
|
|
35
|
-
import { render2DItem, render3DApplianceItem, render3DItem, render3DLightingItem } from
|
|
36
|
-
import { Models as PlannerModels, Plugins as PlannerPlugins, reducer as PlannerReducer } from
|
|
30
|
+
import { isEmpty } from "./utils/helper";
|
|
31
|
+
import { TOE_KICK_MOLDING } from "./constants";
|
|
32
|
+
import Areas from "./catalog/areas/area/planner-element.jsx";
|
|
33
|
+
import Lines from "./catalog/lines/wall/planner-element.jsx";
|
|
34
|
+
import * as Holes from "./catalog/holes/export";
|
|
35
|
+
import { render2DItem, render3DApplianceItem, render3DItem, render3DLightingItem } from "./catalog/utils/item-loader";
|
|
36
|
+
import { Models as PlannerModels, Plugins as PlannerPlugins, reducer as PlannerReducer } from "./index";
|
|
37
37
|
import { Map } from 'immutable';
|
|
38
38
|
import ReactGA from 'react-ga4';
|
|
39
39
|
import { hotjar } from 'react-hotjar';
|
|
40
40
|
import * as Sentry from '@sentry/react';
|
|
41
|
-
import { loadProject, rename } from
|
|
42
|
-
import exporter from
|
|
41
|
+
import { loadProject, rename } from "./actions/project-actions";
|
|
42
|
+
import exporter from "./catalog/utils/exporter";
|
|
43
43
|
|
|
44
44
|
/* ============================== component ============================= */
|
|
45
45
|
var MyCatalog = new Catalog();
|
package/es/actions/export.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as projectActions from
|
|
2
|
-
import * as viewer2DActions from
|
|
3
|
-
import * as viewer3DActions from
|
|
4
|
-
import * as linesActions from
|
|
5
|
-
import * as holesActions from
|
|
6
|
-
import * as sceneActions from
|
|
7
|
-
import * as verticesActions from
|
|
8
|
-
import * as itemsActions from
|
|
9
|
-
import * as areaActions from
|
|
10
|
-
import * as groupsActions from
|
|
1
|
+
import * as projectActions from "./project-actions";
|
|
2
|
+
import * as viewer2DActions from "./viewer2d-actions";
|
|
3
|
+
import * as viewer3DActions from "./viewer3d-actions";
|
|
4
|
+
import * as linesActions from "./lines-actions";
|
|
5
|
+
import * as holesActions from "./holes-actions";
|
|
6
|
+
import * as sceneActions from "./scene-actions";
|
|
7
|
+
import * as verticesActions from "./vertices-actions";
|
|
8
|
+
import * as itemsActions from "./items-actions";
|
|
9
|
+
import * as areaActions from "./area-actions";
|
|
10
|
+
import * as groupsActions from "./groups-actions";
|
|
11
11
|
export { projectActions, viewer2DActions, viewer3DActions, linesActions, holesActions, sceneActions, verticesActions, itemsActions, areaActions, groupsActions };
|
|
12
12
|
export default {
|
|
13
13
|
projectActions: projectActions,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SELECT_HOLE, SELECT_TOOL_DRAWING_HOLE, SELECT_TOOL_DRAWING_HOLE_3D, UPDATE_DRAWING_HOLE, UPDATE_DRAWING_HOLE_3D, END_DRAWING_HOLE, BEGIN_DRAGGING_HOLE, BEGIN_DRAGGING_HOLE_3D, UPDATE_DRAGGING_HOLE, END_DRAGGING_HOLE, END_DRAGGING_HOLE_3D, END_CREATING_HOLE, UPDATE_POPUP_OPEN, UPDATE_DRAGGING_HOLE_CHANGED, UPDATE_DRAGGING_HOLE_RULER_CHANGED, END_DRAWING_HOLE_3D } from
|
|
1
|
+
import { SELECT_HOLE, SELECT_TOOL_DRAWING_HOLE, SELECT_TOOL_DRAWING_HOLE_3D, UPDATE_DRAWING_HOLE, UPDATE_DRAWING_HOLE_3D, END_DRAWING_HOLE, BEGIN_DRAGGING_HOLE, BEGIN_DRAGGING_HOLE_3D, UPDATE_DRAGGING_HOLE, END_DRAGGING_HOLE, END_DRAGGING_HOLE_3D, END_CREATING_HOLE, UPDATE_POPUP_OPEN, UPDATE_DRAGGING_HOLE_CHANGED, UPDATE_DRAGGING_HOLE_RULER_CHANGED, END_DRAWING_HOLE_3D } from "../constants";
|
|
2
2
|
export function endCreatingHole() {
|
|
3
3
|
return {
|
|
4
4
|
type: END_CREATING_HOLE
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TOGGLE_LOADING_CABINET, SELECT_ITEM, SELECT_TOOL_DRAWING_ITEM, UPDATE_DRAWING_ITEM, END_DRAWING_ITEM, BEGIN_DRAGGING_ITEM, BEGIN_DRAGGING_ITEM_3D, UPDATE_DRAGGING_ITEM, UPDATE_DRAGGING_ITEM_3DX, UPDATE_DRAGGING_ITEM_3DY, END_DRAGGING_ITEM, END_DRAGGING_ITEM_3D, UPDATE_DRAGGING_ITEM_CHANGED, UPDATE_ROTATING_ITEM_CHANGED, BEGIN_ROTATING_ITEM, BEGIN_ROTATING_ITEM_3D, UPDATE_ROTATING_ITEM, UPDATE_ROTATING, END_ROTATING_ITEM, END_ROTATING_ITEM_3D, REPLACE_SUBMODULE, ANIMATE_OBJECT, REMOVE_REPLACE_SUBMODULE, ITEM_MOVE_UP, SELECT_TOOL_DRAWING_ITEM_3D, SET_DOOR_STYLE, SET_HANDLE_MATERIAL, SET_INITIAL_DOOR_STYLE, SET_DISTANT, SET_DOOR_HANDLE, SET_WALL_COLOR, END_CREATING_CABINET, UPDATE_POPUP_OPEN, SET_MODELLING, SET_COUNTER_TOP, SET_BACKSPLASH, SET_BACKSPLASH_VISIBLE, SET_APPLIANCE_MATERIAL, DUPLICATE_SELECTED, EDIT_WIDTH, END_LOADING, STORE_DIST_ARRAY, SET_MOLDING, UPDATE_MOLDING, VALIDATE_ITEM_POSTIONS, REPLACE_ITEM, SET_MOVE_STATUS, SET_ROTATE_STATUS } from
|
|
1
|
+
import { TOGGLE_LOADING_CABINET, SELECT_ITEM, SELECT_TOOL_DRAWING_ITEM, UPDATE_DRAWING_ITEM, END_DRAWING_ITEM, BEGIN_DRAGGING_ITEM, BEGIN_DRAGGING_ITEM_3D, UPDATE_DRAGGING_ITEM, UPDATE_DRAGGING_ITEM_3DX, UPDATE_DRAGGING_ITEM_3DY, END_DRAGGING_ITEM, END_DRAGGING_ITEM_3D, UPDATE_DRAGGING_ITEM_CHANGED, UPDATE_ROTATING_ITEM_CHANGED, BEGIN_ROTATING_ITEM, BEGIN_ROTATING_ITEM_3D, UPDATE_ROTATING_ITEM, UPDATE_ROTATING, END_ROTATING_ITEM, END_ROTATING_ITEM_3D, REPLACE_SUBMODULE, ANIMATE_OBJECT, REMOVE_REPLACE_SUBMODULE, ITEM_MOVE_UP, SELECT_TOOL_DRAWING_ITEM_3D, SET_DOOR_STYLE, SET_HANDLE_MATERIAL, SET_INITIAL_DOOR_STYLE, SET_DISTANT, SET_DOOR_HANDLE, SET_WALL_COLOR, END_CREATING_CABINET, UPDATE_POPUP_OPEN, SET_MODELLING, SET_COUNTER_TOP, SET_BACKSPLASH, SET_BACKSPLASH_VISIBLE, SET_APPLIANCE_MATERIAL, DUPLICATE_SELECTED, EDIT_WIDTH, END_LOADING, STORE_DIST_ARRAY, SET_MOLDING, UPDATE_MOLDING, VALIDATE_ITEM_POSTIONS, REPLACE_ITEM, SET_MOVE_STATUS, SET_ROTATE_STATUS } from "../constants";
|
|
2
2
|
export function storeDistArray(layerID, itemID, distArray) {
|
|
3
3
|
return {
|
|
4
4
|
type: STORE_DIST_ARRAY,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SELECT_LINE, SELECT_TOOL_DRAWING_LINE, BEGIN_DRAWING_LINE, UPDATE_DRAWING_LINE, END_DRAWING_LINE, BEGIN_DRAGGING_LINE, UPDATE_DRAGGING_LINE, END_DRAGGING_LINE, STOP_DRAWING_LINE, SET_RELATED_LINE } from
|
|
1
|
+
import { SELECT_LINE, SELECT_TOOL_DRAWING_LINE, BEGIN_DRAWING_LINE, UPDATE_DRAWING_LINE, END_DRAWING_LINE, BEGIN_DRAGGING_LINE, UPDATE_DRAGGING_LINE, END_DRAGGING_LINE, STOP_DRAWING_LINE, SET_RELATED_LINE } from "../constants";
|
|
2
2
|
export function selectLine(layerID, lineID) {
|
|
3
3
|
return {
|
|
4
4
|
type: SELECT_LINE,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NEW_PROJECT, LOAD_PROJECT, SAVE_PROJECT, OPEN_CATALOG, SELECT_TOOL_EDIT, UNSELECT_ALL, SET_PROPERTIES, SET_ITEMS_ATTRIBUTES, SET_LINES_ATTRIBUTES, SET_HOLES_ATTRIBUTES, REMOVE, INVERT, UNDO, REDO, UNCREATE, PROJECT_RE_NAME, RECREATE, ROLLBACK, OPEN_PROJECT_CONFIGURATOR, SET_PROJECT_PROPERTIES, SET_PROJECT_ID, INIT_CATALOG, UPDATE_MOUSE_COORDS, UPDATE_ZOOM_SCALE, TOGGLE_SNAP, CHANGE_CATALOG_PAGE, GO_BACK_TO_CATALOG_PAGE, THROW_ERROR, THROW_WARNING, COPY_PROPERTIES, PASTE_PROPERTIES, PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY, ALTERATE_STATE, SET_MODE, ADD_HORIZONTAL_GUIDE, ADD_VERTICAL_GUIDE, ADD_CIRCULAR_GUIDE, REMOVE_HORIZONTAL_GUIDE, REMOVE_VERTICAL_GUIDE, REMOVE_CIRCULAR_GUIDE, REMOVE_DRAWING_SUPPORT, SELECT_ALL, SET_STATE_PROPERTIES, SHIFT2DOFF, SHIFT2DON, SET_IS_HELP, SET_IS_CABINET_DRAWING } from
|
|
1
|
+
import { NEW_PROJECT, LOAD_PROJECT, SAVE_PROJECT, OPEN_CATALOG, SELECT_TOOL_EDIT, UNSELECT_ALL, SET_PROPERTIES, SET_ITEMS_ATTRIBUTES, SET_LINES_ATTRIBUTES, SET_HOLES_ATTRIBUTES, REMOVE, INVERT, UNDO, REDO, UNCREATE, PROJECT_RE_NAME, RECREATE, ROLLBACK, OPEN_PROJECT_CONFIGURATOR, SET_PROJECT_PROPERTIES, SET_PROJECT_ID, INIT_CATALOG, UPDATE_MOUSE_COORDS, UPDATE_ZOOM_SCALE, TOGGLE_SNAP, CHANGE_CATALOG_PAGE, GO_BACK_TO_CATALOG_PAGE, THROW_ERROR, THROW_WARNING, COPY_PROPERTIES, PASTE_PROPERTIES, PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY, ALTERATE_STATE, SET_MODE, ADD_HORIZONTAL_GUIDE, ADD_VERTICAL_GUIDE, ADD_CIRCULAR_GUIDE, REMOVE_HORIZONTAL_GUIDE, REMOVE_VERTICAL_GUIDE, REMOVE_CIRCULAR_GUIDE, REMOVE_DRAWING_SUPPORT, SELECT_ALL, SET_STATE_PROPERTIES, SHIFT2DOFF, SHIFT2DON, SET_IS_HELP, SET_IS_CABINET_DRAWING } from "../constants";
|
|
2
2
|
export function setIsHelp(isHelp) {
|
|
3
3
|
return {
|
|
4
4
|
type: SET_IS_HELP,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SELECT_LAYER, ADD_LAYER, SET_LAYER_PROPERTIES, REMOVE_LAYER, UPDATE_MOVING_STATE } from
|
|
1
|
+
import { SELECT_LAYER, ADD_LAYER, SET_LAYER_PROPERTIES, REMOVE_LAYER, UPDATE_MOVING_STATE } from "../constants";
|
|
2
2
|
export function selectLayer(layerID) {
|
|
3
3
|
return {
|
|
4
4
|
type: SELECT_LAYER,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BEGIN_DRAGGING_VERTEX, UPDATE_DRAGGING_VERTEX, END_DRAGGING_VERTEX } from
|
|
1
|
+
import { BEGIN_DRAGGING_VERTEX, UPDATE_DRAGGING_VERTEX, END_DRAGGING_VERTEX } from "../constants";
|
|
2
2
|
export function beginDraggingVertex(layerID, vertexID, x, y, snapMask) {
|
|
3
3
|
return {
|
|
4
4
|
type: BEGIN_DRAGGING_VERTEX,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UPDATE_CEIL_HEIGHT_UNIT, UPDATE_CEIL_HEIGHT, UPDATE_2D_CAMERA, SELECT_TOOL_PAN, SELECT_TOOL_ZOOM_IN, SELECT_TOOL_ZOOM_OUT, CHANGE_WALL_LENGTH_MEASURE, CHANGE_BASE_CABINET_MEASURE, CHANGE_WALL_CABINET_MEASURE, CHANGE_WINDOW_DOOR_MEASURE } from
|
|
1
|
+
import { UPDATE_CEIL_HEIGHT_UNIT, UPDATE_CEIL_HEIGHT, UPDATE_2D_CAMERA, SELECT_TOOL_PAN, SELECT_TOOL_ZOOM_IN, SELECT_TOOL_ZOOM_OUT, CHANGE_WALL_LENGTH_MEASURE, CHANGE_BASE_CABINET_MEASURE, CHANGE_WALL_CABINET_MEASURE, CHANGE_WINDOW_DOOR_MEASURE } from "../constants";
|
|
2
2
|
export function updateCeilHeight(value) {
|
|
3
3
|
return {
|
|
4
4
|
type: UPDATE_CEIL_HEIGHT,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UPDATE_3D_CEIL_HEIGHT_UNIT, UPDATE_3D_CEIL_HEIGHT, SELECT_TOOL_3D_VIEW, SELECT_TOOL_3D_FIRST_PERSON } from
|
|
1
|
+
import { UPDATE_3D_CEIL_HEIGHT_UNIT, UPDATE_3D_CEIL_HEIGHT, SELECT_TOOL_3D_VIEW, SELECT_TOOL_3D_FIRST_PERSON } from "../constants";
|
|
2
2
|
export function selectTool3DView() {
|
|
3
3
|
return {
|
|
4
4
|
type: SELECT_TOOL_3D_VIEW
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementsFactories } from
|
|
1
|
+
import { ElementsFactories } from "../../..";
|
|
2
2
|
var info = {
|
|
3
3
|
title: 'area',
|
|
4
4
|
tag: ['area'],
|
|
@@ -8,31 +8,31 @@ var info = {
|
|
|
8
8
|
var textures = {
|
|
9
9
|
parquet: {
|
|
10
10
|
name: 'Parquet',
|
|
11
|
-
uri: require(
|
|
11
|
+
uri: require("./textures/parquet.jpg"),
|
|
12
12
|
lengthRepeatScale: 0.004,
|
|
13
13
|
heightRepeatScale: 0.004
|
|
14
14
|
},
|
|
15
15
|
tile1: {
|
|
16
16
|
name: 'Tile1',
|
|
17
|
-
uri: require(
|
|
17
|
+
uri: require("./textures/tile1.jpg"),
|
|
18
18
|
lengthRepeatScale: 0.01,
|
|
19
19
|
heightRepeatScale: 0.01
|
|
20
20
|
},
|
|
21
21
|
ceramic: {
|
|
22
22
|
name: 'Ceramic Tile',
|
|
23
|
-
uri: require(
|
|
23
|
+
uri: require("./textures/ceramic-tile.jpg"),
|
|
24
24
|
lengthRepeatScale: 0.02,
|
|
25
25
|
heightRepeatScale: 0.02
|
|
26
26
|
},
|
|
27
27
|
strand_porcelain: {
|
|
28
28
|
name: 'Strand Porcelain Tile',
|
|
29
|
-
uri: require(
|
|
29
|
+
uri: require("./textures/strand-porcelain.jpg"),
|
|
30
30
|
lengthRepeatScale: 0.02,
|
|
31
31
|
heightRepeatScale: 0.02
|
|
32
32
|
},
|
|
33
33
|
grass: {
|
|
34
34
|
name: 'Grass',
|
|
35
|
-
uri: require(
|
|
35
|
+
uri: require("./textures/grass.jpg"),
|
|
36
36
|
lengthRepeatScale: 0.01,
|
|
37
37
|
heightRepeatScale: 0.01
|
|
38
38
|
}
|
package/es/catalog/catalog.js
CHANGED
|
@@ -10,9 +10,9 @@ 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 { PropertyColor, PropertyEnum, PropertyString, PropertyNumber, PropertyLengthMeasure, PropertyToggle, PropertyCheckbox, PropertyHidden, PropertyReadOnly } from
|
|
14
|
-
import { UNIT_CENTIMETER, UNIT_INCH } from
|
|
15
|
-
import { returnReplaceableDeepSearchType } from
|
|
13
|
+
import { PropertyColor, PropertyEnum, PropertyString, PropertyNumber, PropertyLengthMeasure, PropertyToggle, PropertyCheckbox, PropertyHidden, PropertyReadOnly } from "./properties/export";
|
|
14
|
+
import { UNIT_CENTIMETER, UNIT_INCH } from "../constants";
|
|
15
|
+
import { returnReplaceableDeepSearchType } from "../components/viewer2d/utils";
|
|
16
16
|
var Catalog = /*#__PURE__*/function () {
|
|
17
17
|
function Catalog() {
|
|
18
18
|
var unit = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : UNIT_CENTIMETER;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Three from 'three';
|
|
2
2
|
import { Box3, Mesh, MeshBasicMaterial, MeshPhysicalMaterial, RepeatWrapping, Shape, TextureLoader, Vector2 } from 'three';
|
|
3
|
-
import * as SharedStyle from
|
|
3
|
+
import * as SharedStyle from "../../shared-style";
|
|
4
4
|
import { RGBELoader } from 'three/examples/jsm/loaders/RGBELoader';
|
|
5
5
|
var params = {
|
|
6
6
|
envMap: 'HDR',
|
|
@@ -5,9 +5,9 @@ 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 { createArea, updatedArea } from
|
|
9
|
-
import * as SharedStyle from
|
|
10
|
-
import Translator from
|
|
8
|
+
import { createArea, updatedArea } from "./area-factory-3d";
|
|
9
|
+
import * as SharedStyle from "../../shared-style";
|
|
10
|
+
import Translator from "../../translator/translator";
|
|
11
11
|
var translator = new Translator();
|
|
12
12
|
export default function AreaFactory(name, info, textures) {
|
|
13
13
|
var areaElement = {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as Three from 'three';
|
|
2
2
|
import { BoxGeometry, Group, Mesh, MeshBasicMaterial, MeshStandardMaterial, RepeatWrapping, TextureLoader, Vector2 } from 'three';
|
|
3
|
-
import { verticesDistance } from
|
|
4
|
-
import { isElevationView } from
|
|
5
|
-
import * as SharedStyle from
|
|
6
|
-
import { LINE_THICKNESS, UNIT_CENTIMETER } from
|
|
3
|
+
import { verticesDistance } from "../../utils/geometry";
|
|
4
|
+
import { isElevationView } from "../../utils/helper";
|
|
5
|
+
import * as SharedStyle from "../../shared-style";
|
|
6
|
+
import { LINE_THICKNESS, UNIT_CENTIMETER } from "../../constants";
|
|
7
7
|
import convert from 'convert-units';
|
|
8
|
-
import ThreeBSP from
|
|
8
|
+
import ThreeBSP from "../../utils/threeCSG.es6";
|
|
9
9
|
var params = {
|
|
10
10
|
envMap: 'HDR',
|
|
11
11
|
roughness: 0.1,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { buildWall, updatedWall } from
|
|
3
|
-
import * as SharedStyle from
|
|
4
|
-
import * as Geometry from
|
|
5
|
-
import Translator from
|
|
6
|
-
import { LINE_THICKNESS } from
|
|
2
|
+
import { buildWall, updatedWall } from "./wall-factory-3d";
|
|
3
|
+
import * as SharedStyle from "../../shared-style";
|
|
4
|
+
import * as Geometry from "../../utils/geometry";
|
|
5
|
+
import Translator from "../../translator/translator";
|
|
6
|
+
import { LINE_THICKNESS } from "../../constants";
|
|
7
7
|
// import Line from 'src/class/line';
|
|
8
|
-
import Line from
|
|
8
|
+
import Line from "../../class/line";
|
|
9
9
|
var epsilon = 20;
|
|
10
10
|
var STYLE_TEXT = {
|
|
11
11
|
textAnchor: 'middle'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as Three from 'three';
|
|
3
|
-
import { loadGLTF } from
|
|
4
|
-
import { OBJTYPE_MESH } from
|
|
3
|
+
import { loadGLTF } from "../../utils/load-obj";
|
|
4
|
+
import { OBJTYPE_MESH } from "../../../constants";
|
|
5
5
|
var cached3DDoor = null;
|
|
6
6
|
var STYLE_HOLE_BASE = {
|
|
7
7
|
stroke: 'rgb(73, 73, 73)',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as Three from 'three';
|
|
3
|
-
import { loadGLTF } from
|
|
3
|
+
import { loadGLTF } from "../../utils/load-obj";
|
|
4
4
|
import path from 'path';
|
|
5
|
-
import { OBJTYPE_MESH } from
|
|
5
|
+
import { OBJTYPE_MESH } from "../../../constants";
|
|
6
6
|
var cached3DDoor = null;
|
|
7
7
|
var STYLE_HOLE_BASE = {
|
|
8
8
|
stroke: 'rgb(73, 73, 73)',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as Three from 'three';
|
|
3
|
-
import { loadGLTF } from
|
|
3
|
+
import { loadGLTF } from "../../utils/load-obj";
|
|
4
4
|
import path from 'path';
|
|
5
|
-
import { OBJTYPE_MESH } from
|
|
5
|
+
import { OBJTYPE_MESH } from "../../../constants";
|
|
6
6
|
var cached3DDoor = null;
|
|
7
7
|
var STYLE_HOLE_BASE = {
|
|
8
8
|
stroke: 'rgb(73, 73, 73)',
|
|
@@ -4,8 +4,8 @@ import * as Three from 'three';
|
|
|
4
4
|
// const grey = new Three.MeshLambertMaterial({color: 0x3f3f3f});
|
|
5
5
|
// const white = new Three.MeshLambertMaterial({color: 0xffffff, transparent:true, opacity:0.5});
|
|
6
6
|
// const black = new Three.MeshLambertMaterial({color: 0x000000});
|
|
7
|
-
import { loadGLTF } from
|
|
8
|
-
import { OBJTYPE_MESH } from
|
|
7
|
+
import { loadGLTF } from "../../utils/load-obj";
|
|
8
|
+
import { OBJTYPE_MESH } from "../../../constants";
|
|
9
9
|
var cached3DDoor = null;
|
|
10
10
|
export default {
|
|
11
11
|
name: 'Sliding',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as Three from 'three';
|
|
3
|
-
import { loadGLTF } from
|
|
4
|
-
import { OBJTYPE_MESH } from
|
|
3
|
+
import { loadGLTF } from "../../utils/load-obj";
|
|
4
|
+
import { OBJTYPE_MESH } from "../../../constants";
|
|
5
5
|
var cached3DDoor = null;
|
|
6
6
|
var STYLE_STR0 = {
|
|
7
7
|
fill: 'rgb(185, 185, 185)',
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { default as doorCloset } from
|
|
2
|
-
export { default as doorDouble } from
|
|
3
|
-
export { default as doorExterior } from
|
|
4
|
-
export { default as doorInterior } from
|
|
5
|
-
export { default as doorPanic } from
|
|
6
|
-
export { default as doorPanicDouble } from
|
|
7
|
-
export { default as doorSliding } from
|
|
8
|
-
export { default as doorwayFramed } from
|
|
9
|
-
export { default as doorwayFrameless } from
|
|
10
|
-
export { default as windowClear } from
|
|
11
|
-
export { default as windowCross } from
|
|
12
|
-
export { default as windowDoubleHung } from
|
|
13
|
-
export { default as windowVertical } from
|
|
1
|
+
export { default as doorCloset } from "./door-closet/planner-element.jsx";
|
|
2
|
+
export { default as doorDouble } from "./door-double/planner-element.jsx";
|
|
3
|
+
export { default as doorExterior } from "./door-exterior/planner-element.jsx";
|
|
4
|
+
export { default as doorInterior } from "./door-interior/planner-element.jsx";
|
|
5
|
+
export { default as doorPanic } from "./door-panic/planner-element.jsx";
|
|
6
|
+
export { default as doorPanicDouble } from "./door-panic-double/planner-element.jsx";
|
|
7
|
+
export { default as doorSliding } from "./door-sliding/planner-element.jsx";
|
|
8
|
+
export { default as doorwayFramed } from "./doorway-framed/planner-element.jsx";
|
|
9
|
+
export { default as doorwayFrameless } from "./doorway-frameless/planner-element.jsx";
|
|
10
|
+
export { default as windowClear } from "./window-clear/planner-element.jsx";
|
|
11
|
+
export { default as windowCross } from "./window-cross/planner-element.jsx";
|
|
12
|
+
export { default as windowDoubleHung } from "./window-double-hung/planner-element.jsx";
|
|
13
|
+
export { default as windowVertical } from "./window-vertical/planner-element.jsx";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as Three from 'three';
|
|
3
|
-
import { loadGLTF, scaleObject } from
|
|
4
|
-
import { OBJTYPE_MESH } from
|
|
3
|
+
import { loadGLTF, scaleObject } from "../../utils/load-obj";
|
|
4
|
+
import { OBJTYPE_MESH } from "../../../constants";
|
|
5
5
|
var cached3DWindow = null;
|
|
6
6
|
export default {
|
|
7
7
|
name: 'Window',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as Three from 'three';
|
|
3
|
-
import { loadGLTF, scaleObject } from
|
|
4
|
-
import { OBJTYPE_MESH } from
|
|
3
|
+
import { loadGLTF, scaleObject } from "../../utils/load-obj";
|
|
4
|
+
import { OBJTYPE_MESH } from "../../../constants";
|
|
5
5
|
var cached3DWindow = null;
|
|
6
6
|
export default {
|
|
7
7
|
name: 'Cross Window',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as Three from 'three';
|
|
3
|
-
import { loadGLTF, scaleObject } from
|
|
4
|
-
import { OBJTYPE_MESH } from
|
|
3
|
+
import { loadGLTF, scaleObject } from "../../utils/load-obj";
|
|
4
|
+
import { OBJTYPE_MESH } from "../../../constants";
|
|
5
5
|
var cached3DWindow = null;
|
|
6
6
|
export default {
|
|
7
7
|
name: 'Double Hung Window',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as Three from 'three';
|
|
3
|
-
import { loadGLTF, scaleObject } from
|
|
4
|
-
import { OBJTYPE_MESH } from
|
|
3
|
+
import { loadGLTF, scaleObject } from "../../utils/load-obj";
|
|
4
|
+
import { OBJTYPE_MESH } from "../../../constants";
|
|
5
5
|
var cached3DWindow = null;
|
|
6
6
|
var STYLE_HOLE_BASE = {
|
|
7
7
|
stroke: '#000',
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ElementsFactories } from
|
|
1
|
+
import { ElementsFactories } from "../../..";
|
|
2
2
|
var info = {
|
|
3
3
|
title: 'wall',
|
|
4
4
|
tag: ['wall'],
|
|
5
5
|
description: 'Wall with bricks or painted',
|
|
6
|
-
image: require(
|
|
6
|
+
image: require("./wall.png"),
|
|
7
7
|
visibility: {
|
|
8
8
|
catalog: true,
|
|
9
9
|
layerElementsVisible: true
|
|
@@ -12,11 +12,11 @@ var info = {
|
|
|
12
12
|
var textures = {
|
|
13
13
|
plaster: {
|
|
14
14
|
name: 'Plaster',
|
|
15
|
-
uri: require(
|
|
15
|
+
uri: require("./textures/plaster.jpg"),
|
|
16
16
|
lengthRepeatScale: 0.005,
|
|
17
17
|
heightRepeatScale: 0.005,
|
|
18
18
|
normal: {
|
|
19
|
-
uri: require(
|
|
19
|
+
uri: require("./textures/plaster-normal.jpg"),
|
|
20
20
|
lengthRepeatScale: 0.005,
|
|
21
21
|
heightRepeatScale: 0.005,
|
|
22
22
|
normalScaleX: 0.4,
|
|
@@ -26,11 +26,11 @@ var textures = {
|
|
|
26
26
|
},
|
|
27
27
|
bricks: {
|
|
28
28
|
name: 'Bricks',
|
|
29
|
-
uri: require(
|
|
29
|
+
uri: require("./textures/bricks.jpg"),
|
|
30
30
|
lengthRepeatScale: 0.009,
|
|
31
31
|
heightRepeatScale: 0.009,
|
|
32
32
|
normal: {
|
|
33
|
-
uri: require(
|
|
33
|
+
uri: require("./textures/bricks-normal.jpg"),
|
|
34
34
|
lengthRepeatScale: 0.009,
|
|
35
35
|
heightRepeatScale: 0.009,
|
|
36
36
|
normalScaleX: 0.4,
|
|
@@ -40,11 +40,11 @@ var textures = {
|
|
|
40
40
|
},
|
|
41
41
|
painted: {
|
|
42
42
|
name: 'Painted',
|
|
43
|
-
uri: require(
|
|
43
|
+
uri: require("./textures/painted.jpg"),
|
|
44
44
|
lengthRepeatScale: 0.005,
|
|
45
45
|
heightRepeatScale: 0.005,
|
|
46
46
|
normal: {
|
|
47
|
-
uri: require(
|
|
47
|
+
uri: require("./textures/painted-normal.jpg"),
|
|
48
48
|
lengthRepeatScale: 0.005,
|
|
49
49
|
heightRepeatScale: 0.005,
|
|
50
50
|
normalScaleX: 0.4,
|
|
@@ -54,11 +54,11 @@ var textures = {
|
|
|
54
54
|
},
|
|
55
55
|
morden: {
|
|
56
56
|
name: 'Morden',
|
|
57
|
-
uri: require(
|
|
57
|
+
uri: require("./textures/morden.jpg"),
|
|
58
58
|
lengthRepeatScale: 0.005,
|
|
59
59
|
heightRepeatScale: 0.005,
|
|
60
60
|
normal: {
|
|
61
|
-
uri: require(
|
|
61
|
+
uri: require("./textures/morden-normal.jpg"),
|
|
62
62
|
lengthRepeatScale: 0.005,
|
|
63
63
|
heightRepeatScale: 0.005,
|
|
64
64
|
normalScaleX: 0.4,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import PropertyColor from
|
|
2
|
-
import PropertyEnum from
|
|
3
|
-
import PropertyString from
|
|
4
|
-
import PropertyNumber from
|
|
5
|
-
import PropertyLengthMeasure from
|
|
6
|
-
import PropertyToggle from
|
|
7
|
-
import PropertyCheckbox from
|
|
8
|
-
import PropertyHidden from
|
|
9
|
-
import PropertyReadOnly from
|
|
1
|
+
import PropertyColor from "./property-color";
|
|
2
|
+
import PropertyEnum from "./property-enum";
|
|
3
|
+
import PropertyString from "./property-string";
|
|
4
|
+
import PropertyNumber from "./property-number";
|
|
5
|
+
import PropertyLengthMeasure from "./property-length-measure";
|
|
6
|
+
import PropertyToggle from "./property-toggle";
|
|
7
|
+
import PropertyCheckbox from "./property-checkbox";
|
|
8
|
+
import PropertyHidden from "./property-hidden";
|
|
9
|
+
import PropertyReadOnly from "./property-read-only";
|
|
10
10
|
export { PropertyColor, PropertyEnum, PropertyString, PropertyNumber, PropertyLengthMeasure, PropertyToggle, PropertyCheckbox, PropertyHidden, PropertyReadOnly };
|
|
11
11
|
export default {
|
|
12
12
|
PropertyColor: PropertyColor,
|
|
@@ -8,10 +8,10 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
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
10
|
import PropTypes from 'prop-types';
|
|
11
|
-
import { FormLabel } from
|
|
12
|
-
import PropertyStyle from
|
|
11
|
+
import { FormLabel } from "../../components/style/export";
|
|
12
|
+
import PropertyStyle from "./shared-property-style";
|
|
13
13
|
import styled from 'styled-components';
|
|
14
|
-
import { DEFAULT_FONT_FAMILY, SECONDARY_PURPLE_COLOR, TEXT_COLOR_NEUTRAL_0 } from
|
|
14
|
+
import { DEFAULT_FONT_FAMILY, SECONDARY_PURPLE_COLOR, TEXT_COLOR_NEUTRAL_0 } from "../../constants";
|
|
15
15
|
var FlipWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n margin: 15px 0;\n justify-content: space-between;\n"])));
|
|
16
16
|
var FlipTitle = styled.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-right: auto;\n color: ", ";\n font-family: ", ";\n font-size: 16px;\n font-weight: 600;\n line-height: 18px;\n text-align: left;\n"])), SECONDARY_PURPLE_COLOR, DEFAULT_FONT_FAMILY);
|
|
17
17
|
var FlipDescription = styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-right: auto;\n color: ", ";\n font-family: ", ";\n font-size: 13px;\n font-weight: 400;\n line-height: 18px;\n text-align: left;\n"])), TEXT_COLOR_NEUTRAL_0, DEFAULT_FONT_FAMILY);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { FormLabel, FormColorInput } from
|
|
4
|
-
import PropertyStyle from
|
|
3
|
+
import { FormLabel, FormColorInput } from "../../components/style/export";
|
|
4
|
+
import PropertyStyle from "./shared-property-style";
|
|
5
5
|
export default function PropertyColor(_ref) {
|
|
6
6
|
var value = _ref.value,
|
|
7
7
|
onUpdate = _ref.onUpdate,
|
|
@@ -9,10 +9,10 @@ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.fre
|
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import PropTypes from '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) {
|