Move ol.DeclutterGroup to ol/render/canvas

This commit is contained in:
Michael Kuenzli
2018-04-18 14:55:48 +02:00
parent b740630e89
commit 3b983564b3
7 changed files with 29 additions and 30 deletions

View File

@@ -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}