Simplify import path in ol/render/

This commit is contained in:
Frederic Junod
2018-10-12 14:51:43 +02:00
parent 59c95dbe90
commit 1732ed5a04
15 changed files with 36 additions and 36 deletions

View File

@@ -1,8 +1,8 @@
/** /**
* @module ol/render/canvas/ImageReplay * @module ol/render/canvas/ImageReplay
*/ */
import CanvasInstruction from '../canvas/Instruction.js'; import CanvasInstruction from './Instruction.js';
import CanvasReplay from '../canvas/Replay.js'; import CanvasReplay from './Replay.js';
class CanvasImageReplay extends CanvasReplay { class CanvasImageReplay extends CanvasReplay {
/** /**

View File

@@ -1,8 +1,8 @@
/** /**
* @module ol/render/canvas/LineStringReplay * @module ol/render/canvas/LineStringReplay
*/ */
import CanvasInstruction, {strokeInstruction, beginPathInstruction} from '../canvas/Instruction.js'; import CanvasInstruction, {strokeInstruction, beginPathInstruction} from './Instruction.js';
import CanvasReplay from '../canvas/Replay.js'; import CanvasReplay from './Replay.js';
class CanvasLineStringReplay extends CanvasReplay { class CanvasLineStringReplay extends CanvasReplay {
/** /**

View File

@@ -6,8 +6,8 @@ import {snap} from '../../geom/flat/simplify.js';
import {defaultFillStyle} from '../canvas.js'; import {defaultFillStyle} from '../canvas.js';
import CanvasInstruction, { import CanvasInstruction, {
fillInstruction, strokeInstruction, beginPathInstruction, closePathInstruction fillInstruction, strokeInstruction, beginPathInstruction, closePathInstruction
} from '../canvas/Instruction.js'; } from './Instruction.js';
import CanvasReplay from '../canvas/Replay.js'; import CanvasReplay from './Replay.js';
class CanvasPolygonReplay extends CanvasReplay { class CanvasPolygonReplay extends CanvasReplay {

View File

@@ -18,7 +18,7 @@ import VectorContext from '../VectorContext.js';
import {drawImage, resetTransform, defaultPadding, defaultFillStyle, defaultStrokeStyle, import {drawImage, resetTransform, defaultPadding, defaultFillStyle, defaultStrokeStyle,
defaultMiterLimit, defaultLineWidth, defaultLineJoin, defaultLineDashOffset, defaultMiterLimit, defaultLineWidth, defaultLineJoin, defaultLineDashOffset,
defaultLineDash, defaultLineCap} from '../canvas.js'; defaultLineDash, defaultLineCap} from '../canvas.js';
import CanvasInstruction from '../canvas/Instruction.js'; import CanvasInstruction from './Instruction.js';
import {TEXT_ALIGN} from '../replay.js'; import {TEXT_ALIGN} from '../replay.js';
import { import {
create as createTransform, create as createTransform,

View File

@@ -9,11 +9,11 @@ import {transform2D} from '../../geom/flat/transform.js';
import {isEmpty} from '../../obj.js'; import {isEmpty} from '../../obj.js';
import ReplayGroup from '../ReplayGroup.js'; import ReplayGroup from '../ReplayGroup.js';
import ReplayType from '../ReplayType.js'; import ReplayType from '../ReplayType.js';
import CanvasReplay from '../canvas/Replay.js'; import CanvasReplay from './Replay.js';
import CanvasImageReplay from '../canvas/ImageReplay.js'; import CanvasImageReplay from './ImageReplay.js';
import CanvasLineStringReplay from '../canvas/LineStringReplay.js'; import CanvasLineStringReplay from './LineStringReplay.js';
import CanvasPolygonReplay from '../canvas/PolygonReplay.js'; import CanvasPolygonReplay from './PolygonReplay.js';
import CanvasTextReplay from '../canvas/TextReplay.js'; import CanvasTextReplay from './TextReplay.js';
import {ORDER} from '../replay.js'; import {ORDER} from '../replay.js';
import {create as createTransform, compose as composeTransform} from '../../transform.js'; import {create as createTransform, compose as composeTransform} from '../../transform.js';

View File

@@ -9,8 +9,8 @@ import {matchingChunk} from '../../geom/flat/straightchunk.js';
import GeometryType from '../../geom/GeometryType.js'; import GeometryType from '../../geom/GeometryType.js';
import {CANVAS_LINE_DASH} from '../../has.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 {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 CanvasInstruction from './Instruction.js';
import CanvasReplay from '../canvas/Replay.js'; import CanvasReplay from './Replay.js';
import {TEXT_ALIGN} from '../replay.js'; import {TEXT_ALIGN} from '../replay.js';
import TextPlacement from '../../style/TextPlacement.js'; import TextPlacement from '../../style/TextPlacement.js';

View File

@@ -1,7 +1,7 @@
/** /**
* @module ol/render/replay * @module ol/render/replay
*/ */
import ReplayType from '../render/ReplayType.js'; import ReplayType from './ReplayType.js';
/** /**

View File

@@ -7,9 +7,9 @@ import {asArray} from '../../color.js';
import {intersects} from '../../extent.js'; import {intersects} from '../../extent.js';
import {isEmpty} from '../../obj.js'; import {isEmpty} from '../../obj.js';
import {translate} from '../../geom/flat/transform.js'; import {translate} from '../../geom/flat/transform.js';
import {fragment, vertex} from '../webgl/circlereplay/defaultshader.js'; import {fragment, vertex} from './circlereplay/defaultshader.js';
import Locations from '../webgl/circlereplay/defaultshader/Locations.js'; import Locations from './circlereplay/defaultshader/Locations.js';
import WebGLReplay from '../webgl/Replay.js'; import WebGLReplay from './Replay.js';
import {DEFAULT_LINEDASH, DEFAULT_LINEDASHOFFSET, DEFAULT_STROKESTYLE, import {DEFAULT_LINEDASH, DEFAULT_LINEDASHOFFSET, DEFAULT_STROKESTYLE,
DEFAULT_FILLSTYLE, DEFAULT_LINEWIDTH} from '../webgl.js'; DEFAULT_FILLSTYLE, DEFAULT_LINEWIDTH} from '../webgl.js';
import {FLOAT} from '../../webgl.js'; import {FLOAT} from '../../webgl.js';

View File

@@ -2,7 +2,7 @@
* @module ol/render/webgl/ImageReplay * @module ol/render/webgl/ImageReplay
*/ */
import {getUid} from '../../util.js'; import {getUid} from '../../util.js';
import WebGLTextureReplay from '../webgl/TextureReplay.js'; import WebGLTextureReplay from './TextureReplay.js';
import WebGLBuffer from '../../webgl/Buffer.js'; import WebGLBuffer from '../../webgl/Buffer.js';
class WebGLImageReplay extends WebGLTextureReplay { class WebGLImageReplay extends WebGLTextureReplay {

View File

@@ -6,7 +6,7 @@ import {intersects} from '../../extent.js';
import GeometryType from '../../geom/GeometryType.js'; import GeometryType from '../../geom/GeometryType.js';
import ReplayType from '../ReplayType.js'; import ReplayType from '../ReplayType.js';
import VectorContext from '../VectorContext.js'; import VectorContext from '../VectorContext.js';
import WebGLReplayGroup from '../webgl/ReplayGroup.js'; import WebGLReplayGroup from './ReplayGroup.js';
class WebGLImmediateRenderer extends VectorContext { class WebGLImmediateRenderer extends VectorContext {
/** /**

View File

@@ -12,9 +12,9 @@ import {isEmpty} from '../../obj.js';
import {DEFAULT_LINECAP, DEFAULT_LINEDASH, DEFAULT_LINEDASHOFFSET, import {DEFAULT_LINECAP, DEFAULT_LINEDASH, DEFAULT_LINEDASHOFFSET,
DEFAULT_LINEJOIN, DEFAULT_LINEWIDTH, DEFAULT_MITERLIMIT, DEFAULT_STROKESTYLE, DEFAULT_LINEJOIN, DEFAULT_LINEWIDTH, DEFAULT_MITERLIMIT, DEFAULT_STROKESTYLE,
triangleIsCounterClockwise} from '../webgl.js'; triangleIsCounterClockwise} from '../webgl.js';
import WebGLReplay from '../webgl/Replay.js'; import WebGLReplay from './Replay.js';
import {fragment, vertex} from '../webgl/linestringreplay/defaultshader.js'; import {fragment, vertex} from './linestringreplay/defaultshader.js';
import Locations from '../webgl/linestringreplay/defaultshader/Locations.js'; import Locations from './linestringreplay/defaultshader/Locations.js';
import {FLOAT} from '../../webgl.js'; import {FLOAT} from '../../webgl.js';
import WebGLBuffer from '../../webgl/Buffer.js'; import WebGLBuffer from '../../webgl/Buffer.js';

View File

@@ -9,10 +9,10 @@ import {isEmpty} from '../../obj.js';
import {linearRingContainsXY} from '../../geom/flat/contains.js'; import {linearRingContainsXY} from '../../geom/flat/contains.js';
import {linearRingIsClockwise} from '../../geom/flat/orient.js'; import {linearRingIsClockwise} from '../../geom/flat/orient.js';
import {translate} from '../../geom/flat/transform.js'; import {translate} from '../../geom/flat/transform.js';
import {fragment, vertex} from '../webgl/polygonreplay/defaultshader.js'; import {fragment, vertex} from './polygonreplay/defaultshader.js';
import Locations from '../webgl/polygonreplay/defaultshader/Locations.js'; import Locations from './polygonreplay/defaultshader/Locations.js';
import WebGLLineStringReplay from '../webgl/LineStringReplay.js'; import WebGLLineStringReplay from './LineStringReplay.js';
import WebGLReplay from '../webgl/Replay.js'; import WebGLReplay from './Replay.js';
import {triangleIsCounterClockwise, EPSILON, DEFAULT_FILLSTYLE} from '../webgl.js'; import {triangleIsCounterClockwise, EPSILON, DEFAULT_FILLSTYLE} from '../webgl.js';
import Stroke from '../../style/Stroke.js'; import Stroke from '../../style/Stroke.js';
import LinkedList from '../../structs/LinkedList.js'; import LinkedList from '../../structs/LinkedList.js';

View File

@@ -7,11 +7,11 @@ import {buffer, createOrUpdateFromCoordinate} from '../../extent.js';
import {isEmpty} from '../../obj.js'; import {isEmpty} from '../../obj.js';
import {ORDER} from '../replay.js'; import {ORDER} from '../replay.js';
import ReplayGroup from '../ReplayGroup.js'; import ReplayGroup from '../ReplayGroup.js';
import WebGLCircleReplay from '../webgl/CircleReplay.js'; import WebGLCircleReplay from './CircleReplay.js';
import WebGLImageReplay from '../webgl/ImageReplay.js'; import WebGLImageReplay from './ImageReplay.js';
import WebGLLineStringReplay from '../webgl/LineStringReplay.js'; import WebGLLineStringReplay from './LineStringReplay.js';
import WebGLPolygonReplay from '../webgl/PolygonReplay.js'; import WebGLPolygonReplay from './PolygonReplay.js';
import WebGLTextReplay from '../webgl/TextReplay.js'; import WebGLTextReplay from './TextReplay.js';
/** /**
* @type {Array<number>} * @type {Array<number>}

View File

@@ -10,7 +10,7 @@ import {TEXT_ALIGN} from '../replay.js';
import {DEFAULT_FILLSTYLE, DEFAULT_FONT, DEFAULT_LINECAP, DEFAULT_LINEDASH, import {DEFAULT_FILLSTYLE, DEFAULT_FONT, DEFAULT_LINECAP, DEFAULT_LINEDASH,
DEFAULT_LINEDASHOFFSET, DEFAULT_LINEJOIN, DEFAULT_LINEWIDTH, DEFAULT_MITERLIMIT, DEFAULT_LINEDASHOFFSET, DEFAULT_LINEJOIN, DEFAULT_LINEWIDTH, DEFAULT_MITERLIMIT,
DEFAULT_STROKESTYLE, DEFAULT_TEXTALIGN, DEFAULT_TEXTBASELINE} from '../webgl.js'; DEFAULT_STROKESTYLE, DEFAULT_TEXTALIGN, DEFAULT_TEXTBASELINE} from '../webgl.js';
import WebGLTextureReplay from '../webgl/TextureReplay.js'; import WebGLTextureReplay from './TextureReplay.js';
import AtlasManager from '../../style/AtlasManager.js'; import AtlasManager from '../../style/AtlasManager.js';
import WebGLBuffer from '../../webgl/Buffer.js'; import WebGLBuffer from '../../webgl/Buffer.js';

View File

@@ -4,9 +4,9 @@
import {abstract, getUid} from '../../util.js'; import {abstract, getUid} from '../../util.js';
import {intersects} from '../../extent.js'; import {intersects} from '../../extent.js';
import {isEmpty} from '../../obj.js'; import {isEmpty} from '../../obj.js';
import {fragment, vertex} from '../webgl/texturereplay/defaultshader.js'; import {fragment, vertex} from './texturereplay/defaultshader.js';
import Locations from '../webgl/texturereplay/defaultshader/Locations.js'; import Locations from './texturereplay/defaultshader/Locations.js';
import WebGLReplay from '../webgl/Replay.js'; import WebGLReplay from './Replay.js';
import {CLAMP_TO_EDGE, FLOAT, TEXTURE_2D} from '../../webgl.js'; import {CLAMP_TO_EDGE, FLOAT, TEXTURE_2D} from '../../webgl.js';
import {createTexture} from '../../webgl/Context.js'; import {createTexture} from '../../webgl/Context.js';