source: node_modules/d3-transition/src/transition/index.js@ e4c61dd

Last change on this file since e4c61dd was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago

Prototype 1.1

  • Property mode set to 100644
File size: 2.3 KB
Line 
1import {selection} from "d3-selection";
2import transition_attr from "./attr.js";
3import transition_attrTween from "./attrTween.js";
4import transition_delay from "./delay.js";
5import transition_duration from "./duration.js";
6import transition_ease from "./ease.js";
7import transition_easeVarying from "./easeVarying.js";
8import transition_filter from "./filter.js";
9import transition_merge from "./merge.js";
10import transition_on from "./on.js";
11import transition_remove from "./remove.js";
12import transition_select from "./select.js";
13import transition_selectAll from "./selectAll.js";
14import transition_selection from "./selection.js";
15import transition_style from "./style.js";
16import transition_styleTween from "./styleTween.js";
17import transition_text from "./text.js";
18import transition_textTween from "./textTween.js";
19import transition_transition from "./transition.js";
20import transition_tween from "./tween.js";
21import transition_end from "./end.js";
22
23var id = 0;
24
25export function Transition(groups, parents, name, id) {
26 this._groups = groups;
27 this._parents = parents;
28 this._name = name;
29 this._id = id;
30}
31
32export default function transition(name) {
33 return selection().transition(name);
34}
35
36export function newId() {
37 return ++id;
38}
39
40var selection_prototype = selection.prototype;
41
42Transition.prototype = transition.prototype = {
43 constructor: Transition,
44 select: transition_select,
45 selectAll: transition_selectAll,
46 selectChild: selection_prototype.selectChild,
47 selectChildren: selection_prototype.selectChildren,
48 filter: transition_filter,
49 merge: transition_merge,
50 selection: transition_selection,
51 transition: transition_transition,
52 call: selection_prototype.call,
53 nodes: selection_prototype.nodes,
54 node: selection_prototype.node,
55 size: selection_prototype.size,
56 empty: selection_prototype.empty,
57 each: selection_prototype.each,
58 on: transition_on,
59 attr: transition_attr,
60 attrTween: transition_attrTween,
61 style: transition_style,
62 styleTween: transition_styleTween,
63 text: transition_text,
64 textTween: transition_textTween,
65 remove: transition_remove,
66 tween: transition_tween,
67 delay: transition_delay,
68 duration: transition_duration,
69 ease: transition_ease,
70 easeVarying: transition_easeVarying,
71 end: transition_end,
72 [Symbol.iterator]: selection_prototype[Symbol.iterator]
73};
Note: See TracBrowser for help on using the repository browser.