@progress/kendo-charts 1.23.0-dev.202202210900 → 1.23.1

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.
@@ -25,9 +25,6 @@ var MOUSE_LEAVE = "mouseleave";
25
25
  var extend = Object.assign;
26
26
  var MARKER_CLASS = ".k-marker";
27
27
 
28
- var doc = document;
29
- var math = Math;
30
-
31
28
  export var MarkerLayer = (function (Layer) {
32
29
  function MarkerLayer(map, options) {
33
30
  Layer.call(this, map, options);
@@ -244,8 +241,8 @@ export var Marker = (function (Class) {
244
241
  Marker.prototype.showAt = function showAt (point) {
245
242
  this.render();
246
243
 
247
- this.element.style.left = toPixels(math.round(point.x));
248
- this.element.style.top = toPixels(math.round(point.y));
244
+ this.element.style.left = toPixels(Math.round(point.x));
245
+ this.element.style.top = toPixels(Math.round(point.y));
249
246
 
250
247
  if (this.tooltip && this.tooltip.popup) {
251
248
  this.tooltip.popup._position();
@@ -288,7 +285,7 @@ export var Marker = (function (Class) {
288
285
  var options = this.options;
289
286
  var layer = this.layer;
290
287
 
291
- var element = doc.createElement('span');
288
+ var element = document.createElement('span');
292
289
  addClass(element, 'k-marker k-icon k-i-marker-' + toHyphens(options.shape || 'pin'));
293
290
 
294
291
  element.setAttribute("title", options.title);
@@ -379,15 +379,13 @@ export var removeEventListener = function (element, event, handler, useCapture)
379
379
  element.removeEventListener(event, handler, Boolean(useCapture));
380
380
  };
381
381
 
382
- var eventMap = getEventMap(navigator.userAgent);
383
-
384
- function queryEventMap(e) {
385
- return eventMap[e] || e;
386
- }
387
-
388
- var eventRegEx = /([^ ]+)/g;
389
-
390
382
  export var applyEventMap = function (events) {
383
+ var eventMap = getEventMap(navigator.userAgent);
384
+ function queryEventMap(e) {
385
+ return eventMap[e] || e;
386
+ }
387
+
388
+ var eventRegEx = /([^ ]+)/g;
391
389
  var appliedEvents = events.replace(eventRegEx, queryEventMap);
392
390
 
393
391
  return appliedEvents;
@@ -25,9 +25,6 @@ const MOUSE_LEAVE = "mouseleave";
25
25
  const extend = Object.assign;
26
26
  const MARKER_CLASS = ".k-marker";
27
27
 
28
- const doc = document;
29
- const math = Math;
30
-
31
28
  export class MarkerLayer extends Layer {
32
29
  constructor(map, options) {
33
30
  super(map, options);
@@ -226,8 +223,8 @@ export class Marker extends Class {
226
223
  showAt(point) {
227
224
  this.render();
228
225
 
229
- this.element.style.left = toPixels(math.round(point.x));
230
- this.element.style.top = toPixels(math.round(point.y));
226
+ this.element.style.left = toPixels(Math.round(point.x));
227
+ this.element.style.top = toPixels(Math.round(point.y));
231
228
 
232
229
  if (this.tooltip && this.tooltip.popup) {
233
230
  this.tooltip.popup._position();
@@ -270,7 +267,7 @@ export class Marker extends Class {
270
267
  let options = this.options;
271
268
  let layer = this.layer;
272
269
 
273
- const element = doc.createElement('span');
270
+ const element = document.createElement('span');
274
271
  addClass(element, 'k-marker k-icon k-i-marker-' + toHyphens(options.shape || 'pin'));
275
272
 
276
273
  element.setAttribute("title", options.title);
@@ -379,15 +379,13 @@ export const removeEventListener = (element, event, handler, useCapture) => {
379
379
  element.removeEventListener(event, handler, Boolean(useCapture));
380
380
  };
381
381
 
382
- const eventMap = getEventMap(navigator.userAgent);
383
-
384
- function queryEventMap(e) {
385
- return eventMap[e] || e;
386
- }
387
-
388
- const eventRegEx = /([^ ]+)/g;
389
-
390
382
  export const applyEventMap = (events) => {
383
+ const eventMap = getEventMap(navigator.userAgent);
384
+ function queryEventMap(e) {
385
+ return eventMap[e] || e;
386
+ }
387
+
388
+ const eventRegEx = /([^ ]+)/g;
391
389
  const appliedEvents = events.replace(eventRegEx, queryEventMap);
392
390
 
393
391
  return appliedEvents;