Merge pull request #1308 from pelotom/d3-fixes

D3 fixes
This commit is contained in:
Basarat Ali Syed
2013-11-21 03:17:12 -08:00

57
d3/d3.d.ts vendored
View File

@@ -944,7 +944,18 @@ declare module D3 {
iso: TimeFormat;
};
scale(): Scale.TimeScale;
scale: {
/**
* Constructs a new time scale with the default domain and range;
* the ticks and tick format are configured for local time.
*/
(): Scale.TimeScale;
/**
* Constructs a new time scale with the default domain and range;
* the ticks and tick format are configured for UTC time.
*/
utc(): Scale.TimeScale;
};
}
export interface Range {
@@ -1400,7 +1411,7 @@ declare module D3 {
*/
r: number;
/**
* the greeb color channel.
* the green color channel.
*/
g: number;
/**
@@ -1414,6 +1425,18 @@ declare module D3 {
}
export interface HSLColor extends Color{
/**
* hue
*/
h: number;
/**
* saturation
*/
s: number;
/**
* lightness
*/
l: number;
/**
* convert from HSL to RGB.
*/
@@ -1421,6 +1444,18 @@ declare module D3 {
}
export interface LABColor extends Color{
/**
* lightness
*/
l: number;
/**
* a-dimension
*/
a: number;
/**
* b-dimension
*/
b: number;
/**
* convert from LAB to RGB.
*/
@@ -1428,6 +1463,18 @@ declare module D3 {
}
export interface HCLColor extends Color{
/**
* hue
*/
h: number;
/**
* chroma
*/
c: number;
/**
* luminance
*/
l: number;
/**
* convert from HCL to RGB.
*/
@@ -2634,9 +2681,11 @@ declare module D3 {
export interface Zoom {
/**
* Execute zoom method
* Applies the zoom behavior to the specified selection,
* registering the necessary event listeners to support
* panning and zooming.
*/
(): any;
(selection: Selection): void;
/**
* Registers a listener to receive events