Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add {{AvailableInWorkers}} for ImageBitmap and content update #36207

Merged
merged 2 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion files/en-us/web/api/imagebitmap/close/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ page-type: web-api-instance-method
browser-compat: api.ImageBitmap.close
---

{{APIRef("Canvas API")}}
{{APIRef("Canvas API")}}{{AvailableInWorkers}}

The **`ImageBitmap.close()`**
method disposes of all graphical resources associated with an `ImageBitmap`.
Expand Down
8 changes: 6 additions & 2 deletions files/en-us/web/api/imagebitmap/height/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ page-type: web-api-instance-property
browser-compat: api.ImageBitmap.height
---

{{APIRef("Canvas API")}}
{{APIRef("Canvas API")}}{{AvailableInWorkers}}

The read-only **`ImageBitmap.height`** property returns the {{domxref("ImageBitmap")}} object's height in CSS pixels.
The **`ImageBitmap.height`** read-only property returns the {{domxref("ImageBitmap")}} object's height in CSS pixels.

## Value

A number represents the {{domxref("ImageBitmap")}} object's height in CSS pixels.

## Specifications

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/imagebitmap/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ page-type: web-api-interface
browser-compat: api.ImageBitmap
---

{{APIRef("Canvas API")}}
{{APIRef("Canvas API")}}{{AvailableInWorkers}}

The **`ImageBitmap`** interface represents a bitmap image which can be drawn to a {{HTMLElement("canvas")}} without undue latency. It can be created from a variety of source objects using the {{domxref("Window.createImageBitmap()")}} or {{domxref("WorkerGlobalScope.createImageBitmap()")}} factory method. `ImageBitmap` provides an asynchronous and resource efficient pathway to prepare textures for rendering in WebGL.

Expand Down
8 changes: 6 additions & 2 deletions files/en-us/web/api/imagebitmap/width/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ page-type: web-api-instance-property
browser-compat: api.ImageBitmap.width
---

{{APIRef("Canvas API")}}
{{APIRef("Canvas API")}}{{AvailableInWorkers}}

The read-only **`ImageBitmap.width`** property returns the {{domxref("ImageBitmap")}} object's width in CSS pixels.
The **`ImageBitmap.width`** read-only property returns the {{domxref("ImageBitmap")}} object's width in CSS pixels.

## Value

A number represents the {{domxref("ImageBitmap")}} object's width in CSS pixels.

## Specifications

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ page-type: web-api-instance-property
browser-compat: api.ImageBitmapRenderingContext.canvas
---

{{APIRef}}
{{APIRef("Canvas API")}}{{AvailableInWorkers}}

The **`ImageBitmapRenderingContext.canvas`** property, part of the
The **`ImageBitmapRenderingContext.canvas`** read-only property, part of the
skyclouds2001 marked this conversation as resolved.
Show resolved Hide resolved
[Canvas API](/en-US/docs/Web/API/Canvas_API), is a read-only reference to the
{{domxref("HTMLCanvasElement")}} or {{domxref("OffscreenCanvas")}} object that is associated with the given context.

Expand Down