Skip to content

Commit

Permalink
Merge pull request DefinitelyTyped#1646 from pelotom/vega-axes
Browse files Browse the repository at this point in the history
Add typing information for axes
  • Loading branch information
Igorbek committed Jan 29, 2014
2 parents a53d50e + 91de50a commit 72d5498
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion vega/vega.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,36 @@ declare module Vega {
}

export interface Axis {
// TODO
// TODO docs
type: string;
scale: string;
orient?: string;
title?: string;
titleOffset?: number;
format?: string;
ticks?: number;
values?: any[];
subdivide?: number;
tickPadding?: number;
tickSize?: number;
tickSizeMajor?: number;
tickSizeMinor?: number;
tickSizeEnd?: number;
offset?: any;
layer?: string;
grid?: boolean;
properties?: Axis.Properties
}

export module Axis {
export interface Properties {
majorTicks?: Mark.PropertySet;
minorTicks?: Mark.PropertySet;
grid?: Mark.PropertySet;
labels?: Mark.PropertySet;
title?: Mark.PropertySet;
axis?: Mark.PropertySet;
}
}

export interface Legend {
Expand Down

0 comments on commit 72d5498

Please sign in to comment.