New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

jsxcad

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsxcad

JSXCAD is a new way of "writing" 3DCAD like a code. It offers familiar JSX syntax that is transpiling into [OpenJSCAD](https://github.com/jscad/OpenJSCAD.org).

latest
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

Logo

JSXCAD

JSXCAD is a new way of "writing" 3DCAD like a code. It offers familiar JSX syntax that is transpiling into OpenJSCAD.

Conversion

Users beware: JSXCAD is under the alpha stage. Many APIs are missing. Please do not attempt to deploy it on your production environment unless you are fully aware of what it means.

Install

Install jsxcad via npm.

npm install -g jsxcad

Usage

Write your 3D model and save it as logo.jsx.

import JSXCAD, {Union, Difference, Intersection, Cube, Sphere} from 'jsxcad';

const OpenJSCADLogo = (
  <>
    <Union>
      <Difference>
        <Cube size={3} center={true} />
        <Sphere r={2} center={true} />
      </Difference>
      <Intersection>
        <Sphere r={1.3} center={true} />
        <Cube size={2.1} center={true} />
      </Intersection>
    </Union>
  </>
);

export default JSXCAD.render(OpenJSCADLogo);

Compile logo.jsx with jsxcad command.

jsxcad -f stl -o ./logo.stl ./logo.jsx

Now you got logo.stl!

FAQs

Package last updated on 30 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts