-
Notifications
You must be signed in to change notification settings - Fork 13
/
svg.js
31 lines (31 loc) · 942 Bytes
/
svg.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
define([
"./svg/_base", "./svg/Shape", "./svg/Container", "./svg/Surface", "./svg/Group", "./svg/Rect", "./svg/Ellipse",
"./svg/Circle", "./svg/Line", "./svg/Polyline", "./svg/Image", "./svg/Path", "./svg/Text", "./svg/TextPath",
"./svg/Creator"
], function (svg, Shape, Container, Surface, Group, Rect, Ellipse, Circle, Line, Polyline, Image, Path, Text, TextPath,
Creator
) {
return {
// summary:
// This the graphics rendering bridge for browsers compliant with W3C SVG1.0.
// This is the preferred renderer to use for interactive and accessible graphics.
id: "svg",
Shape: Shape,
Container: Container,
Surface: Surface,
Group: Group,
Rect: Rect,
Ellipse: Ellipse,
Circle: Circle,
Line: Line,
Polyline: Polyline,
Image: Image,
Path: Path,
Text: Text,
TextPath: TextPath,
Creator: Creator,
createSurface: function (node, width, height) {
return new Surface(node, width, height);
}
};
});