Merge pull request #7114 from GaborFarkas/webgl_immediate

Immediate WebGL text renderer and other improvements
This commit is contained in:
Frédéric Junod
2017-08-14 14:33:45 +02:00
committed by GitHub
4 changed files with 126 additions and 31 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() {