kitchen-simulator 5.0.0-test.3 → 5.0.0-test.4
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 +1 -1
- package/es/KitchenConfigurator.js.map +1 -1
- package/package.json +8 -12
- package/src/KitchenConfigurator.jsx +1 -1
- package/lib/@history.js +0 -11
- package/lib/@history.js.map +0 -1
- package/lib/AppContext.js +0 -11
- package/lib/AppContext.js.map +0 -1
- package/lib/KitchenConfigurator.js +0 -1353
- package/lib/KitchenConfigurator.js.map +0 -1
- package/lib/KitchenConfiguratorApp.js +0 -539
- package/lib/KitchenConfiguratorApp.js.map +0 -1
- package/lib/actions/area-actions.js +0 -22
- package/lib/actions/area-actions.js.map +0 -1
- package/lib/actions/export.js +0 -44
- package/lib/actions/export.js.map +0 -1
- package/lib/actions/groups-actions.js +0 -108
- package/lib/actions/groups-actions.js.map +0 -1
- package/lib/actions/holes-actions.js +0 -141
- package/lib/actions/holes-actions.js.map +0 -1
- package/lib/actions/items-actions.js +0 -365
- package/lib/actions/items-actions.js.map +0 -1
- package/lib/actions/lines-actions.js +0 -98
- package/lib/actions/lines-actions.js.map +0 -1
- package/lib/actions/project-actions.js +0 -333
- package/lib/actions/project-actions.js.map +0 -1
- package/lib/actions/scene-actions.js +0 -44
- package/lib/actions/scene-actions.js.map +0 -1
- package/lib/actions/user-actions.js +0 -69
- package/lib/actions/user-actions.js.map +0 -1
- package/lib/actions/vertices-actions.js +0 -36
- package/lib/actions/vertices-actions.js.map +0 -1
- package/lib/actions/viewer2d-actions.js +0 -74
- package/lib/actions/viewer2d-actions.js.map +0 -1
- package/lib/actions/viewer3d-actions.js +0 -33
- package/lib/actions/viewer3d-actions.js.map +0 -1
- package/lib/catalog/areas/area/planner-element.js +0 -47
- package/lib/catalog/areas/area/planner-element.js.map +0 -1
- package/lib/catalog/catalog.js +0 -283
- package/lib/catalog/catalog.js.map +0 -1
- package/lib/catalog/factories/area-factory-3d.js +0 -192
- package/lib/catalog/factories/area-factory-3d.js.map +0 -1
- package/lib/catalog/factories/area-factory.js +0 -90
- package/lib/catalog/factories/area-factory.js.map +0 -1
- package/lib/catalog/factories/export.js +0 -26
- package/lib/catalog/factories/export.js.map +0 -1
- package/lib/catalog/factories/wall-factory-3d.js +0 -213
- package/lib/catalog/factories/wall-factory-3d.js.map +0 -1
- package/lib/catalog/factories/wall-factory.js +0 -279
- package/lib/catalog/factories/wall-factory.js.map +0 -1
- package/lib/catalog/holes/door-closet/planner-element.js +0 -232
- package/lib/catalog/holes/door-closet/planner-element.js.map +0 -1
- package/lib/catalog/holes/door-double/planner-element.js +0 -325
- package/lib/catalog/holes/door-double/planner-element.js.map +0 -1
- package/lib/catalog/holes/door-exterior/planner-element.js +0 -225
- package/lib/catalog/holes/door-exterior/planner-element.js.map +0 -1
- package/lib/catalog/holes/door-interior/planner-element.js +0 -237
- package/lib/catalog/holes/door-interior/planner-element.js.map +0 -1
- package/lib/catalog/holes/door-panic/planner-element.js +0 -513
- package/lib/catalog/holes/door-panic/planner-element.js.map +0 -1
- package/lib/catalog/holes/door-panic-double/planner-element.js +0 -473
- package/lib/catalog/holes/door-panic-double/planner-element.js.map +0 -1
- package/lib/catalog/holes/door-sliding/planner-element.js +0 -235
- package/lib/catalog/holes/door-sliding/planner-element.js.map +0 -1
- package/lib/catalog/holes/doorway-framed/planner-element.js +0 -155
- package/lib/catalog/holes/doorway-framed/planner-element.js.map +0 -1
- package/lib/catalog/holes/doorway-frameless/planner-element.js +0 -114
- package/lib/catalog/holes/doorway-frameless/planner-element.js.map +0 -1
- package/lib/catalog/holes/window-clear/planner-element.js +0 -176
- package/lib/catalog/holes/window-clear/planner-element.js.map +0 -1
- package/lib/catalog/holes/window-cross/planner-element.js +0 -175
- package/lib/catalog/holes/window-cross/planner-element.js.map +0 -1
- package/lib/catalog/holes/window-double-hung/planner-element.js +0 -313
- package/lib/catalog/holes/window-double-hung/planner-element.js.map +0 -1
- package/lib/catalog/holes/window-vertical/planner-element.js +0 -286
- package/lib/catalog/holes/window-vertical/planner-element.js.map +0 -1
- package/lib/catalog/lines/wall/planner-element.js +0 -77
- package/lib/catalog/lines/wall/planner-element.js.map +0 -1
- package/lib/catalog/molding/molding-dcm/planner-element.js +0 -39
- package/lib/catalog/molding/molding-dcm/planner-element.js.map +0 -1
- package/lib/catalog/molding/molding-fbm/planner-element.js +0 -39
- package/lib/catalog/molding/molding-fbm/planner-element.js.map +0 -1
- package/lib/catalog/molding/molding-lrm/planner-element.js +0 -39
- package/lib/catalog/molding/molding-lrm/planner-element.js.map +0 -1
- package/lib/catalog/properties/export.js +0 -82
- package/lib/catalog/properties/export.js.map +0 -1
- package/lib/catalog/properties/property-checkbox.js +0 -79
- package/lib/catalog/properties/property-checkbox.js.map +0 -1
- package/lib/catalog/properties/property-color.js +0 -47
- package/lib/catalog/properties/property-color.js.map +0 -1
- package/lib/catalog/properties/property-enum.js +0 -63
- package/lib/catalog/properties/property-enum.js.map +0 -1
- package/lib/catalog/properties/property-hidden.js +0 -27
- package/lib/catalog/properties/property-hidden.js.map +0 -1
- package/lib/catalog/properties/property-lenght-measure.js +0 -109
- package/lib/catalog/properties/property-lenght-measure.js.map +0 -1
- package/lib/catalog/properties/property-length-measure.js +0 -93
- package/lib/catalog/properties/property-length-measure.js.map +0 -1
- package/lib/catalog/properties/property-length-measure_hole.js +0 -109
- package/lib/catalog/properties/property-length-measure_hole.js.map +0 -1
- package/lib/catalog/properties/property-number.js +0 -56
- package/lib/catalog/properties/property-number.js.map +0 -1
- package/lib/catalog/properties/property-read-only.js +0 -34
- package/lib/catalog/properties/property-read-only.js.map +0 -1
- package/lib/catalog/properties/property-string.js +0 -56
- package/lib/catalog/properties/property-string.js.map +0 -1
- package/lib/catalog/properties/property-toggle.js +0 -47
- package/lib/catalog/properties/property-toggle.js.map +0 -1
- package/lib/catalog/properties/shared-property-style.js +0 -21
- package/lib/catalog/properties/shared-property-style.js.map +0 -1
- package/lib/catalog/utils/FuseUtils.js +0 -89
- package/lib/catalog/utils/FuseUtils.js.map +0 -1
- package/lib/catalog/utils/exporter.js +0 -156
- package/lib/catalog/utils/exporter.js.map +0 -1
- package/lib/catalog/utils/geom-utils.js +0 -206
- package/lib/catalog/utils/geom-utils.js.map +0 -1
- package/lib/catalog/utils/item-loader.js +0 -1534
- package/lib/catalog/utils/item-loader.js.map +0 -1
- package/lib/catalog/utils/load-obj.js +0 -100
- package/lib/catalog/utils/load-obj.js.map +0 -1
- package/lib/catalog/utils/mtl-loader.js +0 -360
- package/lib/catalog/utils/mtl-loader.js.map +0 -1
- package/lib/catalog/utils/obj-loader.js +0 -479
- package/lib/catalog/utils/obj-loader.js.map +0 -1
- package/lib/class/FuseUtils.js +0 -89
- package/lib/class/FuseUtils.js.map +0 -1
- package/lib/class/area.js +0 -151
- package/lib/class/area.js.map +0 -1
- package/lib/class/export.js +0 -97
- package/lib/class/export.js.map +0 -1
- package/lib/class/group.js +0 -446
- package/lib/class/group.js.map +0 -1
- package/lib/class/guide.js +0 -68
- package/lib/class/guide.js.map +0 -1
- package/lib/class/hole.js +0 -935
- package/lib/class/hole.js.map +0 -1
- package/lib/class/item.js +0 -1894
- package/lib/class/item.js.map +0 -1
- package/lib/class/layer.js +0 -673
- package/lib/class/layer.js.map +0 -1
- package/lib/class/line.js +0 -1296
- package/lib/class/line.js.map +0 -1
- package/lib/class/project.js +0 -829
- package/lib/class/project.js.map +0 -1
- package/lib/class/vertex.js +0 -272
- package/lib/class/vertex.js.map +0 -1
- package/lib/components/atoms/Snackbar/index.js +0 -57
- package/lib/components/atoms/Snackbar/index.js.map +0 -1
- package/lib/components/atoms/radio-button/index.js +0 -33
- package/lib/components/atoms/radio-button/index.js.map +0 -1
- package/lib/components/atoms/radio-button/styles.js +0 -12
- package/lib/components/atoms/radio-button/styles.js.map +0 -1
- package/lib/components/button/MainButton.js +0 -98
- package/lib/components/button/MainButton.js.map +0 -1
- package/lib/components/button/ToggleMeasureButton.js +0 -63
- package/lib/components/button/ToggleMeasureButton.js.map +0 -1
- package/lib/components/catalog-view/catalog-breadcrumb.js +0 -61
- package/lib/components/catalog-view/catalog-breadcrumb.js.map +0 -1
- package/lib/components/catalog-view/catalog-item.js +0 -233
- package/lib/components/catalog-view/catalog-item.js.map +0 -1
- package/lib/components/catalog-view/catalog-list.js +0 -189
- package/lib/components/catalog-view/catalog-list.js.map +0 -1
- package/lib/components/catalog-view/catalog-page-item.js +0 -137
- package/lib/components/catalog-view/catalog-page-item.js.map +0 -1
- package/lib/components/catalog-view/catalog-turn-back-page-item.js +0 -113
- package/lib/components/catalog-view/catalog-turn-back-page-item.js.map +0 -1
- package/lib/components/configurator/custom-configurator.js +0 -101
- package/lib/components/configurator/custom-configurator.js.map +0 -1
- package/lib/components/configurator/project-configurator.js +0 -138
- package/lib/components/configurator/project-configurator.js.map +0 -1
- package/lib/components/content.js +0 -132
- package/lib/components/content.js.map +0 -1
- package/lib/components/export.js +0 -90
- package/lib/components/export.js.map +0 -1
- package/lib/components/firstsetting/button/styles.js +0 -34
- package/lib/components/firstsetting/button/styles.js.map +0 -1
- package/lib/components/firstsetting/export.js +0 -16
- package/lib/components/firstsetting/export.js.map +0 -1
- package/lib/components/firstsetting/firstsetting-content-button.js +0 -224
- package/lib/components/firstsetting/firstsetting-content-button.js.map +0 -1
- package/lib/components/firstsetting/firstsetting-toggle-button.js +0 -133
- package/lib/components/firstsetting/firstsetting-toggle-button.js.map +0 -1
- package/lib/components/firstsetting/firstsetting.js +0 -633
- package/lib/components/firstsetting/firstsetting.js.map +0 -1
- package/lib/components/footerbar/button/ControlButton.js +0 -79
- package/lib/components/footerbar/button/ControlButton.js.map +0 -1
- package/lib/components/footerbar/button/DirectionButton.js +0 -76
- package/lib/components/footerbar/button/DirectionButton.js.map +0 -1
- package/lib/components/footerbar/button/DirectionPanSpinButton.js +0 -57
- package/lib/components/footerbar/button/DirectionPanSpinButton.js.map +0 -1
- package/lib/components/footerbar/button/ToggleButton.js +0 -83
- package/lib/components/footerbar/button/ToggleButton.js.map +0 -1
- package/lib/components/footerbar/button/ToggleConvertButton.js +0 -80
- package/lib/components/footerbar/button/ToggleConvertButton.js.map +0 -1
- package/lib/components/footerbar/button/ToggleMeasureButton.js +0 -59
- package/lib/components/footerbar/button/ToggleMeasureButton.js.map +0 -1
- package/lib/components/footerbar/button/styles.js +0 -29
- package/lib/components/footerbar/button/styles.js.map +0 -1
- package/lib/components/footerbar/export.js +0 -16
- package/lib/components/footerbar/export.js.map +0 -1
- package/lib/components/footerbar/footer-content-button.js +0 -224
- package/lib/components/footerbar/footer-content-button.js.map +0 -1
- package/lib/components/footerbar/footer-toggle-button.js +0 -133
- package/lib/components/footerbar/footer-toggle-button.js.map +0 -1
- package/lib/components/footerbar/footerbar.js +0 -808
- package/lib/components/footerbar/footerbar.js.map +0 -1
- package/lib/components/footerbar/styles.js +0 -41
- package/lib/components/footerbar/styles.js.map +0 -1
- package/lib/components/header/button/MenuButton.js +0 -77
- package/lib/components/header/button/MenuButton.js.map +0 -1
- package/lib/components/header/button/SaveButton.js +0 -57
- package/lib/components/header/button/SaveButton.js.map +0 -1
- package/lib/components/header/button/styles.js +0 -68
- package/lib/components/header/button/styles.js.map +0 -1
- package/lib/components/header/export.js +0 -12
- package/lib/components/header/export.js.map +0 -1
- package/lib/components/header/header.js +0 -556
- package/lib/components/header/header.js.map +0 -1
- package/lib/components/header/styles.js +0 -47
- package/lib/components/header/styles.js.map +0 -1
- package/lib/components/login/Login.js +0 -94
- package/lib/components/login/Login.js.map +0 -1
- package/lib/components/login/LoginForm/index.js +0 -140
- package/lib/components/login/LoginForm/index.js.map +0 -1
- package/lib/components/login/Register.js +0 -104
- package/lib/components/login/Register.js.map +0 -1
- package/lib/components/login/RegisterForm/index.js +0 -237
- package/lib/components/login/RegisterForm/index.js.map +0 -1
- package/lib/components/login/jwtService.js +0 -239
- package/lib/components/login/jwtService.js.map +0 -1
- package/lib/components/molecules/slider/index.js +0 -22
- package/lib/components/molecules/slider/index.js.map +0 -1
- package/lib/components/molecules/slider/styles.js +0 -2
- package/lib/components/molecules/slider/styles.js.map +0 -1
- package/lib/components/myprojects/export.js +0 -12
- package/lib/components/myprojects/export.js.map +0 -1
- package/lib/components/myprojects/index.js +0 -453
- package/lib/components/myprojects/index.js.map +0 -1
- package/lib/components/myprojects/styles.js +0 -31
- package/lib/components/myprojects/styles.js.map +0 -1
- package/lib/components/sidebar/custom-accordion.js +0 -45
- package/lib/components/sidebar/custom-accordion.js.map +0 -1
- package/lib/components/sidebar/export.js +0 -50
- package/lib/components/sidebar/export.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/attributes-editor/attributes-editor.js +0 -74
- package/lib/components/sidebar/panel-element-editor/attributes-editor/attributes-editor.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/attributes-editor/confirm-popup.js +0 -124
- package/lib/components/sidebar/panel-element-editor/attributes-editor/confirm-popup.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/attributes-editor/hole-attributes-editor.js +0 -135
- package/lib/components/sidebar/panel-element-editor/attributes-editor/hole-attributes-editor.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/attributes-editor/item-attributes-editor.js +0 -260
- package/lib/components/sidebar/panel-element-editor/attributes-editor/item-attributes-editor.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/attributes-editor/line-attributes-editor.js +0 -84
- package/lib/components/sidebar/panel-element-editor/attributes-editor/line-attributes-editor.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/element-editor.js +0 -884
- package/lib/components/sidebar/panel-element-editor/element-editor.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/multi-elements-editor.js +0 -2
- package/lib/components/sidebar/panel-element-editor/multi-elements-editor.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/panel-element-editor.js +0 -56
- package/lib/components/sidebar/panel-element-editor/panel-element-editor.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/panel-multi-elements-editor.js +0 -125
- package/lib/components/sidebar/panel-element-editor/panel-multi-elements-editor.js.map +0 -1
- package/lib/components/sidebar/panel-group-editor.js +0 -218
- package/lib/components/sidebar/panel-group-editor.js.map +0 -1
- package/lib/components/sidebar/panel-groups.js +0 -274
- package/lib/components/sidebar/panel-groups.js.map +0 -1
- package/lib/components/sidebar/panel-guides.js +0 -192
- package/lib/components/sidebar/panel-guides.js.map +0 -1
- package/lib/components/sidebar/panel-layer-elements.js +0 -258
- package/lib/components/sidebar/panel-layer-elements.js.map +0 -1
- package/lib/components/sidebar/panel-layers.js +0 -347
- package/lib/components/sidebar/panel-layers.js.map +0 -1
- package/lib/components/sidebar/panel.js +0 -110
- package/lib/components/sidebar/panel.js.map +0 -1
- package/lib/components/sidebar/sidebar.js +0 -117
- package/lib/components/sidebar/sidebar.js.map +0 -1
- package/lib/components/sidebar/toolbar-panel.js +0 -171
- package/lib/components/sidebar/toolbar-panel.js.map +0 -1
- package/lib/components/sign/export.js +0 -18
- package/lib/components/sign/export.js.map +0 -1
- package/lib/components/sign/main/index.js +0 -567
- package/lib/components/sign/main/index.js.map +0 -1
- package/lib/components/sign/main/styles.js +0 -27
- package/lib/components/sign/main/styles.js.map +0 -1
- package/lib/components/style/button.js +0 -121
- package/lib/components/style/button.js.map +0 -1
- package/lib/components/style/cancel-button.js +0 -30
- package/lib/components/style/cancel-button.js.map +0 -1
- package/lib/components/style/content-container.js +0 -41
- package/lib/components/style/content-container.js.map +0 -1
- package/lib/components/style/content-title.js +0 -38
- package/lib/components/style/content-title.js.map +0 -1
- package/lib/components/style/delete-button.js +0 -35
- package/lib/components/style/delete-button.js.map +0 -1
- package/lib/components/style/export.js +0 -122
- package/lib/components/style/export.js.map +0 -1
- package/lib/components/style/form-block.js +0 -32
- package/lib/components/style/form-block.js.map +0 -1
- package/lib/components/style/form-color-input.js +0 -35
- package/lib/components/style/form-color-input.js.map +0 -1
- package/lib/components/style/form-label.js +0 -34
- package/lib/components/style/form-label.js.map +0 -1
- package/lib/components/style/form-number-input.js +0 -197
- package/lib/components/style/form-number-input.js.map +0 -1
- package/lib/components/style/form-number-input_2.js +0 -214
- package/lib/components/style/form-number-input_2.js.map +0 -1
- package/lib/components/style/form-select.js +0 -30
- package/lib/components/style/form-select.js.map +0 -1
- package/lib/components/style/form-slider.js +0 -53
- package/lib/components/style/form-slider.js.map +0 -1
- package/lib/components/style/form-submit-button.js +0 -36
- package/lib/components/style/form-submit-button.js.map +0 -1
- package/lib/components/style/form-text-input.js +0 -84
- package/lib/components/style/form-text-input.js.map +0 -1
- package/lib/components/toolbar/button/ControlButton.js +0 -76
- package/lib/components/toolbar/button/ControlButton.js.map +0 -1
- package/lib/components/toolbar/button/DirectionButton.js +0 -57
- package/lib/components/toolbar/button/DirectionButton.js.map +0 -1
- package/lib/components/toolbar/button/RightButton.js +0 -140
- package/lib/components/toolbar/button/RightButton.js.map +0 -1
- package/lib/components/toolbar/button/ToggleButton.js +0 -66
- package/lib/components/toolbar/button/ToggleButton.js.map +0 -1
- package/lib/components/toolbar/button/index.js +0 -94
- package/lib/components/toolbar/button/index.js.map +0 -1
- package/lib/components/toolbar/button/styles.js +0 -21
- package/lib/components/toolbar/button/styles.js.map +0 -1
- package/lib/components/toolbar/components/DoorStyleMenu.js +0 -112
- package/lib/components/toolbar/components/DoorStyleMenu.js.map +0 -1
- package/lib/components/toolbar/components/Pricing.js +0 -110
- package/lib/components/toolbar/components/Pricing.js.map +0 -1
- package/lib/components/toolbar/components/ReviewForQuote.js +0 -485
- package/lib/components/toolbar/components/ReviewForQuote.js.map +0 -1
- package/lib/components/toolbar/export.js +0 -50
- package/lib/components/toolbar/export.js.map +0 -1
- package/lib/components/toolbar/main/Alert.js +0 -132
- package/lib/components/toolbar/main/Alert.js.map +0 -1
- package/lib/components/toolbar/main/TakePictureModal.js +0 -109
- package/lib/components/toolbar/main/TakePictureModal.js.map +0 -1
- package/lib/components/toolbar/main/confirm-popup.js +0 -95
- package/lib/components/toolbar/main/confirm-popup.js.map +0 -1
- package/lib/components/toolbar/main/index.js +0 -4619
- package/lib/components/toolbar/main/index.js.map +0 -1
- package/lib/components/toolbar/main/myComponents.js +0 -125
- package/lib/components/toolbar/main/myComponents.js.map +0 -1
- package/lib/components/toolbar/main/styles.js +0 -73
- package/lib/components/toolbar/main/styles.js.map +0 -1
- package/lib/components/toolbar/plugin-item.js +0 -156
- package/lib/components/toolbar/plugin-item.js.map +0 -1
- package/lib/components/toolbar/popup/appliance/appliance-category/index.js +0 -86
- package/lib/components/toolbar/popup/appliance/appliance-category/index.js.map +0 -1
- package/lib/components/toolbar/popup/appliance/choose-appliance/index.js +0 -85
- package/lib/components/toolbar/popup/appliance/choose-appliance/index.js.map +0 -1
- package/lib/components/toolbar/popup/appliance/index.js +0 -89
- package/lib/components/toolbar/popup/appliance/index.js.map +0 -1
- package/lib/components/toolbar/popup/autosaveprompt/index.js +0 -99
- package/lib/components/toolbar/popup/autosaveprompt/index.js.map +0 -1
- package/lib/components/toolbar/popup/autosaveprompt/styles.js +0 -16
- package/lib/components/toolbar/popup/autosaveprompt/styles.js.map +0 -1
- package/lib/components/toolbar/popup/cabinet/cabinet-category/index.js +0 -86
- package/lib/components/toolbar/popup/cabinet/cabinet-category/index.js.map +0 -1
- package/lib/components/toolbar/popup/cabinet/choose-product/index.js +0 -107
- package/lib/components/toolbar/popup/cabinet/choose-product/index.js.map +0 -1
- package/lib/components/toolbar/popup/cabinet/index.js +0 -91
- package/lib/components/toolbar/popup/cabinet/index.js.map +0 -1
- package/lib/components/toolbar/popup/doorStyle/choose-style/index.js +0 -59
- package/lib/components/toolbar/popup/doorStyle/choose-style/index.js.map +0 -1
- package/lib/components/toolbar/popup/doorStyle/index.js +0 -68
- package/lib/components/toolbar/popup/doorStyle/index.js.map +0 -1
- package/lib/components/toolbar/popup/doorStyle/style-category/index.js +0 -152
- package/lib/components/toolbar/popup/doorStyle/style-category/index.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/downloadSummaryContext.js +0 -9
- package/lib/components/toolbar/popup/downloadsummary/downloadSummaryContext.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/downloadSummaryTemp.js +0 -128
- package/lib/components/toolbar/popup/downloadsummary/downloadSummaryTemp.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/index.js +0 -572
- package/lib/components/toolbar/popup/downloadsummary/index.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/show2D/show2DView.js +0 -60
- package/lib/components/toolbar/popup/downloadsummary/show2D/show2DView.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/show2D/viewer2DDownLoad.js +0 -200
- package/lib/components/toolbar/popup/downloadsummary/show2D/viewer2DDownLoad.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/show3D/show3DView.js +0 -254
- package/lib/components/toolbar/popup/downloadsummary/show3D/show3DView.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/show3D/viewer3DDownLoad.js +0 -1762
- package/lib/components/toolbar/popup/downloadsummary/show3D/viewer3DDownLoad.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/showCabinetInfo.js +0 -96
- package/lib/components/toolbar/popup/downloadsummary/showCabinetInfo.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/showElevation/showElevationView.js +0 -125
- package/lib/components/toolbar/popup/downloadsummary/showElevation/showElevationView.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/showElevation/viewer3DElevationDownload.js +0 -1713
- package/lib/components/toolbar/popup/downloadsummary/showElevation/viewer3DElevationDownload.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/showElevation/viewerElevationDownload.js +0 -184
- package/lib/components/toolbar/popup/downloadsummary/showElevation/viewerElevationDownload.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/showWarranty.js +0 -115
- package/lib/components/toolbar/popup/downloadsummary/showWarranty.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/styles.js +0 -47
- package/lib/components/toolbar/popup/downloadsummary/styles.js.map +0 -1
- package/lib/components/toolbar/popup/finishingtouch/category/index.js +0 -44
- package/lib/components/toolbar/popup/finishingtouch/category/index.js.map +0 -1
- package/lib/components/toolbar/popup/finishingtouch/index.js +0 -54
- package/lib/components/toolbar/popup/finishingtouch/index.js.map +0 -1
- package/lib/components/toolbar/popup/finishingtouch/material-edit.js +0 -163
- package/lib/components/toolbar/popup/finishingtouch/material-edit.js.map +0 -1
- package/lib/components/toolbar/popup/finishingtouch/product/index.js +0 -65
- package/lib/components/toolbar/popup/finishingtouch/product/index.js.map +0 -1
- package/lib/components/toolbar/popup/floorplan/choose-floor/confirm-popup.js +0 -124
- package/lib/components/toolbar/popup/floorplan/choose-floor/confirm-popup.js.map +0 -1
- package/lib/components/toolbar/popup/floorplan/choose-floor/index.js +0 -255
- package/lib/components/toolbar/popup/floorplan/choose-floor/index.js.map +0 -1
- package/lib/components/toolbar/popup/floorplan/choose-floor/styles.js +0 -20
- package/lib/components/toolbar/popup/floorplan/choose-floor/styles.js.map +0 -1
- package/lib/components/toolbar/popup/floorplan/floor-category/index.js +0 -99
- package/lib/components/toolbar/popup/floorplan/floor-category/index.js.map +0 -1
- package/lib/components/toolbar/popup/floorplan/index.js +0 -56
- package/lib/components/toolbar/popup/floorplan/index.js.map +0 -1
- package/lib/components/toolbar/popup/index.js +0 -195
- package/lib/components/toolbar/popup/index.js.map +0 -1
- package/lib/components/toolbar/popup/newproject/index.js +0 -75
- package/lib/components/toolbar/popup/newproject/index.js.map +0 -1
- package/lib/components/toolbar/popup/newproject/styles.js +0 -16
- package/lib/components/toolbar/popup/newproject/styles.js.map +0 -1
- package/lib/components/toolbar/popup/product/appliance.js +0 -73
- package/lib/components/toolbar/popup/product/appliance.js.map +0 -1
- package/lib/components/toolbar/popup/product/cabinetproduct.js +0 -33
- package/lib/components/toolbar/popup/product/cabinetproduct.js.map +0 -1
- package/lib/components/toolbar/popup/product/doorstyle.js +0 -59
- package/lib/components/toolbar/popup/product/doorstyle.js.map +0 -1
- package/lib/components/toolbar/popup/product/doorstyleproduct.js +0 -59
- package/lib/components/toolbar/popup/product/doorstyleproduct.js.map +0 -1
- package/lib/components/toolbar/popup/product/floor.js +0 -59
- package/lib/components/toolbar/popup/product/floor.js.map +0 -1
- package/lib/components/toolbar/popup/product/floorproduct.js +0 -68
- package/lib/components/toolbar/popup/product/floorproduct.js.map +0 -1
- package/lib/components/toolbar/popup/product/index.js +0 -59
- package/lib/components/toolbar/popup/product/index.js.map +0 -1
- package/lib/components/toolbar/popup/product/primary.js +0 -71
- package/lib/components/toolbar/popup/product/primary.js.map +0 -1
- package/lib/components/toolbar/popup/product/productline.js +0 -128
- package/lib/components/toolbar/popup/product/productline.js.map +0 -1
- package/lib/components/toolbar/popup/product/reviewItem.js +0 -346
- package/lib/components/toolbar/popup/product/reviewItem.js.map +0 -1
- package/lib/components/toolbar/popup/product/reviewMolding.js +0 -291
- package/lib/components/toolbar/popup/product/reviewMolding.js.map +0 -1
- package/lib/components/toolbar/popup/product/styles.js +0 -79
- package/lib/components/toolbar/popup/product/styles.js.map +0 -1
- package/lib/components/toolbar/popup/savedesign/FullPictureForm.js +0 -169
- package/lib/components/toolbar/popup/savedesign/FullPictureForm.js.map +0 -1
- package/lib/components/toolbar/popup/savedesign/index.js +0 -516
- package/lib/components/toolbar/popup/savedesign/index.js.map +0 -1
- package/lib/components/toolbar/popup/savedesign/styles.js +0 -26
- package/lib/components/toolbar/popup/savedesign/styles.js.map +0 -1
- package/lib/components/toolbar/popup/setDoorStyleOption/index.js +0 -64
- package/lib/components/toolbar/popup/setDoorStyleOption/index.js.map +0 -1
- package/lib/components/toolbar/popup/styles.js +0 -104
- package/lib/components/toolbar/popup/styles.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/AddToCartOptions.js +0 -166
- package/lib/components/toolbar/popup/submitforquote/AddToCartOptions.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/CustomerRequestsForm.js +0 -93
- package/lib/components/toolbar/popup/submitforquote/CustomerRequestsForm.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/SkipDesignerReview.js +0 -45
- package/lib/components/toolbar/popup/submitforquote/SkipDesignerReview.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/StepDots.js +0 -40
- package/lib/components/toolbar/popup/submitforquote/StepDots.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/cart-choice.js +0 -141
- package/lib/components/toolbar/popup/submitforquote/cart-choice.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/doorstyle-menus.js +0 -50
- package/lib/components/toolbar/popup/submitforquote/doorstyle-menus.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/index.js +0 -698
- package/lib/components/toolbar/popup/submitforquote/index.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/styles.js +0 -38
- package/lib/components/toolbar/popup/submitforquote/styles.js.map +0 -1
- package/lib/components/toolbar/popup/submitprompt/index.js +0 -79
- package/lib/components/toolbar/popup/submitprompt/index.js.map +0 -1
- package/lib/components/toolbar/popup/submitprompt/styles.js +0 -16
- package/lib/components/toolbar/popup/submitprompt/styles.js.map +0 -1
- package/lib/components/toolbar/toolbar-button.js +0 -111
- package/lib/components/toolbar/toolbar-button.js.map +0 -1
- package/lib/components/toolbar/toolbar-load-button.js +0 -36
- package/lib/components/toolbar/toolbar-load-button.js.map +0 -1
- package/lib/components/toolbar/toolbar-save-button.js +0 -34
- package/lib/components/toolbar/toolbar-save-button.js.map +0 -1
- package/lib/components/tutorial-view/Modal.js +0 -503
- package/lib/components/tutorial-view/Modal.js.map +0 -1
- package/lib/components/tutorial-view/styles.js +0 -13
- package/lib/components/tutorial-view/styles.js.map +0 -1
- package/lib/components/viewer2d/area.js +0 -90
- package/lib/components/viewer2d/area.js.map +0 -1
- package/lib/components/viewer2d/export.js +0 -122
- package/lib/components/viewer2d/export.js.map +0 -1
- package/lib/components/viewer2d/grids/grid-horizontal-streak.js +0 -45
- package/lib/components/viewer2d/grids/grid-horizontal-streak.js.map +0 -1
- package/lib/components/viewer2d/grids/grid-streak.js +0 -45
- package/lib/components/viewer2d/grids/grid-streak.js.map +0 -1
- package/lib/components/viewer2d/grids/grid-vertical-streak.js +0 -45
- package/lib/components/viewer2d/grids/grid-vertical-streak.js.map +0 -1
- package/lib/components/viewer2d/grids/grids.js +0 -45
- package/lib/components/viewer2d/grids/grids.js.map +0 -1
- package/lib/components/viewer2d/group.js +0 -63
- package/lib/components/viewer2d/group.js.map +0 -1
- package/lib/components/viewer2d/item.js +0 -522
- package/lib/components/viewer2d/item.js.map +0 -1
- package/lib/components/viewer2d/layer.js +0 -172
- package/lib/components/viewer2d/layer.js.map +0 -1
- package/lib/components/viewer2d/line.js +0 -899
- package/lib/components/viewer2d/line.js.map +0 -1
- package/lib/components/viewer2d/ruler.js +0 -108
- package/lib/components/viewer2d/ruler.js.map +0 -1
- package/lib/components/viewer2d/rulerDist.js +0 -154
- package/lib/components/viewer2d/rulerDist.js.map +0 -1
- package/lib/components/viewer2d/rulerX.js +0 -159
- package/lib/components/viewer2d/rulerX.js.map +0 -1
- package/lib/components/viewer2d/rulerY.js +0 -161
- package/lib/components/viewer2d/rulerY.js.map +0 -1
- package/lib/components/viewer2d/scene.js +0 -148
- package/lib/components/viewer2d/scene.js.map +0 -1
- package/lib/components/viewer2d/snap.js +0 -84
- package/lib/components/viewer2d/snap.js.map +0 -1
- package/lib/components/viewer2d/state.js +0 -88
- package/lib/components/viewer2d/state.js.map +0 -1
- package/lib/components/viewer2d/utils.js +0 -174
- package/lib/components/viewer2d/utils.js.map +0 -1
- package/lib/components/viewer2d/vertex.js +0 -76
- package/lib/components/viewer2d/vertex.js.map +0 -1
- package/lib/components/viewer2d/viewer2d.js +0 -1409
- package/lib/components/viewer2d/viewer2d.js.map +0 -1
- package/lib/components/viewer3d/camera-controls-module/camera-controls.module.js +0 -2598
- package/lib/components/viewer3d/camera-controls-module/camera-controls.module.js.map +0 -1
- package/lib/components/viewer3d/dcm.js +0 -408
- package/lib/components/viewer3d/dcm.js.map +0 -1
- package/lib/components/viewer3d/fbm.js +0 -421
- package/lib/components/viewer3d/fbm.js.map +0 -1
- package/lib/components/viewer3d/front3D.js +0 -76
- package/lib/components/viewer3d/front3D.js.map +0 -1
- package/lib/components/viewer3d/grid-creator.js +0 -35
- package/lib/components/viewer3d/grid-creator.js.map +0 -1
- package/lib/components/viewer3d/grids/grid-horizontal-streak.js +0 -45
- package/lib/components/viewer3d/grids/grid-horizontal-streak.js.map +0 -1
- package/lib/components/viewer3d/grids/grid-streak.js +0 -36
- package/lib/components/viewer3d/grids/grid-streak.js.map +0 -1
- package/lib/components/viewer3d/grids/grid-vertical-streak.js +0 -45
- package/lib/components/viewer3d/grids/grid-vertical-streak.js.map +0 -1
- package/lib/components/viewer3d/libs/first-person-controls.js +0 -75
- package/lib/components/viewer3d/libs/first-person-controls.js.map +0 -1
- package/lib/components/viewer3d/libs/helvetiker_regular.typeface.js +0 -1288
- package/lib/components/viewer3d/libs/helvetiker_regular.typeface.js.map +0 -1
- package/lib/components/viewer3d/libs/mtl-loader.js +0 -360
- package/lib/components/viewer3d/libs/mtl-loader.js.map +0 -1
- package/lib/components/viewer3d/libs/obj-loader.js +0 -465
- package/lib/components/viewer3d/libs/obj-loader.js.map +0 -1
- package/lib/components/viewer3d/libs/orbit-controls.js +0 -701
- package/lib/components/viewer3d/libs/orbit-controls.js.map +0 -1
- package/lib/components/viewer3d/libs/pointer-lock-controls.js +0 -48
- package/lib/components/viewer3d/libs/pointer-lock-controls.js.map +0 -1
- package/lib/components/viewer3d/lrm.js +0 -312
- package/lib/components/viewer3d/lrm.js.map +0 -1
- package/lib/components/viewer3d/model.js +0 -715
- package/lib/components/viewer3d/model.js.map +0 -1
- package/lib/components/viewer3d/pointer-lock-navigation.js +0 -123
- package/lib/components/viewer3d/pointer-lock-navigation.js.map +0 -1
- package/lib/components/viewer3d/ruler-utils/itemRect.js +0 -69
- package/lib/components/viewer3d/ruler-utils/itemRect.js.map +0 -1
- package/lib/components/viewer3d/ruler-utils/layer3D.js +0 -503
- package/lib/components/viewer3d/ruler-utils/layer3D.js.map +0 -1
- package/lib/components/viewer3d/ruler-utils/ruler3D.js +0 -235
- package/lib/components/viewer3d/ruler-utils/ruler3D.js.map +0 -1
- package/lib/components/viewer3d/ruler-utils/scene3D.js +0 -70
- package/lib/components/viewer3d/ruler-utils/scene3D.js.map +0 -1
- package/lib/components/viewer3d/ruler-utils/state3D.js +0 -26
- package/lib/components/viewer3d/ruler-utils/state3D.js.map +0 -1
- package/lib/components/viewer3d/scene-creator.js +0 -3641
- package/lib/components/viewer3d/scene-creator.js.map +0 -1
- package/lib/components/viewer3d/three-memory-cleaner.js +0 -61
- package/lib/components/viewer3d/three-memory-cleaner.js.map +0 -1
- package/lib/components/viewer3d/viewer3d-first-person.js +0 -321
- package/lib/components/viewer3d/viewer3d-first-person.js.map +0 -1
- package/lib/components/viewer3d/viewer3d.js +0 -2508
- package/lib/components/viewer3d/viewer3d.js.map +0 -1
- package/lib/components/wizardstep/button/styles.js +0 -67
- package/lib/components/wizardstep/button/styles.js.map +0 -1
- package/lib/components/wizardstep/export.js +0 -12
- package/lib/components/wizardstep/export.js.map +0 -1
- package/lib/components/wizardstep/index.js +0 -978
- package/lib/components/wizardstep/index.js.map +0 -1
- package/lib/components/wizardstep/styles.js +0 -68
- package/lib/components/wizardstep/styles.js.map +0 -1
- package/lib/components/wizardstep/wizardstep-content-button.js +0 -224
- package/lib/components/wizardstep/wizardstep-content-button.js.map +0 -1
- package/lib/components/wizardstep/wizardstep-toggle-button.js +0 -133
- package/lib/components/wizardstep/wizardstep-toggle-button.js.map +0 -1
- package/lib/constants.js +0 -646
- package/lib/constants.js.map +0 -1
- package/lib/hooks/useCheckCart.js +0 -60
- package/lib/hooks/useCheckCart.js.map +0 -1
- package/lib/hooks/useGetPricesBySku.js +0 -81
- package/lib/hooks/useGetPricesBySku.js.map +0 -1
- package/lib/hooks/useValidateToken.js +0 -207
- package/lib/hooks/useValidateToken.js.map +0 -1
- package/lib/index.js +0 -102
- package/lib/index.js.map +0 -1
- package/lib/models.js +0 -518
- package/lib/models.js.map +0 -1
- package/lib/plugins/SVGLoader.js +0 -1418
- package/lib/plugins/SVGLoader.js.map +0 -1
- package/lib/plugins/autosave.js +0 -40
- package/lib/plugins/autosave.js.map +0 -1
- package/lib/plugins/console-debugger.js +0 -45
- package/lib/plugins/console-debugger.js.map +0 -1
- package/lib/plugins/export.js +0 -34
- package/lib/plugins/export.js.map +0 -1
- package/lib/plugins/keyboard.js +0 -108
- package/lib/plugins/keyboard.js.map +0 -1
- package/lib/reducers/areas-reducer.js +0 -19
- package/lib/reducers/areas-reducer.js.map +0 -1
- package/lib/reducers/export.js +0 -98
- package/lib/reducers/export.js.map +0 -1
- package/lib/reducers/groups-reducer.js +0 -45
- package/lib/reducers/groups-reducer.js.map +0 -1
- package/lib/reducers/holes-reducer.js +0 -69
- package/lib/reducers/holes-reducer.js.map +0 -1
- package/lib/reducers/items-reducer.js +0 -147
- package/lib/reducers/items-reducer.js.map +0 -1
- package/lib/reducers/lines-reducer.js +0 -52
- package/lib/reducers/lines-reducer.js.map +0 -1
- package/lib/reducers/project-reducer.js +0 -136
- package/lib/reducers/project-reducer.js.map +0 -1
- package/lib/reducers/reducer.js +0 -27
- package/lib/reducers/reducer.js.map +0 -1
- package/lib/reducers/scene-reducer.js +0 -35
- package/lib/reducers/scene-reducer.js.map +0 -1
- package/lib/reducers/user-reducer.js +0 -48
- package/lib/reducers/user-reducer.js.map +0 -1
- package/lib/reducers/vertices-reducer.js +0 -26
- package/lib/reducers/vertices-reducer.js.map +0 -1
- package/lib/reducers/viewer2d-reducer.js +0 -83
- package/lib/reducers/viewer2d-reducer.js.map +0 -1
- package/lib/reducers/viewer3d-reducer.js +0 -64
- package/lib/reducers/viewer3d-reducer.js.map +0 -1
- package/lib/shared-style.js +0 -73
- package/lib/shared-style.js.map +0 -1
- package/lib/styles/export.js +0 -14
- package/lib/styles/export.js.map +0 -1
- package/lib/translator/en.js +0 -111
- package/lib/translator/en.js.map +0 -1
- package/lib/translator/it.js +0 -86
- package/lib/translator/it.js.map +0 -1
- package/lib/translator/ru.js +0 -86
- package/lib/translator/ru.js.map +0 -1
- package/lib/translator/translator.js +0 -91
- package/lib/translator/translator.js.map +0 -1
- package/lib/utils/browser.js +0 -41
- package/lib/utils/browser.js.map +0 -1
- package/lib/utils/email-validator.js +0 -11
- package/lib/utils/email-validator.js.map +0 -1
- package/lib/utils/export.js +0 -57
- package/lib/utils/export.js.map +0 -1
- package/lib/utils/geometry.js +0 -2329
- package/lib/utils/geometry.js.map +0 -1
- package/lib/utils/get-edges-of-subgraphs.js +0 -29
- package/lib/utils/get-edges-of-subgraphs.js.map +0 -1
- package/lib/utils/graph-cycles.js +0 -241
- package/lib/utils/graph-cycles.js.map +0 -1
- package/lib/utils/graph-inner-cycles.js +0 -55
- package/lib/utils/graph-inner-cycles.js.map +0 -1
- package/lib/utils/graph.js +0 -152
- package/lib/utils/graph.js.map +0 -1
- package/lib/utils/helper.js +0 -360
- package/lib/utils/helper.js.map +0 -1
- package/lib/utils/history.js +0 -37
- package/lib/utils/history.js.map +0 -1
- package/lib/utils/id-broker.js +0 -26
- package/lib/utils/id-broker.js.map +0 -1
- package/lib/utils/logger.js +0 -15
- package/lib/utils/logger.js.map +0 -1
- package/lib/utils/math.js +0 -58
- package/lib/utils/math.js.map +0 -1
- package/lib/utils/molding.js +0 -864
- package/lib/utils/molding.js.map +0 -1
- package/lib/utils/name-generator.js +0 -24
- package/lib/utils/name-generator.js.map +0 -1
- package/lib/utils/objects-utils.js +0 -61
- package/lib/utils/objects-utils.js.map +0 -1
- package/lib/utils/phone-validator.js +0 -11
- package/lib/utils/phone-validator.js.map +0 -1
- package/lib/utils/process-black-list.js +0 -25
- package/lib/utils/process-black-list.js.map +0 -1
- package/lib/utils/react-if.js +0 -25
- package/lib/utils/react-if.js.map +0 -1
- package/lib/utils/snap-scene.js +0 -106
- package/lib/utils/snap-scene.js.map +0 -1
- package/lib/utils/snap.js +0 -250
- package/lib/utils/snap.js.map +0 -1
- package/lib/utils/threeCSG.es6.js +0 -504
- package/lib/utils/threeCSG.es6.js.map +0 -1
- package/lib/version.js +0 -8
- package/lib/version.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"areas-reducer.js","names":["_export","require","_constants","_default","state","action","type","SELECT_AREA","Area","select","layerID","areaID","updatedState","SET_FLOOR_STYLES","setFloorStyles","texture"],"sources":["../../src/reducers/areas-reducer.js"],"sourcesContent":["import { Area } from '../class/export';\r\nimport { SELECT_AREA, SET_FLOOR_STYLES } from '../constants';\r\n\r\nexport default function (state, action) {\r\n switch (action.type) {\r\n case SELECT_AREA:\r\n return Area.select(state, action.layerID, action.areaID).updatedState;\r\n case SET_FLOOR_STYLES:\r\n return Area.setFloorStyles(state, action.texture).updatedState;\r\n default:\r\n return state;\r\n }\r\n}\r\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAEe,SAAAE,SAAUC,KAAK,EAAEC,MAAM,EAAE;EACtC,QAAQA,MAAM,CAACC,IAAI;IACjB,KAAKC,sBAAW;MACd,OAAOC,YAAI,CAACC,MAAM,CAACL,KAAK,EAAEC,MAAM,CAACK,OAAO,EAAEL,MAAM,CAACM,MAAM,CAAC,CAACC,YAAY;IACvE,KAAKC,2BAAgB;MACnB,OAAOL,YAAI,CAACM,cAAc,CAACV,KAAK,EAAEC,MAAM,CAACU,OAAO,CAAC,CAACH,YAAY;IAChE;MACE,OAAOR,KAAK;EAChB;AACF","ignoreList":[]}
|
package/lib/reducers/export.js
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "KitchenConfiguratorAreasReducer", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _areasReducer["default"];
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "KitchenConfiguratorGroupsReducer", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _groupsReducer["default"];
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "KitchenConfiguratorHolesReducer", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function get() {
|
|
21
|
-
return _holesReducer["default"];
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "KitchenConfiguratorItemsReducer", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function get() {
|
|
27
|
-
return _itemsReducer["default"];
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "KitchenConfiguratorLinesReducer", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function get() {
|
|
33
|
-
return _linesReducer["default"];
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "KitchenConfiguratorProjectReducer", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function get() {
|
|
39
|
-
return _projectReducer["default"];
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, "KitchenConfiguratorSceneReducer", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function get() {
|
|
45
|
-
return _sceneReducer["default"];
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports, "KitchenConfiguratorUserReducer", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function get() {
|
|
51
|
-
return _userReducer["default"];
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, "KitchenConfiguratorVerticesReducer", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function get() {
|
|
57
|
-
return _verticesReducer["default"];
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(exports, "KitchenConfiguratorViewer2dReducer", {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: function get() {
|
|
63
|
-
return _viewer2dReducer["default"];
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
Object.defineProperty(exports, "KitchenConfiguratorViewer3dReducer", {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
get: function get() {
|
|
69
|
-
return _viewer3dReducer["default"];
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
exports["default"] = void 0;
|
|
73
|
-
var _areasReducer = _interopRequireDefault(require("./areas-reducer"));
|
|
74
|
-
var _holesReducer = _interopRequireDefault(require("./holes-reducer"));
|
|
75
|
-
var _itemsReducer = _interopRequireDefault(require("./items-reducer"));
|
|
76
|
-
var _linesReducer = _interopRequireDefault(require("./lines-reducer"));
|
|
77
|
-
var _groupsReducer = _interopRequireDefault(require("./groups-reducer"));
|
|
78
|
-
var _projectReducer = _interopRequireDefault(require("./project-reducer"));
|
|
79
|
-
var _sceneReducer = _interopRequireDefault(require("./scene-reducer"));
|
|
80
|
-
var _verticesReducer = _interopRequireDefault(require("./vertices-reducer"));
|
|
81
|
-
var _viewer2dReducer = _interopRequireDefault(require("./viewer2d-reducer"));
|
|
82
|
-
var _viewer3dReducer = _interopRequireDefault(require("./viewer3d-reducer"));
|
|
83
|
-
var _userReducer = _interopRequireDefault(require("./user-reducer"));
|
|
84
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
85
|
-
var _default = exports["default"] = {
|
|
86
|
-
KitchenConfiguratorAreasReducer: _areasReducer["default"],
|
|
87
|
-
KitchenConfiguratorHolesReducer: _holesReducer["default"],
|
|
88
|
-
KitchenConfiguratorItemsReducer: _itemsReducer["default"],
|
|
89
|
-
KitchenConfiguratorLinesReducer: _linesReducer["default"],
|
|
90
|
-
KitchenConfiguratorGroupsReducer: _groupsReducer["default"],
|
|
91
|
-
KitchenConfiguratorProjectReducer: _projectReducer["default"],
|
|
92
|
-
KitchenConfiguratorSceneReducer: _sceneReducer["default"],
|
|
93
|
-
KitchenConfiguratorVerticesReducer: _verticesReducer["default"],
|
|
94
|
-
KitchenConfiguratorViewer2dReducer: _viewer2dReducer["default"],
|
|
95
|
-
KitchenConfiguratorViewer3dReducer: _viewer3dReducer["default"],
|
|
96
|
-
KitchenConfiguratorUserReducer: _userReducer["default"]
|
|
97
|
-
};
|
|
98
|
-
//# sourceMappingURL=export.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"export.js","names":["_areasReducer","_interopRequireDefault","require","_holesReducer","_itemsReducer","_linesReducer","_groupsReducer","_projectReducer","_sceneReducer","_verticesReducer","_viewer2dReducer","_viewer3dReducer","_userReducer","e","__esModule","_default","exports","KitchenConfiguratorAreasReducer","KitchenConfiguratorHolesReducer","KitchenConfiguratorItemsReducer","KitchenConfiguratorLinesReducer","KitchenConfiguratorGroupsReducer","KitchenConfiguratorProjectReducer","KitchenConfiguratorSceneReducer","KitchenConfiguratorVerticesReducer","KitchenConfiguratorViewer2dReducer","KitchenConfiguratorViewer3dReducer","KitchenConfiguratorUserReducer"],"sources":["../../src/reducers/export.js"],"sourcesContent":["import KitchenConfiguratorAreasReducer from './areas-reducer';\r\nimport KitchenConfiguratorHolesReducer from './holes-reducer';\r\nimport KitchenConfiguratorItemsReducer from './items-reducer';\r\nimport KitchenConfiguratorLinesReducer from './lines-reducer';\r\nimport KitchenConfiguratorGroupsReducer from './groups-reducer';\r\nimport KitchenConfiguratorProjectReducer from './project-reducer';\r\nimport KitchenConfiguratorSceneReducer from './scene-reducer';\r\nimport KitchenConfiguratorVerticesReducer from './vertices-reducer';\r\nimport KitchenConfiguratorViewer2dReducer from './viewer2d-reducer';\r\nimport KitchenConfiguratorViewer3dReducer from './viewer3d-reducer';\r\nimport KitchenConfiguratorUserReducer from './user-reducer';\r\n\r\nexport {\r\n KitchenConfiguratorAreasReducer,\r\n KitchenConfiguratorHolesReducer,\r\n KitchenConfiguratorItemsReducer,\r\n KitchenConfiguratorLinesReducer,\r\n KitchenConfiguratorGroupsReducer,\r\n KitchenConfiguratorProjectReducer,\r\n KitchenConfiguratorSceneReducer,\r\n KitchenConfiguratorVerticesReducer,\r\n KitchenConfiguratorViewer2dReducer,\r\n KitchenConfiguratorViewer3dReducer,\r\n KitchenConfiguratorUserReducer\r\n};\r\n\r\nexport default {\r\n KitchenConfiguratorAreasReducer,\r\n KitchenConfiguratorHolesReducer,\r\n KitchenConfiguratorItemsReducer,\r\n KitchenConfiguratorLinesReducer,\r\n KitchenConfiguratorGroupsReducer,\r\n KitchenConfiguratorProjectReducer,\r\n KitchenConfiguratorSceneReducer,\r\n KitchenConfiguratorVerticesReducer,\r\n KitchenConfiguratorViewer2dReducer,\r\n KitchenConfiguratorViewer3dReducer,\r\n KitchenConfiguratorUserReducer\r\n};\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,aAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,aAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,aAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,cAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,eAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,aAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,gBAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,gBAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,gBAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,YAAA,GAAAX,sBAAA,CAAAC,OAAA;AAA4D,SAAAD,uBAAAY,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAAA,IAAAE,QAAA,GAAAC,OAAA,cAgB7C;EACbC,+BAA+B,EAA/BA,wBAA+B;EAC/BC,+BAA+B,EAA/BA,wBAA+B;EAC/BC,+BAA+B,EAA/BA,wBAA+B;EAC/BC,+BAA+B,EAA/BA,wBAA+B;EAC/BC,gCAAgC,EAAhCA,yBAAgC;EAChCC,iCAAiC,EAAjCA,0BAAiC;EACjCC,+BAA+B,EAA/BA,wBAA+B;EAC/BC,kCAAkC,EAAlCA,2BAAkC;EAClCC,kCAAkC,EAAlCA,2BAAkC;EAClCC,kCAAkC,EAAlCA,2BAAkC;EAClCC,8BAA8B,EAA9BA;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = _default;
|
|
7
|
-
var _constants = require("../constants");
|
|
8
|
-
var _export = require("../class/export");
|
|
9
|
-
var _export2 = require("../utils/export");
|
|
10
|
-
function _default(state, action) {
|
|
11
|
-
state = state.merge({
|
|
12
|
-
sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene)
|
|
13
|
-
});
|
|
14
|
-
switch (action.type) {
|
|
15
|
-
case _constants.GROUP_ACTIONS.ADD_GROUP:
|
|
16
|
-
return _export.Group.create(state).updatedState;
|
|
17
|
-
case _constants.GROUP_ACTIONS.ADD_GROUP_FROM_SELECTED:
|
|
18
|
-
return _export.Group.createFromSelectedElements(state).updatedState;
|
|
19
|
-
case _constants.GROUP_ACTIONS.SELECT_GROUP:
|
|
20
|
-
return _export.Group.select(state, action.groupID).updatedState;
|
|
21
|
-
case _constants.GROUP_ACTIONS.UNSELECT_GROUP:
|
|
22
|
-
return _export.Group.unselect(state, action.groupID).updatedState;
|
|
23
|
-
case _constants.GROUP_ACTIONS.ADD_TO_GROUP:
|
|
24
|
-
return _export.Group.addElement(state, action.groupID, action.layerID, action.elementPrototype, action.elementID).updatedState;
|
|
25
|
-
case _constants.GROUP_ACTIONS.REMOVE_FROM_GROUP:
|
|
26
|
-
return _export.Group.removeElement(state, action.groupID, action.layerID, action.elementPrototype, action.elementID).updatedState;
|
|
27
|
-
case _constants.GROUP_ACTIONS.SET_GROUP_ATTRIBUTES:
|
|
28
|
-
return _export.Group.setAttributes(state, action.groupID, action.attributes).updatedState;
|
|
29
|
-
case _constants.GROUP_ACTIONS.SET_GROUP_PROPERTIES:
|
|
30
|
-
return _export.Group.setProperties(state, action.groupID, action.properties).updatedState;
|
|
31
|
-
case _constants.GROUP_ACTIONS.SET_GROUP_BARYCENTER:
|
|
32
|
-
return _export.Group.setBarycenter(state, action.groupID, action.barycenter.get('x'), action.barycenter.get('y')).updatedState;
|
|
33
|
-
case _constants.GROUP_ACTIONS.REMOVE_GROUP:
|
|
34
|
-
return _export.Group.remove(state, action.groupID).updatedState;
|
|
35
|
-
case _constants.GROUP_ACTIONS.REMOVE_GROUP_AND_DELETE_ELEMENTS:
|
|
36
|
-
return _export.Group.removeAndDeleteElements(state, action.groupID).updatedState;
|
|
37
|
-
case _constants.GROUP_ACTIONS.GROUP_TRANSLATE:
|
|
38
|
-
return _export.Group.translate(state, action.groupID, action.x, action.y).updatedState;
|
|
39
|
-
case _constants.GROUP_ACTIONS.GROUP_ROTATE:
|
|
40
|
-
return _export.Group.rotate(state, action.groupID, action.rotation).updatedState;
|
|
41
|
-
default:
|
|
42
|
-
return state;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=groups-reducer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"groups-reducer.js","names":["_constants","require","_export","_export2","_default","state","action","merge","sceneHistory","history","historyPush","scene","type","GROUP_ACTIONS","ADD_GROUP","Group","create","updatedState","ADD_GROUP_FROM_SELECTED","createFromSelectedElements","SELECT_GROUP","select","groupID","UNSELECT_GROUP","unselect","ADD_TO_GROUP","addElement","layerID","elementPrototype","elementID","REMOVE_FROM_GROUP","removeElement","SET_GROUP_ATTRIBUTES","setAttributes","attributes","SET_GROUP_PROPERTIES","setProperties","properties","SET_GROUP_BARYCENTER","setBarycenter","barycenter","get","REMOVE_GROUP","remove","REMOVE_GROUP_AND_DELETE_ELEMENTS","removeAndDeleteElements","GROUP_TRANSLATE","translate","x","y","GROUP_ROTATE","rotate","rotation"],"sources":["../../src/reducers/groups-reducer.js"],"sourcesContent":["import { GROUP_ACTIONS } from '../constants';\r\nimport { Group } from '../class/export';\r\nimport { history } from '../utils/export';\r\n\r\nexport default function (state, action) {\r\n state = state.merge({\r\n sceneHistory: history.historyPush(state.sceneHistory, state.scene)\r\n });\r\n\r\n switch (action.type) {\r\n case GROUP_ACTIONS.ADD_GROUP:\r\n return Group.create(state).updatedState;\r\n\r\n case GROUP_ACTIONS.ADD_GROUP_FROM_SELECTED:\r\n return Group.createFromSelectedElements(state).updatedState;\r\n\r\n case GROUP_ACTIONS.SELECT_GROUP:\r\n return Group.select(state, action.groupID).updatedState;\r\n\r\n case GROUP_ACTIONS.UNSELECT_GROUP:\r\n return Group.unselect(state, action.groupID).updatedState;\r\n\r\n case GROUP_ACTIONS.ADD_TO_GROUP:\r\n return Group.addElement(\r\n state,\r\n action.groupID,\r\n action.layerID,\r\n action.elementPrototype,\r\n action.elementID\r\n ).updatedState;\r\n\r\n case GROUP_ACTIONS.REMOVE_FROM_GROUP:\r\n return Group.removeElement(\r\n state,\r\n action.groupID,\r\n action.layerID,\r\n action.elementPrototype,\r\n action.elementID\r\n ).updatedState;\r\n\r\n case GROUP_ACTIONS.SET_GROUP_ATTRIBUTES:\r\n return Group.setAttributes(state, action.groupID, action.attributes)\r\n .updatedState;\r\n\r\n case GROUP_ACTIONS.SET_GROUP_PROPERTIES:\r\n return Group.setProperties(state, action.groupID, action.properties)\r\n .updatedState;\r\n\r\n case GROUP_ACTIONS.SET_GROUP_BARYCENTER:\r\n return Group.setBarycenter(\r\n state,\r\n action.groupID,\r\n action.barycenter.get('x'),\r\n action.barycenter.get('y')\r\n ).updatedState;\r\n\r\n case GROUP_ACTIONS.REMOVE_GROUP:\r\n return Group.remove(state, action.groupID).updatedState;\r\n\r\n case GROUP_ACTIONS.REMOVE_GROUP_AND_DELETE_ELEMENTS:\r\n return Group.removeAndDeleteElements(state, action.groupID).updatedState;\r\n\r\n case GROUP_ACTIONS.GROUP_TRANSLATE:\r\n return Group.translate(state, action.groupID, action.x, action.y)\r\n .updatedState;\r\n\r\n case GROUP_ACTIONS.GROUP_ROTATE:\r\n return Group.rotate(state, action.groupID, action.rotation).updatedState;\r\n\r\n default:\r\n return state;\r\n }\r\n}\r\n"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AAEe,SAAAG,SAAUC,KAAK,EAAEC,MAAM,EAAE;EACtCD,KAAK,GAAGA,KAAK,CAACE,KAAK,CAAC;IAClBC,YAAY,EAAEC,gBAAO,CAACC,WAAW,CAACL,KAAK,CAACG,YAAY,EAAEH,KAAK,CAACM,KAAK;EACnE,CAAC,CAAC;EAEF,QAAQL,MAAM,CAACM,IAAI;IACjB,KAAKC,wBAAa,CAACC,SAAS;MAC1B,OAAOC,aAAK,CAACC,MAAM,CAACX,KAAK,CAAC,CAACY,YAAY;IAEzC,KAAKJ,wBAAa,CAACK,uBAAuB;MACxC,OAAOH,aAAK,CAACI,0BAA0B,CAACd,KAAK,CAAC,CAACY,YAAY;IAE7D,KAAKJ,wBAAa,CAACO,YAAY;MAC7B,OAAOL,aAAK,CAACM,MAAM,CAAChB,KAAK,EAAEC,MAAM,CAACgB,OAAO,CAAC,CAACL,YAAY;IAEzD,KAAKJ,wBAAa,CAACU,cAAc;MAC/B,OAAOR,aAAK,CAACS,QAAQ,CAACnB,KAAK,EAAEC,MAAM,CAACgB,OAAO,CAAC,CAACL,YAAY;IAE3D,KAAKJ,wBAAa,CAACY,YAAY;MAC7B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,wBAAa,CAACiC,eAAe;MAChC,OAAO/B,aAAK,CAACgC,SAAS,CAAC1C,KAAK,EAAEC,MAAM,CAACgB,OAAO,EAAEhB,MAAM,CAAC0C,CAAC,EAAE1C,MAAM,CAAC2C,CAAC,CAAC,CAC9DhC,YAAY;IAEjB,KAAKJ,wBAAa,CAACqC,YAAY;MAC7B,OAAOnC,aAAK,CAACoC,MAAM,CAAC9C,KAAK,EAAEC,MAAM,CAACgB,OAAO,EAAEhB,MAAM,CAAC8C,QAAQ,CAAC,CAACnC,YAAY;IAE1E;MACE,OAAOZ,KAAK;EAChB;AACF","ignoreList":[]}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = _default;
|
|
7
|
-
var _export = require("../class/export");
|
|
8
|
-
var _export2 = require("../utils/export");
|
|
9
|
-
var _constants = require("../constants");
|
|
10
|
-
function _default(state, action) {
|
|
11
|
-
switch (action.type) {
|
|
12
|
-
case _constants.UPDATE_DRAGGING_HOLE_RULER_CHANGED:
|
|
13
|
-
return _export.Hole.updateDraggingHoleRulerChanged(state, action.width, action.layerID, action.holeID).updatedState;
|
|
14
|
-
case _constants.UPDATE_DRAGGING_HOLE_CHANGED:
|
|
15
|
-
return _export.Hole.updateDraggingHoleChanged(state, action.x, action.y, action.layerID, action.holeID).updatedState;
|
|
16
|
-
case _constants.END_CREATING_HOLE:
|
|
17
|
-
return _export.Hole.endCreatingHole(state).updatedState;
|
|
18
|
-
case _constants.UPDATE_POPUP_OPEN:
|
|
19
|
-
return _export.Hole.updatePopupOpen(state, action.value).updatedState;
|
|
20
|
-
case _constants.SELECT_TOOL_DRAWING_HOLE:
|
|
21
|
-
state = state.merge({
|
|
22
|
-
sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene)
|
|
23
|
-
});
|
|
24
|
-
return _export.Hole.selectToolDrawingHole(state, action.sceneComponentType).updatedState;
|
|
25
|
-
case _constants.SELECT_TOOL_DRAWING_HOLE_3D:
|
|
26
|
-
return _export.Hole.selectToolDrawingHole3D(state, action.sceneComponentType).updatedState;
|
|
27
|
-
case _constants.UPDATE_DRAWING_HOLE:
|
|
28
|
-
return _export.Hole.updateDrawingHole(state, action.layerID, action.x, action.y).updatedState;
|
|
29
|
-
case _constants.UPDATE_DRAWING_HOLE_3D:
|
|
30
|
-
return _export.Hole.updateDrawingHole3D(state, action.layerID, action.x, action.y).updatedState;
|
|
31
|
-
case _constants.END_DRAWING_HOLE:
|
|
32
|
-
state = state.merge({
|
|
33
|
-
sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene)
|
|
34
|
-
});
|
|
35
|
-
return _export.Hole.endDrawingHole(state, action.layerID, action.x, action.y).updatedState;
|
|
36
|
-
case _constants.END_DRAWING_HOLE_3D:
|
|
37
|
-
state = state.merge({
|
|
38
|
-
sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene)
|
|
39
|
-
});
|
|
40
|
-
return _export.Hole.endDrawingHole3D(state, action.layerID, action.x, action.y).updatedState;
|
|
41
|
-
case _constants.BEGIN_DRAGGING_HOLE:
|
|
42
|
-
state = state.merge({
|
|
43
|
-
sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene)
|
|
44
|
-
});
|
|
45
|
-
return _export.Hole.beginDraggingHole(state, action.layerID, action.holeID, action.x, action.y).updatedState;
|
|
46
|
-
case _constants.BEGIN_DRAGGING_HOLE_3D:
|
|
47
|
-
state = state.merge({
|
|
48
|
-
sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene)
|
|
49
|
-
});
|
|
50
|
-
return _export.Hole.beginDraggingHole3D(state, action.layerID, action.holeID, action.x, action.y).updatedState;
|
|
51
|
-
case _constants.UPDATE_DRAGGING_HOLE:
|
|
52
|
-
return _export.Hole.updateDraggingHole(state, action.x, action.y).updatedState;
|
|
53
|
-
case _constants.END_DRAGGING_HOLE:
|
|
54
|
-
state = state.merge({
|
|
55
|
-
sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene)
|
|
56
|
-
});
|
|
57
|
-
return _export.Hole.endDraggingHole(state, action.x, action.y).updatedState;
|
|
58
|
-
case _constants.END_DRAGGING_HOLE_3D:
|
|
59
|
-
state = state.merge({
|
|
60
|
-
sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene)
|
|
61
|
-
});
|
|
62
|
-
return _export.Hole.endDraggingHole3D(state, action.x, action.y).updatedState;
|
|
63
|
-
case _constants.SELECT_HOLE:
|
|
64
|
-
return _export.Hole.select(state, action.layerID, action.holeID).updatedState;
|
|
65
|
-
default:
|
|
66
|
-
return state;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
//# sourceMappingURL=holes-reducer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"holes-reducer.js","names":["_export","require","_export2","_constants","_default","state","action","type","UPDATE_DRAGGING_HOLE_RULER_CHANGED","Hole","updateDraggingHoleRulerChanged","width","layerID","holeID","updatedState","UPDATE_DRAGGING_HOLE_CHANGED","updateDraggingHoleChanged","x","y","END_CREATING_HOLE","endCreatingHole","UPDATE_POPUP_OPEN","updatePopupOpen","value","SELECT_TOOL_DRAWING_HOLE","merge","sceneHistory","history","historyPush","scene","selectToolDrawingHole","sceneComponentType","SELECT_TOOL_DRAWING_HOLE_3D","selectToolDrawingHole3D","UPDATE_DRAWING_HOLE","updateDrawingHole","UPDATE_DRAWING_HOLE_3D","updateDrawingHole3D","END_DRAWING_HOLE","endDrawingHole","END_DRAWING_HOLE_3D","endDrawingHole3D","BEGIN_DRAGGING_HOLE","beginDraggingHole","BEGIN_DRAGGING_HOLE_3D","beginDraggingHole3D","UPDATE_DRAGGING_HOLE","updateDraggingHole","END_DRAGGING_HOLE","endDraggingHole","END_DRAGGING_HOLE_3D","endDraggingHole3D","SELECT_HOLE","select"],"sources":["../../src/reducers/holes-reducer.js"],"sourcesContent":["import { Hole } from '../class/export';\r\nimport { history } from '../utils/export';\r\nimport {\r\n SELECT_TOOL_DRAWING_HOLE,\r\n SELECT_TOOL_DRAWING_HOLE_3D,\r\n UPDATE_DRAWING_HOLE,\r\n UPDATE_DRAWING_HOLE_3D,\r\n END_DRAWING_HOLE,\r\n END_DRAWING_HOLE_3D,\r\n BEGIN_DRAGGING_HOLE,\r\n BEGIN_DRAGGING_HOLE_3D,\r\n UPDATE_DRAGGING_HOLE,\r\n END_DRAGGING_HOLE,\r\n END_DRAGGING_HOLE_3D,\r\n SELECT_HOLE,\r\n END_CREATING_HOLE,\r\n UPDATE_POPUP_OPEN,\r\n UPDATE_DRAGGING_HOLE_CHANGED,\r\n UPDATE_DRAGGING_HOLE_RULER_CHANGED\r\n} from '../constants';\r\n\r\nexport default function (state, action) {\r\n switch (action.type) {\r\n case UPDATE_DRAGGING_HOLE_RULER_CHANGED:\r\n return Hole.updateDraggingHoleRulerChanged(\r\n state,\r\n action.width,\r\n action.layerID,\r\n action.holeID\r\n ).updatedState;\r\n\r\n case UPDATE_DRAGGING_HOLE_CHANGED:\r\n return Hole.updateDraggingHoleChanged(\r\n state,\r\n action.x,\r\n action.y,\r\n action.layerID,\r\n action.holeID\r\n ).updatedState;\r\n\r\n case END_CREATING_HOLE:\r\n return Hole.endCreatingHole(state).updatedState;\r\n\r\n case UPDATE_POPUP_OPEN:\r\n return Hole.updatePopupOpen(state, action.value).updatedState;\r\n\r\n case SELECT_TOOL_DRAWING_HOLE:\r\n state = state.merge({\r\n sceneHistory: history.historyPush(state.sceneHistory, state.scene)\r\n });\r\n return Hole.selectToolDrawingHole(state, action.sceneComponentType)\r\n .updatedState;\r\n\r\n case SELECT_TOOL_DRAWING_HOLE_3D:\r\n return Hole.selectToolDrawingHole3D(state, action.sceneComponentType)\r\n .updatedState;\r\n\r\n case UPDATE_DRAWING_HOLE:\r\n return Hole.updateDrawingHole(state, action.layerID, action.x, action.y)\r\n .updatedState;\r\n\r\n case UPDATE_DRAWING_HOLE_3D:\r\n return Hole.updateDrawingHole3D(state, action.layerID, action.x, action.y)\r\n .updatedState;\r\n\r\n case END_DRAWING_HOLE:\r\n state = state.merge({\r\n sceneHistory: history.historyPush(state.sceneHistory, state.scene)\r\n });\r\n return Hole.endDrawingHole(state, action.layerID, action.x, action.y)\r\n .updatedState;\r\n\r\n case END_DRAWING_HOLE_3D:\r\n state = state.merge({\r\n sceneHistory: history.historyPush(state.sceneHistory, state.scene)\r\n });\r\n return Hole.endDrawingHole3D(state, action.layerID, action.x, action.y)\r\n .updatedState;\r\n\r\n case BEGIN_DRAGGING_HOLE:\r\n state = state.merge({\r\n sceneHistory: history.historyPush(state.sceneHistory, state.scene)\r\n });\r\n return Hole.beginDraggingHole(\r\n state,\r\n action.layerID,\r\n action.holeID,\r\n action.x,\r\n action.y\r\n ).updatedState;\r\n\r\n case BEGIN_DRAGGING_HOLE_3D:\r\n state = state.merge({\r\n sceneHistory: history.historyPush(state.sceneHistory, state.scene)\r\n });\r\n return Hole.beginDraggingHole3D(\r\n state,\r\n action.layerID,\r\n action.holeID,\r\n action.x,\r\n action.y\r\n ).updatedState;\r\n\r\n case UPDATE_DRAGGING_HOLE:\r\n return Hole.updateDraggingHole(state, action.x, action.y).updatedState;\r\n\r\n case END_DRAGGING_HOLE:\r\n state = state.merge({\r\n sceneHistory: history.historyPush(state.sceneHistory, state.scene)\r\n });\r\n return Hole.endDraggingHole(state, action.x, action.y).updatedState;\r\n\r\n case END_DRAGGING_HOLE_3D:\r\n state = state.merge({\r\n sceneHistory: history.historyPush(state.sceneHistory, state.scene)\r\n });\r\n return Hole.endDraggingHole3D(state, action.x, action.y).updatedState;\r\n\r\n case SELECT_HOLE:\r\n return Hole.select(state, action.layerID, action.holeID).updatedState;\r\n\r\n default:\r\n return state;\r\n }\r\n}\r\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAmBe,S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-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = _default;
|
|
7
|
-
var _export = require("../class/export");
|
|
8
|
-
var _export2 = require("../utils/export");
|
|
9
|
-
var _constants = require("../constants");
|
|
10
|
-
function _default(state, action) {
|
|
11
|
-
switch (action.type) {
|
|
12
|
-
case _constants.STORE_DIST_ARRAY:
|
|
13
|
-
return _export.Item.storeDistArray(state, action.layerID, action.itemID, action.distArray).updatedState;
|
|
14
|
-
case _constants.VALIDATE_ITEM_POSTIONS:
|
|
15
|
-
return _export.Item.validateItemPositions(state, action.layerID).updatedState;
|
|
16
|
-
case _constants.END_LOADING:
|
|
17
|
-
return _export.Item.endLoading(state).updatedState;
|
|
18
|
-
case _constants.TOGGLE_LOADING_CABINET:
|
|
19
|
-
return _export.Item.toggleLoadingCabinet(state).updatedState;
|
|
20
|
-
case _constants.EDIT_WIDTH:
|
|
21
|
-
return _export.Item.editWidth(state, action.newWidth, action.layerID, action.itemID).updatedState;
|
|
22
|
-
case _constants.DUPLICATE_SELECTED:
|
|
23
|
-
return _export.Item.duplicateSelected(state, action.currentObject).updatedState;
|
|
24
|
-
case _constants.END_CREATING_CABINET:
|
|
25
|
-
return _export.Item.endCreatingCabinet(state).updatedState;
|
|
26
|
-
case _constants.UPDATE_POPUP_OPEN:
|
|
27
|
-
return _export.Item.updatePopupOpen(state, action.value).updatedState;
|
|
28
|
-
case _constants.SELECT_ITEM:
|
|
29
|
-
return _export.Item.select(state, action.layerID, action.itemID).updatedState;
|
|
30
|
-
case _constants.SELECT_TOOL_DRAWING_ITEM:
|
|
31
|
-
state = state.merge({
|
|
32
|
-
sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene)
|
|
33
|
-
});
|
|
34
|
-
return _export.Item.selectToolDrawingItem(state, action.sceneComponentType, action.oStyle).updatedState;
|
|
35
|
-
case _constants.REPLACE_ITEM:
|
|
36
|
-
return _export.Item.replaceItem(state, action.selectedPos, action.currentObject, action.selectedObject).updatedState;
|
|
37
|
-
case _constants.UPDATE_DRAWING_ITEM:
|
|
38
|
-
return _export.Item.updateDrawingItem(state, action.layerID, action.x, action.y).updatedState;
|
|
39
|
-
case _constants.END_DRAWING_ITEM:
|
|
40
|
-
state = state.merge({
|
|
41
|
-
sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene)
|
|
42
|
-
});
|
|
43
|
-
return _export.Item.endDrawingItem(state, action.layerID, action.x, action.y).updatedState;
|
|
44
|
-
case _constants.BEGIN_DRAGGING_ITEM:
|
|
45
|
-
state = state.merge({
|
|
46
|
-
sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene)
|
|
47
|
-
});
|
|
48
|
-
return _export.Item.beginDraggingItem(state, action.layerID, action.itemID, action.x, action.y).updatedState;
|
|
49
|
-
case _constants.BEGIN_DRAGGING_ITEM_3D:
|
|
50
|
-
state = state.merge({
|
|
51
|
-
sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene)
|
|
52
|
-
});
|
|
53
|
-
return _export.Item.beginDraggingItem3D(state, action.layerID, action.itemID, action.x, action.y).updatedState;
|
|
54
|
-
case _constants.UPDATE_DRAGGING_ITEM:
|
|
55
|
-
return _export.Item.updateDraggingItem(state, action.x, action.y).updatedState;
|
|
56
|
-
case _constants.UPDATE_DRAGGING_ITEM_CHANGED:
|
|
57
|
-
return _export.Item.updateDraggingItemChanged(state, action.x, action.y, action.layerID, action.itemID).updatedState;
|
|
58
|
-
case _constants.UPDATE_DRAGGING_ITEM_3DX:
|
|
59
|
-
return _export.Item.updateDraggingItem3DX(state, action.x).updatedState;
|
|
60
|
-
case _constants.UPDATE_DRAGGING_ITEM_3DY:
|
|
61
|
-
return _export.Item.updateDraggingItem3DY(state, action.y).updatedState;
|
|
62
|
-
case _constants.END_DRAGGING_ITEM:
|
|
63
|
-
state = state.merge({
|
|
64
|
-
sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene)
|
|
65
|
-
});
|
|
66
|
-
return _export.Item.endDraggingItem(state, action.x, action.y).updatedState;
|
|
67
|
-
case _constants.END_DRAGGING_ITEM_3D:
|
|
68
|
-
state = state.merge({
|
|
69
|
-
sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene)
|
|
70
|
-
});
|
|
71
|
-
return _export.Item.endDraggingItem3D(state).updatedState;
|
|
72
|
-
case _constants.BEGIN_ROTATING_ITEM:
|
|
73
|
-
state = state.merge({
|
|
74
|
-
sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene)
|
|
75
|
-
});
|
|
76
|
-
return _export.Item.beginRotatingItem(state, action.layerID, action.itemID, action.x, action.y).updatedState;
|
|
77
|
-
case _constants.BEGIN_ROTATING_ITEM_3D:
|
|
78
|
-
state = state.merge({
|
|
79
|
-
sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene)
|
|
80
|
-
});
|
|
81
|
-
return _export.Item.beginRotatingItem3D(state, action.layerID, action.itemID, action.x, action.y, action.centerX, action.centerY).updatedState;
|
|
82
|
-
case _constants.UPDATE_ROTATING_ITEM:
|
|
83
|
-
return _export.Item.updateRotatingItem(state, action.x, action.y).updatedState;
|
|
84
|
-
case _constants.UPDATE_ROTATING_ITEM_CHANGED:
|
|
85
|
-
return _export.Item.updateRotatingItemChanged(state, action.rotation, action.layerID, action.itemID).updatedState;
|
|
86
|
-
case _constants.END_ROTATING_ITEM:
|
|
87
|
-
state = state.merge({
|
|
88
|
-
sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene)
|
|
89
|
-
});
|
|
90
|
-
return _export.Item.endRotatingItem(state, action.x, action.y).updatedState;
|
|
91
|
-
case _constants.END_ROTATING_ITEM_3D:
|
|
92
|
-
state = state.merge({
|
|
93
|
-
sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene)
|
|
94
|
-
});
|
|
95
|
-
return _export.Item.endRotatingItem3D(state, action.x, action.y).updatedState;
|
|
96
|
-
case _constants.REPLACE_SUBMODULE:
|
|
97
|
-
state = state.merge({
|
|
98
|
-
sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene)
|
|
99
|
-
});
|
|
100
|
-
return _export.Item.replaceSubmodule(state, action.url).updatedState;
|
|
101
|
-
case _constants.ANIMATE_OBJECT:
|
|
102
|
-
// state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });
|
|
103
|
-
return _export.Item.animateObject(state, action.value).updatedState;
|
|
104
|
-
case _constants.REMOVE_REPLACE_SUBMODULE:
|
|
105
|
-
return _export.Item.removeReplacingSupport(state).updatedState;
|
|
106
|
-
case _constants.ITEM_MOVE_UP:
|
|
107
|
-
return _export.Item.updateItemsAltitude(state, action.layerID, action.itemID, action.value).updatedState;
|
|
108
|
-
case _constants.SELECT_TOOL_DRAWING_ITEM_3D:
|
|
109
|
-
return _export.Item.selectToolDrawingItem3D(state, action.sceneComponentType).updatedState;
|
|
110
|
-
case _constants.SET_DOOR_STYLE:
|
|
111
|
-
return _export.Item.setDoorStyle(state, action.doorStyle, action.pathes, action.isAll).updatedState;
|
|
112
|
-
case _constants.SET_HANDLE_MATERIAL:
|
|
113
|
-
return _export.Item.setHandleMaterial(state, action.material).updatedState;
|
|
114
|
-
case _constants.SET_DOOR_HANDLE:
|
|
115
|
-
return _export.Item.setDoorHandle(state, action.doorHandle).updatedState;
|
|
116
|
-
case _constants.SET_COUNTER_TOP:
|
|
117
|
-
return _export.Item.setCounterTop(state, action.counterTop).updatedState;
|
|
118
|
-
case _constants.SET_MOLDING:
|
|
119
|
-
return _export.Item.setMolding(state, action.molding, action.isAll).updatedState;
|
|
120
|
-
case _constants.UPDATE_MOLDING:
|
|
121
|
-
return _export.Item.updateMolding(state).updatedState;
|
|
122
|
-
case _constants.SET_WALL_COLOR:
|
|
123
|
-
state = state.merge({
|
|
124
|
-
sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene)
|
|
125
|
-
}); // save history when this actino performed,so undo enable
|
|
126
|
-
return _export.Item.setWallColor(state, action.wallColor).updatedState;
|
|
127
|
-
case _constants.SET_MODELLING:
|
|
128
|
-
return _export.Item.setModelling(state, action.model).updatedState;
|
|
129
|
-
case _constants.SET_BACKSPLASH:
|
|
130
|
-
return _export.Item.setBacksplash(state, action.backsplash).updatedState;
|
|
131
|
-
case _constants.SET_BACKSPLASH_VISIBLE:
|
|
132
|
-
return _export.Item.setBacksplashVisible(state, action.itemID, action.backsplashVisible).updatedState;
|
|
133
|
-
case _constants.SET_APPLIANCE_MATERIAL:
|
|
134
|
-
return _export.Item.setApplianceMaterial(state, action.material).updatedState;
|
|
135
|
-
case _constants.SET_INITIAL_DOOR_STYLE:
|
|
136
|
-
return _export.Item.setInitialDoorStyle(state, action.doorStyle, action.oStyle).updatedState;
|
|
137
|
-
case _constants.UPDATE_ITEM_POSITION:
|
|
138
|
-
return _export.Item.updateItemPosition(state, action.layerID, action.itemID, action.pos).updatedState;
|
|
139
|
-
// case SET_MOVE_STATUS:
|
|
140
|
-
// return state.merge({ moveStatus: action.status });
|
|
141
|
-
// case SET_ROTATE_STATUS:
|
|
142
|
-
// return state.merge({ rotateStatus: action.status });
|
|
143
|
-
default:
|
|
144
|
-
return state;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
//# sourceMappingURL=items-reducer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"items-reducer.js","names":["_export","require","_export2","_constants","_default","state","action","type","STORE_DIST_ARRAY","Item","storeDistArray","layerID","itemID","distArray","updatedState","VALIDATE_ITEM_POSTIONS","validateItemPositions","END_LOADING","endLoading","TOGGLE_LOADING_CABINET","toggleLoadingCabinet","EDIT_WIDTH","editWidth","newWidth","DUPLICATE_SELECTED","duplicateSelected","currentObject","END_CREATING_CABINET","endCreatingCabinet","UPDATE_POPUP_OPEN","updatePopupOpen","value","SELECT_ITEM","select","SELECT_TOOL_DRAWING_ITEM","merge","sceneHistory","history","historyPush","scene","selectToolDrawingItem","sceneComponentType","oStyle","REPLACE_ITEM","replaceItem","selectedPos","selectedObject","UPDATE_DRAWING_ITEM","updateDrawingItem","x","y","END_DRAWING_ITEM","endDrawingItem","BEGIN_DRAGGING_ITEM","beginDraggingItem","BEGIN_DRAGGING_ITEM_3D","beginDraggingItem3D","UPDATE_DRAGGING_ITEM","updateDraggingItem","UPDATE_DRAGGING_ITEM_CHANGED","updateDraggingItemChanged","UPDATE_DRAGGING_ITEM_3DX","updateDraggingItem3DX","UPDATE_DRAGGING_ITEM_3DY","updateDraggingItem3DY","END_DRAGGING_ITEM","endDraggingItem","END_DRAGGING_ITEM_3D","endDraggingItem3D","BEGIN_ROTATING_ITEM","beginRotatingItem","BEGIN_ROTATING_ITEM_3D","beginRotatingItem3D","centerX","centerY","UPDATE_ROTATING_ITEM","updateRotatingItem","UPDATE_ROTATING_ITEM_CHANGED","updateRotatingItemChanged","rotation","END_ROTATING_ITEM","endRotatingItem","END_ROTATING_ITEM_3D","endRotatingItem3D","REPLACE_SUBMODULE","replaceSubmodule","url","ANIMATE_OBJECT","animateObject","REMOVE_REPLACE_SUBMODULE","removeReplacingSupport","ITEM_MOVE_UP","updateItemsAltitude","SELECT_TOOL_DRAWING_ITEM_3D","selectToolDrawingItem3D","SET_DOOR_STYLE","setDoorStyle","doorStyle","pathes","isAll","SET_HANDLE_MATERIAL","setHandleMaterial","material","SET_DOOR_HANDLE","setDoorHandle","doorHandle","SET_COUNTER_TOP","setCounterTop","counterTop","SET_MOLDING","setMolding","molding","UPDATE_MOLDING","updateMolding","SET_WALL_COLOR","setWallColor","wallColor","SET_MODELLING","setModelling","model","SET_BACKSPLASH","setBacksplash","backsplash","SET_BACKSPLASH_VISIBLE","setBacksplashVisible","backsplashVisible","SET_APPLIANCE_MATERIAL","setApplianceMaterial","SET_INITIAL_DOOR_STYLE","setInitialDoorStyle","UPDATE_ITEM_POSITION","updateItemPosition","pos"],"sources":["../../src/reducers/items-reducer.js"],"sourcesContent":["import { Item, Area } from '../class/export';\r\nimport { history } from '../utils/export';\r\nimport {\r\n TOGGLE_LOADING_CABINET,\r\n SELECT_TOOL_DRAWING_ITEM,\r\n UPDATE_DRAWING_ITEM,\r\n END_DRAWING_ITEM,\r\n BEGIN_DRAGGING_ITEM,\r\n BEGIN_DRAGGING_ITEM_3D,\r\n UPDATE_DRAGGING_ITEM,\r\n UPDATE_DRAGGING_ITEM_CHANGED,\r\n UPDATE_DRAGGING_ITEM_3DX,\r\n UPDATE_DRAGGING_ITEM_3DY,\r\n END_DRAGGING_ITEM,\r\n END_DRAGGING_ITEM_3D,\r\n BEGIN_ROTATING_ITEM,\r\n BEGIN_ROTATING_ITEM_3D,\r\n UPDATE_ROTATING,\r\n UPDATE_ROTATING_ITEM,\r\n UPDATE_ROTATING_ITEM_CHANGED,\r\n END_ROTATING_ITEM,\r\n END_ROTATING_ITEM_3D,\r\n REPLACE_SUBMODULE,\r\n SELECT_ITEM,\r\n ANIMATE_OBJECT,\r\n REMOVE_REPLACE_SUBMODULE,\r\n ITEM_MOVE_UP,\r\n SELECT_TOOL_DRAWING_ITEM_3D,\r\n SET_DOOR_STYLE,\r\n SET_HANDLE_MATERIAL,\r\n SET_INITIAL_DOOR_STYLE,\r\n UPDATE_ITEM_POSITION,\r\n SET_DOOR_HANDLE,\r\n SET_WALL_COLOR,\r\n END_CREATING_CABINET,\r\n UPDATE_POPUP_OPEN,\r\n SET_MODELLING,\r\n SET_COUNTER_TOP,\r\n SET_BACKSPLASH,\r\n SET_BACKSPLASH_VISIBLE,\r\n SET_APPLIANCE_MATERIAL,\r\n DUPLICATE_SELECTED,\r\n EDIT_WIDTH,\r\n END_LOADING,\r\n SET_MOLDING,\r\n UPDATE_MOLDING,\r\n STORE_DIST_ARRAY,\r\n VALIDATE_ITEM_POSTIONS,\r\n REPLACE_ITEM\r\n // SET_MOVE_STATUS,\r\n // SET_ROTATE_STATUS\r\n} from '../constants';\r\n\r\nexport default function (state, action) {\r\n switch (action.type) {\r\n case STORE_DIST_ARRAY:\r\n return Item.storeDistArray(\r\n state,\r\n action.layerID,\r\n action.itemID,\r\n action.distArray\r\n ).updatedState;\r\n case VALIDATE_ITEM_POSTIONS:\r\n return Item.validateItemPositions(state, action.layerID).updatedState;\r\n case END_LOADING:\r\n return Item.endLoading(state).updatedState;\r\n case TOGGLE_LOADING_CABINET:\r\n return Item.toggleLoadingCabinet(state).updatedState;\r\n case EDIT_WIDTH:\r\n return Item.editWidth(\r\n state,\r\n action.newWidth,\r\n action.layerID,\r\n action.itemID\r\n ).updatedState;\r\n case DUPLICATE_SELECTED:\r\n return Item.duplicateSelected(state, action.currentObject).updatedState;\r\n case END_CREATING_CABINET:\r\n return Item.endCreatingCabinet(state).updatedState;\r\n case UPDATE_POPUP_OPEN:\r\n return Item.updatePopupOpen(state, action.value).updatedState;\r\n case SELECT_ITEM:\r\n return Item.select(state, action.layerID, action.itemID).updatedState;\r\n case SELECT_TOOL_DRAWING_ITEM:\r\n state = state.merge({\r\n sceneHistory: history.historyPush(state.sceneHistory, state.scene)\r\n });\r\n return Item.selectToolDrawingItem(\r\n state,\r\n action.sceneComponentType,\r\n action.oStyle\r\n ).updatedState;\r\n case REPLACE_ITEM:\r\n return Item.replaceItem(\r\n state,\r\n action.selectedPos,\r\n action.currentObject,\r\n action.selectedObject\r\n ).updatedState;\r\n case UPDATE_DRAWING_ITEM:\r\n return Item.updateDrawingItem(state, action.layerID, action.x, action.y)\r\n .updatedState;\r\n\r\n case END_DRAWING_ITEM:\r\n state = state.merge({\r\n sceneHistory: history.historyPush(state.sceneHistory, state.scene)\r\n });\r\n return Item.endDrawingItem(state, action.layerID, action.x, action.y)\r\n .updatedState;\r\n\r\n case BEGIN_DRAGGING_ITEM:\r\n state = state.merge({\r\n sceneHistory: history.historyPush(state.sceneHistory, state.scene)\r\n });\r\n return Item.beginDraggingItem(\r\n state,\r\n action.layerID,\r\n action.itemID,\r\n action.x,\r\n action.y\r\n ).updatedState;\r\n\r\n case BEGIN_DRAGGING_ITEM_3D:\r\n state = state.merge({\r\n sceneHistory: history.historyPush(state.sceneHistory, state.scene)\r\n });\r\n return Item.beginDraggingItem3D(\r\n state,\r\n action.layerID,\r\n action.itemID,\r\n action.x,\r\n action.y\r\n ).updatedState;\r\n\r\n case UPDATE_DRAGGING_ITEM:\r\n return Item.updateDraggingItem(state, action.x, action.y).updatedState;\r\n\r\n case UPDATE_DRAGGING_ITEM_CHANGED:\r\n return Item.updateDraggingItemChanged(\r\n state,\r\n action.x,\r\n action.y,\r\n action.layerID,\r\n action.itemID\r\n ).updatedState;\r\n\r\n case UPDATE_DRAGGING_ITEM_3DX:\r\n return Item.updateDraggingItem3DX(state, action.x).updatedState;\r\n\r\n case UPDATE_DRAGGING_ITEM_3DY:\r\n return Item.updateDraggingItem3DY(state, action.y).updatedState;\r\n\r\n case END_DRAGGING_ITEM:\r\n state = state.merge({\r\n sceneHistory: history.historyPush(state.sceneHistory, state.scene)\r\n });\r\n return Item.endDraggingItem(state, action.x, action.y).updatedState;\r\n\r\n case END_DRAGGING_ITEM_3D:\r\n state = state.merge({\r\n sceneHistory: history.historyPush(state.sceneHistory, state.scene)\r\n });\r\n return Item.endDraggingItem3D(state).updatedState;\r\n\r\n case BEGIN_ROTATING_ITEM:\r\n state = state.merge({\r\n sceneHistory: history.historyPush(state.sceneHistory, state.scene)\r\n });\r\n return Item.beginRotatingItem(\r\n state,\r\n action.layerID,\r\n action.itemID,\r\n action.x,\r\n action.y\r\n ).updatedState;\r\n\r\n case BEGIN_ROTATING_ITEM_3D:\r\n state = state.merge({\r\n sceneHistory: history.historyPush(state.sceneHistory, state.scene)\r\n });\r\n return Item.beginRotatingItem3D(\r\n state,\r\n action.layerID,\r\n action.itemID,\r\n action.x,\r\n action.y,\r\n action.centerX,\r\n action.centerY\r\n ).updatedState;\r\n\r\n case UPDATE_ROTATING_ITEM:\r\n return Item.updateRotatingItem(state, action.x, action.y).updatedState;\r\n\r\n case UPDATE_ROTATING_ITEM_CHANGED:\r\n return Item.updateRotatingItemChanged(\r\n state,\r\n action.rotation,\r\n action.layerID,\r\n action.itemID\r\n ).updatedState;\r\n\r\n case END_ROTATING_ITEM:\r\n state = state.merge({\r\n sceneHistory: history.historyPush(state.sceneHistory, state.scene)\r\n });\r\n return Item.endRotatingItem(state, action.x, action.y).updatedState;\r\n\r\n case END_ROTATING_ITEM_3D:\r\n state = state.merge({\r\n sceneHistory: history.historyPush(state.sceneHistory, state.scene)\r\n });\r\n return Item.endRotatingItem3D(state, action.x, action.y).updatedState;\r\n\r\n case REPLACE_SUBMODULE:\r\n state = state.merge({\r\n sceneHistory: history.historyPush(state.sceneHistory, state.scene)\r\n });\r\n return Item.replaceSubmodule(state, action.url).updatedState;\r\n case ANIMATE_OBJECT:\r\n // state = state.merge({ sceneHistory: history.historyPush(state.sceneHistory, state.scene) });\r\n return Item.animateObject(state, action.value).updatedState;\r\n case REMOVE_REPLACE_SUBMODULE:\r\n return Item.removeReplacingSupport(state).updatedState;\r\n case ITEM_MOVE_UP:\r\n return Item.updateItemsAltitude(\r\n state,\r\n action.layerID,\r\n action.itemID,\r\n action.value\r\n ).updatedState;\r\n case SELECT_TOOL_DRAWING_ITEM_3D:\r\n return Item.selectToolDrawingItem3D(state, action.sceneComponentType)\r\n .updatedState;\r\n case SET_DOOR_STYLE:\r\n return Item.setDoorStyle(\r\n state,\r\n action.doorStyle,\r\n action.pathes,\r\n action.isAll\r\n ).updatedState;\r\n case SET_HANDLE_MATERIAL:\r\n return Item.setHandleMaterial(state, action.material).updatedState;\r\n case SET_DOOR_HANDLE:\r\n return Item.setDoorHandle(state, action.doorHandle).updatedState;\r\n case SET_COUNTER_TOP:\r\n return Item.setCounterTop(state, action.counterTop).updatedState;\r\n case SET_MOLDING:\r\n return Item.setMolding(state, action.molding, action.isAll).updatedState;\r\n case UPDATE_MOLDING:\r\n return Item.updateMolding(state).updatedState;\r\n case SET_WALL_COLOR:\r\n state = state.merge({\r\n sceneHistory: history.historyPush(state.sceneHistory, state.scene)\r\n }); // save history when this actino performed,so undo enable\r\n return Item.setWallColor(state, action.wallColor).updatedState;\r\n case SET_MODELLING:\r\n return Item.setModelling(state, action.model).updatedState;\r\n case SET_BACKSPLASH:\r\n return Item.setBacksplash(state, action.backsplash).updatedState;\r\n case SET_BACKSPLASH_VISIBLE:\r\n return Item.setBacksplashVisible(\r\n state,\r\n action.itemID,\r\n action.backsplashVisible\r\n ).updatedState;\r\n case SET_APPLIANCE_MATERIAL:\r\n return Item.setApplianceMaterial(state, action.material).updatedState;\r\n case SET_INITIAL_DOOR_STYLE:\r\n return Item.setInitialDoorStyle(state, action.doorStyle, action.oStyle)\r\n .updatedState;\r\n\r\n case UPDATE_ITEM_POSITION:\r\n return Item.updateItemPosition(\r\n state,\r\n action.layerID,\r\n action.itemID,\r\n action.pos\r\n ).updatedState;\r\n // case SET_MOVE_STATUS:\r\n // return state.merge({ moveStatus: action.status });\r\n // case SET_ROTATE_STATUS:\r\n // return state.merge({ rotateStatus: action.status });\r\n default:\r\n return state;\r\n }\r\n}\r\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAmDe,SAAAG,SAAUC,KAAK,EAAEC,MAAM,EAAE;EACtC,QAAQA,MAAM,CAACC,IAAI;IACjB,KAAKC,2BAAgB;MACnB,OAAOC,YAAI,CAACC,cAAc,CACxBL,KAAK,EACLC,MAAM,CAACK,OAAO,EACdL,MAAM,CAACM,MAAM,EACbN,MAAM,CAACO,SACT,CAAC,CAACC,YAAY;IAChB,KAAKC,iCAAsB;MACzB,OAAON,YAAI,CAACO,qBAAqB,CAACX,KAAK,EAAEC,MAAM,CAACK,OAAO,CAAC,CAACG,YAAY;IACvE,KAAKG,sBAAW;MACd,OAAOR,YAAI,CAACS,UAAU,CAACb,KAAK,CAAC,CAACS,YAAY;IAC5C,KAAKK,iCAAsB;MACzB,OAAOV,YAAI,CAACW,oBAAoB,CAACf,KAAK,CAAC,CAACS,YAAY;IACtD,KAAKO,qBAAU;MACb,OAAOZ,YAAI,CAACa,SAA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1H,KAAK,EAAEC,MAAM,CAACgG,QAAQ,CAAC,CAACxF,YAAY;IACvE,KAAKkH,iCAAsB;MACzB,OAAOvH,YAAI,CAACwH,mBAAmB,CAAC5H,KAAK,EAAEC,MAAM,CAAC2F,SAAS,EAAE3F,MAAM,CAACoC,MAAM,CAAC,CACpE5B,YAAY;IAEjB,KAAKoH,+BAAoB;MACvB,OAAOzH,YAAI,CAAC0H,kBAAkB,CAC5B9H,KAAK,EACLC,MAAM,CAACK,OAAO,EACdL,MAAM,CAACM,MAAM,EACbN,MAAM,CAAC8H,GACT,CAAC,CAACtH,YAAY;IAChB;IACA;IACA;IACA;IACA;MACE,OAAOT,KAAK;EAChB;AACF","ignoreList":[]}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = _default;
|
|
7
|
-
var _export = require("../class/export");
|
|
8
|
-
var _export2 = require("../utils/export");
|
|
9
|
-
var _constants = require("../constants");
|
|
10
|
-
function _default(state, action) {
|
|
11
|
-
switch (action.type) {
|
|
12
|
-
case _constants.SELECT_TOOL_DRAWING_LINE:
|
|
13
|
-
sessionStorage.setItem('hintTextShow', true);
|
|
14
|
-
setTimeout(function () {
|
|
15
|
-
sessionStorage.setItem('hintTextShow', false);
|
|
16
|
-
}, 500);
|
|
17
|
-
return _export.Line.selectToolDrawingLine(state, action.sceneComponentType).updatedState;
|
|
18
|
-
case _constants.BEGIN_DRAWING_LINE:
|
|
19
|
-
state = state.merge({
|
|
20
|
-
sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene)
|
|
21
|
-
});
|
|
22
|
-
return _export.Line.beginDrawingLine(state, action.layerID, action.x, action.y).updatedState;
|
|
23
|
-
case _constants.UPDATE_DRAWING_LINE:
|
|
24
|
-
return _export.Line.updateDrawingLine(state, action.x, action.y, action.relatedLines).updatedState;
|
|
25
|
-
case _constants.STOP_DRAWING_LINE:
|
|
26
|
-
return _export.Line.stopDrawingLine(state).updatedState;
|
|
27
|
-
case _constants.END_DRAWING_LINE:
|
|
28
|
-
state = state.merge({
|
|
29
|
-
sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene)
|
|
30
|
-
});
|
|
31
|
-
return _export.Line.endDrawingLine(state, action.x, action.y, action.relatedLines).updatedState;
|
|
32
|
-
case _constants.BEGIN_DRAGGING_LINE:
|
|
33
|
-
state = state.merge({
|
|
34
|
-
sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene)
|
|
35
|
-
});
|
|
36
|
-
return _export.Line.beginDraggingLine(state, action.layerID, action.lineID, action.x, action.y).updatedState;
|
|
37
|
-
case _constants.UPDATE_DRAGGING_LINE:
|
|
38
|
-
return _export.Line.updateDraggingLine(state, action.x, action.y, action.relatedLines).updatedState;
|
|
39
|
-
case _constants.END_DRAGGING_LINE:
|
|
40
|
-
state = state.merge({
|
|
41
|
-
sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene)
|
|
42
|
-
});
|
|
43
|
-
return _export.Line.endDraggingLine(state, action.x, action.y, action.relatedLines).updatedState;
|
|
44
|
-
case _constants.SELECT_LINE:
|
|
45
|
-
return _export.Line.select(state, action.layerID, action.lineID).updatedState;
|
|
46
|
-
case _constants.SET_RELATED_LINE:
|
|
47
|
-
return _export.Line.setRelatedLine(state, action.layerID, action.lineID, action.intersection).updatedState;
|
|
48
|
-
default:
|
|
49
|
-
return state;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
//# sourceMappingURL=lines-reducer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lines-reducer.js","names":["_export","require","_export2","_constants","_default","state","action","type","SELECT_TOOL_DRAWING_LINE","sessionStorage","setItem","setTimeout","Line","selectToolDrawingLine","sceneComponentType","updatedState","BEGIN_DRAWING_LINE","merge","sceneHistory","history","historyPush","scene","beginDrawingLine","layerID","x","y","UPDATE_DRAWING_LINE","updateDrawingLine","relatedLines","STOP_DRAWING_LINE","stopDrawingLine","END_DRAWING_LINE","endDrawingLine","BEGIN_DRAGGING_LINE","beginDraggingLine","lineID","UPDATE_DRAGGING_LINE","updateDraggingLine","END_DRAGGING_LINE","endDraggingLine","SELECT_LINE","select","SET_RELATED_LINE","setRelatedLine","intersection"],"sources":["../../src/reducers/lines-reducer.js"],"sourcesContent":["import { Line } from '../class/export';\r\nimport { history } from '../utils/export';\r\nimport {\r\n SELECT_TOOL_DRAWING_LINE,\r\n BEGIN_DRAWING_LINE,\r\n UPDATE_DRAWING_LINE,\r\n END_DRAWING_LINE,\r\n BEGIN_DRAGGING_LINE,\r\n UPDATE_DRAGGING_LINE,\r\n END_DRAGGING_LINE,\r\n SELECT_LINE,\r\n STOP_DRAWING_LINE,\r\n SET_RELATED_LINE\r\n} from '../constants';\r\n\r\nexport default function (state, action) {\r\n switch (action.type) {\r\n case SELECT_TOOL_DRAWING_LINE:\r\n sessionStorage.setItem('hintTextShow', true);\r\n setTimeout(() => {\r\n sessionStorage.setItem('hintTextShow', false);\r\n }, 500);\r\n return Line.selectToolDrawingLine(state, action.sceneComponentType)\r\n .updatedState;\r\n\r\n case BEGIN_DRAWING_LINE:\r\n state = state.merge({\r\n sceneHistory: history.historyPush(state.sceneHistory, state.scene)\r\n });\r\n return Line.beginDrawingLine(state, action.layerID, action.x, action.y)\r\n .updatedState;\r\n\r\n case UPDATE_DRAWING_LINE:\r\n return Line.updateDrawingLine(\r\n state,\r\n action.x,\r\n action.y,\r\n action.relatedLines\r\n ).updatedState;\r\n\r\n case STOP_DRAWING_LINE:\r\n return Line.stopDrawingLine(state).updatedState;\r\n\r\n case END_DRAWING_LINE:\r\n state = state.merge({\r\n sceneHistory: history.historyPush(state.sceneHistory, state.scene)\r\n });\r\n return Line.endDrawingLine(state, action.x, action.y, action.relatedLines)\r\n .updatedState;\r\n\r\n case BEGIN_DRAGGING_LINE:\r\n state = state.merge({\r\n sceneHistory: history.historyPush(state.sceneHistory, state.scene)\r\n });\r\n return Line.beginDraggingLine(\r\n state,\r\n action.layerID,\r\n action.lineID,\r\n action.x,\r\n action.y\r\n ).updatedState;\r\n\r\n case UPDATE_DRAGGING_LINE:\r\n return Line.updateDraggingLine(\r\n state,\r\n action.x,\r\n action.y,\r\n action.relatedLines\r\n ).updatedState;\r\n\r\n case END_DRAGGING_LINE:\r\n state = state.merge({\r\n sceneHistory: history.historyPush(state.sceneHistory, state.scene)\r\n });\r\n return Line.endDraggingLine(\r\n state,\r\n action.x,\r\n action.y,\r\n action.relatedLines\r\n ).updatedState;\r\n\r\n case SELECT_LINE:\r\n return Line.select(state, action.layerID, action.lineID).updatedState;\r\n\r\n case SET_RELATED_LINE:\r\n return Line.setRelatedLine(\r\n state,\r\n action.layerID,\r\n action.lineID,\r\n action.intersection\r\n ).updatedState;\r\n\r\n default:\r\n return state;\r\n }\r\n}\r\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAae,SAAAG,SAAUC,KAAK,EAAEC,MAAM,EAAE;EACtC,QAAQA,MAAM,CAACC,IAAI;IACjB,KAAKC,mCAAwB;MAC3BC,cAAc,CAACC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;MAC5CC,UAAU,CAAC,YAAM;QACfF,cAAc,CAACC,OAAO,CAAC,cAAc,EAAE,KAAK,CAAC;MAC/C,CAAC,EAAE,GAAG,CAAC;MACP,OAAOE,YAAI,CAACC,qBAAqB,CAACR,KAAK,EAAEC,MAAM,CAACQ,kBAAkB,CAAC,CAChEC,YAAY;IAEjB,KAAKC,6BAAkB;MACrBX,KAAK,GAAGA,KAAK,CAACY,KAAK,CAAC;QAClBC,YAAY,EAAEC,gBAAO,CAACC,WAAW,CAACf,KAAK,CAACa,YAAY,EAAEb,KAAK,CAACgB,KAAK;MACnE,CAAC,CAAC;MACF,OAAOT,YAAI,CAACU,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