lib( ) → any return require
strict
ids( ) → void
The ids of this collection's materials in the library, in library order.
isMine(id: string) → boolean
Whether a library id is one of this collection's materials.
| arg | type | description |
|---|
| id | string | |
galleryLayout(list: { any }, minSize: number) → void
The gallery page size and page that show every animatedMaterials material, and no other collection's, on one ring of materialLibraryKit's "all" view, for `list` = Materials.list(). Mirrors the core Gallery's pagination (categories kept together, a page broken before a group that would not fit).
| arg | type | description |
|---|
| list | { any } | |
| minSize | number | |
pageAt(size: number) → number
| arg | type | description |
|---|
| size | number | |
groups( ) → void
This collection's entries grouped as the core Gallery's ring lays them out: { { category, count } } in ring order.
gapSpots(gap: number, out: number?) → void
Where the open gaps of the collection's ring stand when AnimShowcase sets the ring's gaps to `gap` metres (its `ringGap`): one per category group (the core Gallery leaves a gap after each), each { position, yaw, category } with the gap's centre on the ground at the ring's radius plus `out` metres and the yaw (degrees) that turns a piece's local +Z toward the middle of the ring; and the ring's radius. Mirrors the core Gallery's ring layout: bay 0 straight ahead (+Z), each category's bays, then its gap.
| arg | type | description |
|---|
| gap | number | |
| out | number? | |
slotAt(focus: { number }, radius: number, angle: number, y: number) → void
| arg | type | description |
|---|
| focus | { number } | |
| radius | number | |
| angle | number | |
| y | number | |
stand(plaqueTop: number) → Stand
Where every bay of the collection stands on the stand: { slots = { [id] = { position, yaw (degrees, the bay's front toward the camera), row, elevation } }, rows, focus (the camera's spot on the ground), deck, banners, heading, top }. `plaqueTop` is the height of a bay's plaque top (the library's Gallery.PLAQUE_TOP).
| arg | type | description |
|---|
| plaqueTop | number | |
standSpot(i: number) → void
Where visitors arrive: on the deck, facing the stand, the i-th a little to the side of the one before. Returns position and yaw (degrees).
| arg | type | description |
|---|
| i | number | |
standYardSpots( ) → void
Where the demo yard's two halves stand with the stand: behind the deck, facing it (one turn away for a visitor on the deck). Each { position, yaw (degrees, the yard's front toward the deck) }.
facing(x: number, z: number) → number
| arg | type | description |
|---|
| x | number | |
| z | number | |