Skip to content

Commit 46bbcd6

Browse files
committed
Checkpoint selection.interrupt.
1 parent 3897094 commit 46bbcd6

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

index.js

-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
import {selection} from "d3-selection";
2-
import selection_transition from "./src/selection_transition";
31
import transition from "./src/transition";
42

5-
selection.prototype.transition = selection_transition;
6-
73
export {
84
transition
95
};

src/selection-interrupt.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export default function(name) {
2+
return this.each(function() {
3+
// TODO
4+
});
5+
};
File renamed without changes.
File renamed without changes.

src/transition.js

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
import {selection} from "d3-selection";
22
import {timer} from "d3-timer";
3-
import transition_ease from "./transition_ease";
3+
import selection_interrupt from "./selection-interrupt";
4+
import selection_transition from "./selection-transition";
5+
import transition_ease from "./transition-ease";
46

5-
var maxId = 0;
7+
var maxId = 0,
8+
proto = selection.prototype;
69

710
export function Transition(root, depth, key, id) {
811
this._root = root;
@@ -16,8 +19,11 @@ function transition() {
1619
return new Transition([document.documentElement], 1);
1720
}
1821

22+
proto.interrupt = selection_interrupt;
23+
proto.transition = selection_transition;
24+
1925
Transition.prototype = transition.prototype = {
20-
each: selection.prototype.each,
26+
each: proto.each,
2127
ease: transition_ease
2228
};
2329

0 commit comments

Comments
 (0)