ringw / vexflow

A JavaScript library for rendering music notation and guitar tablature.
http://www.vexflow.com
72 stars 23 forks source link

Changing canvas styles #10

Open samaxes opened 9 years ago

samaxes commented 9 years ago

Hi @ringw, using your API, is there any way to change the canvas' styles before rendering the document? I'm interested in changing the default colors and sizes.

ringw commented 8 years ago

Hi, I don't think there is currently a way to change the canvas color and size because the canvas creation and drawing is wrapped up inside DocumentFormatter. It would be possible to add some custom hooks to change some properties, but I would rather do an overhaul of DocumentFormatter first and hopefully make it more flexible from the ground up.