Граф коммитов

3235 Коммитов

Автор SHA1 Сообщение Дата
Jason Davies dd1e9165c9 Fix d3.mean: coerce strings to numbers.
Fixes #2067.
2014-10-16 09:16:21 +01:00
Dave Landry 1fc660a6b6 created Hebrew locale 2014-10-10 10:10:45 -07:00
Dave Landry d962ff9229 created Macedonian locale 2014-10-10 10:10:45 -07:00
Mike Bostock 66038b3967 Rename fr to fr_FR. 2014-10-10 10:05:20 -07:00
Mike Bostock 5c56875996 Merge branch 'french_locale' of github.com:dwt/d3 into fr-de-locales 2014-10-10 10:04:29 -07:00
Mike Bostock d9e141a154 Rename de to de_DE. 2014-10-10 10:04:25 -07:00
Mike Bostock dd371b0178 Merge branch 'german_locale' of github.com:dwt/d3 into fr-de-locales 2014-10-10 10:02:45 -07:00
Mike Bostock f38ed05731 Fix for JSDOM update. 2014-10-09 12:16:04 -07:00
Mike Bostock 9b953bde43 Add d3.zip target. 2014-10-08 08:45:31 -07:00
Mike Bostock ac7fb154fa Bump version. 2014-10-08 08:09:42 -07:00
Mike Bostock 9b747deb23 Merge branch 'fix-zoom-touch-chrome' into 3.4.12 2014-10-08 08:04:33 -07:00
Mike Bostock 6b61f60e26 Save two minified bytes. 2014-10-08 08:03:32 -07:00
Mike Bostock 056c488350 Merge remote-tracking branch 'origin/fix-imports' into 3.4.12 2014-10-08 07:58:29 -07:00
Mike Bostock 98e7d4bde2 Merge remote-tracking branch 'origin/slice' into 3.4.12 2014-10-08 07:49:11 -07:00
Mike Bostock 3bbcd57b99 Merge remote-tracking branch 'origin/fix-xhr-notext' into 3.4.12 2014-10-08 07:47:58 -07:00
Mike Bostock d62f3d44db Merge remote-tracking branch 'origin/fix-timezone-parse' into 3.4.12 2014-10-08 07:46:42 -07:00
Mike Bostock 2d83168df3 Merge remote-tracking branch 'origin/enter-size' into 3.4.12 2014-10-08 07:45:27 -07:00
Jason Davies a35000b744 Fix #2043: selection.enter.size. 2014-10-03 22:05:25 +01:00
Yves Le Maout b5ddd2b07b Update to JSDom 1.0.0
To fix this issue : https://github.com/petkaantonov/bluebird/issues/291
2014-10-02 13:28:44 +02:00
Jason Davies 08353a40bc Fix #2040: parsing time zone offsets.
There was a bug when parsing positive time zone offsets with a non-zero
number of minutes: the use of Math.floor on negative numbers rounded in
the wrong direction.  Replacing Math.floor with (x | 0) correctly
truncates positive and negative values.
2014-09-30 00:07:18 +01:00
Jason Davies 61e469388a Workaround for Chrome touchmove issue 412723.
Fixes #2013.
2014-09-10 12:00:54 +01:00
Martin Häcker bb77211ddb Add missing comma after weekday 2014-08-25 17:55:58 +02:00
Martin Häcker 80e593a39e Add french locale 2014-08-13 07:50:36 +02:00
Martin Häcker b99b2b80b0 Add german locale 2014-08-12 11:47:18 +02:00
Jason Davies 519f258ff4 Replace substring with slice.
Slice is shorter and more intuitive: negative arguments are treated as
being relative to the end of the string, similar to arrays.

The only place it made sense to keep substring was in
d3_locale_numberFormat, where the first argument can be negative but
substring automatically treats this as zero.
2014-08-06 17:55:22 +01:00
Jason Davies 03e74cbe72 Fix a few imports. 2014-08-05 20:55:48 +01:00
Mike Bostock a10b22654c Add missing import. 2014-08-05 11:17:34 -07:00
Jason Davies f7d39bac48 Fix InvalidStateError for non-text local files.
Fixes a regression introduced when XDomainRequest support was added in
2eeb2057b2.  XDomainRequest only supports
request.responseText, not request.response, but XMLHttpRequest throws an
error if request.responseText is read for non-text response types.

A status code of 0 can mean either a local file was accessed, or there
was an error.  The response is checked to see if the error flag was set:

* In the case of request.responseType being "text" or "",
  request.responseText should be "".  Unfortunately it’s impossible to
  distinguish between an empty local text file and an error state, but
  wanting to load empty local files seems rare.
  XDomainRequest doesn’t have a responseType and it only has
  responseText, so we handle it here too.

* For other response types, request.response should be null.  At the
  moment, Safari 7.0.5 doesn’t respect this, e.g. the response will be a
  zero-length blob for the "blob" response type if the local file wasn’t
  found, but this seems to be fixed as of WebKit r171650.
2014-07-29 18:20:08 +01:00
Mike Bostock 48ad44fdee Merge branch 'fix-transverse-mercator-center' 2014-07-17 15:58:17 -07:00
Mike Bostock f5c380b8fb Minor optimization. 2014-07-16 22:25:48 -07:00
Mike Bostock a394493007 Fix reported center. 2014-07-16 22:25:27 -07:00
Mike Bostock a30a79ae0a Merge branch '3.4.10' 2014-07-11 23:01:16 -07:00
Mike Bostock 0622785b00 Merge branch 'expose-global' of github.com:tbranyen/d3 into 3.4.10 2014-07-11 23:00:28 -07:00
Mike Bostock e2bc377edb Merge branch 'fix-zoom-implicit-center' into 3.4.10 2014-07-11 22:56:49 -07:00
Mike Bostock 64f0156a7a Fix es-ES locale. 2014-07-11 22:56:12 -07:00
Mike Bostock 4f1a5b24fb Merge pull request #1928 from peperomeu/spanish-locale
Added locale for spanish
2014-07-11 21:48:40 -07:00
Mike Bostock 4dc91785c3 Fix #1933 - set zoom center on zoomstart.
Rather than set the zoom center on the first mousewheel following a mousemove,
we now set the zoom center on the first mousewheel event of a zoom gesture. This
is slightly simpler logic and avoids confusing behavior during constrained
momentum scrolling.
2014-07-06 21:39:11 -07:00
José Romeu García f98db95219 Added locale for spanish 2014-07-01 12:01:40 +02:00
Mike Bostock 974a62fc82 Merge branch '3.4.9' 2014-06-30 13:16:59 -04:00
Mike Bostock 18e72cee55 Merge branch 'spmjs-master' into 3.4.9 2014-06-30 13:15:31 -04:00
Mike Bostock c71cc9742e Merge branch 'classed' into 3.4.9 2014-06-30 13:14:09 -04:00
Mike Bostock 51f6bcc125 Merge branch 'foolip-matches' into 3.4.9 2014-06-30 13:13:30 -04:00
Mike Bostock 6063308384 Use element.matches if available. 2014-06-30 13:12:58 -04:00
Mike Bostock 2c6e7ec474 Merge branch 'instanceof-color' into 3.4.9 2014-06-30 13:10:04 -04:00
Jason Davies 54ca304673 selection.classed: coerce name to string.
Fixes #1625.
2014-06-30 11:42:01 +01:00
Jason Davies 086b5fc578 Revert "Remove workaround for WebKit bug 44083."
This reverts commit 2b14807055.

Fixes #1903.
2014-06-27 17:19:42 +01:00
Mike Bostock 35584baa17 Support instanceof d3.{color,rgb,…}
This also makes it possible to create a subclass of d3.color outside of the core
library, which would then support automatic interpolation.
2014-06-24 16:43:37 -07:00
Tim Branyen 7f2d63e3c2 Always expose D3 onto the environment global
With regards to #1689 adding AMD compatibility, it seemed odd to me that
D3 opt'd out of exposing itself globally for third-party plugins.

Within a discussion about this very problem, found here:
https://github.com/jakevdp/mpld3/issues/33#issuecomment-32101013

the argument is made that exposing the global defeats the point of
module systems.  I agree that module systems help avoid global
pollution, but that is not something I'd consider the point of module
systems, especially since they are registered in a global namespace
themselves.

This patch will fix third-party modules that are shimmed.
2014-06-24 10:21:49 -04:00
Philip Jägenstedt 59db6aa496 Use Element.matches if available
Spec:
http://dom.spec.whatwg.org/#dom-element-matches

Support in Chromium:
https://code.google.com/p/chromium/issues/detail?id=326652
2014-05-28 11:29:56 +02:00
afc163 30dcc0e9a3 Add spm support 2014-05-22 18:31:22 +08:00