Commit Graph

106 Commits

Author SHA1 Message Date
Poul Kjeldager Sørensen
326d9660c0 Update d3.d.ts
this makes the following possible from typescript:
`var context = canvas.node<HTMLCanvasElement>().getContext('2d');`

alternative to

`var context = (<HtmlCanvasElement>canvas.node()).getContext('2d');`
2014-09-05 22:32:26 +02:00
Masahiro Wakame
a9fa66235c Merge pull request #2769 from mhegazy/tscParamsChange
Remove quotes from response files
2014-09-05 11:31:35 +09:00
Mohamed Hegazy
2aaa293cb1 Remove quotes from response files 2014-09-02 14:53:39 -07:00
Brandon Luong
e2b37fc978 stack layout out update definition 2014-09-02 11:47:22 -07:00
Brandon Luong
c3df7fb18e update stacklayout x y 2014-08-27 23:18:44 -07:00
Daniel Mane
bb52146cfb [refactor] Switch from Array<type> notation to type[] syntactic sugar.
This is more idiomatic.
Exactly the same semantics as before, per section 3.6.4 of the Typescript Lang Specification
2014-08-22 22:29:16 -07:00
Daniel Mane
039152e617 Implement generic typing for D3.Map and D3.Set 2014-08-22 21:16:48 -07:00
vvakame
cf075d8eb4 Merge branch 'd3-treelayout' of github.com:rolandzwaga/DefinitelyTyped into rolandzwaga-d3-treelayout 2014-08-20 13:13:53 +09:00
Steven
dbd1973487 Updated Force Layout nodes and links
Different layouts have different definitions for node objects and link objects.
I created a new `GraphNodeForce` and `GraphLinkForce` interface for the Force Layout.
See the [docs](https://github.com/mbostock/d3/wiki/Force-Layout#nodes) for more info.
2014-08-11 13:44:29 -07:00
Adrien Bustany
548cb78ce6 d3: Fix file permissions
There is no reason to have this file executable.
2014-08-09 23:44:47 +02:00
Adrien Bustany
186c0182cd d3: Enable usage as an external module 2014-08-09 23:44:06 +02:00
Masahiro Wakame
f0f38e3f3f Merge pull request #2640 from bmcfluff/master
d3: Typed Scale interface to remove duplicate code
2014-08-09 23:32:28 +09:00
Masahiro Wakame
abb3a82d37 Merge pull request #2653 from danmane/umaster
Add missing properties to definitions for D3.set and D3.map.
2014-08-09 23:21:49 +09:00
Daniel Mane
2f1b69b353 Add missing properties to definitions for D3.set and D3.map.
Paramaterize the function type for Set.add
2014-08-07 22:36:44 -07:00
Benjamin Cosman
fa83d0d39c d3: Changed Scale names for consistency 2014-08-07 21:50:52 -07:00
Steven
fcfe9fee87 Color.brighter has an optional number parameter 2014-08-07 18:24:19 -07:00
Benjamin Cosman
95434e76f1 d3: Typed Scale interface to remove duplicate code 2014-08-06 15:33:20 -07:00
Masahiro Wakame
0645ad6fcd Merge pull request #2621 from hstitz-jku/patch-1
Added the nodeSize function to TreeLayout
2014-08-06 00:19:51 +09:00
Brian Malehorn
98e3fadf93 Merge remote-tracking branch 'upstream/master' into d3-getter-setter
Conflicts:
	d3/d3.d.ts
2014-08-04 17:06:20 -07:00
Holger Stitz
e3a212a892 Added the nodeSize function to TreeLayout
Documentation https://github.com/mbostock/d3/wiki/Tree-Layout#nodeSize
2014-08-04 17:02:03 +02:00
Roland Zwaga
d0d8d7887c Fixed: D3.Layout.TreeLayout.nodes() returns Array<GraphNode> instead of TreeLayout 2014-07-29 11:35:42 +02:00
Daniel Mane
61144d85fd Rename "QuantitiveScale" to "QuantitativeScale" for consistency with
d3's API docs and common usage of the english language.

Close #2573
2014-07-28 13:41:43 -07:00
Brian Malehorn
c0df8aa594 fix a number of bugs in d3.d.ts
Most are a result of setter = foo.bar(x), getter = foo.bar()
only reflecting the setter signature.
2014-07-21 17:56:42 -07:00
Maxim Efremov
5e885cd60f d3.js: Improve D3.Svg.Symbol 2014-07-09 13:00:04 +04:00
Izzy Cecil
935a7a1cc2 Made D3Events inherit from lib.d.ts Event interface. 2014-07-08 20:05:15 -06:00
Tom Crockett
4e3c8af9e0 Add URL to example from which testcase is drawn 2014-07-02 15:06:15 -07:00
Tom Crockett
e4ad51734d Add multi-scale time format method 2014-07-02 15:02:39 -07:00
Audrey
9c74f4c5d9 Update signature of data method on Selection. 2014-06-17 15:53:02 -04:00
Jaco Erasmus
c09276c316 Changed - Fully qualified "Range" to "D3.Time.Range" 2014-06-04 15:41:52 +02:00
Audrey
2cce02bc82 Update signature of call target for selection.call
Per https://github.com/mbostock/d3/wiki/Selections#call
2014-05-22 11:51:11 -04:00
Audrey
4af3ac7fae Update d3.d.ts
Gamma value k is optional per https://github.com/mbostock/d3/wiki/Colors
2014-05-13 16:43:52 -04:00
Cedric Venet
b79abf8203 Make optional the before argument of enter().insert('')
From the documentation: "For enter selections, the before selector may
be omitted, [...]"
2014-05-11 23:50:35 +02:00
vvakame
a23785ab1b remove not required .tscparams 2014-05-11 11:22:03 +09:00
Utkarsh Upadhyay
e113f195f3 Re-enable the test for brush()
This was failing with 0.9.0. Now the test no longer crashes the
compiler.
2014-04-29 10:38:44 +02:00
Utkarsh Upadhyay
47c26a4664 Allow setting of styles/properties via objects.
Additionally:
 1. Make the type for setting attributes via objects slightly stricter.
 2. Add tests for style/property setting via object maps.
2014-04-29 10:37:33 +02:00
Alexei Bykov
2aa1127c03 fixed declaration of d3.Event interface
- added 'type' member into d3.Event interface
2014-04-08 19:18:55 +04:00
enternet
4370a43172 Compability with --noImplicitAny option.
The module will be compatible with --noImplicitAny option of tsc compiler.
2014-04-03 12:41:24 +03:00
Bart van der Schoor
99034b0164 Merge pull request #1943 from asgerf/master
various bugfixes in d3.d.ts
2014-04-02 20:01:01 +02:00
Asger Feldthaus
f75091e08e d3.d.ts: no-return -> void return types 2014-03-31 16:21:20 +02:00
Asger Feldthaus
a1c23bddc3 d3.d.ts: fixed raw signatures for conic projections 2014-03-31 16:07:42 +02:00
Asger Feldthaus
0e143ef3e7 various bugfixes in d3.d.ts 2014-03-31 14:26:26 +02:00
enternet
7c77089f10 Projection.parallels()
Someone forgot to declare this very useful method.
2014-03-28 11:05:43 +03:00
Masahiro Wakame
a22803559a Merge pull request #1806 from smrq/master
Fixed d3 definitions for d3.geom.voronoi
2014-03-15 17:48:12 +09:00
Greg Smith
5be35e694e Added missing functions to d3 EnterSelection interface 2014-03-09 03:25:58 -05:00
Greg Smith
5a8800501d d3.js definitions: added a more complex Voronoi diagram test case, and updated definitions to pass 2014-03-09 03:04:18 -05:00
Greg Smith
43fdc7cb6a Fixed d3 definitions for d3.geom.voronoi 2014-03-07 17:48:31 -06:00
MissFishie
9ae21ba16f Fix incorrect return type for PieLayout methods
PieLayout methods should return type PieLayout so that chaining is possible after one of these methods are called.  This is consistent with all other types defined in this file.
2014-03-06 17:17:03 -08:00
André Farzat
72997bd719 Fixing Set interface method from 'Add' to 'add' 2014-02-13 17:43:48 -02:00
Bartvds
0efeed5c45 added/fixed headers a-d
https://github.com/borisyankov/DefinitelyTyped/issues/1570
2014-01-24 00:22:06 +01:00
Igor Oleinikov
12058a9447 Fix #1545 2014-01-18 21:24:56 +04:00