@configuratorware/configurator-admingui 1.28.5 → 1.29.2
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/App/Api.js +315 -0
- package/App/Config/app.js +96 -0
- package/App/Config/defaultConfig.js +122 -0
- package/App/Config/icons.js +27 -0
- package/App/Config/network.js +20 -0
- package/App/Data.js +473 -0
- package/App/Entity.js +88 -0
- package/App/ErrorBoundary.js +126 -0
- package/App/FeatureReducers.js +62 -0
- package/App/Frame.js +133 -0
- package/App/Listeners.js +56 -0
- package/App/Main.js +321 -0
- package/App/Reducers/Api/Actions.js +262 -0
- package/App/Reducers/Api/Helpers.js +108 -0
- package/App/Reducers/Api/Reducer.js +109 -0
- package/App/Reducers/Common/Form/Actions.js +17 -0
- package/App/Reducers/Common/Form/Reducer.js +63 -0
- package/App/Reducers/Common/Language/Actions.js +17 -0
- package/App/Reducers/Common/Language/Reducer.js +48 -0
- package/App/Reducers/Common/OrderList/Actions.js +96 -0
- package/App/Reducers/Common/OrderList/Listener.js +37 -0
- package/App/Reducers/Common/OrderList/Reducer.js +100 -0
- package/App/Reducers/Common/index.js +19 -0
- package/App/Reducers/Config/Actions.js +18 -0
- package/App/Reducers/Config/Reducer.js +35 -0
- package/App/Reducers/Entity/Actions.js +660 -0
- package/App/Reducers/Entity/Reducer.js +379 -0
- package/App/Reducers/Frame/Actions.js +42 -0
- package/App/Reducers/Frame/Reducer.js +120 -0
- package/App/Reducers/index.js +51 -0
- package/App/ReduxListener.js +52 -0
- package/App/ReduxPersistLoader.js +26 -0
- package/App/Routes.js +73 -0
- package/App/Selectors/Credentials/hasCredentialFor.js +11 -0
- package/App/Services/ElementRef.js +28 -0
- package/App/Services/WindowCommunication.js +73 -0
- package/App/Services/index.js +15 -0
- package/App/Store.js +94 -0
- package/App/Styles.scss +185 -0
- package/App/TestHelpers.js +131 -0
- package/App/ThemeProvider.js +74 -0
- package/App/Translations.js +147 -0
- package/App/Utils.js +41 -0
- package/App/customSetup.js +21 -0
- package/App/i18n.js +307 -0
- package/App/index.js +80 -0
- package/App/initServices.js +92 -0
- package/App/setup.js +22 -0
- package/AppContainer.js +30 -0
- package/Components/AddButton.js +28 -0
- package/Components/AppBar.js +85 -0
- package/Components/CallToActionField.js +171 -0
- package/Components/CopyPaste.js +108 -0
- package/Components/DefaultConnectedForm.js +109 -0
- package/Components/DefaultConnectedList.js +147 -0
- package/Components/DefaultConnectedScreen.js +59 -0
- package/Components/DefaultForm.js +99 -0
- package/Components/DefaultList.js +345 -0
- package/Components/DefaultScreen.js +203 -0
- package/Components/Error.js +30 -0
- package/Components/Form.js +383 -0
- package/Components/FormFragments/AutoComplete.js +308 -0
- package/Components/FormFragments/AutocompleteEntity.js +294 -0
- package/Components/FormFragments/Checkbox.js +34 -0
- package/Components/FormFragments/Chip.js +249 -0
- package/Components/FormFragments/DatePicker.js +26 -0
- package/Components/FormFragments/DateTimePicker.js +27 -0
- package/Components/FormFragments/DynSourceInput.js +210 -0
- package/Components/FormFragments/ErrorWrapper.js +21 -0
- package/Components/FormFragments/File.js +231 -0
- package/Components/FormFragments/HintText.js +31 -0
- package/Components/FormFragments/InlineAddButton.js +213 -0
- package/Components/FormFragments/InputArray.js +349 -0
- package/Components/FormFragments/InputGroup.js +62 -0
- package/Components/FormFragments/InputWithSource.js +68 -0
- package/Components/FormFragments/IntlInput.js +211 -0
- package/Components/FormFragments/Label.js +32 -0
- package/Components/FormFragments/MarkDown.js +163 -0
- package/Components/FormFragments/MonacoEditor.js +119 -0
- package/Components/FormFragments/NestedDataComponent.js +232 -0
- package/Components/FormFragments/ObjectToggle.js +87 -0
- package/Components/FormFragments/RadioGroup.js +42 -0
- package/Components/FormFragments/Select.js +60 -0
- package/Components/FormFragments/SetInput.js +164 -0
- package/Components/FormFragments/SimpleNestedData.js +99 -0
- package/Components/FormFragments/SimpleTable.js +285 -0
- package/Components/FormFragments/SimpleTextEditor.js +43 -0
- package/Components/FormFragments/Styles.scss +119 -0
- package/Components/FormFragments/Tabs.js +307 -0
- package/Components/FormFragments/Text.js +43 -0
- package/Components/FormFragments/TimePicker.js +27 -0
- package/Components/FormFragments/Toggle.js +94 -0
- package/Components/FormFragments/TwoSideSelect.js +249 -0
- package/Components/FormFragments/Value.js +48 -0
- package/Components/FormFragments/index.js +138 -0
- package/Components/FormFragments/styles.js +38 -0
- package/Components/FormHooks/useDataSchema.js +68 -0
- package/Components/GeneralFragments/Box.js +25 -0
- package/Components/GeneralFragments/ConfigurationEditor.js +200 -0
- package/Components/GeneralFragments/ConfiguratorOverlay.js +111 -0
- package/Components/GeneralFragments/Content.js +25 -0
- package/Components/GeneralFragments/Headline.js +32 -0
- package/Components/GeneralFragments/Image.js +94 -0
- package/Components/GeneralFragments/MiniPopup.js +202 -0
- package/Components/GeneralFragments/Styles.scss +8 -0
- package/Components/GeneralFragments/index.js +39 -0
- package/Components/InputHelpers.js +17 -0
- package/Components/Join.js +28 -0
- package/Components/LicenseInfo.js +136 -0
- package/Components/List.js +413 -0
- package/Components/ListColumnFilter.js +258 -0
- package/Components/LocaleSwitch.js +56 -0
- package/Components/LocalizedPriceTextField.js +83 -0
- package/Components/LocalizedPriceValue.js +38 -0
- package/Components/Menu.js +202 -0
- package/Components/ModalContainer.js +128 -0
- package/Components/OrderList.js +248 -0
- package/Components/OverlayContainer.js +34 -0
- package/Components/Pagination.js +175 -0
- package/Components/ProfileButton.js +65 -0
- package/Components/SearchBar.js +183 -0
- package/Components/SplitContainer.js +53 -0
- package/Components/Styles.scss +114 -0
- package/Components/TranslateComponent.js +231 -0
- package/Components/TranslationFinder.js +72 -0
- package/Components/Translations.js +89 -0
- package/Components/ValidatorCallbackProvider.js +102 -0
- package/Components/VersionBadge.js +44 -0
- package/Components/VersionUpdateChip.js +52 -0
- package/Components/withLoadAction.js +41 -0
- package/Components/withTranslationFinder.js +47 -0
- package/README.md +5 -6
- package/Screens/ApiKeys/Containers/Edit.js +162 -0
- package/Screens/ApiKeys/Containers/List.js +37 -0
- package/Screens/ApiKeys/Reducers/Actions.js +44 -0
- package/Screens/ApiKeys/Reducers/Reducer.js +61 -0
- package/Screens/ApiKeys/Screen.js +24 -0
- package/Screens/ApiKeys/Styles.scss +3 -0
- package/Screens/ApiKeys/Translations.js +24 -0
- package/Screens/ApiKeys/index.js +21 -0
- package/Screens/Assemblypointeditor/Components/AssemblypointTable.js +161 -0
- package/Screens/Assemblypointeditor/Components/Assemblypointeditor.js +813 -0
- package/Screens/Assemblypointeditor/Components/Styles.scss +58 -0
- package/Screens/Assemblypointeditor/Components/fabric.min.js +1 -0
- package/Screens/Assemblypointeditor/Containers/Edit.js +77 -0
- package/Screens/Assemblypointeditor/Containers/List.js +53 -0
- package/Screens/Assemblypointeditor/Reducers/Actions.js +72 -0
- package/Screens/Assemblypointeditor/Reducers/Reducer.js +157 -0
- package/Screens/Assemblypointeditor/Screen.js +52 -0
- package/Screens/Assemblypointeditor/Styles.scss +38 -0
- package/Screens/Assemblypointeditor/Translations.js +10 -0
- package/Screens/Assemblypointeditor/index.js +20 -0
- package/Screens/Attribute/Containers/Edit.js +46 -0
- package/Screens/Attribute/Containers/List.js +41 -0
- package/Screens/Attribute/Reducers/Actions.js +42 -0
- package/Screens/Attribute/Reducers/Reducer.js +44 -0
- package/Screens/Attribute/Screen.js +24 -0
- package/Screens/Attribute/Styles.scss +0 -0
- package/Screens/Attribute/Translations.js +22 -0
- package/Screens/Attribute/__tests/AttributeScreen.js +368 -0
- package/Screens/Attribute/index.js +20 -0
- package/Screens/AttributeValue/Containers/Edit.js +49 -0
- package/Screens/AttributeValue/Containers/List.js +48 -0
- package/Screens/AttributeValue/Reducers/Actions.js +21 -0
- package/Screens/AttributeValue/Reducers/Reducer.js +38 -0
- package/Screens/AttributeValue/Screen.js +34 -0
- package/Screens/AttributeValue/Styles.scss +0 -0
- package/Screens/AttributeValue/Translations.js +17 -0
- package/Screens/AttributeValue/__tests/AttributeValueScreen.js +346 -0
- package/Screens/AttributeValue/index.js +20 -0
- package/Screens/ChangePassword/Reducers/Actions.js +69 -0
- package/Screens/ChangePassword/Reducers/Reducer.js +39 -0
- package/Screens/ChangePassword/Screen.js +212 -0
- package/Screens/ChangePassword/Translations.js +22 -0
- package/Screens/ChangePassword/index.js +20 -0
- package/Screens/Channel/Containers/Edit.js +58 -0
- package/Screens/Channel/Containers/List.js +33 -0
- package/Screens/Channel/Reducers/Actions.js +19 -0
- package/Screens/Channel/Reducers/Reducer.js +59 -0
- package/Screens/Channel/Screen.js +28 -0
- package/Screens/Channel/Translations.js +18 -0
- package/Screens/Channel/__tests/ChannelScreen.js +363 -0
- package/Screens/Channel/index.js +20 -0
- package/Screens/Client/Components/ColorTextField.js +90 -0
- package/Screens/Client/Components/PdfMarkdownField.js +171 -0
- package/Screens/Client/Components/TextFields.js +163 -0
- package/Screens/Client/Containers/Edit.js +190 -0
- package/Screens/Client/Containers/List.js +44 -0
- package/Screens/Client/Reducers/Actions.js +118 -0
- package/Screens/Client/Reducers/Reducer.js +149 -0
- package/Screens/Client/Screen.js +34 -0
- package/Screens/Client/Styles.scss +3 -0
- package/Screens/Client/Translations.js +49 -0
- package/Screens/Client/index.js +20 -0
- package/Screens/ColorPalettes/Components/DefaultColorSwitch.js +126 -0
- package/Screens/ColorPalettes/Containers/Edit.js +156 -0
- package/Screens/ColorPalettes/Containers/List.js +57 -0
- package/Screens/ColorPalettes/Reducers/Actions.js +21 -0
- package/Screens/ColorPalettes/Reducers/Reducer.js +61 -0
- package/Screens/ColorPalettes/Screen.js +34 -0
- package/Screens/ColorPalettes/Styles.scss +0 -0
- package/Screens/ColorPalettes/Translations.js +24 -0
- package/Screens/ColorPalettes/index.js +20 -0
- package/Screens/ConfigurationTypeEditor/Containers/Edit.js +83 -0
- package/Screens/ConfigurationTypeEditor/Containers/List.js +64 -0
- package/Screens/ConfigurationTypeEditor/Reducers/Actions.js +137 -0
- package/Screens/ConfigurationTypeEditor/Reducers/Reducer.js +122 -0
- package/Screens/ConfigurationTypeEditor/Screen.js +150 -0
- package/Screens/ConfigurationTypeEditor/Styles.scss +0 -0
- package/Screens/ConfigurationTypeEditor/Translations.js +14 -0
- package/Screens/ConfigurationTypeEditor/index.js +3 -0
- package/Screens/ConfigurationVariants/Containers/Edit.js +127 -0
- package/Screens/ConfigurationVariants/Containers/List.js +33 -0
- package/Screens/ConfigurationVariants/Containers/Styles.scss +13 -0
- package/Screens/ConfigurationVariants/Reducers/Actions.js +25 -0
- package/Screens/ConfigurationVariants/Reducers/Reducer.js +66 -0
- package/Screens/ConfigurationVariants/Screen.js +28 -0
- package/Screens/ConfigurationVariants/Translations.js +31 -0
- package/Screens/ConfigurationVariants/index.js +20 -0
- package/Screens/ConfigurationWorkflowStatus/Containers/Edit.js +81 -0
- package/Screens/ConfigurationWorkflowStatus/Containers/List.js +259 -0
- package/Screens/ConfigurationWorkflowStatus/Reducers/Actions.js +119 -0
- package/Screens/ConfigurationWorkflowStatus/Reducers/Reducer.js +103 -0
- package/Screens/ConfigurationWorkflowStatus/Screen.js +100 -0
- package/Screens/ConfigurationWorkflowStatus/Styles.scss +0 -0
- package/Screens/ConfigurationWorkflowStatus/Translations.js +43 -0
- package/Screens/ConfigurationWorkflowStatus/index.js +22 -0
- package/Screens/ConfigurationWorkflowStatus/initServices.js +12 -0
- package/Screens/Creator/Components/BaseConfigurationEditor.js +241 -0
- package/Screens/Creator/Components/CheckData/ApiCalls.js +43 -0
- package/Screens/Creator/Components/CheckData/CheckData.js +332 -0
- package/Screens/Creator/Components/CheckData/Constants.js +58 -0
- package/Screens/Creator/Components/CheckData/Translations.js +34 -0
- package/Screens/Creator/Components/ComponentEditor.js +245 -0
- package/Screens/Creator/Components/ConfiguratorQuickView.js +102 -0
- package/Screens/Creator/Components/OptionPriceEditor.js +167 -0
- package/Screens/Creator/Components/OptionclassificationEditor.js +572 -0
- package/Screens/Creator/Components/Rules/Containers/Edit.js +276 -0
- package/Screens/Creator/Components/Rules/Containers/List.js +45 -0
- package/Screens/Creator/Components/Rules/Containers/RuleForms/AdditionalOption.js +88 -0
- package/Screens/Creator/Components/Rules/Containers/RuleForms/AttributeValueGroupAutoSwitch.js +88 -0
- package/Screens/Creator/Components/Rules/Containers/RuleForms/DefaultOption.js +84 -0
- package/Screens/Creator/Components/Rules/Containers/RuleForms/ItemAttributeMatch.js +84 -0
- package/Screens/Creator/Components/Rules/Containers/RuleForms/ItemAttributeMaxSum.js +76 -0
- package/Screens/Creator/Components/Rules/Containers/RuleForms/OptionClassificationMaxAmount.js +78 -0
- package/Screens/Creator/Components/Rules/Containers/RuleForms/OptionClassificationMinAmount.js +78 -0
- package/Screens/Creator/Components/Rules/Containers/RuleForms/OptionDependency.js +88 -0
- package/Screens/Creator/Components/Rules/Containers/RuleForms/OptionExclusion.js +88 -0
- package/Screens/Creator/Components/Rules/Containers/RuleForms/OptionMaxAmount.js +78 -0
- package/Screens/Creator/Components/Rules/Containers/RuleForms/RuleForm.js +240 -0
- package/Screens/Creator/Components/Rules/Containers/RuleForms/index.js +42 -0
- package/Screens/Creator/Components/Rules/Styles.scss +38 -0
- package/Screens/Creator/Components/Rules/Translations.js +178 -0
- package/Screens/Creator/Components/Rules/index.js +80 -0
- package/Screens/Creator/Components/ShowPreviewErrorDialog.js +59 -0
- package/Screens/Creator/Components/VisualizationAndMediaData/ApiCalls.js +43 -0
- package/Screens/Creator/Components/VisualizationAndMediaData/Components/ConfirmDelete.js +68 -0
- package/Screens/Creator/Components/VisualizationAndMediaData/Components/EditableText.js +144 -0
- package/Screens/Creator/Components/VisualizationAndMediaData/Components/Image.js +125 -0
- package/Screens/Creator/Components/VisualizationAndMediaData/Components/ImageEditTools.js +242 -0
- package/Screens/Creator/Components/VisualizationAndMediaData/Components/PathStructure.js +118 -0
- package/Screens/Creator/Components/VisualizationAndMediaData/Components/ViewEdit.js +102 -0
- package/Screens/Creator/Components/VisualizationAndMediaData/Translations.js +82 -0
- package/Screens/Creator/Components/VisualizationAndMediaData/VisualizationAndMediaData.js +1098 -0
- package/Screens/Creator/Components/VisualizationAndMediaData/dev.js +385 -0
- package/Screens/Creator/Components/VisualizationAndMediaData/devImages/component_1.png +0 -0
- package/Screens/Creator/Components/VisualizationAndMediaData/devImages/option_1.png +0 -0
- package/Screens/Creator/Components/VisualizationAndMediaData/devImages/option_3.png +0 -0
- package/Screens/Creator/Components/VisualizationAndMediaData/devImages/option_3_fullsize.jpg +0 -0
- package/Screens/Creator/Components/VisualizationAndMediaData/devImages/view_1.png +0 -0
- package/Screens/Creator/Components/VisualizationAndMediaData/devImages/view_1_option_1.png +0 -0
- package/Screens/Creator/Components/VisualizationAndMediaData/devImages/view_1_option_3.png +0 -0
- package/Screens/Creator/Components/VisualizationAndMediaData/devImages/view_2_option_1.png +0 -0
- package/Screens/Creator/Components/VisualizationAndMediaData/devImages/view_2_option_3.png +0 -0
- package/Screens/Creator/Components/VisualizationAndMediaData/index.js +15 -0
- package/Screens/Creator/Containers/Edit.js +525 -0
- package/Screens/Creator/Containers/List.js +48 -0
- package/Screens/Creator/Reducers/Actions.js +35 -0
- package/Screens/Creator/Reducers/ConfigurationActions.js +443 -0
- package/Screens/Creator/Reducers/ConfigurationReducer.js +338 -0
- package/Screens/Creator/Reducers/CreatorReducer.js +42 -0
- package/Screens/Creator/Reducers/Rules/Actions.js +134 -0
- package/Screens/Creator/Reducers/Rules/Reducer.js +290 -0
- package/Screens/Creator/Screen.js +30 -0
- package/Screens/Creator/Translations.js +136 -0
- package/Screens/Creator/index.js +25 -0
- package/Screens/CurrentClient/Containers/Edit.js +128 -0
- package/Screens/CurrentClient/Reducers/Actions.js +42 -0
- package/Screens/CurrentClient/Reducers/Reducer.js +95 -0
- package/Screens/CurrentClient/Screen.js +15 -0
- package/Screens/CurrentClient/Translations.js +10 -0
- package/Screens/CurrentClient/index.js +20 -0
- package/Screens/Dashboard/Screen.js +50 -0
- package/Screens/Dashboard/Styles.scss +3 -0
- package/Screens/Dashboard/Translations.js +14 -0
- package/Screens/DefaultClient/Containers/Edit.js +141 -0
- package/Screens/DefaultClient/Reducers/Actions.js +42 -0
- package/Screens/DefaultClient/Reducers/Reducer.js +108 -0
- package/Screens/DefaultClient/Screen.js +15 -0
- package/Screens/DefaultClient/Translations.js +10 -0
- package/Screens/DefaultClient/index.js +20 -0
- package/Screens/Demo/Screen.js +164 -0
- package/Screens/Demo/Styles.scss +3 -0
- package/Screens/Demo/index.js +15 -0
- package/Screens/DesignProductionMethods/Containers/Edit.js +292 -0
- package/Screens/DesignProductionMethods/Containers/List.js +53 -0
- package/Screens/DesignProductionMethods/Reducers/Actions.js +29 -0
- package/Screens/DesignProductionMethods/Reducers/DesignProductionMethodsReducer.js +160 -0
- package/Screens/DesignProductionMethods/Screen.js +30 -0
- package/Screens/DesignProductionMethods/Translations.js +74 -0
- package/Screens/DesignProductionMethods/index.js +20 -0
- package/Screens/DesignTemplateEditor/Containers/List.js +78 -0
- package/Screens/DesignTemplateEditor/Reducers/Actions.js +16 -0
- package/Screens/DesignTemplateEditor/Reducers/Reducer.js +22 -0
- package/Screens/DesignTemplateEditor/Screen.js +22 -0
- package/Screens/DesignTemplateEditor/Translations.js +16 -0
- package/Screens/DesignTemplateEditor/index.js +20 -0
- package/Screens/Designer/Components/ConfiguratorQuickView.js +102 -0
- package/Screens/Designer/Components/DesignDataTransfer.js +426 -0
- package/Screens/Designer/Components/TemplateDefaultList.js +423 -0
- package/Screens/Designer/Components/TemplateList.js +316 -0
- package/Screens/Designer/Containers/Edit.js +346 -0
- package/Screens/Designer/Containers/List.js +46 -0
- package/Screens/Designer/Containers/TemplateList.js +45 -0
- package/Screens/Designer/Reducers/Actions.js +41 -0
- package/Screens/Designer/Reducers/DesignerReducer.js +46 -0
- package/Screens/Designer/Screen.js +28 -0
- package/Screens/Designer/SubScreens/DesignAreas/Components/ColorPalettes.js +451 -0
- package/Screens/Designer/SubScreens/DesignAreas/Components/FormArray.js +260 -0
- package/Screens/Designer/SubScreens/DesignAreas/Components/MaskEditorField/InlineFileInput.js +72 -0
- package/Screens/Designer/SubScreens/DesignAreas/Components/MaskEditorField/MaskEditorCanvas.js +133 -0
- package/Screens/Designer/SubScreens/DesignAreas/Components/MaskEditorField/MaskEditorField.js +330 -0
- package/Screens/Designer/SubScreens/DesignAreas/Components/MaskEditorField/masks/circle.svg +4 -0
- package/Screens/Designer/SubScreens/DesignAreas/Components/MaskEditorField/withFileUpload.js +115 -0
- package/Screens/Designer/SubScreens/DesignAreas/Containers/ConnectedMaskEditorField.js +89 -0
- package/Screens/Designer/SubScreens/DesignAreas/Containers/Edit.js +174 -0
- package/Screens/Designer/SubScreens/DesignAreas/Containers/FormProductionMethods.js +1100 -0
- package/Screens/Designer/SubScreens/DesignAreas/Containers/List.js +50 -0
- package/Screens/Designer/SubScreens/DesignAreas/Reducers/Actions.js +106 -0
- package/Screens/Designer/SubScreens/DesignAreas/Reducers/Reducer.js +318 -0
- package/Screens/Designer/SubScreens/DesignAreas/Screen.js +34 -0
- package/Screens/Designer/SubScreens/DesignAreas/Styles.scss +0 -0
- package/Screens/Designer/SubScreens/DesignAreas/Translations.js +122 -0
- package/Screens/Designer/SubScreens/DesignAreas/Utils/getFreeFormUrl.js +18 -0
- package/Screens/Designer/SubScreens/DesignAreas/Utils/getMaskSrcByType.js +22 -0
- package/Screens/Designer/SubScreens/DesignAreas/Utils/maskTypes.js +12 -0
- package/Screens/Designer/SubScreens/DesignAreas/index.js +18 -0
- package/Screens/Designer/SubScreens/Designviews/Containers/Edit.js +216 -0
- package/Screens/Designer/SubScreens/Designviews/Containers/List.js +50 -0
- package/Screens/Designer/SubScreens/Designviews/Reducers/Actions.js +260 -0
- package/Screens/Designer/SubScreens/Designviews/Reducers/Reducer.js +167 -0
- package/Screens/Designer/SubScreens/Designviews/Screen.js +32 -0
- package/Screens/Designer/SubScreens/Designviews/Translations.js +16 -0
- package/Screens/Designer/SubScreens/Designviews/index.js +18 -0
- package/Screens/Designer/SubScreens/Visualization/ApiCalls.js +77 -0
- package/Screens/Designer/SubScreens/Visualization/Components/AdvancedShapeEditor.js +291 -0
- package/Screens/Designer/SubScreens/Visualization/Components/AreaEditor.js +305 -0
- package/Screens/Designer/SubScreens/Visualization/Components/EntryList.js +78 -0
- package/Screens/Designer/SubScreens/Visualization/Components/ExpansionContainer.js +138 -0
- package/Screens/Designer/SubScreens/Visualization/Components/Three2DEditor.js +802 -0
- package/Screens/Designer/SubScreens/Visualization/Components/VisualizationContainer.js +166 -0
- package/Screens/Designer/SubScreens/Visualization/Components/resources/logo.svg +120 -0
- package/Screens/Designer/SubScreens/Visualization/Components/resources/move.svg +1 -0
- package/Screens/Designer/SubScreens/Visualization/Components/resources/rotate-x.svg +1 -0
- package/Screens/Designer/SubScreens/Visualization/Components/resources/rotate-y.svg +1 -0
- package/Screens/Designer/SubScreens/Visualization/Components/resources/rotate-z.svg +1 -0
- package/Screens/Designer/SubScreens/Visualization/Components/resources/rotate.svg +1 -0
- package/Screens/Designer/SubScreens/Visualization/Components/resources/size.svg +1 -0
- package/Screens/Designer/SubScreens/Visualization/Containers/Edit/Constants.js +12 -0
- package/Screens/Designer/SubScreens/Visualization/Containers/Edit/DataLinks.js +160 -0
- package/Screens/Designer/SubScreens/Visualization/Containers/Edit/Edit.js +995 -0
- package/Screens/Designer/SubScreens/Visualization/Containers/Edit/VisualizationUtils.js +174 -0
- package/Screens/Designer/SubScreens/Visualization/Containers/Edit/calculateBoundingBoxSize.js +77 -0
- package/Screens/Designer/SubScreens/Visualization/Containers/List.js +192 -0
- package/Screens/Designer/SubScreens/Visualization/Screen.js +49 -0
- package/Screens/Designer/SubScreens/Visualization/Translations.js +80 -0
- package/Screens/Designer/SubScreens/Visualization/index.js +13 -0
- package/Screens/Designer/Translations.js +49 -0
- package/Screens/Designer/index.js +21 -0
- package/Screens/DesignerGlobalItemPrices/Containers/Edit.js +131 -0
- package/Screens/DesignerGlobalItemPrices/Containers/List.js +45 -0
- package/Screens/DesignerGlobalItemPrices/Reducers/Actions.js +32 -0
- package/Screens/DesignerGlobalItemPrices/Reducers/Reducer.js +94 -0
- package/Screens/DesignerGlobalItemPrices/Screen.js +32 -0
- package/Screens/DesignerGlobalItemPrices/Translations.js +24 -0
- package/Screens/DesignerGlobalItemPrices/index.js +21 -0
- package/Screens/Font/Containers/Edit.js +66 -0
- package/Screens/Font/Containers/List.js +63 -0
- package/Screens/Font/Reducers/Actions.js +101 -0
- package/Screens/Font/Reducers/Reducer.js +61 -0
- package/Screens/Font/Screen.js +34 -0
- package/Screens/Font/Styles.scss +0 -0
- package/Screens/Font/Translations.js +16 -0
- package/Screens/Font/index.js +20 -0
- package/Screens/Group/Containers/Edit.js +49 -0
- package/Screens/Group/Containers/List.js +39 -0
- package/Screens/Group/Reducers/Actions.js +24 -0
- package/Screens/Group/Reducers/Reducer.js +38 -0
- package/Screens/Group/Screen.js +34 -0
- package/Screens/Group/Styles.scss +0 -0
- package/Screens/Group/Translations.js +18 -0
- package/Screens/Group/index.js +21 -0
- package/Screens/GroupEntry/Containers/Edit.js +62 -0
- package/Screens/GroupEntry/Containers/List.js +39 -0
- package/Screens/GroupEntry/Reducers/Actions.js +24 -0
- package/Screens/GroupEntry/Reducers/Reducer.js +38 -0
- package/Screens/GroupEntry/Screen.js +34 -0
- package/Screens/GroupEntry/Styles.scss +0 -0
- package/Screens/GroupEntry/Translations.js +16 -0
- package/Screens/GroupEntry/index.js +21 -0
- package/Screens/ImageGallery/Containers/Edit.js +125 -0
- package/Screens/ImageGallery/Containers/List.js +297 -0
- package/Screens/ImageGallery/ImageTags/Actions.js +48 -0
- package/Screens/ImageGallery/ImageTags/Container/TagsEdit.js +38 -0
- package/Screens/ImageGallery/ImageTags/Editor.js +68 -0
- package/Screens/ImageGallery/ImageTags/Reducer.js +64 -0
- package/Screens/ImageGallery/ImageTags/TagsActions.js +42 -0
- package/Screens/ImageGallery/ImageTags/TagsEditorPopup.js +92 -0
- package/Screens/ImageGallery/Reducers/Actions.js +134 -0
- package/Screens/ImageGallery/Reducers/Reducer.js +69 -0
- package/Screens/ImageGallery/Screen.js +34 -0
- package/Screens/ImageGallery/Styles.scss +37 -0
- package/Screens/ImageGallery/Translations.js +41 -0
- package/Screens/ImageGallery/index.js +20 -0
- package/Screens/Inspirations/Containers/Edit.js +163 -0
- package/Screens/Inspirations/Containers/InspirationsSubscreen.js +34 -0
- package/Screens/Inspirations/Containers/ItemInspirationsList.js +48 -0
- package/Screens/Inspirations/Containers/List.js +48 -0
- package/Screens/Inspirations/Reducers/Actions.js +159 -0
- package/Screens/Inspirations/Reducers/ItemInspirationsActions.js +25 -0
- package/Screens/Inspirations/Reducers/Reducer.js +78 -0
- package/Screens/Inspirations/Screen.js +108 -0
- package/Screens/Inspirations/Translations.js +27 -0
- package/Screens/Inspirations/index.js +21 -0
- package/Screens/Item/ApiCalls.js +45 -0
- package/Screens/Item/Components/AttributeEditorPopup.js +117 -0
- package/Screens/Item/Components/ConfiguratorQuickView.js +115 -0
- package/Screens/Item/Components/ListItemStatusEditor.js +216 -0
- package/Screens/Item/Components/Styles.scss +327 -0
- package/Screens/Item/Components/Variants/VariantsAutocomplete.js +418 -0
- package/Screens/Item/Components/Variants/VariantsEditor.js +715 -0
- package/Screens/Item/Components/Variants/VariantsEditorDialog.js +210 -0
- package/Screens/Item/Components/Variants/VariantsEditorPopup.js +117 -0
- package/Screens/Item/Components/Variants/VariantsSelection.js +184 -0
- package/Screens/Item/Components/Variants/VariantsSortFilter.js +230 -0
- package/Screens/Item/Containers/Edit.js +600 -0
- package/Screens/Item/Containers/List.js +118 -0
- package/Screens/Item/Containers/Styles.scss +92 -0
- package/Screens/Item/DataStructures/Attributes/Actions.js +54 -0
- package/Screens/Item/DataStructures/Attributes/Editor.js +127 -0
- package/Screens/Item/DataStructures/Attributes/Reducer.js +37 -0
- package/Screens/Item/Reducers/Actions.js +97 -0
- package/Screens/Item/Reducers/ItemReducer.js +102 -0
- package/Screens/Item/Reducers/Variant/Actions.js +24 -0
- package/Screens/Item/Reducers/Variant/Reducer.js +118 -0
- package/Screens/Item/Screen.js +28 -0
- package/Screens/Item/Translations.js +136 -0
- package/Screens/Item/index.js +22 -0
- package/Screens/License/Reducers/Actions.js +60 -0
- package/Screens/License/Reducers/Reducer.js +47 -0
- package/Screens/License/Screen.js +128 -0
- package/Screens/License/Styles.scss +35 -0
- package/Screens/License/Translations.js +18 -0
- package/Screens/License/index.js +21 -0
- package/Screens/Login/Reducers/Actions.js +102 -0
- package/Screens/Login/Reducers/Listener.js +23 -0
- package/Screens/Login/Reducers/Reducer.js +96 -0
- package/Screens/Login/Screen.js +200 -0
- package/Screens/Login/Styles.scss +0 -0
- package/Screens/Login/Translations.js +10 -0
- package/Screens/Login/__tests/LoginScreen.js +242 -0
- package/Screens/Option/Containers/Edit.js +139 -0
- package/Screens/Option/Containers/List.js +66 -0
- package/Screens/Option/Reducers/Actions.js +25 -0
- package/Screens/Option/Reducers/Reducer.js +127 -0
- package/Screens/Option/Screen.js +28 -0
- package/Screens/Option/Translations.js +23 -0
- package/Screens/Option/index.js +20 -0
- package/Screens/OptionPools/Containers/Edit.js +105 -0
- package/Screens/OptionPools/Containers/List.js +33 -0
- package/Screens/OptionPools/Reducers/Actions.js +25 -0
- package/Screens/OptionPools/Reducers/Reducer.js +61 -0
- package/Screens/OptionPools/Screen.js +28 -0
- package/Screens/OptionPools/Translations.js +22 -0
- package/Screens/OptionPools/index.js +20 -0
- package/Screens/Optionclassification/Containers/Edit.js +92 -0
- package/Screens/Optionclassification/Containers/List.js +63 -0
- package/Screens/Optionclassification/Reducers/Actions.js +25 -0
- package/Screens/Optionclassification/Reducers/Reducer.js +64 -0
- package/Screens/Optionclassification/Screen.js +34 -0
- package/Screens/Optionclassification/Styles.scss +0 -0
- package/Screens/Optionclassification/Translations.js +20 -0
- package/Screens/Optionclassification/index.js +20 -0
- package/Screens/PriceTypes/Containers/Edit.js +124 -0
- package/Screens/PriceTypes/Containers/List.js +67 -0
- package/Screens/PriceTypes/Reducers/Actions.js +21 -0
- package/Screens/PriceTypes/Reducers/Reducer.js +83 -0
- package/Screens/PriceTypes/Screen.js +32 -0
- package/Screens/PriceTypes/Translations.js +36 -0
- package/Screens/PriceTypes/index.js +20 -0
- package/Screens/ProductionView/Components/ConfigurationDataSheet.js +199 -0
- package/Screens/ProductionView/Containers/Edit.js +61 -0
- package/Screens/ProductionView/Containers/List.js +124 -0
- package/Screens/ProductionView/Reducers/Actions.js +34 -0
- package/Screens/ProductionView/Reducers/Reducer.js +40 -0
- package/Screens/ProductionView/Screen.js +42 -0
- package/Screens/ProductionView/Styles.scss +59 -0
- package/Screens/ProductionView/Translations.js +26 -0
- package/Screens/ProductionView/index.js +20 -0
- package/Screens/ReceiveOfferRequests/Components/ConfigurationDataSheet.js +280 -0
- package/Screens/ReceiveOfferRequests/Containers/Edit.js +65 -0
- package/Screens/ReceiveOfferRequests/Containers/List.js +117 -0
- package/Screens/ReceiveOfferRequests/Reducers/Actions.js +41 -0
- package/Screens/ReceiveOfferRequests/Reducers/Reducer.js +44 -0
- package/Screens/ReceiveOfferRequests/Screen.js +42 -0
- package/Screens/ReceiveOfferRequests/index.js +21 -0
- package/Screens/Roles/Containers/Edit.js +56 -0
- package/Screens/Roles/Containers/List.js +39 -0
- package/Screens/Roles/Reducers/Actions.js +29 -0
- package/Screens/Roles/Reducers/Reducer.js +46 -0
- package/Screens/Roles/Screen.js +32 -0
- package/Screens/Roles/Translations.js +18 -0
- package/Screens/Roles/index.js +20 -0
- package/Screens/Savedconfigurations/Components/ConfigurationDataSheet.js +300 -0
- package/Screens/Savedconfigurations/Containers/Edit.js +65 -0
- package/Screens/Savedconfigurations/Containers/List.js +210 -0
- package/Screens/Savedconfigurations/Reducers/Actions.js +28 -0
- package/Screens/Savedconfigurations/Reducers/Reducer.js +37 -0
- package/Screens/Savedconfigurations/Screen.js +42 -0
- package/Screens/Savedconfigurations/Styles.scss +38 -0
- package/Screens/Savedconfigurations/Translations.js +63 -0
- package/Screens/Savedconfigurations/index.js +20 -0
- package/Screens/Setting/Containers/Edit.js +171 -0
- package/Screens/Setting/Reducers/Actions.js +69 -0
- package/Screens/Setting/Reducers/Reducer.js +48 -0
- package/Screens/Setting/Screen.js +22 -0
- package/Screens/Setting/Styles.scss +0 -0
- package/Screens/Setting/Translations.js +52 -0
- package/Screens/Setting/index.js +20 -0
- package/Screens/SoftwareUpdates/Reducers/Actions.js +23 -0
- package/Screens/SoftwareUpdates/Reducers/Reducer.js +48 -0
- package/Screens/SoftwareUpdates/Screen.js +103 -0
- package/Screens/SoftwareUpdates/Translations.js +24 -0
- package/Screens/SoftwareUpdates/index.js +21 -0
- package/Screens/Tag/Containers/Edit.js +34 -0
- package/Screens/Tag/Containers/List.js +43 -0
- package/Screens/Tag/Reducers/Actions.js +42 -0
- package/Screens/Tag/Reducers/Reducer.js +38 -0
- package/Screens/Tag/Screen.js +24 -0
- package/Screens/Tag/Styles.scss +0 -0
- package/Screens/Tag/Translations.js +18 -0
- package/Screens/Tag/index.js +20 -0
- package/Screens/TrackingCodes/Containers/Edit.js +60 -0
- package/Screens/TrackingCodes/Containers/List.js +42 -0
- package/Screens/TrackingCodes/Reducers/Actions.js +65 -0
- package/Screens/TrackingCodes/Reducers/Reducer.js +75 -0
- package/Screens/TrackingCodes/Screen.js +28 -0
- package/Screens/TrackingCodes/Translations.js +20 -0
- package/Screens/TrackingCodes/index.js +21 -0
- package/Screens/TranslationFileHandling/Containers/Edit.js +303 -0
- package/Screens/TranslationFileHandling/Containers/List.js +38 -0
- package/Screens/TranslationFileHandling/Reducers/Actions.js +21 -0
- package/Screens/TranslationFileHandling/Reducers/Reducer.js +55 -0
- package/Screens/TranslationFileHandling/Screen.js +32 -0
- package/Screens/TranslationFileHandling/Translations.js +24 -0
- package/Screens/TranslationFileHandling/index.js +21 -0
- package/Screens/User/Containers/Edit.js +58 -0
- package/Screens/User/Containers/List.js +42 -0
- package/Screens/User/Reducers/Actions.js +63 -0
- package/Screens/User/Reducers/Reducer.js +63 -0
- package/Screens/User/Screen.js +24 -0
- package/Screens/User/Styles.scss +3 -0
- package/Screens/User/Translations.js +22 -0
- package/Screens/User/__tests/UserScreen.js +406 -0
- package/Screens/User/index.js +20 -0
- package/Screens/index.js +228 -0
- package/UIComponents/AppBar.js +13 -0
- package/UIComponents/AutoComplete.js +311 -0
- package/UIComponents/Button.js +13 -0
- package/UIComponents/ButtonBase.js +13 -0
- package/UIComponents/Checkbox.js +13 -0
- package/UIComponents/Chip.js +13 -0
- package/UIComponents/ChipInput.js +300 -0
- package/UIComponents/CircularProgress.js +13 -0
- package/UIComponents/ClickAwayListener.js +13 -0
- package/UIComponents/Collapse.js +13 -0
- package/UIComponents/DatePicker.js +63 -0
- package/UIComponents/DateTimePicker.js +63 -0
- package/UIComponents/Dialog.js +75 -0
- package/UIComponents/Drawer.js +13 -0
- package/UIComponents/FlatButton.js +52 -0
- package/UIComponents/FloatingActionButton.js +23 -0
- package/UIComponents/FontIcon.js +13 -0
- package/UIComponents/FormControl.js +13 -0
- package/UIComponents/FormControlLabel.js +13 -0
- package/UIComponents/Grow.js +13 -0
- package/UIComponents/IconButton.js +13 -0
- package/UIComponents/IconMenu.js +204 -0
- package/UIComponents/InlineHelp/index.js +109 -0
- package/UIComponents/Input.js +13 -0
- package/UIComponents/InputAdornment.js +13 -0
- package/UIComponents/InputLabel.js +13 -0
- package/UIComponents/LinearProgress.js +13 -0
- package/UIComponents/Link.js +44 -0
- package/UIComponents/List.js +13 -0
- package/UIComponents/ListItem.js +13 -0
- package/UIComponents/ListItemIcon.js +13 -0
- package/UIComponents/ListItemText.js +13 -0
- package/UIComponents/Menu.js +13 -0
- package/UIComponents/MenuItem.js +13 -0
- package/UIComponents/MenuList.js +13 -0
- package/UIComponents/Pagination.js +170 -0
- package/UIComponents/Paper.js +13 -0
- package/UIComponents/Popper.js +13 -0
- package/UIComponents/RadioButton/RadioButton.js +13 -0
- package/UIComponents/RadioButton/RadioGroup.js +13 -0
- package/UIComponents/RadioButton/index.js +23 -0
- package/UIComponents/RaisedButton.js +49 -0
- package/UIComponents/SelectField.js +123 -0
- package/UIComponents/Snackbar.js +13 -0
- package/UIComponents/Table/Table.js +208 -0
- package/UIComponents/Table/TableBody.js +119 -0
- package/UIComponents/Table/TableCell.js +13 -0
- package/UIComponents/Table/TableFooter.js +13 -0
- package/UIComponents/Table/TableHead.js +108 -0
- package/UIComponents/Table/TableHeadColumn.js +13 -0
- package/UIComponents/Table/TableRow.js +74 -0
- package/UIComponents/Table/TableRowColumn.js +13 -0
- package/UIComponents/Table/index.js +63 -0
- package/UIComponents/TableSortLabel.js +13 -0
- package/UIComponents/Tabs/Tab.js +13 -0
- package/UIComponents/Tabs/Tabs.js +13 -0
- package/UIComponents/Tabs/index.js +23 -0
- package/UIComponents/TextField.js +13 -0
- package/UIComponents/TimePicker.js +67 -0
- package/UIComponents/Toggle.js +13 -0
- package/UIComponents/Toolbar.js +13 -0
- package/UIComponents/Tooltip.js +19 -0
- package/UIComponents/Typography.js +13 -0
- package/UIComponents/icons/AccountCircleIcon.js +13 -0
- package/UIComponents/icons/AddCircleOutlineIcon.js +13 -0
- package/UIComponents/icons/AddIcon.js +13 -0
- package/UIComponents/icons/ArrowBackIcon.js +13 -0
- package/UIComponents/icons/CheckmarkIcon.js +13 -0
- package/UIComponents/icons/CloseIcon.js +13 -0
- package/UIComponents/icons/DeleteForeverIcon.js +13 -0
- package/UIComponents/icons/DeleteIcon.js +13 -0
- package/UIComponents/icons/ErrorIcon.js +13 -0
- package/UIComponents/icons/ExpandLessIcon.js +13 -0
- package/UIComponents/icons/ExpandMoreIcon.js +13 -0
- package/UIComponents/icons/FolderIcon.js +13 -0
- package/UIComponents/icons/ForwardIcon.js +13 -0
- package/UIComponents/icons/InfoIcon.js +13 -0
- package/UIComponents/icons/InfoOutlineIcon.js +13 -0
- package/UIComponents/icons/LanguageIcon.js +13 -0
- package/UIComponents/icons/LaunchIcon.js +13 -0
- package/UIComponents/icons/MenuIcon.js +13 -0
- package/UIComponents/icons/PriceIcon.js +13 -0
- package/UIComponents/icons/ReorderIcon.js +13 -0
- package/UIComponents/icons/SearchIcon.js +13 -0
- package/UIComponents/icons/SettingsIcon.js +13 -0
- package/UIComponents/icons/SortIcon.js +13 -0
- package/UIComponents/icons/TranslateIcon.js +13 -0
- package/UIComponents/icons/UpdateIcon.js +13 -0
- package/UIComponents/icons/ViewListIcon.js +13 -0
- package/UIComponents/icons/ZoomResetIcon.js +13 -0
- package/Utils/Async/Deferred.js +139 -0
- package/Utils/Async/newestRequest.js +55 -0
- package/Utils/Decorators/Observable.js +112 -0
- package/Utils/Dev/RequestApiToken.js +44 -0
- package/Utils/Dev/withStateProps.js +43 -0
- package/Utils/Error/createError.js +34 -0
- package/Utils/Events/pointerEvent.js +114 -0
- package/Utils/FunDraw/createMask.js +126 -0
- package/Utils/FunDraw/funDraw.js +561 -0
- package/Utils/FunDraw/movableObject.js +207 -0
- package/Utils/Function/sendMessage.js +22 -0
- package/Utils/HOCs/AsyncProps.js +123 -0
- package/Utils/HOCs/LocalState.js +107 -0
- package/Utils/HOCs/RemappedProps.js +32 -0
- package/Utils/Request/lazyFetch.js +109 -0
- package/Utils/Request/pathParams.js +21 -0
- package/Utils/Test/provideStore.js +30 -0
- package/Utils/Test/wrapperSelectors.js +22 -0
- package/default.js +19 -0
- package/dev.js +61 -0
- package/index.js +18 -0
- package/package.json +40 -103
- package/scripts/getDefaultWebpackConfig.js +1 -1
- package/src/App/Main.js +1 -2
- package/src/App/Styles.scss +185 -185
- package/src/Components/FormFragments/File.js +4 -2
- package/src/Components/FormFragments/IntlInput.js +2 -5
- package/src/Components/Menu.js +9 -1
- package/src/Components/Styles.scss +113 -113
- package/src/Components/Translations.js +4 -2
- package/src/Screens/Assemblypointeditor/Components/Styles.scss +58 -58
- package/src/Screens/Assemblypointeditor/Styles.scss +37 -37
- package/src/Screens/Creator/Components/ComponentEditor.js +9 -5
- package/src/Screens/Creator/Components/VisualizationAndMediaData/Components/EditableText.js +1 -1
- package/src/Screens/Creator/Components/VisualizationAndMediaData/Components/Image.js +1 -1
- package/src/Screens/Creator/Components/VisualizationAndMediaData/Components/ImageEditTools.js +1 -1
- package/src/Screens/Creator/Components/VisualizationAndMediaData/Translations.js +3 -3
- package/src/Screens/Creator/Components/VisualizationAndMediaData/VisualizationAndMediaData.js +1 -1
- package/src/Screens/Dashboard/Styles.scss +2 -2
- package/src/Screens/Designer/Components/DesignDataTransfer.js +1 -1
- package/src/Screens/Designer/Components/TemplateDefaultList.js +1 -2
- package/src/Screens/Designer/SubScreens/Designviews/Containers/Edit.js +5 -9
- package/src/Screens/Designer/Translations.js +1 -1
- package/src/Screens/Inspirations/Containers/Edit.js +1 -1
- package/src/Screens/Inspirations/Screen.js +6 -0
- package/src/Screens/Item/Reducers/Actions.js +73 -73
- package/src/Screens/Item/Translations.js +4 -2
- package/src/UIComponents/Table/TableHead.js +1 -2
- package/src/dev.js +3 -3
- package/babel.config.js +0 -1
- package/public/favicon.ico +0 -0
- package/scripts/cpPath.js +0 -152
- package/scripts/updateLocalPackages.js +0 -68
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = exports.VisualizationContainer = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
|
|
14
|
+
var _withStyles = _interopRequireDefault(require("@material-ui/core/styles/withStyles"));
|
|
15
|
+
|
|
16
|
+
var _cssElementQueries = require("css-element-queries");
|
|
17
|
+
|
|
18
|
+
var _VisualizationInterface = require("redhotmagma-visualization/VisualizationInterface");
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
22
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
23
|
+
|
|
24
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
25
|
+
|
|
26
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
27
|
+
|
|
28
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
29
|
+
|
|
30
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
|
+
|
|
32
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
33
|
+
|
|
34
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
35
|
+
|
|
36
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
37
|
+
|
|
38
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
39
|
+
|
|
40
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
41
|
+
|
|
42
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
43
|
+
|
|
44
|
+
var styles = function styles() {
|
|
45
|
+
return {
|
|
46
|
+
visualizationContainer: {
|
|
47
|
+
width: 500,
|
|
48
|
+
height: 400
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Component for the Three.js visualization
|
|
54
|
+
* Responsibilities:
|
|
55
|
+
* - renders the placeholder for the THREE.js visualization
|
|
56
|
+
* - updates the size of the visualization component on resize events
|
|
57
|
+
*/
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
var VisualizationContainer = /*#__PURE__*/function (_React$Component) {
|
|
61
|
+
_inherits(VisualizationContainer, _React$Component);
|
|
62
|
+
|
|
63
|
+
var _super = _createSuper(VisualizationContainer);
|
|
64
|
+
|
|
65
|
+
function VisualizationContainer() {
|
|
66
|
+
var _this;
|
|
67
|
+
|
|
68
|
+
_classCallCheck(this, VisualizationContainer);
|
|
69
|
+
|
|
70
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
71
|
+
args[_key] = arguments[_key];
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
75
|
+
|
|
76
|
+
_defineProperty(_assertThisInitialized(_this), "onSizeChange", function (size) {
|
|
77
|
+
var three = _this.props.three;
|
|
78
|
+
three.setSize(size);
|
|
79
|
+
|
|
80
|
+
if (three.updateZoom) {
|
|
81
|
+
three.updateZoom();
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
_defineProperty(_assertThisInitialized(_this), "containerRef", /*#__PURE__*/_react["default"].createRef());
|
|
86
|
+
|
|
87
|
+
return _this;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
_createClass(VisualizationContainer, [{
|
|
91
|
+
key: "componentDidMount",
|
|
92
|
+
value: function componentDidMount() {
|
|
93
|
+
this.initialize();
|
|
94
|
+
}
|
|
95
|
+
}, {
|
|
96
|
+
key: "componentDidUpdate",
|
|
97
|
+
value: function componentDidUpdate(prevProps) {
|
|
98
|
+
this.initialize(prevProps);
|
|
99
|
+
}
|
|
100
|
+
}, {
|
|
101
|
+
key: "initialize",
|
|
102
|
+
value: function initialize() {
|
|
103
|
+
var prevProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
104
|
+
var three = this.props.three;
|
|
105
|
+
|
|
106
|
+
if (!three) {
|
|
107
|
+
// eslint-disable-next-line no-console
|
|
108
|
+
console.warn('Three instance is not provided! Visualization will not be rendered.');
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
if (three === prevProps.three) {
|
|
113
|
+
// eslint-disable-next-line no-console
|
|
114
|
+
console.info('Three instance is the same, skipping initialization.');
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
this.resizeSensor = new _cssElementQueries.ResizeSensor(this.containerRef.current, this.onSizeChange);
|
|
119
|
+
|
|
120
|
+
if (three.isInitialized()) {
|
|
121
|
+
// Three is already initialized, just add it to the current container instead of reloading it completely
|
|
122
|
+
three.addToContainer(this.containerRef.current);
|
|
123
|
+
} else {
|
|
124
|
+
three.init(this.containerRef.current);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}, {
|
|
128
|
+
key: "componentWillUnmount",
|
|
129
|
+
value: function componentWillUnmount() {
|
|
130
|
+
if (this.resizeSensor) {
|
|
131
|
+
this.resizeSensor.detach();
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}, {
|
|
135
|
+
key: "render",
|
|
136
|
+
value: function render() {
|
|
137
|
+
var _this$props = this.props,
|
|
138
|
+
classes = _this$props.classes,
|
|
139
|
+
className = _this$props.className;
|
|
140
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
141
|
+
className: "".concat(classes.visualizationContainer, " ").concat(className || ''),
|
|
142
|
+
ref: this.containerRef
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
}]);
|
|
146
|
+
|
|
147
|
+
return VisualizationContainer;
|
|
148
|
+
}(_react["default"].Component);
|
|
149
|
+
|
|
150
|
+
exports.VisualizationContainer = VisualizationContainer;
|
|
151
|
+
|
|
152
|
+
_defineProperty(VisualizationContainer, "propTypes", {
|
|
153
|
+
three: _propTypes["default"].instanceOf(_VisualizationInterface.VisualizationInterface).isRequired,
|
|
154
|
+
classes: _propTypes["default"].object,
|
|
155
|
+
className: _propTypes["default"].string
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
_defineProperty(VisualizationContainer, "defaultProps", {
|
|
159
|
+
classes: {}
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
var _default = (0, _withStyles["default"])(styles, {
|
|
163
|
+
name: 'VisualizationContainer'
|
|
164
|
+
})(VisualizationContainer);
|
|
165
|
+
|
|
166
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 23.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.1" id="Ebene_1_xA0_Bild_1_" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
4
|
+
x="0px" y="0px" viewBox="0 0 1000 279" style="enable-background:new 0 0 1000 279;" xml:space="preserve">
|
|
5
|
+
<defs>
|
|
6
|
+
<mask id="Mask">
|
|
7
|
+
<rect width="1000" height="279" fill="white"/>
|
|
8
|
+
<path class="st0" d="M113,7c-4.2,0.2-6.9,3.3-9.7,5.6c-32.5,27.3-59.8,59-79.4,97c-7.3,14.1-12.3,29-14.8,44.8
|
|
9
|
+
c-0.1,0.9,0.1,2.1-1.1,2.6C8,107.8,8,58.7,7.9,9.5c0-3,0.6-3.6,3.6-3.6C45.3,6,79.2,6,113,6C113,6.3,113,6.7,113,7z"/>
|
|
10
|
+
<path class="st0" d="M807.4,197.9c0,8.3-0.1,16.6,0,25c0.1,5-1.7,9.1-5.1,12.6c-4.2,4.3-9.3,5.7-15.1,3.8
|
|
11
|
+
c-5.8-1.8-7.9-6.5-8.2-11.9c-0.4-7.6-0.2-15.3-0.2-22.9c0-10.6-0.1-21.3,0-31.9c0.1-10.7,4.8-16.3,13.3-16.3
|
|
12
|
+
c8.8,0,15.2,7.1,15.2,16.8C807.4,181.3,807.4,189.6,807.4,197.9z"/>
|
|
13
|
+
<path class="st0" d="M353.9,199.4c0-9.8-0.3-19.7,0.1-29.5c0.3-6.5,4.7-10.9,10.2-12c6.5-1.2,11.9,1.2,15.3,6.9
|
|
14
|
+
c1.9,3.2,3.2,6.6,3.2,10.4c0.1,17,0.2,34,0,51c-0.1,8-7.3,14.8-15.2,15c-8.2,0.2-13.2-4.5-13.6-13.8c-0.4-9.3-0.1-18.6-0.1-28
|
|
15
|
+
C353.9,199.4,353.9,199.4,353.9,199.4z"/>
|
|
16
|
+
<path class="st0" d="M738.2,194c0,12.2,0.1,23.4,0,34.5c0,4.1-6.4,9.6-12.6,11.2c-9.7,2.5-16.9-2.7-17.6-12.7
|
|
17
|
+
c-0.6-9,2.4-16.4,10.2-21.3C724.3,201.6,730.9,198.1,738.2,194z"/>
|
|
18
|
+
<path class="st0" d="M982.8,194.1c0,10.3,0,19.6,0,28.9c0,8.9-3.9,14-12.4,16.4c-9.4,2.7-16.3-1.6-17.7-11.2
|
|
19
|
+
c-1.2-8.5,1.1-15.9,8.1-21.3C967.3,201.9,975,198.5,982.8,194.1z"/>
|
|
20
|
+
<path class="st0" d="M299.4,192.8c-3.8-0.5-9.8,2-12.6-1c-2.7-2.9-0.6-8.9-0.8-13.5c-0.1-3.6,0-7.3,0.9-10.9
|
|
21
|
+
c1.7-6.9,6.1-10.5,13-10.7c7.3-0.1,12.3,3.2,14,10.1c1.9,7.8,0.7,15.9,0.9,23.8c0.1,2.2-1.7,2.1-3.2,2.1
|
|
22
|
+
C307.8,192.9,304,192.8,299.4,192.8z"/>
|
|
23
|
+
<path class="st0" d="M494.9,199.2c0-9.7-0.3-19.3,0.1-29c0.3-7.4,4.9-11.7,11.9-12.5c10.6-1.2,16.7,3.7,17,14.5
|
|
24
|
+
c0.3,17.6,0.3,35.3,0,53c-0.2,9.7-5.5,14.8-14.4,15.1c-9.1,0.3-14.5-4.5-14.8-13.7c-0.2-9.2-0.1-18.3-0.1-27.5
|
|
25
|
+
C494.7,199.2,494.8,199.2,494.9,199.2z"/>
|
|
26
|
+
</mask>
|
|
27
|
+
</defs>
|
|
28
|
+
<style type="text/css">
|
|
29
|
+
.st0{fill:black;}
|
|
30
|
+
.st1{fill:#F26B74;}
|
|
31
|
+
.st2{fill:#EC1C29;}
|
|
32
|
+
.st3{fill:#F59197;}
|
|
33
|
+
.st4{fill:#D9DCDC;}
|
|
34
|
+
.st5{fill:#B3B8B8;}
|
|
35
|
+
.st6{fill:#EC1C29;}
|
|
36
|
+
.st7{fill:#F48289;}
|
|
37
|
+
.st8{fill:#F6989D;}
|
|
38
|
+
.st9{fill:#EE333F;}
|
|
39
|
+
.st10{fill:#F04954;}
|
|
40
|
+
</style>
|
|
41
|
+
<g>
|
|
42
|
+
|
|
43
|
+
<path class="st1" d="M113,7c-4.1,8.3-9.2,16.1-13,24.6c-13.5,30.1-11.3,58.7,7.3,85.9c4.2,6.2,8.5,12.3,12.8,18.4
|
|
44
|
+
c-1.4,2.9-4.4,2.7-6.9,3.2c-12.7,2.7-25.6,4-38.3,6.4c-15.6,3.1-27.8,11.2-37.2,23.8c-7.6,10.2-12.6,21.4-12.4,34.4
|
|
45
|
+
c0.1,6.8,1.9,13.1,4.6,19.2c0.8,1.9,2.5,3.7,1,6c-10.1-9.6-15-22-19-34.9c-1.5-5-1.6-10.4-3.9-15.2c0-1.3,0-2.7,0-4
|
|
46
|
+
c0.9-4.7,0.9-9.3,0-14c0-1.3,0-2.7,0-4c3.8-36,22.5-65.1,43.8-93c9.3-12.2,19.5-23.6,30.4-34.3c7.5-7.3,15.2-14.4,23.7-20.6
|
|
47
|
+
C107.9,7.6,110,5.6,113,7z"/>
|
|
48
|
+
|
|
49
|
+
<path class="st2" d="M787,280c-1.5-1.6-3.6-1.4-5.4-2c-7.7-2.8-11.9-8.2-12.4-16.4c-0.1-1.7-0.3-3.8,2.3-3.3c2.2,0.4,6-2.1,6.4,2.1
|
|
50
|
+
c0.9,8.1,7,11.6,16.2,10.7c7.9-0.8,12.8-5.6,13.2-13.6c0.3-5.3,0.1-10.6,0.1-17c-5.7,5.2-11.4,8-18.5,7.7
|
|
51
|
+
c-8.9-0.4-14.7-4.5-17.3-13c-1-3.2-1.5-6.5-1.5-9.8c0-18.6-0.2-37.3,0-55.9c0.2-15.3,10.8-23.4,25.8-20.3c4.4,0.9,7.6,3.7,10.6,6.7
|
|
52
|
+
c1.2-0.8,1.1-1.7,1-2.5c-0.7-4.4,2-4.1,5-4.3c3.9-0.3,3.8,1.8,3.8,4.6c0,33.8,0,67.6-0.1,101.4c0,14.5-7.5,23-21,24.3
|
|
53
|
+
c-2.3,1-4.9-0.4-7.1,0.9C787.7,280,787.3,280,787,280z" mask="url(#Mask)"/>
|
|
54
|
+
<path class="st3" d="M8,161c1.6,4.7,1.6,9.3,0,14C8,170.3,8,165.7,8,161z"/>
|
|
55
|
+
<path class="st4" d="M996.8,240.2c0.4-0.1,0.8-0.1,1.2-0.2c0,2.7,0,5.3,0,8c-0.3,0-0.7,0-1,0C995.2,245.4,995.1,242.8,996.8,240.2z"/>
|
|
56
|
+
<path class="st5" d="M788,280c2.2-1.9,4.7-0.7,7.1-0.9c0,0.3-0.1,0.6-0.1,0.9C792.7,280,790.3,280,788,280z"/>
|
|
57
|
+
<path class="st6" d="M31,229c-1.8-6-5.2-11.3-6.2-17.7c-2.6-16.1,2.2-30,12.1-42.5c7.4-9.1,16.7-15.5,28.1-17.6
|
|
58
|
+
c9.8-1.9,19.8-1,29.7,1.1c11.2,2.4,22.2,5.8,33.5,7.5c2.8,0.4,5.6,0.5,8.4,0.9c0.5,0.1,1,0.3,1.5,0.6c4.4,5.5,6.3,12.1,6.9,18.9
|
|
59
|
+
c1.5,16.9-1.5,32.9-11.7,46.8c-6.5,8.8-14.6,15.8-25.1,19.8c-0.5,0.1-1,0.3-1.4,0.4c-2.9,0.9-5.9,1.6-8.8,2.6
|
|
60
|
+
C71.8,255.4,49.2,249.2,31,229z"/>
|
|
61
|
+
<path class="st2" d="M850.2,156.4c12.6-11.6,27.9-11.3,35.4,2.7c4.3-5,9-9.3,15.9-10.5c12.1-2.2,21.2,4.2,22.7,16.3
|
|
62
|
+
c1.2,9.8,0.6,19.6,0.7,29.4c0.1,16.5-0.1,33,0.1,49.5c0,3.5-1.1,4.5-4.5,4.5c-3.4,0-4.5-0.8-4.5-4.4c0.2-22.7,0.1-45.3,0.1-68
|
|
63
|
+
c0-2-0.1-4-0.1-6c-0.4-9.3-4.7-13.9-12.8-13.8c-8.3,0.2-15.8,7.1-15.8,14.9c-0.1,24.2-0.1,48.3,0.1,72.5c0,3.7-1,4.7-4.7,4.8
|
|
64
|
+
c-3.9,0-4.2-1.7-4.2-4.8c0.1-23,0.1-46,0-69c0-1.7,0-3.3-0.1-5c-0.6-9-5.3-13.6-13.3-13.4c-7,0.2-15.6,7.2-15.4,14.6
|
|
65
|
+
c0.7,24,0.2,48,0.3,72c0,3.1,0.5,5.6-4.4,5.7c-5.1,0.1-4.5-2.7-4.5-5.9c0-29.2,0-58.3,0-87.5c0-2.8-1-5.8,4.1-5.8
|
|
66
|
+
c4.9,0,5,2.4,4.7,5.8C849.9,155.4,850,155.7,850.2,156.4z" mask="url(#Mask)"/>
|
|
67
|
+
<path class="st2" d="M605.2,156.5c15.8-12,26.7-11.2,35.5,2.7c1.6-1.7,3-3.5,4.7-4.9c6.8-5.9,14.6-7.7,23.2-4.5
|
|
68
|
+
c8.1,3,11,9.6,11.1,17.3c0.3,26,0.1,52,0.2,78c0,3.9-2.5,3-4.7,3.2c-2.8,0.3-4.2-0.4-4.1-3.7c0.1-22.5,0.1-45,0.1-67.5
|
|
69
|
+
c0-3,0-6-0.2-9c-0.5-8.3-6.4-13-14.6-11.7c-8.3,1.3-14.2,8.2-14.2,16.7c0,23.3,0,46.6,0,70c0,2.8,0.6,5.3-4,5.4
|
|
70
|
+
c-4.9,0.1-4.3-2.6-4.3-5.6c0-22.8,0-45.6,0-68.5c0-2-0.1-4-0.4-6c-1.2-8.4-5.8-12.5-13.5-12.1c-8.3,0.5-15.1,7.1-15.1,14.8
|
|
71
|
+
c0,24.2-0.1,48.3,0.1,72.5c0,3.6-0.8,4.9-4.7,4.9c-3.9,0-4.2-1.7-4.2-4.8c0.1-29.5,0.1-59,0-88.5c0-3-0.6-5.7,4.3-5.8
|
|
72
|
+
c5-0.1,4.9,2.5,4.6,5.8C605,155.4,605.1,155.7,605.2,156.5z" mask="url(#Mask)"/>
|
|
73
|
+
<path class="st2" d="M383.4,239c-3.5,4.1-6.2,6.7-9.7,8.3c-13.9,6.1-27.9-2.1-28.4-17.6c-0.7-20.1-0.5-40.3,0-60.4
|
|
74
|
+
c0.2-8,3.8-15.1,12-18.1c9.4-3.5,18-1.6,25.6,7.1c0-6.3,0-11.5,0-16.7c0-9.3,0.1-18.7-0.1-28c-0.1-3.4,1.4-3.9,4.2-3.7
|
|
75
|
+
c2.5,0.1,4.8-0.4,4.8,3.7c-0.1,43.6-0.1,87.3,0,130.9c0,3.3-1.2,3.9-4.1,3.8c-2.7-0.1-4.7-0.3-4.2-3.7
|
|
76
|
+
C383.5,243.2,383.4,241.9,383.4,239z" mask="url(#Mask)"/>
|
|
77
|
+
<path class="st7" d="M137.9,162.1c-0.2-0.1-0.5-0.2-0.7-0.2c-5.9-7.4-10.6-15.6-16-23.3c-0.5-0.7-0.5-1.6-0.3-2.4
|
|
78
|
+
c35-9.7,50.7-36.2,59.9-68.8c4.4,28.2,1.5,56-4,83.6c-0.2,1.1-0.1,2.2-1,3c-10.4,6.7-21.8,9.8-34.2,9.3
|
|
79
|
+
C140.3,163.3,139,162.9,137.9,162.1z" mask="url(#Mask)"/>
|
|
80
|
+
<path class="st2" d="M425,156.5c6.3-6,12.6-9,20.3-8.2c10.7,1.2,17.2,7.5,17.4,18.4c0.4,26.2,0.1,52.3,0.2,78.5
|
|
81
|
+
c0,4.5-3.2,2.6-5.3,3c-2.9,0.5-3.6-0.8-3.6-3.6c0.1-22.8,0.1-45.7,0.1-68.5c0-1.7,0.1-3.3,0-5c-0.5-9.5-4.9-14.3-13.1-14.2
|
|
82
|
+
c-8.9,0.1-15.8,6.5-15.8,15.2c-0.1,20.8,0,41.7,0,62.5c0,2.8-0.3,5.7,0.1,8.5c0.5,4.2-1,5.5-5.2,5.2c-3.2-0.2-3.8-1.3-3.8-4.2
|
|
83
|
+
c0.1-43.5,0.1-87,0-130.5c0-3.8,1.5-4.2,4.7-4.4c3.7-0.2,4.3,1.4,4.3,4.6C424.9,127.7,425,141.5,425,156.5z" mask="url(#Mask)"/>
|
|
84
|
+
<path class="st2" d="M746.8,201.1c0,11.2,0,22.3,0,33.5c0,2.9,0.3,5.1,4,5.6c3.6,0.5,1.7,3.7,1.9,5.7c0.3,2.6-1.8,2.2-3.4,2.2
|
|
85
|
+
c-3.4-0.1-7.2-0.3-8.9-3.4c-2-3.5-3.4-3.2-6.2-1.1c-3,2.4-6.8,3.6-10.6,4.2c-13,2.2-21.8-3.8-24-17c-2.2-13.3,1.5-24.5,13.2-32
|
|
86
|
+
c6.6-4.2,13.6-7.7,20.5-11.3c3.4-1.8,5.2-4.1,4.7-8.3c-0.4-3.4,0.1-7-0.1-10.5c-0.4-7.5-4-11.2-11-11.7c-8.1-0.6-12.7,2.6-14.1,10
|
|
87
|
+
c-0.5,2.8-1.1,5.7-0.8,8.4c0.5,4.3-1.6,4.7-5.1,4.8c-4.3,0.2-4-2.4-3.8-5.1c0.1-2,0.3-4,0.5-6c2-17.5,18.5-26.1,34.2-17.8
|
|
88
|
+
c6.9,3.6,8.8,10.1,8.9,17.2C747,179.4,746.8,190.3,746.8,201.1z" mask="url(#Mask)"/>
|
|
89
|
+
<path class="st2" d="M996.8,240.2c0.1,2.6,0.1,5.2,0.2,7.8c-5.9,0.3-11.5,0.2-14.2-6.9c-5.5,3.8-11.1,6.8-17.8,7
|
|
90
|
+
c-11.3,0.3-18.9-5-20.6-16.1c-2.1-13.9-0.1-25.5,15-34.5c6.5-3.9,13.3-7.5,20.1-11.1c2.7-1.4,3.7-3.4,3.5-6.5
|
|
91
|
+
c-0.4-4.3-0.3-8.6-0.7-12.9c-0.6-6.4-3.9-9.4-10.3-10c-7.2-0.7-11.9,1.9-13.9,7.7c-1.2,3.4-1.1,6.9-1.1,10.4c0.1,3.6-0.9,5.2-5,5.1
|
|
92
|
+
c-4.3,0-3.9-2.4-3.8-5.1c0-1,0-2,0-3c0.3-19.2,15.7-29.1,33.5-21.3c7.4,3.2,9.7,9.6,9.7,17.1c0,22,0.1,44-0.1,65.9
|
|
93
|
+
C991.1,238.1,992.3,240.4,996.8,240.2z" mask="url(#Mask)"/>
|
|
94
|
+
<path class="st2" d="M304.4,199.8c-5,0-10,0.1-15,0c-2.5-0.1-3.5,0.6-3.5,3.3c0.2,7.3-0.1,14.7,0.1,22c0.4,9.8,5.1,14.8,13.7,15
|
|
95
|
+
c9.6,0.2,14.9-4.7,15.2-14.5c0.1-2.3,0.3-4.7,0-7c-0.5-4,1-5.2,4.9-5c2.7,0.2,4,0.7,3.8,3.7c-0.3,4.3,0.2,8.6-0.5,13
|
|
96
|
+
c-1.9,11.8-9.8,17.9-23.2,17.8c-12.2,0-20.5-6.8-22.1-17.9c-0.2-1.5-0.4-3-0.4-4.5c0-17.8-0.1-35.6,0-53.5
|
|
97
|
+
c0.2-19.4,18.6-29.9,35.7-20.5c6.3,3.5,8.9,9.3,9.8,16c1.3,9.6,0.4,19.3,0.7,28.9c0.1,2.8-1.4,3.3-3.7,3.2
|
|
98
|
+
C314.7,199.8,309.6,199.8,304.4,199.8z" mask="url(#Mask)"/>
|
|
99
|
+
<path class="st2" d="M485.8,199.5c0-9.5-0.1-19,0-28.5c0.1-8.9,3.7-16.1,12-19.6c9.4-3.9,18.9-4,27.5,2.3c4.1,3,6.4,7.4,6.7,12.4
|
|
100
|
+
c1.3,21.4,1.7,42.9-0.2,64.3c-1.1,11.7-12,19.2-24.6,18.4c-13.6-0.9-21.2-8.4-21.4-21.3c-0.1-3.8,0-7.7,0-11.5
|
|
101
|
+
C485.8,210.5,485.8,205,485.8,199.5z" mask="url(#Mask)"/>
|
|
102
|
+
<path class="st2" d="M556.8,199.5c0-12-0.2-24,0.1-36c0.1-4.6-1.1-6.3-5.7-5.8c-2.3,0.3-5.4,1.3-5.3-3.4c0-3.8,0.9-5.7,4.9-4.9
|
|
103
|
+
c5.3,1,6.5-1.5,6.1-6.3c-0.4-5.1,0.1-10.3-0.1-15.5c-0.1-3.4,1.9-3.3,4.2-3.2c2.3,0.1,4.8-0.5,4.7,3.3c-0.2,6,0.1,12-0.1,18
|
|
104
|
+
c-0.1,2.8,0.8,4,3.7,3.8c2.2-0.2,4.4,0.2,6.5-0.1c5-0.8,5.5,2,5.2,5.8c-0.1,1.9-0.7,2.8-2.7,2.7c-0.5,0-1,0-1.5,0
|
|
105
|
+
c-11.1,0.3-11.1,0.3-11.1,11.7c0,20.2,0,40.3,0,60.5c0,9.9,1.5,11.2,11.4,10.5c1.6-0.1,4-1,3.8,2.2c-0.1,2.4,1.2,5.7-3.2,5.8
|
|
106
|
+
c-2,0.1-4,0.4-6,0.4c-11.5-0.1-14.8-3.4-14.8-14.9C556.8,222.5,556.8,211,556.8,199.5z" mask="url(#Mask)"/>
|
|
107
|
+
<path class="st8" d="M176,153c0.3-0.7,0.6-1.3,0.8-2c2,1.5,3-0.6,4.2-1.4c9.3-6,16.8-14,23.8-22.5c0.7-0.9,1.5-1.7,2.5-2.9
|
|
108
|
+
c1.4,2.9,0,5.1-0.7,7.3c-9.4,26.8-23.3,51-40.9,73.3c-12.9,16.3-27.8,30.4-47,39.3c-3.7,1.7-7.4,3.9-11.7,3.9
|
|
109
|
+
c-0.6-0.3-0.6-0.7-0.1-1.1l0,0c23-9.7,40.7-25.1,52.1-47.7c6.6-13.2,11.3-27,15.1-41.1C174.6,156.4,174.9,154.6,176,153z" mask="url(#Mask)"/>
|
|
110
|
+
<path class="st2" d="M242.6,163.3c5.5-7.3,12-12.2,20.5-16.2c0,3.2-0.1,5.9,0,8.6c0.1,2-0.7,2.8-2.6,3.5c-11.7,4.6-18,14-18,26.4
|
|
111
|
+
c0,19.3-0.1,38.6,0.1,57.9c0,3.3-0.7,4.7-4.4,4.7c-3.5,0-4.4-1-4.4-4.5c0.1-30,0.1-59.9,0-89.9c0-3.4,0.7-4.6,4.3-4.6
|
|
112
|
+
c3.6,0,4.6,1.4,4.4,4.7C242.4,157.1,242.6,160.2,242.6,163.3z" mask="url(#Mask)"/>
|
|
113
|
+
<path class="st9" d="M120.9,136.2c4.7,6.9,9.4,13.8,14,20.8c1,1.5,1.5,3.2,2.3,4.9c-9.4,0.5-18.3-2.3-27.3-4.4
|
|
114
|
+
c-12.1-2.8-24-5.9-36.7-5.6c-12.5,0.3-22.6,5.5-31.8,13.2c-1.5,1.3-2.5,3.1-4.5,3.8c7.6-11.4,18-19.2,31.3-22.9
|
|
115
|
+
c14.5-4.1,29.6-4.9,44.3-8c2.6-0.5,5.1-1.3,7.6-2C120.4,136,120.6,136.1,120.9,136.2z" mask="url(#Mask)"/>
|
|
116
|
+
<path class="st10" d="M107,247c0,0.4,0,0.7,0.1,1.1c-3,0.9-5.9,2.1-9.1,1.9C100.7,248.2,103.8,247.3,107,247z" mask="url(#Mask)"/>
|
|
117
|
+
<path class="st10" d="M176,153c-0.8,10-4.5,19.3-7.8,28.6c-6.5,18-15.5,34.6-30,47.5c-9.1,8.1-19.1,14.8-31.2,17.8
|
|
118
|
+
c6.4-4.3,13.1-8,19-13.3c16.5-14.6,24-49.4,12.5-69.8c-0.3-0.6-0.4-1.3-0.6-1.9C151.5,163,164.1,159.6,176,153z" mask="url(#Mask)"/>
|
|
119
|
+
</g>
|
|
120
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M11 4h-2l3-3 3 3h-2v2h-2v-2zm2 16h2l-3 3-3-3h2v-2h2v2zm-10-7v2l-3-3 3-3v2h2v2h-2zm18-2v-2l3 3-3 3v-2h-2v-2h2zm-4-3h-10v8h10v-8z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="red" d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"/><path d="M0 0h24v24H0z" fill="none"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="green" d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"/><path d="M0 0h24v24H0z" fill="none"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="blue" d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"/><path d="M0 0h24v24H0z" fill="none"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"/><path d="M0 0h24v24H0z" fill="none"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path transform="scale(0.6) translate(30,6) rotate(90)" d="M7.621 20.621l3.379 3.379h-11v-10.999l3.379 3.378 5.793-5.793 4.242 4.242-5.793 5.793zm2.965-11.449l4.242 4.242 5.793-5.793 3.379 3.378v-10.999h-11l3.379 3.379-5.793 5.793z"/></svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.DEFAULT_CYLINDER_RADIUS = exports.DEFAULT_BASE_SHAPE_WIDTH = exports.DEFAULT_BASE_SHAPE_PADDING = void 0;
|
|
7
|
+
var DEFAULT_BASE_SHAPE_PADDING = 1;
|
|
8
|
+
exports.DEFAULT_BASE_SHAPE_PADDING = DEFAULT_BASE_SHAPE_PADDING;
|
|
9
|
+
var DEFAULT_BASE_SHAPE_WIDTH = 100;
|
|
10
|
+
exports.DEFAULT_BASE_SHAPE_WIDTH = DEFAULT_BASE_SHAPE_WIDTH;
|
|
11
|
+
var DEFAULT_CYLINDER_RADIUS = 100;
|
|
12
|
+
exports.DEFAULT_CYLINDER_RADIUS = DEFAULT_CYLINDER_RADIUS;
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.applyLinks = exports.multiplyToPixel = exports.withChange = exports.calcPathValue = exports.withRatio = void 0;
|
|
7
|
+
|
|
8
|
+
var _get = _interopRequireDefault(require("lodash/get"));
|
|
9
|
+
|
|
10
|
+
var _set = _interopRequireDefault(require("lodash/set"));
|
|
11
|
+
|
|
12
|
+
var _calculateBoundingBoxSize = require("./calculateBoundingBoxSize");
|
|
13
|
+
|
|
14
|
+
var _Constants = require("./Constants");
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Calculates the ratio of the values at the given path in prevData and nextData objects
|
|
20
|
+
* if it's different than 1 it calls fn and returns true,
|
|
21
|
+
* otherwise returns false
|
|
22
|
+
* @param {object} prevData
|
|
23
|
+
* @param {object} nextData
|
|
24
|
+
* @param {string} path
|
|
25
|
+
* @param {function} fn
|
|
26
|
+
* @return {boolean}
|
|
27
|
+
*/
|
|
28
|
+
var withRatio = function withRatio(prevData, nextData, path, fn) {
|
|
29
|
+
var r = (0, _get["default"])(nextData, path) / (0, _get["default"])(prevData, path);
|
|
30
|
+
|
|
31
|
+
if (r && Math.abs(r - 1) > 0.0001) {
|
|
32
|
+
fn(r);
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return false;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Calls fn to change the value at the given path in the given object
|
|
40
|
+
* @param {object} obj
|
|
41
|
+
* @param {string} path
|
|
42
|
+
* @param {function} fn
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
exports.withRatio = withRatio;
|
|
47
|
+
|
|
48
|
+
var calcPathValue = function calcPathValue(obj, path, fn) {
|
|
49
|
+
(0, _set["default"])(obj, path, fn((0, _get["default"])(obj, path)));
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Reads the values at the given path from prevData and nextData objects,
|
|
53
|
+
* if the values are different it calls fn and returns true,
|
|
54
|
+
* otherwise returns false
|
|
55
|
+
* @param {object} prevData
|
|
56
|
+
* @param {object} nextData
|
|
57
|
+
* @param {string} path
|
|
58
|
+
* @param {function} fn
|
|
59
|
+
* @return {boolean}
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
exports.calcPathValue = calcPathValue;
|
|
64
|
+
|
|
65
|
+
var withChange = function withChange(prevData, nextData, path, fn) {
|
|
66
|
+
var nv = (0, _get["default"])(nextData, path);
|
|
67
|
+
var pv = (0, _get["default"])(prevData, path);
|
|
68
|
+
|
|
69
|
+
if (nv !== pv) {
|
|
70
|
+
fn(nv, pv);
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return false;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
exports.withChange = withChange;
|
|
78
|
+
|
|
79
|
+
var multiplyToPixel = function multiplyToPixel(m) {
|
|
80
|
+
return function (v) {
|
|
81
|
+
return Math.round(v * m);
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
exports.multiplyToPixel = multiplyToPixel;
|
|
86
|
+
var sizeMin = 5;
|
|
87
|
+
|
|
88
|
+
var applyLinks = function applyLinks(prevData, nextData) {
|
|
89
|
+
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
90
|
+
var positionRatio = options.positionRatio,
|
|
91
|
+
_options$baseShapePad = options.baseShapePadding,
|
|
92
|
+
baseShapePadding = _options$baseShapePad === void 0 ? _Constants.DEFAULT_BASE_SHAPE_PADDING : _options$baseShapePad; // set min value for area size
|
|
93
|
+
|
|
94
|
+
if ((0, _get["default"])(nextData, 'position.width') <= sizeMin) {
|
|
95
|
+
(0, _set["default"])(nextData, 'position.width', sizeMin);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if ((0, _get["default"])(nextData, 'position.height') <= sizeMin) {
|
|
99
|
+
(0, _set["default"])(nextData, 'position.height', sizeMin);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
withChange(prevData, nextData, 'baseShape.type', function (t) {
|
|
103
|
+
if (t === 'Cylinder') {
|
|
104
|
+
calcPathValue(nextData, 'baseShape.r', function (v) {
|
|
105
|
+
return v || _Constants.DEFAULT_CYLINDER_RADIUS;
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
withRatio(prevData, nextData, 'baseShape.width', function (r) {
|
|
110
|
+
calcPathValue(nextData, 'position.width', multiplyToPixel(r));
|
|
111
|
+
}) || withRatio(prevData, nextData, 'baseShape.height', function (r) {
|
|
112
|
+
calcPathValue(nextData, 'position.height', multiplyToPixel(r));
|
|
113
|
+
});
|
|
114
|
+
withChange(prevData, nextData, 'position.width', function (w) {
|
|
115
|
+
calcPathValue(nextData, 'position.height', function () {
|
|
116
|
+
return multiplyToPixel(1 / positionRatio)(w);
|
|
117
|
+
});
|
|
118
|
+
}) || withChange(prevData, nextData, 'position.height', function (h) {
|
|
119
|
+
calcPathValue(nextData, 'position.width', function () {
|
|
120
|
+
return multiplyToPixel(positionRatio)(h);
|
|
121
|
+
});
|
|
122
|
+
}); // calculate base shape width and height based on the bounding rectangle of the position data
|
|
123
|
+
|
|
124
|
+
var _calculateBoundingBox = (0, _calculateBoundingBoxSize.calculateBoundingBoxSize)(nextData.position),
|
|
125
|
+
width = _calculateBoundingBox.width,
|
|
126
|
+
height = _calculateBoundingBox.height;
|
|
127
|
+
|
|
128
|
+
(0, _set["default"])(nextData, 'baseShape.width', Math.round(width) + baseShapePadding);
|
|
129
|
+
(0, _set["default"])(nextData, 'baseShape.height', Math.round(height) + baseShapePadding); // set min value for base shape size
|
|
130
|
+
|
|
131
|
+
if ((0, _get["default"])(nextData, 'baseShape.width') <= sizeMin) {
|
|
132
|
+
(0, _set["default"])(nextData, 'baseShape.width', sizeMin);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
if ((0, _get["default"])(nextData, 'baseShape.height') <= sizeMin) {
|
|
136
|
+
(0, _set["default"])(nextData, 'baseShape.height', sizeMin);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
if ((0, _get["default"])(nextData, 'baseShape.type') === 'Cylinder') {
|
|
140
|
+
var minRadius = Math.max(Math.floor((0, _get["default"])(nextData, 'baseShape.width', 0) / Math.PI / 2), sizeMin);
|
|
141
|
+
|
|
142
|
+
if ((0, _get["default"])(nextData, 'baseShape.r', 0) < minRadius) {
|
|
143
|
+
(0, _set["default"])(nextData, 'baseShape.r', minRadius);
|
|
144
|
+
}
|
|
145
|
+
} // recalculating the position with the baseShape size change ratio
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
withRatio(prevData, nextData, 'baseShape.width', function (r) {
|
|
149
|
+
isFinite(r) && calcPathValue(nextData, 'position.x', function (v) {
|
|
150
|
+
return v * r;
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
withRatio(prevData, nextData, 'baseShape.height', function (r) {
|
|
154
|
+
isFinite(r) && calcPathValue(nextData, 'position.y', function (v) {
|
|
155
|
+
return v * r;
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
exports.applyLinks = applyLinks;
|