2021-10-17 18:26:00 +02:00
|
|
|
---
|
|
|
|
title: bnotch
|
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
The `bnotch` snippet is intended for notches at the back, or when you
|
|
|
|
need an alternative to the default `notch`.
|
|
|
|
|
2023-10-29 17:20:35 +01:00
|
|
|
It is provided by [plugin-annotations](/reference/plugins/annotations/), which is
|
|
|
|
part of [core-plugins](/reference/plugins/core) (so it is available by default).
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-10-02 18:04:20 +02:00
|
|
|
## Example
|
|
|
|
|
|
|
|
<Example caption="An example of the bnotch snippet">
|
2021-08-25 16:09:31 +02:00
|
|
|
```js
|
2022-10-02 18:04:20 +02:00
|
|
|
({ Point, Path, paths, Snippet, snippets, part }) => {
|
|
|
|
|
|
|
|
snippets.demo = new Snippet('bnotch', new Point(0,0))
|
|
|
|
|
|
|
|
// Prevent clipping
|
|
|
|
paths.diag = new Path()
|
|
|
|
.move(new Point(-50,-4))
|
|
|
|
.move(new Point(50,4))
|
|
|
|
|
|
|
|
return part
|
|
|
|
}
|
2021-08-25 16:09:31 +02:00
|
|
|
```
|
2022-10-02 18:04:20 +02:00
|
|
|
</Example>
|
2021-08-25 16:09:31 +02:00
|
|
|
|