Skip to content

Fix deprecation warning, Add getFilters function#33

Open
dgarciabriseno wants to merge 1 commit into
usnistgov:masterfrom
dgarciabriseno:master
Open

Fix deprecation warning, Add getFilters function#33
dgarciabriseno wants to merge 1 commit into
usnistgov:masterfrom
dgarciabriseno:master

Conversation

@dgarciabriseno
Copy link
Copy Markdown

I added a couple changes.

  1. event.image -> event.data. event.image is deprecated and fills the console with logs when accessed a lot.

  2. I added a method to retrieve existing filter options, I needed this so I can add filter new filters dynamically instead of overwriting existing filters.

usage:

let filters = viewer.getFilters()
filters.append({ /* new filter details */})
viewer.setFilterOptions({filters: filters})

@Aiosa
Copy link
Copy Markdown

Aiosa commented Sep 25, 2025

Hi, this repository is no longer maintained and will be superseeded by https://github.com/RationAI/OpenSeadragonFiltering, since the plugin does not conform to the v6 OSD API, which makes possible for the plugin to work with any drawer including WebGL.

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.

2 participants