@syncfusion/ej2-maps 25.2.4 → 26.1.35

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 (58) hide show
  1. package/.eslintrc.json +3 -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 +1328 -1138
  6. package/dist/es6/ej2-maps.es2015.js.map +1 -1
  7. package/dist/es6/ej2-maps.es5.js +1375 -1180
  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 +13 -13
  13. package/src/maps/layers/bing-map.d.ts +2 -2
  14. package/src/maps/layers/bubble.d.ts +3 -4
  15. package/src/maps/layers/bubble.js +3 -4
  16. package/src/maps/layers/color-mapping.d.ts +2 -2
  17. package/src/maps/layers/color-mapping.js +2 -2
  18. package/src/maps/layers/data-label.d.ts +1 -1
  19. package/src/maps/layers/data-label.js +6 -6
  20. package/src/maps/layers/layer-panel.d.ts +7 -7
  21. package/src/maps/layers/layer-panel.js +129 -193
  22. package/src/maps/layers/legend.d.ts +9 -0
  23. package/src/maps/layers/legend.js +147 -55
  24. package/src/maps/layers/marker.d.ts +8 -8
  25. package/src/maps/layers/marker.js +109 -105
  26. package/src/maps/layers/navigation-selected-line.d.ts +1 -1
  27. package/src/maps/layers/navigation-selected-line.js +2 -2
  28. package/src/maps/layers/polygon.d.ts +1 -1
  29. package/src/maps/layers/polygon.js +10 -7
  30. package/src/maps/maps.d.ts +24 -26
  31. package/src/maps/maps.js +39 -46
  32. package/src/maps/model/base-model.d.ts +20 -93
  33. package/src/maps/model/base.d.ts +19 -83
  34. package/src/maps/model/base.js +13 -40
  35. package/src/maps/model/constants.d.ts +0 -4
  36. package/src/maps/model/constants.js +0 -4
  37. package/src/maps/model/export-image.js +5 -2
  38. package/src/maps/model/export-pdf.js +5 -2
  39. package/src/maps/model/interface.d.ts +14 -1
  40. package/src/maps/model/interface.js +0 -1
  41. package/src/maps/model/print.d.ts +3 -3
  42. package/src/maps/model/print.js +8 -5
  43. package/src/maps/model/theme.d.ts +1 -1
  44. package/src/maps/model/theme.js +190 -15
  45. package/src/maps/user-interaction/annotation.d.ts +1 -2
  46. package/src/maps/user-interaction/annotation.js +1 -2
  47. package/src/maps/user-interaction/highlight.d.ts +4 -4
  48. package/src/maps/user-interaction/highlight.js +4 -4
  49. package/src/maps/user-interaction/selection.d.ts +5 -5
  50. package/src/maps/user-interaction/selection.js +5 -5
  51. package/src/maps/user-interaction/tooltip.d.ts +6 -6
  52. package/src/maps/user-interaction/tooltip.js +30 -13
  53. package/src/maps/user-interaction/zoom.d.ts +6 -4
  54. package/src/maps/user-interaction/zoom.js +50 -50
  55. package/src/maps/utils/enum.d.ts +7 -53
  56. package/src/maps/utils/helper.d.ts +87 -72
  57. package/src/maps/utils/helper.js +130 -102
  58. package/CHANGELOG.md +0 -632
@@ -88,7 +88,7 @@ var Font = /** @class */ (function (_super) {
88
88
  return _super !== null && _super.apply(this, arguments) || this;
89
89
  }
90
90
  __decorate([
91
- Property('12px')
91
+ Property(null)
92
92
  ], Font.prototype, "size", void 0);
93
93
  __decorate([
94
94
  Property(null)
@@ -132,7 +132,7 @@ var ZoomToolbarButtonSettings = /** @class */ (function (_super) {
132
132
  Property(null)
133
133
  ], ZoomToolbarButtonSettings.prototype, "borderColor", void 0);
134
134
  __decorate([
135
- Property(30)
135
+ Property(null)
136
136
  ], ZoomToolbarButtonSettings.prototype, "radius", void 0);
137
137
  __decorate([
138
138
  Property(null)
@@ -289,7 +289,7 @@ var TooltipSettings = /** @class */ (function (_super) {
289
289
  Property('')
290
290
  ], TooltipSettings.prototype, "fill", void 0);
291
291
  __decorate([
292
- Complex({ color: 'transparent', width: 1 }, Border)
292
+ Complex({ color: null, width: 1 }, Border)
293
293
  ], TooltipSettings.prototype, "border", void 0);
294
294
  __decorate([
295
295
  Complex({ fontFamily: null, size: null, fontWeight: null }, Font)
@@ -300,6 +300,9 @@ var TooltipSettings = /** @class */ (function (_super) {
300
300
  __decorate([
301
301
  Property(null)
302
302
  ], TooltipSettings.prototype, "valuePath", void 0);
303
+ __decorate([
304
+ Property(2000)
305
+ ], TooltipSettings.prototype, "duration", void 0);
303
306
  return TooltipSettings;
304
307
  }(ChildProperty));
305
308
  export { TooltipSettings };
@@ -318,11 +321,14 @@ var PolygonTooltipSettings = /** @class */ (function (_super) {
318
321
  Property('')
319
322
  ], PolygonTooltipSettings.prototype, "fill", void 0);
320
323
  __decorate([
321
- Complex({ color: 'transparent', width: 1 }, Border)
324
+ Complex({ color: null, width: 1 }, Border)
322
325
  ], PolygonTooltipSettings.prototype, "border", void 0);
323
326
  __decorate([
324
327
  Complex({ fontFamily: null, size: null, fontWeight: null }, Font)
325
328
  ], PolygonTooltipSettings.prototype, "textStyle", void 0);
329
+ __decorate([
330
+ Property(2000)
331
+ ], PolygonTooltipSettings.prototype, "duration", void 0);
326
332
  return PolygonTooltipSettings;
327
333
  }(ChildProperty));
328
334
  export { PolygonTooltipSettings };
@@ -786,27 +792,6 @@ var ZoomSettings = /** @class */ (function (_super) {
786
792
  __decorate([
787
793
  Property(true)
788
794
  ], ZoomSettings.prototype, "enableSelectionZooming", void 0);
789
- __decorate([
790
- Property('Horizontal')
791
- ], ZoomSettings.prototype, "toolBarOrientation", void 0);
792
- __decorate([
793
- Property(null)
794
- ], ZoomSettings.prototype, "color", void 0);
795
- __decorate([
796
- Property(null)
797
- ], ZoomSettings.prototype, "highlightColor", void 0);
798
- __decorate([
799
- Property(null)
800
- ], ZoomSettings.prototype, "selectionColor", void 0);
801
- __decorate([
802
- Property('Far')
803
- ], ZoomSettings.prototype, "horizontalAlignment", void 0);
804
- __decorate([
805
- Property('Near')
806
- ], ZoomSettings.prototype, "verticalAlignment", void 0);
807
- __decorate([
808
- Property(['ZoomIn', 'ZoomOut', 'Reset'])
809
- ], ZoomSettings.prototype, "toolbars", void 0);
810
795
  __decorate([
811
796
  Property(true)
812
797
  ], ZoomSettings.prototype, "mouseWheelZoom", void 0);
@@ -920,7 +905,7 @@ var LegendSettings = /** @class */ (function (_super) {
920
905
  Property(10)
921
906
  ], LegendSettings.prototype, "shapePadding", void 0);
922
907
  __decorate([
923
- Complex({ color: '#000000', width: 0 }, Border)
908
+ Complex({ color: null, width: 0 }, Border)
924
909
  ], LegendSettings.prototype, "border", void 0);
925
910
  __decorate([
926
911
  Complex({ color: '#000000', width: 0 }, Border)
@@ -1032,7 +1017,7 @@ var ShapeSettings = /** @class */ (function (_super) {
1032
1017
  Property(5)
1033
1018
  ], ShapeSettings.prototype, "circleRadius", void 0);
1034
1019
  __decorate([
1035
- Complex({ width: null, color: '#000000' }, Border)
1020
+ Complex({ width: null, color: null }, Border)
1036
1021
  ], ShapeSettings.prototype, "border", void 0);
1037
1022
  __decorate([
1038
1023
  Property('')
@@ -1155,7 +1140,7 @@ export { MarkerBase };
1155
1140
  */
1156
1141
  var MarkerSettings = /** @class */ (function (_super) {
1157
1142
  __extends(MarkerSettings, _super);
1158
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
1143
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1159
1144
  function MarkerSettings(parent, propName, defaultValue, isArray) {
1160
1145
  return _super.call(this, parent, propName, defaultValue, isArray) || this;
1161
1146
  }
@@ -1193,18 +1178,6 @@ var LayerSettings = /** @class */ (function (_super) {
1193
1178
  __decorate([
1194
1179
  Property('Geographic')
1195
1180
  ], LayerSettings.prototype, "geometryType", void 0);
1196
- __decorate([
1197
- Property('Aerial')
1198
- ], LayerSettings.prototype, "bingMapType", void 0);
1199
- __decorate([
1200
- Property('RoadMap')
1201
- ], LayerSettings.prototype, "staticMapType", void 0);
1202
- __decorate([
1203
- Property('')
1204
- ], LayerSettings.prototype, "key", void 0);
1205
- __decorate([
1206
- Property('Geometry')
1207
- ], LayerSettings.prototype, "layerType", void 0);
1208
1181
  __decorate([
1209
1182
  Property('')
1210
1183
  ], LayerSettings.prototype, "urlTemplate", void 0);
@@ -203,21 +203,17 @@ export declare const zoomComplete: string;
203
203
  export declare const itemHighlight: string;
204
204
  /**
205
205
  * Specifies the maps before print event name.
206
- *
207
206
  */
208
207
  export declare const beforePrint: string;
209
208
  /**
210
209
  * Specifies the maps zoom in event name.
211
- *
212
210
  */
213
211
  export declare const zoomIn: string;
214
212
  /**
215
213
  * Specifies the maps zoom out event name.
216
- *
217
214
  */
218
215
  export declare const zoomOut: string;
219
216
  /**
220
217
  * Specifies the maps pan event name.
221
- *
222
218
  */
223
219
  export declare const pan: string;
@@ -203,21 +203,17 @@ export var zoomComplete = 'zoomComplete';
203
203
  export var itemHighlight = 'itemHighlight';
204
204
  /**
205
205
  * Specifies the maps before print event name.
206
- *
207
206
  */
208
207
  export var beforePrint = 'beforePrint';
209
208
  /**
210
209
  * Specifies the maps zoom in event name.
211
- *
212
210
  */
213
211
  export var zoomIn = 'zoomIn';
214
212
  /**
215
213
  * Specifies the maps zoom out event name.
216
- *
217
214
  */
218
215
  export var zoomOut = 'zoomOut';
219
216
  /**
220
217
  * Specifies the maps pan event name.
221
- *
222
218
  */
223
219
  export var pan = 'pan';
@@ -41,10 +41,13 @@ var ImageExport = /** @class */ (function () {
41
41
  var svgObject = getElementByID(maps.element.id + '_svg').cloneNode(true);
42
42
  var backgroundElement = svgObject.childNodes[0];
43
43
  var backgroundColor = backgroundElement.getAttribute('fill');
44
- if ((maps.theme === 'Tailwind' || maps.theme === 'Bootstrap5' || maps.theme === 'Fluent' || maps.theme === 'Material3') && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
44
+ if ((maps.theme === 'Tailwind' || maps.theme === 'Bootstrap5' || maps.theme === 'Fluent' || maps.theme === 'Material3' || maps.theme === 'Fluent2')
45
+ && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
45
46
  svgObject.childNodes[0].setAttribute('fill', 'rgba(255,255,255, 1)');
46
47
  }
47
- else if ((maps.theme === 'TailwindDark' || maps.theme === 'Bootstrap5Dark' || maps.theme === 'FluentDark' || maps.theme === 'Material3Dark') && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
48
+ else if ((maps.theme === 'TailwindDark' || maps.theme === 'Bootstrap5Dark' || maps.theme === 'FluentDark' || maps.theme === 'Material3Dark' ||
49
+ maps.theme === 'Fluent2Dark' || maps.theme === 'Fluent2HighContrast')
50
+ && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
48
51
  svgObject.childNodes[0].setAttribute('fill', 'rgba(0, 0, 0, 1)');
49
52
  }
50
53
  if (!maps.isTileMap) {
@@ -43,10 +43,13 @@ var PdfExport = /** @class */ (function () {
43
43
  var exportElement = maps.svgObject.cloneNode(true);
44
44
  var backgroundElement = exportElement.childNodes[0];
45
45
  var backgroundColor = backgroundElement.getAttribute('fill');
46
- if ((maps.theme === 'Tailwind' || maps.theme === 'Bootstrap5' || maps.theme === 'Fluent' || maps.theme === 'Material3') && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
46
+ if ((maps.theme === 'Tailwind' || maps.theme === 'Bootstrap5' || maps.theme === 'Fluent' || maps.theme === 'Material3' || maps.theme === 'Fluent2')
47
+ && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
47
48
  exportElement.childNodes[0].setAttribute('fill', 'rgba(255,255,255, 1)');
48
49
  }
49
- else if ((maps.theme === 'TailwindDark' || maps.theme === 'Bootstrap5Dark' || maps.theme === 'FluentDark' || maps.theme === 'Material3Dark') && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
50
+ else if ((maps.theme === 'TailwindDark' || maps.theme === 'Bootstrap5Dark' || maps.theme === 'FluentDark' || maps.theme === 'Material3Dark' ||
51
+ maps.theme === 'Fluent2Dark' || maps.theme === 'Fluent2HighContrast')
52
+ && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
50
53
  exportElement.childNodes[0].setAttribute('fill', 'rgba(0, 0, 0, 1)');
51
54
  }
52
55
  var url = window.URL.createObjectURL(new Blob(type === 'SVG' ? [svgData] :
@@ -65,7 +65,8 @@ export interface ILoadedEventArgs extends IMinMaxLatitudeLongitude, IMapsEventAr
65
65
  * Specifies the event argument of the load event in maps.
66
66
  */
67
67
  export interface ILoadEventArgs extends IMapsEventArgs {
68
- /** Defines the current maps instance.
68
+ /**
69
+ * Defines the current maps instance.
69
70
  *
70
71
 
71
72
  */
@@ -834,12 +835,24 @@ export interface IThemeStyle {
834
835
  zoomSelectionColor?: string;
835
836
  /** Specifies the color for the shapes in the maps. */
836
837
  shapeFill?: string;
838
+ /** Specifies the color of the border of the shapes in the maps. */
839
+ shapeBorderColor?: string;
837
840
  /** Specifies the color by using rectangle zoom fill color in maps. */
838
841
  rectangleZoomFillColor?: string;
839
842
  /** Specifies the color by using rectangle zoom fill color in maps. */
840
843
  rectangleZoomFillOpacity?: number;
841
844
  /** Specifies the color by using rectangle zoom fill color in maps. */
842
845
  rectangleZoomBorderColor?: string;
846
+ /** Specifies the color of the legend border in maps. */
847
+ legendBorderColor?: string;
848
+ /** Specifies the width of the legend border in maps. */
849
+ legendBorderWidth?: number;
850
+ /** Specifies the border color of the zoom toolbar buttons in maps. */
851
+ zoomBorderColor?: string;
852
+ /** Specifies the border color of the tooltip in maps. */
853
+ tooltipBorderColor?: string;
854
+ /** Specifies the radius of the zoom buttons in maps. */
855
+ zoomButtonRadius: number;
843
856
  }
844
857
  /**
845
858
  * Defines the template for the marker.
@@ -1 +0,0 @@
1
-
@@ -6,13 +6,13 @@ import { Maps } from '../../index';
6
6
  */
7
7
  export declare class Print {
8
8
  /**
9
- * Constructor for Maps
9
+ * Constructor for Maps.
10
10
  *
11
11
  * @param {Maps} control - Specifies the instance of the Maps
12
12
  */
13
13
  constructor(control: Maps);
14
14
  /**
15
- * To print the Maps
15
+ * To print the Maps.
16
16
  *
17
17
  * @param {Maps} maps -Specifies the Maps instance.
18
18
  * @param {string[] | string | Element} elements - Specifies the element of the Maps
@@ -21,7 +21,7 @@ export declare class Print {
21
21
  */
22
22
  print(maps: Maps, elements?: string[] | string | Element): void;
23
23
  /**
24
- * To get the html string of the Maps
24
+ * To get the html string of the Maps.
25
25
  *
26
26
  * @param {Maps} maps -Specifies the Maps instance.
27
27
  * @param {string[] | string | Element} elements - Specifies the html element
@@ -8,7 +8,7 @@ import { beforePrint } from '../model/constants';
8
8
  */
9
9
  var Print = /** @class */ (function () {
10
10
  /**
11
- * Constructor for Maps
11
+ * Constructor for Maps.
12
12
  *
13
13
  * @param {Maps} control - Specifies the instance of the Maps
14
14
  */
@@ -16,7 +16,7 @@ var Print = /** @class */ (function () {
16
16
  function Print(control) {
17
17
  }
18
18
  /**
19
- * To print the Maps
19
+ * To print the Maps.
20
20
  *
21
21
  * @param {Maps} maps -Specifies the Maps instance.
22
22
  * @param {string[] | string | Element} elements - Specifies the element of the Maps
@@ -38,7 +38,7 @@ var Print = /** @class */ (function () {
38
38
  });
39
39
  };
40
40
  /**
41
- * To get the html string of the Maps
41
+ * To get the html string of the Maps.
42
42
  *
43
43
  * @param {Maps} maps -Specifies the Maps instance.
44
44
  * @param {string[] | string | Element} elements - Specifies the html element
@@ -54,10 +54,13 @@ var Print = /** @class */ (function () {
54
54
  backgroundElement = backgroundElement.childNodes[0];
55
55
  if (!isNullOrUndefined(backgroundElement)) {
56
56
  var backgroundColor = backgroundElement.getAttribute('fill');
57
- if ((maps.theme === 'Tailwind' || maps.theme === 'Bootstrap5' || maps.theme === 'Fluent' || maps.theme === 'Material3') && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
57
+ if ((maps.theme === 'Tailwind' || maps.theme === 'Bootstrap5' || maps.theme === 'Fluent' || maps.theme === 'Material3' || maps.theme === 'Fluent2')
58
+ && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
58
59
  backgroundElement.setAttribute('fill', 'rgba(255,255,255, 1)');
59
60
  }
60
- else if ((maps.theme === 'TailwindDark' || maps.theme === 'Bootstrap5Dark' || maps.theme === 'FluentDark' || maps.theme === 'Material3Dark') && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
61
+ else if ((maps.theme === 'TailwindDark' || maps.theme === 'Bootstrap5Dark' || maps.theme === 'FluentDark' || maps.theme === 'Material3Dark' ||
62
+ maps.theme === 'Fluent2Dark' || maps.theme === 'Fluent2HighContrast')
63
+ && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
61
64
  backgroundElement.setAttribute('fill', 'rgba(0, 0, 0, 1)');
62
65
  }
63
66
  }
@@ -89,7 +89,7 @@ export declare namespace DarkTheme {
89
89
  const legendLabelFont: IFontMapping;
90
90
  }
91
91
  /**
92
- * Method to get the theme style
92
+ * Method to get the theme style.
93
93
  *
94
94
  * @param {MapsTheme} theme - Specifies the theme.
95
95
  * @returns {IThemeStyle} - Returns the theme style.
@@ -46,7 +46,7 @@ export var Theme;
46
46
  };
47
47
  /** @private */
48
48
  Theme.dataLabelFont = {
49
- size: '12px',
49
+ size: null,
50
50
  fontWeight: 'Medium',
51
51
  color: '#000000',
52
52
  fontStyle: 'Medium',
@@ -199,6 +199,15 @@ export function getShapeColor(theme) {
199
199
  themePalette = ['#4EAAFF', '#FA4EAB', '#FFF500', '#17EA58', '#38FFE7',
200
200
  '#FF9E45', '#B3F32F', '#B93CE4', '#FC5664', '#9B55FF'];
201
201
  break;
202
+ case 'fluent2':
203
+ themePalette = ['#6200EE', '#09AF74', '#0076E5', '#CB3587', '#E7910F',
204
+ '#0364DE', '#66CD15', '#F3A93C', '#107C10', '#C19C00'];
205
+ break;
206
+ case 'fluent2dark':
207
+ case 'fluent2highcontrast':
208
+ themePalette = ['#9BB449', '#2A72D5', '#43B786', '#3F579A', '#584EC6',
209
+ '#E85F9C', '#6E7A89', '#EA6266', '#0B6A0B', '#C19C00'];
210
+ break;
202
211
  default:
203
212
  themePalette = ['#B5E485', '#7BC1E8', '#DF819C', '#EC9B79', '#78D0D3',
204
213
  '#D6D572', '#9178E3', '#A1E5B4', '#87A4B4', '#E4C16C'];
@@ -254,7 +263,7 @@ export var HighContrastTheme;
254
263
  };
255
264
  /** @private */
256
265
  HighContrastTheme.dataLabelFont = {
257
- size: '12px',
266
+ size: null,
258
267
  fontWeight: 'Medium',
259
268
  color: '#000000',
260
269
  fontStyle: 'Medium',
@@ -309,7 +318,7 @@ export var DarkTheme;
309
318
  };
310
319
  })(DarkTheme || (DarkTheme = {}));
311
320
  /**
312
- * Method to get the theme style
321
+ * Method to get the theme style.
313
322
  *
314
323
  * @param {MapsTheme} theme - Specifies the theme.
315
324
  * @returns {IThemeStyle} - Returns the theme style.
@@ -348,13 +357,19 @@ export function getThemeStyle(theme) {
348
357
  labelFontFamily: 'Roboto, Noto, Sans-serif',
349
358
  fontFamily: 'Roboto, Noto, Sans-serif',
350
359
  fontSize: '12px',
360
+ legendFontSize: '12px',
351
361
  fontWeight: 'Medium',
352
362
  titleFontWeight: 'Medium',
353
363
  zoomSelectionColor: '#e61576',
354
364
  shapeFill: '#A6A6A6',
365
+ shapeBorderColor: '#000000',
355
366
  rectangleZoomFillColor: '#d3d3d3',
356
367
  rectangleZoomFillOpacity: 0.5,
357
- rectangleZoomBorderColor: '#009900'
368
+ rectangleZoomBorderColor: '#009900',
369
+ legendBorderColor: '#000000',
370
+ legendBorderWidth: 0,
371
+ tooltipBorderColor: 'transparent',
372
+ zoomButtonRadius: 30
358
373
  };
359
374
  break;
360
375
  case 'highcontrast':
@@ -372,14 +387,20 @@ export function getThemeStyle(theme) {
372
387
  zoomFillColor: '#FFFFFF',
373
388
  fontFamily: 'Roboto, Noto, Sans-serif',
374
389
  fontSize: '12px',
390
+ legendFontSize: '12px',
375
391
  fontWeight: 'Medium',
376
392
  labelFontFamily: 'Roboto, Noto, Sans-serif',
377
393
  titleFontWeight: 'Medium',
378
394
  zoomSelectionColor: '#e61576',
379
395
  shapeFill: '#A6A6A6',
396
+ shapeBorderColor: '#000000',
380
397
  rectangleZoomFillColor: '#d3d3d3',
381
398
  rectangleZoomFillOpacity: 0.5,
382
- rectangleZoomBorderColor: '#009900'
399
+ rectangleZoomBorderColor: '#009900',
400
+ legendBorderColor: '#000000',
401
+ legendBorderWidth: 0,
402
+ tooltipBorderColor: 'transparent',
403
+ zoomButtonRadius: 30
383
404
  };
384
405
  break;
385
406
  case 'bootstrap4':
@@ -405,9 +426,14 @@ export function getThemeStyle(theme) {
405
426
  titleFontWeight: 'Medium',
406
427
  zoomSelectionColor: '#e61576',
407
428
  shapeFill: '#A6A6A6',
429
+ shapeBorderColor: '#000000',
408
430
  rectangleZoomFillColor: '#d3d3d3',
409
431
  rectangleZoomFillOpacity: 0.5,
410
- rectangleZoomBorderColor: '#009900'
432
+ rectangleZoomBorderColor: '#009900',
433
+ legendBorderColor: '#000000',
434
+ legendBorderWidth: 0,
435
+ tooltipBorderColor: 'transparent',
436
+ zoomButtonRadius: 30
411
437
  };
412
438
  break;
413
439
  case 'tailwind':
@@ -433,9 +459,14 @@ export function getThemeStyle(theme) {
433
459
  titleFontWeight: '500',
434
460
  zoomSelectionColor: '#374151',
435
461
  shapeFill: '#E5E7EB',
462
+ shapeBorderColor: '#000000',
436
463
  rectangleZoomFillColor: '#d3d3d3',
437
464
  rectangleZoomFillOpacity: 0.5,
438
- rectangleZoomBorderColor: '#009900'
465
+ rectangleZoomBorderColor: '#009900',
466
+ legendBorderColor: '#000000',
467
+ legendBorderWidth: 0,
468
+ tooltipBorderColor: 'transparent',
469
+ zoomButtonRadius: 30
439
470
  };
440
471
  break;
441
472
  case 'tailwinddark':
@@ -461,9 +492,14 @@ export function getThemeStyle(theme) {
461
492
  titleFontWeight: '500',
462
493
  zoomSelectionColor: '#F3F4F6',
463
494
  shapeFill: '#374151',
495
+ shapeBorderColor: '#000000',
464
496
  rectangleZoomFillColor: '#d3d3d3',
465
497
  rectangleZoomFillOpacity: 0.5,
466
- rectangleZoomBorderColor: '#009900'
498
+ rectangleZoomBorderColor: '#009900',
499
+ legendBorderColor: '#000000',
500
+ legendBorderWidth: 0,
501
+ tooltipBorderColor: 'transparent',
502
+ zoomButtonRadius: 30
467
503
  };
468
504
  break;
469
505
  case 'bootstrap5':
@@ -489,9 +525,14 @@ export function getThemeStyle(theme) {
489
525
  titleFontWeight: 'normal',
490
526
  zoomSelectionColor: '#343A40',
491
527
  shapeFill: '#E9ECEF',
528
+ shapeBorderColor: '#000000',
492
529
  rectangleZoomFillColor: '#d3d3d3',
493
530
  rectangleZoomFillOpacity: 0.5,
494
- rectangleZoomBorderColor: '#009900'
531
+ rectangleZoomBorderColor: '#009900',
532
+ legendBorderColor: '#000000',
533
+ legendBorderWidth: 0,
534
+ tooltipBorderColor: 'transparent',
535
+ zoomButtonRadius: 30
495
536
  };
496
537
  break;
497
538
  case 'bootstrap5dark':
@@ -517,9 +558,14 @@ export function getThemeStyle(theme) {
517
558
  titleFontWeight: 'normal',
518
559
  zoomSelectionColor: '#DEE2E6',
519
560
  shapeFill: '#495057',
561
+ shapeBorderColor: '#000000',
520
562
  rectangleZoomFillColor: '#d3d3d3',
521
563
  rectangleZoomFillOpacity: 0.5,
522
- rectangleZoomBorderColor: '#009900'
564
+ rectangleZoomBorderColor: '#009900',
565
+ legendBorderColor: '#000000',
566
+ legendBorderWidth: 0,
567
+ tooltipBorderColor: 'transparent',
568
+ zoomButtonRadius: 30
523
569
  };
524
570
  break;
525
571
  case 'fluent':
@@ -545,9 +591,14 @@ export function getThemeStyle(theme) {
545
591
  titleFontWeight: '600',
546
592
  zoomSelectionColor: '#323130',
547
593
  shapeFill: '#F3F2F1',
594
+ shapeBorderColor: '#000000',
548
595
  rectangleZoomFillColor: '#d3d3d3',
549
596
  rectangleZoomFillOpacity: 0.5,
550
- rectangleZoomBorderColor: '#009900'
597
+ rectangleZoomBorderColor: '#009900',
598
+ legendBorderColor: '#000000',
599
+ legendBorderWidth: 0,
600
+ tooltipBorderColor: 'transparent',
601
+ zoomButtonRadius: 30
551
602
  };
552
603
  break;
553
604
  case 'fluentdark':
@@ -573,9 +624,14 @@ export function getThemeStyle(theme) {
573
624
  titleFontWeight: '600',
574
625
  zoomSelectionColor: '#F3F2F1',
575
626
  shapeFill: '#252423',
627
+ shapeBorderColor: '#000000',
576
628
  rectangleZoomFillColor: '#d3d3d3',
577
629
  rectangleZoomFillOpacity: 0.5,
578
- rectangleZoomBorderColor: '#009900'
630
+ rectangleZoomBorderColor: '#009900',
631
+ legendBorderColor: '#000000',
632
+ legendBorderWidth: 0,
633
+ tooltipBorderColor: 'transparent',
634
+ zoomButtonRadius: 30
579
635
  };
580
636
  break;
581
637
  case 'material3':
@@ -602,9 +658,14 @@ export function getThemeStyle(theme) {
602
658
  fontWeight: '400',
603
659
  zoomSelectionColor: '#49454E',
604
660
  shapeFill: '#E7E0EC',
661
+ shapeBorderColor: '#000000',
605
662
  rectangleZoomFillColor: '#6750A4',
606
663
  rectangleZoomFillOpacity: 0.24,
607
- rectangleZoomBorderColor: '#6750A4'
664
+ rectangleZoomBorderColor: '#6750A4',
665
+ legendBorderColor: '#000000',
666
+ legendBorderWidth: 0,
667
+ tooltipBorderColor: 'transparent',
668
+ zoomButtonRadius: 30
608
669
  };
609
670
  break;
610
671
  case 'material3dark':
@@ -631,9 +692,117 @@ export function getThemeStyle(theme) {
631
692
  fontWeight: '400',
632
693
  zoomSelectionColor: '#E6E1E5',
633
694
  shapeFill: '#49454F',
695
+ shapeBorderColor: '#000000',
634
696
  rectangleZoomFillColor: '#D0BCFF',
635
697
  rectangleZoomFillOpacity: 0.24,
636
- rectangleZoomBorderColor: '#D0BCFF'
698
+ rectangleZoomBorderColor: '#D0BCFF',
699
+ legendBorderColor: '#000000',
700
+ legendBorderWidth: 0,
701
+ tooltipBorderColor: 'transparent',
702
+ zoomButtonRadius: 30
703
+ };
704
+ break;
705
+ case 'fluent2':
706
+ style = {
707
+ backgroundColor: 'transparent',
708
+ areaBackgroundColor: 'transparent',
709
+ titleFontColor: '#242424',
710
+ subTitleFontColor: '#242424',
711
+ legendTitleFontColor: '#242424',
712
+ legendTextColor: '#242424',
713
+ dataLabelFontColor: '#242424',
714
+ tooltipFontColor: '#242424',
715
+ tooltipFillColor: '#FFFFFF',
716
+ zoomFillColor: '#D1D1D1',
717
+ fontFamily: 'Segoe UI',
718
+ fontSize: '10px',
719
+ fontWeight: '400',
720
+ titleFontSize: '14px',
721
+ subTitleFontSize: '12px',
722
+ legendFontSize: '12px',
723
+ tooltipFillOpacity: 1,
724
+ tooltipTextOpacity: 1,
725
+ labelFontFamily: 'Segoe UI',
726
+ titleFontWeight: '600',
727
+ zoomSelectionColor: '#242424',
728
+ shapeFill: '#E6E6E6',
729
+ shapeBorderColor: '#EBEBEB',
730
+ rectangleZoomFillColor: '#B4D6FA',
731
+ rectangleZoomFillOpacity: 0.25,
732
+ rectangleZoomBorderColor: '#0F6CBD',
733
+ legendBorderColor: '#000000',
734
+ legendBorderWidth: 0,
735
+ tooltipBorderColor: 'transparent',
736
+ zoomButtonRadius: 32
737
+ };
738
+ break;
739
+ case 'fluent2dark':
740
+ style = {
741
+ backgroundColor: 'transparent',
742
+ areaBackgroundColor: 'transparent',
743
+ titleFontColor: '#FFFFFF',
744
+ subTitleFontColor: '#FFFFFF',
745
+ legendTitleFontColor: '#FFFFFF',
746
+ legendTextColor: '#FFFFFF',
747
+ dataLabelFontColor: '#FFFFFF',
748
+ tooltipFontColor: '#FFFFFF',
749
+ tooltipFillColor: '#292929',
750
+ zoomFillColor: '#666',
751
+ fontFamily: 'Segoe UI',
752
+ fontSize: '10px',
753
+ fontWeight: '400',
754
+ titleFontSize: '14px',
755
+ subTitleFontSize: '12px',
756
+ legendFontSize: '12px',
757
+ tooltipFillOpacity: 1,
758
+ tooltipTextOpacity: 1,
759
+ labelFontFamily: 'Segoe UI',
760
+ titleFontWeight: '600',
761
+ zoomSelectionColor: '#FFFFFF',
762
+ shapeFill: '#333333',
763
+ shapeBorderColor: '#000000',
764
+ rectangleZoomFillColor: '#0E4775',
765
+ rectangleZoomFillOpacity: 0.25,
766
+ rectangleZoomBorderColor: '#0E4775',
767
+ legendBorderColor: '#000000',
768
+ legendBorderWidth: 0,
769
+ tooltipBorderColor: 'transparent',
770
+ zoomButtonRadius: 32
771
+ };
772
+ break;
773
+ case 'fluent2highcontrast':
774
+ style = {
775
+ backgroundColor: 'transparent',
776
+ areaBackgroundColor: 'transparent',
777
+ titleFontColor: '#FFFFFF',
778
+ subTitleFontColor: '#FFFFFF',
779
+ legendTitleFontColor: '#FFFFFF',
780
+ legendTextColor: '#FFFFFF',
781
+ dataLabelFontColor: '#FFFFFF',
782
+ tooltipFontColor: '#FFFFFF',
783
+ tooltipFillColor: '#000000',
784
+ zoomFillColor: '#3FF23F',
785
+ fontFamily: 'Segoe UI',
786
+ fontSize: '10px',
787
+ fontWeight: '400',
788
+ titleFontSize: '14px',
789
+ subTitleFontSize: '12px',
790
+ legendFontSize: '12px',
791
+ tooltipFillOpacity: 1,
792
+ tooltipTextOpacity: 1,
793
+ labelFontFamily: 'Segoe UI',
794
+ titleFontWeight: '600',
795
+ zoomSelectionColor: '#FFFFFF',
796
+ zoomBorderColor: '#FFFFFF',
797
+ shapeFill: '#292827',
798
+ shapeBorderColor: '#292827',
799
+ rectangleZoomFillColor: '#1AEBFF',
800
+ rectangleZoomFillOpacity: 0.25,
801
+ rectangleZoomBorderColor: '#1AEBFF',
802
+ legendBorderColor: '#FFFFFF',
803
+ legendBorderWidth: 1,
804
+ tooltipBorderColor: '#FFF',
805
+ zoomButtonRadius: 32
637
806
  };
638
807
  break;
639
808
  default:
@@ -652,13 +821,19 @@ export function getThemeStyle(theme) {
652
821
  labelFontFamily: 'Roboto, Noto, Sans-serif',
653
822
  fontFamily: 'Roboto, Noto, Sans-serif',
654
823
  fontSize: '12px',
824
+ legendFontSize: '12px',
655
825
  fontWeight: 'Medium',
656
826
  titleFontWeight: 'Medium',
657
827
  zoomSelectionColor: '#e61576',
658
828
  shapeFill: '#A6A6A6',
829
+ shapeBorderColor: '#000000',
659
830
  rectangleZoomFillColor: '#d3d3d3',
660
831
  rectangleZoomFillOpacity: 0.5,
661
- rectangleZoomBorderColor: '#009900'
832
+ rectangleZoomBorderColor: '#009900',
833
+ legendBorderColor: '#000000',
834
+ legendBorderWidth: 0,
835
+ tooltipBorderColor: 'transparent',
836
+ zoomButtonRadius: 30
662
837
  };
663
838
  break;
664
839
  }