How to use the makerjs.$ function in makerjs

To help you get started, weā€™ve selected a few makerjs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / maker.js / demos / js / exoPanel.js View on Github external
function exoPanel(width, height, holeRadius, rim, fillet) {

  var domeRadius = rim + holeRadius;

  makerjs.$(new makerjs.models.Dome(2 * domeRadius, 2 * domeRadius, domeRadius))
    .moveRelative([0, - domeRadius])
    .rotate(135)
    .addTo(this, 'dome1')
    .clone()
    .rotate(90)
    .addTo(this, 'dome2')
    .moveRelative([width, 0])
    .$reset()
    .clone()
    .rotate(270)
    .addTo(this, 'dome3')
    .moveRelative([0, height])
    .$reset()
    .clone()
    .rotate(180)
    .addTo(this, 'dome4')

makerjs

Maker.js, a Microsoft Garage project, is a JavaScript library for creating and sharing modular line drawings for CNC and laser cutters.

Apache-2.0
Latest version published 7 months ago

Package Health Score

74 / 100
Full package analysis