1
0
Fork 0

fix(docs): Add paths to prevent Example clipping

This commit is contained in:
Benjamin F 2022-12-09 21:23:35 -08:00
parent 630908519c
commit 1ba6fc4e7f
2 changed files with 10 additions and 0 deletions

View file

@ -22,6 +22,11 @@ Path path.move(Point to)
paths.noline = new Path().move(points.to) paths.noline = new Path().move(points.to)
// Prevents clipping
paths.diag = new Path()
.move(new Point(40,19))
.move(new Point(70,21))
return part return part
} }
``` ```

View file

@ -26,6 +26,11 @@ float point.dy(Point point)
.setClass("dotted") .setClass("dotted")
.setText(units(points.from.dy(points.to)), 'center') .setText(units(points.from.dy(points.to)), 'center')
// Prevents clipping
paths.diag = new Path()
.move(new Point(-10,40))
.move(new Point(60,10))
return part return part
} }
``` ```