Skip to content

Park pinned objects at their anchors while modals are open (suppressPins API) - #30

Merged
daedeloth merged 6 commits into
masterfrom
feature/pin-suppression-parking
Jul 15, 2026
Merged

Park pinned objects at their anchors while modals are open (suppressPins API)#30
daedeloth merged 6 commits into
masterfrom
feature/pin-suppression-parking

Conversation

@daedeloth

Copy link
Copy Markdown
Member

Summary

  • stage._pinsHidden now parks pinned objects back into their anchors (regular spot, regular z-order under the modal) instead of hiding their wrappers; they lift back when suppression ends.
  • New attachment-based suppressor API: easelbone.suppressPins(obj) registers a modal-like display object — while it is attached to a stage, that stage's pins are parked. Auto-releases when the object leaves the stage; easelbone.releasePins(obj) for modals that linger on stage after closing.
  • Nests across multiple modals, expires never-attached registrations after ~5s (same grace as _deferPin), and keeps writing stage._pinsHidden so older easelbone copies sharing the stage stay protocol-compatible.
  • Includes the dist rebuild and the Release v1.2.11 bump/tag.

Testing

  • New Playwright suite: npm run test:pin:suppress (fixture tools/fixtures/pin-suppress.html) — parking via manual flag, pin-while-suppressed, attach/detach auto-release, nesting, explicit release, grace expiry.
  • Existing smoke example-page failures (16) are pre-existing on master, unrelated to this change.
  • test:baseline, test:pin, test:pin:placeholder all pass.

Consumed by CatLabInteractive/catlab-remote-library PR: pin-suppression-parking.

🤖 Generated with Claude Code

While stage._pinsHidden is set, pinned objects now drop back into their
regular spot in the display list (under an open modal) instead of being
hidden, and lift back when the flag clears.
…ins)

Register a modal's container with easelbone.suppressPins(obj): while it
is on the stage, pins are parked at their anchors; they lift back when
the modal leaves (or on explicit releasePins). Nests across multiple
modals, expires never-attached registrations after ~5s, and writes
stage._pinsHidden for cross-bundle compatibility.
@github-actions

Copy link
Copy Markdown

📦 PR Preview deployed!

Examples are available at:

@daedeloth
daedeloth merged commit 8e78b38 into master Jul 15, 2026
2 checks passed
@daedeloth
daedeloth deleted the feature/pin-suppression-parking branch July 15, 2026 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant