Skip to content

Interaction and API tweaks

Pre-release
Pre-release

Choose a tag to compare

@crmorford crmorford released this 27 Mar 22:53
· 4467 commits to master since this 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-width on symbols on Plot.Scatter does not scale with the transform by default.

API-Breaking Changes

  • Component.merge has been renamed into Component.below and Component.above now exists as its foil.

Typescript API-Breaking Changes

  • Interaction.DoubleClick no longer extends from Interaction.Click as we are modifying the architecture of Interaction.Click without disrupting the behavior of Interaction.DoubleClick

Other notes

  • Interaction.Hover has been deprecated due to Interaction.Pointer being released in the last release, which uses the new Interaction architecture / structure.

Upgrade Instructions

  • For those who want to keep existing functionality while using Component.merge, please replace all occurrences with Component.below. However, if a user wanted to place a component above another component instead while keeping the same code structure, replace Component.merge with Component.above appropriately.

Future Changes

Coming Shortly:

  • Interaction.Click
  • Interaction.Drag
  • Interaction.Pan + Interaction.Zoom

Release Song

"All the Small Things" --Blink 182
https://vimeo.com/32122929