I’m doing some tests for a future experiment in which subjects type letters and what they type is shown on the screen. Depending on the content of the text, I’m then displaying additional text at the end of the typed text. So I need to estimate the width of the text on the screen. When I was testing this offline, I simply used the boundingBox property and it worked beautifully. However, this does not seem to work online: boundingBox doesn’t seem to be a property of the textStim object anymore (https://psychopy.github.io/psychojs/visual_TextStim.js.html). There seems to be a _estimateBoundingBox method but when I try to use it (e.g. by entering: var bb; bb = text._estimateBoundingBox() ), it doesn’t work, I get an error message saying that _estimateBoundingBox() not a function. Is there any way to estimate the width of the text online?
Thank you very much!