Remove remaining use of inherits in src
This commit is contained in:
@@ -5,21 +5,20 @@ import {inherits} from '../../util.js';
|
||||
import CanvasInstruction, {strokeInstruction, beginPathInstruction} from '../canvas/Instruction.js';
|
||||
import CanvasReplay from '../canvas/Replay.js';
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {module:ol/render/canvas/Replay}
|
||||
* @param {number} tolerance Tolerance.
|
||||
* @param {module:ol/extent~Extent} maxExtent Maximum extent.
|
||||
* @param {number} resolution Resolution.
|
||||
* @param {number} pixelRatio Pixel ratio.
|
||||
* @param {boolean} overlaps The replay can have overlapping geometries.
|
||||
* @param {?} declutterTree Declutter tree.
|
||||
* @struct
|
||||
*/
|
||||
class CanvasLineStringReplay {
|
||||
class CanvasLineStringReplay extends CanvasReplay {
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {module:ol/render/canvas/Replay}
|
||||
* @param {number} tolerance Tolerance.
|
||||
* @param {module:ol/extent~Extent} maxExtent Maximum extent.
|
||||
* @param {number} resolution Resolution.
|
||||
* @param {number} pixelRatio Pixel ratio.
|
||||
* @param {boolean} overlaps The replay can have overlapping geometries.
|
||||
* @param {?} declutterTree Declutter tree.
|
||||
* @struct
|
||||
*/
|
||||
constructor(tolerance, maxExtent, resolution, pixelRatio, overlaps, declutterTree) {
|
||||
CanvasReplay.call(this,
|
||||
tolerance, maxExtent, resolution, pixelRatio, overlaps, declutterTree);
|
||||
super(tolerance, maxExtent, resolution, pixelRatio, overlaps, declutterTree);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -118,7 +117,5 @@ class CanvasLineStringReplay {
|
||||
}
|
||||
}
|
||||
|
||||
inherits(CanvasLineStringReplay, CanvasReplay);
|
||||
|
||||
|
||||
export default CanvasLineStringReplay;
|
||||
|
||||
Reference in New Issue
Block a user