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
Hmm, those utility functions don't end up in the aframe-troika-text bundle.
I suppose you could copy the selectionUtils.js file directly and pass textComponent.troikaTextMesh.textRenderInfo to those functions.
I'd also accept a PR that exposes them as methods on the aframe component; I'd kept them off the Text class for tree shaking but it's not too much extra to add to the aframe-troika-text bundle.
Thanks, maybe I missed something though so just to be sure I don't dig where I shouldn't... right now from the AFrame component is there a way to have a cursor, going from glyph to glyph by knowing its relative or absolute position to e.g display behind it a plane or just an _ under?
Not built in, no. Those selectionUtils functions give you all the data you need to implement such a thing, though. Some other folks have built similar things but I don't know if any are for aframe specifically. An example: https://twitter.com/__jberesford__/status/1609766045891571713
I noticed https://protectwise.github.io/troika/troika-three-text/#carets-and-selection-ranges and as I'm tinkering with the idea of a minimalist Vim in WebXR thought it could help. Are these functions accessible somehow from the component?
The text was updated successfully, but these errors were encountered: