OffscreenCanvas: height Eigenschaft
Baseline 2023Newly available
Since March 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
Hinweis: Diese Funktion ist in Web Workers verfügbar.
Die height
-Eigenschaft gibt die Höhe eines OffscreenCanvas
-Objekts zurück und legt diese fest.
Wert
Beispiele
Erstellen einer neuen Offscreen-Leinwand und Zurückgeben oder Festlegen der Höhe der Offscreen-Leinwand:
js
const offscreen = new OffscreenCanvas(256, 256);
offscreen.height; // 256
offscreen.height = 512;
Spezifikationen
Specification |
---|
HTML # dom-offscreencanvas-height-dev |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
height |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Siehe auch
OffscreenCanvas
, die Schnittstelle, zu der diese Eigenschaft gehört.