-
Notifications
You must be signed in to change notification settings - Fork 0
/
a-curvedimage.d.ts
146 lines (130 loc) · 3.7 KB
/
a-curvedimage.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
/// <reference path="a-entity.d.ts" />
declare module JSX {
interface IntrinsicElements {
/**
* @see https://aframe.io/docs/1.3.0/primitives/a-curvedimage.html
*
* The curved image primitive creates images that bend around the user. Curved images arranged around the camera can be pleasing for legibility since each pixel sits at the same distance from the user. They can be a better choice than angled flat planes for complex layouts because they ensure a smooth surface rather than a series of awkward seams between planes.
*
* Under the hood, a curved image is a double-sided open-ended cylinder with textures mapped to the inside of the cylinder.
*
* @example
* ```html
* <a-scene>
* <a-assets>
* <img id="my-image" src="image.png">
* </a-assets>
*
* <!-- Using the asset management system. -->
* <a-curvedimage src="#my-image" height="3.0" radius="5.7" theta-length="72"
* rotation="0 100 0" scale="0.8 0.8 0.8"></a-curvedimage>
*
* <!-- Defining the URL inline. Not recommended but more comfortable for web developers. -->
* <a-curvedimage src="another-image.png"></a-curvedimage>
* </a-scene>
* ```
*
* @attributes
* |Attribute|Description|Default Value|
* |:-|:-|:-|
* |color|material.color|#FFF|
* |height|geometry.height|1|
* |metalness|material.metalness|0|
* |opacity|material.opacity|1|
* |open-ended|geometry.openEnded|true|
* |radius|geometry.radius|2|
* |repeat|material.repeat|None|
* |roughness|material.roughness|0.5|
* |segments-height|geometry.segmentsHeight|18|
* |segments-radial|geometry.segmentsRadial|48|
* |shader|material.shader|flat|
* |side|material.side|double|
* |src|material.src|None|
* |theta-length|geometry.thetaLength|270|
* |theta-start|geometry.thetaStart|0|
* |transparent|material.transparent|true|
*/
'a-curvedimage': {
/**
* material.color
* @default "#FFF"
*/
'color'?: string;
/**
* geometry.height
* @default "1"
*/
'height'?: string;
/**
* material.metalness
* @default "0"
*/
'metalness'?: string;
/**
* material.opacity
* @default "1"
*/
'opacity'?: string;
/**
* geometry.openEnded
* @default "true"
*/
'open-ended'?: string;
/**
* geometry.radius
* @default "2"
*/
'radius'?: string;
/**
* material.repeat
* @default "None"
*/
'repeat'?: string;
/**
* material.roughness
* @default "0.5"
*/
'roughness'?: string;
/**
* geometry.segmentsHeight
* @default "18"
*/
'segments-height'?: string;
/**
* geometry.segmentsRadial
* @default "48"
*/
'segments-radial'?: string;
/**
* material.shader
* @default "flat"
*/
'shader'?: string;
/**
* material.side
* @default "double"
*/
'side'?: string;
/**
* material.src
* @default "None"
*/
'src'?: string;
/**
* geometry.thetaLength
* @default "270"
*/
'theta-length'?: string;
/**
* geometry.thetaStart
* @default "0"
*/
'theta-start'?: string;
/**
* material.transparent
* @default "true"
*/
'transparent'?: string;
} | JSX.IntrinsicElements['a-entity'];
}
}