-
Notifications
You must be signed in to change notification settings - Fork 393
/
index.js
58 lines (55 loc) · 1.67 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/**
* Index
*/
( function( root, factory ) {
// module definition
if ( typeof module == 'object' && module.exports ) {
// CommonJS
module.exports = factory(
require('./boilerplate'),
require('./canvas-renderer'),
require('./svg-renderer'),
require('./vector'),
require('./anchor'),
require('./dragger'),
require('./illustration'),
require('./path-command'),
require('./shape'),
require('./group'),
require('./rect'),
require('./rounded-rect'),
require('./ellipse'),
require('./polygon'),
require('./hemisphere'),
require('./cylinder'),
require('./cone'),
require('./box')
);
} else if ( typeof define == 'function' && define.amd ) {
/* globals define */ // AMD
define( 'zdog', [], root.Zdog );
}
/* eslint-disable max-params */
} )( this, function factory( Zdog, CanvasRenderer, SvgRenderer, Vector, Anchor,
Dragger, Illustration, PathCommand, Shape, Group, Rect, RoundedRect,
Ellipse, Polygon, Hemisphere, Cylinder, Cone, Box ) {
/* eslint-enable max-params */
Zdog.CanvasRenderer = CanvasRenderer;
Zdog.SvgRenderer = SvgRenderer;
Zdog.Vector = Vector;
Zdog.Anchor = Anchor;
Zdog.Dragger = Dragger;
Zdog.Illustration = Illustration;
Zdog.PathCommand = PathCommand;
Zdog.Shape = Shape;
Zdog.Group = Group;
Zdog.Rect = Rect;
Zdog.RoundedRect = RoundedRect;
Zdog.Ellipse = Ellipse;
Zdog.Polygon = Polygon;
Zdog.Hemisphere = Hemisphere;
Zdog.Cylinder = Cylinder;
Zdog.Cone = Cone;
Zdog.Box = Box;
return Zdog;
} );