1
0
Fork 0

wip(lab): Working on layout feature

This commit is contained in:
Joost De Cock 2022-02-25 08:30:03 +01:00
parent 9541fea78c
commit dd5599c5d6
9 changed files with 144 additions and 7 deletions

View file

@ -51,10 +51,10 @@ const pagesPlugin = (size='a4', orientation='portrait') => ({
points[`_pages__row${row}-col${col}-bl`] = new Point(x,y+h)
points[`_pages__row${row}-col${col}-circle`] = new Point(x+w/2,y+h/2-24)
.attr('data-circle', 42)
.attr('data-circle-class', 'stroke-4xl muted')
.attr('data-circle-class', 'stroke-4xl muted fabric')
points[`_pages__row${row}-col${col}-text`] = new Point(x+w/2,y+h/2)
.attr('data-text', `${count}`)
.attr('data-text-class', 'text-4xl center bold muted')
.attr('data-text-class', 'text-4xl center bold muted fill-fabric')
paths[`_pages__row${row}-col${col}`] = new Path()
.move(points[`_pages__row${row}-col${col}-tl`])