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,279 +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["default"] = WallFactory;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _wallFactory3d = require("./wall-factory-3d");
|
|
10
|
-
var SharedStyle = _interopRequireWildcard(require("../../shared-style"));
|
|
11
|
-
var Geometry = _interopRequireWildcard(require("../../utils/geometry"));
|
|
12
|
-
var _translator = _interopRequireDefault(require("../../translator/translator"));
|
|
13
|
-
var _constants = require("../../../src/constants");
|
|
14
|
-
var _line = _interopRequireDefault(require("../../class/line"));
|
|
15
|
-
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); }
|
|
16
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
17
|
-
// import Line from 'src/class/line';
|
|
18
|
-
|
|
19
|
-
var epsilon = 20;
|
|
20
|
-
var STYLE_TEXT = {
|
|
21
|
-
textAnchor: 'middle'
|
|
22
|
-
};
|
|
23
|
-
var STYLE_LINE = {
|
|
24
|
-
stroke: SharedStyle.LINE_MESH_COLOR.unselected
|
|
25
|
-
// stroke: "red" ,
|
|
26
|
-
|
|
27
|
-
// strokeWidth:1
|
|
28
|
-
};
|
|
29
|
-
var STYLE_INTERIOR_LINE = {
|
|
30
|
-
strokeWidth: 1,
|
|
31
|
-
stroke: SharedStyle.INTERIOR_LINE.unselected
|
|
32
|
-
};
|
|
33
|
-
var STYLE_INTERIOR_LINE_SELECTED = {
|
|
34
|
-
strokeWidth: 2,
|
|
35
|
-
stroke: SharedStyle.INTERIOR_LINE.selected,
|
|
36
|
-
fill: SharedStyle.INTERIOR_LINE.selected,
|
|
37
|
-
rx: '2px'
|
|
38
|
-
};
|
|
39
|
-
var STYLE = {
|
|
40
|
-
fill: '#0096fd',
|
|
41
|
-
stroke: SharedStyle.COLORS.white,
|
|
42
|
-
cursor: 'move'
|
|
43
|
-
};
|
|
44
|
-
var STYLE_POLYGON = {
|
|
45
|
-
strokeWidth: 1,
|
|
46
|
-
strokeLinejoin: 'round',
|
|
47
|
-
stroke: SharedStyle.LINE_MESH_COLOR.unselected,
|
|
48
|
-
rx: '2px',
|
|
49
|
-
fill: SharedStyle.LINE_MESH_COLOR.unselected
|
|
50
|
-
};
|
|
51
|
-
var STYLE_POLYGON_SELECTED = {
|
|
52
|
-
strokeWidth: 1,
|
|
53
|
-
strokeLinejoin: 'round',
|
|
54
|
-
rx: '2px',
|
|
55
|
-
stroke: SharedStyle.LINE_MESH_COLOR.selected,
|
|
56
|
-
fill: SharedStyle.LINE_MESH_COLOR.selected
|
|
57
|
-
};
|
|
58
|
-
var translator = new _translator["default"]();
|
|
59
|
-
|
|
60
|
-
/** Create Lines from State */
|
|
61
|
-
var createLineGeometry = function createLineGeometry(scene, state) {
|
|
62
|
-
var wall_thickness = _constants.LINE_THICKNESS / 2;
|
|
63
|
-
var layerID = scene.selectedLayer;
|
|
64
|
-
var layer = scene.getIn(['layers', layerID]);
|
|
65
|
-
var lines = layer.lines;
|
|
66
|
-
lines.toArray().forEach(function (line) {
|
|
67
|
-
var vertex0Id = line.vertices.get(0);
|
|
68
|
-
var vertex1Id = line.vertices.get(1);
|
|
69
|
-
var _layer$vertices$get = layer.vertices.get(vertex0Id),
|
|
70
|
-
x0 = _layer$vertices$get.x,
|
|
71
|
-
y0 = _layer$vertices$get.y;
|
|
72
|
-
var _layer$vertices$get2 = layer.vertices.get(vertex1Id),
|
|
73
|
-
x1 = _layer$vertices$get2.x,
|
|
74
|
-
y1 = _layer$vertices$get2.y;
|
|
75
|
-
if (x0 == x1 && y0 == y1) return;
|
|
76
|
-
var allLines = layer.lines.toArray();
|
|
77
|
-
var relatedLineArray = [];
|
|
78
|
-
var relatedLine0 = allLines.filter(function (allLine) {
|
|
79
|
-
return allLine.vertices.toArray().includes(vertex0Id) && line.id != allLine.id;
|
|
80
|
-
})[0];
|
|
81
|
-
var relatedLine1 = allLines.filter(function (allLine) {
|
|
82
|
-
return allLine.vertices.toArray().includes(vertex1Id) && line.id != allLine.id;
|
|
83
|
-
})[0];
|
|
84
|
-
var normalVertice = Geometry.getNormaline(x0, y0, x1, y1);
|
|
85
|
-
var rx0 = x0 + normalVertice.x * wall_thickness;
|
|
86
|
-
var ry0 = y0 + normalVertice.y * wall_thickness;
|
|
87
|
-
var rx1 = x1 + normalVertice.x * wall_thickness;
|
|
88
|
-
var ry1 = y1 + normalVertice.y * wall_thickness;
|
|
89
|
-
var intersection = [];
|
|
90
|
-
relatedLine0 ? relatedLineArray.push({
|
|
91
|
-
index: 0,
|
|
92
|
-
line: relatedLine0
|
|
93
|
-
}) : intersection.push({
|
|
94
|
-
index: 0,
|
|
95
|
-
point: {
|
|
96
|
-
x: rx0,
|
|
97
|
-
y: ry0
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
relatedLine1 ? relatedLineArray.push({
|
|
101
|
-
index: 1,
|
|
102
|
-
line: relatedLine1
|
|
103
|
-
}) : intersection.push({
|
|
104
|
-
index: 1,
|
|
105
|
-
point: {
|
|
106
|
-
x: rx1,
|
|
107
|
-
y: ry1
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
var originalLineFunction = Geometry.linePassingThroughTwoPoints(x0, y0, x1, y1);
|
|
111
|
-
originalLineFunction.c -= Math.sqrt(originalLineFunction.b * originalLineFunction.b + originalLineFunction.a * originalLineFunction.a) * wall_thickness;
|
|
112
|
-
relatedLineArray.forEach(function (lineInfo) {
|
|
113
|
-
var vertexId, originx, originy;
|
|
114
|
-
var index = lineInfo.index,
|
|
115
|
-
relatedLine = lineInfo.line;
|
|
116
|
-
index == 0 ? (vertexId = vertex0Id, originx = x0, originy = y0) : (vertexId = vertex1Id, originx = x1, originy = y1);
|
|
117
|
-
var relatedVertices = relatedLine.vertices.toArray();
|
|
118
|
-
var relatedOtherVertexID = relatedVertices[0] == vertexId ? relatedVertices[1] : relatedVertices[0];
|
|
119
|
-
var relatedVertex = layer.getIn(['vertices', relatedOtherVertexID]);
|
|
120
|
-
if (originx == relatedVertex.x && originy == relatedVertex.y) return;
|
|
121
|
-
var relatedLineFunction = Geometry.linePassingThroughTwoPoints(originx, originy, relatedVertex.x, relatedVertex.y);
|
|
122
|
-
var delta = Geometry.distancePointFromLine(relatedLineFunction.a, relatedLineFunction.b, relatedLineFunction.c, index == 0 ? x1 : x0, index == 0 ? y1 : y0);
|
|
123
|
-
// console.log(relatedLineFunction,"relatedLinefunction")
|
|
124
|
-
if (delta < 0.01) {
|
|
125
|
-
// if the directions of the current line and related line, then no need to calculate the inteersection point
|
|
126
|
-
// let rx = originx + normalVertice.x * wall_thickness;
|
|
127
|
-
// let ry = originy + normalVertice.y * wall_thickness;
|
|
128
|
-
var rx = originx + normalVertice.x * wall_thickness;
|
|
129
|
-
var ry = originy + normalVertice.y * wall_thickness;
|
|
130
|
-
intersection.push({
|
|
131
|
-
index: index,
|
|
132
|
-
point: {
|
|
133
|
-
x: rx,
|
|
134
|
-
y: ry
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
} else {
|
|
138
|
-
relatedLineFunction.c -= (relatedVertices[0] == vertexId ? 1 : -1) * Math.sqrt(relatedLineFunction.b * relatedLineFunction.b + relatedLineFunction.a * relatedLineFunction.a) * wall_thickness;
|
|
139
|
-
var point = Geometry.twoLinesIntersection(originalLineFunction.a, originalLineFunction.b, originalLineFunction.c, relatedLineFunction.a, relatedLineFunction.b, relatedLineFunction.c);
|
|
140
|
-
point && intersection.push({
|
|
141
|
-
index: index,
|
|
142
|
-
point: point
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
state = _line["default"].setRelatedLine(state, layer.id, line.id, intersection).updatedState;
|
|
147
|
-
});
|
|
148
|
-
return {
|
|
149
|
-
updatedState: state
|
|
150
|
-
};
|
|
151
|
-
};
|
|
152
|
-
function WallFactory(name, info, textures) {
|
|
153
|
-
var wallElement = {
|
|
154
|
-
name: name,
|
|
155
|
-
prototype: 'lines',
|
|
156
|
-
info: info,
|
|
157
|
-
height: {
|
|
158
|
-
label: translator.t('height'),
|
|
159
|
-
type: 'length-measure',
|
|
160
|
-
defaultValue: {
|
|
161
|
-
length: 243.84
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
thickness: {
|
|
165
|
-
label: translator.t('thickness'),
|
|
166
|
-
type: 'length-measure',
|
|
167
|
-
defaultValue: {
|
|
168
|
-
length: _constants.LINE_THICKNESS / 2
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
properties: {},
|
|
172
|
-
render2D: function render2D(element, layer, scene, state) {
|
|
173
|
-
state = createLineGeometry(scene, state).updatedState;
|
|
174
|
-
scene = state.getIn(['scene']);
|
|
175
|
-
layer = scene.getIn(['layers', scene.selectedLayer]);
|
|
176
|
-
element = layer.getIn(['lines', element['id']]);
|
|
177
|
-
// let element = layer.lines[telement.id];
|
|
178
|
-
var _layer$vertices$get3 = layer.vertices.get(element.vertices.get(0)),
|
|
179
|
-
x1 = _layer$vertices$get3.x,
|
|
180
|
-
y1 = _layer$vertices$get3.y;
|
|
181
|
-
var _layer$vertices$get4 = layer.vertices.get(element.vertices.get(1)),
|
|
182
|
-
x2 = _layer$vertices$get4.x,
|
|
183
|
-
y2 = _layer$vertices$get4.y;
|
|
184
|
-
var layertemp = state.sceneHistory.getIn(['last', 'layers', 'layer-1']);
|
|
185
|
-
var verticesinfo = layer.vertices.get(element.vertices.get(0));
|
|
186
|
-
var length = Geometry.pointsDistance(x1, y1, x2, y2);
|
|
187
|
-
var length_5 = length / 5;
|
|
188
|
-
var thickness = _constants.LINE_THICKNESS;
|
|
189
|
-
// let thickness = element.getIn(['properties', 'thickness', 'length']);
|
|
190
|
-
var half_thickness = thickness / 2;
|
|
191
|
-
var half_thickness_eps = half_thickness + epsilon;
|
|
192
|
-
var char_height = 11;
|
|
193
|
-
var extra_epsilon = 5;
|
|
194
|
-
var textDistance = half_thickness + epsilon + extra_epsilon;
|
|
195
|
-
var related0x = x1,
|
|
196
|
-
related0y = y1,
|
|
197
|
-
related1x = x2,
|
|
198
|
-
related1y = y2;
|
|
199
|
-
element.relatedVertices.forEach(function (relatedVertice, index) {
|
|
200
|
-
if (relatedVertice.index == undefined) relatedVertice = relatedVertice.toJSON();
|
|
201
|
-
if (relatedVertice.index == 0) {
|
|
202
|
-
related0x = relatedVertice.point.x;
|
|
203
|
-
related0y = relatedVertice.point.y;
|
|
204
|
-
} else {
|
|
205
|
-
related1x = relatedVertice.point.x;
|
|
206
|
-
related1y = relatedVertice.point.y;
|
|
207
|
-
}
|
|
208
|
-
});
|
|
209
|
-
|
|
210
|
-
//Fill a polygon with the pattern specified by the polygon's id.(For example:fill='url(#pat) =><pattern id="pat">)
|
|
211
|
-
var outwall = /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("pattern", {
|
|
212
|
-
id: "pat",
|
|
213
|
-
x: "0",
|
|
214
|
-
y: "0",
|
|
215
|
-
width: "5",
|
|
216
|
-
height: "5",
|
|
217
|
-
patternUnits: "userSpaceOnUse"
|
|
218
|
-
}, /*#__PURE__*/_react["default"].createElement("line", {
|
|
219
|
-
x1: "0",
|
|
220
|
-
y1: "0",
|
|
221
|
-
x2: "3",
|
|
222
|
-
y2: "3",
|
|
223
|
-
style: STYLE_LINE
|
|
224
|
-
})));
|
|
225
|
-
return !element.selected ? /*#__PURE__*/_react["default"].createElement("g", null, /*#__PURE__*/_react["default"].createElement("polygon", {
|
|
226
|
-
points: "".concat(x1, ",").concat(y1, " ").concat(related0x, ",").concat(related0y, " ").concat(related1x, ",").concat(related1y, " ").concat(x2, ",").concat(y2),
|
|
227
|
-
fill: "url(#pat)",
|
|
228
|
-
fillRule: "evenodd"
|
|
229
|
-
}), outwall, /*#__PURE__*/_react["default"].createElement("line", {
|
|
230
|
-
x1: x1,
|
|
231
|
-
y1: y1,
|
|
232
|
-
x2: x2,
|
|
233
|
-
y2: y2,
|
|
234
|
-
style: STYLE_INTERIOR_LINE
|
|
235
|
-
})) : /*#__PURE__*/_react["default"].createElement("g", null, /*#__PURE__*/_react["default"].createElement("polygon", {
|
|
236
|
-
points: "".concat(x1, ",").concat(y1, " ").concat(related0x, ",").concat(related0y, " ").concat(related1x, ",").concat(related1y, " ").concat(x2, ",").concat(y2),
|
|
237
|
-
fill: "url(#pat)",
|
|
238
|
-
fillRule: "evenodd"
|
|
239
|
-
}), outwall, /*#__PURE__*/_react["default"].createElement("line", {
|
|
240
|
-
x1: x1,
|
|
241
|
-
y1: y1,
|
|
242
|
-
x2: x2,
|
|
243
|
-
y2: y2,
|
|
244
|
-
style: STYLE_INTERIOR_LINE_SELECTED
|
|
245
|
-
}));
|
|
246
|
-
},
|
|
247
|
-
render3D: function render3D(element, layer, scene, mode) {
|
|
248
|
-
return (0, _wallFactory3d.buildWall)(element, layer, scene, textures, mode);
|
|
249
|
-
},
|
|
250
|
-
updateRender3D: function updateRender3D(element, layer, scene, mesh, oldElement, differences, selfDestroy, selfBuild) {
|
|
251
|
-
return (0, _wallFactory3d.updatedWall)(element, layer, scene, textures, mesh, oldElement, differences, selfDestroy, selfBuild);
|
|
252
|
-
}
|
|
253
|
-
};
|
|
254
|
-
if (textures && textures !== {}) {
|
|
255
|
-
var textureValues = {
|
|
256
|
-
none: 'None'
|
|
257
|
-
};
|
|
258
|
-
for (var textureName in textures) {
|
|
259
|
-
textureValues[textureName] = textures[textureName].name;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
/* wallElement.properties.textureA = {
|
|
263
|
-
label:'Fronts ' + translator.t('texture'),
|
|
264
|
-
type: 'enum',
|
|
265
|
-
defaultValue: textureValues.bricks ? 'bricks' : 'none',
|
|
266
|
-
values: textureValues
|
|
267
|
-
};
|
|
268
|
-
*/
|
|
269
|
-
wallElement.properties.textureB = {
|
|
270
|
-
//label:'Back ' + translator.t('texture'),
|
|
271
|
-
label: 'Walls',
|
|
272
|
-
type: 'enum',
|
|
273
|
-
defaultValue: textureValues.bricks ? 'bricks' : 'none',
|
|
274
|
-
values: textureValues
|
|
275
|
-
};
|
|
276
|
-
}
|
|
277
|
-
return wallElement;
|
|
278
|
-
}
|
|
279
|
-
//# sourceMappingURL=wall-factory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wall-factory.js","names":["_react","_interopRequireDefault","require","_wallFactory3d","SharedStyle","_interopRequireWildcard","Geometry","_translator","_constants","_line","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","_typeof","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","epsilon","STYLE_TEXT","textAnchor","STYLE_LINE","stroke","LINE_MESH_COLOR","unselected","STYLE_INTERIOR_LINE","strokeWidth","INTERIOR_LINE","STYLE_INTERIOR_LINE_SELECTED","selected","fill","rx","STYLE","COLORS","white","cursor","STYLE_POLYGON","strokeLinejoin","STYLE_POLYGON_SELECTED","translator","Translator","createLineGeometry","scene","state","wall_thickness","LINE_THICKNESS","layerID","selectedLayer","layer","getIn","lines","toArray","forEach","line","vertex0Id","vertices","vertex1Id","_layer$vertices$get","x0","x","y0","y","_layer$vertices$get2","x1","y1","allLines","relatedLineArray","relatedLine0","filter","allLine","includes","id","relatedLine1","normalVertice","getNormaline","rx0","ry0","rx1","ry1","intersection","push","index","point","originalLineFunction","linePassingThroughTwoPoints","c","Math","sqrt","b","a","lineInfo","vertexId","originx","originy","relatedLine","relatedVertices","relatedOtherVertexID","relatedVertex","relatedLineFunction","delta","distancePointFromLine","ry","twoLinesIntersection","Line","setRelatedLine","updatedState","WallFactory","name","info","textures","wallElement","prototype","height","label","type","defaultValue","length","thickness","properties","render2D","element","_layer$vertices$get3","_layer$vertices$get4","x2","y2","layertemp","sceneHistory","verticesinfo","pointsDistance","length_5","half_thickness","half_thickness_eps","char_height","extra_epsilon","textDistance","related0x","related0y","related1x","related1y","relatedVertice","undefined","toJSON","outwall","createElement","width","patternUnits","style","points","concat","fillRule","render3D","mode","buildWall","updateRender3D","mesh","oldElement","differences","selfDestroy","selfBuild","updatedWall","textureValues","none","textureName","textureB","bricks","values"],"sources":["../../../src/catalog/factories/wall-factory.jsx"],"sourcesContent":["import React from 'react';\r\nimport { buildWall, updatedWall } from './wall-factory-3d';\r\nimport * as SharedStyle from '../../shared-style';\r\nimport * as Geometry from '../../utils/geometry';\r\nimport Translator from '../../translator/translator';\r\nimport { LINE_THICKNESS } from '../../../src/constants';\r\n// import Line from 'src/class/line';\r\nimport Line from '../../class/line';\r\nconst epsilon = 20;\r\nconst STYLE_TEXT = { textAnchor: 'middle' };\r\nconst STYLE_LINE = {\r\n stroke: SharedStyle.LINE_MESH_COLOR.unselected\r\n // stroke: \"red\" ,\r\n\r\n // strokeWidth:1\r\n};\r\nconst STYLE_INTERIOR_LINE = {\r\n strokeWidth: 1,\r\n stroke: SharedStyle.INTERIOR_LINE.unselected\r\n};\r\nconst STYLE_INTERIOR_LINE_SELECTED = {\r\n strokeWidth: 2,\r\n stroke: SharedStyle.INTERIOR_LINE.selected,\r\n fill: SharedStyle.INTERIOR_LINE.selected,\r\n rx: '2px'\r\n};\r\nconst STYLE = {\r\n fill: '#0096fd',\r\n stroke: SharedStyle.COLORS.white,\r\n cursor: 'move'\r\n};\r\nconst STYLE_POLYGON = {\r\n strokeWidth: 1,\r\n strokeLinejoin: 'round',\r\n stroke: SharedStyle.LINE_MESH_COLOR.unselected,\r\n rx: '2px',\r\n fill: SharedStyle.LINE_MESH_COLOR.unselected\r\n};\r\nconst STYLE_POLYGON_SELECTED = {\r\n strokeWidth: 1,\r\n strokeLinejoin: 'round',\r\n rx: '2px',\r\n stroke: SharedStyle.LINE_MESH_COLOR.selected,\r\n fill: SharedStyle.LINE_MESH_COLOR.selected\r\n};\r\n\r\nlet translator = new Translator();\r\n\r\n/** Create Lines from State */\r\nlet createLineGeometry = (scene, state) => {\r\n let wall_thickness = LINE_THICKNESS / 2;\r\n let layerID = scene.selectedLayer;\r\n let layer = scene.getIn(['layers', layerID]);\r\n let lines = layer.lines;\r\n lines.toArray().forEach(line => {\r\n let vertex0Id = line.vertices.get(0);\r\n let vertex1Id = line.vertices.get(1);\r\n let { x: x0, y: y0 } = layer.vertices.get(vertex0Id);\r\n let { x: x1, y: y1 } = layer.vertices.get(vertex1Id);\r\n if (x0 == x1 && y0 == y1) return;\r\n\r\n let allLines = layer.lines.toArray();\r\n let relatedLineArray = [];\r\n let relatedLine0 = allLines.filter(allLine => {\r\n return (\r\n allLine.vertices.toArray().includes(vertex0Id) && line.id != allLine.id\r\n );\r\n })[0];\r\n let relatedLine1 = allLines.filter(allLine => {\r\n return (\r\n allLine.vertices.toArray().includes(vertex1Id) && line.id != allLine.id\r\n );\r\n })[0];\r\n let normalVertice = Geometry.getNormaline(x0, y0, x1, y1);\r\n let rx0 = x0 + normalVertice.x * wall_thickness;\r\n let ry0 = y0 + normalVertice.y * wall_thickness;\r\n let rx1 = x1 + normalVertice.x * wall_thickness;\r\n let ry1 = y1 + normalVertice.y * wall_thickness;\r\n\r\n let intersection = [];\r\n relatedLine0\r\n ? relatedLineArray.push({ index: 0, line: relatedLine0 })\r\n : intersection.push({ index: 0, point: { x: rx0, y: ry0 } });\r\n relatedLine1\r\n ? relatedLineArray.push({ index: 1, line: relatedLine1 })\r\n : intersection.push({ index: 1, point: { x: rx1, y: ry1 } });\r\n\r\n let originalLineFunction = Geometry.linePassingThroughTwoPoints(\r\n x0,\r\n y0,\r\n x1,\r\n y1\r\n );\r\n originalLineFunction.c -=\r\n Math.sqrt(\r\n originalLineFunction.b * originalLineFunction.b +\r\n originalLineFunction.a * originalLineFunction.a\r\n ) * wall_thickness;\r\n relatedLineArray.forEach(lineInfo => {\r\n let vertexId, originx, originy;\r\n let { index, line: relatedLine } = lineInfo;\r\n index == 0\r\n ? ((vertexId = vertex0Id), (originx = x0), (originy = y0))\r\n : ((vertexId = vertex1Id), (originx = x1), (originy = y1));\r\n let relatedVertices = relatedLine.vertices.toArray();\r\n let relatedOtherVertexID =\r\n relatedVertices[0] == vertexId\r\n ? relatedVertices[1]\r\n : relatedVertices[0];\r\n let relatedVertex = layer.getIn(['vertices', relatedOtherVertexID]);\r\n if (originx == relatedVertex.x && originy == relatedVertex.y) return;\r\n\r\n let relatedLineFunction = Geometry.linePassingThroughTwoPoints(\r\n originx,\r\n originy,\r\n relatedVertex.x,\r\n relatedVertex.y\r\n );\r\n let delta = Geometry.distancePointFromLine(\r\n relatedLineFunction.a,\r\n relatedLineFunction.b,\r\n relatedLineFunction.c,\r\n index == 0 ? x1 : x0,\r\n index == 0 ? y1 : y0\r\n );\r\n // console.log(relatedLineFunction,\"relatedLinefunction\")\r\n if (delta < 0.01) {\r\n // if the directions of the current line and related line, then no need to calculate the inteersection point\r\n // let rx = originx + normalVertice.x * wall_thickness;\r\n // let ry = originy + normalVertice.y * wall_thickness;\r\n let rx = originx + normalVertice.x * wall_thickness;\r\n let ry = originy + normalVertice.y * wall_thickness;\r\n intersection.push({ index, point: { x: rx, y: ry } });\r\n } else {\r\n relatedLineFunction.c -=\r\n (relatedVertices[0] == vertexId ? 1 : -1) *\r\n Math.sqrt(\r\n relatedLineFunction.b * relatedLineFunction.b +\r\n relatedLineFunction.a * relatedLineFunction.a\r\n ) *\r\n wall_thickness;\r\n let point = Geometry.twoLinesIntersection(\r\n originalLineFunction.a,\r\n originalLineFunction.b,\r\n originalLineFunction.c,\r\n relatedLineFunction.a,\r\n relatedLineFunction.b,\r\n relatedLineFunction.c\r\n );\r\n point && intersection.push({ index, point });\r\n }\r\n });\r\n state = Line.setRelatedLine(\r\n state,\r\n layer.id,\r\n line.id,\r\n intersection\r\n ).updatedState;\r\n });\r\n return { updatedState: state };\r\n};\r\n\r\nexport default function WallFactory(name, info, textures) {\r\n let wallElement = {\r\n name,\r\n prototype: 'lines',\r\n info,\r\n height: {\r\n label: translator.t('height'),\r\n type: 'length-measure',\r\n defaultValue: {\r\n length: 243.84\r\n }\r\n },\r\n thickness: {\r\n label: translator.t('thickness'),\r\n type: 'length-measure',\r\n defaultValue: {\r\n length: LINE_THICKNESS / 2\r\n }\r\n },\r\n properties: {},\r\n\r\n render2D: function (element, layer, scene, state) {\r\n state = createLineGeometry(scene, state).updatedState;\r\n scene = state.getIn(['scene']);\r\n layer = scene.getIn(['layers', scene.selectedLayer]);\r\n element = layer.getIn(['lines', element['id']]);\r\n // let element = layer.lines[telement.id];\r\n let { x: x1, y: y1 } = layer.vertices.get(element.vertices.get(0));\r\n let { x: x2, y: y2 } = layer.vertices.get(element.vertices.get(1));\r\n let layertemp = state.sceneHistory.getIn(['last', 'layers', 'layer-1']);\r\n let verticesinfo = layer.vertices.get(element.vertices.get(0));\r\n let length = Geometry.pointsDistance(x1, y1, x2, y2);\r\n let length_5 = length / 5;\r\n let thickness = LINE_THICKNESS;\r\n // let thickness = element.getIn(['properties', 'thickness', 'length']);\r\n let half_thickness = thickness / 2;\r\n let half_thickness_eps = half_thickness + epsilon;\r\n let char_height = 11;\r\n let extra_epsilon = 5;\r\n let textDistance = half_thickness + epsilon + extra_epsilon;\r\n let related0x = x1,\r\n related0y = y1,\r\n related1x = x2,\r\n related1y = y2;\r\n element.relatedVertices.forEach((relatedVertice, index) => {\r\n if (relatedVertice.index == undefined)\r\n relatedVertice = relatedVertice.toJSON();\r\n if (relatedVertice.index == 0) {\r\n related0x = relatedVertice.point.x;\r\n related0y = relatedVertice.point.y;\r\n } else {\r\n related1x = relatedVertice.point.x;\r\n related1y = relatedVertice.point.y;\r\n }\r\n });\r\n\r\n //Fill a polygon with the pattern specified by the polygon's id.(For example:fill='url(#pat) =><pattern id=\"pat\">)\r\n const outwall = (\r\n <defs>\r\n <pattern\r\n id=\"pat\"\r\n x=\"0\"\r\n y=\"0\"\r\n width=\"5\"\r\n height=\"5\"\r\n patternUnits=\"userSpaceOnUse\"\r\n >\r\n <line x1=\"0\" y1=\"0\" x2=\"3\" y2=\"3\" style={STYLE_LINE}></line>\r\n </pattern>\r\n </defs>\r\n );\r\n return !element.selected ? (\r\n <g>\r\n <polygon\r\n points={`${x1},${y1} ${related0x},${related0y} ${related1x},${related1y} ${x2},${y2}`}\r\n fill=\"url(#pat)\"\r\n fillRule=\"evenodd\"\r\n ></polygon>\r\n {outwall}\r\n <line\r\n x1={x1}\r\n y1={y1}\r\n x2={x2}\r\n y2={y2}\r\n style={STYLE_INTERIOR_LINE}\r\n ></line>\r\n </g>\r\n ) : (\r\n <g>\r\n <polygon\r\n points={`${x1},${y1} ${related0x},${related0y} ${related1x},${related1y} ${x2},${y2}`}\r\n fill=\"url(#pat)\"\r\n fillRule=\"evenodd\"\r\n ></polygon>\r\n {outwall}\r\n <line\r\n x1={x1}\r\n y1={y1}\r\n x2={x2}\r\n y2={y2}\r\n style={STYLE_INTERIOR_LINE_SELECTED}\r\n ></line>\r\n </g>\r\n );\r\n },\r\n\r\n render3D: function (element, layer, scene, mode) {\r\n return buildWall(element, layer, scene, textures, mode);\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 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 }\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 /* wallElement.properties.textureA = {\r\n label:'Fronts ' + translator.t('texture'),\r\n type: 'enum',\r\n defaultValue: textureValues.bricks ? 'bricks' : 'none',\r\n values: textureValues\r\n };\r\n*/\r\n wallElement.properties.textureB = {\r\n //label:'Back ' + translator.t('texture'),\r\n label: 'Walls',\r\n type: 'enum',\r\n defaultValue: textureValues.bricks ? 'bricks' : 'none',\r\n values: textureValues\r\n };\r\n }\r\n\r\n return wallElement;\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,QAAA,GAAAD,uBAAA,CAAAH,OAAA;AACA,IAAAK,WAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AAEA,IAAAO,KAAA,GAAAR,sBAAA,CAAAC,OAAA;AAAoC,SAAAG,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,wBAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,mBAAAT,CAAA,iBAAAA,CAAA,gBAAAU,OAAA,CAAAV,CAAA,0BAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,cAAAM,EAAA,IAAAd,CAAA,gBAAAc,E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,EAAEN,KAAK,EAAE6G,IAAI,EAAE;MAC/C,OAAO,IAAAC,wBAAS,EAAChC,OAAO,EAAExE,KAAK,EAAEN,KAAK,EAAEmE,QAAQ,EAAE0C,IAAI,CAAC;IACzD,CAAC;IAEDE,cAAc,EAAE,SAAhBA,cAAcA,CACZjC,OAAO,EACPxE,KAAK,EACLN,KAAK,EACLgH,IAAI,EACJC,UAAU,EACVC,WAAW,EACXC,WAAW,EACXC,SAAS,EACN;MACH,OAAO,IAAAC,0BAAW,EAChBvC,OAAO,EACPxE,KAAK,EACLN,KAAK,EACLmE,QAAQ,EACR6C,IAAI,EACJC,UAAU,EACVC,WAAW,EACXC,WAAW,EACXC,SACF,CAAC;IACH;EACF,CAAC;EAED,IAAIjD,QAAQ,IAAIA,QAAQ,KAAK,CAAC,CAAC,EAAE;IAC/B,IAAImD,aAAa,GAAG;MAAEC,IAAI,EAAE;IAAO,CAAC;IAEpC,KAAK,IAAIC,WAAW,IAAIrD,QAAQ,EAAE;MAChCmD,aAAa,CAACE,WAAW,CAAC,GAAGrD,QAAQ,CAACqD,WAAW,CAAC,CAACvD,IAAI;IACzD;;IAEA;AACJ;AACA;AACA;AACA;AACA;AACA;IACIG,WAAW,CAACQ,UAAU,CAAC6C,QAAQ,GAAG;MAChC;MACAlD,KAAK,EAAE,OAAO;MACdC,IAAI,EAAE,MAAM;MACZC,YAAY,EAAE6C,aAAa,CAACI,MAAM,GAAG,QAAQ,GAAG,MAAM;MACtDC,MAAM,EAAEL;IACV,CAAC;EACH;EAEA,OAAOlD,WAAW;AACpB","ignoreList":[]}
|
|
@@ -1,232 +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["default"] = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var Three = _interopRequireWildcard(require("three"));
|
|
10
|
-
var _loadObj = require("../../utils/load-obj");
|
|
11
|
-
var _constants = require("../../../../src/constants");
|
|
12
|
-
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); }
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
|
-
var cached3DDoor = null;
|
|
15
|
-
var STYLE_HOLE_BASE = {
|
|
16
|
-
stroke: 'rgb(73, 73, 73)',
|
|
17
|
-
strokeWidth: '1px',
|
|
18
|
-
strokeDasharray: '9,5',
|
|
19
|
-
fill: 'rgb(73, 73, 73)'
|
|
20
|
-
};
|
|
21
|
-
var STYLE_HOLE_SELECTED = {
|
|
22
|
-
stroke: '#0096fd',
|
|
23
|
-
strokeWidth: '1px',
|
|
24
|
-
strokeDasharray: '9,5',
|
|
25
|
-
fill: '#0096fd',
|
|
26
|
-
cursor: 'move'
|
|
27
|
-
};
|
|
28
|
-
var STYLE_ARC_BASE = {
|
|
29
|
-
stroke: 'rgb(73, 73, 73)',
|
|
30
|
-
strokeWidth: '1px',
|
|
31
|
-
strokeDasharray: '9,5',
|
|
32
|
-
fill: 'none'
|
|
33
|
-
};
|
|
34
|
-
var STYLE_ARC_SELECTED = {
|
|
35
|
-
stroke: '#0096fd',
|
|
36
|
-
strokeWidth: '1px',
|
|
37
|
-
strokeDasharray: '9,5',
|
|
38
|
-
fill: 'none',
|
|
39
|
-
cursor: 'move'
|
|
40
|
-
};
|
|
41
|
-
var STYLE_STR0 = {
|
|
42
|
-
fill: 'rgb(185, 185, 185)',
|
|
43
|
-
stroke: '#494949',
|
|
44
|
-
strokeWidth: '1',
|
|
45
|
-
strokeMiterlimit: '2.61313'
|
|
46
|
-
};
|
|
47
|
-
var STYLE_STR0_S = {
|
|
48
|
-
fill: 'rgb(185, 185, 185)',
|
|
49
|
-
stroke: '#0096fd',
|
|
50
|
-
strokeWidth: '1',
|
|
51
|
-
strokeMiterlimit: '2.61313'
|
|
52
|
-
};
|
|
53
|
-
var STYLE_STR1 = {
|
|
54
|
-
fill: 'none',
|
|
55
|
-
stroke: '#494949',
|
|
56
|
-
strokeWidth: '1',
|
|
57
|
-
strokeLinecap: 'round',
|
|
58
|
-
strokeLinejoin: 'round',
|
|
59
|
-
strokeMiterlimit: '2.61313',
|
|
60
|
-
strokeDasharray: '23.860041 11.930021'
|
|
61
|
-
};
|
|
62
|
-
var STYLE_FILL2 = {
|
|
63
|
-
fill: '#1183B7'
|
|
64
|
-
};
|
|
65
|
-
var STYLE_FNT0 = {
|
|
66
|
-
fill: 'white',
|
|
67
|
-
fontWeight: 'normal',
|
|
68
|
-
fontSize: '13px',
|
|
69
|
-
fontFamily: 'Proxima Nova Rg'
|
|
70
|
-
};
|
|
71
|
-
var EPSILON = 3;
|
|
72
|
-
var _default = exports["default"] = {
|
|
73
|
-
name: 'Closet',
|
|
74
|
-
prototype: 'holes',
|
|
75
|
-
info: {
|
|
76
|
-
title: 'Closet',
|
|
77
|
-
tag: ['door'],
|
|
78
|
-
description: 'Closet door(Wooden)',
|
|
79
|
-
image: '/assets/img/svg/door/Closet.svg',
|
|
80
|
-
url: '/assets/gltf/door_closet.gltf'
|
|
81
|
-
},
|
|
82
|
-
properties: {
|
|
83
|
-
width: {
|
|
84
|
-
label: 'Width',
|
|
85
|
-
type: 'length-measure',
|
|
86
|
-
defaultValue: {
|
|
87
|
-
length: 91.44
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
height: {
|
|
91
|
-
label: 'Height',
|
|
92
|
-
type: 'length-measure',
|
|
93
|
-
defaultValue: {
|
|
94
|
-
length: 215
|
|
95
|
-
},
|
|
96
|
-
length: 215
|
|
97
|
-
},
|
|
98
|
-
altitude: {
|
|
99
|
-
label: 'Altitude',
|
|
100
|
-
type: 'length-measure',
|
|
101
|
-
defaultValue: {
|
|
102
|
-
length: 0
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
thickness: {
|
|
106
|
-
label: 'Thickness',
|
|
107
|
-
type: 'length-measure',
|
|
108
|
-
defaultValue: {
|
|
109
|
-
length: 6
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
flip_orizzontal: {
|
|
113
|
-
label: 'Flip Door',
|
|
114
|
-
type: 'checkbox',
|
|
115
|
-
defaultValue: false,
|
|
116
|
-
values: {
|
|
117
|
-
none: false,
|
|
118
|
-
yes: true
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
render2D: function render2D(element, layer, scene) {
|
|
123
|
-
var flip = element.properties.get('flip_orizzontal');
|
|
124
|
-
var lineWidth = 6;
|
|
125
|
-
var holeWidth = element.properties.get('width').get('length');
|
|
126
|
-
var holePath = "M".concat(0, " ", -EPSILON, " L").concat(holeWidth, " ").concat(-EPSILON, " L").concat(holeWidth, " ").concat(EPSILON, " L", 0, " ").concat(EPSILON, " z");
|
|
127
|
-
var arcPath = "M".concat(0, ",", 0, " A", holeWidth, ",").concat(holeWidth, " 0 0,1 ").concat(holeWidth, ",").concat(holeWidth);
|
|
128
|
-
var holeStyle = element.selected ? STYLE_HOLE_SELECTED : STYLE_HOLE_BASE;
|
|
129
|
-
var arcStyle = element.selected ? STYLE_ARC_SELECTED : STYLE_ARC_BASE;
|
|
130
|
-
var rectStyle = element.selected ? STYLE_STR0_S : STYLE_STR0;
|
|
131
|
-
var length = element.properties.get('width').get('length');
|
|
132
|
-
if (flip == false) {
|
|
133
|
-
return /*#__PURE__*/_react["default"].createElement("g", {
|
|
134
|
-
transform: "translate(".concat(-length / 2, ", 0)")
|
|
135
|
-
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
136
|
-
d: arcPath,
|
|
137
|
-
style: arcStyle,
|
|
138
|
-
transform: "translate(".concat(0, ",", holeWidth, ") scale(", 1, ",").concat(-1, ") rotate(", 0, ")")
|
|
139
|
-
}), /*#__PURE__*/_react["default"].createElement("line", {
|
|
140
|
-
x1: 0,
|
|
141
|
-
y1: holeWidth - EPSILON,
|
|
142
|
-
x2: 0,
|
|
143
|
-
y2: 0 - EPSILON,
|
|
144
|
-
style: holeStyle,
|
|
145
|
-
transform: "scale(".concat(-1, ",", 1, ")")
|
|
146
|
-
}), /*#__PURE__*/_react["default"].createElement("rect", {
|
|
147
|
-
style: rectStyle,
|
|
148
|
-
x: "0",
|
|
149
|
-
y: -lineWidth / 2,
|
|
150
|
-
width: holeWidth,
|
|
151
|
-
height: lineWidth
|
|
152
|
-
}));
|
|
153
|
-
} else {
|
|
154
|
-
return /*#__PURE__*/_react["default"].createElement("g", {
|
|
155
|
-
transform: "translate(".concat(-length / 2, ", 0)")
|
|
156
|
-
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
157
|
-
d: arcPath,
|
|
158
|
-
style: arcStyle,
|
|
159
|
-
transform: "translate(".concat(0, ",", -holeWidth, ") scale(", 1, ",", 1, ") rotate(", 0, ")")
|
|
160
|
-
}), /*#__PURE__*/_react["default"].createElement("line", {
|
|
161
|
-
x1: 0,
|
|
162
|
-
y1: -holeWidth - EPSILON,
|
|
163
|
-
x2: 0,
|
|
164
|
-
y2: 0 - EPSILON,
|
|
165
|
-
style: holeStyle,
|
|
166
|
-
transform: "scale(".concat(1, ",", 1, ")")
|
|
167
|
-
}), /*#__PURE__*/_react["default"].createElement("rect", {
|
|
168
|
-
style: rectStyle,
|
|
169
|
-
x: "0",
|
|
170
|
-
y: -lineWidth / 2,
|
|
171
|
-
width: holeWidth,
|
|
172
|
-
height: lineWidth
|
|
173
|
-
}));
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
render3D: function render3D(element, layer, scene) {
|
|
177
|
-
var onLoadItem = function onLoadItem(object) {
|
|
178
|
-
var boundingBox = new Three.Box3().setFromObject(object);
|
|
179
|
-
var initialWidth = boundingBox.max.x - boundingBox.min.x;
|
|
180
|
-
var initialHeight = boundingBox.max.y - boundingBox.min.y;
|
|
181
|
-
var initialThickness = boundingBox.max.z - boundingBox.min.z;
|
|
182
|
-
if (element.selected) {
|
|
183
|
-
var box = new Three.BoxHelper(object, 0x99c3fb);
|
|
184
|
-
box.material.linewidth = 2;
|
|
185
|
-
box.material.depthTest = false;
|
|
186
|
-
box.renderOrder = 1000;
|
|
187
|
-
object.add(box);
|
|
188
|
-
}
|
|
189
|
-
var params = {
|
|
190
|
-
envMap: 'HDR',
|
|
191
|
-
roughness: 0.9,
|
|
192
|
-
metalness: 0.1,
|
|
193
|
-
exposure: 1.0
|
|
194
|
-
};
|
|
195
|
-
var examplecolor = new Three.Color(0xffffff);
|
|
196
|
-
var mat2 = new Three.MeshStandardMaterial({
|
|
197
|
-
color: examplecolor,
|
|
198
|
-
metalness: params.metalness,
|
|
199
|
-
roughness: params.roughness
|
|
200
|
-
});
|
|
201
|
-
// let normalMap = require('./texture.png');
|
|
202
|
-
// let t = new Three.TextureLoader().load(normalMap);
|
|
203
|
-
// let mat2 = new Three.MeshStandardMaterial({
|
|
204
|
-
// metalness: params.metalness,
|
|
205
|
-
// roughness: params.roughness
|
|
206
|
-
// });
|
|
207
|
-
// mat2.map = t;
|
|
208
|
-
// mat2.envMap = textureCube;
|
|
209
|
-
for (var j = 0; j < object.children.length; j++) {
|
|
210
|
-
if (object.children[j].type === _constants.OBJTYPE_MESH) {
|
|
211
|
-
object.children[j].material = mat2;
|
|
212
|
-
object.children[j].receiveShadow = true;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
var width = element.properties.get('width').get('length');
|
|
216
|
-
var height = element.properties.get('height').get('length');
|
|
217
|
-
var thickness = element.properties.get('thickness').get('length');
|
|
218
|
-
// console.log(width, height, thickness)
|
|
219
|
-
|
|
220
|
-
object.scale.set(width / initialWidth, height / initialHeight, thickness / initialThickness);
|
|
221
|
-
return object;
|
|
222
|
-
};
|
|
223
|
-
if (cached3DDoor) {
|
|
224
|
-
return Promise.resolve(onLoadItem(cached3DDoor.clone()));
|
|
225
|
-
}
|
|
226
|
-
return (0, _loadObj.loadGLTF)(element.url).then(function (object) {
|
|
227
|
-
cached3DDoor = object;
|
|
228
|
-
return onLoadItem(cached3DDoor.clone());
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
};
|
|
232
|
-
//# sourceMappingURL=planner-element.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"planner-element.js","names":["_react","_interopRequireDefault","require","Three","_interopRequireWildcard","_loadObj","_constants","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","_typeof","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","cached3DDoor","STYLE_HOLE_BASE","stroke","strokeWidth","strokeDasharray","fill","STYLE_HOLE_SELECTED","cursor","STYLE_ARC_BASE","STYLE_ARC_SELECTED","STYLE_STR0","strokeMiterlimit","STYLE_STR0_S","STYLE_STR1","strokeLinecap","strokeLinejoin","STYLE_FILL2","STYLE_FNT0","fontWeight","fontSize","fontFamily","EPSILON","_default","exports","name","prototype","info","title","tag","description","image","url","properties","width","label","type","defaultValue","length","height","altitude","thickness","flip_orizzontal","values","none","yes","render2D","element","layer","scene","flip","lineWidth","holeWidth","holePath","concat","arcPath","holeStyle","selected","arcStyle","rectStyle","createElement","transform","d","style","x1","y1","x2","y2","x","y","render3D","onLoadItem","object","boundingBox","Box3","setFromObject","initialWidth","max","min","initialHeight","initialThickness","z","box","BoxHelper","material","linewidth","depthTest","renderOrder","add","params","envMap","roughness","metalness","exposure","examplecolor","Color","mat2","MeshStandardMaterial","color","j","children","OBJTYPE_MESH","receiveShadow","scale","Promise","resolve","clone","loadGLTF","then"],"sources":["../../../../src/catalog/holes/door-closet/planner-element.jsx"],"sourcesContent":["import React from 'react';\r\nimport * as Three from 'three';\r\nimport { loadGLTF } from '../../utils/load-obj';\r\nimport { OBJTYPE_MESH } from '../../../../src/constants';\r\n\r\nlet cached3DDoor = null;\r\n\r\nconst STYLE_HOLE_BASE = {\r\n stroke: 'rgb(73, 73, 73)',\r\n strokeWidth: '1px',\r\n strokeDasharray: '9,5',\r\n fill: 'rgb(73, 73, 73)'\r\n};\r\nconst STYLE_HOLE_SELECTED = {\r\n stroke: '#0096fd',\r\n strokeWidth: '1px',\r\n strokeDasharray: '9,5',\r\n fill: '#0096fd',\r\n cursor: 'move'\r\n};\r\nconst STYLE_ARC_BASE = {\r\n stroke: 'rgb(73, 73, 73)',\r\n strokeWidth: '1px',\r\n strokeDasharray: '9,5',\r\n fill: 'none'\r\n};\r\nconst STYLE_ARC_SELECTED = {\r\n stroke: '#0096fd',\r\n strokeWidth: '1px',\r\n strokeDasharray: '9,5',\r\n fill: 'none',\r\n cursor: 'move'\r\n};\r\nconst STYLE_STR0 = {\r\n fill: 'rgb(185, 185, 185)',\r\n stroke: '#494949',\r\n strokeWidth: '1',\r\n strokeMiterlimit: '2.61313'\r\n};\r\nconst STYLE_STR0_S = {\r\n fill: 'rgb(185, 185, 185)',\r\n stroke: '#0096fd',\r\n strokeWidth: '1',\r\n strokeMiterlimit: '2.61313'\r\n};\r\nconst STYLE_STR1 = {\r\n fill: 'none',\r\n stroke: '#494949',\r\n strokeWidth: '1',\r\n strokeLinecap: 'round',\r\n strokeLinejoin: 'round',\r\n strokeMiterlimit: '2.61313',\r\n strokeDasharray: '23.860041 11.930021'\r\n};\r\nconst STYLE_FILL2 = { fill: '#1183B7' };\r\nconst STYLE_FNT0 = {\r\n fill: 'white',\r\n fontWeight: 'normal',\r\n fontSize: '13px',\r\n fontFamily: 'Proxima Nova Rg'\r\n};\r\nconst EPSILON = 3;\r\n\r\nexport default {\r\n name: 'Closet',\r\n prototype: 'holes',\r\n\r\n info: {\r\n title: 'Closet',\r\n tag: ['door'],\r\n description: 'Closet door(Wooden)',\r\n image: '/assets/img/svg/door/Closet.svg',\r\n url: '/assets/gltf/door_closet.gltf'\r\n },\r\n\r\n properties: {\r\n width: {\r\n label: 'Width',\r\n type: 'length-measure',\r\n defaultValue: {\r\n length: 91.44\r\n }\r\n },\r\n height: {\r\n label: 'Height',\r\n type: 'length-measure',\r\n defaultValue: {\r\n length: 215\r\n },\r\n length: 215\r\n },\r\n altitude: {\r\n label: 'Altitude',\r\n type: 'length-measure',\r\n defaultValue: {\r\n length: 0\r\n }\r\n },\r\n thickness: {\r\n label: 'Thickness',\r\n type: 'length-measure',\r\n defaultValue: {\r\n length: 6\r\n }\r\n },\r\n flip_orizzontal: {\r\n label: 'Flip Door',\r\n type: 'checkbox',\r\n defaultValue: false,\r\n values: {\r\n none: false,\r\n yes: true\r\n }\r\n }\r\n },\r\n\r\n render2D: function (element, layer, scene) {\r\n let flip = element.properties.get('flip_orizzontal');\r\n let lineWidth = 6;\r\n let holeWidth = element.properties.get('width').get('length');\r\n let holePath = `M${0} ${-EPSILON} L${holeWidth} ${-EPSILON} L${holeWidth} ${EPSILON} L${0} ${EPSILON} z`;\r\n let arcPath = `M${0},${0} A${holeWidth},${holeWidth} 0 0,1 ${holeWidth},${holeWidth}`;\r\n let holeStyle = element.selected ? STYLE_HOLE_SELECTED : STYLE_HOLE_BASE;\r\n let arcStyle = element.selected ? STYLE_ARC_SELECTED : STYLE_ARC_BASE;\r\n let rectStyle = element.selected ? STYLE_STR0_S : STYLE_STR0;\r\n let length = element.properties.get('width').get('length');\r\n if (flip == false) {\r\n return (\r\n <g transform={`translate(${-length / 2}, 0)`}>\r\n <path\r\n d={arcPath}\r\n style={arcStyle}\r\n transform={`translate(${0},${holeWidth}) scale(${1},${-1}) rotate(${0})`}\r\n />\r\n <line\r\n x1={0}\r\n y1={holeWidth - EPSILON}\r\n x2={0}\r\n y2={0 - EPSILON}\r\n style={holeStyle}\r\n transform={`scale(${-1},${1})`}\r\n />\r\n <rect\r\n style={rectStyle}\r\n x=\"0\"\r\n y={-lineWidth / 2}\r\n width={holeWidth}\r\n height={lineWidth}\r\n />\r\n {/* <rect style={STYLE_FILL2} x={holeWidth - 16} y=\"-8.5\" width=\"17\" height=\"17\" rx=\"1.27\" ry=\"1.27\"/> */}\r\n {/* <text x={holeWidth - 15} y=\"4.5\" transform={`scale(1,-1)`} style={STYLE_FNT0}>C</text> */}\r\n </g>\r\n );\r\n } else {\r\n return (\r\n <g transform={`translate(${-length / 2}, 0)`}>\r\n <path\r\n d={arcPath}\r\n style={arcStyle}\r\n transform={`translate(${0},${-holeWidth}) scale(${1},${1}) rotate(${0})`}\r\n />\r\n <line\r\n x1={0}\r\n y1={-holeWidth - EPSILON}\r\n x2={0}\r\n y2={0 - EPSILON}\r\n style={holeStyle}\r\n transform={`scale(${1},${1})`}\r\n />\r\n <rect\r\n style={rectStyle}\r\n x=\"0\"\r\n y={-lineWidth / 2}\r\n width={holeWidth}\r\n height={lineWidth}\r\n />\r\n {/* <rect style={STYLE_FILL2} x={holeWidth - 16} y=\"-8.5\" width=\"17\" height=\"17\" rx=\"1.27\" ry=\"1.27\"/> */}\r\n {/* <text x={holeWidth - 15} y=\"4.5\" style={STYLE_FNT0}>C</text> */}\r\n </g>\r\n );\r\n }\r\n },\r\n\r\n render3D: function (element, layer, scene) {\r\n let onLoadItem = object => {\r\n let boundingBox = new Three.Box3().setFromObject(object);\r\n\r\n let initialWidth = boundingBox.max.x - boundingBox.min.x;\r\n let initialHeight = boundingBox.max.y - boundingBox.min.y;\r\n let initialThickness = boundingBox.max.z - boundingBox.min.z;\r\n\r\n if (element.selected) {\r\n let box = new Three.BoxHelper(object, 0x99c3fb);\r\n box.material.linewidth = 2;\r\n box.material.depthTest = false;\r\n box.renderOrder = 1000;\r\n object.add(box);\r\n }\r\n\r\n const params = {\r\n envMap: 'HDR',\r\n roughness: 0.9,\r\n metalness: 0.1,\r\n exposure: 1.0\r\n };\r\n\r\n const examplecolor = new Three.Color(0xffffff);\r\n let mat2 = new Three.MeshStandardMaterial({\r\n color: examplecolor,\r\n metalness: params.metalness,\r\n roughness: params.roughness\r\n });\r\n // let normalMap = require('./texture.png');\r\n // let t = new Three.TextureLoader().load(normalMap);\r\n // let mat2 = new Three.MeshStandardMaterial({\r\n // metalness: params.metalness,\r\n // roughness: params.roughness\r\n // });\r\n // mat2.map = t;\r\n // mat2.envMap = textureCube;\r\n for (let j = 0; j < object.children.length; j++) {\r\n if (object.children[j].type === OBJTYPE_MESH) {\r\n object.children[j].material = mat2;\r\n object.children[j].receiveShadow = true;\r\n }\r\n }\r\n\r\n let width = element.properties.get('width').get('length');\r\n let height = element.properties.get('height').get('length');\r\n let thickness = element.properties.get('thickness').get('length');\r\n // console.log(width, height, thickness)\r\n\r\n object.scale.set(\r\n width / initialWidth,\r\n height / initialHeight,\r\n thickness / initialThickness\r\n );\r\n\r\n return object;\r\n };\r\n\r\n if (cached3DDoor) {\r\n return Promise.resolve(onLoadItem(cached3DDoor.clone()));\r\n }\r\n\r\n return loadGLTF(element.url).then(object => {\r\n cached3DDoor = object;\r\n return onLoadItem(cached3DDoor.clone());\r\n });\r\n }\r\n};\r\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAAyD,SAAAE,wBAAAG,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAL,uBAAA,YAAAA,wBA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