GalleryScripts class

Opt-in ratio-packing masonry script for ArcaneGallery(packing: true).

Ported from Anim.al's animal_masonry.js engine. Its candidate-span scoring, first-fit packing, interior-hole sealing, and squared-off-bottom sealing retain their legacy behavior when optional area controls are omitted. The DOM keying follows the arcane contract and the installer self-initializes.

Self-initializes on load: it finds every [data-arcane-gallery] [data-packing="true"] container, observes each with a ResizeObserver, and watches the document with a single MutationObserver for newly-added containers/items and for Jaspr re-syncing inline styles. Repacks are rAF-coalesced. No per-container external call is needed; the engine is stateless and keys items off [data-arcane-gallery-item] + their data-ratio, sized against the render base's grid-auto-rows: 8px and gap: 0.75rem.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

code String
no setter