geostyler 7.1.0
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/LICENSE +25 -0
- package/README.md +223 -0
- package/browser/geostyler.css +1 -0
- package/browser/geostyler.js +2 -0
- package/browser/geostyler.js.LICENSE.txt +95 -0
- package/dist/Component/CodeEditor/CodeEditor.css +54 -0
- package/dist/Component/CodeEditor/CodeEditor.d.ts +87 -0
- package/dist/Component/CodeEditor/CodeEditor.js +284 -0
- package/dist/Component/CodeEditor/CodeEditor.js.map +1 -0
- package/dist/Component/CompositionContext/CompositionContext.d.ts +85 -0
- package/dist/Component/CompositionContext/CompositionContext.js +52 -0
- package/dist/Component/CompositionContext/CompositionContext.js.map +1 -0
- package/dist/Component/DataInput/DataLoader/DataLoader.d.ts +85 -0
- package/dist/Component/DataInput/DataLoader/DataLoader.js +154 -0
- package/dist/Component/DataInput/DataLoader/DataLoader.js.map +1 -0
- package/dist/Component/DataInput/StyleLoader/StyleLoader.d.ts +74 -0
- package/dist/Component/DataInput/StyleLoader/StyleLoader.js +151 -0
- package/dist/Component/DataInput/StyleLoader/StyleLoader.js.map +1 -0
- package/dist/Component/DataInput/WfsParserInput/WfsParserInput.css +42 -0
- package/dist/Component/DataInput/WfsParserInput/WfsParserInput.d.ts +34 -0
- package/dist/Component/DataInput/WfsParserInput/WfsParserInput.js +168 -0
- package/dist/Component/DataInput/WfsParserInput/WfsParserInput.js.map +1 -0
- package/dist/Component/DefaultValueContext/DefaultValueContext.d.ts +60 -0
- package/dist/Component/DefaultValueContext/DefaultValueContext.js +52 -0
- package/dist/Component/DefaultValueContext/DefaultValueContext.js.map +1 -0
- package/dist/Component/FieldSet/FieldSet.css +35 -0
- package/dist/Component/FieldSet/FieldSet.d.ts +18 -0
- package/dist/Component/FieldSet/FieldSet.js +72 -0
- package/dist/Component/FieldSet/FieldSet.js.map +1 -0
- package/dist/Component/Filter/AttributeCombo/AttributeCombo.d.ts +35 -0
- package/dist/Component/Filter/AttributeCombo/AttributeCombo.js +102 -0
- package/dist/Component/Filter/AttributeCombo/AttributeCombo.js.map +1 -0
- package/dist/Component/Filter/BoolFilterField/BoolFilterField.d.ts +17 -0
- package/dist/Component/Filter/BoolFilterField/BoolFilterField.js +77 -0
- package/dist/Component/Filter/BoolFilterField/BoolFilterField.js.map +1 -0
- package/dist/Component/Filter/ComparisonFilter/ComparisonFilter.css +36 -0
- package/dist/Component/Filter/ComparisonFilter/ComparisonFilter.d.ts +66 -0
- package/dist/Component/Filter/ComparisonFilter/ComparisonFilter.js +199 -0
- package/dist/Component/Filter/ComparisonFilter/ComparisonFilter.js.map +1 -0
- package/dist/Component/Filter/FilterEditorWindow/FilterEditorWindow.css +51 -0
- package/dist/Component/Filter/FilterEditorWindow/FilterEditorWindow.d.ts +89 -0
- package/dist/Component/Filter/FilterEditorWindow/FilterEditorWindow.js +90 -0
- package/dist/Component/Filter/FilterEditorWindow/FilterEditorWindow.js.map +1 -0
- package/dist/Component/Filter/FilterTree/FilterTree.css +62 -0
- package/dist/Component/Filter/FilterTree/FilterTree.d.ts +96 -0
- package/dist/Component/Filter/FilterTree/FilterTree.js +277 -0
- package/dist/Component/Filter/FilterTree/FilterTree.js.map +1 -0
- package/dist/Component/Filter/NumberFilterField/NumberFilterField.d.ts +23 -0
- package/dist/Component/Filter/NumberFilterField/NumberFilterField.js +67 -0
- package/dist/Component/Filter/NumberFilterField/NumberFilterField.js.map +1 -0
- package/dist/Component/Filter/OperatorCombo/OperatorCombo.d.ts +32 -0
- package/dist/Component/Filter/OperatorCombo/OperatorCombo.js +75 -0
- package/dist/Component/Filter/OperatorCombo/OperatorCombo.js.map +1 -0
- package/dist/Component/Filter/TextFilterField/TextFilterField.d.ts +28 -0
- package/dist/Component/Filter/TextFilterField/TextFilterField.js +115 -0
- package/dist/Component/Filter/TextFilterField/TextFilterField.js.map +1 -0
- package/dist/Component/Legacy/CodeEditor/CodeEditor.css +59 -0
- package/dist/Component/Legacy/CodeEditor/CodeEditor.d.ts +131 -0
- package/dist/Component/Legacy/CodeEditor/CodeEditor.js +317 -0
- package/dist/Component/Legacy/CodeEditor/CodeEditor.js.map +1 -0
- package/dist/Component/LocaleWrapper/LocaleWrapper.d.ts +61 -0
- package/dist/Component/LocaleWrapper/LocaleWrapper.js +106 -0
- package/dist/Component/LocaleWrapper/LocaleWrapper.js.map +1 -0
- package/dist/Component/NameField/NameField.css +30 -0
- package/dist/Component/NameField/NameField.d.ts +17 -0
- package/dist/Component/NameField/NameField.js +71 -0
- package/dist/Component/NameField/NameField.js.map +1 -0
- package/dist/Component/PreviewMap/PreviewMap.css +32 -0
- package/dist/Component/PreviewMap/PreviewMap.d.ts +109 -0
- package/dist/Component/PreviewMap/PreviewMap.js +247 -0
- package/dist/Component/PreviewMap/PreviewMap.js.map +1 -0
- package/dist/Component/Rule/RemoveButton/RemoveButton.css +30 -0
- package/dist/Component/Rule/RemoveButton/RemoveButton.d.ts +20 -0
- package/dist/Component/Rule/RemoveButton/RemoveButton.js +91 -0
- package/dist/Component/Rule/RemoveButton/RemoveButton.js.map +1 -0
- package/dist/Component/Rule/Rule.css +54 -0
- package/dist/Component/Rule/Rule.d.ts +161 -0
- package/dist/Component/Rule/Rule.js +268 -0
- package/dist/Component/Rule/Rule.js.map +1 -0
- package/dist/Component/Rule/TitleField/TitleField.css +30 -0
- package/dist/Component/Rule/TitleField/TitleField.d.ts +25 -0
- package/dist/Component/Rule/TitleField/TitleField.js +100 -0
- package/dist/Component/Rule/TitleField/TitleField.js.map +1 -0
- package/dist/Component/RuleGenerator/ClassificationCombo/ClassificationCombo.d.ts +87 -0
- package/dist/Component/RuleGenerator/ClassificationCombo/ClassificationCombo.js +104 -0
- package/dist/Component/RuleGenerator/ClassificationCombo/ClassificationCombo.js.map +1 -0
- package/dist/Component/RuleGenerator/ColorRampCombo/ColorRampCombo.css +38 -0
- package/dist/Component/RuleGenerator/ColorRampCombo/ColorRampCombo.d.ts +86 -0
- package/dist/Component/RuleGenerator/ColorRampCombo/ColorRampCombo.js +125 -0
- package/dist/Component/RuleGenerator/ColorRampCombo/ColorRampCombo.js.map +1 -0
- package/dist/Component/RuleGenerator/ColorSpaceCombo/ColorSpaceCombo.d.ts +84 -0
- package/dist/Component/RuleGenerator/ColorSpaceCombo/ColorSpaceCombo.js +104 -0
- package/dist/Component/RuleGenerator/ColorSpaceCombo/ColorSpaceCombo.js.map +1 -0
- package/dist/Component/RuleGenerator/ColorVariation/ColorRampCombo/ColorRampCombo.css +41 -0
- package/dist/Component/RuleGenerator/ColorVariation/ColorRampCombo/ColorRampCombo.d.ts +86 -0
- package/dist/Component/RuleGenerator/ColorVariation/ColorRampCombo/ColorRampCombo.js +125 -0
- package/dist/Component/RuleGenerator/ColorVariation/ColorRampCombo/ColorRampCombo.js.map +1 -0
- package/dist/Component/RuleGenerator/ColorVariation/ColorSpaceCombo/ColorSpaceCombo.d.ts +84 -0
- package/dist/Component/RuleGenerator/ColorVariation/ColorSpaceCombo/ColorSpaceCombo.js +104 -0
- package/dist/Component/RuleGenerator/ColorVariation/ColorSpaceCombo/ColorSpaceCombo.js.map +1 -0
- package/dist/Component/RuleGenerator/ColorVariation/ColorVariation.d.ts +79 -0
- package/dist/Component/RuleGenerator/ColorVariation/ColorVariation.js +95 -0
- package/dist/Component/RuleGenerator/ColorVariation/ColorVariation.js.map +1 -0
- package/dist/Component/RuleGenerator/ColorVariation/ColorsPreview/ColorsPreview.css +31 -0
- package/dist/Component/RuleGenerator/ColorVariation/ColorsPreview/ColorsPreview.d.ts +15 -0
- package/dist/Component/RuleGenerator/ColorVariation/ColorsPreview/ColorsPreview.js +93 -0
- package/dist/Component/RuleGenerator/ColorVariation/ColorsPreview/ColorsPreview.js.map +1 -0
- package/dist/Component/RuleGenerator/ColorsPreview/ColorsPreview.css +31 -0
- package/dist/Component/RuleGenerator/ColorsPreview/ColorsPreview.d.ts +15 -0
- package/dist/Component/RuleGenerator/ColorsPreview/ColorsPreview.js +93 -0
- package/dist/Component/RuleGenerator/ColorsPreview/ColorsPreview.js.map +1 -0
- package/dist/Component/RuleGenerator/RuleGenerator.css +43 -0
- package/dist/Component/RuleGenerator/RuleGenerator.d.ts +131 -0
- package/dist/Component/RuleGenerator/RuleGenerator.js +263 -0
- package/dist/Component/RuleGenerator/RuleGenerator.js.map +1 -0
- package/dist/Component/RuleGenerator/RuleGeneratorWindow.css +47 -0
- package/dist/Component/RuleGenerator/RuleGeneratorWindow.d.ts +89 -0
- package/dist/Component/RuleGenerator/RuleGeneratorWindow.js +125 -0
- package/dist/Component/RuleGenerator/RuleGeneratorWindow.js.map +1 -0
- package/dist/Component/RuleGenerator/SizeVariation/SizeVariation.d.ts +73 -0
- package/dist/Component/RuleGenerator/SizeVariation/SizeVariation.js +79 -0
- package/dist/Component/RuleGenerator/SizeVariation/SizeVariation.js.map +1 -0
- package/dist/Component/RuleGenerator/VariationCombo/VariationCombo.d.ts +72 -0
- package/dist/Component/RuleGenerator/VariationCombo/VariationCombo.js +92 -0
- package/dist/Component/RuleGenerator/VariationCombo/VariationCombo.js.map +1 -0
- package/dist/Component/RuleTable/RuleReorderButtons/RuleReorderButtons.d.ts +84 -0
- package/dist/Component/RuleTable/RuleReorderButtons/RuleReorderButtons.js +113 -0
- package/dist/Component/RuleTable/RuleReorderButtons/RuleReorderButtons.js.map +1 -0
- package/dist/Component/RuleTable/RuleTable.css +58 -0
- package/dist/Component/RuleTable/RuleTable.d.ts +173 -0
- package/dist/Component/RuleTable/RuleTable.js +396 -0
- package/dist/Component/RuleTable/RuleTable.js.map +1 -0
- package/dist/Component/ScaleDenominator/MaxScaleDenominator.css +30 -0
- package/dist/Component/ScaleDenominator/MaxScaleDenominator.d.ts +22 -0
- package/dist/Component/ScaleDenominator/MaxScaleDenominator.js +89 -0
- package/dist/Component/ScaleDenominator/MaxScaleDenominator.js.map +1 -0
- package/dist/Component/ScaleDenominator/MinScaleDenominator.css +30 -0
- package/dist/Component/ScaleDenominator/MinScaleDenominator.d.ts +22 -0
- package/dist/Component/ScaleDenominator/MinScaleDenominator.js +89 -0
- package/dist/Component/ScaleDenominator/MinScaleDenominator.js.map +1 -0
- package/dist/Component/ScaleDenominator/ScaleDenominator.d.ts +91 -0
- package/dist/Component/ScaleDenominator/ScaleDenominator.js +130 -0
- package/dist/Component/ScaleDenominator/ScaleDenominator.js.map +1 -0
- package/dist/Component/Style/Style.css +39 -0
- package/dist/Component/Style/Style.d.ts +172 -0
- package/dist/Component/Style/Style.js +431 -0
- package/dist/Component/Style/Style.js.map +1 -0
- package/dist/Component/Symbolizer/BulkEditModals/BulkEditModals.css +30 -0
- package/dist/Component/Symbolizer/BulkEditModals/BulkEditModals.d.ts +103 -0
- package/dist/Component/Symbolizer/BulkEditModals/BulkEditModals.js +176 -0
- package/dist/Component/Symbolizer/BulkEditModals/BulkEditModals.js.map +1 -0
- package/dist/Component/Symbolizer/ColorMapEditor/ColorMapEditor.css +34 -0
- package/dist/Component/Symbolizer/ColorMapEditor/ColorMapEditor.d.ts +137 -0
- package/dist/Component/Symbolizer/ColorMapEditor/ColorMapEditor.js +301 -0
- package/dist/Component/Symbolizer/ColorMapEditor/ColorMapEditor.js.map +1 -0
- package/dist/Component/Symbolizer/Editor/Editor.css +33 -0
- package/dist/Component/Symbolizer/Editor/Editor.d.ts +103 -0
- package/dist/Component/Symbolizer/Editor/Editor.js +233 -0
- package/dist/Component/Symbolizer/Editor/Editor.js.map +1 -0
- package/dist/Component/Symbolizer/Field/BrightnessField/BrightnessField.d.ts +10 -0
- package/dist/Component/Symbolizer/Field/BrightnessField/BrightnessField.js +61 -0
- package/dist/Component/Symbolizer/Field/BrightnessField/BrightnessField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/ChannelField/ChannelField.d.ts +77 -0
- package/dist/Component/Symbolizer/Field/ChannelField/ChannelField.js +135 -0
- package/dist/Component/Symbolizer/Field/ChannelField/ChannelField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/ChannelSelectionField/ChannelSelectionField.d.ts +10 -0
- package/dist/Component/Symbolizer/Field/ChannelSelectionField/ChannelSelectionField.js +84 -0
- package/dist/Component/Symbolizer/Field/ChannelSelectionField/ChannelSelectionField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/ColorField/ColorField.css +34 -0
- package/dist/Component/Symbolizer/Field/ColorField/ColorField.d.ts +76 -0
- package/dist/Component/Symbolizer/Field/ColorField/ColorField.js +98 -0
- package/dist/Component/Symbolizer/Field/ColorField/ColorField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/ColorMapEntryField/ColorMapEntryField.d.ts +77 -0
- package/dist/Component/Symbolizer/Field/ColorMapEntryField/ColorMapEntryField.js +114 -0
- package/dist/Component/Symbolizer/Field/ColorMapEntryField/ColorMapEntryField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/ColorMapTypeField/ColorMapTypeField.d.ts +76 -0
- package/dist/Component/Symbolizer/Field/ColorMapTypeField/ColorMapTypeField.js +75 -0
- package/dist/Component/Symbolizer/Field/ColorMapTypeField/ColorMapTypeField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/ContrastEnhancementField/ContrastEnhancementField.d.ts +14 -0
- package/dist/Component/Symbolizer/Field/ContrastEnhancementField/ContrastEnhancementField.js +67 -0
- package/dist/Component/Symbolizer/Field/ContrastEnhancementField/ContrastEnhancementField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/ContrastField/ContrastField.d.ts +10 -0
- package/dist/Component/Symbolizer/Field/ContrastField/ContrastField.js +61 -0
- package/dist/Component/Symbolizer/Field/ContrastField/ContrastField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/ExtendedField/ExtendedField.d.ts +10 -0
- package/dist/Component/Symbolizer/Field/ExtendedField/ExtendedField.js +68 -0
- package/dist/Component/Symbolizer/Field/ExtendedField/ExtendedField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/FadeDurationField/FadeDurationField.d.ts +10 -0
- package/dist/Component/Symbolizer/Field/FadeDurationField/FadeDurationField.js +61 -0
- package/dist/Component/Symbolizer/Field/FadeDurationField/FadeDurationField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/FontPicker/FontPicker.d.ts +13 -0
- package/dist/Component/Symbolizer/Field/FontPicker/FontPicker.js +74 -0
- package/dist/Component/Symbolizer/Field/FontPicker/FontPicker.js.map +1 -0
- package/dist/Component/Symbolizer/Field/GammaField/GammaField.d.ts +10 -0
- package/dist/Component/Symbolizer/Field/GammaField/GammaField.js +61 -0
- package/dist/Component/Symbolizer/Field/GammaField/GammaField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/GraphicTypeField/GraphicTypeField.d.ts +81 -0
- package/dist/Component/Symbolizer/Field/GraphicTypeField/GraphicTypeField.js +100 -0
- package/dist/Component/Symbolizer/Field/GraphicTypeField/GraphicTypeField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/GrayChannelField/GrayChannelField.d.ts +74 -0
- package/dist/Component/Symbolizer/Field/GrayChannelField/GrayChannelField.js +104 -0
- package/dist/Component/Symbolizer/Field/GrayChannelField/GrayChannelField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/ImageField/ImageField.css +36 -0
- package/dist/Component/Symbolizer/Field/ImageField/ImageField.d.ts +17 -0
- package/dist/Component/Symbolizer/Field/ImageField/ImageField.js +89 -0
- package/dist/Component/Symbolizer/Field/ImageField/ImageField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/KindField/KindField.d.ts +81 -0
- package/dist/Component/Symbolizer/Field/KindField/KindField.js +72 -0
- package/dist/Component/Symbolizer/Field/KindField/KindField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/LineCapField/LineCapField.d.ts +14 -0
- package/dist/Component/Symbolizer/Field/LineCapField/LineCapField.js +67 -0
- package/dist/Component/Symbolizer/Field/LineCapField/LineCapField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/LineDashField/LineDashField.css +30 -0
- package/dist/Component/Symbolizer/Field/LineDashField/LineDashField.d.ts +13 -0
- package/dist/Component/Symbolizer/Field/LineDashField/LineDashField.js +94 -0
- package/dist/Component/Symbolizer/Field/LineDashField/LineDashField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/LineJoinField/LineJoinField.d.ts +14 -0
- package/dist/Component/Symbolizer/Field/LineJoinField/LineJoinField.js +67 -0
- package/dist/Component/Symbolizer/Field/LineJoinField/LineJoinField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/OffsetField/OffsetField.d.ts +10 -0
- package/dist/Component/Symbolizer/Field/OffsetField/OffsetField.js +83 -0
- package/dist/Component/Symbolizer/Field/OffsetField/OffsetField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/OpacityField/OpacityField.d.ts +11 -0
- package/dist/Component/Symbolizer/Field/OpacityField/OpacityField.js +83 -0
- package/dist/Component/Symbolizer/Field/OpacityField/OpacityField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/RadiusField/RadiusField.d.ts +10 -0
- package/dist/Component/Symbolizer/Field/RadiusField/RadiusField.js +61 -0
- package/dist/Component/Symbolizer/Field/RadiusField/RadiusField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/ResamplingField/ResamplingField.d.ts +18 -0
- package/dist/Component/Symbolizer/Field/ResamplingField/ResamplingField.js +93 -0
- package/dist/Component/Symbolizer/Field/ResamplingField/ResamplingField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/RgbChannelField/RgbChannelField.d.ts +76 -0
- package/dist/Component/Symbolizer/Field/RgbChannelField/RgbChannelField.js +147 -0
- package/dist/Component/Symbolizer/Field/RgbChannelField/RgbChannelField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/RotateField/RotateField.d.ts +10 -0
- package/dist/Component/Symbolizer/Field/RotateField/RotateField.js +61 -0
- package/dist/Component/Symbolizer/Field/RotateField/RotateField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/SaturationField/SaturationField.d.ts +10 -0
- package/dist/Component/Symbolizer/Field/SaturationField/SaturationField.js +61 -0
- package/dist/Component/Symbolizer/Field/SaturationField/SaturationField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/SizeField/SizeField.d.ts +10 -0
- package/dist/Component/Symbolizer/Field/SizeField/SizeField.js +61 -0
- package/dist/Component/Symbolizer/Field/SizeField/SizeField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/SourceChannelNameField/SourceChannelNameField.d.ts +14 -0
- package/dist/Component/Symbolizer/Field/SourceChannelNameField/SourceChannelNameField.js +72 -0
- package/dist/Component/Symbolizer/Field/SourceChannelNameField/SourceChannelNameField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/WellKnownNameField/WellKnownNameField.d.ts +81 -0
- package/dist/Component/Symbolizer/Field/WellKnownNameField/WellKnownNameField.js +78 -0
- package/dist/Component/Symbolizer/Field/WellKnownNameField/WellKnownNameField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/WidthField/WidthField.d.ts +10 -0
- package/dist/Component/Symbolizer/Field/WidthField/WidthField.js +61 -0
- package/dist/Component/Symbolizer/Field/WidthField/WidthField.js.map +1 -0
- package/dist/Component/Symbolizer/FillEditor/FillEditor.d.ts +42 -0
- package/dist/Component/Symbolizer/FillEditor/FillEditor.js +270 -0
- package/dist/Component/Symbolizer/FillEditor/FillEditor.js.map +1 -0
- package/dist/Component/Symbolizer/GraphicEditor/GraphicEditor.d.ts +43 -0
- package/dist/Component/Symbolizer/GraphicEditor/GraphicEditor.js +151 -0
- package/dist/Component/Symbolizer/GraphicEditor/GraphicEditor.js.map +1 -0
- package/dist/Component/Symbolizer/IconEditor/IconEditor.d.ts +37 -0
- package/dist/Component/Symbolizer/IconEditor/IconEditor.js +200 -0
- package/dist/Component/Symbolizer/IconEditor/IconEditor.js.map +1 -0
- package/dist/Component/Symbolizer/IconSelector/IconSelector.css +64 -0
- package/dist/Component/Symbolizer/IconSelector/IconSelector.d.ts +98 -0
- package/dist/Component/Symbolizer/IconSelector/IconSelector.js +175 -0
- package/dist/Component/Symbolizer/IconSelector/IconSelector.js.map +1 -0
- package/dist/Component/Symbolizer/IconSelectorWindow/IconSelectorWindow.css +52 -0
- package/dist/Component/Symbolizer/IconSelectorWindow/IconSelectorWindow.d.ts +82 -0
- package/dist/Component/Symbolizer/IconSelectorWindow/IconSelectorWindow.js +118 -0
- package/dist/Component/Symbolizer/IconSelectorWindow/IconSelectorWindow.js.map +1 -0
- package/dist/Component/Symbolizer/LineEditor/LineEditor.d.ts +47 -0
- package/dist/Component/Symbolizer/LineEditor/LineEditor.js +291 -0
- package/dist/Component/Symbolizer/LineEditor/LineEditor.js.map +1 -0
- package/dist/Component/Symbolizer/MarkEditor/MarkEditor.d.ts +32 -0
- package/dist/Component/Symbolizer/MarkEditor/MarkEditor.js +152 -0
- package/dist/Component/Symbolizer/MarkEditor/MarkEditor.js.map +1 -0
- package/dist/Component/Symbolizer/MultiEditor/MultiEditor.css +36 -0
- package/dist/Component/Symbolizer/MultiEditor/MultiEditor.d.ts +86 -0
- package/dist/Component/Symbolizer/MultiEditor/MultiEditor.js +163 -0
- package/dist/Component/Symbolizer/MultiEditor/MultiEditor.js.map +1 -0
- package/dist/Component/Symbolizer/Preview/Preview.css +49 -0
- package/dist/Component/Symbolizer/Preview/Preview.d.ts +132 -0
- package/dist/Component/Symbolizer/Preview/Preview.js +316 -0
- package/dist/Component/Symbolizer/Preview/Preview.js.map +1 -0
- package/dist/Component/Symbolizer/PropTextEditor/PropTextEditor.css +36 -0
- package/dist/Component/Symbolizer/PropTextEditor/PropTextEditor.d.ts +104 -0
- package/dist/Component/Symbolizer/PropTextEditor/PropTextEditor.js +228 -0
- package/dist/Component/Symbolizer/PropTextEditor/PropTextEditor.js.map +1 -0
- package/dist/Component/Symbolizer/RasterChannelEditor/RasterChannelEditor.d.ts +107 -0
- package/dist/Component/Symbolizer/RasterChannelEditor/RasterChannelEditor.js +227 -0
- package/dist/Component/Symbolizer/RasterChannelEditor/RasterChannelEditor.js.map +1 -0
- package/dist/Component/Symbolizer/RasterEditor/RasterEditor.css +30 -0
- package/dist/Component/Symbolizer/RasterEditor/RasterEditor.d.ts +60 -0
- package/dist/Component/Symbolizer/RasterEditor/RasterEditor.js +259 -0
- package/dist/Component/Symbolizer/RasterEditor/RasterEditor.js.map +1 -0
- package/dist/Component/Symbolizer/Renderer/Renderer.css +34 -0
- package/dist/Component/Symbolizer/Renderer/Renderer.d.ts +37 -0
- package/dist/Component/Symbolizer/Renderer/Renderer.js +210 -0
- package/dist/Component/Symbolizer/Renderer/Renderer.js.map +1 -0
- package/dist/Component/Symbolizer/SLDRenderer/LoadingIcon.d.ts +2 -0
- package/dist/Component/Symbolizer/SLDRenderer/LoadingIcon.js +32 -0
- package/dist/Component/Symbolizer/SLDRenderer/LoadingIcon.js.map +1 -0
- package/dist/Component/Symbolizer/SLDRenderer/SLDRenderer.css +33 -0
- package/dist/Component/Symbolizer/SLDRenderer/SLDRenderer.d.ts +43 -0
- package/dist/Component/Symbolizer/SLDRenderer/SLDRenderer.js +185 -0
- package/dist/Component/Symbolizer/SLDRenderer/SLDRenderer.js.map +1 -0
- package/dist/Component/Symbolizer/SLDUnitsSelect/SLDUnitsSelect.css +30 -0
- package/dist/Component/Symbolizer/SLDUnitsSelect/SLDUnitsSelect.d.ts +84 -0
- package/dist/Component/Symbolizer/SLDUnitsSelect/SLDUnitsSelect.js +97 -0
- package/dist/Component/Symbolizer/SLDUnitsSelect/SLDUnitsSelect.js.map +1 -0
- package/dist/Component/Symbolizer/SymbolizerEditorWindow/SymbolizerEditorWindow.css +48 -0
- package/dist/Component/Symbolizer/SymbolizerEditorWindow/SymbolizerEditorWindow.d.ts +90 -0
- package/dist/Component/Symbolizer/SymbolizerEditorWindow/SymbolizerEditorWindow.js +120 -0
- package/dist/Component/Symbolizer/SymbolizerEditorWindow/SymbolizerEditorWindow.js.map +1 -0
- package/dist/Component/Symbolizer/TextEditor/TextEditor.css +33 -0
- package/dist/Component/Symbolizer/TextEditor/TextEditor.d.ts +56 -0
- package/dist/Component/Symbolizer/TextEditor/TextEditor.js +320 -0
- package/dist/Component/Symbolizer/TextEditor/TextEditor.js.map +1 -0
- package/dist/Component/Symbolizer/WellKnownNameEditor/WellKnownNameEditor.d.ts +42 -0
- package/dist/Component/Symbolizer/WellKnownNameEditor/WellKnownNameEditor.js +265 -0
- package/dist/Component/Symbolizer/WellKnownNameEditor/WellKnownNameEditor.js.map +1 -0
- package/dist/Component/UploadButton/UploadButton.d.ts +30 -0
- package/dist/Component/UploadButton/UploadButton.js +117 -0
- package/dist/Component/UploadButton/UploadButton.js.map +1 -0
- package/dist/DataProvider/DataProvider.d.ts +36 -0
- package/dist/DataProvider/DataProvider.js +85 -0
- package/dist/DataProvider/DataProvider.js.map +1 -0
- package/dist/DataProvider/ParserDesc.d.ts +6 -0
- package/dist/DataProvider/ParserDesc.js +30 -0
- package/dist/DataProvider/ParserDesc.js.map +1 -0
- package/dist/Util/CompositionUtil.d.ts +47 -0
- package/dist/Util/CompositionUtil.js +123 -0
- package/dist/Util/CompositionUtil.js.map +1 -0
- package/dist/Util/DataUtil.d.ts +15 -0
- package/dist/Util/DataUtil.js +51 -0
- package/dist/Util/DataUtil.js.map +1 -0
- package/dist/Util/FileUtil.d.ts +10 -0
- package/dist/Util/FileUtil.js +91 -0
- package/dist/Util/FileUtil.js.map +1 -0
- package/dist/Util/FilterUtil.d.ts +91 -0
- package/dist/Util/FilterUtil.js +399 -0
- package/dist/Util/FilterUtil.js.map +1 -0
- package/dist/Util/HTTPUtil.d.ts +35 -0
- package/dist/Util/HTTPUtil.js +128 -0
- package/dist/Util/HTTPUtil.js.map +1 -0
- package/dist/Util/RasterUtil.d.ts +11 -0
- package/dist/Util/RasterUtil.js +47 -0
- package/dist/Util/RasterUtil.js.map +1 -0
- package/dist/Util/RuleGeneratorUtil.d.ts +52 -0
- package/dist/Util/RuleGeneratorUtil.js +200 -0
- package/dist/Util/RuleGeneratorUtil.js.map +1 -0
- package/dist/Util/SymbolizerUtil.d.ts +20 -0
- package/dist/Util/SymbolizerUtil.js +100 -0
- package/dist/Util/SymbolizerUtil.js.map +1 -0
- package/dist/Util/TestUtil.d.ts +73 -0
- package/dist/Util/TestUtil.js +748 -0
- package/dist/Util/TestUtil.js.map +1 -0
- package/dist/context/CompositionContext/CompositionContext.d.ts +85 -0
- package/dist/context/CompositionContext/CompositionContext.js +52 -0
- package/dist/context/CompositionContext/CompositionContext.js.map +1 -0
- package/dist/context/DefaultValueContext/DefaultValueContext.d.ts +60 -0
- package/dist/context/DefaultValueContext/DefaultValueContext.js +52 -0
- package/dist/context/DefaultValueContext/DefaultValueContext.js.map +1 -0
- package/dist/hoc/withDefaultsContext.d.ts +3 -0
- package/dist/hoc/withDefaultsContext.js +41 -0
- package/dist/hoc/withDefaultsContext.js.map +1 -0
- package/dist/hook/UsePrevious.d.ts +18 -0
- package/dist/hook/UsePrevious.js +57 -0
- package/dist/hook/UsePrevious.js.map +1 -0
- package/dist/index.d.ts +1365 -0
- package/dist/index.js +211 -0
- package/dist/index.js.map +1 -0
- package/dist/locale/de_DE.d.ts +333 -0
- package/dist/locale/de_DE.js +310 -0
- package/dist/locale/de_DE.js.map +1 -0
- package/dist/locale/en_US.d.ts +338 -0
- package/dist/locale/en_US.js +314 -0
- package/dist/locale/en_US.js.map +1 -0
- package/dist/locale/es_ES.d.ts +275 -0
- package/dist/locale/es_ES.js +259 -0
- package/dist/locale/es_ES.js.map +1 -0
- package/dist/locale/zh_CN.d.ts +338 -0
- package/dist/locale/zh_CN.js +314 -0
- package/dist/locale/zh_CN.js.map +1 -0
- package/package.json +162 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Released under the BSD 2-Clause License
|
|
3
|
+
*
|
|
4
|
+
* Copyright © 2018-present, terrestris GmbH & Co. KG and GeoStyler contributors
|
|
5
|
+
* All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* Redistribution and use in source and binary forms, with or without
|
|
8
|
+
* modification, are permitted provided that the following conditions are met:
|
|
9
|
+
*
|
|
10
|
+
* * Redistributions of source code must retain the above copyright notice,
|
|
11
|
+
* this list of conditions and the following disclaimer.
|
|
12
|
+
*
|
|
13
|
+
* * Redistributions in binary form must reproduce the above copyright notice,
|
|
14
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
15
|
+
* and/or other materials provided with the distribution.
|
|
16
|
+
*
|
|
17
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
18
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
19
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
20
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
21
|
+
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
22
|
+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
23
|
+
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
24
|
+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
25
|
+
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
26
|
+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
27
|
+
* POSSIBILITY OF SUCH DAMAGE.
|
|
28
|
+
*/
|
|
29
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
30
|
+
if (k2 === undefined) k2 = k;
|
|
31
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
32
|
+
}) : (function(o, m, k, k2) {
|
|
33
|
+
if (k2 === undefined) k2 = k;
|
|
34
|
+
o[k2] = m[k];
|
|
35
|
+
}));
|
|
36
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
37
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
38
|
+
}) : function(o, v) {
|
|
39
|
+
o["default"] = v;
|
|
40
|
+
});
|
|
41
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
42
|
+
if (mod && mod.__esModule) return mod;
|
|
43
|
+
var result = {};
|
|
44
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
45
|
+
__setModuleDefault(result, mod);
|
|
46
|
+
return result;
|
|
47
|
+
};
|
|
48
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
49
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
50
|
+
};
|
|
51
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52
|
+
var React = __importStar(require("react"));
|
|
53
|
+
var get_1 = __importDefault(require("lodash/get"));
|
|
54
|
+
/**
|
|
55
|
+
* Utility functions for the composition context.
|
|
56
|
+
*
|
|
57
|
+
* In order to allow replacement and disablement of certain components
|
|
58
|
+
* we use the CompositionContext. These functions contain the logic for
|
|
59
|
+
* handling which components should be replaced/disabled within a
|
|
60
|
+
* customisable component.
|
|
61
|
+
*/
|
|
62
|
+
var CompositionUtil = /** @class */ (function () {
|
|
63
|
+
function CompositionUtil() {
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Main function for handling compositions.
|
|
67
|
+
*
|
|
68
|
+
* Takes the composition context, the component to be checked, etc. and
|
|
69
|
+
* either replaces, disables or returns the original component. Will also
|
|
70
|
+
* inject the required functions and properties for the replaced components.
|
|
71
|
+
*
|
|
72
|
+
* @param options CompositionUtilOptions
|
|
73
|
+
*/
|
|
74
|
+
CompositionUtil.handleComposition = function (options) {
|
|
75
|
+
var composition = options.composition, path = options.path, propName = options.propName, propValue = options.propValue, defaultValue = options.defaultValue, defaultElement = options.defaultElement, onChange = options.onChange, onChangeName = options.onChangeName;
|
|
76
|
+
var compositionValue = get_1.default(composition, path);
|
|
77
|
+
var globalPath = path.split('.')[path.split('.').length - 1];
|
|
78
|
+
var globalComposition = get_1.default(composition, globalPath);
|
|
79
|
+
var injectOptions = {
|
|
80
|
+
onChange: onChange,
|
|
81
|
+
propName: propName,
|
|
82
|
+
propValue: propValue,
|
|
83
|
+
defaultValue: defaultValue,
|
|
84
|
+
onChangeName: onChangeName
|
|
85
|
+
};
|
|
86
|
+
if (compositionValue !== undefined) {
|
|
87
|
+
if (compositionValue !== false) {
|
|
88
|
+
injectOptions.component = compositionValue;
|
|
89
|
+
return CompositionUtil.injectProperties(injectOptions);
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
return null;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
if (globalComposition !== undefined) {
|
|
96
|
+
if (globalComposition !== false) {
|
|
97
|
+
injectOptions.component = globalComposition;
|
|
98
|
+
return CompositionUtil.injectProperties(injectOptions);
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
return null;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
injectOptions.component = defaultElement;
|
|
105
|
+
return CompositionUtil.injectProperties(injectOptions);
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* Injects the value and onChange properties to a given component.
|
|
109
|
+
*
|
|
110
|
+
* @param options CompositionUtilInjectOptions
|
|
111
|
+
*/
|
|
112
|
+
CompositionUtil.injectProperties = function (options) {
|
|
113
|
+
var _a, _b;
|
|
114
|
+
var component = options.component, onChange = options.onChange, propName = options.propName, propValue = options.propValue, defaultValue = options.defaultValue, onChangeName = options.onChangeName;
|
|
115
|
+
if (onChangeName !== undefined && onChangeName !== '') {
|
|
116
|
+
return (React.cloneElement(component, (_a = {}, _a[propName] = propValue, _a[onChangeName] = onChange, _a.defaultValue = defaultValue, _a)));
|
|
117
|
+
}
|
|
118
|
+
return (React.cloneElement(component, (_b = {}, _b[propName] = propValue, _b.onChange = onChange, _b.defaultValue = defaultValue, _b)));
|
|
119
|
+
};
|
|
120
|
+
return CompositionUtil;
|
|
121
|
+
}());
|
|
122
|
+
exports.default = CompositionUtil;
|
|
123
|
+
//# sourceMappingURL=CompositionUtil.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompositionUtil.js","sourceRoot":"","sources":["../../src/Util/CompositionUtil.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;;;;;;;;;;;;;;;;;;;;;;;;AAEH,2CAA+B;AAE/B,mDAA8B;AAsB9B;;;;;;;GAOG;AACH;IAAA;IA8EA,CAAC;IA5EC;;;;;;;;OAQG;IACI,iCAAiB,GAAxB,UAAyB,OAA+B;QAEpD,IAAA,WAAW,GAQT,OAAO,YARE,EACX,IAAI,GAOF,OAAO,KAPL,EACJ,QAAQ,GAMN,OAAO,SAND,EACR,SAAS,GAKP,OAAO,UALA,EACT,YAAY,GAIV,OAAO,aAJG,EACZ,cAAc,GAGZ,OAAO,eAHK,EACd,QAAQ,GAEN,OAAO,SAFD,EACR,YAAY,GACV,OAAO,aADG,CACF;QAEZ,IAAM,gBAAgB,GAAG,aAAI,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;QACjD,IAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAC/D,IAAM,iBAAiB,GAAG,aAAI,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;QAExD,IAAM,aAAa,GAAiC;YAClD,QAAQ,UAAA;YACR,QAAQ,UAAA;YACR,SAAS,WAAA;YACT,YAAY,cAAA;YACZ,YAAY,cAAA;SACmB,CAAC;QAElC,IAAI,gBAAgB,KAAK,SAAS,EAAE;YAClC,IAAI,gBAAgB,KAAK,KAAK,EAAE;gBAC9B,aAAa,CAAC,SAAS,GAAG,gBAAgB,CAAC;gBAC3C,OAAO,eAAe,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;aACxD;iBAAM;gBACL,OAAO,IAAI,CAAC;aACb;SACF;QAED,IAAI,iBAAiB,KAAK,SAAS,EAAE;YACnC,IAAI,iBAAiB,KAAK,KAAK,EAAE;gBAC/B,aAAa,CAAC,SAAS,GAAG,iBAAiB,CAAC;gBAC5C,OAAO,eAAe,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;aACxD;iBAAM;gBACL,OAAO,IAAI,CAAC;aACb;SACF;QAED,aAAa,CAAC,SAAS,GAAG,cAAc,CAAC;QACzC,OAAO,eAAe,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;IACzD,CAAC;IAED;;;;OAIG;IACI,gCAAgB,GAAvB,UAAwB,OAAqC;;QAEzD,IAAA,SAAS,GAMP,OAAO,UANA,EACT,QAAQ,GAKN,OAAO,SALD,EACR,QAAQ,GAIN,OAAO,SAJD,EACR,SAAS,GAGP,OAAO,UAHA,EACT,YAAY,GAEV,OAAO,aAFG,EACZ,YAAY,GACV,OAAO,aADG,CACF;QAEZ,IAAI,YAAY,KAAK,SAAS,IAAI,YAAY,KAAK,EAAE,EAAE;YACrD,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,SAAS,YAAG,GAAC,QAAQ,IAAG,SAAS,EAAE,GAAC,YAAY,IAAG,QAAQ,EAAE,eAAY,eAAA,MAAE,CAAC,CAAC;SACzG;QACD,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,SAAS,YAAG,GAAC,QAAQ,IAAG,SAAS,EAAE,WAAQ,GAAE,QAAQ,EAAE,eAAY,eAAA,MAAE,CAAC,CAAC;IACpG,CAAC;IAEH,sBAAC;AAAD,CAAC,AA9ED,IA8EC;AAED,kBAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Data, VectorData, RasterData } from 'geostyler-data';
|
|
2
|
+
/**
|
|
3
|
+
* @class DataUtil
|
|
4
|
+
*/
|
|
5
|
+
declare class DataUtil {
|
|
6
|
+
/**
|
|
7
|
+
* Checks if Data object is of type VectorData.
|
|
8
|
+
*/
|
|
9
|
+
static isVector: (v: Data) => v is VectorData;
|
|
10
|
+
/**
|
|
11
|
+
* Checks if Data object is of type RasterData.
|
|
12
|
+
*/
|
|
13
|
+
static isRaster: (r: Data) => r is RasterData;
|
|
14
|
+
}
|
|
15
|
+
export default DataUtil;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Released under the BSD 2-Clause License
|
|
3
|
+
*
|
|
4
|
+
* Copyright © 2018-present, terrestris GmbH & Co. KG and GeoStyler contributors
|
|
5
|
+
* All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* Redistribution and use in source and binary forms, with or without
|
|
8
|
+
* modification, are permitted provided that the following conditions are met:
|
|
9
|
+
*
|
|
10
|
+
* * Redistributions of source code must retain the above copyright notice,
|
|
11
|
+
* this list of conditions and the following disclaimer.
|
|
12
|
+
*
|
|
13
|
+
* * Redistributions in binary form must reproduce the above copyright notice,
|
|
14
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
15
|
+
* and/or other materials provided with the distribution.
|
|
16
|
+
*
|
|
17
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
18
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
19
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
20
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
21
|
+
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
22
|
+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
23
|
+
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
24
|
+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
25
|
+
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
26
|
+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
27
|
+
* POSSIBILITY OF SUCH DAMAGE.
|
|
28
|
+
*/
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
/**
|
|
31
|
+
* @class DataUtil
|
|
32
|
+
*/
|
|
33
|
+
var DataUtil = /** @class */ (function () {
|
|
34
|
+
function DataUtil() {
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Checks if Data object is of type VectorData.
|
|
38
|
+
*/
|
|
39
|
+
DataUtil.isVector = function (v) {
|
|
40
|
+
return v.exampleFeatures !== undefined;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Checks if Data object is of type RasterData.
|
|
44
|
+
*/
|
|
45
|
+
DataUtil.isRaster = function (r) {
|
|
46
|
+
return r.rasterBandInfo !== undefined;
|
|
47
|
+
};
|
|
48
|
+
return DataUtil;
|
|
49
|
+
}());
|
|
50
|
+
exports.default = DataUtil;
|
|
51
|
+
//# sourceMappingURL=DataUtil.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataUtil.js","sourceRoot":"","sources":["../../src/Util/DataUtil.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;;AAIH;;GAEG;AACH;IAAA;IAcA,CAAC;IAbC;;OAEG;IACI,iBAAQ,GAAG,UAAC,CAAO;QACxB,OAAqB,CAAE,CAAC,eAAe,KAAK,SAAS,CAAC;IACxD,CAAC,CAAC;IAEF;;OAEG;IACI,iBAAQ,GAAG,UAAC,CAAO;QACxB,OAAqB,CAAE,CAAC,cAAc,KAAK,SAAS,CAAC;IACvD,CAAC,CAAC;IACJ,eAAC;CAAA,AAdD,IAcC;AAED,kBAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Released under the BSD 2-Clause License
|
|
3
|
+
*
|
|
4
|
+
* Copyright © 2018-present, terrestris GmbH & Co. KG and GeoStyler contributors
|
|
5
|
+
* All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* Redistribution and use in source and binary forms, with or without
|
|
8
|
+
* modification, are permitted provided that the following conditions are met:
|
|
9
|
+
*
|
|
10
|
+
* * Redistributions of source code must retain the above copyright notice,
|
|
11
|
+
* this list of conditions and the following disclaimer.
|
|
12
|
+
*
|
|
13
|
+
* * Redistributions in binary form must reproduce the above copyright notice,
|
|
14
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
15
|
+
* and/or other materials provided with the distribution.
|
|
16
|
+
*
|
|
17
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
18
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
19
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
20
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
21
|
+
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
22
|
+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
23
|
+
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
24
|
+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
25
|
+
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
26
|
+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
27
|
+
* POSSIBILITY OF SUCH DAMAGE.
|
|
28
|
+
*/
|
|
29
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
30
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
31
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
32
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
33
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
34
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
35
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
39
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
40
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
41
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
42
|
+
function step(op) {
|
|
43
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
44
|
+
while (_) try {
|
|
45
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
46
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
47
|
+
switch (op[0]) {
|
|
48
|
+
case 0: case 1: t = op; break;
|
|
49
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
50
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
51
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
52
|
+
default:
|
|
53
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
54
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
55
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
56
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
57
|
+
if (t[2]) _.ops.pop();
|
|
58
|
+
_.trys.pop(); continue;
|
|
59
|
+
}
|
|
60
|
+
op = body.call(thisArg, _);
|
|
61
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
62
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66
|
+
/**
|
|
67
|
+
* @class FileUtil
|
|
68
|
+
*/
|
|
69
|
+
var FileUtil = /** @class */ (function () {
|
|
70
|
+
function FileUtil() {
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Reads a file and returns its content as string.
|
|
74
|
+
*/
|
|
75
|
+
FileUtil.readFile = function (file) { return __awaiter(void 0, void 0, void 0, function () {
|
|
76
|
+
return __generator(this, function (_a) {
|
|
77
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
78
|
+
var reader = new FileReader();
|
|
79
|
+
reader.onload = function () {
|
|
80
|
+
var fileContent = reader.result;
|
|
81
|
+
resolve(fileContent);
|
|
82
|
+
};
|
|
83
|
+
reader.onerror = reject;
|
|
84
|
+
reader.readAsText(file);
|
|
85
|
+
})];
|
|
86
|
+
});
|
|
87
|
+
}); };
|
|
88
|
+
return FileUtil;
|
|
89
|
+
}());
|
|
90
|
+
exports.default = FileUtil;
|
|
91
|
+
//# sourceMappingURL=FileUtil.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileUtil.js","sourceRoot":"","sources":["../../src/Util/FileUtil.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH;;GAEG;AACH;IAAA;IAgBA,CAAC;IAdC;;OAEG;IACI,iBAAQ,GAAG,UAAO,IAAU;;YACjC,sBAAO,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;oBACjC,IAAM,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;oBAChC,MAAM,CAAC,MAAM,GAAG;wBACd,IAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC;wBAClC,OAAO,CAAC,WAAqB,CAAC,CAAC;oBACjC,CAAC,CAAC;oBACF,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC;oBACxB,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBAC1B,CAAC,CAAC,EAAC;;SACJ,CAAC;IACJ,eAAC;CAAA,AAhBD,IAgBC;AAED,kBAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { Filter, ComparisonFilter, Rule, CombinationFilter, NegationFilter } from 'geostyler-style';
|
|
2
|
+
import { VectorData } from 'geostyler-data';
|
|
3
|
+
export declare type CountResult = {
|
|
4
|
+
counts?: number[];
|
|
5
|
+
duplicates?: number[];
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* @class FilterUtil
|
|
9
|
+
*/
|
|
10
|
+
declare class FilterUtil {
|
|
11
|
+
static nestingOperators: string[];
|
|
12
|
+
/**
|
|
13
|
+
* Handle nested filters.
|
|
14
|
+
*/
|
|
15
|
+
static handleNestedFilter: (filter: CombinationFilter | NegationFilter, feature: any) => boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Handle simple filters, i.e. non-nested filters.
|
|
18
|
+
*/
|
|
19
|
+
static handleSimpleFilter: (filter: ComparisonFilter, feature: any) => boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Checks if a feature matches the specified filter.
|
|
22
|
+
* Returns true if it matches, otherwise returns false.
|
|
23
|
+
*/
|
|
24
|
+
static featureMatchesFilter: (filter: Filter, feature: any) => boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Returns those features that match a given filter.
|
|
27
|
+
* If no feature matches, returns an empty array.
|
|
28
|
+
*
|
|
29
|
+
* @param {Filter} filter A geostyler filter object.
|
|
30
|
+
* @param {VectorData} data A geostyler data object.
|
|
31
|
+
* @return {Feature[]} An Array of geojson feature objects.
|
|
32
|
+
*/
|
|
33
|
+
static getMatches: (filter: Filter, data: VectorData) => any[];
|
|
34
|
+
/**
|
|
35
|
+
* Calculates the number of features that are covered by more then one rule per
|
|
36
|
+
* rule.
|
|
37
|
+
*
|
|
38
|
+
* @param {object} matches An object containing the count of matches for every
|
|
39
|
+
* filter. Seperate by scales.
|
|
40
|
+
* @returns {number[]} An array containing the number of duplicates for each
|
|
41
|
+
* rule.
|
|
42
|
+
*/
|
|
43
|
+
static calculateDuplicates(matches: any): number[];
|
|
44
|
+
/**
|
|
45
|
+
* Calculates the amount of matched and duplicate matched features for the rules.
|
|
46
|
+
*
|
|
47
|
+
* @param {Rule[]} rules An array of GeoStyler rule objects.
|
|
48
|
+
* @param {VectorData} data A geostyler data object.
|
|
49
|
+
* @returns {CountResult} An object containing array with the amount of matched
|
|
50
|
+
* and duplicate matched features reachable through keys'counts' and 'duplicates'.
|
|
51
|
+
*/
|
|
52
|
+
static calculateCountAndDuplicates(rules: Rule[], data: VectorData): CountResult;
|
|
53
|
+
/**
|
|
54
|
+
* Transforms a position String like '[2][3]' to an positionArray like [2, 3].
|
|
55
|
+
*/
|
|
56
|
+
static positionStringAsArray(positionString: string): number[];
|
|
57
|
+
/**
|
|
58
|
+
* Transforms am positionArray like [2, 3] to a string like '[2][3]'.
|
|
59
|
+
*/
|
|
60
|
+
static positionArrayAsString(positionArray: number[] | string[]): string;
|
|
61
|
+
/**
|
|
62
|
+
* Returns the filter at a specific position.
|
|
63
|
+
*/
|
|
64
|
+
static getFilterAtPosition(rootFilter: Filter, position: string): any;
|
|
65
|
+
/**
|
|
66
|
+
* Removes a subfilter from a given filter at the given position.
|
|
67
|
+
*/
|
|
68
|
+
static removeAtPosition(filter: Filter, position: string): Filter;
|
|
69
|
+
/**
|
|
70
|
+
* Inserts a given subfilter to a given parentfilter by its position and its
|
|
71
|
+
* dropPosition.
|
|
72
|
+
*/
|
|
73
|
+
static insertAtPosition(baseFilter: Filter, insertFilter: Filter, position: string, dropPosition: number): Filter;
|
|
74
|
+
/**
|
|
75
|
+
* Handler for the add button.
|
|
76
|
+
* Adds a filter of a given type at the given position.
|
|
77
|
+
*
|
|
78
|
+
*/
|
|
79
|
+
static addFilter(rootFilter: Filter, position: string, type: string): Filter;
|
|
80
|
+
/**
|
|
81
|
+
* Changes a filter at a position to a given typ.
|
|
82
|
+
*
|
|
83
|
+
*/
|
|
84
|
+
static changeFilter(rootFilter: Filter, position: string, type: string): Filter;
|
|
85
|
+
/**
|
|
86
|
+
* Removes a filter at a given position.
|
|
87
|
+
*
|
|
88
|
+
*/
|
|
89
|
+
static removeFilter: (rootFilter: Filter, position: string) => Filter;
|
|
90
|
+
}
|
|
91
|
+
export default FilterUtil;
|