Skip to content

Gone with the Wind

Pre-release
Pre-release
Compare
Choose a tag to compare
@teamdandelion teamdandelion released this 10 Jul 00:01
· 7560 commits to master since this release

This release focuses on removal.

Component.remove and Component.detach

Previously, calling .remove on a component would not destroy the component, but would temporarily detach it from the DOM. All listeners would be maintained on the removed Component. Now, that functionality is maintained by Component.detach. Calling remove will detach the component, and additionally deregister all its listeners and make it impossible to use in the future. Using remove is the correct API point to avoid memory leaks.

Axis.XAxis and Axis.YAxis

We've removed the XAxis and YAxis classes, in favor of the more general Axis.Numeric and Axis.Category.

Bugfixes & API Cleanup

  • Fixed a bug where Domainer.paddingExceptions were not handled properly if multiple plots registered the same paddingException
  • LinePlot and AreaPlot now animate up from the appropriate location.
  • Axis.Category will now use formatters appropriately
  • Axis.Numeric no longer forces the scale to return around 10 ticks, so calling QuantitiveScale.ticks(count) will now change how many ticks exist on the axis.

API Cleanup

  • Label.setText has been renamed to Label.text and converted into a getter/setter
  • The Formatter.Custom constructor now takes the custom format function as the first argument, and only optionally requires precision
  • Plottable now exposes a version property.