
Maker.js
Choose a file format to download your customized drawing (units will be millimeters)
Dxf options
Svg options
Svg options
Json options
OpenJsCad options
Stl options
Pdf options
Generating your customized drawing...
There was an error generating your file
Your customized drawing file is ready for download
If your browser does not support the download button above, and paste into a new text file named myfile.txt on your computer.
JavaScript code editor
x
1
var makerjs = require('makerjs');
2
3
function demo(closed, points) {
4
5
this.models = {
6
example: new makerjs.models.ConnectTheDots(closed, points)
7
};
8
9
}
10
11
demo.metaParameters = [
12
{ title: "closed", type: "bool", value: true },
13
{ title: "points", type: "select", value: [[[0,0],[40,40],[60,20],[100,100],[60,60],[40,80]],[[0,0],[100,0],[50,87]],[-10,0,10,0,0,20],"-10 0 10 0 0 20"] }
14
];
15
16
module.exports = demo;
The Maker.js Playground is a sample app demonstrating the features of the Maker.js core library. You can build your own apps using Maker.js, or it can be used command-line style with Node.js.
Credits:
- Bezier curve calculation by Bezier.js
- Font file parsing by Opentype.js
- JavaScript editor by CodeMirror
- Markdown rendering by Marked
- 3D generation by OpenJSCAD
- PDF generation by PDFKit
- Multitouch pointer events polyfill by Jquery PEP
- Binary data polyfill by text-encoding
- Fonts provided by Google Fonts