Fix WebGL text offset direction

This commit is contained in:
GaborFarkas
2017-08-11 11:14:37 +02:00
parent 87391e7795
commit bb593eaac8
2 changed files with 4 additions and 4 deletions

View File

@@ -154,8 +154,8 @@ describe('ol.render.webgl.TextReplay', function() {
expect(replay.originY).to.be(charInfo.offsetY);
expect(replay.imageHeight).to.be(charInfo.image.height);
expect(replay.imageWidth).to.be(charInfo.image.width);
expect(replay.anchorX).to.be(-widthX + 10);
expect(replay.anchorY).to.be(10);
expect(replay.anchorX).to.be(-widthX - 10);
expect(replay.anchorY).to.be(-10);
});
it('does not draw if text is empty', function() {