@xperimntl/vue-threejs-test-renderer 1.1.0
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/CHANGELOG.md
ADDED
|
@@ -0,0 +1,494 @@
|
|
|
1
|
+
# @react-three/test-renderer
|
|
2
|
+
|
|
3
|
+
## 1.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c7e33c6: Initial publish under @xperimntl scope
|
|
8
|
+
|
|
9
|
+
## 1.1.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 0433707: Bump TypeScript to 5.9 and align @types/three with three@0.183.
|
|
14
|
+
|
|
15
|
+
## 1.1.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- 46ce1f9: Publish all sub-packages to npm and export templateCompilerOptions for Vite custom element configuration.
|
|
20
|
+
|
|
21
|
+
## 9.1.0
|
|
22
|
+
|
|
23
|
+
### Minor Changes
|
|
24
|
+
|
|
25
|
+
- 31781e5a1fdc464cb67617cc3d7bc5d8690cd4cd: feat(RTTR): handle primitives in test-renderer and fix queries in TestInstances
|
|
26
|
+
|
|
27
|
+
## 9.0.1
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- 754861f16ac7ee93844d52057d2b8515b145fdb2: Republish as latest
|
|
32
|
+
|
|
33
|
+
## 9.0.0
|
|
34
|
+
|
|
35
|
+
### Major Changes
|
|
36
|
+
|
|
37
|
+
- 226d2ec: feat: React 19 support
|
|
38
|
+
|
|
39
|
+
## 8.2.4
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- dec2cb28: fix(test-renderer): include types in output
|
|
44
|
+
|
|
45
|
+
## 8.2.3
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- 2007c19b: fix: republish with types
|
|
50
|
+
|
|
51
|
+
## 8.2.2
|
|
52
|
+
|
|
53
|
+
### Patch Changes
|
|
54
|
+
|
|
55
|
+
- ff1a16f1: fix: narrow React peer dep range
|
|
56
|
+
|
|
57
|
+
## 8.2.1
|
|
58
|
+
|
|
59
|
+
### Patch Changes
|
|
60
|
+
|
|
61
|
+
- 020bb194: fix(RTTR): set initial size for NaN in viewport
|
|
62
|
+
|
|
63
|
+
## 8.2.0
|
|
64
|
+
|
|
65
|
+
### Minor Changes
|
|
66
|
+
|
|
67
|
+
- a5ffb08e: feat(RTTR): waitFor util
|
|
68
|
+
|
|
69
|
+
## 8.1.5
|
|
70
|
+
|
|
71
|
+
### Patch Changes
|
|
72
|
+
|
|
73
|
+
- 673927f7: fix(RTTR): implement HTMLCanvasElement.getContext
|
|
74
|
+
|
|
75
|
+
## 8.1.4
|
|
76
|
+
|
|
77
|
+
### Patch Changes
|
|
78
|
+
|
|
79
|
+
- 53ba22d3: fix(RTTR): fallback to canvas shim
|
|
80
|
+
|
|
81
|
+
## 8.1.3
|
|
82
|
+
|
|
83
|
+
### Patch Changes
|
|
84
|
+
|
|
85
|
+
- 2b0be267: fix: support WebGL2
|
|
86
|
+
|
|
87
|
+
## 8.1.2
|
|
88
|
+
|
|
89
|
+
### Patch Changes
|
|
90
|
+
|
|
91
|
+
- d9e6316d: fix: transpile class properties
|
|
92
|
+
|
|
93
|
+
## 8.1.1
|
|
94
|
+
|
|
95
|
+
### Patch Changes
|
|
96
|
+
|
|
97
|
+
- 9a776b71: fix(RTTR): backport traverse, update fixes
|
|
98
|
+
|
|
99
|
+
## 8.1.0
|
|
100
|
+
|
|
101
|
+
### Minor Changes
|
|
102
|
+
|
|
103
|
+
- 24c4dba4: shortcut for shadow type
|
|
104
|
+
|
|
105
|
+
## 8.0.17
|
|
106
|
+
|
|
107
|
+
### Patch Changes
|
|
108
|
+
|
|
109
|
+
- 786ccb46: fix: restore RTTR version
|
|
110
|
+
|
|
111
|
+
## 8.0.16
|
|
112
|
+
|
|
113
|
+
### Patch Changes
|
|
114
|
+
|
|
115
|
+
- 7b6df9df: fix: infinite loop updating cam viewport
|
|
116
|
+
- Updated dependencies [7b6df9df]
|
|
117
|
+
- @react-three/fiber@8.0.26
|
|
118
|
+
|
|
119
|
+
## 8.0.15
|
|
120
|
+
|
|
121
|
+
### Patch Changes
|
|
122
|
+
|
|
123
|
+
- b7cd0f42: update viewport on camera changes
|
|
124
|
+
- Updated dependencies [b7cd0f42]
|
|
125
|
+
- @react-three/fiber@8.0.25
|
|
126
|
+
|
|
127
|
+
## 8.0.14
|
|
128
|
+
|
|
129
|
+
### Patch Changes
|
|
130
|
+
|
|
131
|
+
- 29d03c64: revert multi attach
|
|
132
|
+
- Updated dependencies [29d03c64]
|
|
133
|
+
- @react-three/fiber@8.0.23
|
|
134
|
+
|
|
135
|
+
## 8.0.13
|
|
136
|
+
|
|
137
|
+
### Patch Changes
|
|
138
|
+
|
|
139
|
+
- 4c87bce: fix: attach, devtools, and perf fixes
|
|
140
|
+
- Updated dependencies [4c87bce]
|
|
141
|
+
- @react-three/fiber@8.0.20
|
|
142
|
+
|
|
143
|
+
## 8.0.12
|
|
144
|
+
|
|
145
|
+
### Patch Changes
|
|
146
|
+
|
|
147
|
+
- c4715d5f: allow invalidate to preempt more than 1 frame
|
|
148
|
+
- Updated dependencies [c4715d5f]
|
|
149
|
+
- @react-three/fiber@8.0.15
|
|
150
|
+
|
|
151
|
+
## 8.0.11
|
|
152
|
+
|
|
153
|
+
### Patch Changes
|
|
154
|
+
|
|
155
|
+
- 5559a119: Add support for recoverable errors
|
|
156
|
+
- Updated dependencies [5559a119]
|
|
157
|
+
- @react-three/fiber@8.0.14
|
|
158
|
+
|
|
159
|
+
## 8.0.10
|
|
160
|
+
|
|
161
|
+
### Patch Changes
|
|
162
|
+
|
|
163
|
+
- 9d77d8e2: fix: detach attribute removal
|
|
164
|
+
- Updated dependencies [9d77d8e2]
|
|
165
|
+
- @react-three/fiber@8.0.13
|
|
166
|
+
|
|
167
|
+
## 8.0.9
|
|
168
|
+
|
|
169
|
+
### Patch Changes
|
|
170
|
+
|
|
171
|
+
- 3d10413f: fix portal layers
|
|
172
|
+
- Updated dependencies [3d10413f]
|
|
173
|
+
- @react-three/fiber@8.0.12
|
|
174
|
+
|
|
175
|
+
## 8.0.8
|
|
176
|
+
|
|
177
|
+
### Patch Changes
|
|
178
|
+
|
|
179
|
+
- 5167b1e4: memoized.args can be undefined
|
|
180
|
+
- Updated dependencies [5167b1e4]
|
|
181
|
+
- @react-three/fiber@8.0.11
|
|
182
|
+
|
|
183
|
+
## 8.0.7
|
|
184
|
+
|
|
185
|
+
### Patch Changes
|
|
186
|
+
|
|
187
|
+
- eb321afd: fix: remount bug, allow portals to inject custom size
|
|
188
|
+
- Updated dependencies [eb321afd]
|
|
189
|
+
- @react-three/fiber@8.0.10
|
|
190
|
+
|
|
191
|
+
## 8.0.6
|
|
192
|
+
|
|
193
|
+
### Patch Changes
|
|
194
|
+
|
|
195
|
+
- 624df949: fix: canvas unmount race condition"
|
|
196
|
+
- Updated dependencies [624df949]
|
|
197
|
+
- @react-three/fiber@8.0.9
|
|
198
|
+
|
|
199
|
+
## 8.0.5
|
|
200
|
+
|
|
201
|
+
### Patch Changes
|
|
202
|
+
|
|
203
|
+
- d4bafb9: fix re-parenting, useframe not working properly in portals, attach crash
|
|
204
|
+
- Updated dependencies [d4bafb9]
|
|
205
|
+
- @react-three/fiber@8.0.6
|
|
206
|
+
|
|
207
|
+
## 8.0.4
|
|
208
|
+
|
|
209
|
+
### Patch Changes
|
|
210
|
+
|
|
211
|
+
- 227c328: fix pointer for root and portals
|
|
212
|
+
- Updated dependencies [227c328]
|
|
213
|
+
- @react-three/fiber@8.0.5
|
|
214
|
+
|
|
215
|
+
## 8.0.3
|
|
216
|
+
|
|
217
|
+
### Patch Changes
|
|
218
|
+
|
|
219
|
+
- 3252aed: setevents needs to spread and be mirrored in portals
|
|
220
|
+
- Updated dependencies [3252aed]
|
|
221
|
+
- @react-three/fiber@8.0.3
|
|
222
|
+
|
|
223
|
+
## 8.0.2
|
|
224
|
+
|
|
225
|
+
### Patch Changes
|
|
226
|
+
|
|
227
|
+
- 8035d1f: fix: legacy mode
|
|
228
|
+
- Updated dependencies [8035d1f]
|
|
229
|
+
- @react-three/fiber@8.0.2
|
|
230
|
+
|
|
231
|
+
## 8.0.1
|
|
232
|
+
|
|
233
|
+
### Patch Changes
|
|
234
|
+
|
|
235
|
+
- 26db195: add legacy flag to turn of three.colormanagement
|
|
236
|
+
- Updated dependencies [26db195]
|
|
237
|
+
- @react-three/fiber@8.0.1
|
|
238
|
+
|
|
239
|
+
## 8.0.0
|
|
240
|
+
|
|
241
|
+
### Major Changes
|
|
242
|
+
|
|
243
|
+
- 385ba9c: v8 major, react-18 compat
|
|
244
|
+
- 04c07b8: v8 major, react-18 compat
|
|
245
|
+
|
|
246
|
+
### Patch Changes
|
|
247
|
+
|
|
248
|
+
- 347ea79: new beta for library testing
|
|
249
|
+
- Updated dependencies [385ba9c]
|
|
250
|
+
- Updated dependencies [04c07b8]
|
|
251
|
+
- Updated dependencies [347ea79]
|
|
252
|
+
- @react-three/fiber@8.0.0
|
|
253
|
+
|
|
254
|
+
## 8.0.0-beta.0
|
|
255
|
+
|
|
256
|
+
### Major Changes
|
|
257
|
+
|
|
258
|
+
- 385ba9c: v8 major, react-18 compat
|
|
259
|
+
|
|
260
|
+
### Patch Changes
|
|
261
|
+
|
|
262
|
+
- Updated dependencies [385ba9c]
|
|
263
|
+
- @react-three/fiber@8.0.0-beta.0
|
|
264
|
+
|
|
265
|
+
## 7.0.25-beta.0
|
|
266
|
+
|
|
267
|
+
### Patch Changes
|
|
268
|
+
|
|
269
|
+
- cf6316c: new beta for library testing
|
|
270
|
+
- Updated dependencies [cf6316c]
|
|
271
|
+
- @react-three/fiber@8.0.0-beta.0
|
|
272
|
+
|
|
273
|
+
## 7.0.24
|
|
274
|
+
|
|
275
|
+
### Patch Changes
|
|
276
|
+
|
|
277
|
+
- 8698734: Release latest patches
|
|
278
|
+
- Updated dependencies [8698734]
|
|
279
|
+
- @react-three/fiber@7.0.25
|
|
280
|
+
|
|
281
|
+
## 7.0.23
|
|
282
|
+
|
|
283
|
+
### Patch Changes
|
|
284
|
+
|
|
285
|
+
- 7f46ddf: cleanup captured pointers when released (#1914)
|
|
286
|
+
- Updated dependencies [7f46ddf]
|
|
287
|
+
- @react-three/fiber@7.0.24
|
|
288
|
+
|
|
289
|
+
## 7.0.22
|
|
290
|
+
|
|
291
|
+
### Patch Changes
|
|
292
|
+
|
|
293
|
+
- 30d38b1: remove logs
|
|
294
|
+
- Updated dependencies [30d38b1]
|
|
295
|
+
- @react-three/fiber@7.0.23
|
|
296
|
+
|
|
297
|
+
## 7.0.21
|
|
298
|
+
|
|
299
|
+
### Patch Changes
|
|
300
|
+
|
|
301
|
+
- 259e1fa: add camera:manual
|
|
302
|
+
- Updated dependencies [259e1fa]
|
|
303
|
+
- @react-three/fiber@7.0.22
|
|
304
|
+
|
|
305
|
+
## 7.0.20
|
|
306
|
+
|
|
307
|
+
### Patch Changes
|
|
308
|
+
|
|
309
|
+
- 65e4147: up usemeasure, add last event to internals"
|
|
310
|
+
- Updated dependencies [65e4147]
|
|
311
|
+
- @react-three/fiber@7.0.21
|
|
312
|
+
|
|
313
|
+
## 7.0.19
|
|
314
|
+
|
|
315
|
+
### Patch Changes
|
|
316
|
+
|
|
317
|
+
- 54cb0fd: update react-use-measure, allow it to use the offsetSize
|
|
318
|
+
- Updated dependencies [54cb0fd]
|
|
319
|
+
- @react-three/fiber@7.0.20
|
|
320
|
+
|
|
321
|
+
## 7.0.18
|
|
322
|
+
|
|
323
|
+
### Patch Changes
|
|
324
|
+
|
|
325
|
+
- 7aa2eab: fix: remove zustand subscribe selector
|
|
326
|
+
- Updated dependencies [7aa2eab]
|
|
327
|
+
- @react-three/fiber@7.0.19
|
|
328
|
+
|
|
329
|
+
## 7.0.17
|
|
330
|
+
|
|
331
|
+
### Patch Changes
|
|
332
|
+
|
|
333
|
+
- 6780f58: fix unmount pointer capture
|
|
334
|
+
- Updated dependencies [6780f58]
|
|
335
|
+
- @react-three/fiber@7.0.18
|
|
336
|
+
|
|
337
|
+
## 7.0.16
|
|
338
|
+
|
|
339
|
+
### Patch Changes
|
|
340
|
+
|
|
341
|
+
- 894c550: fix: event count
|
|
342
|
+
- Updated dependencies [894c550]
|
|
343
|
+
- @react-three/fiber@7.0.17
|
|
344
|
+
|
|
345
|
+
## 7.0.15
|
|
346
|
+
|
|
347
|
+
### Patch Changes
|
|
348
|
+
|
|
349
|
+
- c7a4220: patch: applyprops returns the same instance
|
|
350
|
+
- Updated dependencies [c7a4220]
|
|
351
|
+
- @react-three/fiber@7.0.16
|
|
352
|
+
|
|
353
|
+
## 7.0.14
|
|
354
|
+
|
|
355
|
+
### Patch Changes
|
|
356
|
+
|
|
357
|
+
- c5645e8: fix primitive leftovers on switch
|
|
358
|
+
- Updated dependencies [c5645e8]
|
|
359
|
+
- @react-three/fiber@7.0.15
|
|
360
|
+
|
|
361
|
+
## 7.0.13
|
|
362
|
+
|
|
363
|
+
### Patch Changes
|
|
364
|
+
|
|
365
|
+
- 05af996: fix: revert the is function
|
|
366
|
+
- Updated dependencies [05af996]
|
|
367
|
+
- @react-three/fiber@7.0.14
|
|
368
|
+
|
|
369
|
+
## 7.0.12
|
|
370
|
+
|
|
371
|
+
### Patch Changes
|
|
372
|
+
|
|
373
|
+
- 0df6073: fix: missed events
|
|
374
|
+
- Updated dependencies [0df6073]
|
|
375
|
+
- @react-three/fiber@7.0.12
|
|
376
|
+
|
|
377
|
+
## 7.0.11
|
|
378
|
+
|
|
379
|
+
### Patch Changes
|
|
380
|
+
|
|
381
|
+
- 62b0a3a: fix: event order of missed pointers
|
|
382
|
+
- Updated dependencies [62b0a3a]
|
|
383
|
+
- @react-three/fiber@7.0.11
|
|
384
|
+
|
|
385
|
+
## 7.0.10
|
|
386
|
+
|
|
387
|
+
### Patch Changes
|
|
388
|
+
|
|
389
|
+
- e019dd4: fixes
|
|
390
|
+
- Updated dependencies [e019dd4]
|
|
391
|
+
- @react-three/fiber@7.0.10
|
|
392
|
+
|
|
393
|
+
## 7.0.8
|
|
394
|
+
|
|
395
|
+
### Patch Changes
|
|
396
|
+
|
|
397
|
+
- cd266e4: Fix diffProps dashed keys
|
|
398
|
+
- Updated dependencies [cd266e4]
|
|
399
|
+
- @react-three/fiber@7.0.9
|
|
400
|
+
|
|
401
|
+
## 7.0.7
|
|
402
|
+
|
|
403
|
+
### Patch Changes
|
|
404
|
+
|
|
405
|
+
- 0375896: Simplify useframe, support instanced event cancelation, silence disposal
|
|
406
|
+
- Updated dependencies [0375896]
|
|
407
|
+
- @react-three/fiber@7.0.7
|
|
408
|
+
|
|
409
|
+
## 7.0.6
|
|
410
|
+
|
|
411
|
+
### Patch Changes
|
|
412
|
+
|
|
413
|
+
- fb052ad: Fix babel-env browserslist transpiling into old code"
|
|
414
|
+
- Updated dependencies [fb052ad]
|
|
415
|
+
- @react-three/fiber@7.0.6
|
|
416
|
+
|
|
417
|
+
## 7.0.5
|
|
418
|
+
|
|
419
|
+
### Patch Changes
|
|
420
|
+
|
|
421
|
+
- c97794a: Add useLoader.clear(Loader, input)
|
|
422
|
+
- Updated dependencies [c97794a]
|
|
423
|
+
- @react-three/fiber@7.0.5
|
|
424
|
+
|
|
425
|
+
## 7.0.4
|
|
426
|
+
|
|
427
|
+
### Patch Changes
|
|
428
|
+
|
|
429
|
+
- 974ecfb: Allow elements to define attachFns for specific mount/unmount
|
|
430
|
+
- Updated dependencies [974ecfb]
|
|
431
|
+
- @react-three/fiber@7.0.4
|
|
432
|
+
|
|
433
|
+
## 7.0.1
|
|
434
|
+
|
|
435
|
+
### Patch Changes
|
|
436
|
+
|
|
437
|
+
- a97aca3: Add controls state field
|
|
438
|
+
- Updated dependencies [a97aca3]
|
|
439
|
+
- 4c703d6: fix rttr didn't work with r130
|
|
440
|
+
- Updated dependencies [4c703d6]
|
|
441
|
+
- @react-three/fiber@7.0.2
|
|
442
|
+
|
|
443
|
+
## 7.0.0
|
|
444
|
+
|
|
445
|
+
### Major Changes
|
|
446
|
+
|
|
447
|
+
- 96ae1ad: fix javascript interpreting renderpriority as positive
|
|
448
|
+
|
|
449
|
+
### Patch Changes
|
|
450
|
+
|
|
451
|
+
- Updated dependencies [96ae1ad]
|
|
452
|
+
- @react-three/fiber@7.0.0
|
|
453
|
+
|
|
454
|
+
## 6.2.3
|
|
455
|
+
|
|
456
|
+
### Patch Changes
|
|
457
|
+
|
|
458
|
+
- 26bc7eb: typescript changes
|
|
459
|
+
- Updated dependencies [26bc7eb]
|
|
460
|
+
- @react-three/fiber@6.2.3
|
|
461
|
+
|
|
462
|
+
## 6.2.2
|
|
463
|
+
|
|
464
|
+
### Patch Changes
|
|
465
|
+
|
|
466
|
+
- 4f44a2c: use more helpful name with event handling in rttr
|
|
467
|
+
- Updated dependencies [4f44a2c]
|
|
468
|
+
- @react-three/fiber@6.2.2
|
|
469
|
+
|
|
470
|
+
## 6.1.5
|
|
471
|
+
|
|
472
|
+
### Patch Changes
|
|
473
|
+
|
|
474
|
+
- fix(rttr): if children is undefined return an array to map with
|
|
475
|
+
- Updated dependencies [undefined]
|
|
476
|
+
- @react-three/fiber@6.1.5
|
|
477
|
+
|
|
478
|
+
## 6.1.3
|
|
479
|
+
|
|
480
|
+
### Patch Changes
|
|
481
|
+
|
|
482
|
+
- 6faa090: Add shape to types, exclude event functions from event data
|
|
483
|
+
- Updated dependencies [6faa090]
|
|
484
|
+
- @react-three/fiber@6.1.4
|
|
485
|
+
|
|
486
|
+
## 6.1.2
|
|
487
|
+
|
|
488
|
+
### Patch Changes
|
|
489
|
+
|
|
490
|
+
- 71e72c0: Fix constructor args with attached children (#1348)
|
|
491
|
+
- Updated dependencies [71e72c0]
|
|
492
|
+
- @react-three/fiber@6.1.3
|
|
493
|
+
|
|
494
|
+
## 6.1.1
|
package/README.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Vue Three Test Renderer
|
|
2
|
+
|
|
3
|
+
[](https://npmjs.com/package/@xperimntl/vue-threejs-test-renderer)
|
|
4
|
+
[](https://npmjs.com/package/@xperimntl/vue-threejs-test-renderer)
|
|
5
|
+
[](https://twitter.com/pmndrs)
|
|
6
|
+
[](https://twitter.com/_josh_ellis_)
|
|
7
|
+
[](https://discord.gg/ZZjjNvJ)
|
|
8
|
+
|
|
9
|
+
`@xperimntl/vue-threejs-test-renderer` is a Vue testing renderer for threejs in node.
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
yarn add @xperimntl/vue-threejs three
|
|
13
|
+
yarn add -D @xperimntl/vue-threejs-test-renderer
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## The problem
|
|
19
|
+
|
|
20
|
+
You've written a complex and amazing webgl experience using [`@xperimntl/vue-threejs`](https://github.com/chris-xperimntl/vue-threejs) and you want to test it to make sure it works even after you add even more features.
|
|
21
|
+
|
|
22
|
+
You go to use `vue-test-utils` but hang on, `THREE` elements aren't in the DOM! You decide to use `@xperimntl/vue-threejs-test-renderer` you can see the container & the canvas but you can't see the tree for the scene!? That's because `@xperimntl/vue-threejs` renders to a different root with it's own reconciler.
|
|
23
|
+
|
|
24
|
+
## The solution
|
|
25
|
+
|
|
26
|
+
You use `@xperimntl/vue-threejs-test-renderer`, an experimental Vue renderer using `@xperimntl/vue-threejs` under the hood to expose the scene graph wrapped in a test instance providing helpful utilities to test with.
|
|
27
|
+
|
|
28
|
+
Essentially, this package makes it easy to grab a snapshot of the Scene Graph rendered by `three` without the need for webgl & browser.
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Usage
|
|
33
|
+
|
|
34
|
+
RTTR is testing library agnostic, so we hope that it works with libraries such as [`jest`](https://jestjs.io/), [`jasmine`](https://jasmine.github.io/) etc.
|
|
35
|
+
|
|
36
|
+
```tsx
|
|
37
|
+
import VueThreeTestRenderer from '@xperimntl/vue-threejs-test-renderer'
|
|
38
|
+
|
|
39
|
+
const renderer = await VueThreeTestRenderer.create(
|
|
40
|
+
<mesh>
|
|
41
|
+
<boxGeometry args={[2, 2]} />
|
|
42
|
+
<meshStandardMaterial
|
|
43
|
+
args={[
|
|
44
|
+
{
|
|
45
|
+
color: 0x0000ff,
|
|
46
|
+
},
|
|
47
|
+
]}
|
|
48
|
+
/>
|
|
49
|
+
</mesh>,
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
// assertions using the TestInstance & Scene Graph
|
|
53
|
+
console.log(renderer.toGraph())
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## API
|
|
59
|
+
|
|
60
|
+
- [Vue Three Test Renderer API](/packages/test-renderer/markdown/rttr.md)
|
|
61
|
+
- [Vue Three Test Instance API](/packages/test-renderer/markdown/rttr-instance.md)
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from "../src/index.js";
|
|
2
|
+
export { default } from "../src/index.js";
|
|
3
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieHBlcmltbnRsLXZ1ZS10aHJlZWpzLXRlc3QtcmVuZGVyZXIuY2pzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIn0=
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// this file might look strange and you might be wondering what it's for
|
|
3
|
+
// it's lets you import your source files by importing this entrypoint
|
|
4
|
+
// as you would import it if it was built with preconstruct build
|
|
5
|
+
// this file is slightly different to some others though
|
|
6
|
+
// it has a require hook which compiles your code with Babel
|
|
7
|
+
// this means that you don't have to set up @babel/register or anything like that
|
|
8
|
+
// but you can still require this module and it'll be compiled
|
|
9
|
+
|
|
10
|
+
// this bit of code imports the require hook and registers it
|
|
11
|
+
let unregister = require("../../../node_modules/@preconstruct/hook").___internalHook(typeof __dirname === 'undefined' ? undefined : __dirname, "../../..", "..");
|
|
12
|
+
|
|
13
|
+
// this re-exports the source file
|
|
14
|
+
module.exports = require("../src/index.tsx");
|
|
15
|
+
|
|
16
|
+
unregister();
|
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@xperimntl/vue-threejs-test-renderer",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Test renderer for @xperimntl/vue-threejs.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"main": "dist/xperimntl-vue-threejs-test-renderer.cjs.js",
|
|
7
|
+
"module": "dist/xperimntl-vue-threejs-test-renderer.esm.js",
|
|
8
|
+
"types": "dist/xperimntl-vue-threejs-test-renderer.cjs.d.ts",
|
|
9
|
+
"bugs": {
|
|
10
|
+
"url": "https://github.com/chris-xperimntl/vue-threejs/issues"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://github.com/chris-xperimntl/vue-threejs/tree/master/packages/test-renderer",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/chris-xperimntl/vue-threejs.git"
|
|
16
|
+
},
|
|
17
|
+
"preconstruct": {
|
|
18
|
+
"entrypoints": [
|
|
19
|
+
"index.tsx"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"vue": ">=3.3",
|
|
24
|
+
"@xperimntl/vue-threejs": ">=1.0.0",
|
|
25
|
+
"three": ">=0.156"
|
|
26
|
+
}
|
|
27
|
+
}
|