Skip to content

Commit

Permalink
Checkpoint selection.interrupt.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Oct 25, 2015
1 parent 3897094 commit 46bbcd6
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
4 changes: 0 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import {selection} from "d3-selection";
import selection_transition from "./src/selection_transition";
import transition from "./src/transition";

selection.prototype.transition = selection_transition;

export {
transition
};
5 changes: 5 additions & 0 deletions src/selection-interrupt.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default function(name) {
return this.each(function() {
// TODO
});
};
File renamed without changes.
File renamed without changes.
12 changes: 9 additions & 3 deletions src/transition.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import {selection} from "d3-selection";
import {timer} from "d3-timer";
import transition_ease from "./transition_ease";
import selection_interrupt from "./selection-interrupt";
import selection_transition from "./selection-transition";
import transition_ease from "./transition-ease";

var maxId = 0;
var maxId = 0,
proto = selection.prototype;

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

proto.interrupt = selection_interrupt;
proto.transition = selection_transition;

Transition.prototype = transition.prototype = {
each: selection.prototype.each,
each: proto.each,
ease: transition_ease
};

Expand Down

0 comments on commit 46bbcd6

Please sign in to comment.