Просмотр исходного кода

Docs: add <ar-canvas-source>

customisations
alemart 7 месяцев назад
Родитель
Сommit
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).

Загрузка…
Отмена
Сохранить