Rename _ol_style_TextPlacement_ to TextPlacement
This commit is contained in:
@@ -12,7 +12,7 @@ import _ol_render_canvas_ from '../canvas.js';
|
||||
import _ol_render_canvas_Instruction_ from '../canvas/Instruction.js';
|
||||
import _ol_render_canvas_Replay_ from '../canvas/Replay.js';
|
||||
import _ol_render_replay_ from '../replay.js';
|
||||
import _ol_style_TextPlacement_ from '../../style/TextPlacement.js';
|
||||
import TextPlacement from '../../style/TextPlacement.js';
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
@@ -176,7 +176,7 @@ _ol_render_canvas_TextReplay_.prototype.drawText = function(geometry, feature) {
|
||||
var stride = 2;
|
||||
var i, ii;
|
||||
|
||||
if (textState.placement === _ol_style_TextPlacement_.LINE) {
|
||||
if (textState.placement === TextPlacement.LINE) {
|
||||
if (!intersects(this.getBufferedMaxExtent(), geometry.getExtent())) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @module ol/style/Text
|
||||
*/
|
||||
import _ol_style_Fill_ from '../style/Fill.js';
|
||||
import _ol_style_TextPlacement_ from '../style/TextPlacement.js';
|
||||
import TextPlacement from '../style/TextPlacement.js';
|
||||
|
||||
/**
|
||||
* @classdesc
|
||||
@@ -75,7 +75,7 @@ var _ol_style_Text_ = function(opt_options) {
|
||||
* @private
|
||||
* @type {ol.style.TextPlacement|string}
|
||||
*/
|
||||
this.placement_ = options.placement !== undefined ? options.placement : _ol_style_TextPlacement_.POINT;
|
||||
this.placement_ = options.placement !== undefined ? options.placement : TextPlacement.POINT;
|
||||
|
||||
/**
|
||||
* @private
|
||||
|
||||
Reference in New Issue
Block a user