Quantcast
Channel: Bugs Latest Topics
Viewing all articles
Browse latest Browse all 760

Multiline text bug in new release of Canvas2D

$
0
0

Th following code was working in previous release (preview), rendering text on two lines:

new Text2D("AAA\nBBB", settings)

In current release (announced at 29 Jan) it doesn't work. It produces following exception:

Uncaught TypeError: Cannot read property 'offset' of undefined
    at Text2DInstanceData.descriptor.set [as transformX] (http://localhost:63342/FirstSample/lib/babylon.canvas2d.js:8687:66)
    at Text2D.RenderablePrim2D.updateInstanceDataPart (http://localhost:63342/FirstSample/lib/babylon.canvas2d.js:9337:29)

Without new line symbol:

new Text2D("AAABBB", settings)

it still works


Viewing all articles
Browse latest Browse all 760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>