Merge pull request #13837 from MoonE/remove-label-cache
Remove deprecated label cache
This commit is contained in:
@@ -2,7 +2,6 @@
|
|||||||
* @module ol/render/canvas
|
* @module ol/render/canvas
|
||||||
*/
|
*/
|
||||||
import BaseObject from '../Object.js';
|
import BaseObject from '../Object.js';
|
||||||
import EventTarget from '../events/Target.js';
|
|
||||||
import {WORKER_OFFSCREEN_CANVAS} from '../has.js';
|
import {WORKER_OFFSCREEN_CANVAS} from '../has.js';
|
||||||
import {clear} from '../obj.js';
|
import {clear} from '../obj.js';
|
||||||
import {createCanvasContext2D} from '../dom.js';
|
import {createCanvasContext2D} from '../dom.js';
|
||||||
@@ -162,19 +161,6 @@ export const defaultLineWidth = 1;
|
|||||||
*/
|
*/
|
||||||
export const checkedFonts = new BaseObject();
|
export const checkedFonts = new BaseObject();
|
||||||
|
|
||||||
/**
|
|
||||||
* The label cache for text rendering. To change the default cache size of 2048
|
|
||||||
* entries, use {@link module:ol/structs/LRUCache~LRUCache#setSize cache.setSize()}.
|
|
||||||
* Deprecated - there is no label cache any more.
|
|
||||||
* @type {?}
|
|
||||||
* @api
|
|
||||||
* @deprecated
|
|
||||||
*/
|
|
||||||
export const labelCache = new EventTarget();
|
|
||||||
labelCache.setSize = function () {
|
|
||||||
console.warn('labelCache is deprecated.'); //eslint-disable-line
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {CanvasRenderingContext2D}
|
* @type {CanvasRenderingContext2D}
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user