Skip to content

Web/API/OffscreenCanvas/height 他1件を更新 #27385

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
37 changes: 37 additions & 0 deletions files/ja/web/api/offscreencanvas/height/index.md
Original file line number Diff line number Diff line change
@@ -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")}}: このプロパティの所属先のインターフェイス
37 changes: 37 additions & 0 deletions files/ja/web/api/offscreencanvas/width/index.md
Original file line number Diff line number Diff line change
@@ -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")}}: このプロパティの所属先のインターフェイス