geostyler 18.2.1 → 18.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 +1 -1
- package/browser/geostyler.iife.js +58 -101
- package/dist/Component/ExpressionInput/NumberExpressionInput/NumberExpressionInput.js +42 -37
- package/dist/Component/Symbolizer/Field/PlacementField/PlacementField.d.ts +14 -0
- package/dist/Component/Symbolizer/Field/PlacementField/PlacementField.js +33 -0
- package/dist/Component/Symbolizer/Field/RepeatField/RepeatField.d.ts +13 -0
- package/dist/Component/Symbolizer/Field/RepeatField/RepeatField.js +27 -0
- package/dist/Component/Symbolizer/TextEditor/TextEditor.d.ts +4 -0
- package/dist/Component/Symbolizer/TextEditor/TextEditor.js +144 -101
- package/dist/index.d.ts +1 -0
- package/dist/index.js +82 -80
- package/dist/locale/cs_CZ.js +12 -3
- package/dist/locale/de_DE.js +10 -1
- package/dist/locale/en_US.js +10 -1
- package/dist/locale/es_ES.js +10 -1
- package/dist/locale/fr_FR.js +10 -1
- package/dist/locale/locale.d.ts +9 -0
- package/dist/locale/pl_PL.js +10 -1
- package/dist/locale/zh_CN.js +10 -1
- package/package.json +5 -5
|
@@ -1,61 +1,65 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { useState as j } from "react";
|
|
1
|
+
import { jsx as t, jsxs as e, Fragment as I } from "react/jsx-runtime";
|
|
2
|
+
import { useState as S, useEffect as j } from "react";
|
|
3
3
|
import { Slider as k, InputNumber as b, Button as N } from "antd";
|
|
4
4
|
import { FunctionUI as w } from "../../FunctionUI/FunctionUI.js";
|
|
5
|
-
import { isGeoStylerFunction as
|
|
6
|
-
import { FunctionOutlined as
|
|
5
|
+
import { isGeoStylerFunction as l } from "geostyler-style";
|
|
6
|
+
import { FunctionOutlined as x } from "@ant-design/icons";
|
|
7
7
|
/* empty css */
|
|
8
|
-
const
|
|
9
|
-
slider:
|
|
10
|
-
sliderProps:
|
|
8
|
+
const z = ({
|
|
9
|
+
slider: V = !1,
|
|
10
|
+
sliderProps: f = {},
|
|
11
11
|
/* more safety */
|
|
12
12
|
onChange: r,
|
|
13
|
-
onCancel:
|
|
14
|
-
value:
|
|
13
|
+
onCancel: p,
|
|
14
|
+
value: i,
|
|
15
15
|
className: d,
|
|
16
|
-
inputProps:
|
|
16
|
+
inputProps: y = {},
|
|
17
17
|
/* more safety */
|
|
18
|
-
functionUiProps:
|
|
18
|
+
functionUiProps: F
|
|
19
19
|
}) => {
|
|
20
|
-
let
|
|
21
|
-
d && (
|
|
22
|
-
const [
|
|
23
|
-
return
|
|
20
|
+
let u = "number-expression-input";
|
|
21
|
+
d && (u += ` ${d}`);
|
|
22
|
+
const [o, c] = S(() => l(i) ? void 0 : i);
|
|
23
|
+
return j(() => {
|
|
24
|
+
l(i) || c(i);
|
|
25
|
+
}, [i]), l(i) ? /* @__PURE__ */ t("span", { className: u, children: /* @__PURE__ */ t(
|
|
24
26
|
w,
|
|
25
27
|
{
|
|
26
28
|
type: "number",
|
|
27
|
-
value:
|
|
28
|
-
...
|
|
29
|
+
value: i,
|
|
30
|
+
...F,
|
|
29
31
|
onChange: r,
|
|
30
|
-
onCancel: () =>
|
|
32
|
+
onCancel: () => p == null ? void 0 : p("number")
|
|
31
33
|
}
|
|
32
|
-
) }) : /* @__PURE__ */ t("span", { className:
|
|
34
|
+
) }) : /* @__PURE__ */ t("span", { className: u, children: V ? /* @__PURE__ */ e("div", { className: "slider-wrapper", children: [
|
|
33
35
|
/* @__PURE__ */ t(
|
|
34
36
|
k,
|
|
35
37
|
{
|
|
36
|
-
...
|
|
37
|
-
value:
|
|
38
|
+
...f,
|
|
39
|
+
value: o,
|
|
38
40
|
range: !1,
|
|
39
|
-
onChange: (
|
|
40
|
-
|
|
41
|
+
onChange: (s) => {
|
|
42
|
+
const m = s === null ? void 0 : Number(s);
|
|
43
|
+
r == null || r(m), c(m);
|
|
41
44
|
}
|
|
42
45
|
}
|
|
43
46
|
),
|
|
44
|
-
/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ e("div", { className: "number-wrapper", children: [
|
|
45
48
|
/* @__PURE__ */ t(
|
|
46
49
|
b,
|
|
47
50
|
{
|
|
48
|
-
...
|
|
49
|
-
value:
|
|
50
|
-
onChange: (
|
|
51
|
-
|
|
51
|
+
...f,
|
|
52
|
+
value: o,
|
|
53
|
+
onChange: (s) => {
|
|
54
|
+
const m = s === null ? void 0 : Number(s);
|
|
55
|
+
r == null || r(m), c(m);
|
|
52
56
|
}
|
|
53
57
|
}
|
|
54
58
|
),
|
|
55
59
|
/* @__PURE__ */ t(
|
|
56
60
|
N,
|
|
57
61
|
{
|
|
58
|
-
icon: /* @__PURE__ */ t(
|
|
62
|
+
icon: /* @__PURE__ */ t(x, {}),
|
|
59
63
|
onClick: () => {
|
|
60
64
|
r == null || r({
|
|
61
65
|
name: "property",
|
|
@@ -65,21 +69,22 @@ const q = ({
|
|
|
65
69
|
}
|
|
66
70
|
)
|
|
67
71
|
] })
|
|
68
|
-
] }) : /* @__PURE__ */
|
|
72
|
+
] }) : /* @__PURE__ */ e(I, { children: [
|
|
69
73
|
/* @__PURE__ */ t(
|
|
70
74
|
b,
|
|
71
75
|
{
|
|
72
|
-
value:
|
|
73
|
-
onChange: (
|
|
74
|
-
|
|
76
|
+
value: i,
|
|
77
|
+
onChange: (s) => {
|
|
78
|
+
const m = s === null ? void 0 : Number(s);
|
|
79
|
+
r == null || r(m);
|
|
75
80
|
},
|
|
76
|
-
...
|
|
81
|
+
...y
|
|
77
82
|
}
|
|
78
83
|
),
|
|
79
84
|
/* @__PURE__ */ t(
|
|
80
85
|
N,
|
|
81
86
|
{
|
|
82
|
-
icon: /* @__PURE__ */ t(
|
|
87
|
+
icon: /* @__PURE__ */ t(x, {}),
|
|
83
88
|
onClick: () => {
|
|
84
89
|
r == null || r({
|
|
85
90
|
name: "property",
|
|
@@ -91,6 +96,6 @@ const q = ({
|
|
|
91
96
|
] }) });
|
|
92
97
|
};
|
|
93
98
|
export {
|
|
94
|
-
|
|
95
|
-
|
|
99
|
+
z as NumberExpressionInput,
|
|
100
|
+
z as default
|
|
96
101
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Expression, PlacementType, TextSymbolizer } from 'geostyler-style';
|
|
3
|
+
import { StringExpressionSelectProps } from '../../../ExpressionInput/StringExpressionSelect/StringExpressionSelect';
|
|
4
|
+
export interface PlacementFieldProps {
|
|
5
|
+
placementOptions?: PlacementType[];
|
|
6
|
+
onChange?: (placement: TextSymbolizer['placement'] | Expression<string>) => void;
|
|
7
|
+
value?: TextSymbolizer['placement'] | Expression<string>;
|
|
8
|
+
}
|
|
9
|
+
type SelectProps = StringExpressionSelectProps['selectProps'];
|
|
10
|
+
/**
|
|
11
|
+
* PlacementField to select between different placement options
|
|
12
|
+
*/
|
|
13
|
+
export declare const PlacementField: React.FC<PlacementFieldProps & SelectProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { StringExpressionSelect as a } from "../../../ExpressionInput/StringExpressionSelect/StringExpressionSelect.js";
|
|
3
|
+
import { useGeoStylerLocale as m } from "../../../../context/GeoStylerContext/GeoStylerContext.js";
|
|
4
|
+
const u = ({
|
|
5
|
+
onChange: o,
|
|
6
|
+
value: l,
|
|
7
|
+
placementOptions: t = ["point", "line", "line-center"],
|
|
8
|
+
...n
|
|
9
|
+
}) => {
|
|
10
|
+
const i = m("PlacementField"), r = t.map((e) => ({
|
|
11
|
+
label: i.placementOptions[e],
|
|
12
|
+
value: e
|
|
13
|
+
}));
|
|
14
|
+
function c() {
|
|
15
|
+
o(void 0);
|
|
16
|
+
}
|
|
17
|
+
return /* @__PURE__ */ s(
|
|
18
|
+
a,
|
|
19
|
+
{
|
|
20
|
+
className: "editor-field placement-field",
|
|
21
|
+
value: l,
|
|
22
|
+
onChange: (e) => o(e),
|
|
23
|
+
onCancel: c,
|
|
24
|
+
selectProps: {
|
|
25
|
+
...n,
|
|
26
|
+
options: r
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
u as PlacementField
|
|
33
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { NumberExpressionInputProps } from '../../../ExpressionInput/NumberExpressionInput/NumberExpressionInput';
|
|
3
|
+
import { Expression } from 'geostyler-style';
|
|
4
|
+
type InputProps = NumberExpressionInputProps['inputProps'];
|
|
5
|
+
export interface RepeatFieldProps extends InputProps {
|
|
6
|
+
value?: Expression<number>;
|
|
7
|
+
onChange?: (newValue: Expression<number> | undefined) => void;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* RepeatField
|
|
11
|
+
*/
|
|
12
|
+
export declare const RepeatField: React.FC<RepeatFieldProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { NumberExpressionInput as r } from "../../../ExpressionInput/NumberExpressionInput/NumberExpressionInput.js";
|
|
3
|
+
const f = ({
|
|
4
|
+
onChange: t,
|
|
5
|
+
value: i,
|
|
6
|
+
...e
|
|
7
|
+
}) => {
|
|
8
|
+
function l() {
|
|
9
|
+
t(e.defaultValue ? Number(e.defaultValue) : void 0);
|
|
10
|
+
}
|
|
11
|
+
return /* @__PURE__ */ o(
|
|
12
|
+
r,
|
|
13
|
+
{
|
|
14
|
+
className: "editor-field repeat-field",
|
|
15
|
+
value: i,
|
|
16
|
+
onChange: t,
|
|
17
|
+
onCancel: l,
|
|
18
|
+
inputProps: {
|
|
19
|
+
...e,
|
|
20
|
+
min: 0
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
f as RepeatField
|
|
27
|
+
};
|
|
@@ -9,6 +9,8 @@ import { RotateFieldProps } from '../Field/RotateField/RotateField';
|
|
|
9
9
|
import { SizeFieldProps } from '../Field/SizeField/SizeField';
|
|
10
10
|
import { InputConfig } from '../../../context/GeoStylerContext/GeoStylerContext';
|
|
11
11
|
import { VisibilityFieldProps } from '../Field/VisibilityField/VisibilityField';
|
|
12
|
+
import { RepeatFieldProps } from '../Field/RepeatField/RepeatField';
|
|
13
|
+
import { PlacementFieldProps } from '../Field/PlacementField/PlacementField';
|
|
12
14
|
export interface TextEditorComposableProps {
|
|
13
15
|
templateField?: InputConfig<string>;
|
|
14
16
|
colorField?: InputConfig<ColorFieldProps['value']>;
|
|
@@ -23,6 +25,8 @@ export interface TextEditorComposableProps {
|
|
|
23
25
|
haloColorField?: InputConfig<ColorFieldProps['value']>;
|
|
24
26
|
haloWidthField?: InputConfig<WidthFieldProps['value']>;
|
|
25
27
|
visibilityField?: InputConfig<VisibilityFieldProps['value']>;
|
|
28
|
+
placementField?: InputConfig<PlacementFieldProps['value']>;
|
|
29
|
+
repeatField?: InputConfig<RepeatFieldProps['value']>;
|
|
26
30
|
}
|
|
27
31
|
export interface TextEditorInternalProps {
|
|
28
32
|
symbolizer: TextSymbolizer;
|
|
@@ -1,97 +1,109 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Form as r, Mentions as
|
|
1
|
+
import { jsxs as ae, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Form as r, Mentions as ie } from "antd";
|
|
3
3
|
import i from "lodash-es/cloneDeep.js";
|
|
4
|
-
import { ColorField as
|
|
5
|
-
import { OpacityField as
|
|
6
|
-
import { WidthField as
|
|
7
|
-
import { FontPicker as
|
|
8
|
-
import { OffsetField as
|
|
9
|
-
import { RotateField as
|
|
10
|
-
import { useGeoStylerData as
|
|
4
|
+
import { ColorField as P } from "../Field/ColorField/ColorField.js";
|
|
5
|
+
import { OpacityField as se } from "../Field/OpacityField/OpacityField.js";
|
|
6
|
+
import { WidthField as G } from "../Field/WidthField/WidthField.js";
|
|
7
|
+
import { FontPicker as re } from "../Field/FontPicker/FontPicker.js";
|
|
8
|
+
import { OffsetField as R } from "../Field/OffsetField/OffsetField.js";
|
|
9
|
+
import { RotateField as fe } from "../Field/RotateField/RotateField.js";
|
|
10
|
+
import { useGeoStylerData as me, useGeoStylerComposition as ce, useGeoStylerLocale as ue, useGeoStylerUnsupportedProperties as be } from "../../../context/GeoStylerContext/GeoStylerContext.js";
|
|
11
11
|
/* empty css */
|
|
12
|
-
import { VisibilityField as
|
|
13
|
-
import { getFormItemConfig as
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
import { VisibilityField as he } from "../Field/VisibilityField/VisibilityField.js";
|
|
13
|
+
import { getFormItemConfig as Ce } from "../../../Util/FormItemUtil.js";
|
|
14
|
+
import { RepeatField as ye } from "../Field/RepeatField/RepeatField.js";
|
|
15
|
+
import { PlacementField as pe } from "../Field/PlacementField/PlacementField.js";
|
|
16
|
+
const Ee = (j) => {
|
|
17
|
+
const z = me(), k = ce("TextEditor"), E = { ...j, ...k }, {
|
|
18
|
+
colorField: c,
|
|
19
|
+
fontField: m,
|
|
18
20
|
haloColorField: u,
|
|
19
21
|
haloWidthField: b,
|
|
20
22
|
offsetXField: h,
|
|
21
23
|
offsetYField: C,
|
|
22
|
-
onSymbolizerChange:
|
|
24
|
+
onSymbolizerChange: o,
|
|
23
25
|
opacityField: y,
|
|
24
26
|
rotateField: p,
|
|
25
27
|
sizeField: g,
|
|
26
28
|
symbolizer: n,
|
|
27
29
|
templateField: v,
|
|
28
|
-
visibilityField:
|
|
29
|
-
|
|
30
|
+
visibilityField: L,
|
|
31
|
+
placementField: I,
|
|
32
|
+
repeatField: d
|
|
33
|
+
} = E, a = ue("TextEditor"), {
|
|
30
34
|
getFormItemSupportProps: f
|
|
31
|
-
} =
|
|
35
|
+
} = be(n), N = (l) => {
|
|
32
36
|
const e = i(n);
|
|
33
|
-
e.label =
|
|
34
|
-
},
|
|
37
|
+
e.label = l, o && o(e);
|
|
38
|
+
}, T = (l) => {
|
|
35
39
|
const e = i(n);
|
|
36
|
-
e.color =
|
|
37
|
-
},
|
|
40
|
+
e.color = l, o && o(e);
|
|
41
|
+
}, W = (l) => {
|
|
38
42
|
const e = i(n);
|
|
39
|
-
e.font =
|
|
40
|
-
},
|
|
43
|
+
e.font = l.length > 0 ? l : void 0, o && o(e);
|
|
44
|
+
}, w = (l) => {
|
|
41
45
|
const e = i(n);
|
|
42
|
-
e.opacity =
|
|
43
|
-
},
|
|
46
|
+
e.opacity = l, o && o(e);
|
|
47
|
+
}, D = (l) => {
|
|
44
48
|
const e = i(n);
|
|
45
|
-
e.size =
|
|
46
|
-
},
|
|
47
|
-
const e = i(n),
|
|
48
|
-
|
|
49
|
+
e.size = l, o && o(e);
|
|
50
|
+
}, H = (l) => {
|
|
51
|
+
const e = i(n), x = [
|
|
52
|
+
l,
|
|
49
53
|
e.offset ? e.offset[1] : 0
|
|
50
54
|
];
|
|
51
|
-
e.offset =
|
|
52
|
-
},
|
|
53
|
-
const e = i(n),
|
|
55
|
+
e.offset = x, o && o(e);
|
|
56
|
+
}, M = (l) => {
|
|
57
|
+
const e = i(n), x = [
|
|
54
58
|
e.offset ? e.offset[0] : 0,
|
|
55
|
-
|
|
59
|
+
l
|
|
56
60
|
];
|
|
57
|
-
e.offset =
|
|
58
|
-
},
|
|
61
|
+
e.offset = x, o && o(e);
|
|
62
|
+
}, U = (l) => {
|
|
59
63
|
const e = i(n);
|
|
60
|
-
e.rotate =
|
|
61
|
-
},
|
|
64
|
+
e.rotate = l, o && o(e);
|
|
65
|
+
}, _ = (l) => {
|
|
62
66
|
const e = i(n);
|
|
63
|
-
e.haloColor =
|
|
64
|
-
},
|
|
67
|
+
e.haloColor = l, o && o(e);
|
|
68
|
+
}, $ = (l) => {
|
|
65
69
|
const e = i(n);
|
|
66
|
-
e.haloWidth =
|
|
67
|
-
},
|
|
70
|
+
e.haloWidth = l, o && o(e);
|
|
71
|
+
}, q = (l) => {
|
|
68
72
|
const e = i(n);
|
|
69
|
-
e.visibility =
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
73
|
+
e.visibility = l, o && o(e);
|
|
74
|
+
}, A = (l) => {
|
|
75
|
+
const e = i(n);
|
|
76
|
+
e.placement = l, o && o(e);
|
|
77
|
+
}, B = (l) => {
|
|
78
|
+
const e = i(n);
|
|
79
|
+
e.repeat = l, o && o(e);
|
|
80
|
+
}, J = i(n), {
|
|
81
|
+
opacity: K,
|
|
82
|
+
color: Q,
|
|
83
|
+
font: X,
|
|
84
|
+
offset: V,
|
|
85
|
+
size: Y,
|
|
86
|
+
rotate: Z,
|
|
87
|
+
haloColor: F,
|
|
88
|
+
haloWidth: ee,
|
|
89
|
+
visibility: le,
|
|
90
|
+
placement: oe,
|
|
91
|
+
repeat: te
|
|
92
|
+
} = J;
|
|
93
|
+
let O, S;
|
|
94
|
+
V && (O = V[0], S = V[1]);
|
|
95
|
+
const ne = z && z.schema ? Object.keys(z.schema.properties) : [], s = Ce();
|
|
96
|
+
return /* @__PURE__ */ ae("div", { className: "gs-text-symbolizer-editor", children: [
|
|
97
|
+
(L == null ? void 0 : L.visibility) === !1 ? null : /* @__PURE__ */ t(
|
|
86
98
|
r.Item,
|
|
87
99
|
{
|
|
88
100
|
...s,
|
|
89
101
|
label: a.visibilityLabel,
|
|
90
102
|
children: /* @__PURE__ */ t(
|
|
91
|
-
|
|
103
|
+
he,
|
|
92
104
|
{
|
|
93
|
-
value:
|
|
94
|
-
onChange:
|
|
105
|
+
value: le,
|
|
106
|
+
onChange: q
|
|
95
107
|
}
|
|
96
108
|
)
|
|
97
109
|
}
|
|
@@ -103,7 +115,7 @@ const Ie = (j) => {
|
|
|
103
115
|
label: a.templateFieldLabel,
|
|
104
116
|
...f("label"),
|
|
105
117
|
children: /* @__PURE__ */ t(
|
|
106
|
-
|
|
118
|
+
ie,
|
|
107
119
|
{
|
|
108
120
|
className: "editor-field",
|
|
109
121
|
value: n.label || "",
|
|
@@ -112,44 +124,44 @@ const Ie = (j) => {
|
|
|
112
124
|
placeholder: a.templateFieldLabel,
|
|
113
125
|
prefix: "{{",
|
|
114
126
|
notFoundContent: a.attributeNotFound,
|
|
115
|
-
options:
|
|
116
|
-
key:
|
|
117
|
-
value: `${
|
|
118
|
-
label:
|
|
127
|
+
options: ne.map((l) => ({
|
|
128
|
+
key: l,
|
|
129
|
+
value: `${l}}}`,
|
|
130
|
+
label: l
|
|
119
131
|
}))
|
|
120
132
|
}
|
|
121
133
|
)
|
|
122
134
|
}
|
|
123
135
|
),
|
|
124
|
-
(
|
|
136
|
+
(c == null ? void 0 : c.visibility) === !1 ? null : /* @__PURE__ */ t(
|
|
125
137
|
r.Item,
|
|
126
138
|
{
|
|
127
139
|
...s,
|
|
128
140
|
label: a.colorLabel,
|
|
129
141
|
...f("color"),
|
|
130
142
|
children: /* @__PURE__ */ t(
|
|
131
|
-
|
|
143
|
+
P,
|
|
132
144
|
{
|
|
133
|
-
value:
|
|
134
|
-
defaultValue:
|
|
135
|
-
onChange:
|
|
145
|
+
value: Q,
|
|
146
|
+
defaultValue: c == null ? void 0 : c.default,
|
|
147
|
+
onChange: T
|
|
136
148
|
}
|
|
137
149
|
)
|
|
138
150
|
}
|
|
139
151
|
),
|
|
140
|
-
(
|
|
152
|
+
(m == null ? void 0 : m.visibility) === !1 ? null : /* @__PURE__ */ t(
|
|
141
153
|
r.Item,
|
|
142
154
|
{
|
|
143
155
|
...s,
|
|
144
156
|
label: a.fontLabel,
|
|
145
157
|
...f("font"),
|
|
146
158
|
children: /* @__PURE__ */ t(
|
|
147
|
-
|
|
159
|
+
re,
|
|
148
160
|
{
|
|
149
|
-
value:
|
|
150
|
-
defaultValue:
|
|
151
|
-
onChange:
|
|
152
|
-
fonts:
|
|
161
|
+
value: X,
|
|
162
|
+
defaultValue: m == null ? void 0 : m.default,
|
|
163
|
+
onChange: W,
|
|
164
|
+
fonts: m == null ? void 0 : m.fonts
|
|
153
165
|
}
|
|
154
166
|
)
|
|
155
167
|
}
|
|
@@ -161,11 +173,11 @@ const Ie = (j) => {
|
|
|
161
173
|
label: a.opacityLabel,
|
|
162
174
|
...f("opacity"),
|
|
163
175
|
children: /* @__PURE__ */ t(
|
|
164
|
-
|
|
176
|
+
se,
|
|
165
177
|
{
|
|
166
|
-
value:
|
|
178
|
+
value: K,
|
|
167
179
|
defaultValue: y == null ? void 0 : y.default,
|
|
168
|
-
onChange:
|
|
180
|
+
onChange: w
|
|
169
181
|
}
|
|
170
182
|
)
|
|
171
183
|
}
|
|
@@ -177,11 +189,11 @@ const Ie = (j) => {
|
|
|
177
189
|
label: a.sizeLabel,
|
|
178
190
|
...f("size"),
|
|
179
191
|
children: /* @__PURE__ */ t(
|
|
180
|
-
|
|
192
|
+
G,
|
|
181
193
|
{
|
|
182
|
-
value:
|
|
194
|
+
value: Y,
|
|
183
195
|
defaultValue: g == null ? void 0 : g.default,
|
|
184
|
-
onChange:
|
|
196
|
+
onChange: D
|
|
185
197
|
}
|
|
186
198
|
)
|
|
187
199
|
}
|
|
@@ -193,11 +205,11 @@ const Ie = (j) => {
|
|
|
193
205
|
label: a.offsetXLabel,
|
|
194
206
|
...f("offset"),
|
|
195
207
|
children: /* @__PURE__ */ t(
|
|
196
|
-
|
|
208
|
+
R,
|
|
197
209
|
{
|
|
198
|
-
value:
|
|
210
|
+
value: O,
|
|
199
211
|
defaultValue: h == null ? void 0 : h.default,
|
|
200
|
-
onChange:
|
|
212
|
+
onChange: H
|
|
201
213
|
}
|
|
202
214
|
)
|
|
203
215
|
}
|
|
@@ -209,11 +221,11 @@ const Ie = (j) => {
|
|
|
209
221
|
label: a.offsetYLabel,
|
|
210
222
|
...f("offset"),
|
|
211
223
|
children: /* @__PURE__ */ t(
|
|
212
|
-
|
|
224
|
+
R,
|
|
213
225
|
{
|
|
214
|
-
value:
|
|
226
|
+
value: S,
|
|
215
227
|
defaultValue: C == null ? void 0 : C.default,
|
|
216
|
-
onChange:
|
|
228
|
+
onChange: M
|
|
217
229
|
}
|
|
218
230
|
)
|
|
219
231
|
}
|
|
@@ -225,11 +237,11 @@ const Ie = (j) => {
|
|
|
225
237
|
label: a.rotateLabel,
|
|
226
238
|
...f("rotate"),
|
|
227
239
|
children: /* @__PURE__ */ t(
|
|
228
|
-
|
|
240
|
+
fe,
|
|
229
241
|
{
|
|
230
|
-
value:
|
|
242
|
+
value: Z,
|
|
231
243
|
defaultValue: p == null ? void 0 : p.default,
|
|
232
|
-
onChange:
|
|
244
|
+
onChange: U
|
|
233
245
|
}
|
|
234
246
|
)
|
|
235
247
|
}
|
|
@@ -241,11 +253,11 @@ const Ie = (j) => {
|
|
|
241
253
|
label: a.haloColorLabel,
|
|
242
254
|
...f("haloColor"),
|
|
243
255
|
children: /* @__PURE__ */ t(
|
|
244
|
-
|
|
256
|
+
P,
|
|
245
257
|
{
|
|
246
|
-
value:
|
|
258
|
+
value: F,
|
|
247
259
|
defaultValue: u == null ? void 0 : u.default,
|
|
248
|
-
onChange:
|
|
260
|
+
onChange: _
|
|
249
261
|
}
|
|
250
262
|
)
|
|
251
263
|
}
|
|
@@ -257,11 +269,42 @@ const Ie = (j) => {
|
|
|
257
269
|
label: a.haloWidthLabel,
|
|
258
270
|
...f("haloWidth"),
|
|
259
271
|
children: /* @__PURE__ */ t(
|
|
260
|
-
|
|
272
|
+
G,
|
|
261
273
|
{
|
|
262
|
-
value:
|
|
274
|
+
value: ee,
|
|
263
275
|
defaultValue: b == null ? void 0 : b.default,
|
|
264
|
-
onChange:
|
|
276
|
+
onChange: $
|
|
277
|
+
}
|
|
278
|
+
)
|
|
279
|
+
}
|
|
280
|
+
),
|
|
281
|
+
(I == null ? void 0 : I.visibility) === !1 ? null : /* @__PURE__ */ t(
|
|
282
|
+
r.Item,
|
|
283
|
+
{
|
|
284
|
+
...s,
|
|
285
|
+
label: a.placementLabel,
|
|
286
|
+
...f("placement"),
|
|
287
|
+
children: /* @__PURE__ */ t(
|
|
288
|
+
pe,
|
|
289
|
+
{
|
|
290
|
+
value: oe,
|
|
291
|
+
onChange: (l) => A(l)
|
|
292
|
+
}
|
|
293
|
+
)
|
|
294
|
+
}
|
|
295
|
+
),
|
|
296
|
+
(d == null ? void 0 : d.visibility) === !1 ? null : /* @__PURE__ */ t(
|
|
297
|
+
r.Item,
|
|
298
|
+
{
|
|
299
|
+
...s,
|
|
300
|
+
label: a.repeatLabel,
|
|
301
|
+
...f("repeat"),
|
|
302
|
+
children: /* @__PURE__ */ t(
|
|
303
|
+
ye,
|
|
304
|
+
{
|
|
305
|
+
value: te,
|
|
306
|
+
defaultValue: d == null ? void 0 : d.default,
|
|
307
|
+
onChange: B
|
|
265
308
|
}
|
|
266
309
|
)
|
|
267
310
|
}
|
|
@@ -269,5 +312,5 @@ const Ie = (j) => {
|
|
|
269
312
|
] });
|
|
270
313
|
};
|
|
271
314
|
export {
|
|
272
|
-
|
|
315
|
+
Ee as TextEditor
|
|
273
316
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -58,6 +58,7 @@ export { RadiusField } from './Component/Symbolizer/Field/RadiusField/RadiusFiel
|
|
|
58
58
|
export { RasterChannelEditor } from './Component/Symbolizer/RasterChannelEditor/RasterChannelEditor';
|
|
59
59
|
export { RasterEditor } from './Component/Symbolizer/RasterEditor/RasterEditor';
|
|
60
60
|
export { RemovableItem } from './Component/RemovableItem/RemovableItem';
|
|
61
|
+
export { RepeatField } from './Component/Symbolizer/Field/RepeatField/RepeatField';
|
|
61
62
|
export { OlRenderer } from './Component/Renderer/OlRenderer/OlRenderer';
|
|
62
63
|
export { Renderer } from './Component/Renderer/Renderer/Renderer';
|
|
63
64
|
export { RgbChannelField } from './Component/Symbolizer/Field/RgbChannelField/RgbChannelField';
|