Add abstract translate to ol/geom/Geometry
This commit is contained in:
@@ -152,6 +152,15 @@ class Geometry extends BaseObject {
|
|||||||
*/
|
*/
|
||||||
scale(sx, opt_sy, opt_anchor) {}
|
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
|
* Create a simplified version of this geometry. For linestrings, this uses
|
||||||
* the the {@link
|
* the the {@link
|
||||||
|
|||||||
Reference in New Issue
Block a user