Aria Minaei
a8a9b5ef05
Rename deleteObject()
and related params
...
Since `sheet.deleteObject()` doesn't actually delete the values
of the props of that object, I decided to rename it to `detachObject()`.
Also, the param `override` sounded too similar to the concept of value overrides,
so I renamed it to `reconfigure`.
2022-11-10 16:23:15 +01:00
Andrew Prifer
43714fdf17
Notification improvements ( #324 )
2022-10-21 20:32:53 +00:00
Andrew Prifer
965d7085dc
Add runtime type checks to r3f ( #323 )
...
* Add better error/warning messages to r3f
* Fix notifications playground
2022-10-21 19:17:45 +00:00
Aria Minaei
ef5752cbd3
Add a playground for dynamic trees in r3f
2022-10-18 11:43:54 +02:00
Aria Minaei
a9c3c00153
Implement dynamic scene trees in r3f
...
This makes it possible to add/remove objects on the fly, do hot-module reloading, change object configs on the fly, and more.
2022-10-18 11:43:54 +02:00
Andrew Prifer
e708463377
Remove useless TS type ( #318 )
2022-10-17 14:13:23 +00:00
Andrew Prifer
29e036638b
Normalize theatre keys in r3f ( #317 )
...
Also remove a stray console log and make makeStoreKey make more sense.
2022-10-16 16:02:35 +00:00
Andrew Prifer
54ed4c3c41
Improve light support in theatre/r3f ( #316 )
...
Add color to all light types and add ambient and hemisphere lights
2022-10-14 13:43:53 +00:00
Andrew Prifer
6497bf2097
Add instant editable cameras to the r3f extension ( #315 )
...
Add spruced up editable orthographic/perspective camera
2022-10-13 18:14:53 +00:00
Andrew Prifer
3ec8c20fa6
Warn about (possibly) incorrect custom camera ( #308 )
...
Print a warning if people use e.perspectiveCamera or e.orthographicCamera
2022-10-06 14:22:39 +00:00
Andrew Prifer
8680f9d89e
Replace uniqueName with theatreKey ( #285 )
2022-09-14 08:36:49 -04:00
Cole Lawrence
58f04685ad
r3f: Accept function for objRef like for setState
2022-07-25 12:01:26 -04:00
Andrew Prifer
a3d9892841
Relax editable TS types to allow creating editable versions of all the JSX.IntrinsicElements elements. ( #237 )
...
Enable custom editable components through relaxed typescript types
2022-06-28 16:11:28 +00:00
Andrew Prifer
b98c5d86b6
Fix editable TS ( #235 )
...
Fix primitive not being supported by the typings
2022-06-28 15:06:55 +00:00
Elliot
2854881e17
Add support for passing scalars to vector props ( #228 )
...
Co-authored-by: Andrew Prifer <AndrewPrifer@users.noreply.github.com>
2022-06-26 15:47:20 +00:00
Andrew Prifer
262d7d61d3
r3f fixes ( #222 )
...
* Minify r3f extension bundle, because it is expected by the React dead code elimination check, since we bundle React in it
* Add children to props, since it is required by React 18 types
* Fix getting context attributes for gl in ReferenceWindow
* Don't bundle threejs in extension
* Fix editor not responding to scene initialization
* Fix SnapshotEditor css
2022-06-18 00:59:45 +00:00
Aria
9b4aa4b0e0
Make @theatre/r3f
play well with different vs of react,three,r3f #177
2022-05-27 21:59:51 +02:00