- Howtos
- Common code challenges
- Adding points
Adding points
Points should be stored in the points
key of the object passed to your part’s
draft method. The constructor for points is available in the Point
key. You
can destructure them for easy access.
mjs
design/src/part
function draftPart = ({
Point,
points, part }) {
points.demo = new Point(0,0).addText('hi')
return part
}