-
Notifications
You must be signed in to change notification settings - Fork 0
/
a-camera.d.ts
61 lines (60 loc) · 1.46 KB
/
a-camera.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/// <reference path="a-entity.d.ts" />
declare module JSX {
interface IntrinsicElements {
/**
* @see https://aframe.io/docs/1.3.0/primitives/a-camera.html
*
* The camera primitive determines what the user sees. We can change the viewport by modifying the camera entity’s position and rotation.
*
* @example
* ```html
* <a-scene>
* <a-box></a-box>
* <a-camera></a-camera>
* </a-scene>
* ```
*
* @attributes
* |Attribute|Description|Default Value|
* |:-|:-|:-|
* |far|camera.far|10000|
* |fov|camera.fov|80|
* |look-controls-enabled|look-controls.enabled|true|
* |near|camera.near|0.5|
* |reverse-mouse-drag|look-controls.reverseMouseDrag|false|
* |wasd-controls-enabled|wasd-controls.enabled|true|
*/
'a-camera': {
/**
* camera.far
* @default 10000
*/
'far'?: string;
/**
* camera.fov
* @default 80
*/
'fov'?: string;
/**
* look-controls.enabled
* @default true
*/
'look-controls-enabled'?: string;
/**
* camera.near
* @default 0.5
*/
'near'?: string;
/**
* look-controls.reverseMouseDrag
* @default false
*/
'reverse-mouse-drag'?: string;
/**
* wasd-controls.enabled
* @default true
*/
'wasd-controls-enabled'?: string;
} | JSX.IntrinsicElements['a-entity'];
}
}