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
As a way to generalise such things as marks and decorations we should have element modifiers. It would come in the form of a single function that takes an element's drawables, ctx and the element's styling (and possibly the name and type of the element). Then return the modified drawables which can then be transformed and anchors applied to.
The function would then call modifier functions in ctx, depending on the state of the style dict (and other options like the name or type), to operate on the drawables.
As a way to generalise such things as marks and decorations we should have element modifiers. It would come in the form of a single function that takes an element's drawables, ctx and the element's styling (and possibly the name and type of the element). Then return the modified drawables which can then be transformed and anchors applied to.
The function would then call modifier functions in ctx, depending on the state of the style dict (and other options like the name or type), to operate on the drawables.
This would:
The text was updated successfully, but these errors were encountered: