Consider using ImageBitmapOptions for createImageBitmap
- Dominant language
- JavaScript
- Stars
- 15.7k
- Forks
- 3.9k
- Avg merge
- 4d 6h
- Merged PRs (30d)
- 34
Description
Got a heads-up from @pjcozzi. Looks like there will some way of seeing what createImageBitmap options are available. Consider using this in our createImageBitmap usage(which itself is not in cesium main yet, but has value when streaming image heavy models. See: https://github.com/AnalyticalGraphicsInc/cesium/issues/6624)
whatwg pr:
https://github.com/whatwg/html/pull/4248
From that commit:
> Constructs and returns a new ImageBitmapOptions dictionary whose attributes are
> initialized to the corresponding attributes of the options dictionary. Only those
> attributes which are recognized by the user agent are included in the returned dictionary. This
> allows web applications to detect which ImageBitmap creation options are supported.
Contributor guide
Research direction
Start by reading issue #6624 and the current createImageBitmap usage once it exists in Cesium, then review the linked WHATWG PR for ImageBitmapOptions feature detection. The issue does not name files or tests; done would require an agreed integration point and verified use of supported options.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100