Currently one of the most painful changes you can make in a Squib project is to change card sizes. This throws off all your x-y coordinates and you end up having to redo your layout file.
So let's make that change easier, with a command-line interface called squib scale (or something) that takes in a layout file and scales it from one dimension to another.
I'm thinking this will need to be interactive like the squib make_sprue feature. You'll need to make some choices along the way.
I can picture a couple of strategies for scaling a layout file:
The most naive would be to ask what the initial dimensions were (e.g. 825x1125), and what you want to scale them to (1650x1125). Then take the dimension scales (2x vertically and 1x horiztonally in this example) and multiply all x, y, width, and height against that. That will give you a rough change and then you can tweak from there.
Or you can have things "pinned" to a side and stretch the middle. So like if x < 825/2 then keep it and scale the width, and if x >= 825/2 then keep it the same distance from the right-hand edge and keep the width. That way you're stretching things in the middle to make room.
Or ask interactively for each style, with plain-english answers for each
Currently one of the most painful changes you can make in a Squib project is to change card sizes. This throws off all your x-y coordinates and you end up having to redo your layout file.
So let's make that change easier, with a command-line interface called
squib scale
(or something) that takes in a layout file and scales it from one dimension to another.I'm thinking this will need to be interactive like the
squib make_sprue
feature. You'll need to make some choices along the way.I can picture a couple of strategies for scaling a layout file:
x
,y
,width
, andheight
against that. That will give you a rough change and then you can tweak from there.x < 825/2
then keep it and scale the width, and ifx >= 825/2
then keep it the same distance from the right-hand edge and keep the width. That way you're stretching things in the middle to make room.