lowcoder-comps 0.0.31 → 0.0.32

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.
Files changed (86) hide show
  1. package/1e5cb9c2.js +447 -0
  2. package/24307cf2.js +25 -0
  3. package/256b619e.js +92 -0
  4. package/2b031be2.js +2967 -0
  5. package/2ff2c7a6.js +6 -0
  6. package/2ff7471d.js +9 -0
  7. package/444e09f1.js +268 -0
  8. package/4564a1bc.js +86 -0
  9. package/4a489df6.js +8 -0
  10. package/4a860f5d.js +505 -0
  11. package/4cc9caa5.js +2501 -0
  12. package/64d87c95.js +1536 -0
  13. package/6deaf0be.js +881 -0
  14. package/794e64d5.js +208 -0
  15. package/7a3f27e4.js +391 -0
  16. package/7ae6dd1c.js +319 -0
  17. package/92e85b65.js +65 -0
  18. package/97059d88.js +237 -0
  19. package/98955949.js +134435 -0
  20. package/a408f817.js +796 -0
  21. package/a40faea7.js +11624 -0
  22. package/a969f4ca.js +48428 -0
  23. package/aa1becc7.js +455 -0
  24. package/aa82b740.js +1269 -0
  25. package/c289b0aa.js +1102 -0
  26. package/c4d99b09.js +5 -0
  27. package/c9bb75eb.js +960 -0
  28. package/cb40fdd9.js +933 -0
  29. package/cc799554.js +1276 -0
  30. package/d3700d97.js +2284 -0
  31. package/d622fb26.js +818 -0
  32. package/d8c50a91.js +34 -0
  33. package/dce9fa3f.js +769 -0
  34. package/de8c90a7.js +1284 -0
  35. package/debd9490.js +819 -0
  36. package/df803461.js +220 -0
  37. package/e06dcfb0.js +1089 -0
  38. package/e6388bfd.js +915 -0
  39. package/ee801edf.js +804 -0
  40. package/f7c6b13d.js +19104 -0
  41. package/f8b68c1a.js +1127 -0
  42. package/f9637058.js +16 -0
  43. package/fcee2d3c.js +64 -0
  44. package/fd51bb2f.js +1579 -0
  45. package/index.js +5 -0
  46. package/package.json +4 -3
  47. package/README.md +0 -120
  48. package/index.html +0 -26
  49. package/index.tsx +0 -21
  50. package/jest.config.js +0 -6
  51. package/src/__test__/allComp.test.tsx +0 -61
  52. package/src/app-env.d.ts +0 -3
  53. package/src/comps/calendarComp/calendarComp.tsx +0 -633
  54. package/src/comps/calendarComp/calendarConstants.tsx +0 -1048
  55. package/src/comps/calendarComp/errorBoundary.tsx +0 -30
  56. package/src/comps/chartComp/chartComp.tsx +0 -442
  57. package/src/comps/chartComp/chartConfigs/barChartConfig.tsx +0 -51
  58. package/src/comps/chartComp/chartConfigs/cartesianAxisConfig.tsx +0 -307
  59. package/src/comps/chartComp/chartConfigs/chartUrls.tsx +0 -9
  60. package/src/comps/chartComp/chartConfigs/legendConfig.tsx +0 -55
  61. package/src/comps/chartComp/chartConfigs/lineChartConfig.tsx +0 -96
  62. package/src/comps/chartComp/chartConfigs/pieChartConfig.tsx +0 -83
  63. package/src/comps/chartComp/chartConfigs/scatterChartConfig.tsx +0 -62
  64. package/src/comps/chartComp/chartConstants.tsx +0 -299
  65. package/src/comps/chartComp/chartPropertyView.tsx +0 -235
  66. package/src/comps/chartComp/chartUtils.ts +0 -291
  67. package/src/comps/chartComp/reactEcharts/core.tsx +0 -194
  68. package/src/comps/chartComp/reactEcharts/index.ts +0 -21
  69. package/src/comps/chartComp/reactEcharts/types.ts +0 -76
  70. package/src/comps/chartComp/seriesComp.tsx +0 -119
  71. package/src/comps/imageEditorComp/imageEditorClass.tsx +0 -52
  72. package/src/comps/imageEditorComp/imageEditorConstants.tsx +0 -109
  73. package/src/comps/imageEditorComp/index.tsx +0 -184
  74. package/src/comps/mermaidComp/index.tsx +0 -44
  75. package/src/comps/mermaidComp/mermaid.tsx +0 -29
  76. package/src/global.ts +0 -1
  77. package/src/i18n/comps/index.tsx +0 -29
  78. package/src/i18n/comps/locales/en.ts +0 -163
  79. package/src/i18n/comps/locales/enObj.tsx +0 -198
  80. package/src/i18n/comps/locales/index.ts +0 -7
  81. package/src/i18n/comps/locales/types.tsx +0 -10
  82. package/src/i18n/comps/locales/zh.ts +0 -156
  83. package/src/i18n/comps/locales/zhObj.tsx +0 -4
  84. package/src/index.ts +0 -11
  85. package/tsconfig.json +0 -22
  86. package/vite.config.js +0 -10
@@ -1,307 +0,0 @@
1
- import { XAXisComponentOption, YAXisComponentOption } from "echarts";
2
- import { ChartSize, XAxisDirectionType } from "../chartConstants";
3
- import { i18n } from "lowcoder-core";
4
- import {
5
- MultiCompBuilder,
6
- withContext,
7
- NumberControl,
8
- StringControl,
9
- dropdownControl,
10
- JSONValue,
11
- isNumeric,
12
- } from "lowcoder-sdk";
13
- import { i18nObjs, trans } from "i18n/comps";
14
- import _, { isNil } from "lodash";
15
- import { xAxisTypeUrl } from "./chartUrls";
16
-
17
- const XAxisTypeOptions = [
18
- {
19
- label: trans("chart.auto"),
20
- value: "default",
21
- },
22
- {
23
- label: trans("chart.categoryAxis"),
24
- value: "category",
25
- },
26
- {
27
- label: trans("chart.valueAxis"),
28
- value: "value",
29
- },
30
- {
31
- label: trans("chart.timeAxis"),
32
- value: "time",
33
- },
34
- {
35
- label: trans("chart.logAxis"),
36
- value: "log",
37
- },
38
- ] as const;
39
-
40
- const YAxisTypeOptions = [
41
- {
42
- label: trans("chart.valueAxis"),
43
- value: "value",
44
- },
45
- {
46
- label: trans("chart.categoryAxis"),
47
- value: "category",
48
- },
49
- {
50
- label: trans("chart.timeAxis"),
51
- value: "time",
52
- },
53
- {
54
- label: trans("chart.logAxis"),
55
- value: "log",
56
- },
57
- ] as const;
58
-
59
- export type EchartsAxisType = "category" | "value" | "time" | "log";
60
-
61
- const axisCommonMap = {
62
- axisName: StringControl,
63
- logBase: NumberControl,
64
- };
65
-
66
- export const AxisFormatterComp = withContext(
67
- new MultiCompBuilder({ value: StringControl }, (props) => props.value)
68
- .setPropertyViewFn((children) =>
69
- children.value.propertyView({
70
- label: trans("chart.yAxisDataFormat"),
71
- placeholder: "{{value}}",
72
- tooltip: trans("chart.yAxisDataFormatTooltip"),
73
- })
74
- )
75
- .build(),
76
- ["value"] as const
77
- );
78
-
79
- export const XAxisConfig = (function () {
80
- return new MultiCompBuilder(
81
- {
82
- ...axisCommonMap,
83
- type: dropdownControl(XAxisTypeOptions, "default"),
84
- },
85
- (props): XAXisComponentOption => {
86
- const config: XAXisComponentOption = {
87
- name: props.axisName,
88
- nameGap: 22,
89
- // @ts-ignore
90
- nameLocation: "middle",
91
- };
92
- if (props.type !== "default") {
93
- // don't assign value for default value, compute it in the end
94
- config.type = props.type;
95
- }
96
- return config;
97
- }
98
- )
99
- .setPropertyViewFn((children) => (
100
- <>
101
- {children.axisName.propertyView({
102
- label: trans("chart.xAxisName"),
103
- })}
104
- {children.type.propertyView({
105
- label: trans("chart.xAxisType"),
106
- tooltip: (
107
- <>
108
- {trans("chart.xAxisTypeTooltip")}
109
- <a href={xAxisTypeUrl} target="_blank" rel="noreferrer">
110
- {trans("chart.xAxisType")}
111
- </a>
112
- </>
113
- ),
114
- })}
115
- {children.type.getView() === "log" &&
116
- children.logBase.propertyView({
117
- label: trans("chart.logBase"),
118
- })}
119
- </>
120
- ))
121
- .build();
122
- })();
123
-
124
- export const YAxisConfig = (function () {
125
- return new MultiCompBuilder(
126
- {
127
- ...axisCommonMap,
128
- // the old data has "type" field with default value "category". change field name to "yAxisType" for compatibility
129
- yAxisType: dropdownControl(YAxisTypeOptions, "value"),
130
- formatter: AxisFormatterComp,
131
- },
132
- (props) => () => {
133
- const config: YAXisComponentOption = {
134
- name: props.axisName,
135
- type: props.yAxisType,
136
- nameTextStyle: {
137
- align: "left",
138
- },
139
- };
140
- const numberFormat = new Intl.NumberFormat(i18n.locales, {
141
- notation: "compact",
142
- });
143
- (config.axisLabel as any) = {
144
- formatter: (value: string | number) => {
145
- const res = (props.formatter as any)({ value: value });
146
- if (!isNil(res) && res !== "") {
147
- return res;
148
- }
149
- if (
150
- (props.yAxisType === "value" || props.yAxisType === "log") &&
151
- typeof value === "number"
152
- ) {
153
- return numberFormat.format(value);
154
- }
155
- return value + "";
156
- },
157
- };
158
- if (props.yAxisType === "log") {
159
- (config as any).logBase = props.logBase || 10;
160
- }
161
- return config;
162
- }
163
- )
164
- .setPropertyViewFn((children) => (
165
- <>
166
- {children.axisName.propertyView({
167
- label: trans("chart.yAxisName"),
168
- })}
169
- {children.yAxisType.propertyView({
170
- label: trans("chart.yAxisType"),
171
- })}
172
- {children.yAxisType.getView() === "log" &&
173
- children.logBase.propertyView({
174
- label: trans("chart.logBase"),
175
- })}
176
- {children.formatter.getPropertyView()}
177
- </>
178
- ))
179
- .build();
180
- })();
181
-
182
- function calcXAxisType(xAxisData: Array<JSONValue | undefined>): EchartsAxisType {
183
- if (!xAxisData || xAxisData.length <= 0) {
184
- return "category";
185
- }
186
- const sampleData = xAxisData[0];
187
- if (!sampleData) {
188
- return "category";
189
- }
190
- if (isNumeric(sampleData)) {
191
- return "value";
192
- } else if (!isNaN(new Date(sampleData.toString()).getDate())) {
193
- return "time";
194
- } else {
195
- return "category";
196
- }
197
- }
198
-
199
- const dateInterval = {
200
- year: 3600 * 24 * 1000 * 365,
201
- month: 3600 * 24 * 1000 * 28,
202
- day: 3600 * 24 * 1000,
203
- };
204
-
205
- function calcTimeInterval(xAxisData: Array<JSONValue | undefined>) {
206
- const minIntervals = xAxisData.map((data) => {
207
- if (!data) {
208
- // 1 is echarts default value, to make sure axis tick is integer
209
- return 1;
210
- }
211
- const dataLen = data.toString().length;
212
- if (dataLen === 4) {
213
- // year 2022
214
- return dateInterval.year;
215
- } else if (dataLen === 6 || dataLen === 7) {
216
- // month 2022-01 222201
217
- return dateInterval.month;
218
- } else if (dataLen === 10 || dataLen === 8) {
219
- // day 2022-01-01 20220101
220
- return dateInterval.day;
221
- } else {
222
- return 1;
223
- }
224
- });
225
- return _.min(minIntervals);
226
- }
227
-
228
- let measureCanvas: HTMLCanvasElement;
229
-
230
- // calculate x-axis text width
231
- function getXAxisDataLength(xAxisData: Array<JSONValue | undefined>) {
232
- const canvas = measureCanvas || (measureCanvas = document.createElement("canvas"));
233
- const context = canvas.getContext("2d");
234
- if (!context) {
235
- return [];
236
- }
237
- // echarts default font
238
- context.font = "normal 12px sans-serif";
239
- return xAxisData.map((d) => (d ? context.measureText(d.toString()).width + 2 : 0));
240
- }
241
-
242
- export function calcXYConfig(
243
- xConfig: XAXisComponentOption,
244
- yConfig: YAXisComponentOption,
245
- xAxisDirection: XAxisDirectionType,
246
- xAxisData: Array<JSONValue | undefined>,
247
- chartSize?: ChartSize & { right: number }
248
- ) {
249
- const resXConfig = { ...xConfig };
250
- const resYConfig = { ...yConfig };
251
-
252
- if (!resXConfig.type) {
253
- // simple calculate x-axis type
254
- resXConfig.type = calcXAxisType(xAxisData);
255
- }
256
- // x-axis label style adaptive
257
- if (resXConfig.type === "category" && chartSize) {
258
- const xAxisDataLenList = getXAxisDataLength(xAxisData);
259
- // get x-axis single data's max width
260
- const maxDataWidth = _.max(xAxisDataLenList);
261
- const lastDataWidth = xAxisDataLenList[xAxisDataLenList.length - 1];
262
- // grid width
263
- let eachDataWidth = chartSize.w / xAxisData.length;
264
- let rotate = 0;
265
- let labelWidth = maxDataWidth;
266
- // rotate when width is not enough
267
- if (maxDataWidth && eachDataWidth < maxDataWidth && xAxisDirection === "horizontal") {
268
- labelWidth = Math.min(maxDataWidth, 150);
269
- // vertical rotate 0.87 => sin(60) when exceeding the right boundary
270
- const verticalRotate =
271
- lastDataWidth && lastDataWidth * 0.87 > eachDataWidth / 2 + chartSize.right;
272
- rotate = verticalRotate ? 270 : 330;
273
- // to keep x-axis name under label, nameGap is related to label rotation angle
274
- resXConfig.nameGap = verticalRotate ? labelWidth + 5 : labelWidth / 2 + 10;
275
- } else if (xAxisDirection === "vertical" && maxDataWidth) {
276
- // vertical direction
277
- resXConfig.nameGap = maxDataWidth + 10;
278
- }
279
- resXConfig.axisLabel = {
280
- interval: 0,
281
- width: labelWidth,
282
- // @ts-ignore
283
- overflow: "truncate",
284
- rotate: rotate,
285
- };
286
- } else if (resXConfig.type === "time") {
287
- (resXConfig as any).minInterval = calcTimeInterval(xAxisData);
288
- const timeXAxisLabel = i18nObjs.timeXAxisLabel;
289
- if (timeXAxisLabel) {
290
- resXConfig.axisLabel = timeXAxisLabel;
291
- }
292
- }
293
- if (xAxisDirection === "vertical") {
294
- resYConfig.nameLocation = "middle";
295
- resYConfig.nameGap = 25;
296
- }
297
-
298
- return xAxisDirection === "horizontal"
299
- ? {
300
- xConfig: resXConfig,
301
- yConfig: resYConfig,
302
- }
303
- : {
304
- xConfig: resYConfig,
305
- yConfig: resXConfig,
306
- };
307
- }
@@ -1,9 +0,0 @@
1
- import { language } from "i18n/comps";
2
-
3
- const echartsUrlLocale = language === "zh" ? "zh" : "en";
4
- export const optionUrl = `https://echarts.apache.org/${echartsUrlLocale}/option.html`;
5
- export const examplesUrl = `https://echarts.apache.org/examples/${echartsUrlLocale}/index.html`;
6
- export const xAxisTypeUrl = `${optionUrl}#xAxis.type`;
7
- export const googleMapsApiUrl = `https://maps.googleapis.com/maps/api/js`;
8
- export const mapOptionUrl = `https://github.com/plainheart/echarts-extension-gmap`;
9
- export const mapExamplesUrl = `https://codepen.io/plainheart/pen/VweLGbR`;
@@ -1,55 +0,0 @@
1
- import {
2
- AlignBottom,
3
- AlignClose,
4
- AlignRight,
5
- dropdownControl,
6
- MultiCompBuilder,
7
- } from "lowcoder-sdk";
8
- import { LegendComponentOption } from "echarts";
9
- import { trans } from "i18n/comps";
10
-
11
- const LegendPositionOptions = [
12
- {
13
- label: <AlignBottom />,
14
- value: "bottom",
15
- },
16
- {
17
- label: <AlignRight />,
18
- value: "right",
19
- },
20
- {
21
- label: <AlignClose />,
22
- value: "close",
23
- },
24
- ] as const;
25
-
26
- export const LegendConfig = (function () {
27
- return new MultiCompBuilder(
28
- {
29
- position: dropdownControl(LegendPositionOptions, "bottom"),
30
- },
31
- (props): LegendComponentOption => {
32
- const config: LegendComponentOption = {
33
- top: "bottom",
34
- type: "scroll",
35
- };
36
- if (props.position === "right") {
37
- config.top = "center";
38
- config.left = "right";
39
- config.orient = "vertical";
40
- } else if (props.position === "close") {
41
- config.show = false;
42
- }
43
- return config;
44
- }
45
- )
46
- .setPropertyViewFn((children) => (
47
- <>
48
- {children.position.propertyView({
49
- label: trans("chart.legendPosition"),
50
- radioButton: true,
51
- })}
52
- </>
53
- ))
54
- .build();
55
- })();
@@ -1,96 +0,0 @@
1
- import { LineSeriesOption } from "echarts";
2
- import {
3
- MultiCompBuilder,
4
- BoolControl,
5
- dropdownControl,
6
- showLabelPropertyView,
7
- withContext,
8
- StringControl,
9
- ColorOrBoolCodeControl,
10
- } from "lowcoder-sdk";
11
- import { trans } from "i18n/comps";
12
-
13
- const BarTypeOptions = [
14
- {
15
- label: trans("chart.basicLine"),
16
- value: "basicLine",
17
- },
18
- {
19
- label: trans("chart.stackedLine"),
20
- value: "stackedLine",
21
- },
22
- {
23
- label: trans("chart.areaLine"),
24
- value: "areaLine",
25
- },
26
- ] as const;
27
-
28
- export const ItemColorComp = withContext(
29
- new MultiCompBuilder({ value: ColorOrBoolCodeControl }, (props) => props.value)
30
- .setPropertyViewFn((children) =>
31
- children.value.propertyView({
32
- label: trans("chart.pointColorLabel"),
33
- placeholder: "{{value < 25000}}",
34
- tooltip: trans("chart.pointColorTooltip"),
35
- })
36
- )
37
- .build(),
38
- ["seriesName", "value"] as const
39
- );
40
-
41
- export const LineChartConfig = (function () {
42
- return new MultiCompBuilder(
43
- {
44
- showLabel: BoolControl,
45
- type: dropdownControl(BarTypeOptions, "basicLine"),
46
- smooth: BoolControl,
47
- itemColor: ItemColorComp,
48
- },
49
- (props): LineSeriesOption => {
50
- const config: LineSeriesOption = {
51
- type: "line",
52
- label: {
53
- show: props.showLabel,
54
- },
55
- itemStyle: {
56
- color: (params) => {
57
- if (!params.encode || !params.dimensionNames) {
58
- return params.color;
59
- }
60
- const dataKey = params.dimensionNames[params.encode["y"][0]];
61
- const color = (props.itemColor as any)({
62
- seriesName: params.seriesName,
63
- value: (params.data as any)[dataKey],
64
- });
65
- if (color === "true") {
66
- return "red";
67
- } else if (color === "false" || !color) {
68
- return params.color;
69
- }
70
- return color;
71
- },
72
- },
73
- };
74
- if (props.type === "stackedLine") {
75
- config.stack = "stackValue";
76
- } else if (props.type === "areaLine") {
77
- config.areaStyle = {};
78
- }
79
- if (props.smooth) {
80
- config.smooth = true;
81
- }
82
- return config;
83
- }
84
- )
85
- .setPropertyViewFn((children) => (
86
- <>
87
- {children.type.propertyView({
88
- label: trans("chart.lineType"),
89
- })}
90
- {showLabelPropertyView(children)}
91
- {children.smooth.propertyView({ label: trans("chart.smooth") })}
92
- {children.itemColor.getPropertyView()}
93
- </>
94
- ))
95
- .build();
96
- })();
@@ -1,83 +0,0 @@
1
- import { MultiCompBuilder } from "lowcoder-sdk";
2
- import { PieSeriesOption } from "echarts";
3
- import { dropdownControl } from "lowcoder-sdk";
4
- import { ConstructorToView } from "lowcoder-core";
5
- import { trans } from "i18n/comps";
6
-
7
- const BarTypeOptions = [
8
- {
9
- label: trans("chart.basicPie"),
10
- value: "basicPie",
11
- },
12
- {
13
- label: trans("chart.doughnutPie"),
14
- value: "doughnutPie",
15
- },
16
- {
17
- label: trans("chart.rosePie"),
18
- value: "rosePie",
19
- },
20
- ] as const;
21
-
22
- // radius percent for each pie chart when one line has [1, 2, 3] pie charts
23
- const pieRadiusConfig = [65, 35, 20];
24
-
25
- type PieConfigViewType = ConstructorToView<typeof PieChartConfig>;
26
-
27
- export const PieChartConfig = (function () {
28
- return new MultiCompBuilder(
29
- {
30
- type: dropdownControl(BarTypeOptions, "basicPie"),
31
- },
32
- (props): PieSeriesOption => {
33
- const config: PieSeriesOption = {
34
- type: "pie",
35
- label: {
36
- show: true,
37
- formatter: "{d}%",
38
- },
39
- };
40
- if (props.type === "rosePie") {
41
- config.roseType = "area";
42
- } else if (props.type === "doughnutPie") {
43
- config.radius = ["40%", "60%"];
44
- }
45
- return config;
46
- }
47
- )
48
- .setPropertyViewFn((children) => (
49
- <>
50
- {children.type.propertyView({
51
- label: trans("chart.pieType"),
52
- })}
53
- </>
54
- ))
55
- .build();
56
- })();
57
-
58
- export function getPieRadiusAndCenter(
59
- seriesLength: number,
60
- pieIndex: number,
61
- pieConfig: PieConfigViewType
62
- ) {
63
- const columnPieNum = Math.min(seriesLength, pieRadiusConfig.length);
64
- const radiusNumber = pieRadiusConfig[columnPieNum - 1];
65
- const isDoughnutPie = Array.isArray(pieConfig.radius);
66
- const radius = isDoughnutPie
67
- ? [(radiusNumber / 1.6).toFixed(2) + "%", radiusNumber + "%"]
68
- : radiusNumber + "%";
69
-
70
- /*** calculate center coordinates ***/
71
- const pieDiameter = 100 / columnPieNum;
72
- const xPosition = (pieDiameter * (pieIndex % columnPieNum) + pieDiameter / 2).toFixed(2) + "%";
73
- const rowIndex = Math.floor(pieIndex / columnPieNum) + 1;
74
- const yPosition =
75
- ((100 / Math.floor((columnPieNum * 2 + seriesLength - 1) / columnPieNum)) * rowIndex).toFixed(
76
- 2
77
- ) + "%";
78
- // log.log("Echarts height: index:", pieConfig, radius, pieIndex, xPosition, yPosition);
79
- return {
80
- radius: radius,
81
- center: [xPosition, yPosition],
82
- } as const;
83
- }
@@ -1,62 +0,0 @@
1
- import {
2
- MultiCompBuilder,
3
- dropdownControl,
4
- BoolControl,
5
- showLabelPropertyView,
6
- } from "lowcoder-sdk";
7
- import { ScatterSeriesOption } from "echarts";
8
- import { trans } from "i18n/comps";
9
-
10
- const ScatterShapeOptions = [
11
- {
12
- label: trans("chart.circle"),
13
- value: "circle",
14
- },
15
- {
16
- label: trans("chart.rect"),
17
- value: "rect",
18
- },
19
- {
20
- label: trans("chart.triangle"),
21
- value: "triangle",
22
- },
23
- {
24
- label: trans("chart.diamond"),
25
- value: "diamond",
26
- },
27
- {
28
- label: trans("chart.pin"),
29
- value: "pin",
30
- },
31
- {
32
- label: trans("chart.arrow"),
33
- value: "arrow",
34
- },
35
- ] as const;
36
-
37
- export const ScatterChartConfig = (function () {
38
- return new MultiCompBuilder(
39
- {
40
- showLabel: BoolControl,
41
- shape: dropdownControl(ScatterShapeOptions, "circle"),
42
- },
43
- (props): ScatterSeriesOption => {
44
- return {
45
- type: "scatter",
46
- symbol: props.shape,
47
- label: {
48
- show: props.showLabel,
49
- },
50
- };
51
- }
52
- )
53
- .setPropertyViewFn((children) => (
54
- <>
55
- {showLabelPropertyView(children)}
56
- {children.shape.propertyView({
57
- label: trans("chart.scatterShape"),
58
- })}
59
- </>
60
- ))
61
- .build();
62
- })();