[V1.12.0] Set SelectionBox Extents in Data Space
This week Plottable is releasing a new API endpoint for setting the bounds of SelectionBoxLayers in data space; this was previously only possible in pixel space.
We've also made bugfixes for clipPaths caused by URL changes. The center orientation on Axes.Time in the bottom orientation will now show all labels. The callbacks on DragBoxLayers are properly removed when the DragBoxLayer is destroy()ed.
Features
Extent setters on SelectionBoxLayer
Users can now set the position of a SelectionBoxLayer in data-space, by passing in data values instead of pixel positions:
API Changes:
/**
* Sets the data values backing the left and right edges of the box.
*/
xExtent(xExtent: (number | { valueOf(): number; })[]): SelectionBoxLayer;
/**
* Sets the data values backing the top and bottom edges of the box.
*/
yExtent(yExtent: (number | { valueOf(): number; })[]): SelectionBoxLayer;Try it out: http://jsfiddle.net/bluong63/ewga1des/
Bug Fixes
DragBoxLayerproperly disconnects from its callbacks whendestroy()ed ordetach()ed. Previously, the callbacks associated with theDragBoxLayerwould be called while it wasdetach()ed or had beendestroy()ed (#2553).- We were made aware of a bug where URL changes would cause a
clipPathto stop working, andComponentscould extend out of their cell on aTable.Components withclipPaths update their reference when re-rendering after the URL changes. (#2733). - In
bottomorientationTimeAxis,TickLabels are now visible whentickLabelPositionis set tocenter. Previously they were hidden.
(#2725)