A 3D viewer is great on a laptop. On the living-room floor, with a kid and a pile of bricks, you want paper. So every guide on Mister Blocks prints as a real instruction booklet, comes as a PDF, and works offline once you've opened it.
This is how that works, with no PDF library and no server-side rendering of 3D.
The booklet is just a web page
/builds/<name>-lego-build/print lays the guide out like a LEGO booklet: a cover, one step per page (the number, a blue box of the pieces it needs, what to do, and the model so far as big as the page allows), then the parts list.
The trick that makes it look the same on screen and on paper: everything inside a page is sized in cqw , 1% of the sheet's width (CSS container query units). The sheet on screen and the sheet in the print dialog are the same shape, so the text and pictures land in the same places.
Paper size is a toggle. US Letter landscape is the default and A4 is one click away.…