From e47747b53fc043b0e9b962ae3a37b02c1abd8c78 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Fri, 23 May 2025 23:53:59 +0900 Subject: [PATCH] =?UTF-8?q?2025/03/11=20=E6=99=82=E7=82=B9=E3=81=AE?= =?UTF-8?q?=E8=8B=B1=E8=AA=9E=E7=89=88=E3=81=AB=E5=90=8C=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/api/offscreencanvas/height/index.md | 37 +++++++++++++++++++ .../ja/web/api/offscreencanvas/width/index.md | 37 +++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 files/ja/web/api/offscreencanvas/height/index.md create mode 100644 files/ja/web/api/offscreencanvas/width/index.md diff --git a/files/ja/web/api/offscreencanvas/height/index.md b/files/ja/web/api/offscreencanvas/height/index.md new file mode 100644 index 00000000000000..82518f2b0ff7d5 --- /dev/null +++ b/files/ja/web/api/offscreencanvas/height/index.md @@ -0,0 +1,37 @@ +--- +title: "OffscreenCanvas: height プロパティ" +short-title: height +slug: Web/API/OffscreenCanvas/height +l10n: + sourceCommit: d666d5ed812b56cbc9c6cba853494976da1f1dd2 +--- + +{{APIRef("Canvas API")}}{{AvailableInWorkers}} + +**`height`** プロパティは、 {{domxref("OffscreenCanvas")}} オブジェクトの幅を返したり設定したりします。 + +## 値 + +このオフスクリーンキャンバスの高さを CSS ピクセル数で表す正の整数です。 + +## 例 + +新しいオフスクリーンキャンバスを作成し、オフスクリーンキャンバスの高さを返し、または設定します。 + +```js +const offscreen = new OffscreenCanvas(256, 256); +offscreen.height; // 256 +offscreen.height = 512; +``` + +## 仕様書 + +{{Specifications}} + +## ブラウザーの互換性 + +{{Compat}} + +## 関連情報 + +- {{domxref("OffscreenCanvas")}}: このプロパティの所属先のインターフェイス diff --git a/files/ja/web/api/offscreencanvas/width/index.md b/files/ja/web/api/offscreencanvas/width/index.md new file mode 100644 index 00000000000000..1397a43b1b2246 --- /dev/null +++ b/files/ja/web/api/offscreencanvas/width/index.md @@ -0,0 +1,37 @@ +--- +title: "OffscreenCanvas: width プロパティ" +short-title: width +slug: Web/API/OffscreenCanvas/width +l10n: + sourceCommit: d666d5ed812b56cbc9c6cba853494976da1f1dd2 +--- + +{{APIRef("Canvas API")}}{{AvailableInWorkers}} + +**`width`** プロパティは、 {{domxref("OffscreenCanvas")}} オブジェクトの幅を返したり設定したりします。 + +## 値 + +このオフスクリーンキャンバスの幅を CSS ピクセル数で表す正の整数です。 + +## 例 + +新しいオフスクリーンキャンバスを作成し、オフスクリーンキャンバスの幅を返し、または設定します。 + +```js +const offscreen = new OffscreenCanvas(256, 256); +offscreen.width; // 256 +offscreen.width = 512; +``` + +## 仕様書 + +{{Specifications}} + +## ブラウザーの互換性 + +{{Compat}} + +## 関連情報 + +- {{domxref("OffscreenCanvas")}}: このプロパティの所属先のインターフェイス