Merge pull request #8654 from fredj/import

Remove extra imports in jsdoc
This commit is contained in:
Frédéric Junod
2018-09-19 15:12:10 +02:00
committed by GitHub
15 changed files with 86 additions and 86 deletions

View File

@@ -593,7 +593,7 @@ class CanvasReplay extends VectorContext {
let x, y;
while (i < ii) {
const instruction = instructions[i];
const type = /** @type {import("./Instruction.js").default} */ (instruction[0]);
const type = /** @type {CanvasInstruction} */ (instruction[0]);
switch (type) {
case CanvasInstruction.BEGIN_GEOMETRY:
feature = /** @type {import("../../Feature.js").default|import("../Feature.js").default} */ (instruction[1]);
@@ -907,7 +907,7 @@ class CanvasReplay extends VectorContext {
let begin = -1;
for (i = 0; i < n; ++i) {
instruction = hitDetectionInstructions[i];
type = /** @type {import("./Instruction.js").default} */ (instruction[0]);
type = /** @type {CanvasInstruction} */ (instruction[0]);
if (type == CanvasInstruction.END_GEOMETRY) {
begin = i;
} else if (type == CanvasInstruction.BEGIN_GEOMETRY) {