From b598325e21f9761198106a1e78b06b7b002399a4 Mon Sep 17 00:00:00 2001 From: MDN Date: Sat, 13 Nov 2021 00:48:29 +0000 Subject: [CRON] sync translated content --- files/ja/_redirects.txt | 1 + files/ja/_wikihistory.json | 12 +-- files/ja/conflicting/web/api/caches/index.html | 60 +++++++++++++++ .../api/serviceworkerglobalscope/caches/index.html | 59 --------------- files/ko/_redirects.txt | 1 + files/ko/_wikihistory.json | 12 +-- .../imagecapture/getphotocapabilities/index.html | 85 ++++++++++++++++++++++ files/ko/web/api/photocapabilities/index.html | 84 --------------------- files/zh-cn/_redirects.txt | 1 + files/zh-cn/_wikihistory.json | 12 +-- files/zh-cn/conflicting/web/api/caches/index.html | 53 ++++++++++++++ .../api/serviceworkerglobalscope/caches/index.html | 52 ------------- 12 files changed, 219 insertions(+), 213 deletions(-) create mode 100644 files/ja/conflicting/web/api/caches/index.html delete mode 100644 files/ja/web/api/serviceworkerglobalscope/caches/index.html create mode 100644 files/ko/conflicting/web/api/imagecapture/getphotocapabilities/index.html delete mode 100644 files/ko/web/api/photocapabilities/index.html create mode 100644 files/zh-cn/conflicting/web/api/caches/index.html delete mode 100644 files/zh-cn/web/api/serviceworkerglobalscope/caches/index.html diff --git a/files/ja/_redirects.txt b/files/ja/_redirects.txt index 1214001898..d969d0f561 100644 --- a/files/ja/_redirects.txt +++ b/files/ja/_redirects.txt @@ -3248,6 +3248,7 @@ /ja/docs/Web/API/SVGTests /ja/docs/orphaned/Web/API/SVGTests /ja/docs/Web/API/SVGTransformable /ja/docs/orphaned/Web/API/SVGTransformable /ja/docs/Web/API/ScrollToOptions /ja/docs/conflicting/Web/API/Window/scroll +/ja/docs/Web/API/ServiceWorkerGlobalScope/caches /ja/docs/conflicting/Web/API/caches /ja/docs/Web/API/ServiceWorker_API /ja/docs/Web/API/Service_Worker_API /ja/docs/Web/API/ServiceWorker_API/Using_Service_Workers /ja/docs/Web/API/Service_Worker_API/Using_Service_Workers /ja/docs/Web/API/Slotable /ja/docs/Web/API/Element diff --git a/files/ja/_wikihistory.json b/files/ja/_wikihistory.json index 98095b7958..022720a210 100644 --- a/files/ja/_wikihistory.json +++ b/files/ja/_wikihistory.json @@ -21470,12 +21470,6 @@ "Wind1808" ] }, - "Web/API/ServiceWorkerGlobalScope/caches": { - "modified": "2020-10-15T22:29:46.631Z", - "contributors": [ - "Wind1808" - ] - }, "Web/API/ServiceWorkerGlobalScope/clients": { "modified": "2019-03-23T22:21:03.744Z", "contributors": [ @@ -48605,6 +48599,12 @@ "Wind1808" ] }, + "conflicting/Web/API/caches": { + "modified": "2020-10-15T22:29:46.631Z", + "contributors": [ + "Wind1808" + ] + }, "conflicting/Web/CSS/Media_Queries/Using_media_queries": { "modified": "2020-05-24T03:45:53.652Z", "contributors": [ diff --git a/files/ja/conflicting/web/api/caches/index.html b/files/ja/conflicting/web/api/caches/index.html new file mode 100644 index 0000000000..4379e332cf --- /dev/null +++ b/files/ja/conflicting/web/api/caches/index.html @@ -0,0 +1,60 @@ +--- +title: ServiceWorkerGlobalScope.caches +slug: conflicting/Web/API/caches +tags: + - API + - Property + - Reference + - Service Workers + - ServiceWorker + - ServiceWorkerGlobalScope +translation_of: Web/API/ServiceWorkerGlobalScope/caches +original_slug: Web/API/ServiceWorkerGlobalScope/caches +--- +

{{APIRef("Service Workers API")}}

+ +

{{domxref("ServiceWorkerGlobalScope")}} インターフェイスの caches 読み取り専用プロパティは、サービスワーカーに関連する {{domxref("CacheStorage")}} オブジェクトを返します。

+ +

構文

+ +
var myCacheStorage = self.caches;
+
+ +

+ +

{{domxref("CacheStorage")}} オブジェクト。

+ +

仕様

+ + + + + + + + + + + + + + +
仕様状態コメント
{{SpecName('Service Workers', '#global-caches', 'ServiceWorkerGlobalScope.caches')}}{{Spec2('Service Workers')}}初期定義
+ +

ブラウザーの互換性

+ +
+ + +

{{Compat("api.ServiceWorkerGlobalScope.caches")}}

+
+ +

関連情報

+ + diff --git a/files/ja/web/api/serviceworkerglobalscope/caches/index.html b/files/ja/web/api/serviceworkerglobalscope/caches/index.html deleted file mode 100644 index 5d670ef2ec..0000000000 --- a/files/ja/web/api/serviceworkerglobalscope/caches/index.html +++ /dev/null @@ -1,59 +0,0 @@ ---- -title: ServiceWorkerGlobalScope.caches -slug: Web/API/ServiceWorkerGlobalScope/caches -tags: - - API - - Property - - Reference - - Service Workers - - ServiceWorker - - ServiceWorkerGlobalScope -translation_of: Web/API/ServiceWorkerGlobalScope/caches ---- -

{{APIRef("Service Workers API")}}

- -

{{domxref("ServiceWorkerGlobalScope")}} インターフェイスの caches 読み取り専用プロパティは、サービスワーカーに関連する {{domxref("CacheStorage")}} オブジェクトを返します。

- -

構文

- -
var myCacheStorage = self.caches;
-
- -

- -

{{domxref("CacheStorage")}} オブジェクト。

- -

仕様

- - - - - - - - - - - - - - -
仕様状態コメント
{{SpecName('Service Workers', '#global-caches', 'ServiceWorkerGlobalScope.caches')}}{{Spec2('Service Workers')}}初期定義
- -

ブラウザーの互換性

- -
- - -

{{Compat("api.ServiceWorkerGlobalScope.caches")}}

-
- -

関連情報

- - diff --git a/files/ko/_redirects.txt b/files/ko/_redirects.txt index bd94f8f66a..0f1eac0004 100644 --- a/files/ko/_redirects.txt +++ b/files/ko/_redirects.txt @@ -472,6 +472,7 @@ /ko/docs/Web/API/Node/innerText /ko/docs/Web/API/HTMLElement/innerText /ko/docs/Web/API/Notification.permission /ko/docs/Web/API/Notification/permission /ko/docs/Web/API/ParentNode/childElementCount /ko/docs/Web/API/Element/childElementCount +/ko/docs/Web/API/PhotoCapabilities /ko/docs/conflicting/Web/API/ImageCapture/getPhotoCapabilities /ko/docs/Web/API/Position /ko/docs/Web/API/GeolocationPosition /ko/docs/Web/API/PositionOptions /ko/docs/conflicting/Web/API/Geolocation/getCurrentPosition /ko/docs/Web/API/RTCConfiguration /ko/docs/conflicting/Web/API/RTCPeerConnection/RTCPeerConnection diff --git a/files/ko/_wikihistory.json b/files/ko/_wikihistory.json index 965b2534dc..28ff70b524 100644 --- a/files/ko/_wikihistory.json +++ b/files/ko/_wikihistory.json @@ -6073,12 +6073,6 @@ "ESnark" ] }, - "Web/API/PhotoCapabilities": { - "modified": "2020-10-15T22:27:09.730Z", - "contributors": [ - "alattalatta" - ] - }, "Web/API/Plugin": { "modified": "2019-03-23T22:11:26.376Z", "contributors": [ @@ -17522,6 +17516,12 @@ "Saem" ] }, + "conflicting/Web/API/ImageCapture/getPhotoCapabilities": { + "modified": "2020-10-15T22:27:09.730Z", + "contributors": [ + "alattalatta" + ] + }, "conflicting/Web/API/RTCPeerConnection/RTCPeerConnection": { "modified": "2020-10-15T22:21:34.262Z", "contributors": [ diff --git a/files/ko/conflicting/web/api/imagecapture/getphotocapabilities/index.html b/files/ko/conflicting/web/api/imagecapture/getphotocapabilities/index.html new file mode 100644 index 0000000000..5115b82f65 --- /dev/null +++ b/files/ko/conflicting/web/api/imagecapture/getphotocapabilities/index.html @@ -0,0 +1,85 @@ +--- +title: PhotoCapabilities +slug: conflicting/Web/API/ImageCapture/getPhotoCapabilities +tags: + - API + - Experimental + - Interface + - MediaStream Image Capture API + - PhotoCapabilities + - Reference +translation_of: Web/API/PhotoCapabilities +original_slug: Web/API/PhotoCapabilities +--- +
{{APIRef("MediaStream Image")}}
+ +

MediaStream Image Capture APIPhotoCapabilities 인터페이스는 장착된 촬영 장치에서 사용 가능한 설정 옵션을 제공합니다. PhotoCapabilities 객체는 {{domxref("ImageCapture.getPhotoCapabilities()")}}를 사용해 가져올 수 있습니다..

+ +

속성

+ +
+
{{domxref("PhotoCapabilities.redEyeReduction")}} {{readonlyinline}}
+
장치의 적목 현상 감소 기능 적용 여부를 나타내는 열거형 값을 반환합니다. 가능한 값은 "never", "always", "controllable"로, "controllable"이어야 설정 가능합니다.
+
{{domxref("PhotoCapabilities.imageHeight")}} {{readonlyinline}}
+
{{glossary("user agent", "사용자 에이전트")}}가 지원하는 이미지 높이를 나타내는 {{domxref("MediaSettingsRange")}} 객체를 반환합니다.
+
{{domxref("PhotoCapabilities.imageWidth")}} {{readonlyinline}}
+
{{glossary("user agent", "사용자 에이전트")}}가 지원하는 이미지 너비를 나타내는 {{domxref("MediaSettingsRange")}} 객체를 반환합니다.
+
{{domxref("PhotoCapabilities.fillLightMode")}} {{readonlyinline}}
+
사용 가능한 플래시 옵션을 담은 배열을 반환합니다. 가능한 값은 auto, off, flash입니다.
+
+ +

예제

+ +

다음 예제는 Chrome의 Image Capture / Photo Resolution Sample에서 가져온 코드로, {{domxref("ImageCapture.getPhotoCapabilities", "getPhotoCapabilities()")}}를 사용해 범위 입력 칸의 크기를 수정합니다. 또한 장치의 {{domxref("MediaStream")}}에서 가져온 {{domxref("MediaStreamTrack")}} 객체를 사용해 {{domxref("ImageCapture")}} 객체를 생성하는 부분도 포함하고 있습니다.

+ +
const input = document.querySelector('input[type="range"]');
+
+var imageCapture;
+
+navigator.mediaDevices.getUserMedia({video: true})
+.then(mediaStream => {
+  document.querySelector('video').srcObject = mediaStream;
+
+  const track = mediaStream.getVideoTracks()[0];
+  imageCapture = new ImageCapture(track);
+
+  return imageCapture.getPhotoCapabilities();
+})
+.then(photoCapabilities => {
+  const settings = imageCapture.track.getSettings();
+
+  input.min = photoCapabilities.imageWidth.min;
+  input.max = photoCapabilities.imageWidth.max;
+  input.step = photoCapabilities.imageWidth.step;
+
+  return imageCapture.getPhotoSettings();
+})
+.then(photoSettings => {
+  input.value = photoSettings.imageWidth;
+})
+.catch(error => console.log('Argh!', error.name || error));
+ +

명세

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('MediaStream Image','#photocapabilities-section','PotoCapabilities')}}{{Spec2('MediaStream Image')}}Initial definition.
+ +

브라우저 호환성

+ +
+ + +

{{Compat("api.PhotoCapabilities")}}

+
diff --git a/files/ko/web/api/photocapabilities/index.html b/files/ko/web/api/photocapabilities/index.html deleted file mode 100644 index 5cf3842b87..0000000000 --- a/files/ko/web/api/photocapabilities/index.html +++ /dev/null @@ -1,84 +0,0 @@ ---- -title: PhotoCapabilities -slug: Web/API/PhotoCapabilities -tags: - - API - - Experimental - - Interface - - MediaStream Image Capture API - - PhotoCapabilities - - Reference -translation_of: Web/API/PhotoCapabilities ---- -
{{APIRef("MediaStream Image")}}
- -

MediaStream Image Capture APIPhotoCapabilities 인터페이스는 장착된 촬영 장치에서 사용 가능한 설정 옵션을 제공합니다. PhotoCapabilities 객체는 {{domxref("ImageCapture.getPhotoCapabilities()")}}를 사용해 가져올 수 있습니다..

- -

속성

- -
-
{{domxref("PhotoCapabilities.redEyeReduction")}} {{readonlyinline}}
-
장치의 적목 현상 감소 기능 적용 여부를 나타내는 열거형 값을 반환합니다. 가능한 값은 "never", "always", "controllable"로, "controllable"이어야 설정 가능합니다.
-
{{domxref("PhotoCapabilities.imageHeight")}} {{readonlyinline}}
-
{{glossary("user agent", "사용자 에이전트")}}가 지원하는 이미지 높이를 나타내는 {{domxref("MediaSettingsRange")}} 객체를 반환합니다.
-
{{domxref("PhotoCapabilities.imageWidth")}} {{readonlyinline}}
-
{{glossary("user agent", "사용자 에이전트")}}가 지원하는 이미지 너비를 나타내는 {{domxref("MediaSettingsRange")}} 객체를 반환합니다.
-
{{domxref("PhotoCapabilities.fillLightMode")}} {{readonlyinline}}
-
사용 가능한 플래시 옵션을 담은 배열을 반환합니다. 가능한 값은 auto, off, flash입니다.
-
- -

예제

- -

다음 예제는 Chrome의 Image Capture / Photo Resolution Sample에서 가져온 코드로, {{domxref("ImageCapture.getPhotoCapabilities", "getPhotoCapabilities()")}}를 사용해 범위 입력 칸의 크기를 수정합니다. 또한 장치의 {{domxref("MediaStream")}}에서 가져온 {{domxref("MediaStreamTrack")}} 객체를 사용해 {{domxref("ImageCapture")}} 객체를 생성하는 부분도 포함하고 있습니다.

- -
const input = document.querySelector('input[type="range"]');
-
-var imageCapture;
-
-navigator.mediaDevices.getUserMedia({video: true})
-.then(mediaStream => {
-  document.querySelector('video').srcObject = mediaStream;
-
-  const track = mediaStream.getVideoTracks()[0];
-  imageCapture = new ImageCapture(track);
-
-  return imageCapture.getPhotoCapabilities();
-})
-.then(photoCapabilities => {
-  const settings = imageCapture.track.getSettings();
-
-  input.min = photoCapabilities.imageWidth.min;
-  input.max = photoCapabilities.imageWidth.max;
-  input.step = photoCapabilities.imageWidth.step;
-
-  return imageCapture.getPhotoSettings();
-})
-.then(photoSettings => {
-  input.value = photoSettings.imageWidth;
-})
-.catch(error => console.log('Argh!', error.name || error));
- -

명세

- - - - - - - - - - - - - - -
SpecificationStatusComment
{{SpecName('MediaStream Image','#photocapabilities-section','PotoCapabilities')}}{{Spec2('MediaStream Image')}}Initial definition.
- -

브라우저 호환성

- -
- - -

{{Compat("api.PhotoCapabilities")}}

-
diff --git a/files/zh-cn/_redirects.txt b/files/zh-cn/_redirects.txt index bd9da62df6..8c20e77a7b 100644 --- a/files/zh-cn/_redirects.txt +++ b/files/zh-cn/_redirects.txt @@ -1477,6 +1477,7 @@ /zh-CN/docs/Web/API/Selection.isCollapsed /zh-CN/docs/Web/API/Selection/isCollapsed /zh-CN/docs/Web/API/Selection.removeRange /zh-CN/docs/Web/API/Selection/removeRange /zh-CN/docs/Web/API/Selection/从Document中删除 /zh-CN/docs/Web/API/Selection/deleteFromDocument +/zh-CN/docs/Web/API/ServiceWorkerGlobalScope/caches /zh-CN/docs/conflicting/Web/API/caches /zh-CN/docs/Web/API/StorageEstimate /zh-CN/docs/conflicting/Web/API/StorageManager/estimate /zh-CN/docs/Web/API/Streams_API/使用可读文件流 /zh-CN/docs/Web/API/Streams_API/Using_readable_streams /zh-CN/docs/Web/API/Streams_API/概念 /zh-CN/docs/Web/API/Streams_API/Concepts diff --git a/files/zh-cn/_wikihistory.json b/files/zh-cn/_wikihistory.json index 5aa50df6f9..d92c883026 100644 --- a/files/zh-cn/_wikihistory.json +++ b/files/zh-cn/_wikihistory.json @@ -19903,12 +19903,6 @@ "TimLuo465" ] }, - "Web/API/ServiceWorkerGlobalScope/caches": { - "modified": "2020-10-28T03:25:10.149Z", - "contributors": [ - "peter006qi" - ] - }, "Web/API/ServiceWorkerRegistration": { "modified": "2019-03-23T22:12:58.327Z", "contributors": [ @@ -47333,6 +47327,12 @@ "AlexChao" ] }, + "conflicting/Web/API/caches": { + "modified": "2020-10-28T03:25:10.149Z", + "contributors": [ + "peter006qi" + ] + }, "conflicting/Web/API_dd04ca1265cb79b990b8120e5f5070d3": { "modified": "2019-03-18T20:42:39.198Z", "contributors": [ diff --git a/files/zh-cn/conflicting/web/api/caches/index.html b/files/zh-cn/conflicting/web/api/caches/index.html new file mode 100644 index 0000000000..0da1e450bc --- /dev/null +++ b/files/zh-cn/conflicting/web/api/caches/index.html @@ -0,0 +1,53 @@ +--- +title: ServiceWorkerGlobalScope.caches +slug: conflicting/Web/API/caches +translation_of: Web/API/ServiceWorkerGlobalScope/caches +original_slug: Web/API/ServiceWorkerGlobalScope/caches +--- +

{{APIRef("Service Workers API")}}

+ +

caches 是一个 {{domxref("ServiceWorkerGlobalScope")}} 接口的只读属性,返回与当前service worker相关联的{{domxref("CacheStorage")}}对象。

+ +

语法

+ +
var myCacheStorage = self.caches;
+
+ +

返回值

+ +

一个 {{domxref("CacheStorage")}} 对象。

+ +

规范

+ + + + + + + + + + + + + + +
规范状态备注
{{SpecName('Service Workers', '#global-caches', 'ServiceWorkerGlobalScope.caches')}}{{Spec2('Service Workers')}}Initial definition.
+ +

浏览器兼容性

+ +
+ + +

{{Compat("api.ServiceWorkerGlobalScope.caches")}}

+
+ +

参见

+ + diff --git a/files/zh-cn/web/api/serviceworkerglobalscope/caches/index.html b/files/zh-cn/web/api/serviceworkerglobalscope/caches/index.html deleted file mode 100644 index bead85ce7c..0000000000 --- a/files/zh-cn/web/api/serviceworkerglobalscope/caches/index.html +++ /dev/null @@ -1,52 +0,0 @@ ---- -title: ServiceWorkerGlobalScope.caches -slug: Web/API/ServiceWorkerGlobalScope/caches -translation_of: Web/API/ServiceWorkerGlobalScope/caches ---- -

{{APIRef("Service Workers API")}}

- -

caches 是一个 {{domxref("ServiceWorkerGlobalScope")}} 接口的只读属性,返回与当前service worker相关联的{{domxref("CacheStorage")}}对象。

- -

语法

- -
var myCacheStorage = self.caches;
-
- -

返回值

- -

一个 {{domxref("CacheStorage")}} 对象。

- -

规范

- - - - - - - - - - - - - - -
规范状态备注
{{SpecName('Service Workers', '#global-caches', 'ServiceWorkerGlobalScope.caches')}}{{Spec2('Service Workers')}}Initial definition.
- -

浏览器兼容性

- -
- - -

{{Compat("api.ServiceWorkerGlobalScope.caches")}}

-
- -

参见

- - -- cgit v1.2.3-54-g00ecf