fix(docs): Add paths to prevent Example clipping
This commit is contained in:
parent
630908519c
commit
1ba6fc4e7f
2 changed files with 10 additions and 0 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue