Rename _ol_style_Text_ to Text
This commit is contained in:
@@ -12,7 +12,7 @@ import _ol_style_Circle_ from '../../../../../src/ol/style/Circle.js';
|
||||
import Fill from '../../../../../src/ol/style/Fill.js';
|
||||
import Stroke from '../../../../../src/ol/style/Stroke.js';
|
||||
import Style from '../../../../../src/ol/style/Style.js';
|
||||
import _ol_style_Text_ from '../../../../../src/ol/style/Text.js';
|
||||
import Text from '../../../../../src/ol/style/Text.js';
|
||||
|
||||
|
||||
describe('ol.render.canvas.Immediate', function() {
|
||||
@@ -44,7 +44,7 @@ describe('ol.render.canvas.Immediate', function() {
|
||||
sinon.spy(context, 'setTextStyle');
|
||||
var fill = new Fill({});
|
||||
var stroke = new Stroke({});
|
||||
var text = new _ol_style_Text_({});
|
||||
var text = new Text({});
|
||||
var image = new _ol_style_Circle_({});
|
||||
var style = new Style({
|
||||
fill: fill,
|
||||
|
||||
@@ -2,7 +2,7 @@ import Feature from '../../../../../src/ol/Feature.js';
|
||||
import MultiPolygon from '../../../../../src/ol/geom/MultiPolygon.js';
|
||||
import Polygon from '../../../../../src/ol/geom/Polygon.js';
|
||||
import _ol_render_canvas_TextReplay_ from '../../../../../src/ol/render/canvas/TextReplay.js';
|
||||
import _ol_style_Text_ from '../../../../../src/ol/style/Text.js';
|
||||
import Text from '../../../../../src/ol/style/Text.js';
|
||||
|
||||
describe('ol.render.canvas.TextReplay', function() {
|
||||
|
||||
@@ -11,13 +11,13 @@ describe('ol.render.canvas.TextReplay', function() {
|
||||
var geometry = new Polygon([[[0, 0], [0, 1], [1, 1], [1, 0], [0, 0]]]);
|
||||
var feature = new Feature(geometry);
|
||||
|
||||
replay.setTextStyle(new _ol_style_Text_({
|
||||
replay.setTextStyle(new Text({
|
||||
text: 'This is a long text'
|
||||
}));
|
||||
replay.drawText(geometry, feature);
|
||||
expect(replay.instructions.length).to.be(0);
|
||||
|
||||
replay.setTextStyle(new _ol_style_Text_({
|
||||
replay.setTextStyle(new Text({
|
||||
text: 'short'
|
||||
}));
|
||||
replay.drawText(geometry, feature);
|
||||
@@ -32,13 +32,13 @@ describe('ol.render.canvas.TextReplay', function() {
|
||||
]);
|
||||
var feature = new Feature(geometry);
|
||||
|
||||
replay.setTextStyle(new _ol_style_Text_({
|
||||
replay.setTextStyle(new Text({
|
||||
text: 'This is a long text'
|
||||
}));
|
||||
replay.drawText(geometry, feature);
|
||||
expect(replay.instructions.length).to.be(0);
|
||||
|
||||
replay.setTextStyle(new _ol_style_Text_({
|
||||
replay.setTextStyle(new Text({
|
||||
text: 'short'
|
||||
}));
|
||||
replay.drawText(geometry, feature);
|
||||
|
||||
@@ -3,13 +3,13 @@ import Point from '../../../../../src/ol/geom/Point.js';
|
||||
import _ol_render_webgl_TextReplay_ from '../../../../../src/ol/render/webgl/TextReplay.js';
|
||||
import Fill from '../../../../../src/ol/style/Fill.js';
|
||||
import Stroke from '../../../../../src/ol/style/Stroke.js';
|
||||
import _ol_style_Text_ from '../../../../../src/ol/style/Text.js';
|
||||
import Text from '../../../../../src/ol/style/Text.js';
|
||||
|
||||
describe('ol.render.webgl.TextReplay', function() {
|
||||
var replay;
|
||||
|
||||
var createTextStyle = function(fillStyle, strokeStyle, text) {
|
||||
var textStyle = new _ol_style_Text_({
|
||||
var textStyle = new Text({
|
||||
rotateWithView: true,
|
||||
rotation: 1.5,
|
||||
scale: 2,
|
||||
|
||||
Reference in New Issue
Block a user