kitchen-simulator 5.0.0-test.3 → 5.0.0-test.5
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 -13
- 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
- package/src/@history.js +0 -3
- package/src/AppContext.js +0 -5
- package/src/KitchenConfigurator.jsx +0 -1517
- package/src/KitchenConfiguratorApp.jsx +0 -443
- package/src/actions/area-actions.js +0 -15
- package/src/actions/export.js +0 -38
- package/src/actions/groups-actions.js +0 -102
- package/src/actions/holes-actions.js +0 -152
- package/src/actions/items-actions.js +0 -393
- package/src/actions/lines-actions.js +0 -103
- package/src/actions/project-actions.js +0 -391
- package/src/actions/scene-actions.js +0 -44
- package/src/actions/user-actions.js +0 -75
- package/src/actions/vertices-actions.js +0 -34
- package/src/actions/viewer2d-actions.js +0 -79
- package/src/actions/viewer3d-actions.js +0 -32
- package/src/catalog/areas/area/planner-element.jsx +0 -43
- package/src/catalog/areas/area/textures/ceramic-tile.jpg +0 -0
- package/src/catalog/areas/area/textures/grass.jpg +0 -0
- package/src/catalog/areas/area/textures/parquet.jpg +0 -0
- package/src/catalog/areas/area/textures/strand-porcelain.jpg +0 -0
- package/src/catalog/areas/area/textures/tile1.jpg +0 -0
- package/src/catalog/back.png +0 -0
- package/src/catalog/catalog.js +0 -258
- package/src/catalog/doors.png +0 -0
- package/src/catalog/doorways.png +0 -0
- package/src/catalog/envMap/nx.hdr +0 -0
- package/src/catalog/envMap/ny.hdr +0 -0
- package/src/catalog/envMap/nz.hdr +0 -0
- package/src/catalog/envMap/px.hdr +0 -0
- package/src/catalog/envMap/py.hdr +0 -0
- package/src/catalog/envMap/pz.hdr +0 -0
- package/src/catalog/factories/area-factory-3d.js +0 -252
- package/src/catalog/factories/area-factory.jsx +0 -102
- package/src/catalog/factories/export.js +0 -9
- package/src/catalog/factories/wall-factory-3d.js +0 -296
- package/src/catalog/factories/wall-factory.jsx +0 -321
- package/src/catalog/holes/door-closet/planner-element.jsx +0 -251
- package/src/catalog/holes/door-double/door_double.png +0 -0
- package/src/catalog/holes/door-double/planner-element.jsx +0 -391
- package/src/catalog/holes/door-exterior/planner-element.jsx +0 -245
- package/src/catalog/holes/door-interior/planner-element.jsx +0 -256
- package/src/catalog/holes/door-panic/panicDoor.png +0 -0
- package/src/catalog/holes/door-panic/planner-element.jsx +0 -594
- package/src/catalog/holes/door-panic-double/panicDoorDouble.png +0 -0
- package/src/catalog/holes/door-panic-double/planner-element.jsx +0 -574
- package/src/catalog/holes/door-sliding/planner-element.jsx +0 -256
- package/src/catalog/holes/doorway-framed/planner-element.jsx +0 -169
- package/src/catalog/holes/doorway-frameless/planner-element.jsx +0 -116
- package/src/catalog/holes/gate/gate.jpg +0 -0
- package/src/catalog/holes/window-clear/planner-element.jsx +0 -181
- package/src/catalog/holes/window-clear/texture.png +0 -0
- package/src/catalog/holes/window-cross/planner-element.jsx +0 -180
- package/src/catalog/holes/window-cross/texture.png +0 -0
- package/src/catalog/holes/window-double-hung/planner-element.jsx +0 -366
- package/src/catalog/holes/window-double-hung/texture.png +0 -0
- package/src/catalog/holes/window-vertical/planner-element.jsx +0 -290
- package/src/catalog/holes/window-vertical/texture.png +0 -0
- package/src/catalog/lines/wall/planner-element.jsx +0 -73
- package/src/catalog/lines/wall/textures/bricks-normal.jpg +0 -0
- package/src/catalog/lines/wall/textures/bricks-normal2.jpg +0 -0
- package/src/catalog/lines/wall/textures/bricks.jpg +0 -0
- package/src/catalog/lines/wall/textures/bricks2.jpg +0 -0
- package/src/catalog/lines/wall/textures/bricks3.jpg +0 -0
- package/src/catalog/lines/wall/textures/morden-normal.jpg +0 -0
- package/src/catalog/lines/wall/textures/morden.jpg +0 -0
- package/src/catalog/lines/wall/textures/painted-normal.jpg +0 -0
- package/src/catalog/lines/wall/textures/painted.jpg +0 -0
- package/src/catalog/lines/wall/textures/plaster-normal.jpg +0 -0
- package/src/catalog/lines/wall/textures/plaster.jpg +0 -0
- package/src/catalog/lines/wall/wall.png +0 -0
- package/src/catalog/molding/molding-dcm/planner-element.jsx +0 -35
- package/src/catalog/molding/molding-dcm/texture.png +0 -0
- package/src/catalog/molding/molding-fbm/planner-element.jsx +0 -35
- package/src/catalog/molding/molding-fbm/texture.png +0 -0
- package/src/catalog/molding/molding-lrm/planner-element.jsx +0 -35
- package/src/catalog/molding/molding-lrm/texture.png +0 -0
- package/src/catalog/properties/export.js +0 -33
- package/src/catalog/properties/property-checkbox.jsx +0 -123
- package/src/catalog/properties/property-color.jsx +0 -52
- package/src/catalog/properties/property-enum.jsx +0 -87
- package/src/catalog/properties/property-hidden.jsx +0 -22
- package/src/catalog/properties/property-lenght-measure.jsx +0 -113
- package/src/catalog/properties/property-length-measure.jsx +0 -129
- package/src/catalog/properties/property-length-measure_hole.jsx +0 -110
- package/src/catalog/properties/property-number.jsx +0 -63
- package/src/catalog/properties/property-read-only.jsx +0 -37
- package/src/catalog/properties/property-string.jsx +0 -59
- package/src/catalog/properties/property-toggle.jsx +0 -51
- package/src/catalog/properties/shared-property-style.js +0 -13
- package/src/catalog/utils/FuseUtils.js +0 -61
- package/src/catalog/utils/exporter.js +0 -173
- package/src/catalog/utils/geom-utils.js +0 -301
- package/src/catalog/utils/item-loader.jsx +0 -2122
- package/src/catalog/utils/load-obj.js +0 -113
- package/src/catalog/utils/mtl-loader.js +0 -462
- package/src/catalog/utils/obj-loader.js +0 -544
- package/src/catalog/windows.png +0 -0
- package/src/class/FuseUtils.js +0 -61
- package/src/class/area.js +0 -159
- package/src/class/export.js +0 -37
- package/src/class/group.js +0 -565
- package/src/class/guide.js +0 -44
- package/src/class/hole.js +0 -1359
- package/src/class/item.js +0 -2050
- package/src/class/layer.js +0 -926
- package/src/class/line.js +0 -1780
- package/src/class/project.js +0 -875
- package/src/class/vertex.js +0 -409
- package/src/components/atoms/Snackbar/index.jsx +0 -43
- package/src/components/atoms/radio-button/index.jsx +0 -20
- package/src/components/atoms/radio-button/styles.js +0 -56
- package/src/components/button/MainButton.jsx +0 -157
- package/src/components/button/ToggleMeasureButton.jsx +0 -65
- package/src/components/catalog-view/catalog-breadcrumb.jsx +0 -53
- package/src/components/catalog-view/catalog-item.jsx +0 -229
- package/src/components/catalog-view/catalog-list.jsx +0 -173
- package/src/components/catalog-view/catalog-page-item.jsx +0 -110
- package/src/components/catalog-view/catalog-turn-back-page-item.jsx +0 -80
- package/src/components/configurator/custom-configurator.jsx +0 -77
- package/src/components/configurator/project-configurator.jsx +0 -120
- package/src/components/content.jsx +0 -136
- package/src/components/export.js +0 -36
- package/src/components/firstsetting/button/styles.js +0 -223
- package/src/components/firstsetting/export.js +0 -9
- package/src/components/firstsetting/firstsetting-content-button.jsx +0 -198
- package/src/components/firstsetting/firstsetting-toggle-button.jsx +0 -101
- package/src/components/firstsetting/firstsetting.jsx +0 -814
- package/src/components/footerbar/button/ControlButton.jsx +0 -43
- package/src/components/footerbar/button/DirectionButton.jsx +0 -54
- package/src/components/footerbar/button/DirectionPanSpinButton.jsx +0 -36
- package/src/components/footerbar/button/ToggleButton.jsx +0 -58
- package/src/components/footerbar/button/ToggleConvertButton.jsx +0 -48
- package/src/components/footerbar/button/ToggleMeasureButton.jsx +0 -33
- package/src/components/footerbar/button/styles.js +0 -217
- package/src/components/footerbar/export.js +0 -9
- package/src/components/footerbar/footer-content-button.jsx +0 -198
- package/src/components/footerbar/footer-toggle-button.jsx +0 -101
- package/src/components/footerbar/footerbar.jsx +0 -1103
- package/src/components/footerbar/styles.js +0 -263
- package/src/components/header/button/MenuButton.jsx +0 -46
- package/src/components/header/button/SaveButton.jsx +0 -54
- package/src/components/header/button/styles.js +0 -181
- package/src/components/header/export.js +0 -5
- package/src/components/header/header.jsx +0 -631
- package/src/components/header/header.style.css +0 -47
- package/src/components/header/styles.js +0 -320
- package/src/components/login/Login.js +0 -77
- package/src/components/login/LoginForm/index.js +0 -108
- package/src/components/login/Register.js +0 -83
- package/src/components/login/RegisterForm/index.js +0 -171
- package/src/components/login/jwtService.js +0 -201
- package/src/components/login/style.css +0 -158
- package/src/components/login/style.scss +0 -260
- package/src/components/molecules/slider/index.jsx +0 -15
- package/src/components/molecules/slider/styles.js +0 -0
- package/src/components/molecules/slider/styles.scss +0 -3
- package/src/components/myprojects/export.js +0 -5
- package/src/components/myprojects/index.jsx +0 -445
- package/src/components/myprojects/styles.js +0 -241
- package/src/components/sidebar/custom-accordion.jsx +0 -48
- package/src/components/sidebar/export.js +0 -15
- package/src/components/sidebar/panel-element-editor/attributes-editor/attributes-editor.jsx +0 -73
- package/src/components/sidebar/panel-element-editor/attributes-editor/confirm-popup.jsx +0 -101
- package/src/components/sidebar/panel-element-editor/attributes-editor/hole-attributes-editor.jsx +0 -149
- package/src/components/sidebar/panel-element-editor/attributes-editor/item-attributes-editor.jsx +0 -316
- package/src/components/sidebar/panel-element-editor/attributes-editor/line-attributes-editor.jsx +0 -108
- package/src/components/sidebar/panel-element-editor/element-editor.jsx +0 -1070
- package/src/components/sidebar/panel-element-editor/multi-elements-editor.jsx +0 -0
- package/src/components/sidebar/panel-element-editor/panel-element-editor.jsx +0 -104
- package/src/components/sidebar/panel-element-editor/panel-multi-elements-editor.jsx +0 -155
- package/src/components/sidebar/panel-group-editor.jsx +0 -272
- package/src/components/sidebar/panel-groups.jsx +0 -310
- package/src/components/sidebar/panel-guides.jsx +0 -192
- package/src/components/sidebar/panel-layer-elements.jsx +0 -298
- package/src/components/sidebar/panel-layers.jsx +0 -381
- package/src/components/sidebar/panel.jsx +0 -71
- package/src/components/sidebar/sidebar.jsx +0 -106
- package/src/components/sidebar/toolbar-panel.jsx +0 -139
- package/src/components/sign/export.js +0 -7
- package/src/components/sign/main/index.jsx +0 -523
- package/src/components/sign/main/styles.js +0 -163
- package/src/components/style/button.jsx +0 -95
- package/src/components/style/cancel-button.jsx +0 -20
- package/src/components/style/content-container.jsx +0 -29
- package/src/components/style/content-title.jsx +0 -20
- package/src/components/style/delete-button.jsx +0 -23
- package/src/components/style/export.jsx +0 -48
- package/src/components/style/form-block.jsx +0 -13
- package/src/components/style/form-color-input.jsx +0 -27
- package/src/components/style/form-label.jsx +0 -15
- package/src/components/style/form-number-input.jsx +0 -196
- package/src/components/style/form-number-input_2.jsx +0 -191
- package/src/components/style/form-select.jsx +0 -38
- package/src/components/style/form-slider.jsx +0 -36
- package/src/components/style/form-submit-button.jsx +0 -23
- package/src/components/style/form-text-input.jsx +0 -65
- package/src/components/toolbar/button/ControlButton.jsx +0 -41
- package/src/components/toolbar/button/DirectionButton.jsx +0 -34
- package/src/components/toolbar/button/RightButton.jsx +0 -103
- package/src/components/toolbar/button/ToggleButton.jsx +0 -41
- package/src/components/toolbar/button/index.jsx +0 -55
- package/src/components/toolbar/button/styles.js +0 -127
- package/src/components/toolbar/components/DoorStyleMenu.jsx +0 -103
- package/src/components/toolbar/components/Pricing.jsx +0 -126
- package/src/components/toolbar/components/ReviewForQuote.jsx +0 -635
- package/src/components/toolbar/export.js +0 -21
- package/src/components/toolbar/main/Alert.js +0 -122
- package/src/components/toolbar/main/TakePictureModal.jsx +0 -104
- package/src/components/toolbar/main/confirm-popup.jsx +0 -99
- package/src/components/toolbar/main/index.jsx +0 -5687
- package/src/components/toolbar/main/lShaped.json +0 -311
- package/src/components/toolbar/main/longNarrow.json +0 -238
- package/src/components/toolbar/main/myComponents.js +0 -123
- package/src/components/toolbar/main/oRectangle.json +0 -220
- package/src/components/toolbar/main/rectangle.json +0 -238
- package/src/components/toolbar/main/style.css +0 -107
- package/src/components/toolbar/main/styles.js +0 -696
- package/src/components/toolbar/plugin-item.jsx +0 -123
- package/src/components/toolbar/popup/appliance/appliance-category/index.jsx +0 -73
- package/src/components/toolbar/popup/appliance/choose-appliance/index.jsx +0 -102
- package/src/components/toolbar/popup/appliance/index.jsx +0 -83
- package/src/components/toolbar/popup/autosaveprompt/index.jsx +0 -150
- package/src/components/toolbar/popup/autosaveprompt/styles.css +0 -64
- package/src/components/toolbar/popup/autosaveprompt/styles.js +0 -40
- package/src/components/toolbar/popup/cabinet/cabinet-category/index.jsx +0 -73
- package/src/components/toolbar/popup/cabinet/choose-product/index.jsx +0 -119
- package/src/components/toolbar/popup/cabinet/index.jsx +0 -85
- package/src/components/toolbar/popup/doorStyle/choose-style/index.jsx +0 -63
- package/src/components/toolbar/popup/doorStyle/index.jsx +0 -71
- package/src/components/toolbar/popup/doorStyle/style-category/index.jsx +0 -139
- package/src/components/toolbar/popup/downloadsummary/downloadSummaryContext.js +0 -2
- package/src/components/toolbar/popup/downloadsummary/downloadSummaryTemp.jsx +0 -157
- package/src/components/toolbar/popup/downloadsummary/index.jsx +0 -643
- package/src/components/toolbar/popup/downloadsummary/show2D/show2DView.jsx +0 -51
- package/src/components/toolbar/popup/downloadsummary/show2D/viewer2DDownLoad.jsx +0 -175
- package/src/components/toolbar/popup/downloadsummary/show3D/show3DView.jsx +0 -283
- package/src/components/toolbar/popup/downloadsummary/show3D/viewer3DDownLoad.jsx +0 -2257
- package/src/components/toolbar/popup/downloadsummary/showCabinetInfo.js +0 -93
- package/src/components/toolbar/popup/downloadsummary/showElevation/showElevationView.jsx +0 -132
- package/src/components/toolbar/popup/downloadsummary/showElevation/viewer3DElevationDownload.jsx +0 -2198
- package/src/components/toolbar/popup/downloadsummary/showElevation/viewerElevationDownload.jsx +0 -152
- package/src/components/toolbar/popup/downloadsummary/showWarranty.jsx +0 -149
- package/src/components/toolbar/popup/downloadsummary/styles.css +0 -177
- package/src/components/toolbar/popup/downloadsummary/styles.js +0 -453
- package/src/components/toolbar/popup/finishingtouch/category/index.jsx +0 -34
- package/src/components/toolbar/popup/finishingtouch/index.jsx +0 -58
- package/src/components/toolbar/popup/finishingtouch/material-edit.jsx +0 -112
- package/src/components/toolbar/popup/finishingtouch/product/index.jsx +0 -116
- package/src/components/toolbar/popup/floorplan/choose-floor/confirm-popup.jsx +0 -101
- package/src/components/toolbar/popup/floorplan/choose-floor/index.jsx +0 -254
- package/src/components/toolbar/popup/floorplan/choose-floor/lShaped.json +0 -311
- package/src/components/toolbar/popup/floorplan/choose-floor/longNarrow.json +0 -238
- package/src/components/toolbar/popup/floorplan/choose-floor/oRectangle.json +0 -220
- package/src/components/toolbar/popup/floorplan/choose-floor/rectangle.json +0 -238
- package/src/components/toolbar/popup/floorplan/choose-floor/styles.js +0 -86
- package/src/components/toolbar/popup/floorplan/floor-category/index.jsx +0 -109
- package/src/components/toolbar/popup/floorplan/index.jsx +0 -60
- package/src/components/toolbar/popup/index.jsx +0 -241
- package/src/components/toolbar/popup/newproject/index.jsx +0 -59
- package/src/components/toolbar/popup/newproject/styles.css +0 -64
- package/src/components/toolbar/popup/newproject/styles.js +0 -41
- package/src/components/toolbar/popup/product/appliance.jsx +0 -54
- package/src/components/toolbar/popup/product/cabinetproduct.jsx +0 -15
- package/src/components/toolbar/popup/product/doorstyle.jsx +0 -58
- package/src/components/toolbar/popup/product/doorstyleproduct.jsx +0 -47
- package/src/components/toolbar/popup/product/floor.jsx +0 -36
- package/src/components/toolbar/popup/product/floorproduct.jsx +0 -42
- package/src/components/toolbar/popup/product/index.jsx +0 -36
- package/src/components/toolbar/popup/product/primary.jsx +0 -77
- package/src/components/toolbar/popup/product/productline.jsx +0 -93
- package/src/components/toolbar/popup/product/reviewItem.jsx +0 -427
- package/src/components/toolbar/popup/product/reviewMolding.jsx +0 -310
- package/src/components/toolbar/popup/product/style.css +0 -54
- package/src/components/toolbar/popup/product/styles.js +0 -260
- package/src/components/toolbar/popup/savedesign/FullPictureForm.jsx +0 -146
- package/src/components/toolbar/popup/savedesign/index.jsx +0 -495
- package/src/components/toolbar/popup/savedesign/savedesign.style.css +0 -16
- package/src/components/toolbar/popup/savedesign/styles.js +0 -151
- package/src/components/toolbar/popup/setDoorStyleOption/index.jsx +0 -87
- package/src/components/toolbar/popup/styles.js +0 -909
- package/src/components/toolbar/popup/submitforquote/AddToCartOptions.jsx +0 -192
- package/src/components/toolbar/popup/submitforquote/CustomerRequestsForm.jsx +0 -96
- package/src/components/toolbar/popup/submitforquote/SkipDesignerReview.jsx +0 -54
- package/src/components/toolbar/popup/submitforquote/StepDots.jsx +0 -25
- package/src/components/toolbar/popup/submitforquote/cart-choice.jsx +0 -116
- package/src/components/toolbar/popup/submitforquote/doorstyle-menus.js +0 -38
- package/src/components/toolbar/popup/submitforquote/index.jsx +0 -698
- package/src/components/toolbar/popup/submitforquote/styles.css +0 -105
- package/src/components/toolbar/popup/submitforquote/styles.js +0 -294
- package/src/components/toolbar/popup/submitprompt/index.jsx +0 -89
- package/src/components/toolbar/popup/submitprompt/styles.css +0 -64
- package/src/components/toolbar/popup/submitprompt/styles.js +0 -42
- package/src/components/toolbar/toolbar-button.jsx +0 -90
- package/src/components/toolbar/toolbar-load-button.jsx +0 -36
- package/src/components/toolbar/toolbar-save-button.jsx +0 -32
- package/src/components/tutorial-view/Modal.jsx +0 -584
- package/src/components/tutorial-view/style.css +0 -111
- package/src/components/tutorial-view/styles.js +0 -65
- package/src/components/viewer2d/area.jsx +0 -98
- package/src/components/viewer2d/export.js +0 -48
- package/src/components/viewer2d/grids/grid-horizontal-streak.jsx +0 -40
- package/src/components/viewer2d/grids/grid-streak.jsx +0 -32
- package/src/components/viewer2d/grids/grid-vertical-streak.jsx +0 -41
- package/src/components/viewer2d/grids/grids.jsx +0 -30
- package/src/components/viewer2d/group.jsx +0 -57
- package/src/components/viewer2d/item.jsx +0 -618
- package/src/components/viewer2d/layer.jsx +0 -214
- package/src/components/viewer2d/line.jsx +0 -1358
- package/src/components/viewer2d/ruler.jsx +0 -136
- package/src/components/viewer2d/rulerDist.jsx +0 -192
- package/src/components/viewer2d/rulerX.jsx +0 -141
- package/src/components/viewer2d/rulerY.jsx +0 -138
- package/src/components/viewer2d/scene.jsx +0 -94
- package/src/components/viewer2d/snap.jsx +0 -118
- package/src/components/viewer2d/state.jsx +0 -77
- package/src/components/viewer2d/utils.js +0 -195
- package/src/components/viewer2d/vertex.jsx +0 -76
- package/src/components/viewer2d/viewer2d.jsx +0 -1830
- package/src/components/viewer3d/camera-controls-module/camera-controls.module.js +0 -3078
- package/src/components/viewer3d/dcm.js +0 -226
- package/src/components/viewer3d/fbm.js +0 -383
- package/src/components/viewer3d/front3D.jsx +0 -63
- package/src/components/viewer3d/grid-creator.js +0 -25
- package/src/components/viewer3d/grids/grid-horizontal-streak.js +0 -41
- package/src/components/viewer3d/grids/grid-streak.js +0 -34
- package/src/components/viewer3d/grids/grid-vertical-streak.js +0 -42
- package/src/components/viewer3d/libs/first-person-controls.js +0 -70
- package/src/components/viewer3d/libs/helvetiker_regular.typeface.js +0 -1265
- package/src/components/viewer3d/libs/mtl-loader.js +0 -462
- package/src/components/viewer3d/libs/obj-loader.js +0 -653
- package/src/components/viewer3d/libs/orbit-controls.js +0 -945
- package/src/components/viewer3d/libs/pointer-lock-controls.js +0 -67
- package/src/components/viewer3d/lrm.js +0 -358
- package/src/components/viewer3d/model.js +0 -830
- package/src/components/viewer3d/pointer-lock-navigation.js +0 -140
- package/src/components/viewer3d/ruler-utils/itemRect.jsx +0 -91
- package/src/components/viewer3d/ruler-utils/layer3D.jsx +0 -528
- package/src/components/viewer3d/ruler-utils/ruler3D.jsx +0 -218
- package/src/components/viewer3d/ruler-utils/scene3D.jsx +0 -87
- package/src/components/viewer3d/ruler-utils/state3D.jsx +0 -25
- package/src/components/viewer3d/scene-creator.js +0 -5172
- package/src/components/viewer3d/three-memory-cleaner.js +0 -65
- package/src/components/viewer3d/viewer3d-first-person.js +0 -395
- package/src/components/viewer3d/viewer3d.js +0 -3376
- package/src/components/wizardstep/button/styles.js +0 -677
- package/src/components/wizardstep/export.js +0 -5
- package/src/components/wizardstep/index.jsx +0 -1372
- package/src/components/wizardstep/styles.js +0 -688
- package/src/components/wizardstep/wizardstep-content-button.jsx +0 -198
- package/src/components/wizardstep/wizardstep-toggle-button.jsx +0 -101
- package/src/constants.js +0 -731
- package/src/hooks/useCheckCart.js +0 -38
- package/src/hooks/useGetPricesBySku.js +0 -59
- package/src/hooks/useValidateToken.js +0 -181
- package/src/index.js +0 -32
- package/src/models.js +0 -541
- package/src/plugins/SVGLoader.js +0 -1991
- package/src/plugins/autosave.js +0 -39
- package/src/plugins/console-debugger.js +0 -36
- package/src/plugins/export.js +0 -11
- package/src/plugins/keyboard.js +0 -194
- package/src/reducers/areas-reducer.js +0 -13
- package/src/reducers/export.js +0 -39
- package/src/reducers/groups-reducer.js +0 -73
- package/src/reducers/holes-reducer.js +0 -125
- package/src/reducers/items-reducer.js +0 -286
- package/src/reducers/lines-reducer.js +0 -96
- package/src/reducers/project-reducer.js +0 -239
- package/src/reducers/reducer.js +0 -59
- package/src/reducers/scene-reducer.js +0 -41
- package/src/reducers/user-reducer.js +0 -30
- package/src/reducers/vertices-reducer.js +0 -34
- package/src/reducers/viewer2d-reducer.js +0 -81
- package/src/reducers/viewer3d-reducer.js +0 -65
- package/src/shared-style.js +0 -72
- package/src/styles/export.js +0 -7
- package/src/styles/tabs.css +0 -40
- package/src/translator/en.js +0 -106
- package/src/translator/it.js +0 -80
- package/src/translator/ru.js +0 -80
- package/src/translator/translator.js +0 -81
- package/src/utils/browser.js +0 -36
- package/src/utils/email-validator.js +0 -5
- package/src/utils/export.js +0 -39
- package/src/utils/geometry.js +0 -2572
- package/src/utils/get-edges-of-subgraphs.js +0 -29
- package/src/utils/graph-cycles.js +0 -259
- package/src/utils/graph-inner-cycles.js +0 -49
- package/src/utils/graph.js +0 -147
- package/src/utils/helper.js +0 -431
- package/src/utils/history.js +0 -37
- package/src/utils/id-broker.js +0 -9
- package/src/utils/logger.js +0 -8
- package/src/utils/math.js +0 -51
- package/src/utils/molding.js +0 -973
- package/src/utils/name-generator.js +0 -5
- package/src/utils/objects-utils.js +0 -56
- package/src/utils/phone-validator.js +0 -4
- package/src/utils/process-black-list.js +0 -10
- package/src/utils/react-if.jsx +0 -20
- package/src/utils/snap-scene.js +0 -102
- package/src/utils/snap.js +0 -184
- package/src/utils/threeCSG.es6.js +0 -578
- package/src/version.js +0 -1
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _KitchenConfigurator = require("KitchenConfigurator");
|
|
8
|
-
var info = {
|
|
9
|
-
title: 'area',
|
|
10
|
-
tag: ['area'],
|
|
11
|
-
description: 'Generic Room',
|
|
12
|
-
image: ''
|
|
13
|
-
};
|
|
14
|
-
var textures = {
|
|
15
|
-
parquet: {
|
|
16
|
-
name: 'Parquet',
|
|
17
|
-
uri: require('./textures/parquet.jpg'),
|
|
18
|
-
lengthRepeatScale: 0.004,
|
|
19
|
-
heightRepeatScale: 0.004
|
|
20
|
-
},
|
|
21
|
-
tile1: {
|
|
22
|
-
name: 'Tile1',
|
|
23
|
-
uri: require('./textures/tile1.jpg'),
|
|
24
|
-
lengthRepeatScale: 0.01,
|
|
25
|
-
heightRepeatScale: 0.01
|
|
26
|
-
},
|
|
27
|
-
ceramic: {
|
|
28
|
-
name: 'Ceramic Tile',
|
|
29
|
-
uri: require('./textures/ceramic-tile.jpg'),
|
|
30
|
-
lengthRepeatScale: 0.02,
|
|
31
|
-
heightRepeatScale: 0.02
|
|
32
|
-
},
|
|
33
|
-
strand_porcelain: {
|
|
34
|
-
name: 'Strand Porcelain Tile',
|
|
35
|
-
uri: require('./textures/strand-porcelain.jpg'),
|
|
36
|
-
lengthRepeatScale: 0.02,
|
|
37
|
-
heightRepeatScale: 0.02
|
|
38
|
-
},
|
|
39
|
-
grass: {
|
|
40
|
-
name: 'Grass',
|
|
41
|
-
uri: require('./textures/grass.jpg'),
|
|
42
|
-
lengthRepeatScale: 0.01,
|
|
43
|
-
heightRepeatScale: 0.01
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
var _default = exports["default"] = _KitchenConfigurator.ElementsFactories.AreaFactory('area', info, textures);
|
|
47
|
-
//# sourceMappingURL=planner-element.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"planner-element.js","names":["_KitchenConfigurator","require","info","title","tag","description","image","textures","parquet","name","uri","lengthRepeatScale","heightRepeatScale","tile1","ceramic","strand_porcelain","grass","_default","exports","ElementsFactories","AreaFactory"],"sources":["../../../../src/catalog/areas/area/planner-element.jsx"],"sourcesContent":["import { ElementsFactories } from 'KitchenConfigurator';\r\n\r\nlet info = {\r\n title: 'area',\r\n tag: ['area'],\r\n description: 'Generic Room',\r\n image: ''\r\n};\r\n\r\nlet textures = {\r\n parquet: {\r\n name: 'Parquet',\r\n uri: require('./textures/parquet.jpg'),\r\n lengthRepeatScale: 0.004,\r\n heightRepeatScale: 0.004\r\n },\r\n tile1: {\r\n name: 'Tile1',\r\n uri: require('./textures/tile1.jpg'),\r\n lengthRepeatScale: 0.01,\r\n heightRepeatScale: 0.01\r\n },\r\n ceramic: {\r\n name: 'Ceramic Tile',\r\n uri: require('./textures/ceramic-tile.jpg'),\r\n lengthRepeatScale: 0.02,\r\n heightRepeatScale: 0.02\r\n },\r\n strand_porcelain: {\r\n name: 'Strand Porcelain Tile',\r\n uri: require('./textures/strand-porcelain.jpg'),\r\n lengthRepeatScale: 0.02,\r\n heightRepeatScale: 0.02\r\n },\r\n grass: {\r\n name: 'Grass',\r\n uri: require('./textures/grass.jpg'),\r\n lengthRepeatScale: 0.01,\r\n heightRepeatScale: 0.01\r\n }\r\n};\r\n\r\nexport default ElementsFactories.AreaFactory('area', info, textures);\r\n"],"mappings":";;;;;;AAAA,IAAAA,oBAAA,GAAAC,OAAA;AAEA,IAAIC,IAAI,GAAG;EACTC,KAAK,EAAE,MAAM;EACbC,GAAG,EAAE,CAAC,MAAM,CAAC;EACbC,WAAW,EAAE,cAAc;EAC3BC,KAAK,EAAE;AACT,CAAC;AAED,IAAIC,QAAQ,GAAG;EACbC,OAAO,EAAE;IACPC,IAAI,EAAE,SAAS;IACfC,GAAG,EAAET,OAAO,CAAC,wBAAwB,CAAC;IACtCU,iBAAiB,EAAE,KAAK;IACxBC,iBAAiB,EAAE;EACrB,CAAC;EACDC,KAAK,EAAE;IACLJ,IAAI,EAAE,OAAO;IACbC,GAAG,EAAET,OAAO,CAAC,sBAAsB,CAAC;IACpCU,iBAAiB,EAAE,IAAI;IACvBC,iBAAiB,EAAE;EACrB,CAAC;EACDE,OAAO,EAAE;IACPL,IAAI,EAAE,cAAc;IACpBC,GAAG,EAAET,OAAO,CAAC,6BAA6B,CAAC;IAC3CU,iBAAiB,EAAE,IAAI;IACvBC,iBAAiB,EAAE;EACrB,CAAC;EACDG,gBAAgB,EAAE;IAChBN,IAAI,EAAE,uBAAuB;IAC7BC,GAAG,EAAET,OAAO,CAAC,iCAAiC,CAAC;IAC/CU,iBAAiB,EAAE,IAAI;IACvBC,iBAAiB,EAAE;EACrB,CAAC;EACDI,KAAK,EAAE;IACLP,IAAI,EAAE,OAAO;IACbC,GAAG,EAAET,OAAO,CAAC,sBAAsB,CAAC;IACpCU,iBAAiB,EAAE,IAAI;IACvBC,iBAAiB,EAAE;EACrB;AACF,CAAC;AAAC,IAAAK,QAAA,GAAAC,OAAA,cAEaC,sCAAiB,CAACC,WAAW,CAAC,MAAM,EAAElB,IAAI,EAAEK,QAAQ,CAAC","ignoreList":[]}
|
package/lib/catalog/catalog.js
DELETED
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _export = require("./properties/export");
|
|
8
|
-
var _constants = require("../constants");
|
|
9
|
-
var _utils = require("../components/viewer2d/utils");
|
|
10
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
|
-
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
12
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
13
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
14
|
-
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
15
|
-
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
16
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
17
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
18
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
19
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
20
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
21
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
22
|
-
var Catalog = exports["default"] = /*#__PURE__*/function () {
|
|
23
|
-
function Catalog() {
|
|
24
|
-
var unit = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _constants.UNIT_CENTIMETER;
|
|
25
|
-
_classCallCheck(this, Catalog);
|
|
26
|
-
this.elements = {};
|
|
27
|
-
this.categories = {
|
|
28
|
-
root: {
|
|
29
|
-
name: 'root',
|
|
30
|
-
label: '/',
|
|
31
|
-
elements: [],
|
|
32
|
-
categories: []
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
this.propertyTypes = {};
|
|
36
|
-
this.unit = unit;
|
|
37
|
-
this.registerMultiplePropertyType([['color', _export.PropertyColor, _export.PropertyColor], ['enum', _export.PropertyEnum, _export.PropertyEnum], ['string', _export.PropertyString, _export.PropertyString], ['number', _export.PropertyNumber, _export.PropertyNumber], ['length-measure', _export.PropertyLengthMeasure, _export.PropertyLengthMeasure], ['toggle', _export.PropertyToggle, _export.PropertyToggle], ['checkbox', _export.PropertyCheckbox, _export.PropertyCheckbox], ['hidden', _export.PropertyHidden, _export.PropertyHidden], ['read-only', _export.PropertyReadOnly, _export.PropertyReadOnly]]);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* @description Get catalog's element
|
|
42
|
-
* @param {string} type Element's type
|
|
43
|
-
* @return {?object} Element
|
|
44
|
-
*/
|
|
45
|
-
return _createClass(Catalog, [{
|
|
46
|
-
key: "getElement",
|
|
47
|
-
value: function getElement(type) {
|
|
48
|
-
if (this.hasElement(type)) {
|
|
49
|
-
return this.elements[type];
|
|
50
|
-
} else {
|
|
51
|
-
var deepSearchType = (0, _utils.returnReplaceableDeepSearchType)(type);
|
|
52
|
-
var element = this.elements[deepSearchType];
|
|
53
|
-
if (element) return element;
|
|
54
|
-
if (!element) return false;
|
|
55
|
-
// console.log("getElement", this);
|
|
56
|
-
throw new Error("Element ".concat(type, " does not exist in catalog"));
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @description Get catalog category
|
|
62
|
-
* @param {string} categoryName Name of category
|
|
63
|
-
* @return {object} Category
|
|
64
|
-
*/
|
|
65
|
-
}, {
|
|
66
|
-
key: "getCategory",
|
|
67
|
-
value: function getCategory(categoryName) {
|
|
68
|
-
if (this.hasCategory(categoryName)) {
|
|
69
|
-
return this.categories[categoryName];
|
|
70
|
-
}
|
|
71
|
-
throw new Error("Category ".concat(categoryName, " does not exist in catalog"));
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* @description Return type of a specfied property
|
|
76
|
-
* @param {string} type Property type
|
|
77
|
-
* @return {?object} Property
|
|
78
|
-
*/
|
|
79
|
-
}, {
|
|
80
|
-
key: "getPropertyType",
|
|
81
|
-
value: function getPropertyType(type) {
|
|
82
|
-
if (this.propertyTypes.hasOwnProperty(type)) {
|
|
83
|
-
return this.propertyTypes[type];
|
|
84
|
-
}
|
|
85
|
-
throw new Error("Element ".concat(type, " does not exist in catalog"));
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* @description Register a new element
|
|
90
|
-
* @param {object} json Element structure
|
|
91
|
-
* @return {void}
|
|
92
|
-
*/
|
|
93
|
-
}, {
|
|
94
|
-
key: "registerElement",
|
|
95
|
-
value: function registerElement(json) {
|
|
96
|
-
json.properties = json.properties || {};
|
|
97
|
-
if (this.validateElement(json)) {
|
|
98
|
-
this.elements[json.name] = json;
|
|
99
|
-
this.categories.root.elements.push(this.elements[json.name]);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* @description Register multiple elements
|
|
105
|
-
* @param {array} [elementArray] Array of elements
|
|
106
|
-
* @return {void}
|
|
107
|
-
*/
|
|
108
|
-
}, {
|
|
109
|
-
key: "registerMultipleElements",
|
|
110
|
-
value: function registerMultipleElements(elementArray) {
|
|
111
|
-
var _this = this;
|
|
112
|
-
elementArray.forEach(function (el) {
|
|
113
|
-
return _this.registerElement(el);
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* @description Register a new property
|
|
119
|
-
* @param {string} type Type of property
|
|
120
|
-
* @param {object} Viewer Property viewer component
|
|
121
|
-
* @param {object} Editor Property editor component
|
|
122
|
-
* @return {void}
|
|
123
|
-
*/
|
|
124
|
-
}, {
|
|
125
|
-
key: "registerPropertyType",
|
|
126
|
-
value: function registerPropertyType(type, Viewer, Editor) {
|
|
127
|
-
this.propertyTypes[type] = {
|
|
128
|
-
type: type,
|
|
129
|
-
Viewer: Viewer,
|
|
130
|
-
Editor: Editor
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* @description Register multiple property
|
|
136
|
-
* @param {array} propertyTypeArray Array of properties
|
|
137
|
-
* @return {void}
|
|
138
|
-
*/
|
|
139
|
-
}, {
|
|
140
|
-
key: "registerMultiplePropertyType",
|
|
141
|
-
value: function registerMultiplePropertyType(propertyTypeArray) {
|
|
142
|
-
var _this2 = this;
|
|
143
|
-
propertyTypeArray.forEach(function (el) {
|
|
144
|
-
return _this2.registerPropertyType.apply(_this2, _toConsumableArray(el));
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* @description Validate an element
|
|
150
|
-
* @param {object} json Element's structure
|
|
151
|
-
* @return {?boolean}
|
|
152
|
-
*/
|
|
153
|
-
}, {
|
|
154
|
-
key: "validateElement",
|
|
155
|
-
value: function validateElement(json) {
|
|
156
|
-
if (!json.hasOwnProperty('name')) throw new Error('Element not valid');
|
|
157
|
-
var name = json.name;
|
|
158
|
-
if (json.prototype.toLowerCase().includes('molding')) return true;
|
|
159
|
-
if (!json.hasOwnProperty('prototype')) throw new Error("Element ".concat(name, " doesn't have prototype"));
|
|
160
|
-
if (!json.hasOwnProperty('info')) throw new Error("Element ".concat(name, " doesn't have info"));
|
|
161
|
-
if (!json.info.hasOwnProperty('tag')) throw new Error("Element ".concat(name, " doesn't have tag"));
|
|
162
|
-
if (!json.info.hasOwnProperty('description')) throw new Error("Element ".concat(name, " doesn't have description"));
|
|
163
|
-
// if (!json.info.hasOwnProperty('image')) throw new Error(`Element ${name} doesn't have image`);
|
|
164
|
-
|
|
165
|
-
if (!json.hasOwnProperty('render2D')) throw new Error("Element ".concat(name, " doesn't have render2D handler"));
|
|
166
|
-
if (!json.hasOwnProperty('render3D')) throw new Error("Element ".concat(name, " doesn't have render3D handler"));
|
|
167
|
-
if (!json.hasOwnProperty('properties')) throw new Error("Element ".concat(name, " doesn't have properties"));
|
|
168
|
-
for (var propertyName in json.properties) {
|
|
169
|
-
var propertyConfigs = json.properties[propertyName];
|
|
170
|
-
if (!propertyConfigs.hasOwnProperty('type')) throw new Error("Element ".concat(name, ", Property ").concat(propertyName, " doesn't have type"));
|
|
171
|
-
if (!propertyConfigs.hasOwnProperty('defaultValue')) throw new Error("Element ".concat(name, ", Property ").concat(propertyName, " doesn't have defaultValue"));
|
|
172
|
-
}
|
|
173
|
-
return true;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* @description Check if catalog has element
|
|
178
|
-
* @param {string} type Element's type
|
|
179
|
-
* @return {boolean}
|
|
180
|
-
*/
|
|
181
|
-
}, {
|
|
182
|
-
key: "hasElement",
|
|
183
|
-
value: function hasElement(type) {
|
|
184
|
-
return this.elements.hasOwnProperty(type);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* @description Register a new category
|
|
189
|
-
* @param {string} name Name of category
|
|
190
|
-
* @param {string} label Label of category
|
|
191
|
-
* @param {array} [childs] Category's childs
|
|
192
|
-
* @return {?object} Registered category
|
|
193
|
-
*/
|
|
194
|
-
}, {
|
|
195
|
-
key: "registerCategory",
|
|
196
|
-
value: function registerCategory(name, label, childs) {
|
|
197
|
-
var _this3 = this;
|
|
198
|
-
if (this.validateCategory(name, label)) {
|
|
199
|
-
this.categories[name] = {
|
|
200
|
-
name: name,
|
|
201
|
-
label: label,
|
|
202
|
-
categories: [],
|
|
203
|
-
elements: []
|
|
204
|
-
};
|
|
205
|
-
this.categories.root.categories.push(this.categories[name]);
|
|
206
|
-
if (childs && childs.length) {
|
|
207
|
-
childs.forEach(function (el) {
|
|
208
|
-
return _this3.addToCategory(name, el);
|
|
209
|
-
});
|
|
210
|
-
}
|
|
211
|
-
return this.categories[name];
|
|
212
|
-
}
|
|
213
|
-
return null;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* @description Add an element to the specified category
|
|
218
|
-
* @param {string} name Name of category
|
|
219
|
-
* @param {object} child Element's structure
|
|
220
|
-
* @return {?void}
|
|
221
|
-
*/
|
|
222
|
-
}, {
|
|
223
|
-
key: "addToCategory",
|
|
224
|
-
value: function addToCategory(name, child) {
|
|
225
|
-
if (this.hasElement(child.name)) {
|
|
226
|
-
this.categories[name].elements.push(child);
|
|
227
|
-
this.categories.root.elements.splice(this.categories.root.elements.indexOf(child), 1);
|
|
228
|
-
} else if (this.hasCategory(child.name)) {
|
|
229
|
-
this.categories[name].categories.push(child);
|
|
230
|
-
this.categories.root.categories.splice(this.categories.root.categories.indexOf(child), 1);
|
|
231
|
-
} else {
|
|
232
|
-
throw new Error("child ".concat(child, " is either category nor element"));
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* @description Check if category contain element
|
|
238
|
-
* @param {string} categoryName Name of category
|
|
239
|
-
* @param {string} elementName Name of element
|
|
240
|
-
* @return {boolean}
|
|
241
|
-
*/
|
|
242
|
-
}, {
|
|
243
|
-
key: "categoryHasElement",
|
|
244
|
-
value: function categoryHasElement(categoryName, elementName) {
|
|
245
|
-
return this.hasCategory(categoryName) && this.categories[categoryName].elements.some(function (el) {
|
|
246
|
-
return el.name === elementName;
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* @description Validate a category
|
|
252
|
-
* @param {string} name Name of category
|
|
253
|
-
* @param {string} label Label of category
|
|
254
|
-
* @return {?boolean}
|
|
255
|
-
*/
|
|
256
|
-
}, {
|
|
257
|
-
key: "validateCategory",
|
|
258
|
-
value: function validateCategory(name, label) {
|
|
259
|
-
if (!name) {
|
|
260
|
-
throw new Error('Category has undefined name');
|
|
261
|
-
}
|
|
262
|
-
if (name === '') {
|
|
263
|
-
throw new Error('Category has empty name');
|
|
264
|
-
}
|
|
265
|
-
if (this.hasCategory(name)) {
|
|
266
|
-
throw new Error('Category has already been registered');
|
|
267
|
-
}
|
|
268
|
-
return true;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
/**
|
|
272
|
-
* @description Verify if catalog already contain a category with specified name
|
|
273
|
-
* @param {string} categoryName Name of category
|
|
274
|
-
* @return {boolean}
|
|
275
|
-
*/
|
|
276
|
-
}, {
|
|
277
|
-
key: "hasCategory",
|
|
278
|
-
value: function hasCategory(categoryName) {
|
|
279
|
-
return this.categories.hasOwnProperty(categoryName);
|
|
280
|
-
}
|
|
281
|
-
}]);
|
|
282
|
-
}();
|
|
283
|
-
//# sourceMappingURL=catalog.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.js","names":["_export","require","_constants","_utils","_typeof","o","Symbol","iterator","constructor","prototype","_toConsumableArray","r","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","TypeError","a","_arrayLikeToArray","t","toString","call","slice","name","Array","from","test","isArray","length","e","n","_classCallCheck","_defineProperties","enumerable","configurable","writable","Object","defineProperty","_toPropertyKey","key","_createClass","i","_toPrimitive","toPrimitive","String","Number","Catalog","exports","unit","arguments","undefined","UNIT_CENTIMETER","elements","categories","root","label","propertyTypes","registerMultiplePropertyType","PropertyColor","PropertyEnum","PropertyString","PropertyNumber","PropertyLengthMeasure","PropertyToggle","PropertyCheckbox","PropertyHidden","PropertyReadOnly","value","getElement","type","hasElement","deepSearchType","returnReplaceableDeepSearchType","element","Error","concat","getCategory","categoryName","hasCategory","getPropertyType","hasOwnProperty","registerElement","json","properties","validateElement","push","registerMultipleElements","elementArray","_this","forEach","el","registerPropertyType","Viewer","Editor","propertyTypeArray","_this2","apply","toLowerCase","includes","info","propertyName","propertyConfigs","registerCategory","childs","_this3","validateCategory","addToCategory","child","splice","indexOf","categoryHasElement","elementName","some"],"sources":["../../src/catalog/catalog.js"],"sourcesContent":["import {\r\n PropertyCheckbox,\r\n PropertyColor,\r\n PropertyEnum,\r\n PropertyHidden,\r\n PropertyLengthMeasure,\r\n PropertyNumber,\r\n PropertyReadOnly,\r\n PropertyString,\r\n PropertyToggle\r\n} from './properties/export';\r\nimport { UNIT_CENTIMETER } from '../constants';\r\nimport { returnReplaceableDeepSearchType } from '../components/viewer2d/utils';\r\n\r\nexport default class Catalog {\r\n constructor(unit = UNIT_CENTIMETER) {\r\n this.elements = {};\r\n this.categories = {\r\n root: { name: 'root', label: '/', elements: [], categories: [] }\r\n };\r\n this.propertyTypes = {};\r\n this.unit = unit;\r\n\r\n this.registerMultiplePropertyType([\r\n ['color', PropertyColor, PropertyColor],\r\n ['enum', PropertyEnum, PropertyEnum],\r\n ['string', PropertyString, PropertyString],\r\n ['number', PropertyNumber, PropertyNumber],\r\n ['length-measure', PropertyLengthMeasure, PropertyLengthMeasure],\r\n ['toggle', PropertyToggle, PropertyToggle],\r\n ['checkbox', PropertyCheckbox, PropertyCheckbox],\r\n ['hidden', PropertyHidden, PropertyHidden],\r\n ['read-only', PropertyReadOnly, PropertyReadOnly]\r\n ]);\r\n }\r\n\r\n /**\r\n * @description Get catalog's element\r\n * @param {string} type Element's type\r\n * @return {?object} Element\r\n */\r\n getElement(type) {\r\n if (this.hasElement(type)) {\r\n return this.elements[type];\r\n } else {\r\n let deepSearchType = returnReplaceableDeepSearchType(type);\r\n let element = this.elements[deepSearchType];\r\n if (element) return element;\r\n if (!element) return false;\r\n // console.log(\"getElement\", this);\r\n throw new Error(`Element ${type} does not exist in catalog`);\r\n }\r\n }\r\n\r\n /**\r\n * @description Get catalog category\r\n * @param {string} categoryName Name of category\r\n * @return {object} Category\r\n */\r\n getCategory(categoryName) {\r\n if (this.hasCategory(categoryName)) {\r\n return this.categories[categoryName];\r\n }\r\n throw new Error(`Category ${categoryName} does not exist in catalog`);\r\n }\r\n\r\n /**\r\n * @description Return type of a specfied property\r\n * @param {string} type Property type\r\n * @return {?object} Property\r\n */\r\n getPropertyType(type) {\r\n if (this.propertyTypes.hasOwnProperty(type)) {\r\n return this.propertyTypes[type];\r\n }\r\n throw new Error(`Element ${type} does not exist in catalog`);\r\n }\r\n\r\n /**\r\n * @description Register a new element\r\n * @param {object} json Element structure\r\n * @return {void}\r\n */\r\n registerElement(json) {\r\n json.properties = json.properties || {};\r\n if (this.validateElement(json)) {\r\n this.elements[json.name] = json;\r\n this.categories.root.elements.push(this.elements[json.name]);\r\n }\r\n }\r\n\r\n /**\r\n * @description Register multiple elements\r\n * @param {array} [elementArray] Array of elements\r\n * @return {void}\r\n */\r\n registerMultipleElements(elementArray) {\r\n elementArray.forEach(el => this.registerElement(el));\r\n }\r\n\r\n /**\r\n * @description Register a new property\r\n * @param {string} type Type of property\r\n * @param {object} Viewer Property viewer component\r\n * @param {object} Editor Property editor component\r\n * @return {void}\r\n */\r\n registerPropertyType(type, Viewer, Editor) {\r\n this.propertyTypes[type] = { type, Viewer, Editor };\r\n }\r\n\r\n /**\r\n * @description Register multiple property\r\n * @param {array} propertyTypeArray Array of properties\r\n * @return {void}\r\n */\r\n registerMultiplePropertyType(propertyTypeArray) {\r\n propertyTypeArray.forEach(el => this.registerPropertyType(...el));\r\n }\r\n\r\n /**\r\n * @description Validate an element\r\n * @param {object} json Element's structure\r\n * @return {?boolean}\r\n */\r\n validateElement(json) {\r\n if (!json.hasOwnProperty('name')) throw new Error('Element not valid');\r\n\r\n let name = json.name;\r\n if (json.prototype.toLowerCase().includes('molding')) return true;\r\n if (!json.hasOwnProperty('prototype'))\r\n throw new Error(`Element ${name} doesn't have prototype`);\r\n\r\n if (!json.hasOwnProperty('info'))\r\n throw new Error(`Element ${name} doesn't have info`);\r\n if (!json.info.hasOwnProperty('tag'))\r\n throw new Error(`Element ${name} doesn't have tag`);\r\n if (!json.info.hasOwnProperty('description'))\r\n throw new Error(`Element ${name} doesn't have description`);\r\n // if (!json.info.hasOwnProperty('image')) throw new Error(`Element ${name} doesn't have image`);\r\n\r\n if (!json.hasOwnProperty('render2D'))\r\n throw new Error(`Element ${name} doesn't have render2D handler`);\r\n if (!json.hasOwnProperty('render3D'))\r\n throw new Error(`Element ${name} doesn't have render3D handler`);\r\n if (!json.hasOwnProperty('properties'))\r\n throw new Error(`Element ${name} doesn't have properties`);\r\n\r\n for (let propertyName in json.properties) {\r\n let propertyConfigs = json.properties[propertyName];\r\n if (!propertyConfigs.hasOwnProperty('type'))\r\n throw new Error(\r\n `Element ${name}, Property ${propertyName} doesn't have type`\r\n );\r\n if (!propertyConfigs.hasOwnProperty('defaultValue'))\r\n throw new Error(\r\n `Element ${name}, Property ${propertyName} doesn't have defaultValue`\r\n );\r\n }\r\n\r\n return true;\r\n }\r\n\r\n /**\r\n * @description Check if catalog has element\r\n * @param {string} type Element's type\r\n * @return {boolean}\r\n */\r\n hasElement(type) {\r\n return this.elements.hasOwnProperty(type);\r\n }\r\n\r\n /**\r\n * @description Register a new category\r\n * @param {string} name Name of category\r\n * @param {string} label Label of category\r\n * @param {array} [childs] Category's childs\r\n * @return {?object} Registered category\r\n */\r\n registerCategory(name, label, childs) {\r\n if (this.validateCategory(name, label)) {\r\n this.categories[name] = { name, label, categories: [], elements: [] };\r\n this.categories.root.categories.push(this.categories[name]);\r\n if (childs && childs.length) {\r\n childs.forEach(el => this.addToCategory(name, el));\r\n }\r\n\r\n return this.categories[name];\r\n }\r\n return null;\r\n }\r\n\r\n /**\r\n * @description Add an element to the specified category\r\n * @param {string} name Name of category\r\n * @param {object} child Element's structure\r\n * @return {?void}\r\n */\r\n addToCategory(name, child) {\r\n if (this.hasElement(child.name)) {\r\n this.categories[name].elements.push(child);\r\n this.categories.root.elements.splice(\r\n this.categories.root.elements.indexOf(child),\r\n 1\r\n );\r\n } else if (this.hasCategory(child.name)) {\r\n this.categories[name].categories.push(child);\r\n this.categories.root.categories.splice(\r\n this.categories.root.categories.indexOf(child),\r\n 1\r\n );\r\n } else {\r\n throw new Error(`child ${child} is either category nor element`);\r\n }\r\n }\r\n\r\n /**\r\n * @description Check if category contain element\r\n * @param {string} categoryName Name of category\r\n * @param {string} elementName Name of element\r\n * @return {boolean}\r\n */\r\n categoryHasElement(categoryName, elementName) {\r\n return (\r\n this.hasCategory(categoryName) &&\r\n this.categories[categoryName].elements.some(el => el.name === elementName)\r\n );\r\n }\r\n\r\n /**\r\n * @description Validate a category\r\n * @param {string} name Name of category\r\n * @param {string} label Label of category\r\n * @return {?boolean}\r\n */\r\n validateCategory(name, label) {\r\n if (!name) {\r\n throw new Error('Category has undefined name');\r\n }\r\n if (name === '') {\r\n throw new Error('Category has empty name');\r\n }\r\n if (this.hasCategory(name)) {\r\n throw new Error('Category has already been registered');\r\n }\r\n\r\n return true;\r\n }\r\n\r\n /**\r\n * @description Verify if catalog already contain a category with specified name\r\n * @param {string} categoryName Name of category\r\n * @return {boolean}\r\n */\r\n hasCategory(categoryName) {\r\n return this.categories.hasOwnProperty(categoryName);\r\n }\r\n}\r\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAWA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAA+E,SAAAG,QAAAC,CAAA,sCAAAD,OAAA,wBAAAE,MAAA,uBAAAA,MAAA,CAAAC,QAAA,aAAAF,CAAA,kBAAAA,CAAA,gBAAAA,CAAA,WAAAA,CAAA,yBAAAC,MAAA,IAAAD,CAAA,CAAAG,WAAA,KAAAF,MAAA,IAAAD,CAAA,KAAAC,MAAA,CAAAG,SAAA,qBAAAJ,CAAA,KAAAD,OAAA,CAAAC,CAAA;AAAA,SAAAK,mBAAAC,CAAA,WAAAC,kBAAA,CAAA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AAC,EAAE;QAC1B,MAAM,IAAImD,KAAK,CAAC,sCAAsC,CAAC;MACzD;MAEA,OAAO,IAAI;IACb;;IAEA;AACF;AACA;AACA;AACA;EAJE;IAAAnC,GAAA;IAAA4B,KAAA,EAKA,SAAAW,WAAWA,CAACD,YAAY,EAAE;MACxB,OAAO,IAAI,CAACxB,UAAU,CAAC2B,cAAc,CAACH,YAAY,CAAC;IACrD;EAAC;AAAA","ignoreList":[]}
|
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.createArea = createArea;
|
|
8
|
-
exports.updatedArea = updatedArea;
|
|
9
|
-
var _three = _interopRequireWildcard(require("three"));
|
|
10
|
-
var Three = _three;
|
|
11
|
-
var _helper = require("../../../src/utils/helper");
|
|
12
|
-
var SharedStyle = _interopRequireWildcard(require("../../shared-style"));
|
|
13
|
-
var _RGBELoader = require("three/examples/jsm/loaders/RGBELoader");
|
|
14
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
15
|
-
var params = {
|
|
16
|
-
envMap: 'HDR',
|
|
17
|
-
roughness: 0.9,
|
|
18
|
-
metalness: 0.8,
|
|
19
|
-
exposure: 1.0
|
|
20
|
-
// debug: false
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Apply a texture to a wall face
|
|
25
|
-
* @param material: The material of the face
|
|
26
|
-
* @param texture: The texture to load
|
|
27
|
-
* @param length: The lenght of the face
|
|
28
|
-
* @param height: The height of the face
|
|
29
|
-
*/
|
|
30
|
-
var applyTexture = function applyTexture(material, texture, length, height) {
|
|
31
|
-
var loader = new _three.TextureLoader();
|
|
32
|
-
if (texture) {
|
|
33
|
-
material.map = loader.load(texture.uri);
|
|
34
|
-
material.map.colorSpace = Three.SRGBColorSpace;
|
|
35
|
-
material.needsUpdate = true;
|
|
36
|
-
material.map.wrapS = _three.RepeatWrapping;
|
|
37
|
-
material.map.wrapT = _three.RepeatWrapping;
|
|
38
|
-
material.map.repeat.set(length * texture.lengthRepeatScale, height * texture.heightRepeatScale);
|
|
39
|
-
if (texture.normal) {
|
|
40
|
-
material.normalMap = loader.load(texture.normal.uri);
|
|
41
|
-
material.normalScale = new _three.Vector2(texture.normal.normalScaleX, texture.normal.normalScaleY);
|
|
42
|
-
material.normalMap.wrapS = _three.RepeatWrapping;
|
|
43
|
-
material.normalMap.wrapT = _three.RepeatWrapping;
|
|
44
|
-
material.normalMap.repeat.set(length * texture.normal.lengthRepeatScale, height * texture.normal.heightRepeatScale);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Function that assign UV coordinates to a geometry
|
|
51
|
-
* @param geometry
|
|
52
|
-
*/
|
|
53
|
-
var assignUVs = function assignUVs(geometry) {
|
|
54
|
-
geometry.computeBoundingBox();
|
|
55
|
-
var _geometry$boundingBox = geometry.boundingBox,
|
|
56
|
-
min = _geometry$boundingBox.min,
|
|
57
|
-
max = _geometry$boundingBox.max;
|
|
58
|
-
var offset = new _three.Vector2(0 - min.x, 0 - min.y);
|
|
59
|
-
var range = new _three.Vector2(max.x - min.x, max.y - min.y);
|
|
60
|
-
var uvArray = [];
|
|
61
|
-
var position = geometry.attributes.position;
|
|
62
|
-
for (var i = 0; i < position.count; i += 3) {
|
|
63
|
-
var x1 = position.getX(i);
|
|
64
|
-
var y1 = position.getY(i);
|
|
65
|
-
var x2 = position.getX(i + 1);
|
|
66
|
-
var y2 = position.getY(i + 1);
|
|
67
|
-
var x3 = position.getX(i + 2);
|
|
68
|
-
var y3 = position.getY(i + 2);
|
|
69
|
-
uvArray.push((x1 + offset.x) / range.x, (y1 + offset.y) / range.y, (x2 + offset.x) / range.x, (y2 + offset.y) / range.y, (x3 + offset.x) / range.x, (y3 + offset.y) / range.y);
|
|
70
|
-
}
|
|
71
|
-
geometry.setAttribute('uv', new Three.BufferAttribute(new Float32Array(uvArray), 2));
|
|
72
|
-
geometry.needsUpdate = true;
|
|
73
|
-
};
|
|
74
|
-
function createArea(element, layer, scene, textures) {
|
|
75
|
-
var vertices = [];
|
|
76
|
-
element.vertices.forEach(function (vertexID) {
|
|
77
|
-
vertices.push(layer.vertices.get(vertexID));
|
|
78
|
-
});
|
|
79
|
-
var texture = element.texture;
|
|
80
|
-
texture.lengthRepeatScale = 0.01;
|
|
81
|
-
texture.heightRepeatScale = 0.01;
|
|
82
|
-
var color = element.properties.get('patternColor');
|
|
83
|
-
if (element.selected) {
|
|
84
|
-
color = SharedStyle.AREA_MESH_COLOR.selected;
|
|
85
|
-
} else {
|
|
86
|
-
color = SharedStyle.AREA_MESH_COLOR.unselected;
|
|
87
|
-
}
|
|
88
|
-
if (texture.uri === undefined || texture.uri == '') {
|
|
89
|
-
texture.uri = layer.floorStyle.uri;
|
|
90
|
-
}
|
|
91
|
-
var shape = new _three.Shape();
|
|
92
|
-
shape.moveTo(vertices[0].x, vertices[0].y);
|
|
93
|
-
for (var i = 1; i < vertices.length; i++) {
|
|
94
|
-
shape.lineTo(vertices[i].x, vertices[i].y);
|
|
95
|
-
}
|
|
96
|
-
function loadFloorENV() {
|
|
97
|
-
return new _RGBELoader.RGBELoader().load('/assets/Window.hdr', function (texture) {
|
|
98
|
-
texture.mapping = Three.EquirectangularReflectionMapping;
|
|
99
|
-
return texture;
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
var floorENV = loadFloorENV();
|
|
103
|
-
var loader = new _three.TextureLoader();
|
|
104
|
-
var areaMaterial = new _three.MeshPhysicalMaterial({
|
|
105
|
-
side: Three.DoubleSide,
|
|
106
|
-
metalness: texture.metalness,
|
|
107
|
-
roughness: 0.3,
|
|
108
|
-
envMap: floorENV,
|
|
109
|
-
envMapIntensity: 1.8,
|
|
110
|
-
specularIntensity: 0.4,
|
|
111
|
-
map: loader.load(texture.uri)
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
/* Create holes for the area */
|
|
115
|
-
element.holes.forEach(function (holeID) {
|
|
116
|
-
var holeCoords = [];
|
|
117
|
-
layer.getIn(['areas', holeID, 'vertices']).forEach(function (vertexID) {
|
|
118
|
-
var _layer$getIn = layer.getIn(['vertices', vertexID]),
|
|
119
|
-
x = _layer$getIn.x,
|
|
120
|
-
y = _layer$getIn.y;
|
|
121
|
-
holeCoords.push([x, y]);
|
|
122
|
-
});
|
|
123
|
-
holeCoords = holeCoords.reverse();
|
|
124
|
-
var holeShape = createShape(holeCoords);
|
|
125
|
-
shape.holes.push(holeShape);
|
|
126
|
-
});
|
|
127
|
-
|
|
128
|
-
// This is extrude floor mesh
|
|
129
|
-
|
|
130
|
-
var extrudeSettings = {
|
|
131
|
-
depth: -3,
|
|
132
|
-
bevelEnabled: false
|
|
133
|
-
};
|
|
134
|
-
var shapeGeometry = new Three.ExtrudeGeometry(shape, extrudeSettings);
|
|
135
|
-
assignUVs(shapeGeometry);
|
|
136
|
-
var boundingBox = new _three.Box3().setFromObject(new _three.Mesh(shapeGeometry, new _three.MeshBasicMaterial()));
|
|
137
|
-
var width = boundingBox.max.x - boundingBox.min.x;
|
|
138
|
-
var height = boundingBox.max.y - boundingBox.min.y;
|
|
139
|
-
var texture_unit = 70 * 2.54; // 70 inch
|
|
140
|
-
|
|
141
|
-
applyTexture(areaMaterial, texture, width / texture_unit * 100, height / texture_unit * 100);
|
|
142
|
-
var area = new _three.Mesh(shapeGeometry, areaMaterial);
|
|
143
|
-
area.rotation.x -= Math.PI / 2;
|
|
144
|
-
area.receiveShadow = true;
|
|
145
|
-
area.name = 'floor';
|
|
146
|
-
// This mesh is use for creating ceiling mesh
|
|
147
|
-
|
|
148
|
-
var shapeGeometry2 = new Three.ShapeGeometry(shape);
|
|
149
|
-
var area2 = new _three.Mesh(shapeGeometry2, new _three.MeshBasicMaterial({
|
|
150
|
-
transparent: true,
|
|
151
|
-
opacity: 0.0
|
|
152
|
-
}));
|
|
153
|
-
area2.castShadow = true;
|
|
154
|
-
area2.rotation.x -= Math.PI / 2;
|
|
155
|
-
area2.receiveShadow = true;
|
|
156
|
-
area2.name = 'floorSupport';
|
|
157
|
-
var floorSupport = area2.clone();
|
|
158
|
-
area.userData.floorSupport = floorSupport;
|
|
159
|
-
return Promise.resolve(area);
|
|
160
|
-
}
|
|
161
|
-
function updatedArea(element, layer, scene, textures, mesh, oldElement, differences, selfDestroy, selfBuild) {
|
|
162
|
-
var noPerf = function noPerf() {
|
|
163
|
-
selfDestroy();
|
|
164
|
-
return selfBuild();
|
|
165
|
-
};
|
|
166
|
-
var floor = mesh.getObjectByName('floor');
|
|
167
|
-
floor.receiveShadow = true;
|
|
168
|
-
if (differences[0] == 'selected') {
|
|
169
|
-
var color = element.selected ? SharedStyle.AREA_MESH_COLOR.selected : SharedStyle.AREA_MESH_COLOR.unselected;
|
|
170
|
-
floor.material.color.set(color);
|
|
171
|
-
} else if (differences[0] == 'properties') {
|
|
172
|
-
if (differences[1] === 'texture') {
|
|
173
|
-
return noPerf();
|
|
174
|
-
}
|
|
175
|
-
} else return noPerf();
|
|
176
|
-
return Promise.resolve(mesh);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* This function will create a shape given a list of coordinates
|
|
181
|
-
* @param shapeCoords
|
|
182
|
-
* @returns {Shape}
|
|
183
|
-
*/
|
|
184
|
-
var createShape = function createShape(shapeCoords) {
|
|
185
|
-
var shape = new _three.Shape();
|
|
186
|
-
shape.moveTo(shapeCoords[0][0], shapeCoords[0][1]);
|
|
187
|
-
for (var i = 1; i < shapeCoords.length; i++) {
|
|
188
|
-
shape.lineTo(shapeCoords[i][0], shapeCoords[i][1]);
|
|
189
|
-
}
|
|
190
|
-
return shape;
|
|
191
|
-
};
|
|
192
|
-
//# sourceMappingURL=area-factory-3d.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"area-factory-3d.js","names":["_three","_interopRequireWildcard","require","Three","_helper","SharedStyle","_RGBELoader","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","_typeof","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","params","envMap","roughness","metalness","exposure","applyTexture","material","texture","length","height","loader","TextureLoader","map","load","uri","colorSpace","SRGBColorSpace","needsUpdate","wrapS","RepeatWrapping","wrapT","repeat","lengthRepeatScale","heightRepeatScale","normal","normalMap","normalScale","Vector2","normalScaleX","normalScaleY","assignUVs","geometry","computeBoundingBox","_geometry$boundingBox","boundingBox","min","max","offset","x","y","range","uvArray","position","attributes","count","x1","getX","y1","getY","x2","y2","x3","y3","push","setAttribute","BufferAttribute","Float32Array","createArea","element","layer","scene","textures","vertices","forEach","vertexID","color","properties","selected","AREA_MESH_COLOR","unselected","undefined","floorStyle","shape","Shape","moveTo","lineTo","loadFloorENV","RGBELoader","mapping","EquirectangularReflectionMapping","floorENV","areaMaterial","MeshPhysicalMaterial","side","DoubleSide","envMapIntensity","specularIntensity","holes","holeID","holeCoords","getIn","_layer$getIn","reverse","holeShape","createShape","extrudeSettings","depth","bevelEnabled","shapeGeometry","ExtrudeGeometry","Box3","setFromObject","Mesh","MeshBasicMaterial","width","texture_unit","area","rotation","Math","PI","receiveShadow","name","shapeGeometry2","ShapeGeometry","area2","transparent","opacity","castShadow","floorSupport","clone","userData","Promise","resolve","updatedArea","mesh","oldElement","differences","selfDestroy","selfBuild","noPerf","floor","getObjectByName","shapeCoords"],"sources":["../../../src/catalog/factories/area-factory-3d.js"],"sourcesContent":["import {\r\n Shape,\r\n ShapeGeometry,\r\n Box3,\r\n TextureLoader,\r\n Mesh,\r\n MeshBasicMaterial,\r\n MeshStandardMaterial,\r\n RepeatWrapping,\r\n Vector2,\r\n DoubleSide,\r\n MeshPhysicalMaterial\r\n} from 'three';\r\nimport * as Three from 'three';\r\nimport { textureCube } from '../../../src/utils/helper';\r\nimport * as SharedStyle from '../../shared-style';\r\nimport { RGBELoader } from 'three/examples/jsm/loaders/RGBELoader';\r\n\r\nconst params = {\r\n envMap: 'HDR',\r\n roughness: 0.9,\r\n metalness: 0.8,\r\n exposure: 1.0\r\n // debug: false\r\n};\r\n\r\n/**\r\n * Apply a texture to a wall face\r\n * @param material: The material of the face\r\n * @param texture: The texture to load\r\n * @param length: The lenght of the face\r\n * @param height: The height of the face\r\n */\r\nconst applyTexture = (material, texture, length, height) => {\r\n let loader = new TextureLoader();\r\n if (texture) {\r\n material.map = loader.load(texture.uri);\r\n material.map.colorSpace = Three.SRGBColorSpace;\r\n material.needsUpdate = true;\r\n material.map.wrapS = RepeatWrapping;\r\n material.map.wrapT = RepeatWrapping;\r\n material.map.repeat.set(\r\n length * texture.lengthRepeatScale,\r\n height * texture.heightRepeatScale\r\n );\r\n\r\n if (texture.normal) {\r\n material.normalMap = loader.load(texture.normal.uri);\r\n material.normalScale = new Vector2(\r\n texture.normal.normalScaleX,\r\n texture.normal.normalScaleY\r\n );\r\n material.normalMap.wrapS = RepeatWrapping;\r\n material.normalMap.wrapT = RepeatWrapping;\r\n material.normalMap.repeat.set(\r\n length * texture.normal.lengthRepeatScale,\r\n height * texture.normal.heightRepeatScale\r\n );\r\n }\r\n }\r\n};\r\n\r\n/**\r\n * Function that assign UV coordinates to a geometry\r\n * @param geometry\r\n */\r\nconst assignUVs = geometry => {\r\n geometry.computeBoundingBox();\r\n\r\n let { min, max } = geometry.boundingBox;\r\n let offset = new Vector2(0 - min.x, 0 - min.y);\r\n let range = new Vector2(max.x - min.x, max.y - min.y);\r\n\r\n const uvArray = [];\r\n const position = geometry.attributes.position;\r\n\r\n for (let i = 0; i < position.count; i += 3) {\r\n const x1 = position.getX(i);\r\n const y1 = position.getY(i);\r\n\r\n const x2 = position.getX(i + 1);\r\n const y2 = position.getY(i + 1);\r\n\r\n const x3 = position.getX(i + 2);\r\n const y3 = position.getY(i + 2);\r\n\r\n uvArray.push(\r\n (x1 + offset.x) / range.x,\r\n (y1 + offset.y) / range.y,\r\n (x2 + offset.x) / range.x,\r\n (y2 + offset.y) / range.y,\r\n (x3 + offset.x) / range.x,\r\n (y3 + offset.y) / range.y\r\n );\r\n }\r\n geometry.setAttribute(\r\n 'uv',\r\n new Three.BufferAttribute(new Float32Array(uvArray), 2)\r\n );\r\n geometry.needsUpdate = true;\r\n};\r\n\r\nexport function createArea(element, layer, scene, textures) {\r\n let vertices = [];\r\n\r\n element.vertices.forEach(vertexID => {\r\n vertices.push(layer.vertices.get(vertexID));\r\n });\r\n\r\n let { texture } = element;\r\n\r\n texture.lengthRepeatScale = 0.01;\r\n texture.heightRepeatScale = 0.01;\r\n\r\n let color = element.properties.get('patternColor');\r\n\r\n if (element.selected) {\r\n color = SharedStyle.AREA_MESH_COLOR.selected;\r\n } else {\r\n color = SharedStyle.AREA_MESH_COLOR.unselected;\r\n }\r\n if (texture.uri === undefined || texture.uri == '') {\r\n texture.uri = layer.floorStyle.uri;\r\n }\r\n\r\n let shape = new Shape();\r\n\r\n shape.moveTo(vertices[0].x, vertices[0].y);\r\n for (let i = 1; i < vertices.length; i++) {\r\n shape.lineTo(vertices[i].x, vertices[i].y);\r\n }\r\n function loadFloorENV() {\r\n return new RGBELoader().load('/assets/Window.hdr', function (texture) {\r\n texture.mapping = Three.EquirectangularReflectionMapping;\r\n return texture;\r\n });\r\n }\r\n const floorENV = loadFloorENV();\r\n let loader = new TextureLoader();\r\n\r\n let areaMaterial = new MeshPhysicalMaterial({\r\n side: Three.DoubleSide,\r\n metalness: texture.metalness,\r\n roughness: 0.3,\r\n envMap: floorENV,\r\n envMapIntensity: 1.8,\r\n specularIntensity: 0.4,\r\n map: loader.load(texture.uri)\r\n });\r\n\r\n /* Create holes for the area */\r\n element.holes.forEach(holeID => {\r\n let holeCoords = [];\r\n layer.getIn(['areas', holeID, 'vertices']).forEach(vertexID => {\r\n let { x, y } = layer.getIn(['vertices', vertexID]);\r\n holeCoords.push([x, y]);\r\n });\r\n holeCoords = holeCoords.reverse();\r\n let holeShape = createShape(holeCoords);\r\n shape.holes.push(holeShape);\r\n });\r\n\r\n // This is extrude floor mesh\r\n\r\n let extrudeSettings = {\r\n depth: -3,\r\n bevelEnabled: false\r\n };\r\n\r\n let shapeGeometry = new Three.ExtrudeGeometry(shape, extrudeSettings);\r\n\r\n assignUVs(shapeGeometry);\r\n\r\n let boundingBox = new Box3().setFromObject(\r\n new Mesh(shapeGeometry, new MeshBasicMaterial())\r\n );\r\n let width = boundingBox.max.x - boundingBox.min.x;\r\n let height = boundingBox.max.y - boundingBox.min.y;\r\n const texture_unit = 70 * 2.54; // 70 inch\r\n\r\n applyTexture(\r\n areaMaterial,\r\n texture,\r\n (width / texture_unit) * 100,\r\n (height / texture_unit) * 100\r\n );\r\n let area = new Mesh(shapeGeometry, areaMaterial);\r\n area.rotation.x -= Math.PI / 2;\r\n area.receiveShadow = true;\r\n area.name = 'floor';\r\n // This mesh is use for creating ceiling mesh\r\n\r\n let shapeGeometry2 = new Three.ShapeGeometry(shape);\r\n let area2 = new Mesh(\r\n shapeGeometry2,\r\n new MeshBasicMaterial({ transparent: true, opacity: 0.0 })\r\n );\r\n area2.castShadow = true;\r\n area2.rotation.x -= Math.PI / 2;\r\n area2.receiveShadow = true;\r\n area2.name = 'floorSupport';\r\n\r\n const floorSupport = area2.clone();\r\n area.userData.floorSupport = floorSupport;\r\n\r\n return Promise.resolve(area);\r\n}\r\n\r\nexport function updatedArea(\r\n element,\r\n layer,\r\n scene,\r\n textures,\r\n mesh,\r\n oldElement,\r\n differences,\r\n selfDestroy,\r\n selfBuild\r\n) {\r\n let noPerf = () => {\r\n selfDestroy();\r\n return selfBuild();\r\n };\r\n let floor = mesh.getObjectByName('floor');\r\n floor.receiveShadow = true;\r\n if (differences[0] == 'selected') {\r\n let color = element.selected\r\n ? SharedStyle.AREA_MESH_COLOR.selected\r\n : SharedStyle.AREA_MESH_COLOR.unselected;\r\n floor.material.color.set(color);\r\n } else if (differences[0] == 'properties') {\r\n if (differences[1] === 'texture') {\r\n return noPerf();\r\n }\r\n } else return noPerf();\r\n\r\n return Promise.resolve(mesh);\r\n}\r\n\r\n/**\r\n * This function will create a shape given a list of coordinates\r\n * @param shapeCoords\r\n * @returns {Shape}\r\n */\r\nconst createShape = shapeCoords => {\r\n let shape = new Shape();\r\n shape.moveTo(shapeCoords[0][0], shapeCoords[0][1]);\r\n for (let i = 1; i < shapeCoords.length; i++) {\r\n shape.lineTo(shapeCoords[i][0], shapeCoords[i][1]);\r\n }\r\n return shape;\r\n};\r\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAYe,IAAAC,KAAA,GAAAH,MAAA;AAEf,IAAAI,OAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAJ,uBAAA,CAAAC,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AAAmE,SAAAD,wBAAAM,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAR,uBAAA,YAAAA,wBAAAM,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAA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