-
Notifications
You must be signed in to change notification settings - Fork 14
V1.0
Placeholder
- Finer Track Control
- Lane Control
- Chart.slice()
- Major Performance Increase
Changes: The way Scribl::Track (link to annotated code?) behaves has changed to more closely replicate genome browsers. A track now contains multiple Scribl::Lanes. A Track relates to a specific entity (e.g. UCSC Build HG18 SNPs Chromosome1) but can contain many Lanes so that features do not overlap.
Scribl::Lanes - behave in much the same was as Scribl::Track did in previous version
API Consolidation: The way you set the default text attributes (for all features) and individual features has been unified with the deprecated API being removed
The way attributes are retrieved has been simplified by the addition of a glyph.getAttr('attr')
method, which greatly simplifies the internals of how attributes work. getAttr bubbles through the correct order to determine the correct value for the attribute. For example glyph.getAttr('color') would first checks to see if the color attribute has a value with the glyph itself (i.e. glyph.color) then it checks if it is part of a complex glyph and it's parent has a value (i.e. glyph.parent.color) then it checks if its type has a value (glyph.chart.type.color) and if none of those are set then it returns the default set at the top of Scribl.js (scribl.glyph.color).