2019-08-03 15:03:33 +02:00
|
|
|
import { box } from './shared'
|
2019-01-27 12:54:18 +01:00
|
|
|
|
|
|
|
export default part => {
|
2019-08-03 15:03:33 +02:00
|
|
|
let { Point, points, Snippet, snippets } = part.shorthand()
|
2019-01-27 12:54:18 +01:00
|
|
|
|
|
|
|
points.A = new Point(25, 25)
|
2019-08-03 15:03:33 +02:00
|
|
|
.attr('data-text', 'Point A')
|
|
|
|
.attr('data-text-class', 'text-xl')
|
|
|
|
.attr('data-text-fill-opacity', '0.5')
|
|
|
|
points.B = points.A.clone().attr('data-text', 'Point B')
|
2019-01-27 12:54:18 +01:00
|
|
|
|
2019-08-03 15:03:33 +02:00
|
|
|
snippets.x = new Snippet('notch', points.A)
|
2019-01-27 12:54:18 +01:00
|
|
|
|
2019-08-03 15:03:33 +02:00
|
|
|
return box(part)
|
|
|
|
}
|