kitchen-simulator 5.0.0-test.3 → 5.0.0-test.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/KitchenConfigurator.js +1 -1
- package/es/KitchenConfigurator.js.map +1 -1
- package/package.json +8 -12
- package/src/KitchenConfigurator.jsx +1 -1
- package/lib/@history.js +0 -11
- package/lib/@history.js.map +0 -1
- package/lib/AppContext.js +0 -11
- package/lib/AppContext.js.map +0 -1
- package/lib/KitchenConfigurator.js +0 -1353
- package/lib/KitchenConfigurator.js.map +0 -1
- package/lib/KitchenConfiguratorApp.js +0 -539
- package/lib/KitchenConfiguratorApp.js.map +0 -1
- package/lib/actions/area-actions.js +0 -22
- package/lib/actions/area-actions.js.map +0 -1
- package/lib/actions/export.js +0 -44
- package/lib/actions/export.js.map +0 -1
- package/lib/actions/groups-actions.js +0 -108
- package/lib/actions/groups-actions.js.map +0 -1
- package/lib/actions/holes-actions.js +0 -141
- package/lib/actions/holes-actions.js.map +0 -1
- package/lib/actions/items-actions.js +0 -365
- package/lib/actions/items-actions.js.map +0 -1
- package/lib/actions/lines-actions.js +0 -98
- package/lib/actions/lines-actions.js.map +0 -1
- package/lib/actions/project-actions.js +0 -333
- package/lib/actions/project-actions.js.map +0 -1
- package/lib/actions/scene-actions.js +0 -44
- package/lib/actions/scene-actions.js.map +0 -1
- package/lib/actions/user-actions.js +0 -69
- package/lib/actions/user-actions.js.map +0 -1
- package/lib/actions/vertices-actions.js +0 -36
- package/lib/actions/vertices-actions.js.map +0 -1
- package/lib/actions/viewer2d-actions.js +0 -74
- package/lib/actions/viewer2d-actions.js.map +0 -1
- package/lib/actions/viewer3d-actions.js +0 -33
- package/lib/actions/viewer3d-actions.js.map +0 -1
- package/lib/catalog/areas/area/planner-element.js +0 -47
- package/lib/catalog/areas/area/planner-element.js.map +0 -1
- package/lib/catalog/catalog.js +0 -283
- package/lib/catalog/catalog.js.map +0 -1
- package/lib/catalog/factories/area-factory-3d.js +0 -192
- package/lib/catalog/factories/area-factory-3d.js.map +0 -1
- package/lib/catalog/factories/area-factory.js +0 -90
- package/lib/catalog/factories/area-factory.js.map +0 -1
- package/lib/catalog/factories/export.js +0 -26
- package/lib/catalog/factories/export.js.map +0 -1
- package/lib/catalog/factories/wall-factory-3d.js +0 -213
- package/lib/catalog/factories/wall-factory-3d.js.map +0 -1
- package/lib/catalog/factories/wall-factory.js +0 -279
- package/lib/catalog/factories/wall-factory.js.map +0 -1
- package/lib/catalog/holes/door-closet/planner-element.js +0 -232
- package/lib/catalog/holes/door-closet/planner-element.js.map +0 -1
- package/lib/catalog/holes/door-double/planner-element.js +0 -325
- package/lib/catalog/holes/door-double/planner-element.js.map +0 -1
- package/lib/catalog/holes/door-exterior/planner-element.js +0 -225
- package/lib/catalog/holes/door-exterior/planner-element.js.map +0 -1
- package/lib/catalog/holes/door-interior/planner-element.js +0 -237
- package/lib/catalog/holes/door-interior/planner-element.js.map +0 -1
- package/lib/catalog/holes/door-panic/planner-element.js +0 -513
- package/lib/catalog/holes/door-panic/planner-element.js.map +0 -1
- package/lib/catalog/holes/door-panic-double/planner-element.js +0 -473
- package/lib/catalog/holes/door-panic-double/planner-element.js.map +0 -1
- package/lib/catalog/holes/door-sliding/planner-element.js +0 -235
- package/lib/catalog/holes/door-sliding/planner-element.js.map +0 -1
- package/lib/catalog/holes/doorway-framed/planner-element.js +0 -155
- package/lib/catalog/holes/doorway-framed/planner-element.js.map +0 -1
- package/lib/catalog/holes/doorway-frameless/planner-element.js +0 -114
- package/lib/catalog/holes/doorway-frameless/planner-element.js.map +0 -1
- package/lib/catalog/holes/window-clear/planner-element.js +0 -176
- package/lib/catalog/holes/window-clear/planner-element.js.map +0 -1
- package/lib/catalog/holes/window-cross/planner-element.js +0 -175
- package/lib/catalog/holes/window-cross/planner-element.js.map +0 -1
- package/lib/catalog/holes/window-double-hung/planner-element.js +0 -313
- package/lib/catalog/holes/window-double-hung/planner-element.js.map +0 -1
- package/lib/catalog/holes/window-vertical/planner-element.js +0 -286
- package/lib/catalog/holes/window-vertical/planner-element.js.map +0 -1
- package/lib/catalog/lines/wall/planner-element.js +0 -77
- package/lib/catalog/lines/wall/planner-element.js.map +0 -1
- package/lib/catalog/molding/molding-dcm/planner-element.js +0 -39
- package/lib/catalog/molding/molding-dcm/planner-element.js.map +0 -1
- package/lib/catalog/molding/molding-fbm/planner-element.js +0 -39
- package/lib/catalog/molding/molding-fbm/planner-element.js.map +0 -1
- package/lib/catalog/molding/molding-lrm/planner-element.js +0 -39
- package/lib/catalog/molding/molding-lrm/planner-element.js.map +0 -1
- package/lib/catalog/properties/export.js +0 -82
- package/lib/catalog/properties/export.js.map +0 -1
- package/lib/catalog/properties/property-checkbox.js +0 -79
- package/lib/catalog/properties/property-checkbox.js.map +0 -1
- package/lib/catalog/properties/property-color.js +0 -47
- package/lib/catalog/properties/property-color.js.map +0 -1
- package/lib/catalog/properties/property-enum.js +0 -63
- package/lib/catalog/properties/property-enum.js.map +0 -1
- package/lib/catalog/properties/property-hidden.js +0 -27
- package/lib/catalog/properties/property-hidden.js.map +0 -1
- package/lib/catalog/properties/property-lenght-measure.js +0 -109
- package/lib/catalog/properties/property-lenght-measure.js.map +0 -1
- package/lib/catalog/properties/property-length-measure.js +0 -93
- package/lib/catalog/properties/property-length-measure.js.map +0 -1
- package/lib/catalog/properties/property-length-measure_hole.js +0 -109
- package/lib/catalog/properties/property-length-measure_hole.js.map +0 -1
- package/lib/catalog/properties/property-number.js +0 -56
- package/lib/catalog/properties/property-number.js.map +0 -1
- package/lib/catalog/properties/property-read-only.js +0 -34
- package/lib/catalog/properties/property-read-only.js.map +0 -1
- package/lib/catalog/properties/property-string.js +0 -56
- package/lib/catalog/properties/property-string.js.map +0 -1
- package/lib/catalog/properties/property-toggle.js +0 -47
- package/lib/catalog/properties/property-toggle.js.map +0 -1
- package/lib/catalog/properties/shared-property-style.js +0 -21
- package/lib/catalog/properties/shared-property-style.js.map +0 -1
- package/lib/catalog/utils/FuseUtils.js +0 -89
- package/lib/catalog/utils/FuseUtils.js.map +0 -1
- package/lib/catalog/utils/exporter.js +0 -156
- package/lib/catalog/utils/exporter.js.map +0 -1
- package/lib/catalog/utils/geom-utils.js +0 -206
- package/lib/catalog/utils/geom-utils.js.map +0 -1
- package/lib/catalog/utils/item-loader.js +0 -1534
- package/lib/catalog/utils/item-loader.js.map +0 -1
- package/lib/catalog/utils/load-obj.js +0 -100
- package/lib/catalog/utils/load-obj.js.map +0 -1
- package/lib/catalog/utils/mtl-loader.js +0 -360
- package/lib/catalog/utils/mtl-loader.js.map +0 -1
- package/lib/catalog/utils/obj-loader.js +0 -479
- package/lib/catalog/utils/obj-loader.js.map +0 -1
- package/lib/class/FuseUtils.js +0 -89
- package/lib/class/FuseUtils.js.map +0 -1
- package/lib/class/area.js +0 -151
- package/lib/class/area.js.map +0 -1
- package/lib/class/export.js +0 -97
- package/lib/class/export.js.map +0 -1
- package/lib/class/group.js +0 -446
- package/lib/class/group.js.map +0 -1
- package/lib/class/guide.js +0 -68
- package/lib/class/guide.js.map +0 -1
- package/lib/class/hole.js +0 -935
- package/lib/class/hole.js.map +0 -1
- package/lib/class/item.js +0 -1894
- package/lib/class/item.js.map +0 -1
- package/lib/class/layer.js +0 -673
- package/lib/class/layer.js.map +0 -1
- package/lib/class/line.js +0 -1296
- package/lib/class/line.js.map +0 -1
- package/lib/class/project.js +0 -829
- package/lib/class/project.js.map +0 -1
- package/lib/class/vertex.js +0 -272
- package/lib/class/vertex.js.map +0 -1
- package/lib/components/atoms/Snackbar/index.js +0 -57
- package/lib/components/atoms/Snackbar/index.js.map +0 -1
- package/lib/components/atoms/radio-button/index.js +0 -33
- package/lib/components/atoms/radio-button/index.js.map +0 -1
- package/lib/components/atoms/radio-button/styles.js +0 -12
- package/lib/components/atoms/radio-button/styles.js.map +0 -1
- package/lib/components/button/MainButton.js +0 -98
- package/lib/components/button/MainButton.js.map +0 -1
- package/lib/components/button/ToggleMeasureButton.js +0 -63
- package/lib/components/button/ToggleMeasureButton.js.map +0 -1
- package/lib/components/catalog-view/catalog-breadcrumb.js +0 -61
- package/lib/components/catalog-view/catalog-breadcrumb.js.map +0 -1
- package/lib/components/catalog-view/catalog-item.js +0 -233
- package/lib/components/catalog-view/catalog-item.js.map +0 -1
- package/lib/components/catalog-view/catalog-list.js +0 -189
- package/lib/components/catalog-view/catalog-list.js.map +0 -1
- package/lib/components/catalog-view/catalog-page-item.js +0 -137
- package/lib/components/catalog-view/catalog-page-item.js.map +0 -1
- package/lib/components/catalog-view/catalog-turn-back-page-item.js +0 -113
- package/lib/components/catalog-view/catalog-turn-back-page-item.js.map +0 -1
- package/lib/components/configurator/custom-configurator.js +0 -101
- package/lib/components/configurator/custom-configurator.js.map +0 -1
- package/lib/components/configurator/project-configurator.js +0 -138
- package/lib/components/configurator/project-configurator.js.map +0 -1
- package/lib/components/content.js +0 -132
- package/lib/components/content.js.map +0 -1
- package/lib/components/export.js +0 -90
- package/lib/components/export.js.map +0 -1
- package/lib/components/firstsetting/button/styles.js +0 -34
- package/lib/components/firstsetting/button/styles.js.map +0 -1
- package/lib/components/firstsetting/export.js +0 -16
- package/lib/components/firstsetting/export.js.map +0 -1
- package/lib/components/firstsetting/firstsetting-content-button.js +0 -224
- package/lib/components/firstsetting/firstsetting-content-button.js.map +0 -1
- package/lib/components/firstsetting/firstsetting-toggle-button.js +0 -133
- package/lib/components/firstsetting/firstsetting-toggle-button.js.map +0 -1
- package/lib/components/firstsetting/firstsetting.js +0 -633
- package/lib/components/firstsetting/firstsetting.js.map +0 -1
- package/lib/components/footerbar/button/ControlButton.js +0 -79
- package/lib/components/footerbar/button/ControlButton.js.map +0 -1
- package/lib/components/footerbar/button/DirectionButton.js +0 -76
- package/lib/components/footerbar/button/DirectionButton.js.map +0 -1
- package/lib/components/footerbar/button/DirectionPanSpinButton.js +0 -57
- package/lib/components/footerbar/button/DirectionPanSpinButton.js.map +0 -1
- package/lib/components/footerbar/button/ToggleButton.js +0 -83
- package/lib/components/footerbar/button/ToggleButton.js.map +0 -1
- package/lib/components/footerbar/button/ToggleConvertButton.js +0 -80
- package/lib/components/footerbar/button/ToggleConvertButton.js.map +0 -1
- package/lib/components/footerbar/button/ToggleMeasureButton.js +0 -59
- package/lib/components/footerbar/button/ToggleMeasureButton.js.map +0 -1
- package/lib/components/footerbar/button/styles.js +0 -29
- package/lib/components/footerbar/button/styles.js.map +0 -1
- package/lib/components/footerbar/export.js +0 -16
- package/lib/components/footerbar/export.js.map +0 -1
- package/lib/components/footerbar/footer-content-button.js +0 -224
- package/lib/components/footerbar/footer-content-button.js.map +0 -1
- package/lib/components/footerbar/footer-toggle-button.js +0 -133
- package/lib/components/footerbar/footer-toggle-button.js.map +0 -1
- package/lib/components/footerbar/footerbar.js +0 -808
- package/lib/components/footerbar/footerbar.js.map +0 -1
- package/lib/components/footerbar/styles.js +0 -41
- package/lib/components/footerbar/styles.js.map +0 -1
- package/lib/components/header/button/MenuButton.js +0 -77
- package/lib/components/header/button/MenuButton.js.map +0 -1
- package/lib/components/header/button/SaveButton.js +0 -57
- package/lib/components/header/button/SaveButton.js.map +0 -1
- package/lib/components/header/button/styles.js +0 -68
- package/lib/components/header/button/styles.js.map +0 -1
- package/lib/components/header/export.js +0 -12
- package/lib/components/header/export.js.map +0 -1
- package/lib/components/header/header.js +0 -556
- package/lib/components/header/header.js.map +0 -1
- package/lib/components/header/styles.js +0 -47
- package/lib/components/header/styles.js.map +0 -1
- package/lib/components/login/Login.js +0 -94
- package/lib/components/login/Login.js.map +0 -1
- package/lib/components/login/LoginForm/index.js +0 -140
- package/lib/components/login/LoginForm/index.js.map +0 -1
- package/lib/components/login/Register.js +0 -104
- package/lib/components/login/Register.js.map +0 -1
- package/lib/components/login/RegisterForm/index.js +0 -237
- package/lib/components/login/RegisterForm/index.js.map +0 -1
- package/lib/components/login/jwtService.js +0 -239
- package/lib/components/login/jwtService.js.map +0 -1
- package/lib/components/molecules/slider/index.js +0 -22
- package/lib/components/molecules/slider/index.js.map +0 -1
- package/lib/components/molecules/slider/styles.js +0 -2
- package/lib/components/molecules/slider/styles.js.map +0 -1
- package/lib/components/myprojects/export.js +0 -12
- package/lib/components/myprojects/export.js.map +0 -1
- package/lib/components/myprojects/index.js +0 -453
- package/lib/components/myprojects/index.js.map +0 -1
- package/lib/components/myprojects/styles.js +0 -31
- package/lib/components/myprojects/styles.js.map +0 -1
- package/lib/components/sidebar/custom-accordion.js +0 -45
- package/lib/components/sidebar/custom-accordion.js.map +0 -1
- package/lib/components/sidebar/export.js +0 -50
- package/lib/components/sidebar/export.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/attributes-editor/attributes-editor.js +0 -74
- package/lib/components/sidebar/panel-element-editor/attributes-editor/attributes-editor.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/attributes-editor/confirm-popup.js +0 -124
- package/lib/components/sidebar/panel-element-editor/attributes-editor/confirm-popup.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/attributes-editor/hole-attributes-editor.js +0 -135
- package/lib/components/sidebar/panel-element-editor/attributes-editor/hole-attributes-editor.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/attributes-editor/item-attributes-editor.js +0 -260
- package/lib/components/sidebar/panel-element-editor/attributes-editor/item-attributes-editor.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/attributes-editor/line-attributes-editor.js +0 -84
- package/lib/components/sidebar/panel-element-editor/attributes-editor/line-attributes-editor.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/element-editor.js +0 -884
- package/lib/components/sidebar/panel-element-editor/element-editor.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/multi-elements-editor.js +0 -2
- package/lib/components/sidebar/panel-element-editor/multi-elements-editor.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/panel-element-editor.js +0 -56
- package/lib/components/sidebar/panel-element-editor/panel-element-editor.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/panel-multi-elements-editor.js +0 -125
- package/lib/components/sidebar/panel-element-editor/panel-multi-elements-editor.js.map +0 -1
- package/lib/components/sidebar/panel-group-editor.js +0 -218
- package/lib/components/sidebar/panel-group-editor.js.map +0 -1
- package/lib/components/sidebar/panel-groups.js +0 -274
- package/lib/components/sidebar/panel-groups.js.map +0 -1
- package/lib/components/sidebar/panel-guides.js +0 -192
- package/lib/components/sidebar/panel-guides.js.map +0 -1
- package/lib/components/sidebar/panel-layer-elements.js +0 -258
- package/lib/components/sidebar/panel-layer-elements.js.map +0 -1
- package/lib/components/sidebar/panel-layers.js +0 -347
- package/lib/components/sidebar/panel-layers.js.map +0 -1
- package/lib/components/sidebar/panel.js +0 -110
- package/lib/components/sidebar/panel.js.map +0 -1
- package/lib/components/sidebar/sidebar.js +0 -117
- package/lib/components/sidebar/sidebar.js.map +0 -1
- package/lib/components/sidebar/toolbar-panel.js +0 -171
- package/lib/components/sidebar/toolbar-panel.js.map +0 -1
- package/lib/components/sign/export.js +0 -18
- package/lib/components/sign/export.js.map +0 -1
- package/lib/components/sign/main/index.js +0 -567
- package/lib/components/sign/main/index.js.map +0 -1
- package/lib/components/sign/main/styles.js +0 -27
- package/lib/components/sign/main/styles.js.map +0 -1
- package/lib/components/style/button.js +0 -121
- package/lib/components/style/button.js.map +0 -1
- package/lib/components/style/cancel-button.js +0 -30
- package/lib/components/style/cancel-button.js.map +0 -1
- package/lib/components/style/content-container.js +0 -41
- package/lib/components/style/content-container.js.map +0 -1
- package/lib/components/style/content-title.js +0 -38
- package/lib/components/style/content-title.js.map +0 -1
- package/lib/components/style/delete-button.js +0 -35
- package/lib/components/style/delete-button.js.map +0 -1
- package/lib/components/style/export.js +0 -122
- package/lib/components/style/export.js.map +0 -1
- package/lib/components/style/form-block.js +0 -32
- package/lib/components/style/form-block.js.map +0 -1
- package/lib/components/style/form-color-input.js +0 -35
- package/lib/components/style/form-color-input.js.map +0 -1
- package/lib/components/style/form-label.js +0 -34
- package/lib/components/style/form-label.js.map +0 -1
- package/lib/components/style/form-number-input.js +0 -197
- package/lib/components/style/form-number-input.js.map +0 -1
- package/lib/components/style/form-number-input_2.js +0 -214
- package/lib/components/style/form-number-input_2.js.map +0 -1
- package/lib/components/style/form-select.js +0 -30
- package/lib/components/style/form-select.js.map +0 -1
- package/lib/components/style/form-slider.js +0 -53
- package/lib/components/style/form-slider.js.map +0 -1
- package/lib/components/style/form-submit-button.js +0 -36
- package/lib/components/style/form-submit-button.js.map +0 -1
- package/lib/components/style/form-text-input.js +0 -84
- package/lib/components/style/form-text-input.js.map +0 -1
- package/lib/components/toolbar/button/ControlButton.js +0 -76
- package/lib/components/toolbar/button/ControlButton.js.map +0 -1
- package/lib/components/toolbar/button/DirectionButton.js +0 -57
- package/lib/components/toolbar/button/DirectionButton.js.map +0 -1
- package/lib/components/toolbar/button/RightButton.js +0 -140
- package/lib/components/toolbar/button/RightButton.js.map +0 -1
- package/lib/components/toolbar/button/ToggleButton.js +0 -66
- package/lib/components/toolbar/button/ToggleButton.js.map +0 -1
- package/lib/components/toolbar/button/index.js +0 -94
- package/lib/components/toolbar/button/index.js.map +0 -1
- package/lib/components/toolbar/button/styles.js +0 -21
- package/lib/components/toolbar/button/styles.js.map +0 -1
- package/lib/components/toolbar/components/DoorStyleMenu.js +0 -112
- package/lib/components/toolbar/components/DoorStyleMenu.js.map +0 -1
- package/lib/components/toolbar/components/Pricing.js +0 -110
- package/lib/components/toolbar/components/Pricing.js.map +0 -1
- package/lib/components/toolbar/components/ReviewForQuote.js +0 -485
- package/lib/components/toolbar/components/ReviewForQuote.js.map +0 -1
- package/lib/components/toolbar/export.js +0 -50
- package/lib/components/toolbar/export.js.map +0 -1
- package/lib/components/toolbar/main/Alert.js +0 -132
- package/lib/components/toolbar/main/Alert.js.map +0 -1
- package/lib/components/toolbar/main/TakePictureModal.js +0 -109
- package/lib/components/toolbar/main/TakePictureModal.js.map +0 -1
- package/lib/components/toolbar/main/confirm-popup.js +0 -95
- package/lib/components/toolbar/main/confirm-popup.js.map +0 -1
- package/lib/components/toolbar/main/index.js +0 -4619
- package/lib/components/toolbar/main/index.js.map +0 -1
- package/lib/components/toolbar/main/myComponents.js +0 -125
- package/lib/components/toolbar/main/myComponents.js.map +0 -1
- package/lib/components/toolbar/main/styles.js +0 -73
- package/lib/components/toolbar/main/styles.js.map +0 -1
- package/lib/components/toolbar/plugin-item.js +0 -156
- package/lib/components/toolbar/plugin-item.js.map +0 -1
- package/lib/components/toolbar/popup/appliance/appliance-category/index.js +0 -86
- package/lib/components/toolbar/popup/appliance/appliance-category/index.js.map +0 -1
- package/lib/components/toolbar/popup/appliance/choose-appliance/index.js +0 -85
- package/lib/components/toolbar/popup/appliance/choose-appliance/index.js.map +0 -1
- package/lib/components/toolbar/popup/appliance/index.js +0 -89
- package/lib/components/toolbar/popup/appliance/index.js.map +0 -1
- package/lib/components/toolbar/popup/autosaveprompt/index.js +0 -99
- package/lib/components/toolbar/popup/autosaveprompt/index.js.map +0 -1
- package/lib/components/toolbar/popup/autosaveprompt/styles.js +0 -16
- package/lib/components/toolbar/popup/autosaveprompt/styles.js.map +0 -1
- package/lib/components/toolbar/popup/cabinet/cabinet-category/index.js +0 -86
- package/lib/components/toolbar/popup/cabinet/cabinet-category/index.js.map +0 -1
- package/lib/components/toolbar/popup/cabinet/choose-product/index.js +0 -107
- package/lib/components/toolbar/popup/cabinet/choose-product/index.js.map +0 -1
- package/lib/components/toolbar/popup/cabinet/index.js +0 -91
- package/lib/components/toolbar/popup/cabinet/index.js.map +0 -1
- package/lib/components/toolbar/popup/doorStyle/choose-style/index.js +0 -59
- package/lib/components/toolbar/popup/doorStyle/choose-style/index.js.map +0 -1
- package/lib/components/toolbar/popup/doorStyle/index.js +0 -68
- package/lib/components/toolbar/popup/doorStyle/index.js.map +0 -1
- package/lib/components/toolbar/popup/doorStyle/style-category/index.js +0 -152
- package/lib/components/toolbar/popup/doorStyle/style-category/index.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/downloadSummaryContext.js +0 -9
- package/lib/components/toolbar/popup/downloadsummary/downloadSummaryContext.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/downloadSummaryTemp.js +0 -128
- package/lib/components/toolbar/popup/downloadsummary/downloadSummaryTemp.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/index.js +0 -572
- package/lib/components/toolbar/popup/downloadsummary/index.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/show2D/show2DView.js +0 -60
- package/lib/components/toolbar/popup/downloadsummary/show2D/show2DView.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/show2D/viewer2DDownLoad.js +0 -200
- package/lib/components/toolbar/popup/downloadsummary/show2D/viewer2DDownLoad.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/show3D/show3DView.js +0 -254
- package/lib/components/toolbar/popup/downloadsummary/show3D/show3DView.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/show3D/viewer3DDownLoad.js +0 -1762
- package/lib/components/toolbar/popup/downloadsummary/show3D/viewer3DDownLoad.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/showCabinetInfo.js +0 -96
- package/lib/components/toolbar/popup/downloadsummary/showCabinetInfo.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/showElevation/showElevationView.js +0 -125
- package/lib/components/toolbar/popup/downloadsummary/showElevation/showElevationView.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/showElevation/viewer3DElevationDownload.js +0 -1713
- package/lib/components/toolbar/popup/downloadsummary/showElevation/viewer3DElevationDownload.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/showElevation/viewerElevationDownload.js +0 -184
- package/lib/components/toolbar/popup/downloadsummary/showElevation/viewerElevationDownload.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/showWarranty.js +0 -115
- package/lib/components/toolbar/popup/downloadsummary/showWarranty.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/styles.js +0 -47
- package/lib/components/toolbar/popup/downloadsummary/styles.js.map +0 -1
- package/lib/components/toolbar/popup/finishingtouch/category/index.js +0 -44
- package/lib/components/toolbar/popup/finishingtouch/category/index.js.map +0 -1
- package/lib/components/toolbar/popup/finishingtouch/index.js +0 -54
- package/lib/components/toolbar/popup/finishingtouch/index.js.map +0 -1
- package/lib/components/toolbar/popup/finishingtouch/material-edit.js +0 -163
- package/lib/components/toolbar/popup/finishingtouch/material-edit.js.map +0 -1
- package/lib/components/toolbar/popup/finishingtouch/product/index.js +0 -65
- package/lib/components/toolbar/popup/finishingtouch/product/index.js.map +0 -1
- package/lib/components/toolbar/popup/floorplan/choose-floor/confirm-popup.js +0 -124
- package/lib/components/toolbar/popup/floorplan/choose-floor/confirm-popup.js.map +0 -1
- package/lib/components/toolbar/popup/floorplan/choose-floor/index.js +0 -255
- package/lib/components/toolbar/popup/floorplan/choose-floor/index.js.map +0 -1
- package/lib/components/toolbar/popup/floorplan/choose-floor/styles.js +0 -20
- package/lib/components/toolbar/popup/floorplan/choose-floor/styles.js.map +0 -1
- package/lib/components/toolbar/popup/floorplan/floor-category/index.js +0 -99
- package/lib/components/toolbar/popup/floorplan/floor-category/index.js.map +0 -1
- package/lib/components/toolbar/popup/floorplan/index.js +0 -56
- package/lib/components/toolbar/popup/floorplan/index.js.map +0 -1
- package/lib/components/toolbar/popup/index.js +0 -195
- package/lib/components/toolbar/popup/index.js.map +0 -1
- package/lib/components/toolbar/popup/newproject/index.js +0 -75
- package/lib/components/toolbar/popup/newproject/index.js.map +0 -1
- package/lib/components/toolbar/popup/newproject/styles.js +0 -16
- package/lib/components/toolbar/popup/newproject/styles.js.map +0 -1
- package/lib/components/toolbar/popup/product/appliance.js +0 -73
- package/lib/components/toolbar/popup/product/appliance.js.map +0 -1
- package/lib/components/toolbar/popup/product/cabinetproduct.js +0 -33
- package/lib/components/toolbar/popup/product/cabinetproduct.js.map +0 -1
- package/lib/components/toolbar/popup/product/doorstyle.js +0 -59
- package/lib/components/toolbar/popup/product/doorstyle.js.map +0 -1
- package/lib/components/toolbar/popup/product/doorstyleproduct.js +0 -59
- package/lib/components/toolbar/popup/product/doorstyleproduct.js.map +0 -1
- package/lib/components/toolbar/popup/product/floor.js +0 -59
- package/lib/components/toolbar/popup/product/floor.js.map +0 -1
- package/lib/components/toolbar/popup/product/floorproduct.js +0 -68
- package/lib/components/toolbar/popup/product/floorproduct.js.map +0 -1
- package/lib/components/toolbar/popup/product/index.js +0 -59
- package/lib/components/toolbar/popup/product/index.js.map +0 -1
- package/lib/components/toolbar/popup/product/primary.js +0 -71
- package/lib/components/toolbar/popup/product/primary.js.map +0 -1
- package/lib/components/toolbar/popup/product/productline.js +0 -128
- package/lib/components/toolbar/popup/product/productline.js.map +0 -1
- package/lib/components/toolbar/popup/product/reviewItem.js +0 -346
- package/lib/components/toolbar/popup/product/reviewItem.js.map +0 -1
- package/lib/components/toolbar/popup/product/reviewMolding.js +0 -291
- package/lib/components/toolbar/popup/product/reviewMolding.js.map +0 -1
- package/lib/components/toolbar/popup/product/styles.js +0 -79
- package/lib/components/toolbar/popup/product/styles.js.map +0 -1
- package/lib/components/toolbar/popup/savedesign/FullPictureForm.js +0 -169
- package/lib/components/toolbar/popup/savedesign/FullPictureForm.js.map +0 -1
- package/lib/components/toolbar/popup/savedesign/index.js +0 -516
- package/lib/components/toolbar/popup/savedesign/index.js.map +0 -1
- package/lib/components/toolbar/popup/savedesign/styles.js +0 -26
- package/lib/components/toolbar/popup/savedesign/styles.js.map +0 -1
- package/lib/components/toolbar/popup/setDoorStyleOption/index.js +0 -64
- package/lib/components/toolbar/popup/setDoorStyleOption/index.js.map +0 -1
- package/lib/components/toolbar/popup/styles.js +0 -104
- package/lib/components/toolbar/popup/styles.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/AddToCartOptions.js +0 -166
- package/lib/components/toolbar/popup/submitforquote/AddToCartOptions.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/CustomerRequestsForm.js +0 -93
- package/lib/components/toolbar/popup/submitforquote/CustomerRequestsForm.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/SkipDesignerReview.js +0 -45
- package/lib/components/toolbar/popup/submitforquote/SkipDesignerReview.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/StepDots.js +0 -40
- package/lib/components/toolbar/popup/submitforquote/StepDots.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/cart-choice.js +0 -141
- package/lib/components/toolbar/popup/submitforquote/cart-choice.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/doorstyle-menus.js +0 -50
- package/lib/components/toolbar/popup/submitforquote/doorstyle-menus.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/index.js +0 -698
- package/lib/components/toolbar/popup/submitforquote/index.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/styles.js +0 -38
- package/lib/components/toolbar/popup/submitforquote/styles.js.map +0 -1
- package/lib/components/toolbar/popup/submitprompt/index.js +0 -79
- package/lib/components/toolbar/popup/submitprompt/index.js.map +0 -1
- package/lib/components/toolbar/popup/submitprompt/styles.js +0 -16
- package/lib/components/toolbar/popup/submitprompt/styles.js.map +0 -1
- package/lib/components/toolbar/toolbar-button.js +0 -111
- package/lib/components/toolbar/toolbar-button.js.map +0 -1
- package/lib/components/toolbar/toolbar-load-button.js +0 -36
- package/lib/components/toolbar/toolbar-load-button.js.map +0 -1
- package/lib/components/toolbar/toolbar-save-button.js +0 -34
- package/lib/components/toolbar/toolbar-save-button.js.map +0 -1
- package/lib/components/tutorial-view/Modal.js +0 -503
- package/lib/components/tutorial-view/Modal.js.map +0 -1
- package/lib/components/tutorial-view/styles.js +0 -13
- package/lib/components/tutorial-view/styles.js.map +0 -1
- package/lib/components/viewer2d/area.js +0 -90
- package/lib/components/viewer2d/area.js.map +0 -1
- package/lib/components/viewer2d/export.js +0 -122
- package/lib/components/viewer2d/export.js.map +0 -1
- package/lib/components/viewer2d/grids/grid-horizontal-streak.js +0 -45
- package/lib/components/viewer2d/grids/grid-horizontal-streak.js.map +0 -1
- package/lib/components/viewer2d/grids/grid-streak.js +0 -45
- package/lib/components/viewer2d/grids/grid-streak.js.map +0 -1
- package/lib/components/viewer2d/grids/grid-vertical-streak.js +0 -45
- package/lib/components/viewer2d/grids/grid-vertical-streak.js.map +0 -1
- package/lib/components/viewer2d/grids/grids.js +0 -45
- package/lib/components/viewer2d/grids/grids.js.map +0 -1
- package/lib/components/viewer2d/group.js +0 -63
- package/lib/components/viewer2d/group.js.map +0 -1
- package/lib/components/viewer2d/item.js +0 -522
- package/lib/components/viewer2d/item.js.map +0 -1
- package/lib/components/viewer2d/layer.js +0 -172
- package/lib/components/viewer2d/layer.js.map +0 -1
- package/lib/components/viewer2d/line.js +0 -899
- package/lib/components/viewer2d/line.js.map +0 -1
- package/lib/components/viewer2d/ruler.js +0 -108
- package/lib/components/viewer2d/ruler.js.map +0 -1
- package/lib/components/viewer2d/rulerDist.js +0 -154
- package/lib/components/viewer2d/rulerDist.js.map +0 -1
- package/lib/components/viewer2d/rulerX.js +0 -159
- package/lib/components/viewer2d/rulerX.js.map +0 -1
- package/lib/components/viewer2d/rulerY.js +0 -161
- package/lib/components/viewer2d/rulerY.js.map +0 -1
- package/lib/components/viewer2d/scene.js +0 -148
- package/lib/components/viewer2d/scene.js.map +0 -1
- package/lib/components/viewer2d/snap.js +0 -84
- package/lib/components/viewer2d/snap.js.map +0 -1
- package/lib/components/viewer2d/state.js +0 -88
- package/lib/components/viewer2d/state.js.map +0 -1
- package/lib/components/viewer2d/utils.js +0 -174
- package/lib/components/viewer2d/utils.js.map +0 -1
- package/lib/components/viewer2d/vertex.js +0 -76
- package/lib/components/viewer2d/vertex.js.map +0 -1
- package/lib/components/viewer2d/viewer2d.js +0 -1409
- package/lib/components/viewer2d/viewer2d.js.map +0 -1
- package/lib/components/viewer3d/camera-controls-module/camera-controls.module.js +0 -2598
- package/lib/components/viewer3d/camera-controls-module/camera-controls.module.js.map +0 -1
- package/lib/components/viewer3d/dcm.js +0 -408
- package/lib/components/viewer3d/dcm.js.map +0 -1
- package/lib/components/viewer3d/fbm.js +0 -421
- package/lib/components/viewer3d/fbm.js.map +0 -1
- package/lib/components/viewer3d/front3D.js +0 -76
- package/lib/components/viewer3d/front3D.js.map +0 -1
- package/lib/components/viewer3d/grid-creator.js +0 -35
- package/lib/components/viewer3d/grid-creator.js.map +0 -1
- package/lib/components/viewer3d/grids/grid-horizontal-streak.js +0 -45
- package/lib/components/viewer3d/grids/grid-horizontal-streak.js.map +0 -1
- package/lib/components/viewer3d/grids/grid-streak.js +0 -36
- package/lib/components/viewer3d/grids/grid-streak.js.map +0 -1
- package/lib/components/viewer3d/grids/grid-vertical-streak.js +0 -45
- package/lib/components/viewer3d/grids/grid-vertical-streak.js.map +0 -1
- package/lib/components/viewer3d/libs/first-person-controls.js +0 -75
- package/lib/components/viewer3d/libs/first-person-controls.js.map +0 -1
- package/lib/components/viewer3d/libs/helvetiker_regular.typeface.js +0 -1288
- package/lib/components/viewer3d/libs/helvetiker_regular.typeface.js.map +0 -1
- package/lib/components/viewer3d/libs/mtl-loader.js +0 -360
- package/lib/components/viewer3d/libs/mtl-loader.js.map +0 -1
- package/lib/components/viewer3d/libs/obj-loader.js +0 -465
- package/lib/components/viewer3d/libs/obj-loader.js.map +0 -1
- package/lib/components/viewer3d/libs/orbit-controls.js +0 -701
- package/lib/components/viewer3d/libs/orbit-controls.js.map +0 -1
- package/lib/components/viewer3d/libs/pointer-lock-controls.js +0 -48
- package/lib/components/viewer3d/libs/pointer-lock-controls.js.map +0 -1
- package/lib/components/viewer3d/lrm.js +0 -312
- package/lib/components/viewer3d/lrm.js.map +0 -1
- package/lib/components/viewer3d/model.js +0 -715
- package/lib/components/viewer3d/model.js.map +0 -1
- package/lib/components/viewer3d/pointer-lock-navigation.js +0 -123
- package/lib/components/viewer3d/pointer-lock-navigation.js.map +0 -1
- package/lib/components/viewer3d/ruler-utils/itemRect.js +0 -69
- package/lib/components/viewer3d/ruler-utils/itemRect.js.map +0 -1
- package/lib/components/viewer3d/ruler-utils/layer3D.js +0 -503
- package/lib/components/viewer3d/ruler-utils/layer3D.js.map +0 -1
- package/lib/components/viewer3d/ruler-utils/ruler3D.js +0 -235
- package/lib/components/viewer3d/ruler-utils/ruler3D.js.map +0 -1
- package/lib/components/viewer3d/ruler-utils/scene3D.js +0 -70
- package/lib/components/viewer3d/ruler-utils/scene3D.js.map +0 -1
- package/lib/components/viewer3d/ruler-utils/state3D.js +0 -26
- package/lib/components/viewer3d/ruler-utils/state3D.js.map +0 -1
- package/lib/components/viewer3d/scene-creator.js +0 -3641
- package/lib/components/viewer3d/scene-creator.js.map +0 -1
- package/lib/components/viewer3d/three-memory-cleaner.js +0 -61
- package/lib/components/viewer3d/three-memory-cleaner.js.map +0 -1
- package/lib/components/viewer3d/viewer3d-first-person.js +0 -321
- package/lib/components/viewer3d/viewer3d-first-person.js.map +0 -1
- package/lib/components/viewer3d/viewer3d.js +0 -2508
- package/lib/components/viewer3d/viewer3d.js.map +0 -1
- package/lib/components/wizardstep/button/styles.js +0 -67
- package/lib/components/wizardstep/button/styles.js.map +0 -1
- package/lib/components/wizardstep/export.js +0 -12
- package/lib/components/wizardstep/export.js.map +0 -1
- package/lib/components/wizardstep/index.js +0 -978
- package/lib/components/wizardstep/index.js.map +0 -1
- package/lib/components/wizardstep/styles.js +0 -68
- package/lib/components/wizardstep/styles.js.map +0 -1
- package/lib/components/wizardstep/wizardstep-content-button.js +0 -224
- package/lib/components/wizardstep/wizardstep-content-button.js.map +0 -1
- package/lib/components/wizardstep/wizardstep-toggle-button.js +0 -133
- package/lib/components/wizardstep/wizardstep-toggle-button.js.map +0 -1
- package/lib/constants.js +0 -646
- package/lib/constants.js.map +0 -1
- package/lib/hooks/useCheckCart.js +0 -60
- package/lib/hooks/useCheckCart.js.map +0 -1
- package/lib/hooks/useGetPricesBySku.js +0 -81
- package/lib/hooks/useGetPricesBySku.js.map +0 -1
- package/lib/hooks/useValidateToken.js +0 -207
- package/lib/hooks/useValidateToken.js.map +0 -1
- package/lib/index.js +0 -102
- package/lib/index.js.map +0 -1
- package/lib/models.js +0 -518
- package/lib/models.js.map +0 -1
- package/lib/plugins/SVGLoader.js +0 -1418
- package/lib/plugins/SVGLoader.js.map +0 -1
- package/lib/plugins/autosave.js +0 -40
- package/lib/plugins/autosave.js.map +0 -1
- package/lib/plugins/console-debugger.js +0 -45
- package/lib/plugins/console-debugger.js.map +0 -1
- package/lib/plugins/export.js +0 -34
- package/lib/plugins/export.js.map +0 -1
- package/lib/plugins/keyboard.js +0 -108
- package/lib/plugins/keyboard.js.map +0 -1
- package/lib/reducers/areas-reducer.js +0 -19
- package/lib/reducers/areas-reducer.js.map +0 -1
- package/lib/reducers/export.js +0 -98
- package/lib/reducers/export.js.map +0 -1
- package/lib/reducers/groups-reducer.js +0 -45
- package/lib/reducers/groups-reducer.js.map +0 -1
- package/lib/reducers/holes-reducer.js +0 -69
- package/lib/reducers/holes-reducer.js.map +0 -1
- package/lib/reducers/items-reducer.js +0 -147
- package/lib/reducers/items-reducer.js.map +0 -1
- package/lib/reducers/lines-reducer.js +0 -52
- package/lib/reducers/lines-reducer.js.map +0 -1
- package/lib/reducers/project-reducer.js +0 -136
- package/lib/reducers/project-reducer.js.map +0 -1
- package/lib/reducers/reducer.js +0 -27
- package/lib/reducers/reducer.js.map +0 -1
- package/lib/reducers/scene-reducer.js +0 -35
- package/lib/reducers/scene-reducer.js.map +0 -1
- package/lib/reducers/user-reducer.js +0 -48
- package/lib/reducers/user-reducer.js.map +0 -1
- package/lib/reducers/vertices-reducer.js +0 -26
- package/lib/reducers/vertices-reducer.js.map +0 -1
- package/lib/reducers/viewer2d-reducer.js +0 -83
- package/lib/reducers/viewer2d-reducer.js.map +0 -1
- package/lib/reducers/viewer3d-reducer.js +0 -64
- package/lib/reducers/viewer3d-reducer.js.map +0 -1
- package/lib/shared-style.js +0 -73
- package/lib/shared-style.js.map +0 -1
- package/lib/styles/export.js +0 -14
- package/lib/styles/export.js.map +0 -1
- package/lib/translator/en.js +0 -111
- package/lib/translator/en.js.map +0 -1
- package/lib/translator/it.js +0 -86
- package/lib/translator/it.js.map +0 -1
- package/lib/translator/ru.js +0 -86
- package/lib/translator/ru.js.map +0 -1
- package/lib/translator/translator.js +0 -91
- package/lib/translator/translator.js.map +0 -1
- package/lib/utils/browser.js +0 -41
- package/lib/utils/browser.js.map +0 -1
- package/lib/utils/email-validator.js +0 -11
- package/lib/utils/email-validator.js.map +0 -1
- package/lib/utils/export.js +0 -57
- package/lib/utils/export.js.map +0 -1
- package/lib/utils/geometry.js +0 -2329
- package/lib/utils/geometry.js.map +0 -1
- package/lib/utils/get-edges-of-subgraphs.js +0 -29
- package/lib/utils/get-edges-of-subgraphs.js.map +0 -1
- package/lib/utils/graph-cycles.js +0 -241
- package/lib/utils/graph-cycles.js.map +0 -1
- package/lib/utils/graph-inner-cycles.js +0 -55
- package/lib/utils/graph-inner-cycles.js.map +0 -1
- package/lib/utils/graph.js +0 -152
- package/lib/utils/graph.js.map +0 -1
- package/lib/utils/helper.js +0 -360
- package/lib/utils/helper.js.map +0 -1
- package/lib/utils/history.js +0 -37
- package/lib/utils/history.js.map +0 -1
- package/lib/utils/id-broker.js +0 -26
- package/lib/utils/id-broker.js.map +0 -1
- package/lib/utils/logger.js +0 -15
- package/lib/utils/logger.js.map +0 -1
- package/lib/utils/math.js +0 -58
- package/lib/utils/math.js.map +0 -1
- package/lib/utils/molding.js +0 -864
- package/lib/utils/molding.js.map +0 -1
- package/lib/utils/name-generator.js +0 -24
- package/lib/utils/name-generator.js.map +0 -1
- package/lib/utils/objects-utils.js +0 -61
- package/lib/utils/objects-utils.js.map +0 -1
- package/lib/utils/phone-validator.js +0 -11
- package/lib/utils/phone-validator.js.map +0 -1
- package/lib/utils/process-black-list.js +0 -25
- package/lib/utils/process-black-list.js.map +0 -1
- package/lib/utils/react-if.js +0 -25
- package/lib/utils/react-if.js.map +0 -1
- package/lib/utils/snap-scene.js +0 -106
- package/lib/utils/snap-scene.js.map +0 -1
- package/lib/utils/snap.js +0 -250
- package/lib/utils/snap.js.map +0 -1
- package/lib/utils/threeCSG.es6.js +0 -504
- package/lib/utils/threeCSG.es6.js.map +0 -1
- package/lib/version.js +0 -8
- package/lib/version.js.map +0 -1
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = AreaFactory;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _areaFactory3d = require("./area-factory-3d");
|
|
9
|
-
var SharedStyle = _interopRequireWildcard(require("../../shared-style"));
|
|
10
|
-
var _translator = _interopRequireDefault(require("../../translator/translator"));
|
|
11
|
-
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); }
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
|
-
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); }
|
|
14
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
17
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
-
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); }
|
|
19
|
-
var translator = new _translator["default"]();
|
|
20
|
-
function AreaFactory(name, info, textures) {
|
|
21
|
-
var areaElement = {
|
|
22
|
-
name: name,
|
|
23
|
-
prototype: 'areas',
|
|
24
|
-
info: _objectSpread(_objectSpread({}, info), {}, {
|
|
25
|
-
visibility: {
|
|
26
|
-
catalog: false,
|
|
27
|
-
layerElementsVisible: false
|
|
28
|
-
}
|
|
29
|
-
}),
|
|
30
|
-
properties: {
|
|
31
|
-
patternColor: {
|
|
32
|
-
label: translator.t('color'),
|
|
33
|
-
type: 'color',
|
|
34
|
-
defaultValue: 'rgba(175, 175, 175)'
|
|
35
|
-
},
|
|
36
|
-
thickness: {
|
|
37
|
-
label: translator.t('thickness'),
|
|
38
|
-
type: 'length-measure',
|
|
39
|
-
defaultValue: {
|
|
40
|
-
length: 0
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
render2D: function render2D(element, layer, scene) {
|
|
45
|
-
var path = '';
|
|
46
|
-
|
|
47
|
-
///print area path
|
|
48
|
-
element.vertices.forEach(function (vertexID, ind) {
|
|
49
|
-
var vertex = layer.vertices.get(vertexID);
|
|
50
|
-
path += (ind ? 'L' : 'M') + vertex.x + ' ' + vertex.y + ' ';
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
//add holes
|
|
54
|
-
element.holes.forEach(function (areaID) {
|
|
55
|
-
var area = layer.areas.get(areaID);
|
|
56
|
-
area.vertices.reverse().forEach(function (vertexID, ind) {
|
|
57
|
-
var vertex = layer.vertices.get(vertexID);
|
|
58
|
-
path += (ind ? 'L' : 'M') + vertex.x + ' ' + vertex.y + ' ';
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
var fill = element.selected ? SharedStyle.AREA_MESH_COLOR.selected : SharedStyle.AREA_MESH_COLOR.unselected;
|
|
62
|
-
return /*#__PURE__*/_react["default"].createElement("path", {
|
|
63
|
-
d: path,
|
|
64
|
-
fill: fill
|
|
65
|
-
});
|
|
66
|
-
},
|
|
67
|
-
render3D: function render3D(element, layer, scene) {
|
|
68
|
-
return (0, _areaFactory3d.createArea)(element, layer, scene, textures);
|
|
69
|
-
},
|
|
70
|
-
updateRender3D: function updateRender3D(element, layer, scene, mesh, oldElement, differences, selfDestroy, selfBuild) {
|
|
71
|
-
return (0, _areaFactory3d.updatedArea)(element, layer, scene, textures, mesh, oldElement, differences, selfDestroy, selfBuild);
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
if (textures && textures !== {}) {
|
|
75
|
-
var textureValues = {
|
|
76
|
-
none: 'None'
|
|
77
|
-
};
|
|
78
|
-
for (var textureName in textures) {
|
|
79
|
-
textureValues[textureName] = textures[textureName].name;
|
|
80
|
-
}
|
|
81
|
-
areaElement.properties.texture = {
|
|
82
|
-
label: translator.t('texture'),
|
|
83
|
-
type: 'enum',
|
|
84
|
-
defaultValue: 'none',
|
|
85
|
-
values: textureValues
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
return areaElement;
|
|
89
|
-
}
|
|
90
|
-
//# sourceMappingURL=area-factory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"area-factory.js","names":["_react","_interopRequireDefault","require","_areaFactory3d","SharedStyle","_interopRequireWildcard","_translator","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","_typeof","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","Symbol","iterator","constructor","prototype","ownKeys","keys","getOwnPropertySymbols","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","_toPropertyKey","value","configurable","writable","_toPrimitive","toPrimitive","TypeError","String","Number","translator","Translator","AreaFactory","name","info","textures","areaElement","visibility","catalog","layerElementsVisible","properties","patternColor","label","type","defaultValue","thickness","render2D","element","layer","scene","path","vertices","vertexID","ind","vertex","x","y","holes","areaID","area","areas","reverse","fill","selected","AREA_MESH_COLOR","unselected","createElement","d","render3D","createArea","updateRender3D","mesh","oldElement","differences","selfDestroy","selfBuild","updatedArea","textureValues","none","textureName","texture","values"],"sources":["../../../src/catalog/factories/area-factory.jsx"],"sourcesContent":["import React from 'react';\r\nimport { createArea, updatedArea } from './area-factory-3d';\r\nimport * as SharedStyle from '../../shared-style';\r\nimport Translator from '../../translator/translator';\r\n\r\nlet translator = new Translator();\r\n\r\nexport default function AreaFactory(name, info, textures) {\r\n let areaElement = {\r\n name,\r\n prototype: 'areas',\r\n info: {\r\n ...info,\r\n visibility: {\r\n catalog: false,\r\n layerElementsVisible: false\r\n }\r\n },\r\n properties: {\r\n patternColor: {\r\n label: translator.t('color'),\r\n type: 'color',\r\n defaultValue: 'rgba(175, 175, 175)'\r\n },\r\n thickness: {\r\n label: translator.t('thickness'),\r\n type: 'length-measure',\r\n defaultValue: {\r\n length: 0\r\n }\r\n }\r\n },\r\n render2D: function (element, layer, scene) {\r\n let path = '';\r\n\r\n ///print area path\r\n element.vertices.forEach((vertexID, ind) => {\r\n let vertex = layer.vertices.get(vertexID);\r\n path += (ind ? 'L' : 'M') + vertex.x + ' ' + vertex.y + ' ';\r\n });\r\n\r\n //add holes\r\n element.holes.forEach(areaID => {\r\n let area = layer.areas.get(areaID);\r\n\r\n area.vertices.reverse().forEach((vertexID, ind) => {\r\n let vertex = layer.vertices.get(vertexID);\r\n path += (ind ? 'L' : 'M') + vertex.x + ' ' + vertex.y + ' ';\r\n });\r\n });\r\n\r\n let fill = element.selected\r\n ? SharedStyle.AREA_MESH_COLOR.selected\r\n : SharedStyle.AREA_MESH_COLOR.unselected;\r\n return <path d={path} fill={fill} />;\r\n },\r\n\r\n render3D: function (element, layer, scene) {\r\n return createArea(element, layer, scene, textures);\r\n },\r\n\r\n updateRender3D: (\r\n element,\r\n layer,\r\n scene,\r\n mesh,\r\n oldElement,\r\n differences,\r\n selfDestroy,\r\n selfBuild\r\n ) => {\r\n return 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 }\r\n };\r\n\r\n if (textures && textures !== {}) {\r\n let textureValues = { none: 'None' };\r\n\r\n for (let textureName in textures) {\r\n textureValues[textureName] = textures[textureName].name;\r\n }\r\n\r\n areaElement.properties.texture = {\r\n label: translator.t('texture'),\r\n type: 'enum',\r\n defaultValue: 'none',\r\n values: textureValues\r\n };\r\n }\r\n\r\n return areaElement;\r\n}\r\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAC,uBAAA,CAAAH,OAAA;AACA,IAAAI,WAAA,GAAAL,sBAAA,CAAAC,OAAA;AAAqD,SAAAG,wBAAAE,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAJ,uBAAA,YAAAA,wBAAAE,CAAA,EAAAC,CAA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EC,KAAK,EAAEd,QAAQ,CAAC;IACpD,CAAC;IAEDmC,cAAc,EAAE,SAAhBA,cAAcA,CACZvB,OAAO,EACPC,KAAK,EACLC,KAAK,EACLsB,IAAI,EACJC,UAAU,EACVC,WAAW,EACXC,WAAW,EACXC,SAAS,EACN;MACH,OAAO,IAAAC,0BAAW,EAChB7B,OAAO,EACPC,KAAK,EACLC,KAAK,EACLd,QAAQ,EACRoC,IAAI,EACJC,UAAU,EACVC,WAAW,EACXC,WAAW,EACXC,SACF,CAAC;IACH;EACF,CAAC;EAED,IAAIxC,QAAQ,IAAIA,QAAQ,KAAK,CAAC,CAAC,EAAE;IAC/B,IAAI0C,aAAa,GAAG;MAAEC,IAAI,EAAE;IAAO,CAAC;IAEpC,KAAK,IAAIC,WAAW,IAAI5C,QAAQ,EAAE;MAChC0C,aAAa,CAACE,WAAW,CAAC,GAAG5C,QAAQ,CAAC4C,WAAW,CAAC,CAAC9C,IAAI;IACzD;IAEAG,WAAW,CAACI,UAAU,CAACwC,OAAO,GAAG;MAC/BtC,KAAK,EAAEZ,UAAU,CAAC9C,CAAC,CAAC,SAAS,CAAC;MAC9B2D,IAAI,EAAE,MAAM;MACZC,YAAY,EAAE,MAAM;MACpBqC,MAAM,EAAEJ;IACV,CAAC;EACH;EAEA,OAAOzC,WAAW;AACpB","ignoreList":[]}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "AreaFactory", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _areaFactory["default"];
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "WallFactory", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _wallFactory["default"];
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
exports["default"] = void 0;
|
|
19
|
-
var _wallFactory = _interopRequireDefault(require("./wall-factory"));
|
|
20
|
-
var _areaFactory = _interopRequireDefault(require("./area-factory"));
|
|
21
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
22
|
-
var _default = exports["default"] = {
|
|
23
|
-
WallFactory: _wallFactory["default"],
|
|
24
|
-
AreaFactory: _areaFactory["default"]
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=export.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"export.js","names":["_wallFactory","_interopRequireDefault","require","_areaFactory","e","__esModule","_default","exports","WallFactory","AreaFactory"],"sources":["../../../src/catalog/factories/export.js"],"sourcesContent":["import WallFactory from './wall-factory';\r\nimport AreaFactory from './area-factory';\r\n\r\nexport { WallFactory, AreaFactory };\r\n\r\nexport default {\r\n WallFactory,\r\n AreaFactory\r\n};\r\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAF,sBAAA,CAAAC,OAAA;AAAyC,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAAA,IAAAE,QAAA,GAAAC,OAAA,cAI1B;EACbC,WAAW,EAAXA,uBAAW;EACXC,WAAW,EAAXA;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,213 +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.buildWall = buildWall;
|
|
8
|
-
exports.updatedWall = updatedWall;
|
|
9
|
-
var _three = _interopRequireWildcard(require("three"));
|
|
10
|
-
var Three = _three;
|
|
11
|
-
var _geometry = require("../../utils/geometry");
|
|
12
|
-
var _helper = require("../../../src/utils/helper");
|
|
13
|
-
var SharedStyle = _interopRequireWildcard(require("../../shared-style"));
|
|
14
|
-
var _constants = require("../../constants");
|
|
15
|
-
var _convertUnits = _interopRequireDefault(require("convert-units"));
|
|
16
|
-
var _threeCSG = _interopRequireDefault(require("../../utils/threeCSG.es6"));
|
|
17
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
18
|
-
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); }
|
|
19
|
-
var params = {
|
|
20
|
-
envMap: 'HDR',
|
|
21
|
-
roughness: 0.1,
|
|
22
|
-
metalness: 0.1,
|
|
23
|
-
exposure: 0.1
|
|
24
|
-
// debug: false
|
|
25
|
-
};
|
|
26
|
-
var halfPI = Math.PI / 2;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Apply a texture to a wall face
|
|
30
|
-
* @param material: The material of the face
|
|
31
|
-
* @param texture: The texture to load
|
|
32
|
-
* @param length: The lenght of the face
|
|
33
|
-
* @param height: The height of the face
|
|
34
|
-
*/
|
|
35
|
-
var applyTexture = function applyTexture(material, texture, length, height) {
|
|
36
|
-
var loader = new _three.TextureLoader();
|
|
37
|
-
if (texture) {
|
|
38
|
-
material.map = loader.load(texture.uri["default"]);
|
|
39
|
-
material.map.colorSpace = Three.SRGBColorSpace, material.needsUpdate = true;
|
|
40
|
-
material.map.wrapS = _three.RepeatWrapping;
|
|
41
|
-
material.map.wrapT = _three.RepeatWrapping;
|
|
42
|
-
material.map.repeat.set(length * texture.lengthRepeatScale, height * texture.heightRepeatScale);
|
|
43
|
-
if (texture.normal) {
|
|
44
|
-
material.normalMap = loader.load(texture.normal.uri["default"]);
|
|
45
|
-
material.normalScale = new _three.Vector2(texture.normal.normalScaleX, texture.normal.normalScaleY);
|
|
46
|
-
material.normalMap.wrapS = _three.RepeatWrapping;
|
|
47
|
-
material.normalMap.wrapT = _three.RepeatWrapping;
|
|
48
|
-
material.normalMap.repeat.set(length * texture.normal.lengthRepeatScale, height * texture.normal.heightRepeatScale);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
function buildWall(element, layer, scene, textures, mode) {
|
|
53
|
-
// Get the two vertices of the wall
|
|
54
|
-
var vetName0 = element.vertices.get(0);
|
|
55
|
-
var vetName1 = element.vertices.get(1);
|
|
56
|
-
// let invert = element.toJS().invert;
|
|
57
|
-
|
|
58
|
-
// As long as its two ending points is same. This is no longer a line.
|
|
59
|
-
if (vetName0 === vetName1) {
|
|
60
|
-
return Promise.resolve(null);
|
|
61
|
-
}
|
|
62
|
-
var wallColor;
|
|
63
|
-
layer.lines.forEach(function (data) {
|
|
64
|
-
wallColor = data.wallColor;
|
|
65
|
-
});
|
|
66
|
-
var vertex0 = layer.vertices.get(vetName0);
|
|
67
|
-
var vertex1 = layer.vertices.get(vetName1);
|
|
68
|
-
|
|
69
|
-
// Get height and thickness of the wall converting them into the current scene units
|
|
70
|
-
// let height = element.properties.getIn(['height', 'length']);
|
|
71
|
-
// let thickness = element.properties.getIn(['thickness', 'length']);
|
|
72
|
-
var height = (0, _convertUnits["default"])(layer.ceilHeight).from(layer.unit).to(_constants.UNIT_CENTIMETER);
|
|
73
|
-
var thickness = 2.0;
|
|
74
|
-
var distance = (0, _geometry.verticesDistance)(vertex0, vertex1);
|
|
75
|
-
var soulMaterial = new Three.MeshPhongMaterial({
|
|
76
|
-
color: new Three.Color(wallColor).convertLinearToSRGB()
|
|
77
|
-
}); //element.selected ? SharedStyle.MESH_SELECTED : 0xD3D3D3
|
|
78
|
-
var soulVertices = [];
|
|
79
|
-
soulVertices.push(new Three.Vector2(-distance / 2, height / 2));
|
|
80
|
-
soulVertices.push(new Three.Vector2(distance / 2, height / 2));
|
|
81
|
-
soulVertices.push(new Three.Vector2(distance / 2, -height / 2));
|
|
82
|
-
soulVertices.push(new Three.Vector2(-distance / 2, -height / 2));
|
|
83
|
-
var soulShape = new Three.Shape(soulVertices);
|
|
84
|
-
var soulMesh = new _three.Mesh(new _three.BoxGeometry(distance, height, thickness), soulMaterial);
|
|
85
|
-
if (element.userData.stateMode !== 'MODE_DRAWING_HOLE_3D') {
|
|
86
|
-
element.holes.forEach(function (holeID) {
|
|
87
|
-
var holeData = layer.holes.get(holeID);
|
|
88
|
-
if (holeData !== undefined) {
|
|
89
|
-
var holeWidth = holeData.properties.getIn(['width', 'length']);
|
|
90
|
-
var holeHeight = holeData.properties.getIn(['height', 'length']);
|
|
91
|
-
var holeAltitude = holeData.properties.getIn(['altitude', 'length']);
|
|
92
|
-
var offset = holeData.offset;
|
|
93
|
-
// if (vertex0.x > vertex1.x) offset = 1 - offset;
|
|
94
|
-
// if (invert) offset = 1 - offset;
|
|
95
|
-
var holeDistance = offset * distance;
|
|
96
|
-
var holeVertices = [];
|
|
97
|
-
holeVertices.push(new Three.Vector2(0, holeHeight));
|
|
98
|
-
holeVertices.push(new Three.Vector2(holeWidth, holeHeight));
|
|
99
|
-
holeVertices.push(new Three.Vector2(holeWidth, 0));
|
|
100
|
-
holeVertices.push(new Three.Vector2(0, 0));
|
|
101
|
-
for (var i = 0; i < holeVertices.length; i++) {
|
|
102
|
-
holeVertices[i].x += holeDistance - distance / 2 - holeWidth / 2;
|
|
103
|
-
holeVertices[i].y -= height / 2 - holeAltitude;
|
|
104
|
-
}
|
|
105
|
-
var shapeHole = new Three.Shape(holeVertices);
|
|
106
|
-
soulShape.holes.push(shapeHole);
|
|
107
|
-
var holeGeometry = new _three.BoxGeometry(holeWidth, holeHeight, thickness);
|
|
108
|
-
var holeMesh = new _three.Mesh(holeGeometry);
|
|
109
|
-
holeMesh.position.x += holeWidth / 2;
|
|
110
|
-
holeMesh.position.y += holeHeight / 2;
|
|
111
|
-
holeMesh.position.x += holeDistance - distance / 2 - holeWidth / 2;
|
|
112
|
-
holeMesh.position.y -= height / 2 - holeAltitude;
|
|
113
|
-
var wallBSP = new _threeCSG["default"](soulMesh);
|
|
114
|
-
var holeBSP = new _threeCSG["default"](holeMesh);
|
|
115
|
-
var wallWithHoleBSP = wallBSP.subtract(holeBSP);
|
|
116
|
-
soulMesh = wallWithHoleBSP.toMesh(soulMaterial);
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
var cAlpha = new Three.Vector2(vertex0.x - vertex1.x, vertex0.y - vertex1.y).angle();
|
|
121
|
-
var soulGeometry = new Three.ShapeGeometry(soulShape);
|
|
122
|
-
var soul = new _three.Mesh(soulGeometry, soulMaterial);
|
|
123
|
-
soul.receiveShadow = true;
|
|
124
|
-
soul.castShadow = true;
|
|
125
|
-
soul.position.y += height / 2;
|
|
126
|
-
soul.rotation.y = cAlpha + Math.PI;
|
|
127
|
-
soul.name = 'soulFace';
|
|
128
|
-
soulMesh.position.y += height / 2;
|
|
129
|
-
soulMesh.rotation.y = cAlpha + Math.PI;
|
|
130
|
-
soulMesh.name = 'soul';
|
|
131
|
-
soulMesh.castShadow = true;
|
|
132
|
-
var frontMaterial = new _three.MeshStandardMaterial({
|
|
133
|
-
color: new Three.Color(wallColor).convertLinearToSRGB(),
|
|
134
|
-
metalness: 0.1,
|
|
135
|
-
roughness: 0.9
|
|
136
|
-
// envMap: textureCube,
|
|
137
|
-
});
|
|
138
|
-
var backMaterial = new _three.MeshStandardMaterial({
|
|
139
|
-
color: new Three.Color(wallColor).convertLinearToSRGB(),
|
|
140
|
-
metalness: 0.1,
|
|
141
|
-
roughness: 0.9
|
|
142
|
-
// envMap: textureCube,
|
|
143
|
-
});
|
|
144
|
-
applyTexture(frontMaterial, textures[element.properties.get('textureB')], distance, height);
|
|
145
|
-
applyTexture(backMaterial, textures[element.properties.get('textureB')], distance, height);
|
|
146
|
-
var frontFace = soul.clone();
|
|
147
|
-
frontFace.material = frontMaterial;
|
|
148
|
-
frontFace.name = 'frontFace';
|
|
149
|
-
soulMesh.material = frontMaterial;
|
|
150
|
-
var merged = new _three.Group();
|
|
151
|
-
merged.add(frontFace, soulMesh);
|
|
152
|
-
|
|
153
|
-
// if this wall is front of camera, show/hide
|
|
154
|
-
if (!(0, _helper.isElevationView)(mode)) {
|
|
155
|
-
frontFace.onBeforeRender = function (renderer, scene, camera, geometry, material, group) {
|
|
156
|
-
var soulMesh = this.parent.getObjectByName('soul');
|
|
157
|
-
if (geometry.attributes.normal === undefined) return soulMesh.visible = false;
|
|
158
|
-
geometry.computeVertexNormals();
|
|
159
|
-
var normals = geometry.attributes.normal.array;
|
|
160
|
-
var pos = new Three.Vector4(0, 0, 0, 1);
|
|
161
|
-
pos = pos.applyMatrix4(this.matrixWorld);
|
|
162
|
-
pos = pos.applyMatrix4(camera.matrixWorldInverse);
|
|
163
|
-
var normal = new Three.Vector4(normals[0], normals[1], normals[2], 0);
|
|
164
|
-
normal = normal.applyMatrix4(this.matrixWorld);
|
|
165
|
-
normal = normal.applyMatrix4(camera.matrixWorldInverse);
|
|
166
|
-
if (soulMesh) {
|
|
167
|
-
if (pos.dot(normal) >= 0) soulMesh.visible = false;else soulMesh.visible = true;
|
|
168
|
-
}
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
return Promise.resolve(merged);
|
|
172
|
-
}
|
|
173
|
-
function updatedWall(element, layer, scene, textures, mesh, oldElement, differences, selfDestroy, selfBuild) {
|
|
174
|
-
var noPerf = function noPerf() {
|
|
175
|
-
selfDestroy();
|
|
176
|
-
return selfBuild();
|
|
177
|
-
};
|
|
178
|
-
var soul = mesh.getObjectByName('soul');
|
|
179
|
-
var frontFace = mesh.getObjectByName('frontFace');
|
|
180
|
-
var backFace = mesh.getObjectByName('backFace');
|
|
181
|
-
if (differences[0] == 'selected') {
|
|
182
|
-
if (soul !== undefined) {
|
|
183
|
-
if (element.selected) {
|
|
184
|
-
soul.material = new _three.MeshBasicMaterial({
|
|
185
|
-
color: new Three.Color(SharedStyle.MESH_SELECTED).convertLinearToSRGB()
|
|
186
|
-
});
|
|
187
|
-
} else {
|
|
188
|
-
var soulMaterial = frontFace ? frontFace.material : backFace.material;
|
|
189
|
-
soul.material = soulMaterial;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
} else if (differences[0] == 'properties') {
|
|
193
|
-
if (differences[1] == 'thickness') {
|
|
194
|
-
var newThickness = _constants.LINE_THICKNESS / 2;
|
|
195
|
-
var oldThickness = _constants.LINE_THICKNESS / 2;
|
|
196
|
-
// let newThickness = element.getIn(['properties', 'thickness', 'length']);
|
|
197
|
-
// let oldThickness = oldElement.getIn(['properties', 'thickness', 'length']);
|
|
198
|
-
var halfNewThickness = newThickness / 2;
|
|
199
|
-
var texturedFaceDistance = halfNewThickness + 1;
|
|
200
|
-
var originalThickness = oldThickness / soul.scale.z;
|
|
201
|
-
var alpha = soul.rotation.y;
|
|
202
|
-
var xTemp = texturedFaceDistance * Math.cos(alpha - halfPI);
|
|
203
|
-
var zTemp = texturedFaceDistance * Math.sin(alpha - halfPI);
|
|
204
|
-
soul.scale.set(1, 1, newThickness / originalThickness);
|
|
205
|
-
frontFace.position.x = soul.position.x + xTemp;
|
|
206
|
-
frontFace.position.z = soul.position.z + zTemp;
|
|
207
|
-
backFace.position.x = soul.position.x - xTemp;
|
|
208
|
-
backFace.position.z = soul.position.z - zTemp;
|
|
209
|
-
} else return noPerf();
|
|
210
|
-
} else return noPerf();
|
|
211
|
-
return Promise.resolve(mesh);
|
|
212
|
-
}
|
|
213
|
-
//# sourceMappingURL=wall-factory-3d.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wall-factory-3d.js","names":["_three","_interopRequireWildcard","require","Three","_geometry","_helper","SharedStyle","_constants","_convertUnits","_interopRequireDefault","_threeCSG","e","__esModule","t","WeakMap","r","n","o","i","f","__proto__","_typeof","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","params","envMap","roughness","metalness","exposure","halfPI","Math","PI","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","buildWall","element","layer","scene","textures","mode","vetName0","vertices","vetName1","Promise","resolve","wallColor","lines","forEach","data","vertex0","vertex1","convert","ceilHeight","from","unit","to","UNIT_CENTIMETER","thickness","distance","verticesDistance","soulMaterial","MeshPhongMaterial","color","Color","convertLinearToSRGB","soulVertices","push","soulShape","Shape","soulMesh","Mesh","BoxGeometry","userData","stateMode","holes","holeID","holeData","undefined","holeWidth","properties","getIn","holeHeight","holeAltitude","offset","holeDistance","holeVertices","x","y","shapeHole","holeGeometry","holeMesh","position","wallBSP","ThreeBSP","holeBSP","wallWithHoleBSP","subtract","toMesh","cAlpha","angle","soulGeometry","ShapeGeometry","soul","receiveShadow","castShadow","rotation","name","frontMaterial","MeshStandardMaterial","backMaterial","frontFace","clone","merged","Group","add","isElevationView","onBeforeRender","renderer","camera","geometry","group","parent","getObjectByName","attributes","visible","computeVertexNormals","normals","array","pos","Vector4","applyMatrix4","matrixWorld","matrixWorldInverse","dot","updatedWall","mesh","oldElement","differences","selfDestroy","selfBuild","noPerf","backFace","selected","MeshBasicMaterial","MESH_SELECTED","newThickness","LINE_THICKNESS","oldThickness","halfNewThickness","texturedFaceDistance","originalThickness","scale","z","alpha","xTemp","cos","zTemp","sin"],"sources":["../../../src/catalog/factories/wall-factory-3d.js"],"sourcesContent":["import {\r\n TextureLoader,\r\n Mesh,\r\n RepeatWrapping,\r\n Vector2,\r\n BoxGeometry,\r\n MeshBasicMaterial,\r\n MeshStandardMaterial,\r\n Group,\r\n CubeTextureLoader,\r\n sRGBEncoding,\r\n DoubleSide\r\n} from 'three';\r\n\r\nimport { verticesDistance } from '../../utils/geometry';\r\nimport * as Three from 'three';\r\nimport { textureCube, isElevationView } from '../../../src/utils/helper';\r\n\r\nimport * as SharedStyle from '../../shared-style';\r\nimport {\r\n MODE_ELEVATION_VIEW,\r\n LINE_THICKNESS,\r\n UNIT_CENTIMETER\r\n} from '../../constants';\r\nimport convert from 'convert-units';\r\nimport ThreeBSP from '../../utils/threeCSG.es6';\r\n\r\nconst params = {\r\n envMap: 'HDR',\r\n roughness: 0.1,\r\n metalness: 0.1,\r\n exposure: 0.1\r\n // debug: false\r\n};\r\nconst halfPI = Math.PI / 2;\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\r\n if (texture) {\r\n material.map = loader.load(texture.uri.default);\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.default);\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\nexport function buildWall(element, layer, scene, textures, mode) {\r\n // Get the two vertices of the wall\r\n let vetName0 = element.vertices.get(0);\r\n let vetName1 = element.vertices.get(1);\r\n // let invert = element.toJS().invert;\r\n\r\n // As long as its two ending points is same. This is no longer a line.\r\n if (vetName0 === vetName1) {\r\n return Promise.resolve(null);\r\n }\r\n\r\n let wallColor;\r\n layer.lines.forEach(data => {\r\n wallColor = data.wallColor;\r\n });\r\n let vertex0 = layer.vertices.get(vetName0);\r\n let vertex1 = layer.vertices.get(vetName1);\r\n\r\n // Get height and thickness of the wall converting them into the current scene units\r\n // let height = element.properties.getIn(['height', 'length']);\r\n // let thickness = element.properties.getIn(['thickness', 'length']);\r\n let height = convert(layer.ceilHeight).from(layer.unit).to(UNIT_CENTIMETER);\r\n let thickness = 2.0;\r\n\r\n let distance = verticesDistance(vertex0, vertex1);\r\n\r\n let soulMaterial = new Three.MeshPhongMaterial({\r\n color: new Three.Color(wallColor).convertLinearToSRGB()\r\n }); //element.selected ? SharedStyle.MESH_SELECTED : 0xD3D3D3\r\n let soulVertices = [];\r\n soulVertices.push(new Three.Vector2(-distance / 2, height / 2));\r\n soulVertices.push(new Three.Vector2(distance / 2, height / 2));\r\n soulVertices.push(new Three.Vector2(distance / 2, -height / 2));\r\n soulVertices.push(new Three.Vector2(-distance / 2, -height / 2));\r\n let soulShape = new Three.Shape(soulVertices);\r\n let soulMesh = new Mesh(\r\n new BoxGeometry(distance, height, thickness),\r\n soulMaterial\r\n );\r\n\r\n if (element.userData.stateMode !== 'MODE_DRAWING_HOLE_3D') {\r\n element.holes.forEach(holeID => {\r\n let holeData = layer.holes.get(holeID);\r\n if (holeData !== undefined) {\r\n let holeWidth = holeData.properties.getIn(['width', 'length']);\r\n let holeHeight = holeData.properties.getIn(['height', 'length']);\r\n let holeAltitude = holeData.properties.getIn(['altitude', 'length']);\r\n let offset = holeData.offset;\r\n // if (vertex0.x > vertex1.x) offset = 1 - offset;\r\n // if (invert) offset = 1 - offset;\r\n let holeDistance = offset * distance;\r\n\r\n let holeVertices = [];\r\n holeVertices.push(new Three.Vector2(0, holeHeight));\r\n holeVertices.push(new Three.Vector2(holeWidth, holeHeight));\r\n holeVertices.push(new Three.Vector2(holeWidth, 0));\r\n holeVertices.push(new Three.Vector2(0, 0));\r\n for (let i = 0; i < holeVertices.length; i++) {\r\n holeVertices[i].x += holeDistance - distance / 2 - holeWidth / 2;\r\n holeVertices[i].y -= height / 2 - holeAltitude;\r\n }\r\n let shapeHole = new Three.Shape(holeVertices);\r\n soulShape.holes.push(shapeHole);\r\n\r\n let holeGeometry = new BoxGeometry(holeWidth, holeHeight, thickness);\r\n let holeMesh = new Mesh(holeGeometry);\r\n holeMesh.position.x += holeWidth / 2;\r\n holeMesh.position.y += holeHeight / 2;\r\n\r\n holeMesh.position.x += holeDistance - distance / 2 - holeWidth / 2;\r\n holeMesh.position.y -= height / 2 - holeAltitude;\r\n\r\n let wallBSP = new ThreeBSP(soulMesh);\r\n let holeBSP = new ThreeBSP(holeMesh);\r\n\r\n let wallWithHoleBSP = wallBSP.subtract(holeBSP);\r\n soulMesh = wallWithHoleBSP.toMesh(soulMaterial);\r\n }\r\n });\r\n }\r\n\r\n let cAlpha = new Three.Vector2(\r\n vertex0.x - vertex1.x,\r\n vertex0.y - vertex1.y\r\n ).angle();\r\n let soulGeometry = new Three.ShapeGeometry(soulShape);\r\n let soul = new Mesh(soulGeometry, soulMaterial);\r\n soul.receiveShadow = true;\r\n soul.castShadow = true;\r\n soul.position.y += height / 2;\r\n soul.rotation.y = cAlpha + Math.PI;\r\n soul.name = 'soulFace';\r\n\r\n soulMesh.position.y += height / 2;\r\n soulMesh.rotation.y = cAlpha + Math.PI;\r\n soulMesh.name = 'soul';\r\n soulMesh.castShadow = true;\r\n\r\n let frontMaterial = new MeshStandardMaterial({\r\n color: new Three.Color(wallColor).convertLinearToSRGB(),\r\n metalness: 0.1,\r\n roughness: 0.9\r\n // envMap: textureCube,\r\n });\r\n let backMaterial = new MeshStandardMaterial({\r\n color: new Three.Color(wallColor).convertLinearToSRGB(),\r\n metalness: 0.1,\r\n roughness: 0.9\r\n // envMap: textureCube,\r\n });\r\n applyTexture(\r\n frontMaterial,\r\n textures[element.properties.get('textureB')],\r\n distance,\r\n height\r\n );\r\n applyTexture(\r\n backMaterial,\r\n textures[element.properties.get('textureB')],\r\n distance,\r\n height\r\n );\r\n\r\n let frontFace = soul.clone();\r\n frontFace.material = frontMaterial;\r\n frontFace.name = 'frontFace';\r\n\r\n soulMesh.material = frontMaterial;\r\n\r\n let merged = new Group();\r\n merged.add(frontFace, soulMesh);\r\n\r\n // if this wall is front of camera, show/hide\r\n if (!isElevationView(mode)) {\r\n frontFace.onBeforeRender = function (\r\n renderer,\r\n scene,\r\n camera,\r\n geometry,\r\n material,\r\n group\r\n ) {\r\n var soulMesh = this.parent.getObjectByName('soul');\r\n if (geometry.attributes.normal === undefined)\r\n return (soulMesh.visible = false);\r\n geometry.computeVertexNormals();\r\n var normals = geometry.attributes.normal.array;\r\n var pos = new Three.Vector4(0, 0, 0, 1);\r\n pos = pos.applyMatrix4(this.matrixWorld);\r\n pos = pos.applyMatrix4(camera.matrixWorldInverse);\r\n\r\n var normal = new Three.Vector4(normals[0], normals[1], normals[2], 0);\r\n normal = normal.applyMatrix4(this.matrixWorld);\r\n normal = normal.applyMatrix4(camera.matrixWorldInverse);\r\n\r\n if (soulMesh) {\r\n if (pos.dot(normal) >= 0) soulMesh.visible = false;\r\n else soulMesh.visible = true;\r\n }\r\n };\r\n }\r\n return Promise.resolve(merged);\r\n}\r\n\r\nexport function updatedWall(\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\r\n let soul = mesh.getObjectByName('soul');\r\n let frontFace = mesh.getObjectByName('frontFace');\r\n let backFace = mesh.getObjectByName('backFace');\r\n\r\n if (differences[0] == 'selected') {\r\n if (soul !== undefined) {\r\n if (element.selected) {\r\n soul.material = new MeshBasicMaterial({\r\n color: new Three.Color(\r\n SharedStyle.MESH_SELECTED\r\n ).convertLinearToSRGB()\r\n });\r\n } else {\r\n let soulMaterial = frontFace ? frontFace.material : backFace.material;\r\n soul.material = soulMaterial;\r\n }\r\n }\r\n } else if (differences[0] == 'properties') {\r\n if (differences[1] == 'thickness') {\r\n let newThickness = LINE_THICKNESS / 2;\r\n let oldThickness = LINE_THICKNESS / 2;\r\n // let newThickness = element.getIn(['properties', 'thickness', 'length']);\r\n // let oldThickness = oldElement.getIn(['properties', 'thickness', 'length']);\r\n let halfNewThickness = newThickness / 2;\r\n let texturedFaceDistance = halfNewThickness + 1;\r\n let originalThickness = oldThickness / soul.scale.z;\r\n let alpha = soul.rotation.y;\r\n\r\n let xTemp = texturedFaceDistance * Math.cos(alpha - halfPI);\r\n let zTemp = texturedFaceDistance * Math.sin(alpha - halfPI);\r\n\r\n soul.scale.set(1, 1, newThickness / originalThickness);\r\n\r\n frontFace.position.x = soul.position.x + xTemp;\r\n frontFace.position.z = soul.position.z + zTemp;\r\n\r\n backFace.position.x = soul.position.x - xTemp;\r\n backFace.position.z = soul.position.z - zTemp;\r\n } else return noPerf();\r\n } else return noPerf();\r\n\r\n return Promise.resolve(mesh);\r\n}\r\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAYe,IAAAC,KAAA,GAAAH,MAAA;AAEf,IAAAI,SAAA,GAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;AAEA,IAAAI,WAAA,GAAAL,uBAAA,CAAAC,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AAKA,IAAAM,aAAA,GAAAC,sBAAA,CAAAP,OAAA;AACA,IAAAQ,SAAA,GAAAD,sBAAA,CAAAP,OAAA;AAAgD,SAAAO,uBA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