Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proposal: Add drawable modifiers #467

Open
fenjalien opened this issue Jan 17, 2024 · 0 comments
Open

proposal: Add drawable modifiers #467

fenjalien opened this issue Jan 17, 2024 · 0 comments

Comments

@fenjalien
Copy link
Member

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant