dasmoth / dalliance

Interactive web-based genome browser.
http://www.biodalliance.org/
BSD 2-Clause "Simplified" License
226 stars 68 forks source link

New stylesheet system #89

Open dasmoth opened 10 years ago

dasmoth commented 10 years ago

The current BioDAS-heritage stylesheet system is reaching its limits.

Therefore it's time for a new system!

Basic ideas:

The hope is that we can implement version 1 of this without making any changes to the renderer. There will be a new Tier.styleForFeature method, which behaves something like "getComputedStyle" in the CSS world. Doing things this way means that we'll be able to leave the old styleForFeature in place, allowing a gradual switchover from old to new stylesheets.

Comments and suggestions are very welcome -- please reply to this issue.

I'll aim to post some example stylesheets before starting work.

dasmoth commented 9 years ago

Should be possible to use arbitrary feature properties as labels.