Commit graph

401 commits

Author SHA1 Message Date
Cole Lawrence
8554c7b78c docs: Add some questions surrounding playhead snapping
* See https://www.notion.so/theatrejs/dragging-from-playhead-does-not-snap-dadac4fa755149cebbcb70a655c3a0d5
2022-04-20 11:23:29 -04:00
Aria Minaei
567c83f957 Style tweaks to the color picker
(temporary, until Mariusz re-works the color picker)
2022-04-20 12:52:54 +02:00
Aria Minaei
5ab47c2ad2 0.4.8-dev.3 2022-04-15 13:28:14 +02:00
Aria Minaei
c1cd25b906 Rename NonCompound to Simple
https://github.com/theatre-js/theatre/pull/118#discussion_r846633461
2022-04-10 20:51:45 +02:00
Aria Minaei
a5cf72cd57 Add comments to cloneDeepSerializable()
https://github.com/theatre-js/theatre/pull/118#discussion_r846635429
2022-04-10 20:36:10 +02:00
Aria Minaei
679629def8 Clarify a line
https://github.com/theatre-js/theatre/pull/118#discussion_r846634812
2022-04-10 20:16:32 +02:00
Aria Minaei
b2714ca876 Change all typeof x === 'undefined' to x === undefined`
https://github.com/theatre-js/theatre/pull/118#discussion_r846634374
2022-04-10 20:13:53 +02:00
Aria Minaei
f3dfb7cedb Add comments to Interpolator<T>
https://github.com/theatre-js/theatre/pull/118#discussion_r846632746
2022-04-10 20:03:49 +02:00
Aria Minaei
86cdbdb48c Rename stringLiteral.opts to valuesAndLabels
so it is not confused with `opts` from all other prop configs.

https://github.com/theatre-js/theatre/pull/118#discussion_r846632293
2022-04-10 19:57:13 +02:00
Aria Minaei
65f9f1c850 Rename deserialize() to deserializeAndSanitize()
https://github.com/theatre-js/theatre/pull/118#discussion_r846631233
2022-04-10 19:47:59 +02:00
Aria Minaei
8aff8ba86d Small refactor
https://github.com/theatre-js/theatre/pull/118#discussion_r846630857
2022-04-10 19:39:28 +02:00
Aria Minaei
225efe1329 More comments for prop configs
https://github.com/theatre-js/theatre/pull/118#discussion_r846630645
2022-04-10 19:34:56 +02:00
Aria Minaei
df188da2aa Small refactor
https://github.com/theatre-js/theatre/pull/118#discussion_r846630232
2022-04-10 19:18:54 +02:00
Aria Minaei
2c7591b589 Added remark about handling class instances ...
when validating `value` in `transactionApi.set(pointer, value)` where `pointer` points to a compound prop.

https://github.com/theatre-js/theatre/pull/118#discussion_r846629352
2022-04-09 17:32:36 +02:00
Aria Minaei
64874d644b Add comments to validateCommonOpts() 2022-04-09 17:12:52 +02:00
Aria Minaei
2c238f40fd Couple of lint fixes 2022-04-09 15:26:01 +02:00
Aria
16c070b6e9
Standardize handling of non-compound types (#118) 2022-04-09 15:02:39 +02:00
Elliot
0cc4f795a1
README: add theatre logo. Add/fix social links (#113)
* add theatre logo. Add/fix social links

* remove styles that don't work in github md

* Add more detailed getting started links to README

* change github links to use theatre-js org and autoformat
2022-04-05 13:29:40 -04:00
Don McCurdy
f1a1f48c0f
OutlinePanel: Display object list in A-Z order (#115) 2022-03-31 17:30:31 +02:00
Elliot
2bf081478f
Fix keyframe pasting to respect interpolation graph (#107) 2022-03-25 18:06:20 +01:00
Fulop
ffdebebfff
Add focus range (#94) 2022-03-25 16:44:18 +01:00
Elliot
8a9b26eb41
Add keyframe copy and paste draft (#105)
* Add keyframe copy and paste draft

Author:    vezwork <elliot@theatrejs.com>
Date:      Mon Mar 21 15:48:06 2022 -0400

* add first pass for copy and paste keyframes

Author:    vezwork <elliot@theatrejs.com>
Date:      Tue Mar 22 10:35:17 2022 -0400

* add clipboard with keyframes to ahistoric data

* Refactor keyframe context menu

* fix type error

* refactor context menus

* cleanup small bits of code

* reorder function defs

* Add connector copy keyframes and fix highlight left margin

* modify keyframe positioning

Co-authored-by: Elliot <elliot@Elliots-MacBook-Pro.local>
2022-03-24 12:28:17 -04:00
Aria Minaei
3c1799dcfd Document mousePositionD 2022-03-15 14:55:19 +01:00
Aria Minaei
0ea9271d7a Add docs to SequenceEditorPanel's spaces 2022-03-03 14:50:54 +01:00
Aria Minaei
9dfe912f65 Get rid of the scrollbars in SnapshotEditor 2022-03-03 12:35:38 +01:00
Fulop
3f2a9032f1
Make it possible to move the playhead to an exact position (#92) 2022-03-03 09:54:54 +01:00
Aria Minaei
53c3302cab Separate theatre's root from playground's 2022-03-02 23:12:33 +01:00
Aria Minaei
cc9a65fbd8 Don't allow the length of a sequence to go below zero
Fixes THE-80
2022-02-28 14:33:41 +01:00
Aria
d0965d17e4
Set up end-to-end tests (#85) 2022-02-28 13:15:27 +01:00
Aria Minaei
0d4d0c446e Fix the rest of the eslint warnings 2022-02-23 23:07:05 +01:00
Aria Minaei
aec6b2a251 Fix a bunch of eslint warnings 2022-02-23 22:53:39 +01:00
Aria Minaei
48c060e4be Add remarks about the core bundle 2022-02-23 18:58:39 +01:00
Aria Minaei
d7c96cff10 Upgrade nanoid 2022-02-23 13:18:34 +01:00
Andrew Prifer
bb2c7de299
Integrate Wallaby (#66) 2022-02-21 13:33:08 +01:00
Andrew Prifer
defb538561
Create color prop (#64)
Authored by andrew@theatrejs.com
2022-02-19 17:54:19 +01:00
Dan
93d1cfa5ec
Sort tracks (#75) 2022-02-14 12:19:35 +01:00
Aria Minaei
1b85707833 Bugfix: Only fall back to default value if sanitizer returns undefined
Fixes #72
2022-02-09 20:48:42 +01:00
Aria Minaei
590a8e3740 Remove the vertical scrollbars everywhere 2022-02-04 20:23:49 +01:00
Aria Minaei
ca5b2685bb Fix the scrollbar bug with non-webkit browsers
https://discord.com/channels/870988717190426644/870988717190426647/938364256271884320

https://discord.com/channels/870988717190426644/870988717190426647/938842750827262044
2022-02-04 20:21:23 +01:00
Andrew Prifer
eff1f158bc Provide high level description for the 4 packages 2022-01-19 15:55:36 +01:00
Aria Minaei
2ddd3a1259 0.4.8-dev.2 2021-12-17 17:38:29 +00:00
Aria
cb349b83a7
Preset easings (#51)
* WIP - Preset easing - 1

* Implement easing presets (WIP)

* Improve easing option colors

* Make easing option border radius smaller so it fits the design language better

* Fix easing option label color

* Remove candidate indicator because it'll conflict with focus state for keyboard navigation

* Improve match indicator

* Simplify search box implementation

(assuming it is for now only going to be a search box, this commit is easy to revert)

* Fix options grid on Firefox

* Implement arrow navigation

* Tiny arrow nav fix

* Now make it actually work lol

* Improve menu item name

* Fix up arrow behavior on search input

* Clean up dead code

Co-authored-by: Andrew Prifer <andrew.prifer@gmail.com>
2021-12-10 12:43:52 +01:00
Aria Minaei
607d6afe2b 0.4.8-dev.1 2021-11-25 18:39:17 +01:00
Aria Minaei
8ca44085de UX improvement: Inputs now correctly lose focus on outside gestures 2021-11-14 21:40:50 +01:00
Aria Minaei
fb53be8fe6 CurveEditor popover now opens with its text selected 2021-11-14 21:30:09 +01:00
Aria Minaei
c9fe91db30 Done: refactor sequencing non-scalars 2021-11-14 21:28:07 +01:00
Aria Minaei
2e02c2e2be WIP: refactor sequencing non-scalars - 3 2021-11-14 21:19:35 +01:00
Aria Minaei
3f91f0bdae WIP: refactor sequencing non-scalars - 2 2021-11-14 20:38:22 +01:00
Aria Minaei
4ec6dd1181 WIP: refactor sequencing non-scalars 2021-11-14 20:03:16 +01:00
Aria Minaei
67b8a708dc Refactored getArrayOfValidSequenceTracks() 2021-11-14 17:09:21 +01:00
Aria Minaei
e479d32f3b BasicNumberInput now undos on Escape 2021-11-14 13:15:52 +01:00
Aria Minaei
4d7a4d7f25 BasicStringInput now undos un Escape 2021-11-14 13:10:55 +01:00
Aria Minaei
786f645d0c WIP: Editing curves using the css cubic bezier function 2021-11-13 20:06:17 +01:00
cory-glooh
4a65c6e91c
All prop sequencing (#48) 2021-11-02 14:50:08 +01:00
Aria Minaei
76533d9f82 0.4.7 2021-10-14 18:48:21 +02:00
Jørn Myrland
81578f7925 Extends shortcut for opening & closing the studio
- Should support alt + \ in most cases
- Corrects the shortcut in log message when the studio is hidden
2021-10-12 22:57:56 +02:00
Jørn Myrland
2e4ae0c860 Fixes inconsisten keyboard shortcuts for opening studio
Changes check to use `key` instead of `code`.

related to #34
2021-10-12 22:57:56 +02:00
Aria Minaei
de6161e1cc 0.4.7-rc.1 2021-10-08 11:42:14 +02:00
Aria Minaei
7c0765bff2 Implemented sequence.pointer
This enables observing and reacting to changes to the position of the sequence, as well as its length and playback state.

API docs: https://docs.theatrejs.com/api/core.isequence.pointer.html

Fixes #20

Also provides a stop-gap solution to #32 until we have the API in place.
2021-10-08 11:32:24 +02:00
Jørn Myrland
bf0367bd0d Improves scroll interaction for sequence editor
- Scroll paning (`shift + scroll`) is now synced for the keyframe viewport, easing viewport and scrollbar (Closes #22)
-  Scroll zooming out (`ctrl + scroll down`) is now bounded to avoid zooming out to infinity  (Closes #19)

There is still some quirky behaviour when using scroll to zoom inwards. It does not seem to respect the `pivotPointInUnitSpace` correctly. I've tried fixing it, but I've hit a dead end.
2021-10-04 20:51:53 +02:00
Aria Minaei
1647d91dc5 Dragging on a numeric prop with a range now respects the range.
Fixes #31
2021-10-04 20:10:16 +02:00
Aria Minaei
cf9b35bb4d Renamed the script 'deploy' to 'release' 2021-10-04 14:25:11 +02:00
Aria Minaei
14173fde0a Formatting changes for api docs 2021-10-04 10:39:12 +02:00
Aria Minaei
69c6aa9af2 Lint rule changes 2021-10-02 14:12:25 +02:00
Aria Minaei
90520dfb25 Started adopting api-extractor 2021-10-02 13:48:02 +02:00
Aria Minaei
f273388195 GraphEditor automatically hides if no props are selected 2021-10-01 21:35:51 +02:00
Aria Minaei
4b2a6471dc 0.4.6 2021-10-01 17:49:04 +02:00
Aria Minaei
76a3e53078 Formatting 2021-10-01 17:48:29 +02:00
Or Fleisher
9c5906cce9 Remove NODE_ENV conditional so it shows sequence timeline when NODE_ENV is production too 2021-10-01 11:30:18 -04:00
Aria Minaei
c439cfe947 Updated README 2021-10-01 12:38:43 +02:00
Aria Minaei
0eec2041a3 0.4.5 2021-10-01 12:35:50 +02:00
Aria Minaei
3d56f236e1 0.4.5-dev.3 2021-10-01 12:34:11 +02:00
Aria Minaei
f3367f0719 0.4.5-dev.2 2021-10-01 12:32:38 +02:00
Aria Minaei
c666e69807 Documentation 2021-10-01 11:04:52 +02:00
Aria Minaei
fcfe2cbef4 0.4.5-dev.1 2021-10-01 10:54:49 +02:00
Aria Minaei
4bf6f78a00 Exposed a GainNode from sequence.attachAudio() 2021-10-01 10:46:47 +02:00
Aria Minaei
b3945e2a61 0.4.4 2021-09-30 22:02:45 +02:00
Aria Minaei
4a12a92428 0.4.3 2021-09-30 10:29:39 +02:00
Aria Minaei
3ccef9694f Temporarily disabled compound props' context menu as it's not ready for the next release 2021-09-30 10:27:16 +02:00
Aria Minaei
0e0bb1f3fc Implemented studio.createContentOfSaveFile() 2021-09-30 10:14:32 +02:00
Aria Minaei
995dcd97aa Temporarily allow only number props to be sequenced 2021-09-27 16:37:18 +02:00
Aria Minaei
3f0556b9eb sequence.attachAudio() now accepts any AudioNode as destination 2021-09-27 16:36:06 +02:00
Aria Minaei
91a65752a9 Context menu for compound props
* Make sub-props static
* Reset static sub-props

Also
* Context menu items can now be disabled
2021-09-23 13:55:52 +02:00
Aria Minaei
2c4b317934 0.4.2 2021-09-22 21:18:48 +02:00
Aria Minaei
6b99022220 sequence.attachAudio() now handles autoplay blocking 2021-09-22 13:32:59 +02:00
Aria Minaei
dcf90983a5 Eased type constraints of studio.selection* 2021-09-22 09:30:28 +02:00
Aria Minaei
2232fe5662 0.4.1 2021-09-21 21:25:28 +02:00
Aria Minaei
fe4010c2c6 Properly handle sequence.play({range}) for range[0] > 0.
Fixes #15
2021-09-21 21:22:47 +02:00
Aria Minaei
f48038d649 0.4.0 2021-09-20 11:20:50 +02:00
Aria Minaei
dae14aebbd Implemented stableJsonTringify() 2021-09-20 11:09:30 +02:00
Aria Minaei
631bcba724 More docs and annotations 2021-09-18 21:43:29 +02:00
Aria Minaei
d7542883f7 More docs 2021-09-18 16:31:05 +02:00
Aria Minaei
378d9b7abf 0.4.0-dev.20 2021-09-17 17:32:02 +02:00
Aria Minaei
af336a0a82 Bug fix 2021-09-17 17:23:56 +02:00
Aria Minaei
4eaba1e8d5 Snapping now works in selections too 2021-09-17 17:20:01 +02:00
Aria Minaei
e2e6754de1 Fixed a bug in dragging selections ...
where dragging props of multiple objects would only drag the props of one object
2021-09-17 16:42:22 +02:00
Aria Minaei
385895112b More arg validation rules 2021-09-17 15:41:39 +02:00
Aria Minaei
eb695a1c91 Fixed the tests 2021-09-17 15:37:34 +02:00
Aria Minaei
7815fb2dc3 More API docs 2021-09-17 14:58:26 +02:00
Aria Minaei
a86e220bdc 0.4.0-dev.19 2021-09-14 12:43:58 +02:00
Aria Minaei
5407ed1df8 Fixed the glitches with string props 2021-09-14 11:55:13 +02:00
Aria Minaei
bbf77123b2 0.4.0-dev.18 2021-09-13 19:17:34 +02:00
Aria Minaei
d887dad5d4 Allowed shorter instanceId strings 2021-09-13 19:16:58 +02:00
Aria Minaei
a1712fce4a 0.4.0-dev.17 2021-09-13 18:50:52 +02:00
Aria Minaei
0aff5af83a UI's sequence playback now runs on repeat 2021-09-13 18:50:11 +02:00
Aria Minaei
46f13759e5 0.4.0-dev.16 2021-09-13 18:06:01 +02:00
Aria Minaei
e3264264bc Turned IPlaybackRange into a tuple 2021-09-13 17:05:57 +02:00
Aria Minaei
e8d32089ca Implemented types.string 2021-09-13 16:59:01 +02:00
Aria Minaei
eea1f424fc Minor changes 2021-09-12 21:21:49 +02:00
Aria Minaei
b5fa729e5d 0.4.0-dev.15 2021-09-06 21:13:20 +02:00
Aria Minaei
713c6cacd7 Allowed re-calling sheet.object() with shorthand props again 2021-09-06 21:11:15 +02:00
Aria Minaei
b5e994f597 Disallowed sequencing on non-numeric props
* This is temporary until we find a good UX for sequencing discrete values
2021-09-06 11:42:09 +02:00
Aria Minaei
f6cf3711f4 More progress on shorthand types 2021-09-06 11:26:00 +02:00
Aria Minaei
aefb769855 More progress on shorthand props 2021-09-06 11:05:35 +02:00
Aria Minaei
2f44f53021 Started implementing shothand prop types 2021-09-06 10:53:36 +02:00
Aria Minaei
4f66d57cf8 Renamed @theatre/plugin-r3f to @theatre/r3f 2021-09-06 10:19:10 +02:00
Aria Minaei
1452c9ebbe Renamed @theatre/dataverse-react to @theatre/react 2021-09-05 23:07:02 +02:00
Aria Minaei
69a12440ca Preparing to support multiple sheets in r3f 2021-09-05 23:03:34 +02:00
Aria Minaei
3674f05487 Updated deps 2021-09-05 22:49:26 +02:00
Aria Minaei
91d9ba6b8f API cleanup 2021-09-05 22:47:01 +02:00
Aria Minaei
0ff68e5dbf 0.4.0-dev.14 2021-09-05 18:01:43 +02:00
Aria Minaei
4284f80930 Fixed the build 2021-09-05 18:01:04 +02:00
Aria Minaei
ba6f71bbac Use Option+Backslash to hide/show the UI 2021-09-05 17:48:45 +02:00
Aria Minaei
400b55bf09 Bugfix 2021-09-05 17:45:51 +02:00
Aria Minaei
e201eeee5b More progress with docs 2021-09-05 13:40:15 +02:00
Aria Minaei
5d63ce4f3e Progress on docs 2021-09-04 17:08:51 +02:00
Aria Minaei
a3bec04088 Added some railguards to the API 2021-09-03 21:20:05 +02:00
Aria Minaei
9955730876 API tweaks 2021-09-03 19:29:21 +02:00
Aria Minaei
58e46620cc Added the ability to hide the UI
* Added alt/option+` to toggle the UI
2021-09-03 14:18:24 +02:00
Aria Minaei
adcd1ce848 Implemented Sequence.attachAudio() 2021-09-03 14:02:02 +02:00
Aria Minaei
3cd126186e Sequence bugfixes and documentation
* The alternate playback directions now work
* Clicking outside the playable area no longer raises errors
* Documented the playback API
2021-09-03 13:15:04 +02:00
Aria Minaei
31d6acefca Fix the bug with non-existing trackData 2021-09-02 21:46:45 +02:00
Aria Minaei
7bf22a5f9b Small bugfix 2021-09-02 14:32:33 +02:00
Aria Minaei
6ccfeea068 Style tweaks 2021-09-02 13:28:35 +02:00
Aria Minaei
46f19dddbc 0.4.0-dev.13 2021-09-02 12:20:14 +02:00
Aria Minaei
944c670ca8 Fixed the auto-close bug with usePopover() 2021-09-02 12:19:27 +02:00
Aria Minaei
1ff245f482 Style bug fix 2021-09-02 10:38:28 +02:00
Aria Minaei
6b373ccae5 Removed nativeObject from the API 2021-09-02 10:26:39 +02:00
Aria Minaei
b63fcb9f1e 0.4.0-dev.12 2021-09-02 09:51:13 +02:00
Aria Minaei
b3e4aca200 Keyboard shortcut tweaks 2021-09-01 10:51:50 +02:00
Aria Minaei
5d37c15173 Upgrade deps 2021-09-01 10:41:54 +02:00
Aria Minaei
a8df97a06a API naming tweaks 2021-09-01 10:36:44 +02:00
Aria Minaei
36017c6a73 Nudging behavior on number props can now be customized 2021-08-22 12:58:38 +02:00
Aria Minaei
74724d7ec1 Style tweak 2021-08-22 11:52:42 +02:00
Aria Minaei
6cac52675e Style tweaks 2021-08-22 11:47:00 +02:00
Aria Minaei
158961c82a Style tweaks to the OutlinePanel 2021-08-21 20:01:42 +02:00
Aria Minaei
3357ba5f5b Style tweaks 2021-08-21 16:56:23 +02:00
Aria Minaei
cd02f1a6c3 Style tweaks 2021-08-20 21:59:51 +02:00
Aria Minaei
5f8cdfd886 Style tweaks in ProjectDetailPanel 2021-08-20 21:51:06 +02:00
Aria Minaei
efc52592ba Style tweaks 2021-08-20 21:11:19 +02:00