constrain
constrain copied to clipboard
Unify style mechanisms?
Figure and TextContext both have style mechanisms. Perhaps they should be unified so styles can be passed more flexibly.
So rather than fillStyle, etc. being one-off properties of the figure object (or of other objects), they would be attached to all. objects in a uniform way. This could also allow figures to "save" and "restore" style changes.
Addressed by c239f772a60d4cef49d1a60850dc3831fc8ef80c; there may be more to do here wrt allowing objects to specify part of the style and contained text to specify the rest. Currently this is handled by having text styles be style transformers.