diff --git a/src/ol/render/canvas/instruction.js b/src/ol/render/canvas/instruction.js new file mode 100644 index 0000000000..8985e59b97 --- /dev/null +++ b/src/ol/render/canvas/instruction.js @@ -0,0 +1,20 @@ +goog.provide('ol.render.canvas.Instruction'); + +/** + * @enum {number} + */ +ol.render.canvas.Instruction = { + BEGIN_GEOMETRY: 0, + BEGIN_PATH: 1, + CIRCLE: 2, + CLOSE_PATH: 3, + DRAW_IMAGE: 4, + DRAW_TEXT: 5, + END_GEOMETRY: 6, + FILL: 7, + MOVE_TO_LINE_TO: 8, + SET_FILL_STYLE: 9, + SET_STROKE_STYLE: 10, + SET_TEXT_STYLE: 11, + STROKE: 12 +}; diff --git a/src/ol/render/canvas/replay.js b/src/ol/render/canvas/replay.js index 4b3c5b8f8a..32cc8b46a4 100644 --- a/src/ol/render/canvas/replay.js +++ b/src/ol/render/canvas/replay.js @@ -22,30 +22,11 @@ goog.require('ol.obj'); goog.require('ol.render.ReplayGroup'); goog.require('ol.render.VectorContext'); goog.require('ol.render.canvas'); +goog.require('ol.render.canvas.Instruction'); goog.require('ol.render.replay'); goog.require('ol.transform'); -/** - * @enum {number} - */ -ol.render.canvas.Instruction = { - BEGIN_GEOMETRY: 0, - BEGIN_PATH: 1, - CIRCLE: 2, - CLOSE_PATH: 3, - DRAW_IMAGE: 4, - DRAW_TEXT: 5, - END_GEOMETRY: 6, - FILL: 7, - MOVE_TO_LINE_TO: 8, - SET_FILL_STYLE: 9, - SET_STROKE_STYLE: 10, - SET_TEXT_STYLE: 11, - STROKE: 12 -}; - - /** * @constructor * @extends {ol.render.VectorContext}