Simplify import path in ol/render/
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
* @module ol/render/canvas/ImageReplay
|
||||
*/
|
||||
import CanvasInstruction from '../canvas/Instruction.js';
|
||||
import CanvasReplay from '../canvas/Replay.js';
|
||||
import CanvasInstruction from './Instruction.js';
|
||||
import CanvasReplay from './Replay.js';
|
||||
|
||||
class CanvasImageReplay extends CanvasReplay {
|
||||
/**
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
* @module ol/render/canvas/LineStringReplay
|
||||
*/
|
||||
import CanvasInstruction, {strokeInstruction, beginPathInstruction} from '../canvas/Instruction.js';
|
||||
import CanvasReplay from '../canvas/Replay.js';
|
||||
import CanvasInstruction, {strokeInstruction, beginPathInstruction} from './Instruction.js';
|
||||
import CanvasReplay from './Replay.js';
|
||||
|
||||
class CanvasLineStringReplay extends CanvasReplay {
|
||||
/**
|
||||
|
||||
@@ -6,8 +6,8 @@ import {snap} from '../../geom/flat/simplify.js';
|
||||
import {defaultFillStyle} from '../canvas.js';
|
||||
import CanvasInstruction, {
|
||||
fillInstruction, strokeInstruction, beginPathInstruction, closePathInstruction
|
||||
} from '../canvas/Instruction.js';
|
||||
import CanvasReplay from '../canvas/Replay.js';
|
||||
} from './Instruction.js';
|
||||
import CanvasReplay from './Replay.js';
|
||||
|
||||
|
||||
class CanvasPolygonReplay extends CanvasReplay {
|
||||
|
||||
@@ -18,7 +18,7 @@ import VectorContext from '../VectorContext.js';
|
||||
import {drawImage, resetTransform, defaultPadding, defaultFillStyle, defaultStrokeStyle,
|
||||
defaultMiterLimit, defaultLineWidth, defaultLineJoin, defaultLineDashOffset,
|
||||
defaultLineDash, defaultLineCap} from '../canvas.js';
|
||||
import CanvasInstruction from '../canvas/Instruction.js';
|
||||
import CanvasInstruction from './Instruction.js';
|
||||
import {TEXT_ALIGN} from '../replay.js';
|
||||
import {
|
||||
create as createTransform,
|
||||
|
||||
@@ -9,11 +9,11 @@ import {transform2D} from '../../geom/flat/transform.js';
|
||||
import {isEmpty} from '../../obj.js';
|
||||
import ReplayGroup from '../ReplayGroup.js';
|
||||
import ReplayType from '../ReplayType.js';
|
||||
import CanvasReplay from '../canvas/Replay.js';
|
||||
import CanvasImageReplay from '../canvas/ImageReplay.js';
|
||||
import CanvasLineStringReplay from '../canvas/LineStringReplay.js';
|
||||
import CanvasPolygonReplay from '../canvas/PolygonReplay.js';
|
||||
import CanvasTextReplay from '../canvas/TextReplay.js';
|
||||
import CanvasReplay from './Replay.js';
|
||||
import CanvasImageReplay from './ImageReplay.js';
|
||||
import CanvasLineStringReplay from './LineStringReplay.js';
|
||||
import CanvasPolygonReplay from './PolygonReplay.js';
|
||||
import CanvasTextReplay from './TextReplay.js';
|
||||
import {ORDER} from '../replay.js';
|
||||
import {create as createTransform, compose as composeTransform} from '../../transform.js';
|
||||
|
||||
|
||||
@@ -9,8 +9,8 @@ import {matchingChunk} from '../../geom/flat/straightchunk.js';
|
||||
import GeometryType from '../../geom/GeometryType.js';
|
||||
import {CANVAS_LINE_DASH} from '../../has.js';
|
||||
import {labelCache, measureTextWidth, defaultTextAlign, measureTextHeight, defaultPadding, defaultLineCap, defaultLineDashOffset, defaultLineDash, defaultLineJoin, defaultFillStyle, checkFont, defaultFont, defaultLineWidth, defaultMiterLimit, defaultStrokeStyle, defaultTextBaseline} from '../canvas.js';
|
||||
import CanvasInstruction from '../canvas/Instruction.js';
|
||||
import CanvasReplay from '../canvas/Replay.js';
|
||||
import CanvasInstruction from './Instruction.js';
|
||||
import CanvasReplay from './Replay.js';
|
||||
import {TEXT_ALIGN} from '../replay.js';
|
||||
import TextPlacement from '../../style/TextPlacement.js';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user