Interaction and API tweaks
Pre-release
Pre-release
v0.50.0
Features
component.above and component.below API
Before, there was a merge API that allowed users to place components into a component group for the sake of the components sharing the same cell in the Plottable table.
However, this merge API does not describe where the components will render in terms of which component will be on top and which component will be on bottom visually.
In fact, merge essentially placed the calling component below the argument component (even though this is not well described).
Thus, merge has been renamed to below and above has been created as its foil, where a.above(b) will place a on top of b and a.below(b) will place a below b.
The signatures of both API are as follows:
public above(c: AbstractComponent): Component.Group;
public below(c: AbstractComponent): Component.Group;Bugfixes
- If undefined points are handed to
Plot.Scatter, those points are not rendered as consistent with previous behavior. - As consistent with other browsers, the
stroke-widthon symbols onPlot.Scatterdoes not scale with the transform by default.
API-Breaking Changes
Component.mergehas been renamed intoComponent.belowandComponent.abovenow exists as its foil.
Typescript API-Breaking Changes
Interaction.DoubleClickno longer extends fromInteraction.Clickas we are modifying the architecture ofInteraction.Clickwithout disrupting the behavior ofInteraction.DoubleClick
Other notes
Interaction.Hoverhas been deprecated due toInteraction.Pointerbeing released in the last release, which uses the newInteractionarchitecture / structure.
Upgrade Instructions
- For those who want to keep existing functionality while using
Component.merge, please replace all occurrences withComponent.below. However, if a user wanted to place a component above another component instead while keeping the same code structure, replaceComponent.mergewithComponent.aboveappropriately.
Future Changes
Coming Shortly:
Interaction.ClickInteraction.DragInteraction.Pan+Interaction.Zoom
Release Song
"All the Small Things" --Blink 182
https://vimeo.com/32122929