Open kubawolanin opened 6 years ago
Did you ever get anywhere with this? I'd like to use vexflow to create images as well.
@kubawolanin @andiejs
Please use this repo below, you can very simply use VexFlow on Node.js. https://github.com/panarch/node-vexflow
+ Firstly I made this standalone-vexflow-context, I thought that it’s better to maintain a single repository to provide react-native and node.js support, but now it looks better not to do it.
I made a new repository node-vexflow
, now only html5 canvas context supported. (no svg support for now)
Hey @panarch!
Thank you for your work. I've seen your posts on https://github.com/0xfe/vexflow/issues/338 and at the same time I've discovered your
standalone-vexflow-context
npm package.I'm desperately looking for a way to generate VexFlow images server-side. For this task I'm using Firebase Cloud Functions. I've planned to use vexflow on Node.js context as it is, but turns out I need a DOM element to operate on. Here's my code:
Could you share any advice on how to utilize your package on the Node.js context? Note that I'm not using React Native here - just simple
canvas-prebuilt
that I'm streaming into HTTP response.The other idea I had was to incorporate SVG backend from VexFlow, and then using
jsdom
extract the<svg>
element with matching content-type.Cheers, Kuba