-
Notifications
You must be signed in to change notification settings - Fork 27
/
index.js
42 lines (39 loc) · 1.68 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import { selection } from 'd3-selection';
import { default as addClass } from './src/addClass';
import { default as after } from './src/after';
import { default as appendTo } from './src/appendTo';
import { default as before } from './src/before';
import { default as clear } from './src/clear';
import { default as css } from './src/css';
import { default as eq } from './src/eq';
import { default as first } from './src/first';
import { default as hasClass } from './src/hasClass';
import { default as hide } from './src/hide';
import { default as last } from './src/last';
import { default as moveToBack } from './src/moveToBack';
import { default as moveToFront } from './src/moveToFront';
import { default as on } from './src/on';
import { default as prepend } from './src/prepend';
import { default as removeClass } from './src/removeClass';
import { default as show } from './src/show';
import { default as toggle } from './src/toggle';
import { default as toggleClass } from './src/toggleClass';
selection.prototype.addClass = addClass;
selection.prototype.after = after;
selection.prototype.appendTo = appendTo;
selection.prototype.before = before;
selection.prototype.clear = clear;
selection.prototype.css = css;
selection.prototype.eq = eq;
selection.prototype.first = first;
selection.prototype.hasClass = hasClass;
selection.prototype.hide = hide;
selection.prototype.last = last;
selection.prototype.moveToBack = moveToBack;
selection.prototype.moveToFront = moveToFront;
selection.prototype.on = on;
selection.prototype.prepend = prepend;
selection.prototype.removeClass = removeClass;
selection.prototype.show = show;
selection.prototype.toggle = toggle;
selection.prototype.toggleClass = toggleClass;