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
When I draw with SVGContext, the stroke style is always black. When I draw with CanvasContext, the stroke style is correct. FWIW, SVGContext.arc seems to work correctly (which is evident by the red circles).
SVG
Canvas
The text was updated successfully, but these errors were encountered:
This looks like an issue specifically with rect in svgcontext. Unlike line and path, svgcontext.rect is a single call - it doesn't build a path and then call stroke to close if off (even though all 3 shapes end up in a single svg element). There is a way to pass the line attributes into rect specifically, but no way to call it on the rendercontext interface.
It would be pretty simple to change svgcontext.rect to do something like:
I'm using
RenderContext
as a convenient way to render shapes on top of a vexflow music sheet. I'm drawing rectangles like this:When I draw with
SVGContext
, the stroke style is always black. When I draw withCanvasContext
, the stroke style is correct. FWIW,SVGContext.arc
seems to work correctly (which is evident by the red circles).SVG
Canvas
The text was updated successfully, but these errors were encountered: