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,84 +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"] = ActiveDrawingHelper;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
var Geometry = _interopRequireWildcard(require("../../utils/geometry"));
|
|
11
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
|
-
var STYLE = {
|
|
14
|
-
stroke: '#D32F2F',
|
|
15
|
-
strokeWidth: '1px'
|
|
16
|
-
};
|
|
17
|
-
function ActiveDrawingHelper(_ref) {
|
|
18
|
-
var snap = _ref.snap,
|
|
19
|
-
width = _ref.width,
|
|
20
|
-
height = _ref.height;
|
|
21
|
-
switch (snap.type) {
|
|
22
|
-
case 'point':
|
|
23
|
-
return /*#__PURE__*/_react["default"].createElement("g", {
|
|
24
|
-
transform: "translate(".concat(snap.x, " ").concat(snap.y, ")")
|
|
25
|
-
}, /*#__PURE__*/_react["default"].createElement("line", {
|
|
26
|
-
name: "line_type_ActiveDrawingHelper",
|
|
27
|
-
x1: "0",
|
|
28
|
-
y1: "-70",
|
|
29
|
-
x2: "0",
|
|
30
|
-
y2: "70",
|
|
31
|
-
style: STYLE
|
|
32
|
-
}), /*#__PURE__*/_react["default"].createElement("line", {
|
|
33
|
-
name: "line_type_ActiveDrawingHelper",
|
|
34
|
-
x1: "-70",
|
|
35
|
-
y1: "0",
|
|
36
|
-
x2: "70",
|
|
37
|
-
y2: "0",
|
|
38
|
-
style: STYLE
|
|
39
|
-
}));
|
|
40
|
-
case 'line':
|
|
41
|
-
var h0 = Geometry.horizontalLine(0);
|
|
42
|
-
var h1 = Geometry.horizontalLine(height);
|
|
43
|
-
var pointH0 = Geometry.twoLinesIntersection(snap.a, snap.b, snap.c, h0.a, h0.b, h0.c);
|
|
44
|
-
var pointH1 = Geometry.twoLinesIntersection(snap.a, snap.b, snap.c, h1.a, h1.b, h1.c);
|
|
45
|
-
var v0 = Geometry.verticalLine(0);
|
|
46
|
-
var v1 = Geometry.verticalLine(width);
|
|
47
|
-
var pointV0 = Geometry.twoLinesIntersection(snap.a, snap.b, snap.c, v0.a, v0.b, v0.c);
|
|
48
|
-
var pointV1 = Geometry.twoLinesIntersection(snap.a, snap.b, snap.c, v1.a, v1.b, v1.c);
|
|
49
|
-
if (pointH0 && pointH1) return /*#__PURE__*/_react["default"].createElement("line", {
|
|
50
|
-
name: "line_type_ActiveDrawingHelper",
|
|
51
|
-
x1: pointH0.x,
|
|
52
|
-
y1: pointH0.y,
|
|
53
|
-
x2: pointH1.x,
|
|
54
|
-
y2: pointH1.y,
|
|
55
|
-
style: STYLE
|
|
56
|
-
});
|
|
57
|
-
if (pointV0 && pointV1) return /*#__PURE__*/_react["default"].createElement("line", {
|
|
58
|
-
name: "line_type_ActiveDrawingHelper",
|
|
59
|
-
x1: pointV0.x,
|
|
60
|
-
y1: pointV0.y,
|
|
61
|
-
x2: pointV1.x,
|
|
62
|
-
y2: pointV1.y,
|
|
63
|
-
style: STYLE
|
|
64
|
-
});
|
|
65
|
-
return null;
|
|
66
|
-
case 'line-segment':
|
|
67
|
-
return /*#__PURE__*/_react["default"].createElement("line", {
|
|
68
|
-
name: "line_type_ActiveDrawingHelper",
|
|
69
|
-
x1: snap.x1,
|
|
70
|
-
y1: snap.y1,
|
|
71
|
-
x2: snap.x2,
|
|
72
|
-
y2: snap.y2,
|
|
73
|
-
style: STYLE
|
|
74
|
-
});
|
|
75
|
-
default:
|
|
76
|
-
return null;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
ActiveDrawingHelper.propTypes = {
|
|
80
|
-
snap: _propTypes["default"].object.isRequired,
|
|
81
|
-
width: _propTypes["default"].number.isRequired,
|
|
82
|
-
height: _propTypes["default"].number.isRequired
|
|
83
|
-
};
|
|
84
|
-
//# sourceMappingURL=snap.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"snap.js","names":["_react","_interopRequireDefault","require","_propTypes","Geometry","_interopRequireWildcard","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","_typeof","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","STYLE","stroke","strokeWidth","ActiveDrawingHelper","_ref","snap","width","height","type","createElement","transform","concat","x","y","name","x1","y1","x2","y2","style","h0","horizontalLine","h1","pointH0","twoLinesIntersection","a","b","c","pointH1","v0","verticalLine","v1","pointV0","pointV1","propTypes","PropTypes","object","isRequired","number"],"sources":["../../../src/components/viewer2d/snap.jsx"],"sourcesContent":["import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport * as Geometry from '../../utils/geometry';\r\n\r\nconst STYLE = {\r\n stroke: '#D32F2F',\r\n strokeWidth: '1px'\r\n};\r\n\r\nexport default function ActiveDrawingHelper({ snap, width, height }) {\r\n switch (snap.type) {\r\n case 'point':\r\n return (\r\n <g transform={`translate(${snap.x} ${snap.y})`}>\r\n <line\r\n name=\"line_type_ActiveDrawingHelper\"\r\n x1=\"0\"\r\n y1=\"-70\"\r\n x2=\"0\"\r\n y2=\"70\"\r\n style={STYLE}\r\n />\r\n <line\r\n name=\"line_type_ActiveDrawingHelper\"\r\n x1=\"-70\"\r\n y1=\"0\"\r\n x2=\"70\"\r\n y2=\"0\"\r\n style={STYLE}\r\n />\r\n </g>\r\n );\r\n\r\n case 'line':\r\n let h0 = Geometry.horizontalLine(0);\r\n let h1 = Geometry.horizontalLine(height);\r\n let pointH0 = Geometry.twoLinesIntersection(\r\n snap.a,\r\n snap.b,\r\n snap.c,\r\n h0.a,\r\n h0.b,\r\n h0.c\r\n );\r\n let pointH1 = Geometry.twoLinesIntersection(\r\n snap.a,\r\n snap.b,\r\n snap.c,\r\n h1.a,\r\n h1.b,\r\n h1.c\r\n );\r\n\r\n let v0 = Geometry.verticalLine(0);\r\n let v1 = Geometry.verticalLine(width);\r\n let pointV0 = Geometry.twoLinesIntersection(\r\n snap.a,\r\n snap.b,\r\n snap.c,\r\n v0.a,\r\n v0.b,\r\n v0.c\r\n );\r\n let pointV1 = Geometry.twoLinesIntersection(\r\n snap.a,\r\n snap.b,\r\n snap.c,\r\n v1.a,\r\n v1.b,\r\n v1.c\r\n );\r\n\r\n if (pointH0 && pointH1)\r\n return (\r\n <line\r\n name=\"line_type_ActiveDrawingHelper\"\r\n x1={pointH0.x}\r\n y1={pointH0.y}\r\n x2={pointH1.x}\r\n y2={pointH1.y}\r\n style={STYLE}\r\n />\r\n );\r\n if (pointV0 && pointV1)\r\n return (\r\n <line\r\n name=\"line_type_ActiveDrawingHelper\"\r\n x1={pointV0.x}\r\n y1={pointV0.y}\r\n x2={pointV1.x}\r\n y2={pointV1.y}\r\n style={STYLE}\r\n />\r\n );\r\n return null;\r\n\r\n case 'line-segment':\r\n return (\r\n <line\r\n name=\"line_type_ActiveDrawingHelper\"\r\n x1={snap.x1}\r\n y1={snap.y1}\r\n x2={snap.x2}\r\n y2={snap.y2}\r\n style={STYLE}\r\n />\r\n );\r\n\r\n default:\r\n return null;\r\n }\r\n}\r\n\r\nActiveDrawingHelper.propTypes = {\r\n snap: PropTypes.object.isRequired,\r\n width: PropTypes.number.isRequired,\r\n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AACpB,CAAE;QACdM,KAAK,EAAEnB;MAAM,CACd,CAAC;MAEN,OAAO,IAAI;IAEb,KAAK,cAAc;MACjB,oBACE1B,MAAA,YAAAmC,aAAA;QACEK,IAAI,EAAC,+BAA+B;QACpCC,EAAE,EAAEV,IAAI,CAACU,EAAG;QACZC,EAAE,EAAEX,IAAI,CAACW,EAAG;QACZC,EAAE,EAAEZ,IAAI,CAACY,EAAG;QACZC,EAAE,EAAEb,IAAI,CAACa,EAAG;QACZC,KAAK,EAAEnB;MAAM,CACd,CAAC;IAGN;MACE,OAAO,IAAI;EACf;AACF;AAEAG,mBAAmB,CAAC+B,SAAS,GAAG;EAC9B7B,IAAI,EAAE8B,qBAAS,CAACC,MAAM,CAACC,UAAU;EACjC/B,KAAK,EAAE6B,qBAAS,CAACG,MAAM,CAACD,UAAU;EAClC9B,MAAM,EAAE4B,qBAAS,CAACG,MAAM,CAACD;AAC3B,CAAC","ignoreList":[]}
|
|
@@ -1,88 +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"] = State;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
var _scene = _interopRequireDefault(require("./scene"));
|
|
11
|
-
var _snap = _interopRequireDefault(require("./snap"));
|
|
12
|
-
var SharedStyle = _interopRequireWildcard(require("../../shared-style"));
|
|
13
|
-
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); }
|
|
14
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
15
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
16
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
17
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
18
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
19
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
20
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
21
|
-
var guideStyle = {
|
|
22
|
-
stroke: SharedStyle.SECONDARY_COLOR.main,
|
|
23
|
-
strokewidth: '2.5px'
|
|
24
|
-
};
|
|
25
|
-
function State(_ref) {
|
|
26
|
-
var state = _ref.state,
|
|
27
|
-
catalog = _ref.catalog,
|
|
28
|
-
relatedLines = _ref.relatedLines;
|
|
29
|
-
var activeSnapElement = state.activeSnapElement,
|
|
30
|
-
snapElements = state.snapElements,
|
|
31
|
-
scene = state.scene;
|
|
32
|
-
var width = scene.width,
|
|
33
|
-
height = scene.height;
|
|
34
|
-
activeSnapElement = activeSnapElement ? /*#__PURE__*/_react["default"].createElement(_snap["default"], {
|
|
35
|
-
snap: activeSnapElement,
|
|
36
|
-
width: scene.width,
|
|
37
|
-
height: scene.height
|
|
38
|
-
}) : null;
|
|
39
|
-
// snapElements = snapElements.map((snap,id) => <Snap key={id} snap={snap} width={scene.width} height={scene.height}/>);
|
|
40
|
-
snapElements = null; //only for debug purpose
|
|
41
|
-
|
|
42
|
-
return /*#__PURE__*/_react["default"].createElement("g", null, /*#__PURE__*/_react["default"].createElement("rect", {
|
|
43
|
-
x: "0",
|
|
44
|
-
y: "0",
|
|
45
|
-
width: width,
|
|
46
|
-
height: height,
|
|
47
|
-
fill: SharedStyle.COLORS.white
|
|
48
|
-
}), /*#__PURE__*/_react["default"].createElement("g", {
|
|
49
|
-
transform: "translate(0, ".concat(scene.height, ") scale(1, -1)"),
|
|
50
|
-
id: "svg-drawing-paper"
|
|
51
|
-
}, /*#__PURE__*/_react["default"].createElement(_scene["default"], {
|
|
52
|
-
scene: scene,
|
|
53
|
-
state: state,
|
|
54
|
-
catalog: catalog,
|
|
55
|
-
relatedLines: relatedLines
|
|
56
|
-
}), scene.getIn(['guides', 'horizontal']).entrySeq().map(function (_ref2) {
|
|
57
|
-
var _ref3 = _slicedToArray(_ref2, 2),
|
|
58
|
-
hgKey = _ref3[0],
|
|
59
|
-
hgVal = _ref3[1];
|
|
60
|
-
return /*#__PURE__*/_react["default"].createElement("line", {
|
|
61
|
-
id: 'hGuide' + hgKey,
|
|
62
|
-
key: hgKey,
|
|
63
|
-
x1: 0,
|
|
64
|
-
y1: hgVal,
|
|
65
|
-
x2: width,
|
|
66
|
-
y2: hgVal,
|
|
67
|
-
style: guideStyle
|
|
68
|
-
});
|
|
69
|
-
}), scene.getIn(['guides', 'vertical']).entrySeq().map(function (_ref4) {
|
|
70
|
-
var _ref5 = _slicedToArray(_ref4, 2),
|
|
71
|
-
vgKey = _ref5[0],
|
|
72
|
-
vgVal = _ref5[1];
|
|
73
|
-
return /*#__PURE__*/_react["default"].createElement("line", {
|
|
74
|
-
key: vgKey,
|
|
75
|
-
x1: vgVal,
|
|
76
|
-
y1: 0,
|
|
77
|
-
x2: vgVal,
|
|
78
|
-
y2: height,
|
|
79
|
-
style: guideStyle
|
|
80
|
-
});
|
|
81
|
-
}), activeSnapElement, snapElements));
|
|
82
|
-
}
|
|
83
|
-
State.propTypes = {
|
|
84
|
-
state: _propTypes["default"].object.isRequired,
|
|
85
|
-
catalog: _propTypes["default"].object.isRequired,
|
|
86
|
-
relatedLines: _propTypes["default"].object.isRequired
|
|
87
|
-
};
|
|
88
|
-
//# sourceMappingURL=state.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","names":["_react","_interopRequireDefault","require","_propTypes","_scene","_snap","SharedStyle","_interopRequireWildcard","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","_typeof","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","a","_arrayLikeToArray","toString","slice","constructor","name","Array","from","test","length","l","Symbol","iterator","u","next","done","push","value","isArray","guideStyle","stroke","SECONDARY_COLOR","main","strokewidth","State","_ref","state","catalog","relatedLines","activeSnapElement","snapElements","scene","width","height","createElement","snap","x","y","fill","COLORS","white","transform","concat","id","getIn","entrySeq","map","_ref2","_ref3","hgKey","hgVal","key","x1","y1","x2","y2","style","_ref4","_ref5","vgKey","vgVal","propTypes","PropTypes","object","isRequired"],"sources":["../../../src/components/viewer2d/state.jsx"],"sourcesContent":["import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Scene from './scene';\r\nimport Snap from './snap';\r\nimport * as SharedStyle from '../../shared-style';\r\nconst guideStyle = {\r\n stroke: SharedStyle.SECONDARY_COLOR.main,\r\n strokewidth: '2.5px'\r\n};\r\n\r\nexport default function State({ state, catalog, relatedLines }) {\r\n let { activeSnapElement, snapElements, scene } = state;\r\n let { width, height } = scene;\r\n activeSnapElement = activeSnapElement ? (\r\n <Snap snap={activeSnapElement} width={scene.width} height={scene.height} />\r\n ) : null;\r\n // snapElements = snapElements.map((snap,id) => <Snap key={id} snap={snap} width={scene.width} height={scene.height}/>);\r\n snapElements = null; //only for debug purpose\r\n\r\n return (\r\n <g>\r\n <rect\r\n x=\"0\"\r\n y=\"0\"\r\n width={width}\r\n height={height}\r\n fill={SharedStyle.COLORS.white}\r\n />\r\n <g\r\n transform={`translate(0, ${scene.height}) scale(1, -1)`}\r\n id=\"svg-drawing-paper\"\r\n >\r\n <Scene\r\n scene={scene}\r\n state={state}\r\n catalog={catalog}\r\n relatedLines={relatedLines}\r\n />\r\n {scene\r\n .getIn(['guides', 'horizontal'])\r\n .entrySeq()\r\n .map(([hgKey, hgVal]) => (\r\n <line\r\n id={'hGuide' + hgKey}\r\n key={hgKey}\r\n x1={0}\r\n y1={hgVal}\r\n x2={width}\r\n y2={hgVal}\r\n style={guideStyle}\r\n />\r\n ))}\r\n {scene\r\n .getIn(['guides', 'vertical'])\r\n .entrySeq()\r\n .map(([vgKey, vgVal]) => (\r\n <line\r\n key={vgKey}\r\n x1={vgVal}\r\n y1={0}\r\n x2={vgVal}\r\n y2={height}\r\n style={guideStyle}\r\n />\r\n ))}\r\n {activeSnapElement}\r\n {snapElements}\r\n </g>\r\n </g>\r\n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KAAM;MACVM,KAAK,EAAErC;IAAW,CACnB,CAAC;EAAA,CACH,CAAC,EACHY,KAAK,CACHa,KAAK,CAAC,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC,CAC7BC,QAAQ,CAAC,CAAC,CACVC,GAAG,CAAC,UAAAW,KAAA;IAAA,IAAAC,KAAA,GAAAhE,cAAA,CAAA+D,KAAA;MAAEE,KAAK,GAAAD,KAAA;MAAEE,KAAK,GAAAF,KAAA;IAAA,oBACjB5F,MAAA,YAAAoE,aAAA;MACEiB,GAAG,EAAEQ,KAAM;MACXP,EAAE,EAAEQ,KAAM;MACVP,EAAE,EAAE,CAAE;MACNC,EAAE,EAAEM,KAAM;MACVL,EAAE,EAAEtB,MAAO;MACXuB,KAAK,EAAErC;IAAW,CACnB,CAAC;EAAA,CACH,CAAC,EACHU,iBAAiB,EACjBC,YACA,CACF,CAAC;AAER;AAEAN,KAAK,CAACqC,SAAS,GAAG;EAChBnC,KAAK,EAAEoC,qBAAS,CAACC,MAAM,CAACC,UAAU;EAClCrC,OAAO,EAAEmC,qBAAS,CAACC,MAAM,CAACC,UAAU;EACpCpC,YAAY,EAAEkC,qBAAS,CAACC,MAAM,CAACC;AACjC,CAAC","ignoreList":[]}
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getInstallationSuffix = getInstallationSuffix;
|
|
7
|
-
exports.getToeKickSKU = void 0;
|
|
8
|
-
exports.isEmpty = isEmpty;
|
|
9
|
-
exports.isEqualInstallationType = isEqualInstallationType;
|
|
10
|
-
exports.makeSKUForMagento = makeSKUForMagento;
|
|
11
|
-
exports.searchForSkuValue = exports.returnReplaceableDeepSearchType = void 0;
|
|
12
|
-
var _helper = require("../../utils/helper");
|
|
13
|
-
var _constants = require("../../constants");
|
|
14
|
-
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); }
|
|
15
|
-
var searchForSkuValue = exports.searchForSkuValue = function searchForSkuValue(catalog, selectedLayer, elementType) {
|
|
16
|
-
return new Promise(function (resolve) {
|
|
17
|
-
if (elementType) {
|
|
18
|
-
Object.values(catalog.elements).forEach(function (value) {
|
|
19
|
-
if (value.obj && value.obj.skuArray) {
|
|
20
|
-
if (value.obj.skuArray.find(function (skItem) {
|
|
21
|
-
return skItem.sku === elementType;
|
|
22
|
-
})) {
|
|
23
|
-
saveDeepSearchType(elementType, value.name);
|
|
24
|
-
resolve({
|
|
25
|
-
isAvailable: true,
|
|
26
|
-
rootType: value.name
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
} else {
|
|
32
|
-
selectedLayer.items.valueSeq().forEach(function (item) {
|
|
33
|
-
Object.values(catalog.elements).forEach(function (value) {
|
|
34
|
-
if (value.obj && value.obj.skuArray) {
|
|
35
|
-
if (value.obj.skuArray.find(function (skItem) {
|
|
36
|
-
return skItem.sku === item.type;
|
|
37
|
-
})) {
|
|
38
|
-
resolve({
|
|
39
|
-
isAvailable: true,
|
|
40
|
-
rootType: value.name
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
resolve({
|
|
48
|
-
isAvailable: false
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
var returnReplaceableDeepSearchType = exports.returnReplaceableDeepSearchType = function returnReplaceableDeepSearchType(type) {
|
|
53
|
-
var DeepSearchTypes = JSON.parse(sessionStorage.getItem('deepSearchTypes')) || [];
|
|
54
|
-
var replaceableType = DeepSearchTypes.find(function (item) {
|
|
55
|
-
return item.type === type;
|
|
56
|
-
});
|
|
57
|
-
return replaceableType && replaceableType.foundType || '';
|
|
58
|
-
};
|
|
59
|
-
function getInstallationSuffix(type) {
|
|
60
|
-
var _doorColor$isAssemble, _doorColor$install;
|
|
61
|
-
var doorColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
62
|
-
if (!doorColor) {
|
|
63
|
-
console.error('getInstallationSuffix received false argument : ', doorColor);
|
|
64
|
-
return doorColor;
|
|
65
|
-
}
|
|
66
|
-
doorColor = (0, _helper.toPlainObject)(doorColor);
|
|
67
|
-
|
|
68
|
-
// If doorColor.isAssembled is explicitly set → trust it.
|
|
69
|
-
// Else → fall back to checking install.
|
|
70
|
-
var isAssembled = (_doorColor$isAssemble = doorColor.isAssembled) !== null && _doorColor$isAssemble !== void 0 ? _doorColor$isAssemble : ((_doorColor$install = doorColor.install) === null || _doorColor$install === void 0 ? void 0 : _doorColor$install.toLowerCase()) === _constants.INSTALLATION_TYPE_NAME.ASSEMBLED.toLowerCase();
|
|
71
|
-
if (type === _constants.INSTALLATION_SUFFIX_TYPE.SKU) {
|
|
72
|
-
return isAssembled ? _constants.INSTALLATION_TYPE_SKU_SUFFIX.ASSEMBLED : _constants.INSTALLATION_TYPE_SKU_SUFFIX.RTA;
|
|
73
|
-
} else {
|
|
74
|
-
return isAssembled ? _constants.INSTALLATION_TYPE_NAME.ASSEMBLED : _constants.INSTALLATION_TYPE_NAME.RTA;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
function isEqualInstallationType(doorColor1, doorColor2) {
|
|
78
|
-
var _getInstallationSuffi, _getInstallationSuffi2;
|
|
79
|
-
return ((_getInstallationSuffi = getInstallationSuffix(_constants.INSTALLATION_SUFFIX_TYPE.NAME, doorColor1)) === null || _getInstallationSuffi === void 0 ? void 0 : _getInstallationSuffi.toLowerCase()) === ((_getInstallationSuffi2 = getInstallationSuffix(_constants.INSTALLATION_SUFFIX_TYPE.NAME, doorColor2)) === null || _getInstallationSuffi2 === void 0 ? void 0 : _getInstallationSuffi2.toLowerCase());
|
|
80
|
-
}
|
|
81
|
-
function buildSKU(baseSKU) {
|
|
82
|
-
var doorColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
83
|
-
var colorSuffix = doorColor.color_sku_alias || doorColor.sku || '';
|
|
84
|
-
var installationSuffix = getInstallationSuffix(_constants.INSTALLATION_SUFFIX_TYPE.SKU, doorColor);
|
|
85
|
-
return [baseSKU, colorSuffix, installationSuffix].filter(Boolean).join('-');
|
|
86
|
-
}
|
|
87
|
-
function buildToeKickSKU() {
|
|
88
|
-
var doorColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
89
|
-
var catalog = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
90
|
-
// Base toe kick SKU (can be swapped between ['TKC', 'TK8', 'TK96'])
|
|
91
|
-
var baseSKU = getToeKickSKU(doorColor, catalog);
|
|
92
|
-
if (baseSKU === false) return false;
|
|
93
|
-
return buildSKU(baseSKU, doorColor);
|
|
94
|
-
}
|
|
95
|
-
function buildRegularSKU(element, catalog) {
|
|
96
|
-
var _internal_sku;
|
|
97
|
-
var doorColor = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
98
|
-
// Try to resolve element in catalog
|
|
99
|
-
var _element = catalog.elements[element.type] || catalog.elements[returnReplaceableDeepSearchType(element.type)];
|
|
100
|
-
if (!_element) return false;
|
|
101
|
-
|
|
102
|
-
// Start from default SKU
|
|
103
|
-
var internal_sku = _element.obj.sku_number;
|
|
104
|
-
|
|
105
|
-
// Override with SKU matching door color if found
|
|
106
|
-
var tempSKU = _element.obj.skuArray.find(function (el) {
|
|
107
|
-
return el.door_color_id === doorColor.id;
|
|
108
|
-
});
|
|
109
|
-
if (tempSKU !== null && tempSKU !== void 0 && tempSKU.sku) {
|
|
110
|
-
internal_sku = tempSKU.sku;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
// Normalize left/right variants
|
|
114
|
-
internal_sku = (_internal_sku = internal_sku) === null || _internal_sku === void 0 ? void 0 : _internal_sku.replace(/-([RL])$/, '');
|
|
115
|
-
|
|
116
|
-
// Reuse generic builder for suffixes
|
|
117
|
-
return buildSKU(internal_sku, doorColor);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// element : cabinet
|
|
121
|
-
// catalog : all cabinet info
|
|
122
|
-
function makeSKUForMagento(element, catalog, categoryData) {
|
|
123
|
-
var _element$category;
|
|
124
|
-
if ((_element$category = element.category) !== null && _element$category !== void 0 && _element$category.toLowerCase().includes('molding')) {
|
|
125
|
-
element.type = element.name;
|
|
126
|
-
}
|
|
127
|
-
var doorColor = (0, _helper.toPlainObject)(element.doorStyle);
|
|
128
|
-
if (!doorColor) return false;
|
|
129
|
-
return element.name === _constants.TOE_KICK_MOLDING ? buildToeKickSKU(doorColor, catalog) : buildRegularSKU(element, catalog, doorColor);
|
|
130
|
-
}
|
|
131
|
-
function isEmpty(value) {
|
|
132
|
-
if (value === undefined || value === null || _typeof(value) === 'object' && Object.keys(value).length === 0 || typeof value === 'string' && value.trim().length === 0) return true;else return false;
|
|
133
|
-
}
|
|
134
|
-
var saveDeepSearchType = function saveDeepSearchType(type, foundType) {
|
|
135
|
-
var DeepSearchTypes = JSON.parse(sessionStorage.getItem('deepSearchTypes')) || [];
|
|
136
|
-
var isAlreadyAvailable = DeepSearchTypes.find(function (item) {
|
|
137
|
-
return item.type === type;
|
|
138
|
-
});
|
|
139
|
-
if (!isAlreadyAvailable) {
|
|
140
|
-
DeepSearchTypes.push({
|
|
141
|
-
type: type,
|
|
142
|
-
foundType: foundType
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
sessionStorage.setItem('deepSearchTypes', JSON.stringify(DeepSearchTypes));
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* @param {Boolean} flag true: for thumbnail, false: default value
|
|
150
|
-
* @returns
|
|
151
|
-
*/
|
|
152
|
-
var getToeKickSKU = exports.getToeKickSKU = function getToeKickSKU() {
|
|
153
|
-
var doorColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
154
|
-
var catalog = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
155
|
-
var flag = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
156
|
-
var catalogData = catalog.elements || [];
|
|
157
|
-
var itemDoorColorID = (doorColor === null || doorColor === void 0 ? void 0 : doorColor.id) || [];
|
|
158
|
-
var skuData = '';
|
|
159
|
-
Object.keys(catalogData).forEach(function (data) {
|
|
160
|
-
var obj = catalogData[data].obj;
|
|
161
|
-
if ((obj === null || obj === void 0 ? void 0 : obj.cabinet_category) === _constants.TOE_KICK_MOLDING) {
|
|
162
|
-
var _obj$skuArray;
|
|
163
|
-
var found = (_obj$skuArray = obj.skuArray) === null || _obj$skuArray === void 0 ? void 0 : _obj$skuArray.find(function (cData) {
|
|
164
|
-
return cData.door_color_id === itemDoorColorID;
|
|
165
|
-
});
|
|
166
|
-
if (found) {
|
|
167
|
-
skuData = flag ? data : found === null || found === void 0 ? void 0 : found.sku;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
});
|
|
171
|
-
if (!skuData) return false;
|
|
172
|
-
return skuData;
|
|
173
|
-
};
|
|
174
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":["_helper","require","_constants","_typeof","o","Symbol","iterator","constructor","prototype","searchForSkuValue","exports","catalog","selectedLayer","elementType","Promise","resolve","Object","values","elements","forEach","value","obj","skuArray","find","skItem","sku","saveDeepSearchType","name","isAvailable","rootType","items","valueSeq","item","type","returnReplaceableDeepSearchType","DeepSearchTypes","JSON","parse","sessionStorage","getItem","replaceableType","foundType","getInstallationSuffix","_doorColor$isAssemble","_doorColor$install","doorColor","arguments","length","undefined","console","error","toPlainObject","isAssembled","install","toLowerCase","INSTALLATION_TYPE_NAME","ASSEMBLED","INSTALLATION_SUFFIX_TYPE","SKU","INSTALLATION_TYPE_SKU_SUFFIX","RTA","isEqualInstallationType","doorColor1","doorColor2","_getInstallationSuffi","_getInstallationSuffi2","NAME","buildSKU","baseSKU","colorSuffix","color_sku_alias","installationSuffix","filter","Boolean","join","buildToeKickSKU","getToeKickSKU","buildRegularSKU","element","_internal_sku","_element","internal_sku","sku_number","tempSKU","el","door_color_id","id","replace","makeSKUForMagento","categoryData","_element$category","category","includes","doorStyle","TOE_KICK_MOLDING","isEmpty","keys","trim","isAlreadyAvailable","push","setItem","stringify","flag","catalogData","itemDoorColorID","skuData","data","cabinet_category","_obj$skuArray","found","cData"],"sources":["../../../src/components/viewer2d/utils.js"],"sourcesContent":["import { isImmutable, toPlainObject } from '../../utils/helper';\r\nimport {\r\n INSTALLATION_SUFFIX_TYPE,\r\n INSTALLATION_TYPE_NAME,\r\n INSTALLATION_TYPE_SKU_SUFFIX,\r\n TOE_KICK_MOLDING\r\n} from '../../constants';\r\n\r\nexport const searchForSkuValue = (catalog, selectedLayer, elementType) => {\r\n return new Promise(resolve => {\r\n if (elementType) {\r\n Object.values(catalog.elements).forEach(value => {\r\n if (value.obj && value.obj.skuArray) {\r\n if (value.obj.skuArray.find(skItem => skItem.sku === elementType)) {\r\n saveDeepSearchType(elementType, value.name);\r\n resolve({\r\n isAvailable: true,\r\n rootType: value.name\r\n });\r\n }\r\n }\r\n });\r\n } else {\r\n selectedLayer.items.valueSeq().forEach(item => {\r\n Object.values(catalog.elements).forEach(value => {\r\n if (value.obj && value.obj.skuArray) {\r\n if (value.obj.skuArray.find(skItem => skItem.sku === item.type)) {\r\n resolve({\r\n isAvailable: true,\r\n rootType: value.name\r\n });\r\n }\r\n }\r\n });\r\n });\r\n }\r\n\r\n resolve({\r\n isAvailable: false\r\n });\r\n });\r\n};\r\n\r\nexport const returnReplaceableDeepSearchType = type => {\r\n const DeepSearchTypes =\r\n JSON.parse(sessionStorage.getItem('deepSearchTypes')) || [];\r\n const replaceableType = DeepSearchTypes.find(item => item.type === type);\r\n return (replaceableType && replaceableType.foundType) || '';\r\n};\r\n\r\nexport function getInstallationSuffix(type, doorColor = {}) {\r\n if (!doorColor) {\r\n console.error(\r\n 'getInstallationSuffix received false argument : ',\r\n doorColor\r\n );\r\n return doorColor;\r\n }\r\n\r\n doorColor = toPlainObject(doorColor);\r\n\r\n // If doorColor.isAssembled is explicitly set → trust it.\r\n // Else → fall back to checking install.\r\n const isAssembled =\r\n doorColor.isAssembled ??\r\n doorColor.install?.toLowerCase() ===\r\n INSTALLATION_TYPE_NAME.ASSEMBLED.toLowerCase();\r\n\r\n if (type === INSTALLATION_SUFFIX_TYPE.SKU) {\r\n return isAssembled\r\n ? INSTALLATION_TYPE_SKU_SUFFIX.ASSEMBLED\r\n : INSTALLATION_TYPE_SKU_SUFFIX.RTA;\r\n } else {\r\n return isAssembled\r\n ? INSTALLATION_TYPE_NAME.ASSEMBLED\r\n : INSTALLATION_TYPE_NAME.RTA;\r\n }\r\n}\r\n\r\nexport function isEqualInstallationType(doorColor1, doorColor2) {\r\n return (\r\n getInstallationSuffix(\r\n INSTALLATION_SUFFIX_TYPE.NAME,\r\n doorColor1\r\n )?.toLowerCase() ===\r\n getInstallationSuffix(\r\n INSTALLATION_SUFFIX_TYPE.NAME,\r\n doorColor2\r\n )?.toLowerCase()\r\n );\r\n}\r\n\r\nfunction buildSKU(baseSKU, doorColor = {}) {\r\n const colorSuffix = doorColor.color_sku_alias || doorColor.sku || '';\r\n const installationSuffix = getInstallationSuffix(\r\n INSTALLATION_SUFFIX_TYPE.SKU,\r\n doorColor\r\n );\r\n return [baseSKU, colorSuffix, installationSuffix].filter(Boolean).join('-');\r\n}\r\n\r\nfunction buildToeKickSKU(doorColor = {}, catalog = {}) {\r\n // Base toe kick SKU (can be swapped between ['TKC', 'TK8', 'TK96'])\r\n const baseSKU = getToeKickSKU(doorColor, catalog);\r\n if (baseSKU === false) return false;\r\n\r\n return buildSKU(baseSKU, doorColor);\r\n}\r\n\r\nfunction buildRegularSKU(element, catalog, doorColor = {}) {\r\n // Try to resolve element in catalog\r\n let _element =\r\n catalog.elements[element.type] ||\r\n catalog.elements[returnReplaceableDeepSearchType(element.type)];\r\n if (!_element) return false;\r\n\r\n // Start from default SKU\r\n let internal_sku = _element.obj.sku_number;\r\n\r\n // Override with SKU matching door color if found\r\n const tempSKU = _element.obj.skuArray.find(\r\n el => el.door_color_id === doorColor.id\r\n );\r\n if (tempSKU?.sku) {\r\n internal_sku = tempSKU.sku;\r\n }\r\n\r\n // Normalize left/right variants\r\n internal_sku = internal_sku?.replace(/-([RL])$/, '');\r\n\r\n // Reuse generic builder for suffixes\r\n return buildSKU(internal_sku, doorColor);\r\n}\r\n\r\n// element : cabinet\r\n// catalog : all cabinet info\r\nexport function makeSKUForMagento(element, catalog, categoryData) {\r\n if (element.category?.toLowerCase().includes('molding')) {\r\n element.type = element.name;\r\n }\r\n\r\n const doorColor = toPlainObject(element.doorStyle);\r\n if (!doorColor) return false;\r\n\r\n return element.name === TOE_KICK_MOLDING\r\n ? buildToeKickSKU(doorColor, catalog)\r\n : buildRegularSKU(element, catalog, doorColor);\r\n}\r\n\r\nexport function isEmpty(value) {\r\n if (\r\n value === undefined ||\r\n value === null ||\r\n (typeof value === 'object' && Object.keys(value).length === 0) ||\r\n (typeof value === 'string' && value.trim().length === 0)\r\n )\r\n return true;\r\n else return false;\r\n}\r\n\r\nconst saveDeepSearchType = (type, foundType) => {\r\n const DeepSearchTypes =\r\n JSON.parse(sessionStorage.getItem('deepSearchTypes')) || [];\r\n const isAlreadyAvailable = DeepSearchTypes.find(item => item.type === type);\r\n if (!isAlreadyAvailable) {\r\n DeepSearchTypes.push({ type, foundType });\r\n }\r\n\r\n sessionStorage.setItem('deepSearchTypes', JSON.stringify(DeepSearchTypes));\r\n};\r\n\r\n/**\r\n * @param {Boolean} flag true: for thumbnail, false: default value\r\n * @returns\r\n */\r\nexport const getToeKickSKU = (doorColor = {}, catalog = {}, flag = false) => {\r\n const catalogData = catalog.elements || [];\r\n const itemDoorColorID = doorColor?.id || [];\r\n let skuData = '';\r\n Object.keys(catalogData).forEach(data => {\r\n const obj = catalogData[data].obj;\r\n if (obj?.cabinet_category === TOE_KICK_MOLDING) {\r\n const found = obj.skuArray?.find(\r\n cData => cData.door_color_id === itemDoorColorID\r\n );\r\n if (found) {\r\n skuData = flag ? data : found?.sku;\r\n }\r\n }\r\n });\r\n\r\n if (!skuData) return false;\r\n\r\n return skuData;\r\n};\r\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAKyB,SAAAE,QAAAC,CAAA,sCAAAD,OAAA,wBAAAE,MAAA,uBAAAA,MAAA,CAAAC,QAAA,aAAAF,CAAA,kBAAAA,CAAA,gBAAAA,CAAA,WAAAA,CAAA,yBAAAC,MAAA,IAAAD,CAAA,CAAAG,WAAA,KAAAF,MAAA,IAAAD,CAAA,KAAAC,MAAA,CAAAG,SAAA,qBAAAJ,CAAA,KAAAD,OAAA,CAAAC,CAAA;AAElB,IAAMK,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,SAApBA,iBAAiBA,CAAIE,OAAO,EAAEC,aAAa,EAAEC,WAAW,EAAK;EACxE,OAAO,IAAIC,OAAO,CAAC,UAAAC,OAAO,EAAI;IAC5B,IAAIF,WAAW,EAAE;MACfG,MAAM,CAACC,MAAM,CAACN,OAAO,CAACO,QAAQ,CAAC,CAACC,OAAO,CAAC,UAAAC,KAAK,EAAI;QAC/C,IAAIA,KAAK,CAACC,GAAG,IAAID,KAAK,CAACC,GAAG,CAACC,QAAQ,EAAE;UACnC,IAAIF,KAAK,CAACC,GAAG,CAACC,QAAQ,CAACC,IAAI,CAAC,UAAAC,MAAM;YAAA,OAAIA,MAAM,CAACC,GAAG,KAAKZ,WAAW;UAAA,EAAC,EAAE;YACjEa,kBAAkB,CAACb,WAAW,EAAEO,KAAK,CAACO,IAAI,CAAC;YAC3CZ,O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G5F,OAAO,CAACO,QAAQ,IAAI,EAAE;EAC1C,IAAMsF,eAAe,GAAG,CAAA3D,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAEyC,EAAE,KAAI,EAAE;EAC3C,IAAImB,OAAO,GAAG,EAAE;EAChBzF,MAAM,CAACgF,IAAI,CAACO,WAAW,CAAC,CAACpF,OAAO,CAAC,UAAAuF,IAAI,EAAI;IACvC,IAAMrF,GAAG,GAAGkF,WAAW,CAACG,IAAI,CAAC,CAACrF,GAAG;IACjC,IAAI,CAAAA,GAAG,aAAHA,GAAG,uBAAHA,GAAG,CAAEsF,gBAAgB,MAAKb,2BAAgB,EAAE;MAAA,IAAAc,aAAA;MAC9C,IAAMC,KAAK,IAAAD,aAAA,GAAGvF,GAAG,CAACC,QAAQ,cAAAsF,aAAA,uBAAZA,aAAA,CAAcrF,IAAI,CAC9B,UAAAuF,KAAK;QAAA,OAAIA,KAAK,CAACzB,aAAa,KAAKmB,eAAe;MAAA,CAClD,CAAC;MACD,IAAIK,KAAK,EAAE;QACTJ,OAAO,GAAGH,IAAI,GAAGI,IAAI,GAAGG,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEpF,GAAG;MACpC;IACF;EACF,CAAC,CAAC;EAEF,IAAI,CAACgF,OAAO,EAAE,OAAO,KAAK;EAE1B,OAAOA,OAAO;AAChB,CAAC","ignoreList":[]}
|
|
@@ -1,76 +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"] = Vertex;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
var SharedStyle = _interopRequireWildcard(require("../../shared-style"));
|
|
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
|
-
//Space from the center of the point(Use cases:x - vertexthickness,y + vertexthickness )
|
|
15
|
-
var vertexthickness = 4;
|
|
16
|
-
var STYLE = {
|
|
17
|
-
// strokeWidth: 5,
|
|
18
|
-
strokeLinejoin: 'round',
|
|
19
|
-
rx: '2px',
|
|
20
|
-
stroke: SharedStyle.LINE_MESH_COLOR.selected,
|
|
21
|
-
fill: SharedStyle.LINE_MESH_COLOR.selected,
|
|
22
|
-
cursor: 'move'
|
|
23
|
-
};
|
|
24
|
-
function Vertex(_ref) {
|
|
25
|
-
var vertex = _ref.vertex,
|
|
26
|
-
layer = _ref.layer;
|
|
27
|
-
var x = vertex.x,
|
|
28
|
-
y = vertex.y;
|
|
29
|
-
var relatedVertice = {
|
|
30
|
-
x: x,
|
|
31
|
-
y: y
|
|
32
|
-
};
|
|
33
|
-
if (vertex.lines.get(0)) {
|
|
34
|
-
var line = layer.lines.get(vertex.lines.get(0));
|
|
35
|
-
if (layer.lines.get(vertex.lines.get(1)) !== undefined && layer.lines.get(vertex.lines.get(1)).get('selected')) {
|
|
36
|
-
line = layer.lines.get(vertex.lines.get(1));
|
|
37
|
-
}
|
|
38
|
-
if (line) {
|
|
39
|
-
var index = line.vertices.findIndex(function (a) {
|
|
40
|
-
return a === vertex.id;
|
|
41
|
-
});
|
|
42
|
-
if (index > -1) {
|
|
43
|
-
var vertice = line.relatedVertices.filter(function (a) {
|
|
44
|
-
if (a['index'] === undefined) {
|
|
45
|
-
return a.get('index') === index;
|
|
46
|
-
} else if (a['index'] !== undefined) {
|
|
47
|
-
return a.index === index;
|
|
48
|
-
}
|
|
49
|
-
}).get(0);
|
|
50
|
-
if (vertice && !vertice['point']) {
|
|
51
|
-
relatedVertice = {
|
|
52
|
-
x: vertice.get('point').get('x'),
|
|
53
|
-
y: vertice.get('point').get('y')
|
|
54
|
-
};
|
|
55
|
-
} else if (vertice !== undefined) {
|
|
56
|
-
relatedVertice = vertice['point'];
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
return /*#__PURE__*/_react["default"].createElement("g", {
|
|
62
|
-
"data-element-root": true,
|
|
63
|
-
"data-prototype": vertex.prototype,
|
|
64
|
-
"data-id": vertex.id,
|
|
65
|
-
"data-selected": vertex.selected,
|
|
66
|
-
"data-layer": layer.id
|
|
67
|
-
}, /*#__PURE__*/_react["default"].createElement("polygon", {
|
|
68
|
-
points: "".concat(x - vertexthickness, ",").concat(y + vertexthickness, " ").concat(x - vertexthickness, ",").concat(y - vertexthickness, " ").concat(x + vertexthickness, ",").concat(y - vertexthickness, " ").concat(x + vertexthickness, ",").concat(y + vertexthickness),
|
|
69
|
-
style: STYLE
|
|
70
|
-
}));
|
|
71
|
-
}
|
|
72
|
-
Vertex.propTypes = {
|
|
73
|
-
vertex: _propTypes["default"].object.isRequired,
|
|
74
|
-
layer: _propTypes["default"].object.isRequired
|
|
75
|
-
};
|
|
76
|
-
//# sourceMappingURL=vertex.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vertex.js","names":["_react","_interopRequireDefault","require","_propTypes","SharedStyle","_interopRequireWildcard","_constants","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","_typeof","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","vertexthickness","STYLE","strokeLinejoin","rx","stroke","LINE_MESH_COLOR","selected","fill","cursor","Vertex","_ref","vertex","layer","x","y","relatedVertice","lines","line","undefined","index","vertices","findIndex","a","id","vertice","relatedVertices","filter","createElement","prototype","points","concat","style","propTypes","PropTypes","object","isRequired"],"sources":["../../../src/components/viewer2d/vertex.jsx"],"sourcesContent":["import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport * as SharedStyle from '../../shared-style';\r\nimport { LINE_THICKNESS } from '../../../src/constants';\r\n//Space from the center of the point(Use cases:x - vertexthickness,y + vertexthickness )\r\nlet vertexthickness = 4;\r\nconst STYLE = {\r\n // strokeWidth: 5,\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 cursor: 'move'\r\n};\r\n\r\nexport default function Vertex({ vertex, layer }) {\r\n let { x, y } = vertex;\r\n let relatedVertice = { x, y };\r\n\r\n if (vertex.lines.get(0)) {\r\n let line = layer.lines.get(vertex.lines.get(0));\r\n if (\r\n layer.lines.get(vertex.lines.get(1)) !== undefined &&\r\n layer.lines.get(vertex.lines.get(1)).get('selected')\r\n ) {\r\n line = layer.lines.get(vertex.lines.get(1));\r\n }\r\n\r\n if (line) {\r\n const index = line.vertices.findIndex(a => a === vertex.id);\r\n if (index > -1) {\r\n const vertice = line.relatedVertices\r\n .filter(a => {\r\n if (a['index'] === undefined) {\r\n return a.get('index') === index;\r\n } else if (a['index'] !== undefined) {\r\n return a.index === index;\r\n }\r\n })\r\n .get(0);\r\n if (vertice && !vertice['point']) {\r\n relatedVertice = {\r\n x: vertice.get('point').get('x'),\r\n y: vertice.get('point').get('y')\r\n };\r\n } else if (vertice !== undefined) {\r\n relatedVertice = vertice['point'];\r\n }\r\n }\r\n }\r\n }\r\n\r\n return (\r\n <g\r\n data-element-root\r\n data-prototype={vertex.prototype}\r\n data-id={vertex.id}\r\n data-selected={vertex.selected}\r\n data-layer={layer.id}\r\n >\r\n {/* <polygon\r\n points={`${relatedVertice.x},${relatedVertice.y} ${relatedVertice.x},${y} ${x},${y} ${x},${relatedVertice.y}`}\r\n style={STYLE}\r\n ></polygon> */}\r\n <polygon\r\n points={`${x - vertexthickness},${y + vertexthickness } ${x -vertexthickness },${y - vertexthickness} ${x + vertexthickness},${y - vertexthickness} ${x + vertexthickness},${y + vertexthickness}`}\r\n style={STYLE}\r\n ></polygon>\r\n </g>\r\n );\r\n}\r\n\r\nVertex.propTypes = {\r\n vertex: PropTypes.object.isRequired,\r\n layer: PropTypes.object.isRequired\r\n};\r\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,WAAA,GAAAC,uBAAA,CAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAAwD,SAAAG,wBAAAE,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAJ,uBAAA,YAAAA,wBAAAE,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,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