Add abstract translate to ol/geom/Geometry

This commit is contained in:
Paul Golmann
2018-07-20 15:40:53 +02:00
committed by GitHub
parent 2cfc2fd369
commit e3e6a28e18

View File

@@ -152,6 +152,15 @@ class Geometry extends BaseObject {
*/
scale(sx, opt_sy, opt_anchor) {}
/**
* Translate the geometry. This modifies the geometry coordinates in place.
* @abstract
* @param {number} deltaX Delta X.
* @param {number} deltaY Delta Y.
* @api
*/
translate(deltaX, deltaY) {}
/**
* Create a simplified version of this geometry. For linestrings, this uses
* the the {@link