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

@@ -32,7 +32,7 @@ const CanvasTextReplay = function(
/**
* @private
* @type {ol.DeclutterGroup}
* @type {module:ol/render/canvas~DeclutterGroup}
*/
this.declutterGroup_;
@@ -381,7 +381,7 @@ CanvasTextReplay.prototype.drawTextImage_ = function(label, begin, end) {
* @private
* @param {number} begin Begin.
* @param {number} end End.
* @param {ol.DeclutterGroup} declutterGroup Declutter group.
* @param {module:ol/render/canvas~DeclutterGroup} declutterGroup Declutter group.
*/
CanvasTextReplay.prototype.drawChars_ = function(begin, end, declutterGroup) {
const strokeState = this.textStrokeState_;
@@ -466,7 +466,7 @@ CanvasTextReplay.prototype.setTextStyle = function(textStyle, declutterGroup) {
if (!textStyle) {
this.text_ = '';
} else {
this.declutterGroup_ = /** @type {ol.DeclutterGroup} */ (declutterGroup);
this.declutterGroup_ = /** @type {module:ol/render/canvas~DeclutterGroup} */ (declutterGroup);
const textFillStyle = textStyle.getFill();
if (!textFillStyle) {