-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Global drawing (callback after drawing) #81
Comments
Another way to implement this would be to call the mapping with fake symbols |
Funny, I misinterpreted this as an approach to #33 (multiple layers in a symbol), by rendering an I'm not sure it makes sense to implement a global symbols |
For #33 I would prefer not to limit it to just 3 layers. Yes, this would only be useful for script mappings. After thinking about it some more, I agree that separate exports are better. |
I ended up implementing this as an API call |
The idea is to provide a callback that gets called after the tiling/drawing job is complete, so that additional "global" layers can be drawn below/above the "main" drawing. Possible interface:
Example use cases:
Want to draw a big background rectangle behind everything. (generalization of Background #57)
Draw a graph overlay over chess pieces.
The drawing and the symbols have already been laid out so have min/max/center coordinates defined.
We can use top-level
z-index
to specify how the global drawing relates to other symbols (overlay/underlay), though there isn't a wrapping<symbol>
in this case.For symmetry with #79, could maybe be called
afterDrawing
.The text was updated successfully, but these errors were encountered: