Are there vexflow events || Promises || Async/Await

36 views
Skip to first unread message

Kjell Weibrecht

unread,
Oct 23, 2024, 6:31:08 AM10/23/24
to vexflow
Hey there,

does anyone know about vexflow events? - could not find any yet.

I am currently writing a skeleton loader to have a better UX for the visitors. For same i need a callback, promise or event i can wait/listen for. I mean i still have to write my own events to make sure everything is loaded, but the base piece is vexflow. So basically best case would be if there is any event like "canvas created/changed".
Another idea would be to have a promise to any draw methods so i can make sure to resolve my own promises only after the draw.

Also feel free to give any other suggestions.

Cheers,
Kjell

Michael Asato Cuthbert

unread,
Oct 23, 2024, 2:08:49 PM10/23/24
to vexflow
I believe that all Vexflow commands are synchronous. So you don’t need to have an event: when you call draw it will draw.  — myke
Reply all
Reply to author
Forward
0 new messages