OffscreenCanvas: height Eigenschaft

Baseline 2023
Newly 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 GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
height

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

Siehe auch