You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Two.js uses context.measureText from HTML5 <canvas /> tags to know what the width of a set of rendered text is in Two.Text.getBoundingClientRect.
This works in the browser, but not in headless environments
Describe the solution you'd like node-canvas is the defacto Canvas feature for node.js and one recommended for use with Two.js on its own documentation page. So, the measureText code in Two.Text should work with node-canvas as well as the browser.
This issue is based on the conversation here: #668
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Two.js uses
context.measureText
from HTML5<canvas />
tags to know what the width of a set of rendered text is inTwo.Text.getBoundingClientRect
.This works in the browser, but not in headless environments
Describe the solution you'd like
node-canvas
is the defacto Canvas feature for node.js and one recommended for use with Two.js on its own documentation page. So, themeasureText
code inTwo.Text
should work withnode-canvas
as well as the browser.This issue is based on the conversation here: #668
The text was updated successfully, but these errors were encountered: