geostyler 8.0.2 → 8.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/browser/geostyler.js +1 -1
- package/dist/Component/Filter/ComparisonFilter/ComparisonFilter.css.d.ts +7 -0
- package/dist/Component/Filter/FilterTree/FilterTree.css.d.ts +7 -0
- package/dist/Component/Filter/TextFilterField/TextFilterField.css.d.ts +7 -0
- package/dist/Component/{CompositionContext/CompositionContext.js → Legacy/CodeEditor/CodeEditor.css} +32 -25
- package/dist/Component/Legacy/CodeEditor/CodeEditor.d.ts +131 -0
- package/dist/Component/Legacy/CodeEditor/CodeEditor.js +379 -0
- package/dist/Component/Legacy/CodeEditor/CodeEditor.js.map +1 -0
- package/package.json +7 -7
- package/dist/Component/CompositionContext/CompositionContext.d.ts +0 -85
- package/dist/Component/CompositionContext/CompositionContext.js.map +0 -1
- package/dist/Component/DefaultValueContext/DefaultValueContext.d.ts +0 -59
- package/dist/Component/DefaultValueContext/DefaultValueContext.js +0 -52
- package/dist/Component/DefaultValueContext/DefaultValueContext.js.map +0 -1
- package/dist/Component/OptionsContext/OptionsContext.d.ts +0 -85
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "geostyler",
|
|
3
|
-
"version": "8.0
|
|
3
|
+
"version": "8.1.0",
|
|
4
4
|
"description": "Framework for styling geodata",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
"@types/file-saver": "^2.0.1",
|
|
58
58
|
"@types/geojson": "^7946.0.7",
|
|
59
59
|
"@types/lodash": "^4.14.178",
|
|
60
|
-
"@types/react": "^17.0.
|
|
60
|
+
"@types/react": "^17.0.39",
|
|
61
61
|
"@types/react-color": "^3.0.4",
|
|
62
|
-
"@types/react-dom": "^17.0.
|
|
62
|
+
"@types/react-dom": "^17.0.13",
|
|
63
63
|
"@ungap/url-search-params": "^0.2.2",
|
|
64
64
|
"blob": "^0.1.0",
|
|
65
65
|
"chroma-js": "^2.4.2",
|
|
@@ -123,9 +123,9 @@
|
|
|
123
123
|
"mini-css-extract-plugin": "^2.5.3",
|
|
124
124
|
"np": "^7.6.0",
|
|
125
125
|
"ol": "^6.12.0",
|
|
126
|
-
"react": "^
|
|
126
|
+
"react": "^17.0.2",
|
|
127
127
|
"react-docgen-typescript": "^2.2.2",
|
|
128
|
-
"react-dom": "^
|
|
128
|
+
"react-dom": "^17.0.2",
|
|
129
129
|
"react-styleguidist": "^11.2.0",
|
|
130
130
|
"readdirp": "^3.6.0",
|
|
131
131
|
"replace-in-file": "^6.3.2",
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
"@ant-design/icons": "4.x",
|
|
142
142
|
"antd": "4.x",
|
|
143
143
|
"ol": "6.x",
|
|
144
|
-
"react": "16.x",
|
|
145
|
-
"react-dom": "16.x"
|
|
144
|
+
"react": ">=16.x",
|
|
145
|
+
"react-dom": ">=16.x"
|
|
146
146
|
}
|
|
147
147
|
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Creates the CompositionContext used for customising
|
|
4
|
-
* specified components. Components can be replaced or
|
|
5
|
-
* disabled.
|
|
6
|
-
*
|
|
7
|
-
* Definition of the compositions object.
|
|
8
|
-
* This object can be used for a CompositionContext
|
|
9
|
-
* to describe which components should be replaced
|
|
10
|
-
* or disabled. For replacing a component, another
|
|
11
|
-
* React component needs to be set as value. By
|
|
12
|
-
* assigning "false", the component will be disabled.
|
|
13
|
-
*
|
|
14
|
-
* Important: Context overrides the onChange and value
|
|
15
|
-
* properties for a custom component. This may lead to
|
|
16
|
-
* sideeffects if these props are used elsewhere.
|
|
17
|
-
*/
|
|
18
|
-
export interface Compositions {
|
|
19
|
-
Editor?: {
|
|
20
|
-
kindField?: React.ReactElement | false;
|
|
21
|
-
markEditor?: React.ReactElement | false;
|
|
22
|
-
iconEditor?: React.ReactElement | false;
|
|
23
|
-
lineEditor?: React.ReactElement | false;
|
|
24
|
-
fillEditor?: React.ReactElement | false;
|
|
25
|
-
textEditor?: React.ReactElement | false;
|
|
26
|
-
rasterEditor?: React.ReactElement | false;
|
|
27
|
-
};
|
|
28
|
-
LineEditor?: {
|
|
29
|
-
widthField?: React.ReactElement | false;
|
|
30
|
-
colorField?: React.ReactElement | false;
|
|
31
|
-
opacityField?: React.ReactElement | false;
|
|
32
|
-
lineDashField?: React.ReactElement | false;
|
|
33
|
-
dashOffsetField?: React.ReactElement | false;
|
|
34
|
-
capField?: React.ReactElement | false;
|
|
35
|
-
joinField?: React.ReactElement | false;
|
|
36
|
-
graphicStrokeField?: React.ReactElement | false;
|
|
37
|
-
graphicFillField?: React.ReactElement | false;
|
|
38
|
-
};
|
|
39
|
-
IconEditor?: {
|
|
40
|
-
imageField?: React.ReactElement | false;
|
|
41
|
-
sizeField?: React.ReactElement | false;
|
|
42
|
-
rotateField?: React.ReactElement | false;
|
|
43
|
-
opacityField?: React.ReactElement | false;
|
|
44
|
-
};
|
|
45
|
-
FillEditor?: {
|
|
46
|
-
fillColorField?: React.ReactElement | false;
|
|
47
|
-
fillOpacityField?: React.ReactElement | false;
|
|
48
|
-
outlineColorField?: React.ReactElement | false;
|
|
49
|
-
outlineWidthField?: React.ReactElement | false;
|
|
50
|
-
outlineDasharrayField?: React.ReactElement | false;
|
|
51
|
-
graphicEditorField?: React.ReactElement | false;
|
|
52
|
-
};
|
|
53
|
-
TextEditor?: {
|
|
54
|
-
templateField?: React.ReactElement | false;
|
|
55
|
-
colorField?: React.ReactElement | false;
|
|
56
|
-
fontField?: React.ReactElement | false;
|
|
57
|
-
opacityField?: React.ReactElement | false;
|
|
58
|
-
sizeField?: React.ReactElement | false;
|
|
59
|
-
offsetXField?: React.ReactElement | false;
|
|
60
|
-
offsetYField?: React.ReactElement | false;
|
|
61
|
-
rotateField?: React.ReactElement | false;
|
|
62
|
-
haloColorField?: React.ReactElement | false;
|
|
63
|
-
haloWidthField?: React.ReactElement | false;
|
|
64
|
-
};
|
|
65
|
-
RasterEditor?: {
|
|
66
|
-
opacityField?: React.ReactElement | false;
|
|
67
|
-
contrastEnhancementField?: React.ReactElement | false;
|
|
68
|
-
gammaValueField?: React.ReactElement | false;
|
|
69
|
-
rasterChannelField?: React.ReactElement | false;
|
|
70
|
-
colorMapField?: React.ReactElement | false;
|
|
71
|
-
};
|
|
72
|
-
MarkEditor?: {
|
|
73
|
-
wellKnownNameField?: React.ReactElement | false;
|
|
74
|
-
};
|
|
75
|
-
WellKnownNameEditor?: {
|
|
76
|
-
radiusField?: React.ReactElement | false;
|
|
77
|
-
fillColorField?: React.ReactElement | false;
|
|
78
|
-
fillOpacityField?: React.ReactElement | false;
|
|
79
|
-
strokeColorField?: React.ReactElement | false;
|
|
80
|
-
strokeWidthField?: React.ReactElement | false;
|
|
81
|
-
strokeOpacityField?: React.ReactElement | false;
|
|
82
|
-
rotateField?: React.ReactElement | false;
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
export declare const CompositionContext: React.Context<{}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CompositionContext.js","sourceRoot":"","sources":["../../../src/Component/CompositionContext/CompositionContext.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;;;;;;;;;;;;;;;;;;;;;;AAEH,2CAA+B;AAsFlB,QAAA,kBAAkB,GAAG,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { WellKnownName } from 'geostyler-style';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
/**
|
|
4
|
-
* Creates the DefaultValueContext used for customising
|
|
5
|
-
* default values.
|
|
6
|
-
*/
|
|
7
|
-
export interface DefaultValues {
|
|
8
|
-
LineEditor?: {
|
|
9
|
-
defaultWidth?: number;
|
|
10
|
-
defaultColor?: string;
|
|
11
|
-
defaultOpacity?: number;
|
|
12
|
-
defaultDashOffset?: number;
|
|
13
|
-
defaultCap?: string;
|
|
14
|
-
defaultJoin?: string;
|
|
15
|
-
};
|
|
16
|
-
IconEditor?: {
|
|
17
|
-
defaultImage?: string;
|
|
18
|
-
defaultSize?: number;
|
|
19
|
-
defaultRotate?: number;
|
|
20
|
-
defaultOpacity?: number;
|
|
21
|
-
};
|
|
22
|
-
FillEditor?: {
|
|
23
|
-
defaultFillColor?: string;
|
|
24
|
-
defaultFillOpacity?: number;
|
|
25
|
-
defaultOpacity?: number;
|
|
26
|
-
defaultOutlineColor?: string;
|
|
27
|
-
defaultOutlineWidth?: number;
|
|
28
|
-
defaultOutlineOpacity?: number;
|
|
29
|
-
};
|
|
30
|
-
TextEditor?: {
|
|
31
|
-
defaultLabel?: string;
|
|
32
|
-
defaultColor?: string;
|
|
33
|
-
defaultFont?: string;
|
|
34
|
-
defaultOpacity?: number;
|
|
35
|
-
defaultSize?: number;
|
|
36
|
-
defaultOffsetX?: number;
|
|
37
|
-
defaultOffsetY?: number;
|
|
38
|
-
defaultRotate?: number;
|
|
39
|
-
defaultHaloColor?: string;
|
|
40
|
-
defaultHaloWidth?: number;
|
|
41
|
-
};
|
|
42
|
-
RasterEditor?: {
|
|
43
|
-
defaultOpacity?: number;
|
|
44
|
-
defaultGammaValue?: number;
|
|
45
|
-
};
|
|
46
|
-
MarkEditor?: {
|
|
47
|
-
defaultWellKnownName?: WellKnownName;
|
|
48
|
-
};
|
|
49
|
-
WellKnownNameEditor?: {
|
|
50
|
-
defaultRadius?: string;
|
|
51
|
-
defaultColor?: string;
|
|
52
|
-
defaultOpacity?: number;
|
|
53
|
-
defaultStrokeColor?: string;
|
|
54
|
-
defaultStrokeWidth?: number;
|
|
55
|
-
defaultStrokeOpacity?: number;
|
|
56
|
-
defaultRotate?: number;
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
export declare const DefaultValueContext: React.Context<{}>;
|
|
@@ -1,52 +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 __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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
-
exports.DefaultValueContext = void 0;
|
|
50
|
-
var React = __importStar(require("react"));
|
|
51
|
-
exports.DefaultValueContext = React.createContext({});
|
|
52
|
-
//# sourceMappingURL=DefaultValueContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultValueContext.js","sourceRoot":"","sources":["../../../src/Component/DefaultValueContext/DefaultValueContext.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;;;;;;;;;;;;;;;;;;;;;;AAGH,2CAA+B;AA2DlB,QAAA,mBAAmB,GAAG,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Creates the CompositionContext used for customising
|
|
4
|
-
* specified components. Components can be replaced or
|
|
5
|
-
* disabled.
|
|
6
|
-
*
|
|
7
|
-
* Definition of the compositions object.
|
|
8
|
-
* This object can be used for a CompositionContext
|
|
9
|
-
* to describe which components should be replaced
|
|
10
|
-
* or disabled. For replacing a component, another
|
|
11
|
-
* React component needs to be set as value. By
|
|
12
|
-
* assigning "false", the component will be disabled.
|
|
13
|
-
*
|
|
14
|
-
* Important: Context overrides the onChange and value
|
|
15
|
-
* properties for a custom component. This may lead to
|
|
16
|
-
* sideeffects if these props are used elsewhere.
|
|
17
|
-
*/
|
|
18
|
-
export interface Compositions {
|
|
19
|
-
Editor?: {
|
|
20
|
-
kindField?: React.ReactElement | false;
|
|
21
|
-
markEditor?: React.ReactElement | false;
|
|
22
|
-
iconEditor?: React.ReactElement | false;
|
|
23
|
-
lineEditor?: React.ReactElement | false;
|
|
24
|
-
fillEditor?: React.ReactElement | false;
|
|
25
|
-
textEditor?: React.ReactElement | false;
|
|
26
|
-
rasterEditor?: React.ReactElement | false;
|
|
27
|
-
};
|
|
28
|
-
LineEditor?: {
|
|
29
|
-
widthField?: React.ReactElement | false;
|
|
30
|
-
colorField?: React.ReactElement | false;
|
|
31
|
-
opacityField?: React.ReactElement | false;
|
|
32
|
-
lineDashField?: React.ReactElement | false;
|
|
33
|
-
dashOffsetField?: React.ReactElement | false;
|
|
34
|
-
capField?: React.ReactElement | false;
|
|
35
|
-
joinField?: React.ReactElement | false;
|
|
36
|
-
graphicStrokeField?: React.ReactElement | false;
|
|
37
|
-
graphicFillField?: React.ReactElement | false;
|
|
38
|
-
};
|
|
39
|
-
IconEditor?: {
|
|
40
|
-
imageField?: React.ReactElement | false;
|
|
41
|
-
sizeField?: React.ReactElement | false;
|
|
42
|
-
rotateField?: React.ReactElement | false;
|
|
43
|
-
opacityField?: React.ReactElement | false;
|
|
44
|
-
};
|
|
45
|
-
FillEditor?: {
|
|
46
|
-
fillColorField?: React.ReactElement | false;
|
|
47
|
-
fillOpacityField?: React.ReactElement | false;
|
|
48
|
-
outlineColorField?: React.ReactElement | false;
|
|
49
|
-
outlineWidthField?: React.ReactElement | false;
|
|
50
|
-
outlineDasharrayField?: React.ReactElement | false;
|
|
51
|
-
graphicEditorField?: React.ReactElement | false;
|
|
52
|
-
};
|
|
53
|
-
TextEditor?: {
|
|
54
|
-
templateField?: React.ReactElement | false;
|
|
55
|
-
colorField?: React.ReactElement | false;
|
|
56
|
-
fontField?: React.ReactElement | false;
|
|
57
|
-
opacityField?: React.ReactElement | false;
|
|
58
|
-
sizeField?: React.ReactElement | false;
|
|
59
|
-
offsetXField?: React.ReactElement | false;
|
|
60
|
-
offsetYField?: React.ReactElement | false;
|
|
61
|
-
rotateField?: React.ReactElement | false;
|
|
62
|
-
haloColorField?: React.ReactElement | false;
|
|
63
|
-
haloWidthField?: React.ReactElement | false;
|
|
64
|
-
};
|
|
65
|
-
RasterEditor?: {
|
|
66
|
-
opacityField?: React.ReactElement | false;
|
|
67
|
-
contrastEnhancementField?: React.ReactElement | false;
|
|
68
|
-
gammaValueField?: React.ReactElement | false;
|
|
69
|
-
rasterChannelField?: React.ReactElement | false;
|
|
70
|
-
colorMapField?: React.ReactElement | false;
|
|
71
|
-
};
|
|
72
|
-
MarkEditor?: {
|
|
73
|
-
wellKnownNameField?: React.ReactElement | false;
|
|
74
|
-
};
|
|
75
|
-
WellKnownNameEditor?: {
|
|
76
|
-
radiusField?: React.ReactElement | false;
|
|
77
|
-
fillColorField?: React.ReactElement | false;
|
|
78
|
-
fillOpacityField?: React.ReactElement | false;
|
|
79
|
-
strokeColorField?: React.ReactElement | false;
|
|
80
|
-
strokeWidthField?: React.ReactElement | false;
|
|
81
|
-
strokeOpacityField?: React.ReactElement | false;
|
|
82
|
-
rotateField?: React.ReactElement | false;
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
export declare const CompositionContext: React.Context<{}>;
|