@evergis/react 3.0.22 → 3.0.24

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.
@@ -27,8 +27,6 @@ var PolylineSymbol = require('@evergis/sgis/es/symbols/PolylineSymbol');
27
27
  var Poly = require('@evergis/sgis/es/renders/Poly');
28
28
  var geotools = require('@evergis/sgis/es/geotools');
29
29
  var math = require('@evergis/sgis/es/utils/math');
30
- var Canvas = require('@evergis/sgis/es/painters/DomPainter/Canvas');
31
- var Crs = require('@evergis/sgis/es/Crs');
32
30
  var Poly$1 = require('@evergis/sgis/es/features/Poly');
33
31
  var Point = require('@evergis/sgis/es/symbols/point/Point');
34
32
  var PointFeature = require('@evergis/sgis/es/features/PointFeature');
@@ -38,6 +36,7 @@ var Render = require('@evergis/sgis/es/renders/Render');
38
36
  var SvgRender = require('@evergis/sgis/es/painters/DomPainter/SvgRender');
39
37
  var domEvent = require('@evergis/sgis/es/utils/domEvent');
40
38
  var EventHandler = require('@evergis/sgis/es/EventHandler');
39
+ var Crs = require('@evergis/sgis/es/Crs');
41
40
  var StaticImageSymbol = require('@evergis/sgis/es/symbols/point/StaticImageSymbol');
42
41
  var Square = require('@evergis/sgis/es/symbols/point/Square');
43
42
  var MaskedImage = require('@evergis/sgis/es/symbols/point/MaskedImage');
@@ -47,6 +46,7 @@ var Polygon = require('@evergis/sgis/es/features/Polygon');
47
46
  var Polyline = require('@evergis/sgis/es/features/Polyline');
48
47
  var H3Feature = require('@evergis/sgis/es/features/H3Feature');
49
48
  var CombinedPolyline = require('@evergis/sgis/es/features/CombinedPolyline');
49
+ var Canvas = require('@evergis/sgis/es/painters/DomPainter/Canvas');
50
50
 
51
51
  function _classCallCheck(instance, Constructor) {
52
52
  if (!(instance instanceof Constructor)) {
@@ -67,9 +67,6 @@ function _defineProperties(target, props) {
67
67
  function _createClass(Constructor, protoProps, staticProps) {
68
68
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
69
69
  if (staticProps) _defineProperties(Constructor, staticProps);
70
- Object.defineProperty(Constructor, "prototype", {
71
- writable: false
72
- });
73
70
  return Constructor;
74
71
  }
75
72
 
@@ -103,9 +100,6 @@ function _inherits(subClass, superClass) {
103
100
  configurable: true
104
101
  }
105
102
  });
106
- Object.defineProperty(subClass, "prototype", {
107
- writable: false
108
- });
109
103
  if (superClass) _setPrototypeOf(subClass, superClass);
110
104
  }
111
105
 
@@ -164,8 +158,6 @@ function _assertThisInitialized(self) {
164
158
  function _possibleConstructorReturn(self, call) {
165
159
  if (call && (typeof call === "object" || typeof call === "function")) {
166
160
  return call;
167
- } else if (call !== void 0) {
168
- throw new TypeError("Derived constructors may only return object or undefined");
169
161
  }
170
162
 
171
163
  return _assertThisInitialized(self);
@@ -199,7 +191,7 @@ function _superPropBase(object, property) {
199
191
  return object;
200
192
  }
201
193
 
202
- function _get() {
194
+ function _get(target, property, receiver) {
203
195
  if (typeof Reflect !== "undefined" && Reflect.get) {
204
196
  _get = Reflect.get;
205
197
  } else {
@@ -210,14 +202,14 @@ function _get() {
210
202
  var desc = Object.getOwnPropertyDescriptor(base, property);
211
203
 
212
204
  if (desc.get) {
213
- return desc.get.call(arguments.length < 3 ? target : receiver);
205
+ return desc.get.call(receiver);
214
206
  }
215
207
 
216
208
  return desc.value;
217
209
  };
218
210
  }
219
211
 
220
- return _get.apply(this, arguments);
212
+ return _get(target, property, receiver || target);
221
213
  }
222
214
 
223
215
  function _taggedTemplateLiteralLoose(strings, raw) {
@@ -241,7 +233,7 @@ const isParameterType = (types, parameter) => {
241
233
 
242
234
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38;
243
235
  const MapLegendDescription = /*#__PURE__*/styled__default.div(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 0.75rem;\n"])));
244
- const ItemText = /*#__PURE__*/styled__default.div(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n max-width: calc(100% - 2rem);\n font: ", ";\n"])), _ref => {
236
+ const ItemText = /*#__PURE__*/styled__default.div(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n max-width: calc(100% - 2rem);\n font: ", ";\n"])), (_ref) => {
245
237
  let {
246
238
  theme: {
247
239
  fonts
@@ -251,28 +243,28 @@ const ItemText = /*#__PURE__*/styled__default.div(_templateObject2 || (_template
251
243
  });
252
244
  const ItemSeparator = /*#__PURE__*/styled__default.div(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n :after {\n content: '-';\n margin: 0 0.5rem;\n font-size: 0.75rem;\n }\n"])));
253
245
  const SymbolContainer = /*#__PURE__*/styled__default('span')(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n min-width: 1.5rem;\n margin-right: 0.5rem;\n"])));
254
- const ClassifiedItem = /*#__PURE__*/styled__default.div(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n align-items: center;\n cursor: ", ";\n pointer-events: ", ";\n\n :not(:last-of-type) {\n margin-bottom: 0.25rem;\n }\n\n ", ", ", " {\n transition: opacity 150ms;\n }\n\n ", " {\n opacity: ", ";\n }\n\n ", " {\n opacity: ", ";\n }\n\n :hover {\n ", ", ", " {\n opacity: 1;\n }\n }\n\n ", " {\n margin-left: 0.5rem;\n }\n"])), _ref2 => {
246
+ const ClassifiedItem = /*#__PURE__*/styled__default.div(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n align-items: center;\n cursor: ", ";\n pointer-events: ", ";\n\n :not(:last-of-type) {\n margin-bottom: 0.25rem;\n }\n\n ", ", ", " {\n transition: opacity 150ms;\n }\n\n ", " {\n opacity: ", ";\n }\n\n ", " {\n opacity: ", ";\n }\n\n :hover {\n ", ", ", " {\n opacity: 1;\n }\n }\n\n ", " {\n margin-left: 0.5rem;\n }\n"])), (_ref2) => {
255
247
  let {
256
248
  isClusterFillColor
257
249
  } = _ref2;
258
250
  return isClusterFillColor ? 'default' : 'pointer';
259
- }, _ref3 => {
251
+ }, (_ref3) => {
260
252
  let {
261
253
  isClusterFillColor
262
254
  } = _ref3;
263
255
  return isClusterFillColor ? 'none' : 'auto';
264
- }, ItemText, SymbolContainer, ItemText, _ref4 => {
256
+ }, ItemText, SymbolContainer, ItemText, (_ref4) => {
265
257
  let {
266
258
  isHidden
267
259
  } = _ref4;
268
260
  return isHidden ? 0.28 : 0.65;
269
- }, SymbolContainer, _ref5 => {
261
+ }, SymbolContainer, (_ref5) => {
270
262
  let {
271
263
  isHidden
272
264
  } = _ref5;
273
265
  return isHidden ? 0.28 : 1;
274
266
  }, ItemText, SymbolContainer, icons.IconButton);
275
- const SymbolButtonWithClick = /*#__PURE__*/styled.css(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 3.875rem;\n height: 3.875rem;\n cursor: pointer;\n\n &:hover {\n background-color: ", ";\n }\n"])), _ref6 => {
267
+ const SymbolButtonWithClick = /*#__PURE__*/styled.css(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 3.875rem;\n height: 3.875rem;\n cursor: pointer;\n\n &:hover {\n background-color: ", ";\n }\n"])), (_ref6) => {
276
268
  let {
277
269
  theme: {
278
270
  palette
@@ -280,7 +272,7 @@ const SymbolButtonWithClick = /*#__PURE__*/styled.css(_templateObject6 || (_temp
280
272
  } = _ref6;
281
273
  return palette.elementDeep;
282
274
  });
283
- const SymbolButton = /*#__PURE__*/styled__default.span(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n transition: background-color 150ms;\n ", ";\n\n svg {\n max-width: 4rem;\n max-height: 4rem;\n }\n"])), _ref7 => {
275
+ const SymbolButton = /*#__PURE__*/styled__default.span(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n transition: background-color 150ms;\n ", ";\n\n svg {\n max-width: 4rem;\n max-height: 4rem;\n }\n"])), (_ref7) => {
284
276
  let {
285
277
  onClick
286
278
  } = _ref7;
@@ -289,21 +281,21 @@ const SymbolButton = /*#__PURE__*/styled__default.span(_templateObject7 || (_tem
289
281
  const MapLegendContainer = /*#__PURE__*/styled__default.div(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n width: 100%;\n padding-bottom: 1rem;\n box-sizing: border-box;\n\n canvas {\n height: 1.625rem;\n width: 1.625rem;\n }\n"])));
290
282
  const MapLegendHeader = /*#__PURE__*/styled__default.div(_templateObject9 || (_templateObject9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n max-width: 15rem;\n margin-bottom: 0.25rem;\n font-size: 0.75rem;\n font-weight: bold;\n"])));
291
283
  const MapLegendDescriptionContainer = /*#__PURE__*/styled__default.div(_templateObject10 || (_templateObject10 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-bottom: 0.5rem;\n font-weight: 400;\n font-size: 0.625rem;\n color: rgba(48, 69, 79, 0.65);\n"])));
292
- const MapLegendBadge = /*#__PURE__*/styled__default.span(_templateObject11 || (_templateObject11 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n min-width: 0.5rem;\n height: 0.75rem;\n display: inline-block;\n margin-left: 0.25rem;\n padding: 0.125rem 0.25rem;\n border-radius: ", ";\n background-color: ", ";\n color: ", ";\n text-align: center;\n"])), _ref8 => {
284
+ const MapLegendBadge = /*#__PURE__*/styled__default.span(_templateObject11 || (_templateObject11 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n min-width: 0.5rem;\n height: 0.75rem;\n display: inline-block;\n margin-left: 0.25rem;\n padding: 0.125rem 0.25rem;\n border-radius: ", ";\n background-color: ", ";\n color: ", ";\n text-align: center;\n"])), (_ref8) => {
293
285
  let {
294
286
  theme: {
295
287
  borderRadius
296
288
  }
297
289
  } = _ref8;
298
290
  return borderRadius.xSmall;
299
- }, _ref9 => {
291
+ }, (_ref9) => {
300
292
  let {
301
293
  theme: {
302
294
  palette
303
295
  }
304
296
  } = _ref9;
305
297
  return palette.element;
306
- }, _ref10 => {
298
+ }, (_ref10) => {
307
299
  let {
308
300
  theme: {
309
301
  palette
@@ -311,17 +303,17 @@ const MapLegendBadge = /*#__PURE__*/styled__default.span(_templateObject11 || (_
311
303
  } = _ref10;
312
304
  return palette.textPrimary;
313
305
  });
314
- const MaximizedLegendContainer = /*#__PURE__*/styled__default.div(_templateObject12 || (_templateObject12 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: ", ";\n top: 0;\n opacity: ", ";\n visibility: ", ";\n overflow: hidden;\n transition: opacity 0.5s, visibility 0.5s;\n"])), _ref11 => {
306
+ const MaximizedLegendContainer = /*#__PURE__*/styled__default.div(_templateObject12 || (_templateObject12 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: ", ";\n top: 0;\n opacity: ", ";\n visibility: ", ";\n overflow: hidden;\n transition: opacity 0.5s, visibility 0.5s;\n"])), (_ref11) => {
315
307
  let {
316
308
  isShown
317
309
  } = _ref11;
318
310
  return isShown ? 'relative' : 'absolute';
319
- }, _ref12 => {
311
+ }, (_ref12) => {
320
312
  let {
321
313
  isShown
322
314
  } = _ref12;
323
315
  return isShown ? 1 : 0;
324
- }, _ref13 => {
316
+ }, (_ref13) => {
325
317
  let {
326
318
  isShown
327
319
  } = _ref13;
@@ -329,7 +321,7 @@ const MaximizedLegendContainer = /*#__PURE__*/styled__default.div(_templateObjec
329
321
  });
330
322
  const MinimizedLegendContainer = /*#__PURE__*/styled__default(MaximizedLegendContainer)(_templateObject13 || (_templateObject13 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: calc(100% - 1.5rem);\n padding-right: 1.5rem;\n"])));
331
323
  const LegendHeaderButton = /*#__PURE__*/styled__default.span(_templateObject14 || (_templateObject14 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
332
- const MapLegendSectionContainer = /*#__PURE__*/styled__default.div(_templateObject15 || (_templateObject15 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n\n :not(:last-child) {\n margin-bottom: 1rem;\n }\n\n ", " {\n padding-left: 0.75rem;\n visibility: hidden;\n\n :first-child {\n padding-left: 1rem;\n }\n\n :last-child {\n margin-left: 0.75rem;\n border-left: 1px ", " solid;\n }\n }\n \n :hover {\n ", " {\n visibility: visible;\n }\n }\n"])), LegendHeaderButton, _ref14 => {
324
+ const MapLegendSectionContainer = /*#__PURE__*/styled__default.div(_templateObject15 || (_templateObject15 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n\n :not(:last-child) {\n margin-bottom: 1rem;\n }\n\n ", " {\n padding-left: 0.75rem;\n visibility: hidden;\n\n :first-child {\n padding-left: 1rem;\n }\n\n :last-child {\n margin-left: 0.75rem;\n border-left: 1px ", " solid;\n }\n }\n \n :hover {\n ", " {\n visibility: visible;\n }\n }\n"])), LegendHeaderButton, (_ref14) => {
333
325
  let {
334
326
  theme: {
335
327
  palette
@@ -337,14 +329,14 @@ const MapLegendSectionContainer = /*#__PURE__*/styled__default.div(_templateObje
337
329
  } = _ref14;
338
330
  return palette.elementDeep;
339
331
  }, LegendHeaderButton);
340
- const MapLegendSectionItems = /*#__PURE__*/styled__default.div(_templateObject16 || (_templateObject16 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n height: ", "px;\n overflow: ", ";\n transition: height 0.5s;\n"])), _ref15 => {
332
+ const MapLegendSectionItems = /*#__PURE__*/styled__default.div(_templateObject16 || (_templateObject16 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n height: ", "px;\n overflow: ", ";\n transition: height 0.5s;\n"])), (_ref15) => {
341
333
  let {
342
334
  minHeight,
343
335
  maxHeight,
344
336
  isExpanded
345
337
  } = _ref15;
346
338
  return isExpanded ? (maxHeight || 0) + 4 : minHeight;
347
- }, _ref16 => {
339
+ }, (_ref16) => {
348
340
  let {
349
341
  isExpanded
350
342
  } = _ref16;
@@ -369,28 +361,28 @@ const StrokeWidthLegendItemMixin = function StrokeWidthLegendItemMixin(value) {
369
361
  };
370
362
 
371
363
  const StrokeColorLegendItemMixin = /*#__PURE__*/styled.css(_templateObject20 || (_templateObject20 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-right: 0.5rem;\n width: 1.5rem;\n"])));
372
- const MapLegendItem = /*#__PURE__*/styled__default.div(_templateObject21 || (_templateObject21 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1;\n height: ", "rem;\n background: ", ";\n border: 1px rgba(48, 69, 79, 0.1) solid;\n margin-right: -1px;\n color: rgba(48, 69, 79, 0.65);\n opacity: ", ";\n\n ", "\n\n ", "\n"])), _ref17 => {
364
+ const MapLegendItem = /*#__PURE__*/styled__default.div(_templateObject21 || (_templateObject21 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1;\n height: ", "rem;\n background: ", ";\n border: 1px rgba(48, 69, 79, 0.1) solid;\n margin-right: -1px;\n color: rgba(48, 69, 79, 0.65);\n opacity: ", ";\n\n ", "\n\n ", "\n"])), (_ref17) => {
373
365
  let {
374
366
  parameter
375
367
  } = _ref17;
376
368
  return isParameterType(['strokeColor', 'stroke.color'], parameter) ? 0.25 : 1;
377
- }, _ref18 => {
369
+ }, (_ref18) => {
378
370
  let {
379
371
  value
380
372
  } = _ref18;
381
373
  return typeof value === 'number' ? 'none' : value;
382
- }, _ref19 => {
374
+ }, (_ref19) => {
383
375
  let {
384
376
  isHidden
385
377
  } = _ref19;
386
378
  return isHidden ? 0.28 : 1;
387
- }, _ref20 => {
379
+ }, (_ref20) => {
388
380
  let {
389
381
  value,
390
382
  parameter
391
383
  } = _ref20;
392
384
  return isParameterType('size', parameter) && SizeLegendItemMixin(value);
393
- }, _ref21 => {
385
+ }, (_ref21) => {
394
386
  let {
395
387
  value,
396
388
  parameter
@@ -406,28 +398,28 @@ const SizeMinimizedLegendLabel = /*#__PURE__*/styled__default.div(_templateObjec
406
398
  const SizeMinimizedLegendDown = /*#__PURE__*/styled__default.div(_templateObject28 || (_templateObject28 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: rgba(48, 69, 79, 0.65);\n"])));
407
399
  const SizeMinimizedLegendUp = /*#__PURE__*/styled__default(SizeMinimizedLegendDown)(_templateObject29 || (_templateObject29 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
408
400
  const SingleSizeLegendItemsMixin = /*#__PURE__*/styled.css(_templateObject30 || (_templateObject30 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 4rem;\n margin-right: 0.75rem;\n\n ", ":after {\n margin: 0 auto;\n }\n"])), MapLegendItem);
409
- const SingleLegendItemsMixin = /*#__PURE__*/styled.css(_templateObject31 || (_templateObject31 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n justify-content: center;\n width: 2rem;\n height: auto;\n margin: 0;\n ", "\n\n ", " {\n position: relative;\n top: 0;\n left: 0;\n display: flex;\n align-content: center;\n justify-content: center;\n margin: 0;\n height: auto;\n width: auto;\n\n ", "\n }\n"])), _ref22 => {
401
+ const SingleLegendItemsMixin = /*#__PURE__*/styled.css(_templateObject31 || (_templateObject31 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n justify-content: center;\n width: 2rem;\n height: auto;\n margin: 0;\n ", "\n\n ", " {\n position: relative;\n top: 0;\n left: 0;\n display: flex;\n align-content: center;\n justify-content: center;\n margin: 0;\n height: auto;\n width: auto;\n\n ", "\n }\n"])), (_ref22) => {
410
402
  let {
411
403
  isSize
412
404
  } = _ref22;
413
405
  return isSize && SingleSizeLegendItemsMixin;
414
- }, MapLegendItem, _ref23 => {
406
+ }, MapLegendItem, (_ref23) => {
415
407
  let {
416
408
  parameter
417
409
  } = _ref23;
418
410
  return isParameterType(['strokeColor', 'stroke.color'], parameter) && StrokeColorLegendItemMixin;
419
411
  });
420
- const MapLegendItems = /*#__PURE__*/styled__default.div(_templateObject32 || (_templateObject32 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n width: 100%;\n border-radius: 0.125rem;\n\n ", ";\n ", ";\n ", ";\n"])), _ref24 => {
412
+ const MapLegendItems = /*#__PURE__*/styled__default.div(_templateObject32 || (_templateObject32 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n width: 100%;\n border-radius: 0.125rem;\n\n ", ";\n ", ";\n ", ";\n"])), (_ref24) => {
421
413
  let {
422
414
  isSize
423
415
  } = _ref24;
424
416
  return isSize && SizeLegendItemsMixin;
425
- }, _ref25 => {
417
+ }, (_ref25) => {
426
418
  let {
427
419
  isStrokeWidth
428
420
  } = _ref25;
429
421
  return isStrokeWidth && StrokeWidthLegendItemsMixin;
430
- }, _ref26 => {
422
+ }, (_ref26) => {
431
423
  let {
432
424
  isSingle
433
425
  } = _ref26;
@@ -601,7 +593,7 @@ const formatStringAttribute = value => {
601
593
 
602
594
  const attributeValues = value.split(/[\s|]/).map(convertStringAttribute);
603
595
 
604
- if (attributeValues.every(_ref => {
596
+ if (attributeValues.every((_ref) => {
605
597
  let {
606
598
  type
607
599
  } = _ref;
@@ -609,7 +601,7 @@ const formatStringAttribute = value => {
609
601
  }
610
602
  /* String */
611
603
  )) {
612
- return [stringAttribute(attributeValues.map(_ref2 => {
604
+ return [stringAttribute(attributeValues.map((_ref2) => {
613
605
  let {
614
606
  value
615
607
  } = _ref2;
@@ -1210,7 +1202,7 @@ function evaluateCondition(condition$1, attributes) {
1210
1202
  }
1211
1203
 
1212
1204
  function getAttributeValue(attributes, attributeName) {
1213
- const attributeMeta = attributes.find(_ref => {
1205
+ const attributeMeta = attributes.find((_ref) => {
1214
1206
  let {
1215
1207
  name
1216
1208
  } = _ref;
@@ -1224,7 +1216,7 @@ const getAttributeNameFromClassified = values => values.length > 0 ? getAttribut
1224
1216
 
1225
1217
  function findFeatureValue(parameterValues, _ref2) {
1226
1218
  let [name, value] = _ref2;
1227
- return value !== null ? parameterValues.find(_ref3 => {
1219
+ return value !== null ? parameterValues.find((_ref3) => {
1228
1220
  let {
1229
1221
  condition
1230
1222
  } = _ref3;
@@ -1264,7 +1256,7 @@ function evaluateFeatureSymbol(attributes) {
1264
1256
  }
1265
1257
 
1266
1258
  function findChildFeatureStyle(childStyles, attributes) {
1267
- return (childStyles || []).find(_ref5 => {
1259
+ return (childStyles || []).find((_ref5) => {
1268
1260
  let {
1269
1261
  condition
1270
1262
  } = _ref5;
@@ -1444,7 +1436,7 @@ const createSvgGradient = (svg, values) => svg.gradient('linear', add => {
1444
1436
  });
1445
1437
  }).from(0, 0).to(1, 1); // eslint-disable-next-line max-lines-per-function
1446
1438
 
1447
- const manipulateSvgSymbol = _ref2 => {
1439
+ const manipulateSvgSymbol = (_ref2) => {
1448
1440
  var _$exec2;
1449
1441
 
1450
1442
  let {
@@ -1856,7 +1848,7 @@ const checkLayerHasLegend = layerInfo => {
1856
1848
  return (paramValue == null ? void 0 : paramValue.type) === 'byAttribute';
1857
1849
  })) || false;
1858
1850
  };
1859
- const getTitleFromCondition = _ref2 => {
1851
+ const getTitleFromCondition = (_ref2) => {
1860
1852
  let {
1861
1853
  condition,
1862
1854
  attribute,
@@ -2628,7 +2620,7 @@ let SGisPolygonSymbol = /*#__PURE__*/function (_sPolygonSymbol) {
2628
2620
  const adaptMiterRings = (rings, resolution, fromCrs, toCrs) => {
2629
2621
  const projected = geotools.projectRings(rings, fromCrs, toCrs);
2630
2622
  return math.simplifyCoordinates(projected.map(ring => // @ts-ignore
2631
- ring.map(_ref => {
2623
+ ring.map((_ref) => {
2632
2624
  let [x, y] = _ref;
2633
2625
  return [x / resolution, y / -resolution];
2634
2626
  })), 1);
@@ -2720,111 +2712,6 @@ let ArrowLineMiterRender = /*#__PURE__*/function (_LineMiterRender) {
2720
2712
  return ArrowLineMiterRender;
2721
2713
  }(LineMiterRender);
2722
2714
 
2723
- const LegendContext = /*#__PURE__*/React.createContext(null);
2724
- const LegendProvider = _ref => {
2725
- let {
2726
- symbol,
2727
- children
2728
- } = _ref;
2729
- return React__default.createElement(LegendContext.Provider, {
2730
- value: symbol || null
2731
- }, children);
2732
- };
2733
- const useLegendContext = () => React.useContext(LegendContext);
2734
-
2735
- function useCanvas() {
2736
- const canvas = React.useRef(null);
2737
- const ref = React.useCallback(node => {
2738
- if (node !== null) {
2739
- canvas.current = new Canvas.Canvas(node);
2740
- } else {
2741
- canvas.current = null;
2742
- }
2743
- }, []);
2744
- return {
2745
- canvas,
2746
- ref
2747
- };
2748
- }
2749
-
2750
- function useMount(_ref) {
2751
- let {
2752
- onMount,
2753
- onUnmount
2754
- } = _ref;
2755
- React.useEffect(() => {
2756
- onMount && onMount();
2757
- return onUnmount; // eslint-disable-next-line react-hooks/exhaustive-deps
2758
- }, []);
2759
- }
2760
-
2761
- function useNode() {
2762
- const [node, onSetNode] = React.useState(null);
2763
- const ref = React.useCallback(onSetNode, [onSetNode]);
2764
- return [ref, node];
2765
- }
2766
-
2767
- const DEFAULT_SYMBOL_SIZE$1 = 26;
2768
- function useSymbol(_ref, canvasRef) {
2769
- let {
2770
- symbol,
2771
- size = DEFAULT_SYMBOL_SIZE$1,
2772
- render = getSymbolRenders,
2773
- maxWidth
2774
- } = _ref;
2775
- React.useEffect(() => {
2776
- if (canvasRef.current !== null && symbol !== undefined) {
2777
- const canvas = canvasRef.current;
2778
- setCanvasSize(canvas, size, maxWidth);
2779
- render(symbol, size).then(renders => {
2780
- renderSymbolToCanvas(renders, canvas);
2781
- });
2782
- } // eslint-disable-next-line react-hooks/exhaustive-deps
2783
-
2784
- }, [symbol, size, maxWidth]);
2785
- }
2786
-
2787
- function setCanvasSize(canvas, size, maxWidth) {
2788
- canvas.node.height = size;
2789
- canvas.node.width = maxWidth ? Math.min(size, maxWidth) : size;
2790
- }
2791
-
2792
- const useToggle = initial => {
2793
- const [state, setState] = React.useState(initial !== undefined ? initial : false);
2794
- const toggle = React.useCallback(() => setState(!state), [state]);
2795
- return [state, toggle, setState];
2796
- };
2797
-
2798
- const metersToPixels = (meters, _ref) => {
2799
- let {
2800
- painter,
2801
- crs = Crs.geo
2802
- } = _ref;
2803
- const {
2804
- width
2805
- } = painter;
2806
- const zeroPoint = painter.getPointFromPxPosition(0, 0).projectTo(crs);
2807
- const maxWidthPoint = painter.getPointFromPxPosition(width, 0).projectTo(crs);
2808
- const widthDistance = geotools.distance(zeroPoint, maxWidthPoint);
2809
- const pxK = width / (widthDistance || 1);
2810
- return Math.round(meters * pxK);
2811
- };
2812
-
2813
- const polygonCircleFromPoint = (center, diameter) => {
2814
- const coordinates = [];
2815
- const radius = diameter / 2;
2816
- const endAngle = Math.PI * 2;
2817
- const step = Math.max(Math.PI / 2 / radius, endAngle / 128);
2818
- let start = 0;
2819
- let end = endAngle;
2820
-
2821
- for (let ang = start; ang < end; ang += step) {
2822
- coordinates.push([Math.cos(ang) * radius + center[0], Math.sin(ang) * radius + center[1]]);
2823
- }
2824
-
2825
- return [coordinates];
2826
- };
2827
-
2828
2715
  let CircleLineMiterRender = /*#__PURE__*/function (_LineMiterRender) {
2829
2716
  _inherits(CircleLineMiterRender, _LineMiterRender);
2830
2717
 
@@ -3414,6 +3301,21 @@ const selectedPolygon = /*#__PURE__*/new SelectedPolySymbol({
3414
3301
  selectedStrokeColor: '#ff5722'
3415
3302
  });
3416
3303
 
3304
+ const metersToPixels = (meters, _ref) => {
3305
+ let {
3306
+ painter,
3307
+ crs = Crs.geo
3308
+ } = _ref;
3309
+ const {
3310
+ width
3311
+ } = painter;
3312
+ const zeroPoint = painter.getPointFromPxPosition(0, 0).projectTo(crs);
3313
+ const maxWidthPoint = painter.getPointFromPxPosition(width, 0).projectTo(crs);
3314
+ const widthDistance = geotools.distance(zeroPoint, maxWidthPoint);
3315
+ const pxK = width / (widthDistance || 1);
3316
+ return Math.round(meters * pxK);
3317
+ };
3318
+
3417
3319
  const defaultPathStyles = {
3418
3320
  strokeWidth: 2,
3419
3321
  strokeColor: 'rgb(0, 163, 245)',
@@ -3914,7 +3816,7 @@ const useSvgSymbol = (symbol, skipOffset, isClassified) => {
3914
3816
  SVGContainer.addTo(SVGWrapperRefElement.current);
3915
3817
  }, [SVGContainer]);
3916
3818
  const getSvgData = React.useCallback(() => SVGContainer.svg(), [SVGContainer]);
3917
- const manipulateSvg = React.useCallback(_ref => {
3819
+ const manipulateSvg = React.useCallback((_ref) => {
3918
3820
  let {
3919
3821
  svg,
3920
3822
  bg,
@@ -3984,38 +3886,38 @@ const useSvgSymbol = (symbol, skipOffset, isClassified) => {
3984
3886
 
3985
3887
  var _templateObject$1, _templateObject2$1;
3986
3888
  const SvgSymbolContainer = /*#__PURE__*/styled__default.div(_templateObject$1 || (_templateObject$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n"])));
3987
- const SvgSymbolLabel = /*#__PURE__*/styled__default.div(_templateObject2$1 || (_templateObject2$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n color: #fff;\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n line-height: 0;\n"])), _ref => {
3889
+ const SvgSymbolLabel = /*#__PURE__*/styled__default.div(_templateObject2$1 || (_templateObject2$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n color: #fff;\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n line-height: 0;\n"])), (_ref) => {
3988
3890
  let {
3989
3891
  fontSettings
3990
3892
  } = _ref;
3991
3893
  return !!(fontSettings != null && fontSettings.fontFamily) && "font-family: " + fontSettings.fontFamily;
3992
- }, _ref2 => {
3894
+ }, (_ref2) => {
3993
3895
  let {
3994
3896
  fontSettings
3995
3897
  } = _ref2;
3996
3898
  return !!(fontSettings != null && fontSettings.fontWeight) && "font-weight: " + fontSettings.fontWeight;
3997
- }, _ref3 => {
3899
+ }, (_ref3) => {
3998
3900
  let {
3999
3901
  fontSettings
4000
3902
  } = _ref3;
4001
3903
  return !!(fontSettings != null && fontSettings.fontStyle) && "font-style: " + fontSettings.fontStyle;
4002
- }, _ref4 => {
3904
+ }, (_ref4) => {
4003
3905
  let {
4004
3906
  fontSettings
4005
3907
  } = _ref4;
4006
3908
  return !!(fontSettings != null && fontSettings.fontColor) && "color: " + fontSettings.fontColor;
4007
- }, _ref5 => {
3909
+ }, (_ref5) => {
4008
3910
  let {
4009
3911
  fontSettings
4010
3912
  } = _ref5;
4011
3913
  return !!(fontSettings != null && fontSettings.fontSize) && "font-size: " + (typeof fontSettings.fontSize === 'string' ? fontSettings.fontSize : fontSettings.fontSize + "px");
4012
- }, _ref6 => {
3914
+ }, (_ref6) => {
4013
3915
  let {
4014
3916
  fontSettings
4015
3917
  } = _ref6;
4016
3918
  return !!(fontSettings != null && fontSettings.haloColor) && !!(fontSettings != null && fontSettings.haloWidth) && "-webkit-text-stroke: " + fontSettings.haloWidth + "px " + fontSettings.haloColor + ";";
4017
3919
  });
4018
- const SvgSymbol = /*#__PURE__*/React.memo(_ref7 => {
3920
+ const SvgSymbol = /*#__PURE__*/React.memo((_ref7) => {
4019
3921
  let {
4020
3922
  svg,
4021
3923
  bg,
@@ -4066,7 +3968,7 @@ const SvgSymbol = /*#__PURE__*/React.memo(_ref7 => {
4066
3968
  }, text)) : renderSymbol;
4067
3969
  });
4068
3970
 
4069
- const ClusterSymbolPreview = _ref => {
3971
+ const ClusterSymbolPreview = (_ref) => {
4070
3972
  var _symbol$fillColor$val, _symbol$labelSymbol;
4071
3973
 
4072
3974
  let {
@@ -4103,7 +4005,7 @@ const ClusterSymbolPreview = _ref => {
4103
4005
  });
4104
4006
  };
4105
4007
 
4106
- const SymbolByType = _ref => {
4008
+ const SymbolByType = (_ref) => {
4107
4009
  let {
4108
4010
  type,
4109
4011
  symbol,
@@ -4130,7 +4032,7 @@ const SymbolByType = _ref => {
4130
4032
  }
4131
4033
  };
4132
4034
 
4133
- const LegendSymbolRenderer = /*#__PURE__*/React.memo(_ref => {
4035
+ const LegendSymbolRenderer = /*#__PURE__*/React.memo((_ref) => {
4134
4036
  let {
4135
4037
  symbol,
4136
4038
  index
@@ -4152,7 +4054,7 @@ const LegendSymbolRenderer = /*#__PURE__*/React.memo(_ref => {
4152
4054
  });
4153
4055
  });
4154
4056
 
4155
- const LegendHeaderButtons = _ref => {
4057
+ const LegendHeaderButtons = (_ref) => {
4156
4058
  let {
4157
4059
  layerName,
4158
4060
  hasHiddenLegends,
@@ -4171,7 +4073,7 @@ const LegendHeaderButtons = _ref => {
4171
4073
  const getConditionAttribute = (attributes, condition) => {
4172
4074
  if (!condition) return null;
4173
4075
  const attributeName = getAttributeNameFromCondition(condition);
4174
- let attribute = attributes.find(_ref => {
4076
+ let attribute = attributes.find((_ref) => {
4175
4077
  let {
4176
4078
  name
4177
4079
  } = _ref;
@@ -4204,7 +4106,7 @@ const renderColumn = (column, index) => {
4204
4106
  }, dateTime[0], React__default.createElement(MapLegendDescription, null, dateTime[1])), index === 0 && React__default.createElement(ItemSeparator, null));
4205
4107
  };
4206
4108
 
4207
- const getLegendText = _ref => {
4109
+ const getLegendText = (_ref) => {
4208
4110
  let {
4209
4111
  title,
4210
4112
  index,
@@ -4237,7 +4139,7 @@ const getLegendText = _ref => {
4237
4139
 
4238
4140
  const getLayerAttributes = layerDefinition => {
4239
4141
  const attributes = layerDefinition && layerDefinition.attributes || {};
4240
- return Object.entries(attributes).map(_ref => {
4142
+ return Object.entries(attributes).map((_ref) => {
4241
4143
  let [name, definition] = _ref;
4242
4144
  return _extends({
4243
4145
  name
@@ -4245,7 +4147,7 @@ const getLayerAttributes = layerDefinition => {
4245
4147
  });
4246
4148
  };
4247
4149
 
4248
- const LegendChildren = _ref => {
4150
+ const LegendChildren = (_ref) => {
4249
4151
  var _layerInfo$style, _layerInfo$style$chil;
4250
4152
 
4251
4153
  let {
@@ -4285,7 +4187,7 @@ const LegendChildren = _ref => {
4285
4187
  }));
4286
4188
  };
4287
4189
 
4288
- const LegendParameterDescription = _ref => {
4190
+ const LegendParameterDescription = (_ref) => {
4289
4191
  let {
4290
4192
  parameter,
4291
4193
  index
@@ -4313,7 +4215,7 @@ const getValueFromLegendTitle = (title, minOrMax) => {
4313
4215
  return title.split(" ").find(isNumeric) || title || "";
4314
4216
  };
4315
4217
 
4316
- const MinimizedLegend = _ref => {
4218
+ const MinimizedLegend = (_ref) => {
4317
4219
  var _currentValues$, _currentValues, _currentValues$2, _currentValues2;
4318
4220
 
4319
4221
  let {
@@ -4384,7 +4286,7 @@ const MinimizedLegend = _ref => {
4384
4286
  })), typeof (other == null ? void 0 : other.parameterValue) === "string" && (titleMax || titleMin) && React__default.createElement(MapLegendValues, null, React__default.createElement(MapLegendValuesRange, null, React__default.createElement("div", null, titleMax), React__default.createElement("div", null, titleMin)), React__default.createElement(MapLegendValuesOther, null, "-")));
4385
4287
  };
4386
4288
 
4387
- const MaximizedLegend = _ref => {
4289
+ const MaximizedLegend = (_ref) => {
4388
4290
  let {
4389
4291
  innerRef,
4390
4292
  isShown,
@@ -4444,7 +4346,70 @@ const MaximizedLegend = _ref => {
4444
4346
  }, values.map(renderLegend));
4445
4347
  };
4446
4348
 
4447
- const LegendSection = _ref => {
4349
+ function useCanvas() {
4350
+ const canvas = React.useRef(null);
4351
+ const ref = React.useCallback(node => {
4352
+ if (node !== null) {
4353
+ canvas.current = new Canvas.Canvas(node);
4354
+ } else {
4355
+ canvas.current = null;
4356
+ }
4357
+ }, []);
4358
+ return {
4359
+ canvas,
4360
+ ref
4361
+ };
4362
+ }
4363
+
4364
+ function useMount(_ref) {
4365
+ let {
4366
+ onMount,
4367
+ onUnmount
4368
+ } = _ref;
4369
+ React.useEffect(() => {
4370
+ onMount && onMount();
4371
+ return onUnmount; // eslint-disable-next-line react-hooks/exhaustive-deps
4372
+ }, []);
4373
+ }
4374
+
4375
+ function useNode() {
4376
+ const [node, onSetNode] = React.useState(null);
4377
+ const ref = React.useCallback(onSetNode, [onSetNode]);
4378
+ return [ref, node];
4379
+ }
4380
+
4381
+ const DEFAULT_SYMBOL_SIZE$1 = 26;
4382
+ function useSymbol(_ref, canvasRef) {
4383
+ let {
4384
+ symbol,
4385
+ size = DEFAULT_SYMBOL_SIZE$1,
4386
+ render = getSymbolRenders,
4387
+ maxWidth
4388
+ } = _ref;
4389
+ React.useEffect(() => {
4390
+ if (canvasRef.current !== null && symbol !== undefined) {
4391
+ const canvas = canvasRef.current;
4392
+ setCanvasSize(canvas, size, maxWidth);
4393
+ render(symbol, size).then(renders => {
4394
+ renderSymbolToCanvas(renders, canvas);
4395
+ });
4396
+ } // eslint-disable-next-line react-hooks/exhaustive-deps
4397
+
4398
+ }, [symbol, size, maxWidth]);
4399
+ }
4400
+
4401
+ function setCanvasSize(canvas, size, maxWidth) {
4402
+ canvas.node.height = size;
4403
+ canvas.node.width = maxWidth ? Math.min(size, maxWidth) : size;
4404
+ }
4405
+
4406
+ const useToggle = initial => {
4407
+ const [state, setState] = React.useState(initial !== undefined ? initial : false);
4408
+ const toggle = React.useCallback(() => setState(!state), [state]);
4409
+ return [state, toggle, setState];
4410
+ };
4411
+
4412
+ const LegendSection = (_ref) => {
4448
4413
  var _hiddenLegends$layerN, _hiddenLegends$layerN2;
4449
4414
 
4450
4415
  let {
@@ -4509,7 +4474,7 @@ const LegendSection = _ref => {
4509
4474
  };
4510
4475
 
4511
4476
  const _excluded$1 = ["layerInfo", "formatValue", "hiddenLegends", "toggleHiddenLegend", "clearHiddenLegends", "goToClassification"];
4512
- const Legend = /*#__PURE__*/React.memo(_ref => {
4477
+ const Legend = /*#__PURE__*/React.memo((_ref) => {
4513
4478
  var _layerInfo$style, _layerInfo$style$chil;
4514
4479
 
4515
4480
  let {
@@ -4590,7 +4555,7 @@ const Legend = /*#__PURE__*/React.memo(_ref => {
4590
4555
  return React__default.createElement(MapLegendContainer, null, renderItems);
4591
4556
  });
4592
4557
 
4593
- const Symbol = _ref => {
4558
+ const Symbol = (_ref) => {
4594
4559
  let {
4595
4560
  symbol,
4596
4561
  size,
@@ -4611,19 +4576,19 @@ const Symbol = _ref => {
4611
4576
  };
4612
4577
 
4613
4578
  var _templateObject$2, _templateObject2$2;
4614
- const CompoundIcon = /*#__PURE__*/styled__default.div(_templateObject$2 || (_templateObject$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background: ", ";\n height: 32px;\n width: 32px;\n"])), _ref => {
4579
+ const CompoundIcon = /*#__PURE__*/styled__default.div(_templateObject$2 || (_templateObject$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background: ", ";\n height: 32px;\n width: 32px;\n"])), (_ref) => {
4615
4580
  let {
4616
4581
  geometryType,
4617
4582
  icons
4618
4583
  } = _ref;
4619
4584
  return "url(" + icons[geometryType] + ") center center / " + (geometryType === api.GeometryType.Polyline ? '2rem 1.3rem' : 'auto 1rem') + " no-repeat";
4620
4585
  });
4621
- const ClusterSymbol = /*#__PURE__*/styled__default.div(_templateObject2$2 || (_templateObject2$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n width: 32px;\n height: 32px;\n\n :before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: inherit;\n height: inherit;\n background-color: ", ";\n border-radius: 50%;\n opacity: 0.28;\n }\n \n :after {\n content: \"99\";\n position: absolute;\n top: 4px;\n left: 4px;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 24px;\n height: 24px;\n background-color: ", ";\n border-radius: 50%;\n color: white;\n font-size: 0.75rem;\n line-height: 1;\n }\n"])), _ref2 => {
4586
+ const ClusterSymbol = /*#__PURE__*/styled__default.div(_templateObject2$2 || (_templateObject2$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n width: 32px;\n height: 32px;\n\n :before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: inherit;\n height: inherit;\n background-color: ", ";\n border-radius: 50%;\n opacity: 0.28;\n }\n \n :after {\n content: \"99\";\n position: absolute;\n top: 4px;\n left: 4px;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 24px;\n height: 24px;\n background-color: ", ";\n border-radius: 50%;\n color: white;\n font-size: 0.75rem;\n line-height: 1;\n }\n"])), (_ref2) => {
4622
4587
  let {
4623
4588
  color
4624
4589
  } = _ref2;
4625
4590
  return color;
4626
- }, _ref3 => {
4591
+ }, (_ref3) => {
4627
4592
  let {
4628
4593
  color
4629
4594
  } = _ref3;
@@ -4631,7 +4596,7 @@ const ClusterSymbol = /*#__PURE__*/styled__default.div(_templateObject2$2 || (_t
4631
4596
  });
4632
4597
 
4633
4598
  const MAX_SIZE = 32;
4634
- const StyleSymbol = _ref => {
4599
+ const StyleSymbol = (_ref) => {
4635
4600
  let {
4636
4601
  symbol,
4637
4602
  size = MAX_SIZE,
@@ -4670,6 +4635,33 @@ const StyleSymbol = _ref => {
4670
4635
  });
4671
4636
  };
4672
4637
 
4638
+ const LegendContext = /*#__PURE__*/React.createContext(null);
4639
+ const LegendProvider = (_ref) => {
4640
+ let {
4641
+ symbol,
4642
+ children
4643
+ } = _ref;
4644
+ return React__default.createElement(LegendContext.Provider, {
4645
+ value: symbol || null
4646
+ }, children);
4647
+ };
4648
+ const useLegendContext = () => React.useContext(LegendContext);
4649
+
4650
+ const polygonCircleFromPoint = (center, diameter) => {
4651
+ const coordinates = [];
4652
+ const radius = diameter / 2;
4653
+ const endAngle = Math.PI * 2;
4654
+ const step = Math.max(Math.PI / 2 / radius, endAngle / 128);
4655
+ let start = 0;
4656
+ let end = endAngle;
4657
+
4658
+ for (let ang = start; ang < end; ang += step) {
4659
+ coordinates.push([Math.cos(ang) * radius + center[0], Math.sin(ang) * radius + center[1]]);
4660
+ }
4661
+
4662
+ return [coordinates];
4663
+ };
4664
+
4673
4665
  exports.ArrowLineMiterRender = ArrowLineMiterRender;
4674
4666
  exports.BASE_OPERATORS = BASE_OPERATORS;
4675
4667
  exports.BETWEEN_OPERATORS = BETWEEN_OPERATORS;