geostyler 10.2.0 → 10.3.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/README.md +5 -1
- package/browser/geostyler.css +1 -1
- package/browser/geostyler.js +1 -1
- package/browser/geostyler.js.LICENSE.txt +10 -0
- package/dist/Component/CodeEditor/CodeEditor.js +1 -1
- 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/StyleLoader/StyleLoader.js +1 -1
- 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/{ParserFeedback/ParserFeedback.css → DragDroppable/DragDroppable.css} +6 -8
- package/dist/Component/DragDroppable/DragDroppable.d.ts +13 -0
- package/dist/Component/DragDroppable/DragDroppable.js +68 -0
- package/dist/Component/DragDroppable/DragDroppable.js.map +1 -0
- package/dist/Component/DropIndicator/DropIndicator.css +30 -0
- package/dist/Component/DropIndicator/DropIndicator.d.ts +6 -0
- package/dist/Component/DropIndicator/DropIndicator.js +41 -0
- package/dist/Component/DropIndicator/DropIndicator.js.map +1 -0
- package/dist/Component/Filter/ComparisonFilter/ComparisonFilter.d.ts +1 -1
- 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/Rule/TitleField/TitleField.d.ts +0 -1
- package/dist/Component/Rule/TitleField/TitleField.js +1 -6
- package/dist/Component/Rule/TitleField/TitleField.js.map +1 -1
- package/dist/Component/RuleCard/RuleCard.css +27 -0
- package/dist/Component/RuleCard/RuleCard.js +3 -4
- package/dist/Component/RuleCard/RuleCard.js.map +1 -1
- package/dist/Component/RuleGenerator/ClassificationCombo/ClassificationCombo.d.ts +1 -1
- package/dist/Component/RuleGenerator/RuleGenerator.d.ts +1 -1
- package/dist/Component/Rules/Rules.js +43 -8
- package/dist/Component/Rules/Rules.js.map +1 -1
- package/dist/Component/Symbolizer/Field/ChannelSelectionField/ChannelSelectionField.d.ts +1 -1
- package/dist/Component/Symbolizer/Field/ColorField/BaseColorField/BaseColorField.css +34 -0
- package/dist/Component/Symbolizer/Field/ColorField/BaseColorField/BaseColorField.d.ts +88 -0
- package/dist/Component/Symbolizer/Field/ColorField/BaseColorField/BaseColorField.js +136 -0
- package/dist/Component/Symbolizer/Field/ColorField/BaseColorField/BaseColorField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/ExpressionField/ExpressionField.d.ts +13 -0
- package/dist/Component/Symbolizer/Field/ExpressionField/ExpressionField.js +73 -0
- package/dist/Component/Symbolizer/Field/ExpressionField/ExpressionField.js.map +1 -0
- package/dist/Component/Symbolizer/IconSelector/IconSelector.d.ts +1 -1
- package/dist/Component/Symbolizer/Preview/Preview.js +1 -1
- package/dist/Component/Symbolizer/RasterEditor/RasterEditor.d.ts +1 -1
- package/dist/Component/Symbolizer/Renderer/Renderer.js +1 -1
- package/dist/Component/Symbolizer/SLDRenderer/SLDRenderer.js +1 -1
- package/dist/Component/SymbolizerCard/SymbolizerCard.js +3 -4
- package/dist/Component/SymbolizerCard/SymbolizerCard.js.map +1 -1
- package/dist/Component/Symbolizers/Symbolizers.js +52 -19
- package/dist/Component/Symbolizers/Symbolizers.js.map +1 -1
- package/dist/Component/UploadButton/UploadButton.d.ts +1 -1
- package/dist/DataProvider/ParserDesc.d.ts +1 -1
- package/dist/Util/DndUtil.d.ts +114 -0
- package/dist/Util/DndUtil.js +159 -0
- package/dist/Util/DndUtil.js.map +1 -0
- package/dist/Util/FileUtil.js +1 -1
- package/dist/Util/FilterUtil.d.ts +1 -1
- package/dist/Util/HTTPUtil.d.ts +1 -1
- package/dist/Util/HTTPUtil.js +1 -1
- package/dist/Util/UnsupportedPropertiesUtil.d.ts +2 -2
- package/dist/context/UnsupportedPropertiesContext/UnsupportedPropertiesContext.d.ts +2 -2
- package/dist/hook/UseDragDrop.d.ts +20 -0
- package/dist/hook/UseDragDrop.js +238 -0
- package/dist/hook/UseDragDrop.js.map +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/locale/fr_FR.js +3 -3
- package/dist/locale/fr_FR.js.map +1 -1
- package/package.json +4 -2
- package/dist/Util/StyleUtil.d.ts +0 -9
- package/dist/Util/StyleUtil.js +0 -87
- package/dist/Util/StyleUtil.js.map +0 -1
package/dist/Util/StyleUtil.js
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
30
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31
|
-
};
|
|
32
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
-
var Point_1 = __importDefault(require("ol/geom/Point"));
|
|
34
|
-
var LineString_1 = __importDefault(require("ol/geom/LineString"));
|
|
35
|
-
var Polygon_1 = __importDefault(require("ol/geom/Polygon"));
|
|
36
|
-
/**
|
|
37
|
-
* @class StyleUtil
|
|
38
|
-
*/
|
|
39
|
-
var StyleUtil = /** @class */ (function () {
|
|
40
|
-
function StyleUtil() {
|
|
41
|
-
}
|
|
42
|
-
StyleUtil.getSampleGeomFromStyle = function (style, projection) {
|
|
43
|
-
var kinds = [];
|
|
44
|
-
style.rules.forEach(function (rule) {
|
|
45
|
-
rule.symbolizers.forEach(function (symbolizer) {
|
|
46
|
-
if (!kinds.includes(symbolizer.kind)) {
|
|
47
|
-
kinds.push(symbolizer.kind);
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
return kinds.map(function (kind) {
|
|
52
|
-
switch (kind) {
|
|
53
|
-
case 'Mark':
|
|
54
|
-
case 'Icon':
|
|
55
|
-
case 'Text':
|
|
56
|
-
return (new Point_1.default([7.10066, 50.735851]))
|
|
57
|
-
.transform('EPSG:4326', projection);
|
|
58
|
-
case 'Fill':
|
|
59
|
-
return (new Polygon_1.default([[
|
|
60
|
-
[7.1031761169433585, 50.734268655851345],
|
|
61
|
-
[7.109270095825195, 50.734268655851345],
|
|
62
|
-
[7.109270095825195, 50.73824770380063],
|
|
63
|
-
[7.1031761169433585, 50.73824770380063],
|
|
64
|
-
[7.1031761169433585, 50.734268655851345]
|
|
65
|
-
]]))
|
|
66
|
-
.transform('EPSG:4326', projection);
|
|
67
|
-
case 'Line':
|
|
68
|
-
return (new LineString_1.default([
|
|
69
|
-
[7.062578201293945, 50.721786104206004],
|
|
70
|
-
[7.077512741088867, 50.729610159968296],
|
|
71
|
-
[7.082319259643555, 50.732435192351126],
|
|
72
|
-
[7.097940444946289, 50.73748722929948],
|
|
73
|
-
[7.106866836547852, 50.73775882875318],
|
|
74
|
-
[7.117509841918945, 50.73889952925885],
|
|
75
|
-
[7.129182815551758, 50.7504679214779]
|
|
76
|
-
]))
|
|
77
|
-
.transform('EPSG:4326', projection);
|
|
78
|
-
default:
|
|
79
|
-
return (new Point_1.default([7.10066, 50.735851]))
|
|
80
|
-
.transform('EPSG:4326', projection);
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
};
|
|
84
|
-
return StyleUtil;
|
|
85
|
-
}());
|
|
86
|
-
exports.default = StyleUtil;
|
|
87
|
-
//# sourceMappingURL=StyleUtil.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StyleUtil.js","sourceRoot":"","sources":["../../src/Util/StyleUtil.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;;;;;AAGH,wDAAwC;AACxC,kEAAkD;AAClD,4DAA4C;AAG5C;;GAEG;AACH;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,iBAAiB,CAAC;wBACtC,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;wBACtC,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;wBACtC,CAAC,iBAAiB,EAAE,gBAAgB,CAAC;qBACtC,CAAC,CAAC;yBACA,SAAS,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;gBACxC;oBACE,OAAO,CAAC,IAAI,eAAW,CAAC,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC;yBAC3C,SAAS,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;aACzC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;IACJ,gBAAC;CAAA,AA5CD,IA4CC;AAED,kBAAe,SAAS,CAAC","sourcesContent":["/* Released under the BSD 2-Clause License\n *\n * Copyright © 2018-present, terrestris GmbH & Co. KG and GeoStyler contributors\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * this list of conditions and the following disclaimer.\n *\n * * Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the documentation\n * and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\nimport { Style } from 'geostyler-style';\nimport OlGeomPoint from 'ol/geom/Point';\nimport OlGeomLineString from 'ol/geom/LineString';\nimport OlGeomPolygon from 'ol/geom/Polygon';\nimport { ProjectionLike } from 'ol/proj';\n\n/**\n * @class StyleUtil\n */\nclass StyleUtil {\n\n static getSampleGeomFromStyle = (style: Style, projection: ProjectionLike) => {\n const kinds: string[] = [];\n style.rules.forEach(rule => {\n rule.symbolizers.forEach(symbolizer => {\n if (!kinds.includes(symbolizer.kind)) {\n kinds.push(symbolizer.kind);\n }\n });\n });\n return kinds.map(kind => {\n switch (kind) {\n case 'Mark':\n case 'Icon':\n case 'Text':\n return (new OlGeomPoint([7.10066, 50.735851]))\n .transform('EPSG:4326', projection);\n case 'Fill':\n return (new OlGeomPolygon([[\n [7.1031761169433585, 50.734268655851345],\n [7.109270095825195, 50.734268655851345],\n [7.109270095825195, 50.73824770380063],\n [7.1031761169433585, 50.73824770380063],\n [7.1031761169433585, 50.734268655851345]\n ]]))\n .transform('EPSG:4326', projection);\n case 'Line':\n return (new OlGeomLineString([\n [7.062578201293945, 50.721786104206004],\n [7.077512741088867, 50.729610159968296],\n [7.082319259643555, 50.732435192351126],\n [7.097940444946289, 50.73748722929948],\n [7.106866836547852, 50.73775882875318],\n [7.117509841918945, 50.73889952925885],\n [7.129182815551758, 50.7504679214779]\n ]))\n .transform('EPSG:4326', projection);\n default:\n return (new OlGeomPoint([7.10066, 50.735851]))\n .transform('EPSG:4326', projection);\n }\n });\n };\n}\n\nexport default StyleUtil;\n"]}
|