瀏覽代碼

Docs: add <ar-canvas-source>

customisations
alemart 7 月之前
父節點
當前提交
9e75f11fef
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8
    0
      docs/api/plugin-aframe.md

+ 8
- 0
docs/api/plugin-aframe.md 查看文件

@@ -219,6 +219,14 @@ The `<ar-sources>` primitive is used to specify the [sources of data](./source.m
219 219
 </a-assets>
220 220
 ```
221 221
 
222
+### ar-canvas-source
223
+
224
+`<ar-canvas-source>` sets up a [CanvasSource](./canvas-source.md), which is a source of data linked to a `<canvas>` element. It must be a direct child of `<ar-sources>`.
225
+
226
+**Properties**
227
+
228
+* `canvas: selector`. A selector of a `<canvas>` element.
229
+
222 230
 ### ar-pointer-source
223 231
 
224 232
 `<ar-pointer-source>` sets up a [PointerSource](./pointer-source.md), a source of pointer-based input. It must be a direct child of `<ar-sources>`. See also: [ar-pointer-tracker](#ar-pointer-tracker).

Loading…
取消
儲存