Skip to content

Commit e0c5802

Browse files
Vector Map: remove deprecated convertCoordinates (DevExpress#30103)
1 parent ced72c3 commit e0c5802

File tree

4 files changed

+0
-35
lines changed

4 files changed

+0
-35
lines changed

packages/devextreme/js/viz/vector_map.d.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -903,13 +903,6 @@ export default class dxVectorMap extends BaseWidget<dxVectorMapOptions> {
903903
* @public
904904
*/
905905
clearSelection(): void;
906-
/**
907-
* @docid
908-
* @publicName convertCoordinates(x, y)
909-
* @deprecated dxVectorMap.convertToGeo
910-
* @public
911-
*/
912-
convertCoordinates(x: number, y: number): Array<number>;
913906
/**
914907
* @docid
915908
* @publicName convertToGeo(x, y)

packages/devextreme/js/viz/vector_map/vector_map.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -452,11 +452,6 @@ const dxVectorMap = BaseWidget.inherit({
452452
}
453453
},
454454

455-
convertCoordinates: function(coordinates) {
456-
coordinates = coordinates && coordinates.length ? coordinates : [arguments[0], arguments[1]];
457-
return this.convertToGeo(coordinates[0], coordinates[1]);
458-
},
459-
460455
convertToGeo: function(x, y) {
461456
return this._projection.fromScreenPoint([x, y]);
462457
},

packages/devextreme/testing/tests/DevExpress.viz.vectorMap/dxVectorMap.tests.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -641,24 +641,6 @@ QUnit.test('viewport - setter', function(assert) {
641641
assert.deepEqual(this.projection.setViewport.lastCall.args, ['test-viewport']);
642642
});
643643

644-
QUnit.test('convertCoordinates / array arguments', function(assert) {
645-
const coords = { tag: 'coords' };
646-
this.createMap();
647-
this.projection.stub('fromScreenPoint').returns(coords);
648-
649-
assert.deepEqual(this.map.convertCoordinates([10, 20]), coords, 'result');
650-
assert.deepEqual(this.projection.fromScreenPoint.lastCall.args, [[10, 20]], 'projection is called');
651-
});
652-
653-
QUnit.test('convertCoordinates / scalar arguments', function(assert) {
654-
const coords = { tag: 'coords' };
655-
this.createMap();
656-
this.projection.stub('fromScreenPoint').returns(coords);
657-
658-
assert.deepEqual(this.map.convertCoordinates(10, 20), coords, 'result');
659-
assert.deepEqual(this.projection.fromScreenPoint.lastCall.args, [[10, 20]], 'projection is called');
660-
});
661-
662644
QUnit.test('convertToGeo', function(assert) {
663645
const coords = { tag: 'coords' };
664646
this.createMap();

packages/devextreme/ts/dx.all.d.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44706,11 +44706,6 @@ declare module DevExpress.viz {
4470644706
* [descr:dxVectorMap.clearSelection()]
4470744707
*/
4470844708
clearSelection(): void;
44709-
/**
44710-
* [descr:dxVectorMap.convertCoordinates(x, y)]
44711-
* @deprecated [depNote:dxVectorMap.convertCoordinates(x, y)]
44712-
*/
44713-
convertCoordinates(x: number, y: number): Array<number>;
4471444709
/**
4471544710
* [descr:dxVectorMap.convertToGeo(x, y)]
4471644711
*/

0 commit comments

Comments
 (0)