Commit graph

847 commits

Author SHA1 Message Date
Aria Minaei
a9adc2640c 0.5.1-rc.1 2022-11-25 11:21:28 +01:00
Aria Minaei
c38ab1d4e4 Update links to the docs 2022-11-24 17:42:13 +01:00
Aria Minaei
19b5218278 Document propTypesUtils and privateAPIs.ts 2022-11-24 15:52:24 +01:00
Aria Minaei
f17ad3cbca Document several util functions 2022-11-24 15:41:08 +01:00
Aria Minaei
7899f8a965 Document nicestNumberBetween() 2022-11-24 14:17:22 +01:00
Aria Minaei
5ee13a20a0 Document more utils 2022-11-24 14:09:02 +01:00
Aria Minaei
3f5b902739 Document minimalOverride() 2022-11-24 13:36:52 +01:00
Aria Minaei
464ce24923 Document utilities and remove unused code 2022-11-24 13:17:19 +01:00
Aria Minaei
dd585b0790 Explain how SheetObject.getValues() works 2022-11-23 16:31:44 +01:00
Andrew Prifer
ea229695e1
Fix project json export (#344) 2022-11-22 17:53:49 +02:00
Andrew Prifer
e3a194c7dd
Playground improvements (#342)
Remove previews, add vs code task, open in chrome
2022-11-22 15:05:11 +00:00
Andrew Prifer
484cfeb8ba
Add camera playground (#343) 2022-11-22 14:34:15 +00:00
Andrew Prifer
7ef016f3f0
Make notifications SSR ready (#341)
Properly check if window exists
2022-11-22 13:24:23 +00:00
Andrew Prifer
8c325c901a
Blur prop editors on unmount (#340) 2022-11-21 18:07:49 +00:00
Andrew Prifer
a55a34d48f
Improve notifications UX (#337)
Improve notification UX
2022-11-13 13:37:24 +00:00
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
cb8fa2f20f
Move notifications trigger to toolbar (#333)
* Move notification trigger to toolbar

* Make notifications unpinned by default
2022-11-07 13:40:17 +00:00
Andrew Prifer
455ac7736d
Fix default number nudge funcion (#328)
Fix default number nudge function
2022-10-26 19:26:19 +02: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
Andrew Prifer
dee2361c95 Replace warnings with notifications
Also rewrote all warnings to be more helpful and readable.
2022-10-21 18:42:03 +02:00
Andrew Prifer
62bc12ab51
Create a notification system that can display notifications in Theatre.js' Studio (#320)
* Implement an internal library for studio notifications

* Improve design a little

* Document code

* Change relative import to absolute one

* Fix tiny styling issue

* Add notifications playground

* Add notifications empty state and keep notifications buttons always visible

Also fix a bug related to not clearing the type and uniqueness checkers.

* Simplify notifications playground

* Treat window as optional in case it runs in server code
2022-10-21 15:51:13 +02: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
Aria Minaei
151fcce298 Implement Sheet.deleteObject()
Co-authored-by: Elliot <key.draw@gmail.com>
2022-10-18 11:43:54 +02:00
Aria Minaei
10c2b69bf3 Implement useExtensionButton() 2022-10-18 11:43:54 +02:00
Aria Minaei
d260f74c06 WIP - Implement dynamic prop types
TODO: Tests
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
25cf1d7fe8
Apply common sense constraints to window drag and resize (#309)
* Apply common sense constraints to window drag and resize

* Also apply the constraints to FocusRangeZone's panelMoveGestureHandlers
2022-10-07 15:03:05 +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
Aria Minaei
3c3e0a2369 Fix links to the docs repo 2022-09-29 14:11:36 +02:00
Aria Minaei
d0fdd823eb Log instead of warn when studio is initialized already
This should make it a little cleaner when `studio.initialize()` is called in a hot-reloaded module.
2022-09-27 23:32:31 +02:00
Aria Minaei
ca9360fc29 Allow audio files in the playground 2022-09-27 23:32:01 +02:00
Aria Minaei
27ef3cc1c9 Implement playDynamicRange in audio sequences
Fixes #302
2022-09-27 23:32:01 +02:00
Aria Minaei
179c7a8158 Allow audio files in the playground 2022-09-27 23:32:01 +02:00
Aria Minaei
6d49e5977c Remove the warning about SSR mode
It's being misunderstood as an error message https://discord.com/channels/870988717190426644/870988717190426647/1020751857024503828
2022-09-27 23:28:23 +02:00
Aria Minaei
c4862ee6ef Allow re-registering the exact same extension 2022-09-27 23:28:23 +02:00
Aria Minaei
5bb4fc9340 Show more helpful warnings in SSR mode 2022-09-27 23:28:23 +02:00
Aria Minaei
3c9481f1b7 Don't use persistent storage in ssr mode 2022-09-27 23:28:23 +02:00
Ikko Ashimine
4d55ffe087
Fix typo in prerelease.mjs (#299)
lenght -> length
2022-09-17 19:41:18 +02:00
Marco Slooten
629cbd9653
Fixes broken logo in README (#297)
Points the logo's (dark and light mode) to the docs repo instead of the published docs website (where they cannot be found).

Co-authored-by: Aria <aria.minaei@gmail.com>
2022-09-17 19:00:48 +02:00
Aria Minaei
87acdbe9ea 0.5.0 2022-09-17 18:54:11 +02:00
Aria Minaei
c97377d868 0.5.0-rc.4 2022-09-17 18:54:11 +02:00
Aria
d90ca4a34a
Update link to docs (#295) 2022-09-15 12:54:20 +00:00
Elliot
39eb528af4
Add Sheet aggregate track (#284)
* Add Sheet aggregate track

* Update aggregate track keyframe copy algorithm

* Fix keyframe value sanitization

* Fix aggregate selections to be properly undefined

* Fix TS errors

* Remove incorrect comment and improve var name
2022-09-14 16:46:59 +00:00
Andrew Prifer
743254a6c6
Fix popover behavior when popover is open and the trigger is clicked (#211)
* Fix popover behavior when open and clicking on trigger

* Remove console log

* Resolve merge conflicts

* Remove destructuring in favor of property access

* Extract usePopover return type into an interface

* Fix merge
2022-09-14 09:05:09 -04:00
Andrew Prifer
8680f9d89e
Replace uniqueName with theatreKey (#285) 2022-09-14 08:36:49 -04:00