Skip to content

Commit

Permalink
Merge pull request #2525 from palantir/r1.5.0
Browse files Browse the repository at this point in the history
Release version 1.5.0 (--> master)
  • Loading branch information
jtlan committed Jul 31, 2015
2 parents cad93fc + ba75868 commit f55ecc5
Show file tree
Hide file tree
Showing 28 changed files with 1,365 additions and 230 deletions.
8 changes: 7 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,12 +362,18 @@ module.exports = function(grunt) {
grunt.registerTask("dist-compile", ["test", "uglify", "compress"]);

grunt.registerTask("commitjs", ["dist-compile", "gitcommit:built"]);
grunt.registerTask("default", ["connect", "dev-compile", "watch"]);
grunt.registerTask("default", ["connect", "dev-compile", "watch-silent"]);

grunt.registerTask("test", ["dev-compile", "test-local"]);
grunt.registerTask("test-local", ["blanket_mocha", "ts:verifyDefinitionFiles", "lint"]);
grunt.registerTask("test-sauce", ["connect", "saucelabs-mocha"]);

grunt.registerTask("watch-silent", function() {
// Surpresses the "Running 'foo' task" messages
grunt.log.header = function() {};
grunt.task.run(["watch"]);
});

grunt.registerTask("lint", ["parallelize:tslint", "jscs", "eslint"]);

// Disable saucelabs on dev environments by checking if SAUCE_USERNAME is an environment variable
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "plottable",
"description": "A modular charting library",
"version": "1.4.0",
"version": "1.5.0",
"main": ["plottable.js", "plottable.css"],
"license": "MIT",
"ignore": [
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "plottable.js",
"description": "A library for creating charts out of D3",
"version": "1.4.0",
"version": "1.5.0",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/palantir/plottable.git"
Expand Down
13 changes: 13 additions & 0 deletions plottable.css
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,19 @@ svg.plottable {
.plottable .drag-box-layer.x-resizable.y-resizable .drag-corner-br {
cursor: nwse-resize;
}

.plottable .drag-box-layer.movable .selection-area {
cursor: move; /* IE fallback */
cursor: -moz-grab;
cursor: -webkit-grab;
cursor: grab;
}

.plottable .drag-box-layer.movable .selection-area:active {
cursor: -moz-grabbing;
cursor: -webkit-grabbing;
cursor: grabbing;
}
/* /DragBoxLayer */

.plottable .legend text {
Expand Down
97 changes: 97 additions & 0 deletions plottable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1900,6 +1900,22 @@ declare module Plottable {
* @returns {Numeric} The calling Numeric Axis.
*/
tickLabelPosition(position: string): Numeric;
/**
* Gets the approximate text width setting.
*
* @returns {boolean} The current text width approximation setting.
*/
usesTextWidthApproximation(): boolean;
/**
* Sets the approximate text width setting. Approximating text width
* measurements can drastically speed up plot rendering, but the plot may
* have extra white space that would be eliminated by exact measurements.
* Additionally, very abnormal fonts may not approximate reasonably.
*
* @param {boolean} The new text width approximation setting.
* @returns {Axes.Numeric} The calling Axes.Numeric.
*/
usesTextWidthApproximation(enable: boolean): Axes.Numeric;
}
}
}
Expand Down Expand Up @@ -2331,6 +2347,51 @@ declare module Plottable {
boxVisible(show: boolean): SelectionBoxLayer;
fixedWidth(): boolean;
fixedHeight(): boolean;
/**
* Gets the x scale for this SelectionBoxLayer.
*/
xScale(): QuantitativeScale<number | {
valueOf(): number;
}>;
/**
* Sets the x scale for this SelectionBoxLayer.
*
* @returns {SelectionBoxLayer} The calling SelectionBoxLayer.
*/
xScale(xScale: QuantitativeScale<number | {
valueOf(): number;
}>): SelectionBoxLayer;
/**
* Gets the y scale for this SelectionBoxLayer.
*/
yScale(): QuantitativeScale<number | {
valueOf(): number;
}>;
/**
* Sets the y scale for this SelectionBoxLayer.
*
* @returns {SelectionBoxLayer} The calling SelectionBoxLayer.
*/
yScale(yScale: QuantitativeScale<number | {
valueOf(): number;
}>): SelectionBoxLayer;
/**
* Gets the data values backing the left and right edges of the box.
*
* Returns an undefined array if the edges are not backed by a scale.
*/
xExtent(): (number | {
valueOf(): number;
})[];
/**
* Gets the data values backing the top and bottom edges of the box.
*
* Returns an undefined array if the edges are not backed by a scale.
*/
yExtent(): (number | {
valueOf(): number;
})[];
destroy(): void;
}
}
}
Expand Down Expand Up @@ -2784,6 +2845,13 @@ declare module Plottable {
* @returns {Plots.Rectangle} The calling Rectangle Plot.
*/
y2(y2: number | Accessor<number> | Y | Accessor<Y>): Plots.Rectangle<X, Y>;
/**
* Gets the PlotEntities at a particular Point.
*
* @param {Point} point The point to query.
* @returns {PlotEntity[]} The PlotEntities at the particular point
*/
entitiesAt(point: Point): PlotEntity[];
protected _propertyProjectors(): AttributeToProjector;
protected _pixelPoint(datum: any, index: number, dataset: Dataset): {
x: any;
Expand Down Expand Up @@ -4018,6 +4086,17 @@ declare module Plottable {
*/
resizable(canResize: boolean): DragBoxLayer;
protected _setResizableClasses(canResize: boolean): void;
/**
* Gets whether or not the drag box is movable.
*/
movable(): boolean;
/**
* Sets whether or not the drag box is movable.
*
* @param {boolean} movable
* @return {DragBoxLayer} The calling DragBoxLayer.
*/
movable(movable: boolean): DragBoxLayer;
/**
* Sets the callback to be called when dragging starts.
*
Expand Down Expand Up @@ -4090,6 +4169,15 @@ declare module Plottable {
computeLayout(origin?: Point, availableWidth?: number, availableHeight?: number): XDragBoxLayer;
protected _setBounds(newBounds: Bounds): void;
protected _setResizableClasses(canResize: boolean): void;
yScale<D extends number | {
valueOf(): number;
}>(): QuantitativeScale<D>;
yScale<D extends number | {
valueOf(): number;
}>(yScale: QuantitativeScale<D>): SelectionBoxLayer;
yExtent(): (number | {
valueOf(): number;
})[];
}
}
}
Expand All @@ -4108,6 +4196,15 @@ declare module Plottable {
computeLayout(origin?: Point, availableWidth?: number, availableHeight?: number): YDragBoxLayer;
protected _setBounds(newBounds: Bounds): void;
protected _setResizableClasses(canResize: boolean): void;
xScale<D extends number | {
valueOf(): number;
}>(): QuantitativeScale<D>;
xScale<D extends number | {
valueOf(): number;
}>(xScale: QuantitativeScale<D>): SelectionBoxLayer;
xExtent(): (number | {
valueOf(): number;
})[];
}
}
}
Loading

0 comments on commit f55ecc5

Please sign in to comment.