noflo/noflo-canvas

Are FillStyle and StrokeStyle deprecated?

automata opened this issue · 1 comments

Are FillStyle and StrokeStyle deprecated now that we have the fillStyle and strokeStyle properties on Fill and Stroke?

Is there any use case where a FillStyle or StrokeStyle command happens alone without a Fill or Stroke?

They are useful to change the global state of the context, which could
potentially be good for performance. Fill and Stroke cache and reset the
style to not change the global state (Transform does this too). We can note
this in the component description.