pyboxbuilder.box.types.card_library.CardLibraryBox

class pyboxbuilder.box.types.card_library.CardLibraryBox[source]

Bases: BoxTypeBase

Card-library box type.

build_body(spec: BoxSpec) → Bosl2Solid[source]

Return a sleeve-fed card box: sliding channel plus a latch dimple.

build_lid(spec: BoxSpec, decoration: object = None) → Bosl2Solid[source]

Return the sliding face, latched shut so the cards cannot spill.

interior(spec: BoxSpec) → Interior[source]

Return the frame the box’s contents may occupy.

lid_rounded_edges(spec: BoxSpec) → list[Anchor][source]

Return only the end that finishes outside the box.

Its top edge and the two vertical corners there. The rest of the plate lives in the channel.

preferred_scoop_side(spec: BoxSpec) → ScoopSide[source]

Return a finger scoop belongs in the wall the lid leaves by.

The other three carry the lid — two hold its grooves — and a scoop cut into a groove takes away the bearing that keeps the lid straight.

slide_axis(spec: BoxSpec) → str[source]

Return X — this type’s lid always exits the right face.