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
Currently, every text element in a drawing duplicates its CSS state, now that we have taken over all text layout, but this is wasteful. We need to cut down on redundant CSS, without affecting users' ability to customize individual text elements.
Derived requirements:
We need to keep running track of a current CSS state while creating the DOM, much like a browser would do it.
toyplot.html._draw_text() should only write-out CSS properties that differ from the current state.
To get any benefit from this, code that renders a mark would need to insert "default" text styles into a parent element.
Ideally, this could cut-down on style overhead throughout a drawing, not just for text.
The text was updated successfully, but these errors were encountered:
Currently, every text element in a drawing duplicates its CSS state, now that we have taken over all text layout, but this is wasteful. We need to cut down on redundant CSS, without affecting users' ability to customize individual text elements.
Derived requirements:
current
CSS state while creating the DOM, much like a browser would do it.Ideally, this could cut-down on style overhead throughout a drawing, not just for text.
The text was updated successfully, but these errors were encountered: