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

Reduce duplicated style information. #171

Open
tshead2 opened this issue Jun 15, 2017 · 0 comments
Open

Reduce duplicated style information. #171

tshead2 opened this issue Jun 15, 2017 · 0 comments

Comments

@tshead2
Copy link
Member

tshead2 commented Jun 15, 2017

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.

@tshead2 tshead2 modified the milestone: Toyplot 0.16.0 Jul 28, 2017
@tshead2 tshead2 modified the milestones: Toyplot 0.16.0, Toyplot 0.17.0 Nov 1, 2017
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