Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: d3/d3-transition
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.1.1
Choose a base ref
...
head repository: d3/d3-transition
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.0.1
Choose a head ref
Loading
Showing with 4,020 additions and 2,289 deletions.
  1. +0 −8 .eslintrc
  2. +13 −0 .eslintrc.json
  3. +18 −0 .github/eslint.json
  4. +30 −0 .github/workflows/node.js.yml
  5. +1 −1 .gitignore
  6. +0 −3 .npmignore
  7. +13 −58 LICENSE
  8. +120 −59 README.md
  9. +0 −13 d3-transition.sublime-project
  10. +0 −4 index.js
  11. +46 −28 package.json
  12. +48 −0 rollup.config.js
  13. +2 −2 src/active.js
  14. +4 −0 src/index.js
  15. +2 −2 src/interrupt.js
  16. +2 −2 src/selection/index.js
  17. +1 −1 src/selection/interrupt.js
  18. +3 −3 src/selection/transition.js
  19. +31 −27 src/transition/attr.js
  20. +20 −8 src/transition/attrTween.js
  21. +1 −1 src/transition/delay.js
  22. +1 −1 src/transition/duration.js
  23. +1 −1 src/transition/ease.js
  24. +14 −0 src/transition/easeVarying.js
  25. +29 −0 src/transition/end.js
  26. +1 −1 src/transition/filter.js
  27. +27 −18 src/transition/index.js
  28. +1 −1 src/transition/merge.js
  29. +1 −1 src/transition/on.js
  30. +5 −7 src/transition/schedule.js
  31. +2 −2 src/transition/select.js
  32. +2 −2 src/transition/selectAll.js
  33. +51 −29 src/transition/style.js
  34. +10 −4 src/transition/styleTween.js
  35. +1 −1 src/transition/text.js
  36. +24 −0 src/transition/textTween.js
  37. +2 −2 src/transition/transition.js
  38. +1 −1 src/transition/tween.js
  39. +0 −15 test/.eslintrc
  40. +13 −0 test/.eslintrc.json
  41. +88 −90 test/active-test.js
  42. +59 −79 test/error-test.js
  43. +23 −25 test/interrupt-test.js
  44. +15 −4 test/jsdom.js
  45. +231 −269 test/selection/interrupt-test.js
  46. +103 −110 test/selection/transition-test.js
  47. +247 −213 test/transition/attr-test.js
  48. +87 −113 test/transition/attrTween-test.js
  49. +6 −6 test/transition/call-test.js
  50. +50 −65 test/transition/delay-test.js
  51. +50 −65 test/transition/duration-test.js
  52. +16 −6 test/transition/each-test.js
  53. +54 −60 test/transition/ease-test.js
  54. +27 −0 test/transition/easeVarying-test.js
  55. +5 −6 test/transition/empty-test.js
  56. +24 −28 test/transition/filter-test.js
  57. +35 −69 test/transition/index-test.js
  58. +22 −25 test/transition/merge-test.js
  59. +6 −6 test/transition/node-test.js
  60. +6 −6 test/transition/nodes-test.js
  61. +95 −118 test/transition/on-test.js
  62. +31 −33 test/transition/remove-test.js
  63. +32 −36 test/transition/select-test.js
  64. +32 −36 test/transition/selectAll-test.js
  65. +20 −0 test/transition/selectChild-test.js
  66. +20 −0 test/transition/selectChildren-test.js
  67. +11 −14 test/transition/selection-test.js
  68. +12 −6 test/transition/size-test.js
  69. +0 −7 test/transition/state.js
  70. +198 −158 test/transition/style-test.js
  71. +95 −117 test/transition/styleTween-test.js
  72. +41 −51 test/transition/text-test.js
  73. +33 −0 test/transition/textTween-test.js
  74. +17 −22 test/transition/transition-test.js
  75. +110 −140 test/transition/tween-test.js
  76. +1,578 −0 yarn.lock
8 changes: 0 additions & 8 deletions .eslintrc

This file was deleted.

13 changes: 13 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 8
},
"env": {
"es6": true
},
"rules": {
"no-cond-assign": 0
}
}
18 changes: 18 additions & 0 deletions .github/eslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"problemMatcher": [
{
"owner": "eslint-compact",
"pattern": [
{
"regexp": "^(.+):\\sline\\s(\\d+),\\scol\\s(\\d+),\\s(Error|Warning|Info)\\s-\\s(.+)\\s\\((.+)\\)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5,
"code": 6
}
]
}
]
}
30 changes: 30 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn --frozen-lockfile
- run: |
echo ::add-matcher::.github/eslint.json
yarn run eslint src test --format=compact
- run: yarn test
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
*.sublime-workspace
.DS_Store
build/
dist/
node_modules
npm-debug.log
3 changes: 0 additions & 3 deletions .npmignore

This file was deleted.

71 changes: 13 additions & 58 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,58 +1,13 @@
Copyright (c) 2010-2015, Michael Bostock
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* The name Michael Bostock may not be used to endorse or promote products
derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL MICHAEL BOSTOCK BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

TERMS OF USE - EASING EQUATIONS

Open source under the BSD License.

Copyright 2001 Robert Penner
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

- Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

- Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

- Neither the name of the author nor the names of contributors may be used to
endorse or promote products derived from this software without specific prior
written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Copyright 2010-2021 Mike Bostock

Permission to use, copy, modify, and/or distribute this software for any purpose
with or without fee is hereby granted, provided that the above copyright notice
and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
Loading