@syncfusion/ej2-maps 31.2.2 → 31.2.12

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 (67) hide show
  1. package/README.md +11 -2
  2. package/dist/ej2-maps.min.js +2 -2
  3. package/dist/ej2-maps.umd.min.js +2 -2
  4. package/dist/ej2-maps.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-maps.es2015.js +84 -53
  6. package/dist/es6/ej2-maps.es2015.js.map +1 -1
  7. package/dist/es6/ej2-maps.es5.js +87 -56
  8. package/dist/es6/ej2-maps.es5.js.map +1 -1
  9. package/dist/global/ej2-maps.min.js +2 -2
  10. package/dist/global/ej2-maps.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +18 -53
  13. package/src/maps/layers/layer-panel.js +86 -55
  14. package/dist/ts/index.d.ts +0 -4
  15. package/dist/ts/index.ts +0 -4
  16. package/dist/ts/maps/index.d.ts +0 -28
  17. package/dist/ts/maps/index.ts +0 -28
  18. package/dist/ts/maps/layers/bing-map.d.ts +0 -21
  19. package/dist/ts/maps/layers/bing-map.ts +0 -51
  20. package/dist/ts/maps/layers/bubble.d.ts +0 -77
  21. package/dist/ts/maps/layers/bubble.ts +0 -304
  22. package/dist/ts/maps/layers/color-mapping.d.ts +0 -36
  23. package/dist/ts/maps/layers/color-mapping.ts +0 -230
  24. package/dist/ts/maps/layers/data-label.d.ts +0 -45
  25. package/dist/ts/maps/layers/data-label.ts +0 -457
  26. package/dist/ts/maps/layers/layer-panel.d.ts +0 -144
  27. package/dist/ts/maps/layers/layer-panel.ts +0 -1455
  28. package/dist/ts/maps/layers/legend.d.ts +0 -173
  29. package/dist/ts/maps/layers/legend.ts +0 -2465
  30. package/dist/ts/maps/layers/marker.d.ts +0 -105
  31. package/dist/ts/maps/layers/marker.ts +0 -632
  32. package/dist/ts/maps/layers/navigation-selected-line.d.ts +0 -33
  33. package/dist/ts/maps/layers/navigation-selected-line.ts +0 -171
  34. package/dist/ts/maps/layers/polygon.d.ts +0 -30
  35. package/dist/ts/maps/layers/polygon.ts +0 -68
  36. package/dist/ts/maps/maps-model.d.ts +0 -409
  37. package/dist/ts/maps/maps.d.ts +0 -1247
  38. package/dist/ts/maps/maps.ts +0 -3416
  39. package/dist/ts/maps/model/base-model.d.ts +0 -2107
  40. package/dist/ts/maps/model/base.d.ts +0 -1840
  41. package/dist/ts/maps/model/base.ts +0 -2257
  42. package/dist/ts/maps/model/constants.d.ts +0 -225
  43. package/dist/ts/maps/model/constants.ts +0 -226
  44. package/dist/ts/maps/model/export-image.d.ts +0 -39
  45. package/dist/ts/maps/model/export-image.ts +0 -194
  46. package/dist/ts/maps/model/export-pdf.d.ts +0 -40
  47. package/dist/ts/maps/model/export-pdf.ts +0 -183
  48. package/dist/ts/maps/model/interface.d.ts +0 -892
  49. package/dist/ts/maps/model/interface.ts +0 -929
  50. package/dist/ts/maps/model/print.d.ts +0 -45
  51. package/dist/ts/maps/model/print.ts +0 -125
  52. package/dist/ts/maps/model/theme.d.ts +0 -98
  53. package/dist/ts/maps/model/theme.ts +0 -919
  54. package/dist/ts/maps/user-interaction/annotation.d.ts +0 -27
  55. package/dist/ts/maps/user-interaction/annotation.ts +0 -133
  56. package/dist/ts/maps/user-interaction/highlight.d.ts +0 -63
  57. package/dist/ts/maps/user-interaction/highlight.ts +0 -272
  58. package/dist/ts/maps/user-interaction/selection.d.ts +0 -85
  59. package/dist/ts/maps/user-interaction/selection.ts +0 -342
  60. package/dist/ts/maps/user-interaction/tooltip.d.ts +0 -78
  61. package/dist/ts/maps/user-interaction/tooltip.ts +0 -500
  62. package/dist/ts/maps/user-interaction/zoom.d.ts +0 -334
  63. package/dist/ts/maps/user-interaction/zoom.ts +0 -2523
  64. package/dist/ts/maps/utils/enum.d.ts +0 -328
  65. package/dist/ts/maps/utils/enum.ts +0 -343
  66. package/dist/ts/maps/utils/helper.d.ts +0 -1318
  67. package/dist/ts/maps/utils/helper.ts +0 -3811
@@ -1,919 +0,0 @@
1
- /**
2
- * Maps Themes doc
3
- */
4
- import { IFontMapping, MapsTheme } from '../index';
5
- import { IThemeStyle } from './interface';
6
-
7
- /**
8
- * Specifies Maps Themes
9
- */
10
- // eslint-disable-next-line @typescript-eslint/no-namespace
11
- export namespace Theme {
12
- /** @private */
13
- export const mapsTitleFont: IFontMapping = {
14
- size: '14px',
15
- fontWeight: null,
16
- color: '#424242',
17
- fontStyle: 'Medium',
18
- fontFamily: 'Roboto, Noto, Sans-serif'
19
- };
20
- /** @private */
21
- export const mapsSubTitleFont: IFontMapping = {
22
- size: '13px',
23
- fontWeight: null,
24
- color: '#424242',
25
- fontStyle: 'Medium',
26
- fontFamily: 'Roboto, Noto, Sans-serif'
27
- };
28
- /** @private */
29
- export const tooltipLabelFont: IFontMapping = {
30
- size: '12px',
31
- fontWeight: 'Regular',
32
- color: null,
33
- fontStyle: 'Regular',
34
- fontFamily: null
35
- };
36
- /** @private */
37
- export const legendTitleFont: IFontMapping = {
38
- size: '12px',
39
- fontWeight: 'Medium',
40
- color: null,
41
- fontStyle: 'Medium',
42
- fontFamily: null
43
- };
44
- /** @private */
45
- export const legendLabelFont: IFontMapping = {
46
- size: '13px',
47
- fontWeight: 'Medium',
48
- color: null,
49
- fontStyle: 'Medium',
50
- fontFamily: 'Roboto, Noto, Sans-serif'
51
- };
52
- /** @private */
53
- export const dataLabelFont: IFontMapping = {
54
- size: null,
55
- fontWeight: 'Medium',
56
- color: '#000000',
57
- fontStyle: 'Medium',
58
- fontFamily: 'Roboto, Noto, Sans-serif'
59
- };
60
- }
61
- // eslint-disable-next-line @typescript-eslint/no-namespace
62
- export namespace FabricTheme {
63
- /** @private */
64
- export const mapsTitleFont: IFontMapping = {
65
- size: '14px',
66
- fontWeight: 'Semibold',
67
- color: '#424242',
68
- fontStyle: 'Semibold',
69
- fontFamily: 'SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif'
70
- };
71
- /** @private */
72
- export const mapsSubTitleFont: IFontMapping = {
73
- size: '13px',
74
- fontWeight: 'Regular',
75
- color: '#424242',
76
- fontStyle: 'Regular',
77
- fontFamily: 'SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif'
78
- };
79
- /** @private */
80
- export const tooltipLabelFont: IFontMapping = {
81
- size: '12px',
82
- fontWeight: 'Regular',
83
- color: '#FFFFFF',
84
- fontStyle: 'Regular',
85
- fontFamily: 'Roboto'
86
- };
87
- /** @private */
88
- export const legendTitleFont: IFontMapping = {
89
- size: '14px',
90
- fontWeight: 'Regular',
91
- color: '#757575',
92
- fontStyle: 'Regular',
93
- fontFamily: 'SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif'
94
- };
95
- /** @private */
96
- export const legendLabelFont: IFontMapping = {
97
- size: '13px',
98
- fontWeight: 'Medium',
99
- color: '#757575',
100
- fontStyle: 'Medium',
101
- fontFamily: 'SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif'
102
- };
103
- /** @private */
104
- export const dataLabelFont: IFontMapping = {
105
- size: '12px',
106
- fontWeight: 'Medium',
107
- color: '#000000',
108
- fontStyle: 'Medium',
109
- fontFamily: 'SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif'
110
- };
111
- }
112
-
113
- // eslint-disable-next-line @typescript-eslint/no-namespace
114
- export namespace BootstrapTheme {
115
- /** @private */
116
- export const mapsTitleFont: IFontMapping = {
117
- size: '14px',
118
- fontWeight: 'Semibold',
119
- color: '#424242',
120
- fontStyle: 'Semibold',
121
- fontFamily: 'Helvetica Neue, Helvetica, Arial, sans-serif'
122
- };
123
- /** @private */
124
- export const mapsSubTitleFont: IFontMapping = {
125
- size: '13px',
126
- fontWeight: 'Regular',
127
- color: '#424242',
128
- fontStyle: 'Regular',
129
- fontFamily: 'Helvetica Neue, Helvetica, Arial, sans-serif'
130
- };
131
- /** @private */
132
- export const tooltipLabelFont: IFontMapping = {
133
- size: '12px',
134
- fontWeight: 'Regular',
135
- color: '#FFFFFF',
136
- fontStyle: 'Regular',
137
- fontFamily: 'Roboto'
138
- };
139
- /** @private */
140
- export const legendTitleFont: IFontMapping = {
141
- size: '14px',
142
- fontWeight: 'Regular',
143
- color: '#757575',
144
- fontStyle: 'Regular',
145
- fontFamily: 'Helvetica Neue, Helvetica, Arial, sans-serif'
146
- };
147
- /** @private */
148
- export const legendLabelFont: IFontMapping = {
149
- size: '13px',
150
- fontWeight: 'Medium',
151
- color: '#757575',
152
- fontStyle: 'Medium',
153
- fontFamily: 'Helvetica Neue, Helvetica, Arial, sans-serif'
154
- };
155
- /** @private */
156
- export const dataLabelFont: IFontMapping = {
157
- size: '12px',
158
- fontWeight: 'Medium',
159
- color: '#000000',
160
- fontStyle: 'Medium',
161
- fontFamily: 'Helvetica Neue, Helvetica, Arial, sans-serif'
162
- };
163
- }
164
- /**
165
- * Internal use of Method to getting colors based on themes.
166
- *
167
- * @private
168
- * @param {MapsTheme} theme Specifies the theme of the maps
169
- * @returns {string[]} Returns the shape color
170
- */
171
- export function getShapeColor(theme: MapsTheme): string[] {
172
- let themePalette: string[];
173
- switch (theme.toLowerCase()) {
174
- case 'tailwind':
175
- themePalette = ['#0369A1', '#14B8A6', '#15803D', '#334155', '#5A61F6',
176
- '#65A30D', '#8B5CF6', '#9333EA', '#F59E0B', '#F97316'];
177
- break;
178
- case 'tailwinddark':
179
- themePalette = ['#10B981', '#22D3EE', '#2DD4BF', '#4ADE80', '#8B5CF6',
180
- '#E879F9', '#F472B6', '#F87171', '#F97316', '#FCD34D'];
181
- break;
182
- case 'tailwind3':
183
- themePalette = ['#2F4074', '#03B4B4', '#0D72DE', '#FF5733', '#D63384', '#F39C12', '#EF291F', '#91C822'];
184
- break;
185
- case 'tailwind3dark':
186
- themePalette = ['#8029F1', '#1ABC9C', '#0D72DE', '#FF5733', '#D63384', '#F39C12', '#EF291F', '#91C822'];
187
- break;
188
- case 'fluent':
189
- themePalette = ['#614570', '#4C6FB1', '#CC6952', '#3F579A', '#4EA09B',
190
- '#6E7A89', '#D4515C', '#E6AF5D', '#639751', '#9D4D69'];
191
- break;
192
- case 'fluentdark':
193
- themePalette = ['#8AB113', '#2A72D5', '#43B786', '#584EC6', '#E85F9C',
194
- '#6E7A89', '#EA6266', '#EBA844', '#26BC7A', '#BC4870'];
195
- break;
196
- case 'material3':
197
- themePalette = ['#6200EE', '#E77A16', '#82C100', '#7107DC', '#05BB3D',
198
- '#D21020', '#FAD200', '#0085FF', '#9204EA', '#08EE9B'];
199
- break;
200
- case 'material3dark':
201
- themePalette = ['#4EAAFF', '#FA4EAB', '#FFF500', '#17EA58', '#38FFE7',
202
- '#FF9E45', '#B3F32F', '#B93CE4', '#FC5664', '#9B55FF'];
203
- break;
204
- case 'fluent2':
205
- themePalette = ['#6200EE', '#09AF74', '#0076E5', '#CB3587', '#E7910F',
206
- '#0364DE', '#66CD15', '#F3A93C', '#107C10', '#C19C00'];
207
- break;
208
- case 'fluent2dark':
209
- case 'fluent2highcontrast':
210
- themePalette = ['#9BB449', '#2A72D5', '#43B786', '#3F579A', '#584EC6',
211
- '#E85F9C', '#6E7A89', '#EA6266', '#0B6A0B', '#C19C00'];
212
- break;
213
- case 'bootstrap5':
214
- case 'bootstrap5dark':
215
- themePalette = ['#6610F2', '#6f42C1', '#D63384', '#DC3545',
216
- '#FD7E14', '#FFC107', '#198754', '#0DCAF0'];
217
- break;
218
- default:
219
- themePalette = ['#B5E485', '#7BC1E8', '#DF819C', '#EC9B79', '#78D0D3',
220
- '#D6D572', '#9178E3', '#A1E5B4', '#87A4B4', '#E4C16C'];
221
- break;
222
- }
223
- return themePalette;
224
- }
225
- /**
226
- * HighContrast Theme configuration
227
- */
228
- // eslint-disable-next-line @typescript-eslint/no-namespace
229
- export namespace HighContrastTheme {
230
- /** @private */
231
- export const mapsTitleFont: IFontMapping = {
232
- size: '14px',
233
- fontWeight: 'Medium',
234
- color: '#FFFFFF',
235
- fontStyle: 'Medium',
236
- fontFamily: 'Roboto, Noto, Sans-serif'
237
- };
238
- /** @private */
239
- export const mapsSubTitleFont: IFontMapping = {
240
- size: '13px',
241
- fontWeight: 'Medium',
242
- color: '#FFFFFF',
243
- fontStyle: 'Medium',
244
- fontFamily: 'Roboto, Noto, Sans-serif'
245
- };
246
- /** @private */
247
- export const tooltipLabelFont: IFontMapping = {
248
- size: '12px',
249
- fontWeight: 'Regular',
250
- color: '#000000',
251
- fontStyle: 'Regular',
252
- fontFamily: 'Roboto'
253
- };
254
- /** @private */
255
- export const legendTitleFont: IFontMapping = {
256
- size: '14px',
257
- fontWeight: 'Regular',
258
- color: '#FFFFFF',
259
- fontStyle: 'Regular',
260
- fontFamily: 'Roboto, Noto, Sans-serif'
261
- };
262
- /** @private */
263
- export const legendLabelFont: IFontMapping = {
264
- size: '13px',
265
- fontWeight: 'Medium',
266
- color: '#FFFFFF',
267
- fontStyle: 'Medium',
268
- fontFamily: 'Roboto, Noto, Sans-serif'
269
- };
270
- /** @private */
271
- export const dataLabelFont: IFontMapping = {
272
- size: null,
273
- fontWeight: 'Medium',
274
- color: '#000000',
275
- fontStyle: 'Medium',
276
- fontFamily: 'Roboto, Noto, Sans-serif'
277
- };
278
- }
279
-
280
- /**
281
- * Dark Theme configuration
282
- */
283
- // eslint-disable-next-line @typescript-eslint/no-namespace
284
- export namespace DarkTheme {
285
- /** @private */
286
- export const mapsTitleFont: IFontMapping = {
287
- fontFamily: 'Roboto, Noto, Sans-serif',
288
- fontWeight: 'Medium',
289
- size: '14px',
290
- fontStyle: 'Medium',
291
- color: '#FFFFFF'
292
- };
293
- /** @private */
294
- export const mapsSubTitleFont: IFontMapping = {
295
- size: '13px',
296
- color: '#FFFFFF',
297
- fontWeight: 'Medium',
298
- fontFamily: 'Roboto, Noto, Sans-serif',
299
- fontStyle: 'Medium'
300
- };
301
- /** @private */
302
- export const tooltipLabelFont: IFontMapping = {
303
- size: '12px',
304
- color: '#282727',
305
- fontWeight: 'Regular',
306
- fontFamily: 'Roboto',
307
- fontStyle: 'Regular'
308
- };
309
- /** @private */
310
- export const legendTitleFont: IFontMapping = {
311
- size: '14px',
312
- fontWeight: 'Regular',
313
- color: '#FFFFFF',
314
- fontStyle: 'Regular',
315
- fontFamily: 'Roboto, Noto, Sans-serif'
316
- };
317
- /** @private */
318
- export const legendLabelFont: IFontMapping = {
319
- size: '13px',
320
- fontFamily: 'Roboto, Noto, Sans-serif',
321
- fontWeight: 'Medium',
322
- color: '#DADADA',
323
- fontStyle: 'Medium'
324
- };
325
-
326
- }
327
-
328
- /**
329
- * Method to get the theme style.
330
- *
331
- * @param {MapsTheme} theme - Specifies the theme.
332
- * @returns {IThemeStyle} - Returns the theme style.
333
- * @private
334
- */
335
- export function getThemeStyle(theme: MapsTheme): IThemeStyle {
336
- let style: IThemeStyle; let color: string;
337
- switch (theme.toLowerCase()) {
338
- case 'materialdark':
339
- color = '#303030';
340
- break;
341
- case 'fabricdark':
342
- color = '#201F1F';
343
- break;
344
- case 'bootstrapdark':
345
- color = '#1A1A1A';
346
- break;
347
- }
348
- switch (theme.toLowerCase()) {
349
- case 'materialdark':
350
- case 'fabricdark':
351
- case 'bootstrapdark':
352
- style = {
353
- backgroundColor: color,
354
- areaBackgroundColor: color,
355
- titleFontColor: '#FFFFFF',
356
- titleFontSize: '14px',
357
- subTitleFontColor: '#FFFFFF',
358
- legendTitleFontColor: '#DADADA',
359
- legendTextColor: '#DADADA',
360
- dataLabelFontColor: '#DADADA',
361
- tooltipFontColor: '#FFFFFF',
362
- tooltipFillColor: '#363F4C',
363
- zoomFillColor: '#FFFFFF',
364
- labelFontFamily: 'Roboto, Noto, Sans-serif',
365
- fontFamily: 'Roboto, Noto, Sans-serif',
366
- fontSize: '12px',
367
- legendFontSize: '12px',
368
- fontWeight: 'Medium',
369
- titleFontWeight: 'Medium',
370
- zoomSelectionColor: '#e61576',
371
- shapeFill: '#A6A6A6',
372
- shapeBorderColor: '#000000',
373
- rectangleZoomFillColor: '#d3d3d3',
374
- rectangleZoomFillOpacity: 0.5,
375
- rectangleZoomBorderColor: '#009900',
376
- legendBorderColor: '#000000',
377
- legendBorderWidth: 0,
378
- tooltipBorderColor: 'transparent',
379
- zoomButtonRadius: 30
380
- };
381
- break;
382
- case 'highcontrast':
383
- style = {
384
- backgroundColor: '#000000',
385
- areaBackgroundColor: '#000000',
386
- titleFontColor: '#FFFFFF',
387
- titleFontSize: '14px',
388
- subTitleFontColor: '#FFFFFF',
389
- legendTitleFontColor: '#FFFFFF',
390
- legendTextColor: '#FFFFFF',
391
- dataLabelFontColor: '#000000',
392
- tooltipFontColor: '#000000',
393
- tooltipFillColor: '#ffffff',
394
- zoomFillColor: '#FFFFFF',
395
- fontFamily: 'Roboto, Noto, Sans-serif',
396
- fontSize: '12px',
397
- legendFontSize: '12px',
398
- fontWeight: 'Medium',
399
- labelFontFamily: 'Roboto, Noto, Sans-serif',
400
- titleFontWeight: 'Medium',
401
- zoomSelectionColor: '#e61576',
402
- shapeFill: '#A6A6A6',
403
- shapeBorderColor: '#000000',
404
- rectangleZoomFillColor: '#d3d3d3',
405
- rectangleZoomFillOpacity: 0.5,
406
- rectangleZoomBorderColor: '#009900',
407
- legendBorderColor: '#000000',
408
- legendBorderWidth: 0,
409
- tooltipBorderColor: 'transparent',
410
- zoomButtonRadius: 30
411
- };
412
- break;
413
- case 'bootstrap4':
414
- style = {
415
- backgroundColor: '#FFFFFF',
416
- areaBackgroundColor: '#FFFFFF',
417
- titleFontColor: '#212529',
418
- subTitleFontColor: '#212529',
419
- legendTitleFontColor: '#212529',
420
- legendTextColor: '#212529',
421
- dataLabelFontColor: '#212529',
422
- tooltipFontColor: '#FFFFFF',
423
- tooltipFillColor: '#000000',
424
- zoomFillColor: '#5B6269',
425
- fontFamily: 'HelveticaNeue-Medium',
426
- fontSize: '12px',
427
- fontWeight: 'Medium',
428
- titleFontSize: '16px',
429
- legendFontSize: '14px',
430
- tooltipFillOpacity: 1,
431
- tooltipTextOpacity: 0.9,
432
- labelFontFamily: 'HelveticaNeue-Medium',
433
- titleFontWeight: 'Medium',
434
- zoomSelectionColor: '#e61576',
435
- shapeFill: '#A6A6A6',
436
- shapeBorderColor: '#000000',
437
- rectangleZoomFillColor: '#d3d3d3',
438
- rectangleZoomFillOpacity: 0.5,
439
- rectangleZoomBorderColor: '#009900',
440
- legendBorderColor: '#000000',
441
- legendBorderWidth: 0,
442
- tooltipBorderColor: 'transparent',
443
- zoomButtonRadius: 30
444
- };
445
- break;
446
- case 'tailwind':
447
- style = {
448
- backgroundColor: 'rgba(255,255,255, 0.0)',
449
- areaBackgroundColor: 'rgba(255,255,255, 0.0)',
450
- titleFontColor: '#374151',
451
- subTitleFontColor: '#374151',
452
- legendTitleFontColor: '#374151',
453
- legendTextColor: '#6B7280',
454
- dataLabelFontColor: '#505967',
455
- tooltipFontColor: '#F9FAFB',
456
- tooltipFillColor: '#111827',
457
- zoomFillColor: '#6b7280',
458
- fontFamily: 'Inter',
459
- fontSize: '12px',
460
- fontWeight: 'Medium',
461
- titleFontSize: '14px',
462
- legendFontSize: '12px',
463
- tooltipFillOpacity: 1,
464
- tooltipTextOpacity: 0.9,
465
- labelFontFamily: 'Inter',
466
- titleFontWeight: '500',
467
- zoomSelectionColor: '#374151',
468
- shapeFill: '#E5E7EB',
469
- shapeBorderColor: '#000000',
470
- rectangleZoomFillColor: '#d3d3d3',
471
- rectangleZoomFillOpacity: 0.5,
472
- rectangleZoomBorderColor: '#009900',
473
- legendBorderColor: '#000000',
474
- legendBorderWidth: 0,
475
- tooltipBorderColor: 'transparent',
476
- zoomButtonRadius: 30
477
- };
478
- break;
479
- case 'tailwinddark':
480
- style = {
481
- backgroundColor: 'rgba(255,255,255, 0.0)',
482
- areaBackgroundColor: 'rgba(255,255,255, 0.0)',
483
- titleFontColor: '#D1D5DB',
484
- subTitleFontColor: '#D1D5DB',
485
- legendTitleFontColor: '#D1D5DB',
486
- legendTextColor: '#D1D5DB',
487
- dataLabelFontColor: '#D1D5DB',
488
- tooltipFontColor: '#1F2937',
489
- tooltipFillColor: '#F9FAFB',
490
- zoomFillColor: '#D1D5DB',
491
- fontFamily: 'Inter',
492
- fontSize: '12px',
493
- fontWeight: 'Medium',
494
- titleFontSize: '14px',
495
- legendFontSize: '12px',
496
- tooltipFillOpacity: 1,
497
- tooltipTextOpacity: 0.9,
498
- labelFontFamily: 'Inter',
499
- titleFontWeight: '500',
500
- zoomSelectionColor: '#F3F4F6',
501
- shapeFill: '#374151',
502
- shapeBorderColor: '#000000',
503
- rectangleZoomFillColor: '#d3d3d3',
504
- rectangleZoomFillOpacity: 0.5,
505
- rectangleZoomBorderColor: '#009900',
506
- legendBorderColor: '#000000',
507
- legendBorderWidth: 0,
508
- tooltipBorderColor: 'transparent',
509
- zoomButtonRadius: 30
510
- };
511
- break;
512
- case 'tailwind3':
513
- style = {
514
- backgroundColor: 'rgba(255,255,255, 0.0)',
515
- areaBackgroundColor: 'rgba(255,255,255, 0.0)',
516
- titleFontColor: '#111827',
517
- subTitleFontColor: '#111827',
518
- legendTitleFontColor: '#111827',
519
- legendTextColor: '#6B7280',
520
- dataLabelFontColor: '#111827',
521
- tooltipFontColor: '#F9FAFB',
522
- tooltipFillColor: '#111827',
523
- zoomFillColor: '#374151',
524
- fontFamily: 'Inter',
525
- fontSize: '12px',
526
- fontWeight: '400',
527
- titleFontSize: '14px',
528
- legendFontSize: '12px',
529
- tooltipFillOpacity: 1,
530
- tooltipTextOpacity: 1,
531
- labelFontFamily: 'Inter',
532
- titleFontWeight: '500',
533
- zoomSelectionColor: '#6B7280',
534
- shapeFill: '#F3F4F6',
535
- shapeBorderColor: '#E5E7EB',
536
- rectangleZoomFillColor: '#818CF8',
537
- rectangleZoomFillOpacity: 0.3,
538
- rectangleZoomBorderColor: '#4F46E5',
539
- legendBorderColor: '#E5E7EB',
540
- legendBorderWidth: 0,
541
- tooltipBorderColor: '#111827',
542
- zoomButtonRadius: 32
543
- };
544
- break;
545
- case 'tailwind3dark':
546
- style = {
547
- backgroundColor: 'rgba(255,255,255, 0.0)',
548
- areaBackgroundColor: 'rgba(255,255,255, 0.0)',
549
- titleFontColor: '#FFFFFF',
550
- subTitleFontColor: '#FFFFFF',
551
- legendTitleFontColor: '#FFFFFF',
552
- legendTextColor: '#9CA3AF',
553
- dataLabelFontColor: '#FFFFFF',
554
- tooltipFontColor: '#1F2937',
555
- tooltipFillColor: '#F9FAFB',
556
- zoomFillColor: '#D1D5DB',
557
- fontFamily: 'Inter',
558
- fontSize: '12px',
559
- fontWeight: '400',
560
- titleFontSize: '14px',
561
- legendFontSize: '12px',
562
- tooltipFillOpacity: 1,
563
- tooltipTextOpacity: 1,
564
- labelFontFamily: 'Inter',
565
- titleFontWeight: '600',
566
- zoomSelectionColor: '#9CA3AF',
567
- shapeFill: '#282F3C',
568
- shapeBorderColor: '#282F3C',
569
- rectangleZoomFillColor: '#3730A3',
570
- rectangleZoomFillOpacity: 0.3,
571
- rectangleZoomBorderColor: '#6366F1',
572
- legendBorderColor: '#282F3C',
573
- legendBorderWidth: 0,
574
- tooltipBorderColor: '#F9FAFB',
575
- zoomButtonRadius: 30
576
- };
577
- break;
578
- case 'bootstrap5':
579
- style = {
580
- backgroundColor: 'transparent',
581
- areaBackgroundColor: 'transparent',
582
- titleFontColor: '#212529',
583
- subTitleFontColor: '#212529',
584
- legendTitleFontColor: '#212529',
585
- legendTextColor: '#212529',
586
- dataLabelFontColor: '#212529',
587
- tooltipFontColor: '#FFFFFF',
588
- tooltipFillColor: '#000000',
589
- zoomFillColor: '#6E757D',
590
- fontFamily: 'Segoe UI',
591
- fontSize: '10px',
592
- fontWeight: '400',
593
- titleFontSize: '14px',
594
- subTitleFontSize: '12px',
595
- legendFontSize: '10px',
596
- tooltipFillOpacity: 0.9,
597
- tooltipTextOpacity: 1,
598
- labelFontFamily: 'Segoe UI',
599
- titleFontWeight: '400',
600
- zoomSelectionColor: '#212529',
601
- zoomBorderColor: '#DEE2E6',
602
- shapeFill: '#E9ECEF',
603
- shapeBorderColor: '#DEE2E6',
604
- zoomButtonRadius: 32,
605
- rectangleZoomBorderColor: '#0D6EFD',
606
- rectangleZoomFillColor: '#86B7FE',
607
- rectangleZoomFillOpacity: 0.30,
608
- legendBorderColor: '#000000',
609
- legendBorderWidth: 0,
610
- tooltipBorderColor: 'transparent'
611
- };
612
- break;
613
- case 'bootstrap5dark':
614
- style = {
615
- backgroundColor: 'transparent',
616
- areaBackgroundColor: 'transparent',
617
- titleFontColor: '#DEE2E6',
618
- subTitleFontColor: '#DEE2E6',
619
- legendTitleFontColor: '#DEE2E6',
620
- legendTextColor: '#DEE2E6',
621
- dataLabelFontColor: '#DEE2E6',
622
- tooltipFontColor: '#212529',
623
- tooltipFillColor: '#FFFFFF',
624
- zoomFillColor: '#ADB5BD',
625
- fontFamily: 'Segoe UI',
626
- fontSize: '10px',
627
- fontWeight: '400',
628
- titleFontSize: '14px',
629
- subTitleFontSize: '12px',
630
- legendFontSize: '10px',
631
- tooltipFillOpacity: 0.9,
632
- tooltipTextOpacity: 1,
633
- labelFontFamily: 'Segoe UI',
634
- titleFontWeight: '400',
635
- zoomSelectionColor: '#F8F9FA',
636
- zoomBorderColor: '#495057',
637
- shapeFill: '#343A40',
638
- shapeBorderColor: '#495057',
639
- zoomButtonRadius: 32,
640
- rectangleZoomFillColor: '#86B7FE',
641
- rectangleZoomBorderColor: '#0D6EFD',
642
- rectangleZoomFillOpacity: 0.30,
643
- legendBorderColor: '#000000',
644
- legendBorderWidth: 0,
645
- tooltipBorderColor: 'transparent'
646
- };
647
- break;
648
- case 'fluent':
649
- style = {
650
- backgroundColor: 'rgba(255,255,255, 0.0)',
651
- areaBackgroundColor: 'rgba(255,255,255, 0.0)',
652
- titleFontColor: '#201F1E',
653
- subTitleFontColor: '#201F1E',
654
- legendTitleFontColor: '#201F1E',
655
- legendTextColor: '#201F1E',
656
- dataLabelFontColor: '#201F1E',
657
- tooltipFontColor: '#323130',
658
- tooltipFillColor: '#FFFFFF',
659
- zoomFillColor: '#A19F9D',
660
- fontFamily: 'Segoe UI',
661
- fontSize: '12px',
662
- fontWeight: 'Medium',
663
- titleFontSize: '14px',
664
- legendFontSize: '12px',
665
- tooltipFillOpacity: 1,
666
- tooltipTextOpacity: 1,
667
- labelFontFamily: 'Segoe UI',
668
- titleFontWeight: '600',
669
- zoomSelectionColor: '#323130',
670
- shapeFill: '#F3F2F1',
671
- shapeBorderColor: '#000000',
672
- rectangleZoomFillColor: '#d3d3d3',
673
- rectangleZoomFillOpacity: 0.5,
674
- rectangleZoomBorderColor: '#009900',
675
- legendBorderColor: '#000000',
676
- legendBorderWidth: 0,
677
- tooltipBorderColor: 'transparent',
678
- zoomButtonRadius: 30
679
- };
680
- break;
681
- case 'fluentdark':
682
- style = {
683
- backgroundColor: 'rgba(255,255,255, 0.0)',
684
- areaBackgroundColor: 'rgba(255,255,255, 0.0)',
685
- titleFontColor: '#F3F2F1',
686
- subTitleFontColor: '#F3F2F1',
687
- legendTitleFontColor: '#F3F2F1',
688
- legendTextColor: '#F3F2F1',
689
- dataLabelFontColor: '#F3F2F1',
690
- tooltipFontColor: '#F3F2F1',
691
- tooltipFillColor: '#252423',
692
- zoomFillColor: '#484644',
693
- fontFamily: 'Segoe UI',
694
- fontSize: '12px',
695
- fontWeight: 'Medium',
696
- titleFontSize: '14px',
697
- legendFontSize: '12px',
698
- tooltipFillOpacity: 1,
699
- tooltipTextOpacity: 1,
700
- labelFontFamily: 'Segoe UI',
701
- titleFontWeight: '600',
702
- zoomSelectionColor: '#F3F2F1',
703
- shapeFill: '#252423',
704
- shapeBorderColor: '#000000',
705
- rectangleZoomFillColor: '#d3d3d3',
706
- rectangleZoomFillOpacity: 0.5,
707
- rectangleZoomBorderColor: '#009900',
708
- legendBorderColor: '#000000',
709
- legendBorderWidth: 0,
710
- tooltipBorderColor: 'transparent',
711
- zoomButtonRadius: 30
712
- };
713
- break;
714
- case 'material3':
715
- style = {
716
- backgroundColor: 'transparent',
717
- areaBackgroundColor: 'transparent',
718
- titleFontColor: '#1C1B1F',
719
- subTitleFontColor: '#1C1B1F',
720
- legendTitleFontColor: '#1C1B1F',
721
- legendTextColor: '#49454E',
722
- dataLabelFontColor: '#1C1B1F',
723
- tooltipFontColor: '#F4EFF4',
724
- tooltipFillColor: '#313033',
725
- zoomFillColor: '#49454E',
726
- fontFamily: 'Roboto',
727
- fontSize: '14px',
728
- titleFontSize: '16px',
729
- subTitleFontSize: '14px',
730
- legendFontSize: '12px',
731
- tooltipFillOpacity: 1,
732
- tooltipTextOpacity: 1,
733
- labelFontFamily: 'Roboto',
734
- titleFontWeight: '500',
735
- fontWeight: '400',
736
- zoomSelectionColor: '#49454E',
737
- shapeFill: '#E7E0EC',
738
- shapeBorderColor: '#000000',
739
- rectangleZoomFillColor: '#6750A4',
740
- rectangleZoomFillOpacity: 0.24,
741
- rectangleZoomBorderColor: '#6750A4',
742
- legendBorderColor: '#000000',
743
- legendBorderWidth: 0,
744
- tooltipBorderColor: 'transparent',
745
- zoomButtonRadius: 30
746
- };
747
- break;
748
- case 'material3dark':
749
- style = {
750
- backgroundColor: 'transparent',
751
- areaBackgroundColor: 'transparent',
752
- titleFontColor: '#E6E1E5',
753
- subTitleFontColor: '#E6E1E5',
754
- legendTitleFontColor: '#E6E1E5',
755
- legendTextColor: '#CAC4D0',
756
- dataLabelFontColor: '#E6E1E5',
757
- tooltipFontColor: '#313033',
758
- tooltipFillColor: '#E6E1E5',
759
- zoomFillColor: '#E6E1E5',
760
- fontFamily: 'Roboto',
761
- fontSize: '14px',
762
- titleFontSize: '16px',
763
- subTitleFontSize: '14px',
764
- legendFontSize: '12px',
765
- tooltipFillOpacity: 1,
766
- tooltipTextOpacity: 1,
767
- labelFontFamily: 'Roboto',
768
- titleFontWeight: '500',
769
- fontWeight: '400',
770
- zoomSelectionColor: '#E6E1E5',
771
- shapeFill: '#49454F',
772
- shapeBorderColor: '#000000',
773
- rectangleZoomFillColor: '#D0BCFF',
774
- rectangleZoomFillOpacity: 0.24,
775
- rectangleZoomBorderColor: '#D0BCFF',
776
- legendBorderColor: '#000000',
777
- legendBorderWidth: 0,
778
- tooltipBorderColor: 'transparent',
779
- zoomButtonRadius: 30
780
- };
781
- break;
782
- case 'fluent2':
783
- style = {
784
- backgroundColor: 'transparent',
785
- areaBackgroundColor: 'transparent',
786
- titleFontColor: '#242424',
787
- subTitleFontColor: '#242424',
788
- legendTitleFontColor: '#242424',
789
- legendTextColor: '#242424',
790
- dataLabelFontColor: '#242424',
791
- tooltipFontColor: '#242424',
792
- tooltipFillColor: '#FFFFFF',
793
- zoomFillColor: '#D1D1D1',
794
- fontFamily: 'Segoe UI',
795
- fontSize: '10px',
796
- fontWeight: '400',
797
- titleFontSize: '14px',
798
- subTitleFontSize: '12px',
799
- legendFontSize: '12px',
800
- tooltipFillOpacity: 1,
801
- tooltipTextOpacity: 1,
802
- labelFontFamily: 'Segoe UI',
803
- titleFontWeight: '600',
804
- zoomSelectionColor: '#242424',
805
- shapeFill: '#E6E6E6',
806
- shapeBorderColor: '#EBEBEB',
807
- rectangleZoomFillColor: '#B4D6FA',
808
- rectangleZoomFillOpacity: 0.25,
809
- rectangleZoomBorderColor: '#0F6CBD',
810
- legendBorderColor: '#000000',
811
- legendBorderWidth: 0,
812
- tooltipBorderColor: 'transparent',
813
- zoomButtonRadius: 32
814
- };
815
- break;
816
- case 'fluent2dark':
817
- style = {
818
- backgroundColor: 'transparent',
819
- areaBackgroundColor: 'transparent',
820
- titleFontColor: '#FFFFFF',
821
- subTitleFontColor: '#FFFFFF',
822
- legendTitleFontColor: '#FFFFFF',
823
- legendTextColor: '#FFFFFF',
824
- dataLabelFontColor: '#FFFFFF',
825
- tooltipFontColor: '#FFFFFF',
826
- tooltipFillColor: '#292929',
827
- zoomFillColor: '#666',
828
- fontFamily: 'Segoe UI',
829
- fontSize: '10px',
830
- fontWeight: '400',
831
- titleFontSize: '14px',
832
- subTitleFontSize: '12px',
833
- legendFontSize: '12px',
834
- tooltipFillOpacity: 1,
835
- tooltipTextOpacity: 1,
836
- labelFontFamily: 'Segoe UI',
837
- titleFontWeight: '600',
838
- zoomSelectionColor: '#FFFFFF',
839
- shapeFill: '#333333',
840
- shapeBorderColor: '#000000',
841
- rectangleZoomFillColor: '#0E4775',
842
- rectangleZoomFillOpacity: 0.25,
843
- rectangleZoomBorderColor: '#0E4775',
844
- legendBorderColor: '#000000',
845
- legendBorderWidth: 0,
846
- tooltipBorderColor: 'transparent',
847
- zoomButtonRadius: 32
848
- };
849
- break;
850
- case 'fluent2highcontrast':
851
- style = {
852
- backgroundColor: 'transparent',
853
- areaBackgroundColor: 'transparent',
854
- titleFontColor: '#FFFFFF',
855
- subTitleFontColor: '#FFFFFF',
856
- legendTitleFontColor: '#FFFFFF',
857
- legendTextColor: '#FFFFFF',
858
- dataLabelFontColor: '#FFFFFF',
859
- tooltipFontColor: '#FFFFFF',
860
- tooltipFillColor: '#000000',
861
- zoomFillColor: '#3FF23F',
862
- fontFamily: 'Segoe UI',
863
- fontSize: '10px',
864
- fontWeight: '400',
865
- titleFontSize: '14px',
866
- subTitleFontSize: '12px',
867
- legendFontSize: '12px',
868
- tooltipFillOpacity: 1,
869
- tooltipTextOpacity: 1,
870
- labelFontFamily: 'Segoe UI',
871
- titleFontWeight: '600',
872
- zoomSelectionColor: '#FFFFFF',
873
- zoomBorderColor: '#FFFFFF',
874
- shapeFill: '#FFFFFF',
875
- shapeBorderColor: '#FFFFFF',
876
- rectangleZoomFillColor: '#1AEBFF',
877
- rectangleZoomFillOpacity: 0.25,
878
- rectangleZoomBorderColor: '#1AEBFF',
879
- legendBorderColor: '#FFFFFF',
880
- legendBorderWidth: 1,
881
- tooltipBorderColor: '#FFF',
882
- zoomButtonRadius: 32
883
- };
884
- break;
885
- default:
886
- style = {
887
- backgroundColor: '#FFFFFF',
888
- areaBackgroundColor: '#FFFFFF',
889
- titleFontColor: '#424242',
890
- titleFontSize: '14px',
891
- subTitleFontColor: '#424242',
892
- legendTitleFontColor: '#757575',
893
- legendTextColor: '#757575',
894
- dataLabelFontColor: '#000000',
895
- tooltipFontColor: '#FFFFFF',
896
- tooltipFillColor: '#000000',
897
- zoomFillColor: '#737373',
898
- labelFontFamily: 'Roboto, Noto, Sans-serif',
899
- fontFamily: 'Roboto, Noto, Sans-serif',
900
- fontSize: '12px',
901
- legendFontSize: '12px',
902
- fontWeight: 'Medium',
903
- titleFontWeight: 'Medium',
904
- zoomSelectionColor: '#e61576',
905
- shapeFill: '#A6A6A6',
906
- shapeBorderColor: '#000000',
907
- rectangleZoomFillColor: '#d3d3d3',
908
- rectangleZoomFillOpacity: 0.5,
909
- rectangleZoomBorderColor: '#009900',
910
- legendBorderColor: '#000000',
911
- legendBorderWidth: 0,
912
- tooltipBorderColor: 'transparent',
913
- zoomButtonRadius: 30
914
- };
915
- break;
916
- }
917
- return style;
918
- }
919
-