new Holes(holeRadius: number, points: IPoint[], ids?: string[]): Holes
Create an array of circles of the same radius from an array of center points.
Example:
//Create some holes from an array of points
var makerjs = require('makerjs');
var model = new makerjs.models.Holes(10, [[0, 0],[50, 0],[25, 40]]);
var svg = makerjs.exporter.toSVG(model);
document.write(svg);
Parameters
holeRadius: number
Hole radius.
points: IPoint[]
Array of points for origin of each hole.
Optional ids: string[]
Optional array of corresponding path ids for the holes.
Create an array of circles of the same radius from an array of center points.
Example:
//Create some holes from an array of points var makerjs = require('makerjs'); var model = new makerjs.models.Holes(10, [[0, 0],[50, 0],[25, 40]]); var svg = makerjs.exporter.toSVG(model); document.write(svg);