@progress/kendo-charts 1.24.0 → 1.24.1-dev.202207261139
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.
- package/dist/cdn/js/kendo-charts.js +1 -1
- package/dist/cdn/main.js +1 -1
- package/dist/es/map/constants.js +2 -0
- package/dist/es/map/map.js +13 -2
- package/dist/es2015/map/constants.js +2 -0
- package/dist/es2015/map/map.js +13 -2
- package/dist/npm/main.js +14 -3
- package/dist/npm/map.d.ts +36 -8
- package/dist/systemjs/kendo-charts.js +1 -1
- package/package.json +1 -1
package/dist/es/map/constants.js
CHANGED
package/dist/es/map/map.js
CHANGED
|
@@ -79,6 +79,8 @@ import {
|
|
|
79
79
|
|
|
80
80
|
import MapService from './../services/map-service';
|
|
81
81
|
|
|
82
|
+
import { CENTER_CHANGE, ZOOM_CHANGE } from './constants';
|
|
83
|
+
|
|
82
84
|
var math = Math,
|
|
83
85
|
min = math.min,
|
|
84
86
|
pow = math.pow,
|
|
@@ -293,6 +295,8 @@ var Map = (function (Observable) {
|
|
|
293
295
|
|
|
294
296
|
if (options.zoom !== zoomLevel) {
|
|
295
297
|
options.zoom = zoomLevel;
|
|
298
|
+
this.widgetService.notify(ZOOM_CHANGE, { zoom: options.zoom });
|
|
299
|
+
|
|
296
300
|
this._reset();
|
|
297
301
|
}
|
|
298
302
|
result = this;
|
|
@@ -307,8 +311,14 @@ var Map = (function (Observable) {
|
|
|
307
311
|
var result;
|
|
308
312
|
|
|
309
313
|
if (center$1) {
|
|
310
|
-
|
|
311
|
-
this.
|
|
314
|
+
var current = Location.create(center$1);
|
|
315
|
+
var previous = Location.create(this.options.center);
|
|
316
|
+
if (!current.equals(previous)) {
|
|
317
|
+
this.options.center = current.toArray();
|
|
318
|
+
this.widgetService.notify(CENTER_CHANGE, { center: this.options.center });
|
|
319
|
+
this._reset();
|
|
320
|
+
}
|
|
321
|
+
|
|
312
322
|
result = this;
|
|
313
323
|
} else {
|
|
314
324
|
result = Location.create(this.options.center);
|
|
@@ -440,6 +450,7 @@ var Map = (function (Observable) {
|
|
|
440
450
|
topLeft.x += size.width / 2;
|
|
441
451
|
topLeft.y += size.height / 2;
|
|
442
452
|
this.options.center = this.layerToLocation(topLeft, zoom).toArray();
|
|
453
|
+
this.widgetService.notify(CENTER_CHANGE, { center: this.options.center });
|
|
443
454
|
|
|
444
455
|
return this;
|
|
445
456
|
};
|
package/dist/es2015/map/map.js
CHANGED
|
@@ -79,6 +79,8 @@ import {
|
|
|
79
79
|
|
|
80
80
|
import MapService from './../services/map-service';
|
|
81
81
|
|
|
82
|
+
import { CENTER_CHANGE, ZOOM_CHANGE } from './constants';
|
|
83
|
+
|
|
82
84
|
let math = Math,
|
|
83
85
|
min = math.min,
|
|
84
86
|
pow = math.pow,
|
|
@@ -271,6 +273,8 @@ class Map extends Observable {
|
|
|
271
273
|
|
|
272
274
|
if (options.zoom !== zoomLevel) {
|
|
273
275
|
options.zoom = zoomLevel;
|
|
276
|
+
this.widgetService.notify(ZOOM_CHANGE, { zoom: options.zoom });
|
|
277
|
+
|
|
274
278
|
this._reset();
|
|
275
279
|
}
|
|
276
280
|
result = this;
|
|
@@ -285,8 +289,14 @@ class Map extends Observable {
|
|
|
285
289
|
let result;
|
|
286
290
|
|
|
287
291
|
if (center) {
|
|
288
|
-
|
|
289
|
-
this.
|
|
292
|
+
const current = Location.create(center);
|
|
293
|
+
const previous = Location.create(this.options.center);
|
|
294
|
+
if (!current.equals(previous)) {
|
|
295
|
+
this.options.center = current.toArray();
|
|
296
|
+
this.widgetService.notify(CENTER_CHANGE, { center: this.options.center });
|
|
297
|
+
this._reset();
|
|
298
|
+
}
|
|
299
|
+
|
|
290
300
|
result = this;
|
|
291
301
|
} else {
|
|
292
302
|
result = Location.create(this.options.center);
|
|
@@ -416,6 +426,7 @@ class Map extends Observable {
|
|
|
416
426
|
topLeft.x += size.width / 2;
|
|
417
427
|
topLeft.y += size.height / 2;
|
|
418
428
|
this.options.center = this.layerToLocation(topLeft, zoom).toArray();
|
|
429
|
+
this.widgetService.notify(CENTER_CHANGE, { center: this.options.center });
|
|
419
430
|
|
|
420
431
|
return this;
|
|
421
432
|
}
|