Skip to content

Route unknown legacy string keys on ImageViewGUI to extras#325

Merged
timholy merged 1 commit into
masterfrom
teh/more-shims
May 27, 2026
Merged

Route unknown legacy string keys on ImageViewGUI to extras#325
timholy merged 1 commit into
masterfrom
teh/more-shims

Conversation

@timholy

@timholy timholy commented May 27, 2026

Copy link
Copy Markdown
Member

Pre-0.13 code used the GUI Dict as scratch space for arbitrary keys (e.g. stashing a zoom_region observable). The 0.13 shim was strict and threw ArgumentError on unknown keys, which broke downstream packages that did this. Route unknown keys through the extras::Dict{Symbol,Any} field instead, preserving the scratch-space pattern through the deprecation cycle. Also define Base.haskey(::ImageViewGUI, ::AbstractString).

Mark ImageDisplay, ImageViewGUI, and ImageROI public so downstream packages can dispatch on them without tripping ExplicitImports.

Pre-0.13 code used the GUI `Dict` as scratch space for arbitrary keys
(e.g. stashing a `zoom_region` observable). The 0.13 shim was strict and
threw `ArgumentError` on unknown keys, which broke downstream packages
that did this. Route unknown keys through the `extras::Dict{Symbol,Any}`
field instead, preserving the scratch-space pattern through the
deprecation cycle. Also define `Base.haskey(::ImageViewGUI, ::AbstractString)`.

Mark `ImageDisplay`, `ImageViewGUI`, and `ImageROI` public so downstream
packages can dispatch on them without tripping ExplicitImports.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@timholy timholy merged commit 2265640 into master May 27, 2026
14 of 15 checks passed
@timholy timholy deleted the teh/more-shims branch May 27, 2026 20:32
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