1
0
Fork 0

feat(workbench): Show page count on layout

This commit is contained in:
Joost De Cock 2022-02-20 19:29:14 +01:00
parent 99232fe020
commit a4906eac64
4 changed files with 24 additions and 4 deletions

View file

@ -68,7 +68,8 @@ const pagesPlugin = (size='a4', orientation='portrait') => ({
}
y += h
}
this.pages = { cols, rows, count: (cols+1)*(rows+1) }
// Store page count in part
this.pages = { cols, rows, count: cols*rows }
}
}
})