constrain icon indicating copy to clipboard operation
constrain copied to clipboard

Unify style mechanisms?

Open andrewcmyers opened this issue 2 years ago • 1 comments

Figure and TextContext both have style mechanisms. Perhaps they should be unified so styles can be passed more flexibly.

andrewcmyers avatar Apr 21 '22 17:04 andrewcmyers

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.

andrewcmyers avatar Apr 25 '22 01:04 andrewcmyers

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.

andrewcmyers avatar Jan 21 '23 16:01 andrewcmyers