-
Notifications
You must be signed in to change notification settings - Fork 0
/
a-sound.d.ts
58 lines (53 loc) · 1.17 KB
/
a-sound.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
/// <reference path="a-entity.d.ts" />
declare module JSX {
interface IntrinsicElements {
/**
* @see https://aframe.io/docs/1.3.0/primitives/a-sound.html
*
* @description The sound primitive wraps the sound component.
*
* @example
* ```html
* <a-scene>
* <a-sound src="src: url(click.mp3)" autoplay="true" position="0 2 5"></a-sound>
* </a-scene>
* ```
*
* @attributes
* |Attribute|Description|Default Value|
* |:-|:-|:-|
* |autoplay|sound.autoplay|false|
* |loop|sound.loop|false|
* |on|sound.on|null|
* |src|sound.src|null|
* |volume|sound.volume|1|
*/
'a-sound': {
/**
* sound.autoplay
* @default "false"
*/
'autoplay'?: string;
/**
* sound.loop
* @default "false"
*/
'loop'?: string;
/**
* sound.on
* @default "null"
*/
'on'?: string;
/**
* sound.src
* @default "null"
*/
'src'?: string;
/**
* sound.volume
* @default "1"
*/
'volume'?: string;
} | JSX.IntrinsicElements['a-entity'];
}
}