urdf-loader 0.10.2 → 0.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/package.json +61 -62
- package/src/URDFLoader.d.ts +1 -1
- package/src/urdf-viewer-element.js +551 -551
- package/umd/URDFLoader.js +38 -16
- package/umd/URDFLoader.js.map +1 -1
- package/umd/urdf-manipulator-element.js +23 -2
- package/umd/urdf-manipulator-element.js.map +1 -1
- package/umd/urdf-viewer-element.js +563 -542
- package/umd/urdf-viewer-element.js.map +1 -1
- package/CHANGELOG.md +0 -268
- package/example/styles.css +0 -281
package/example/styles.css
DELETED
|
@@ -1,281 +0,0 @@
|
|
|
1
|
-
html, body, urdf-viewer {
|
|
2
|
-
padding: 0;
|
|
3
|
-
margin: 0;
|
|
4
|
-
height: 100%;
|
|
5
|
-
width: 100%;
|
|
6
|
-
overflow: hidden;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
body {
|
|
10
|
-
font-family: "Roboto", helvetica, arial, sans-serif;
|
|
11
|
-
animation: fade 3s ease;
|
|
12
|
-
color: white;
|
|
13
|
-
user-select: none;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
select {
|
|
17
|
-
font-family: "Roboto", helvetica, arial, sans-serif;
|
|
18
|
-
background: rgba(255,255,255,0.25);
|
|
19
|
-
border: none;
|
|
20
|
-
color: white;
|
|
21
|
-
font-size: 16px;
|
|
22
|
-
font-weight: 300;
|
|
23
|
-
outline: none;
|
|
24
|
-
float: right;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
option {
|
|
28
|
-
color: #888;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
input[type="number"] {
|
|
32
|
-
color: white;
|
|
33
|
-
border: none;
|
|
34
|
-
font-weight: 300;
|
|
35
|
-
background: rgba(255,255,255,0.25);
|
|
36
|
-
padding: 1px 2px;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
ul {
|
|
40
|
-
list-style: none;
|
|
41
|
-
padding: 0;
|
|
42
|
-
margin: 0;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
input[type=range] {
|
|
46
|
-
-webkit-appearance: none;
|
|
47
|
-
border: none;
|
|
48
|
-
outline: none;
|
|
49
|
-
width: 100%;
|
|
50
|
-
flex: 1;
|
|
51
|
-
height: 16px;
|
|
52
|
-
background-color: transparent;
|
|
53
|
-
}
|
|
54
|
-
input[type=range]::-webkit-slider-runnable-track {
|
|
55
|
-
width: 100%;
|
|
56
|
-
height: 1px;
|
|
57
|
-
background: white;
|
|
58
|
-
border: none;
|
|
59
|
-
border-radius: 5px;
|
|
60
|
-
}
|
|
61
|
-
input[type=range]::-webkit-slider-thumb {
|
|
62
|
-
-webkit-appearance: none;
|
|
63
|
-
border: none;
|
|
64
|
-
height: 10px;
|
|
65
|
-
width: 10px;
|
|
66
|
-
border-radius: 50%;
|
|
67
|
-
background: white;
|
|
68
|
-
margin-top: -5px;
|
|
69
|
-
}
|
|
70
|
-
input[type=range]:focus {
|
|
71
|
-
outline: none;
|
|
72
|
-
}
|
|
73
|
-
input[type=range]:focus::-webkit-slider-runnable-track {
|
|
74
|
-
background: white;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
input[type=range]::-moz-range-track {
|
|
78
|
-
width: 100%;
|
|
79
|
-
height: 1px;
|
|
80
|
-
background: white;
|
|
81
|
-
border: none;
|
|
82
|
-
border-radius: 5px;
|
|
83
|
-
}
|
|
84
|
-
input[type=range]::-moz-range-thumb {
|
|
85
|
-
border: none;
|
|
86
|
-
height: 10px;
|
|
87
|
-
width: 10px;
|
|
88
|
-
border-radius: 50%;
|
|
89
|
-
background: white;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
input[type=range]:-moz-focusring{
|
|
93
|
-
outline: 1px solid white;
|
|
94
|
-
outline-offset: -1px;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
input[type=range]::-ms-track {
|
|
98
|
-
width: 100%;
|
|
99
|
-
height: 1px;
|
|
100
|
-
background: white;
|
|
101
|
-
border-radius: 10px;
|
|
102
|
-
color: transparent;
|
|
103
|
-
border: none;
|
|
104
|
-
outline: none;
|
|
105
|
-
}
|
|
106
|
-
input[type=range]::-ms-thumb {
|
|
107
|
-
height: 10px;
|
|
108
|
-
width: 10px;
|
|
109
|
-
border-radius: 50%;
|
|
110
|
-
background: white;
|
|
111
|
-
border: none;
|
|
112
|
-
outline: none;
|
|
113
|
-
margin-top: 2px;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
input:focus {
|
|
117
|
-
outline: none;
|
|
118
|
-
opacity: 1;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
#up-select {
|
|
122
|
-
width: 70px;
|
|
123
|
-
margin: 0 20px;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
#menu {
|
|
127
|
-
position: absolute;
|
|
128
|
-
top: 0;
|
|
129
|
-
left: 0;
|
|
130
|
-
display: flex;
|
|
131
|
-
flex-direction: column;
|
|
132
|
-
max-height: 100%;
|
|
133
|
-
margin: 20px;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
#urdf-options li {
|
|
137
|
-
cursor: pointer;
|
|
138
|
-
opacity: 0.5;
|
|
139
|
-
font-size: 30px;
|
|
140
|
-
font-weight: 100;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
#urdf-options li:hover {
|
|
144
|
-
opacity: 0.75;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
#controls {
|
|
148
|
-
flex: 1;
|
|
149
|
-
display: flex;
|
|
150
|
-
flex-direction: column;
|
|
151
|
-
width: 100%;
|
|
152
|
-
margin: 15px 0;
|
|
153
|
-
transition: 0.5s opacity ease;
|
|
154
|
-
overflow: hidden;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
#controls > * {
|
|
158
|
-
margin: 5px 0;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
#controls #toggle-controls {
|
|
162
|
-
margin-top: 0;
|
|
163
|
-
margin-bottom: 10px;
|
|
164
|
-
text-align: right;
|
|
165
|
-
transition: 0.1s opacity linear;
|
|
166
|
-
border-top: 1px solid white;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
#controls #toggle-controls:hover {
|
|
170
|
-
text-decoration: underline;
|
|
171
|
-
cursor: pointer;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
#controls #toggle-controls:before {
|
|
175
|
-
content: "hide controls";
|
|
176
|
-
font-size: 12px;
|
|
177
|
-
font-weight: normal;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
/* hidden state */
|
|
181
|
-
#controls.hidden #toggle-controls:before {
|
|
182
|
-
content: "show controls";
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
#controls.hidden > *:not(#toggle-controls) {
|
|
187
|
-
display: none;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
#controls.hidden #toggle-controls {
|
|
191
|
-
opacity: 0.5;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
/* list of joint sliders */
|
|
195
|
-
#controls ul {
|
|
196
|
-
flex: 1;
|
|
197
|
-
overflow-y: auto;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
#controls li {
|
|
201
|
-
font-size: 16px;
|
|
202
|
-
display: flex;
|
|
203
|
-
align-items: center;
|
|
204
|
-
padding: 1px 0;
|
|
205
|
-
|
|
206
|
-
width: 100%;
|
|
207
|
-
user-select: text;
|
|
208
|
-
|
|
209
|
-
transition: background 0.25s ease;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
#controls li[robot-hovered] {
|
|
213
|
-
background: rgba(255,255,255,0.35);
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
#controls li span {
|
|
217
|
-
|
|
218
|
-
padding: 0 5px;
|
|
219
|
-
max-width: 125px;
|
|
220
|
-
text-overflow: ellipsis;
|
|
221
|
-
overflow: hidden;
|
|
222
|
-
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
#controls li input[type="number"] {
|
|
226
|
-
width: 50px;
|
|
227
|
-
overflow: hidden;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
/* toggle controls */
|
|
231
|
-
.toggle {
|
|
232
|
-
padding-left: 25px;
|
|
233
|
-
position: relative;
|
|
234
|
-
|
|
235
|
-
cursor: pointer;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
.toggle:before {
|
|
239
|
-
content: "";
|
|
240
|
-
position: absolute;
|
|
241
|
-
left: 0;
|
|
242
|
-
width: 15px;
|
|
243
|
-
height: 15px;
|
|
244
|
-
|
|
245
|
-
border-radius: 10px;
|
|
246
|
-
border: 2px solid white;
|
|
247
|
-
|
|
248
|
-
margin-right: 5px;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
.toggle:after {
|
|
252
|
-
content: "";
|
|
253
|
-
width: 9px;
|
|
254
|
-
height: 9px;
|
|
255
|
-
|
|
256
|
-
position: absolute;
|
|
257
|
-
left: 5px;
|
|
258
|
-
top: 5px;
|
|
259
|
-
background: white;
|
|
260
|
-
border-radius: 10px;
|
|
261
|
-
opacity: 0;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
.toggle:not(.checked):hover:after {
|
|
265
|
-
opacity: 0.25;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
.toggle.checked:after {
|
|
269
|
-
opacity: 1;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
@keyframes fade {
|
|
273
|
-
from { opacity: 0; }
|
|
274
|
-
to { opacity: 1; }
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
@media (max-width: 700px) {
|
|
278
|
-
#controls {
|
|
279
|
-
display: none;
|
|
280
|
-
}
|
|
281
|
-
}
|