@syncfusion/ej2-maps 19.4.56 → 20.1.47

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.
@@ -1257,7 +1257,7 @@ function marker(eventArgs, markerSettings, markerData, dataIndex, location, tran
1257
1257
  */
1258
1258
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1259
1259
  function markerTemplate(eventArgs, templateFn, markerID, data, markerIndex, markerTemplate, location, transPoint, scale, offset, maps) {
1260
- templateFn = getTemplateFunction(eventArgs.template);
1260
+ templateFn = getTemplateFunction(eventArgs.template, maps);
1261
1261
  if (templateFn && (templateFn(data, maps, eventArgs.template, maps.element.id + '_MarkerTemplate' + markerIndex, false).length)) {
1262
1262
  var templateElement = templateFn(data, maps, eventArgs.template, maps.element.id + '_MarkerTemplate' + markerIndex, false);
1263
1263
  var markerElement = convertElement(templateElement, markerID, data, markerIndex, maps);
@@ -2292,7 +2292,7 @@ function Internalize(maps, value) {
2292
2292
  * @private
2293
2293
  */
2294
2294
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2295
- function getTemplateFunction(template) {
2295
+ function getTemplateFunction(template, maps) {
2296
2296
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2297
2297
  var templateFn = null;
2298
2298
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -2300,6 +2300,9 @@ function getTemplateFunction(template) {
2300
2300
  if (document.querySelectorAll(template).length) {
2301
2301
  templateFn = compile(document.querySelector(template).innerHTML.trim());
2302
2302
  }
2303
+ else if (maps.isVue || maps.isVue3) {
2304
+ templateFn = compile(template);
2305
+ }
2303
2306
  }
2304
2307
  catch (e) {
2305
2308
  templateFn = compile(template);
@@ -2703,6 +2706,7 @@ function createTooltip(id, text, top, left, fontSize) {
2703
2706
  'left:' + left.toString() + 'px;' +
2704
2707
  'color: #000000; ' +
2705
2708
  'background:' + '#FFFFFF' + ';' +
2709
+ 'z-index: 2;' +
2706
2710
  'position:absolute;border:1px solid #707070;font-size:' + fontSize + ';border-radius:2px;';
2707
2711
  if (!tooltip) {
2708
2712
  tooltip = createElement('div', {
@@ -2903,6 +2907,9 @@ function changeBorderWidth(element, index, scale, maps) {
2903
2907
  currentStroke = (isNullOrUndefined(borderWidth) ? 0 : borderWidth);
2904
2908
  }
2905
2909
  }
2910
+ else {
2911
+ currentStroke = (isNullOrUndefined(borderWidth) ? 0 : borderWidth);
2912
+ }
2906
2913
  }
2907
2914
  else {
2908
2915
  currentStroke = (isNullOrUndefined(borderWidth) ? 0 : borderWidth);
@@ -3431,11 +3438,11 @@ function getShapeColor(theme) {
3431
3438
  themePalette = ['#5ECB9B', '#A860F1', '#EBA844', '#557EF7', '#E9599B',
3432
3439
  '#BFC529', '#3BC6CF', '#7A68EC', '#74B706', '#EA6266'];
3433
3440
  break;
3434
- case 'fluentui':
3441
+ case 'fluent':
3435
3442
  themePalette = ['#614570', '#4C6FB1', '#CC6952', '#3F579A', '#4EA09B',
3436
3443
  '#6E7A89', '#D4515C', '#E6AF5D', '#639751', '#9D4D69'];
3437
3444
  break;
3438
- case 'fluentuidark':
3445
+ case 'fluentdark':
3439
3446
  themePalette = ['#8AB113', '#2A72D5', '#43B786', '#584EC6', '#E85F9C',
3440
3447
  '#6E7A89', '#EA6266', '#EBA844', '#26BC7A', '#BC4870'];
3441
3448
  break;
@@ -3724,7 +3731,7 @@ function getThemeStyle(theme) {
3724
3731
  shapeFill: '#495057'
3725
3732
  };
3726
3733
  break;
3727
- case 'fluentui':
3734
+ case 'fluent':
3728
3735
  style = {
3729
3736
  backgroundColor: 'rgba(255,255,255, 0.0)',
3730
3737
  areaBackgroundColor: 'rgba(255,255,255, 0.0)',
@@ -3747,7 +3754,7 @@ function getThemeStyle(theme) {
3747
3754
  shapeFill: '#F3F2F1'
3748
3755
  };
3749
3756
  break;
3750
- case 'fluentuidark':
3757
+ case 'fluentdark':
3751
3758
  style = {
3752
3759
  backgroundColor: 'rgba(255,255,255, 0.0)',
3753
3760
  areaBackgroundColor: 'rgba(255,255,255, 0.0)',
@@ -4876,10 +4883,10 @@ var Marker = /** @__PURE__ @class */ (function () {
4876
4883
  eventArgs = markerShapeChoose(eventArgs, data);
4877
4884
  var lng = (!isNullOrUndefined(markerSettings.longitudeValuePath)) ?
4878
4885
  Number(getValueFromObject(data, markerSettings.longitudeValuePath)) : !isNullOrUndefined(data['longitude']) ?
4879
- parseFloat(data['longitude']) : !isNullOrUndefined(data['Longitude']) ? parseFloat(data['Longitude']) : 0;
4886
+ parseFloat(data['longitude']) : !isNullOrUndefined(data['Longitude']) ? parseFloat(data['Longitude']) : null;
4880
4887
  var lat = (!isNullOrUndefined(markerSettings.latitudeValuePath)) ?
4881
4888
  Number(getValueFromObject(data, markerSettings.latitudeValuePath)) : !isNullOrUndefined(data['latitude']) ?
4882
- parseFloat(data['latitude']) : !isNullOrUndefined(data['Latitude']) ? parseFloat(data['Latitude']) : 0;
4889
+ parseFloat(data['latitude']) : !isNullOrUndefined(data['Latitude']) ? parseFloat(data['Latitude']) : null;
4883
4890
  var offset = markerSettings.offset;
4884
4891
  if (!eventArgs.cancel && markerSettings.visible && !isNullOrUndefined(lng) && !isNullOrUndefined(lat)) {
4885
4892
  var markerID = _this.maps.element.id + '_LayerIndex_' + layerIndex + '_MarkerIndex_'
@@ -4924,7 +4931,7 @@ var Marker = /** @__PURE__ @class */ (function () {
4924
4931
  _this.maps.renderReactTemplates();
4925
4932
  }
4926
4933
  }
4927
- if (markerTemplateEle.childElementCount === (markerData.length - markerCount - nullCount) && getElementByID(_this.maps.element.id + '_Secondary_Element')) {
4934
+ if (markerTemplateEle.childElementCount === (markerDataLength - markerCount - nullCount) && getElementByID(_this.maps.element.id + '_Secondary_Element')) {
4928
4935
  getElementByID(_this.maps.element.id + '_Secondary_Element').appendChild(markerTemplateEle);
4929
4936
  if (_this.maps.checkInitialRender) {
4930
4937
  if (currentLayer.markerClusterSettings.allowClustering) {
@@ -5174,7 +5181,7 @@ var Marker = /** @__PURE__ @class */ (function () {
5174
5181
  if ((target.indexOf('_cluster_') > -1)) {
5175
5182
  var isClusterSame = false;
5176
5183
  var clusterElement = document.getElementById(target.indexOf('_datalabel_') > -1 ? target.split('_datalabel_')[0] : target);
5177
- var indexes = clusterElement.innerHTML.split(',').map(Number);
5184
+ var indexes = layer.markerClusterSettings.shape === 'Balloon' ? clusterElement.children[0].innerHTML.split(',').map(Number) : clusterElement.innerHTML.split(',').map(Number);
5178
5185
  collection_1 = [];
5179
5186
  for (var _i = 0, indexes_1 = indexes; _i < indexes_1.length; _i++) {
5180
5187
  var i = indexes_1[_i];
@@ -7039,7 +7046,7 @@ var Annotations = /** @__PURE__ @class */ (function () {
7039
7046
  if (argsData.cancel) {
7040
7047
  return;
7041
7048
  }
7042
- templateFn = getTemplateFunction(argsData.content);
7049
+ templateFn = getTemplateFunction(argsData.content, _this.map);
7043
7050
  if (templateFn && templateFn(_this.map, _this.map, argsData.content, _this.map.element.id + '_ContentTemplate_' + annotationIndex).length) {
7044
7051
  templateElement = Array.prototype.slice.call(templateFn(_this.map, _this.map, argsData.content, _this.map.element.id + '_ContentTemplate_' + annotationIndex));
7045
7052
  var length_1 = templateElement.length;
@@ -9938,7 +9945,7 @@ var DataLabel = /** @__PURE__ @class */ (function () {
9938
9945
  _this.value[index] = { rightWidth: xpositionEnds, leftWidth: xpositionStart, heightTop: start, heightBottom: end };
9939
9946
  var labelElement;
9940
9947
  if (eventargs_1.template !== '') {
9941
- templateFn = getTemplateFunction(eventargs_1.template);
9948
+ templateFn = getTemplateFunction(eventargs_1.template, _this.maps);
9942
9949
  var templateElement = templateFn ? templateFn(!isNullOrUndefined(datasrcObj) ?
9943
9950
  datasrcObj : shapeData['properties'], _this.maps, eventargs_1.template, _this.maps.element.id + '_LabelTemplate', false) : document.createElement('div');
9944
9951
  templateElement.innerHTML = !templateFn ? eventargs_1.template : '';
@@ -11550,7 +11557,7 @@ var Legend = /** @__PURE__ @class */ (function () {
11550
11557
  data[_this.maps.legendSettings.showLegendPath];
11551
11558
  if (marker$$1.visible && showLegend && (!isNullOrUndefined(data['latitude'])) && (!isNullOrUndefined(data['longitude']))) {
11552
11559
  if (marker$$1.template) {
11553
- templateFn = getTemplateFunction(marker$$1.template);
11560
+ templateFn = getTemplateFunction(marker$$1.template, _this.maps);
11554
11561
  var templateElement = templateFn(_this.maps);
11555
11562
  var markerEle = isNullOrUndefined(templateElement.childElementCount) ? templateElement[0] :
11556
11563
  templateElement;
@@ -13043,6 +13050,10 @@ var MapsTooltip = /** @__PURE__ @class */ (function () {
13043
13050
  fill: tooltipArgs.fill || _this.maps.themeStyle.tooltipFillColor
13044
13051
  });
13045
13052
  }
13053
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
13054
+ if (_this.maps.isVue || _this.maps.isVue3) {
13055
+ _this.svgTooltip.controlInstance = _this.maps;
13056
+ }
13046
13057
  _this.svgTooltip.opacity = _this.maps.themeStyle.tooltipFillOpacity || _this.svgTooltip.opacity;
13047
13058
  _this.svgTooltip.appendTo(tooltipEle);
13048
13059
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -13056,9 +13067,7 @@ var MapsTooltip = /** @__PURE__ @class */ (function () {
13056
13067
  }
13057
13068
  }
13058
13069
  else {
13059
- _this.removeTooltip();
13060
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
13061
- _this.maps.clearTemplate();
13070
+ _this.clearTooltip();
13062
13071
  }
13063
13072
  });
13064
13073
  if (this.svgTooltip) {
@@ -13073,9 +13082,7 @@ var MapsTooltip = /** @__PURE__ @class */ (function () {
13073
13082
  });
13074
13083
  }
13075
13084
  else {
13076
- this.removeTooltip();
13077
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
13078
- this.maps.clearTemplate();
13085
+ this.clearTooltip();
13079
13086
  }
13080
13087
  }
13081
13088
  else {
@@ -13085,9 +13092,7 @@ var MapsTooltip = /** @__PURE__ @class */ (function () {
13085
13092
  this.maps.notify(click, this);
13086
13093
  }
13087
13094
  else {
13088
- this.removeTooltip();
13089
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
13090
- this.maps.clearTemplate();
13095
+ this.clearTooltip();
13091
13096
  }
13092
13097
  }
13093
13098
  };
@@ -13133,8 +13138,18 @@ var MapsTooltip = /** @__PURE__ @class */ (function () {
13133
13138
  }
13134
13139
  };
13135
13140
  MapsTooltip.prototype.removeTooltip = function () {
13141
+ var isTooltipRemoved = false;
13136
13142
  if (document.getElementsByClassName('EJ2-maps-Tooltip').length > 0) {
13137
13143
  remove(document.getElementsByClassName('EJ2-maps-Tooltip')[0]);
13144
+ isTooltipRemoved = true;
13145
+ }
13146
+ return isTooltipRemoved;
13147
+ };
13148
+ MapsTooltip.prototype.clearTooltip = function () {
13149
+ var isTooltipRemoved = this.removeTooltip();
13150
+ if (isTooltipRemoved) {
13151
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
13152
+ this.maps.clearTemplate();
13138
13153
  }
13139
13154
  };
13140
13155
  // eslint-disable-next-line valid-jsdoc
@@ -13725,10 +13740,10 @@ var Zoom = /** @__PURE__ @class */ (function () {
13725
13740
  }
13726
13741
  var lati = (!isNullOrUndefined(markerSettings.latitudeValuePath)) ?
13727
13742
  Number(getValueFromObject(data, markerSettings.latitudeValuePath)) : !isNullOrUndefined(data['latitude']) ?
13728
- parseFloat(data['latitude']) : !isNullOrUndefined(data['Latitude']) ? data['Latitude'] : 0;
13743
+ parseFloat(data['latitude']) : !isNullOrUndefined(data['Latitude']) ? data['Latitude'] : null;
13729
13744
  var long = (!isNullOrUndefined(markerSettings.longitudeValuePath)) ?
13730
13745
  Number(getValueFromObject(data, markerSettings.longitudeValuePath)) : !isNullOrUndefined(data['longitude']) ?
13731
- parseFloat(data['longitude']) : !isNullOrUndefined(data['Longitude']) ? data['Longitude'] : 0;
13746
+ parseFloat(data['longitude']) : !isNullOrUndefined(data['Longitude']) ? data['Longitude'] : null;
13732
13747
  var offset = markerSettings.offset;
13733
13748
  if (!eventArgs.cancel && markerSettings.visible && !isNullOrUndefined(long) && !isNullOrUndefined(lati)) {
13734
13749
  var markerID = _this.maps.element.id + '_LayerIndex_' + layerIndex + '_MarkerIndex_'
@@ -13748,10 +13763,10 @@ var Zoom = /** @__PURE__ @class */ (function () {
13748
13763
  nullCount += (!isNaN(lati) && !isNaN(long)) ? 0 : 1;
13749
13764
  markerTemplateCounts += (eventArgs.cancel) ? 1 : 0;
13750
13765
  markerCounts += (eventArgs.cancel) ? 1 : 0;
13751
- _this.maps.markerNullCount = (!isNullOrUndefined(lati) || !isNullOrUndefined(long))
13752
- ? _this.maps.markerNullCount : _this.maps.markerNullCount + 1;
13766
+ _this.maps.markerNullCount = (isNullOrUndefined(lati) || isNullOrUndefined(long))
13767
+ ? _this.maps.markerNullCount + 1 : _this.maps.markerNullCount;
13753
13768
  var markerDataLength = markerDatas.length - _this.maps.markerNullCount;
13754
- if (markerSVGObject.childElementCount === (markerDatas.length - markerTemplateCounts - nullCount) && (type !== 'Template')) {
13769
+ if (markerSVGObject.childElementCount === (markerDataLength - markerTemplateCounts - nullCount) && (type !== 'Template')) {
13755
13770
  layerElement.appendChild(markerSVGObject);
13756
13771
  if (currentLayers.markerClusterSettings.allowClustering) {
13757
13772
  _this.maps.svgObject.appendChild(markerSVGObject);
@@ -13759,7 +13774,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
13759
13774
  clusterTemplate(currentLayers, markerSVGObject, _this.maps, layerIndex, markerSVGObject, layerElement, true, true);
13760
13775
  }
13761
13776
  }
13762
- if (markerTemplateElements.childElementCount === (markerDatas.length - markerCounts - nullCount) && getElementByID(_this.maps.element.id + '_Secondary_Element')) {
13777
+ if (markerTemplateElements.childElementCount === (markerDataLength - markerCounts - nullCount) && getElementByID(_this.maps.element.id + '_Secondary_Element')) {
13763
13778
  getElementByID(_this.maps.element.id + '_Secondary_Element').appendChild(markerTemplateElements);
13764
13779
  if (scale >= 1) {
13765
13780
  if (currentLayers.markerClusterSettings.allowClustering) {
@@ -14202,7 +14217,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
14202
14217
  var map = this.maps;
14203
14218
  this.toolBarGroup = map.renderer.createGroup({
14204
14219
  id: map.element.id + '_Zooming_KitCollection',
14205
- opacity: map.theme.toLowerCase() === 'fluentuidark' ? 0.6 : 0.3
14220
+ opacity: map.theme.toLowerCase() === 'fluentdark' ? 0.6 : 0.3
14206
14221
  });
14207
14222
  var kitHeight = 16;
14208
14223
  var kitWidth = 16;
@@ -14606,14 +14621,14 @@ var Zoom = /** @__PURE__ @class */ (function () {
14606
14621
  if (document.getElementById(map.element.id + '_Zooming_ToolBar_Pan_Group')) {
14607
14622
  if (!this.maps.zoomSettings.enablePanning) {
14608
14623
  if (target.id.indexOf('_Zooming_ToolBar') > -1 || target.id.indexOf('_Zooming_Rect') > -1) {
14609
- getElementByID(map.element.id + '_Zooming_ToolBar_Pan_Rect').setAttribute('opacity', map.theme.toLowerCase() === 'fluentuidark' ? '0.6' : '0.3');
14610
- getElementByID(map.element.id + '_Zooming_ToolBar_Pan').setAttribute('opacity', map.theme.toLowerCase() === 'fluentuidark' ? '0.6' : '0.3');
14624
+ getElementByID(map.element.id + '_Zooming_ToolBar_Pan_Rect').setAttribute('opacity', map.theme.toLowerCase() === 'fluentdark' ? '0.6' : '0.3');
14625
+ getElementByID(map.element.id + '_Zooming_ToolBar_Pan').setAttribute('opacity', map.theme.toLowerCase() === 'fluentdark' ? '0.6' : '0.3');
14611
14626
  }
14612
14627
  }
14613
14628
  }
14614
14629
  }
14615
14630
  else {
14616
- getElementByID(map.element.id + '_Zooming_KitCollection').setAttribute('opacity', map.theme.toLowerCase() === 'fluentuidark' ? '0.6' : '0.3');
14631
+ getElementByID(map.element.id + '_Zooming_KitCollection').setAttribute('opacity', map.theme.toLowerCase() === 'fluentdark' ? '0.6' : '0.3');
14617
14632
  if (!this.maps.zoomSettings.enablePanning && document.getElementById(map.element.id + '_Zooming_ToolBar_Pan_Group')) {
14618
14633
  getElementByID(map.element.id + '_Zooming_ToolBar_Pan_Rect').setAttribute('opacity', '1');
14619
14634
  getElementByID(map.element.id + '_Zooming_ToolBar_Pan').setAttribute('opacity', '1');
@@ -14822,7 +14837,27 @@ var Print = /** @__PURE__ @class */ (function () {
14822
14837
  Print.prototype.getHTMLContent = function (elements) {
14823
14838
  var elementRect = getClientElement(this.control.element.id);
14824
14839
  var div = createElement('div');
14825
- div.setAttribute("style", "margin-top:" + elementRect["top"] + "px");
14840
+ var divElement = this.control.element.cloneNode(true);
14841
+ if (this.control.isTileMap) {
14842
+ for (var i = 0; i < divElement.childElementCount; i++) {
14843
+ if (divElement.children[i].id === this.control.element.id + '_tile_parent') {
14844
+ divElement.children[i].style.removeProperty('height');
14845
+ divElement.children[i].style.removeProperty('width');
14846
+ divElement.children[i].style.removeProperty('top');
14847
+ divElement.children[i].style.removeProperty('left');
14848
+ divElement.children[i].style.removeProperty('right');
14849
+ divElement.children[i].style.removeProperty('overflow');
14850
+ var svgElement = document.getElementById(this.control.element.id + '_Tile_SVG_Parent');
14851
+ divElement.children[i].children[0].style.overflow = 'hidden';
14852
+ divElement.children[i].children[0].style.position = 'absolute';
14853
+ divElement.children[i].children[0].style.height = svgElement.style.height;
14854
+ divElement.children[i].children[0].style.width = svgElement.style.width;
14855
+ divElement.children[i].children[0].style.left = svgElement.style.left;
14856
+ divElement.children[i].children[0].style.top = svgElement.style.top;
14857
+ break;
14858
+ }
14859
+ }
14860
+ }
14826
14861
  if (elements) {
14827
14862
  if (elements instanceof Array) {
14828
14863
  Array.prototype.forEach.call(elements, function (value) {
@@ -14837,7 +14872,7 @@ var Print = /** @__PURE__ @class */ (function () {
14837
14872
  }
14838
14873
  }
14839
14874
  else {
14840
- div.appendChild(this.control.element.cloneNode(true));
14875
+ div.appendChild(divElement);
14841
14876
  }
14842
14877
  return div;
14843
14878
  };
@@ -14902,7 +14937,6 @@ var ImageExport = /** @__PURE__ @class */ (function () {
14902
14937
  var isDownload = !(Browser.userAgent.toString().indexOf('HeadlessChrome') > -1);
14903
14938
  var toolbarEle = document.getElementById(_this.control.element.id + '_ToolBar');
14904
14939
  var svgParent = document.getElementById(_this.control.element.id + '_Tile_SVG_Parent');
14905
- var tileParent = document.getElementById(_this.control.element.id + '_tile_parent');
14906
14940
  var svgDataElement;
14907
14941
  var tileSvg;
14908
14942
  var svgObject = getElementByID(_this.control.element.id + '_svg').cloneNode(true);
@@ -14947,7 +14981,6 @@ var ImageExport = /** @__PURE__ @class */ (function () {
14947
14981
  image_1.src = url;
14948
14982
  }
14949
14983
  else {
14950
- var extraSpace_1 = getClientElement(_this.control.element.id);
14951
14984
  var imgxHttp = new XMLHttpRequest();
14952
14985
  var imgTileLength_1 = _this.control.mapLayerPanel.tiles.length;
14953
14986
  var _loop_1 = function (i) {
@@ -14970,12 +15003,13 @@ var ImageExport = /** @__PURE__ @class */ (function () {
14970
15003
  ctxt_1.clip();
14971
15004
  }
14972
15005
  else {
14973
- ctxt_1.setTransform(1, 0, 0, 1, parseFloat(svgParent.style.left), (parseFloat(tileParent.style.top) - extraSpace_1["top"]));
15006
+ ctxt_1.setTransform(1, 0, 0, 1, parseFloat(svgParent.style.left), parseFloat(svgParent.style.top));
14974
15007
  }
14975
15008
  }
14976
15009
  else {
14977
- ctxt_1.setTransform(1, 0, 0, 1, parseFloat(tile.style.left) + _this.control.margin.left, parseFloat(tile.style.top) +
14978
- (parseFloat(tileParent.style.top)) - extraSpace_1["top"]);
15010
+ var tileParent = document.getElementById(_this.control.element.id + '_tile_parent');
15011
+ ctxt_1.setTransform(1, 0, 0, 1, parseFloat(tile.style.left) + 10, parseFloat(tile.style.top) +
15012
+ (parseFloat(tileParent.style.top)));
14979
15013
  }
14980
15014
  ctxt_1.drawImage(exportTileImg, 0, 0);
14981
15015
  if (i === imgTileLength_1 + 1) {
@@ -15082,11 +15116,10 @@ var PdfExport = /** @__PURE__ @class */ (function () {
15082
15116
  var svgParent = document.getElementById(_this.control.element.id + '_Tile_SVG_Parent');
15083
15117
  var svgData;
15084
15118
  var exportElement = _this.control.svgObject.cloneNode(true);
15085
- var tileParent = document.getElementById(_this.control.element.id + '_tile_parent');
15086
15119
  var backgroundElement = exportElement.childNodes[0];
15087
15120
  var backgroundColor = backgroundElement.getAttribute('fill');
15088
- if ((_this.control.theme === 'Tailwind' || _this.control.theme === 'TailwindDark' || _this.control.theme === 'Bootstrap5' || _this.control.theme === 'Bootstrap5Dark')
15089
- && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
15121
+ if ((_this.control.theme === 'Tailwind' || _this.control.theme === 'TailwindDark' || _this.control.theme === 'Bootstrap5' || _this.control.theme === 'Bootstrap5Dark'
15122
+ || _this.control.theme === 'Fluent' || _this.control.theme === 'FluentDark') && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
15090
15123
  exportElement.childNodes[0].setAttribute('fill', 'rgba(255,255,255, 1)');
15091
15124
  }
15092
15125
  var url = window.URL.createObjectURL(new Blob(type === 'SVG' ? [svgData] :
@@ -15115,7 +15148,6 @@ var PdfExport = /** @__PURE__ @class */ (function () {
15115
15148
  image.src = url;
15116
15149
  }
15117
15150
  else {
15118
- var extraSpace_1 = getClientElement(_this.control.element.id);
15119
15151
  var xHttp = new XMLHttpRequest();
15120
15152
  var tileLength_1 = _this.control.mapLayerPanel.tiles.length;
15121
15153
  var _loop_1 = function (i) {
@@ -15138,12 +15170,13 @@ var PdfExport = /** @__PURE__ @class */ (function () {
15138
15170
  ctx.clip();
15139
15171
  }
15140
15172
  else {
15141
- ctx.setTransform(1, 0, 0, 1, parseFloat(svgParent.style.left), (parseFloat(tileParent.style.top) - extraSpace_1["top"]));
15173
+ ctx.setTransform(1, 0, 0, 1, parseFloat(svgParent.style.left), parseFloat(svgParent.style.top));
15142
15174
  }
15143
15175
  }
15144
15176
  else {
15145
- ctx.setTransform(1, 0, 0, 1, parseFloat(tile.style.left) + _this.control.margin.left, (parseFloat(tile.style.top) +
15146
- (parseFloat(tileParent.style.top)) - extraSpace_1["top"]));
15177
+ var tileParent = document.getElementById(_this.control.element.id + '_tile_parent');
15178
+ ctx.setTransform(1, 0, 0, 1, parseFloat(tile.style.left) + 10, parseFloat(tile.style.top) +
15179
+ (parseFloat(tileParent.style.top)));
15147
15180
  }
15148
15181
  ctx.drawImage(tileImg, 0, 0);
15149
15182
  if (i === tileLength_1 + 1) {