Move ol.DeclutterGroup to ol/render/canvas
This commit is contained in:
@@ -55,6 +55,19 @@ import {create as createTransform} from '../transform.js';
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Container for decluttered replay instructions that need to be rendered or
|
||||
* omitted together, i.e. when styles render both an image and text, or for the
|
||||
* characters that form text along lines. The basic elements of this array are
|
||||
* `[minX, minY, maxX, maxY, count]`, where the first four entries are the
|
||||
* rendered extent of the group in pixel space. `count` is the number of styles
|
||||
* in the group, i.e. 2 when an image and a text are grouped, or 1 otherwise.
|
||||
* In addition to these four elements, declutter instruction arrays (i.e. the
|
||||
* arguments to @{link ol.render.canvas.drawImage} are appended to the array.
|
||||
* @typedef {Array.<*>} DeclutterGroup
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {string}
|
||||
|
||||
Reference in New Issue
Block a user