Merge pull request #8409 from pjeweb/patch-2

Add abstract translate to ol/geom/Geometry
This commit is contained in:
Tim Schaub
2018-07-20 09:57:06 -07:00
committed by GitHub

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