v3.0.0-rc.1
This is Release Candidate 1 for Plottable v3.0.0. Please read on for a list of changes in rc.1.
Breaking changes
CDN changes - rawgit.com no longer supported, cdnjs.com no longer supported
rawgit.com will no longer work as a CDN for newer versions of Plottable. We recommend using npm and webpack to bundle Plottable with your application. If that's not possible, you may use unpkg.com.
If on develop:
https://rawgithub.com/palantir/plottable/develop/plottable.js
--> //unpkg.com/plottable@latest/plottable.js
If on a specific version:
https://rawgithub.com/palantir/plottable/v3.0.0-beta.1/plottable.js
--> //unpkg.com/plottable@v3.0.0-beta.1/plottable.js
Similarly, we are no longer supporting cdnjs.com and it may break in the future. Use unpkg instead.
Typescript: interfaces renamed
All Typescript interfaces now have an I
prepended to them:
// old
var entity: Plottable.Entity... // no exported member Entity
// new
var entity: Plottable.IEntity
Features
Add Axis.tickLabelDataOnElement
, which gets the data value for a tick label. This allows users to implement behaviors based on interacting with a tick label:
clickInteraction.onClick((point, event) => {
const dataValue = axis.tickLabelDataOnElement(event.target);
console.log("clicked on value", dataValue);
}).attachTo(axis);
Enhancements
- Improved SVG line renderer performance.
- Deferred rendering is now supported on canvas renderers.
Bugfixes
Canvas renderer is no longer blurry on HiDPI displays.