forked from microsoft/maker.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimple.html
More file actions
80 lines (70 loc) · 2.46 KB
/
Copy pathsimple.html
File metadata and controls
80 lines (70 loc) · 2.46 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html>
<head>
<title>Maker.js debug TypeScript source code</title>
<style type="text/css">
html, body {
height: 100%;
margin: 0;
padding: 0;
font-family: sans-serif;
}
svg {
position: absolute;
top: 0;
height: 100%;
width: 100%;
}
</style>
<script>
//pretend we are in node
var module = {};
</script>
<script src="../src/core/maker.js"></script>
<script src="../src/core/angle.js"></script>
<script src="../src/core/point.js"></script>
<script src="../src/core/units.js"></script>
<script src="../src/core/measure.js"></script>
<script src="../src/core/path.js"></script>
<script src="../src/core/break.js"></script>
<script src="../src/core/paths.js"></script>
<script src="../src/core/model.js"></script>
<script src="../src/core/kit.js"></script>
<script src="../src/core/exporter.js"></script>
<script src="../src/core/dxf.js"></script>
<script src="../src/core/xml.js"></script>
<script src="../src/core/svg.js"></script>
<script src="../src/core/solvers.js"></script>
<script src="../src/core/intersect.js"></script>
<script src="../src/core/fillet.js"></script>
<script src="../src/models/BoltCircle.js"></script>
<script src="../src/models/BoltRectangle.js"></script>
<script src="../src/models/RoundRectangle.js"></script>
<script src="../src/models/Oval.js"></script>
<script src="../src/models/OvalArc.js"></script>
<script src="../src/models/ConnectTheDots.js"></script>
<script src="../src/models/Rectangle.js"></script>
<script src="../src/models/Polygon.js"></script>
<script src="../src/models/Square.js"></script>
<script src="../src/models/SCurve.js"></script>
<script src="../src/models/Star.js"></script>
<script>
//pretend it's been required
var makerjs = MakerJs;
var require = function (name) {
return makerjs;
}
</script>
<!--drop in any model kit that you want to debug-->
<script src="../examples/smile.js"></script>
</head>
<body>
<script>
var constructor = module.exports;
var parameters = makerjs.kit.getParameterValues(constructor);
var model = makerjs.kit.construct(constructor, parameters);
var svg = makerjs.exporter.toSVG(model);
document.write(svg);
</script>
</body>
</html>