Ingvar Stepanyan
36ed35192c
Consume all pending events at once
2021-07-26 13:25:51 +00:00
Ingvar Stepanyan
92c785dc73
Fix in-progress config rendering
2021-07-26 13:24:35 +00:00
Ingvar Stepanyan
1072d5faa5
Remove triggerCapture
2021-07-26 13:09:38 +00:00
Ingvar Stepanyan
e3ea463db5
Integrate supported ops into the UI
2021-07-26 13:09:10 +00:00
Ingvar Stepanyan
95ed711729
Return supported ops as an object
2021-07-26 12:52:38 +00:00
Ingvar Stepanyan
c41c0962d5
Use requestIdleCallback for config updates
2021-07-23 20:09:20 +00:00
Ingvar Stepanyan
dfcb610df1
Remove console.log
2021-07-23 20:05:26 +00:00
Ingvar Stepanyan
a37aa2853b
Commit typings
2021-07-23 20:04:42 +00:00
Ingvar Stepanyan
ca75f61289
Check for pending events before updating the config
...
Small optimisation that significantly reduces number of config updates.
2021-07-23 20:04:32 +00:00
Ingvar Stepanyan
86f9be758f
Fix context error handler
...
This can be called deep in the gphoto2 callstack, and throwing here would prevent proper C cleanup.
Instead, just log an error here and rely on status values higher up in the APIs to throw actual C++ errors.
2021-07-23 19:22:34 +00:00
Ingvar Stepanyan
fc52ce5c84
Remove few unused C++ funcs
2021-07-23 19:20:06 +00:00
Ingvar Stepanyan
a8fa8cdf4c
Gracefully handle unsupported capture
2021-07-23 19:19:40 +00:00
Ingvar Stepanyan
fcb67b1517
Gracefully handle unsupported preview operation
2021-07-23 17:22:29 +00:00
Ingvar Stepanyan
585001bd4e
Optimise Widget rendering
...
Names and lists of values should always remain the same, only update on value/readonly changes.
2021-07-23 17:01:40 +00:00
Ingvar Stepanyan
fa2084a9d7
Build with optimisations
2021-07-23 16:40:43 +00:00
Ingvar Stepanyan
7b37bed6f2
Add stats.js for the preview panel when ?debug is on
2021-07-22 17:40:30 +00:00
Ingvar Stepanyan
4371da9270
Extract CaptureButton; allow non-singletone connections
2021-07-21 16:38:18 +00:00
Ingvar Stepanyan
73148dbc11
Split out Preview component
...
- Self-host the wrapper div.
- Make component accept getPreview as an async function prop.
- Explicitly dispose ResizeObserver on unmount.
- Move to a new file.
2021-07-21 15:26:59 +00:00
Ingvar Stepanyan
686dba0812
Detach Widget from setValue impl
2021-07-21 14:47:52 +00:00
Ingvar Stepanyan
70a35d1b70
Extract some modules
2021-07-21 14:37:57 +00:00
Ingvar Stepanyan
5e54c25c55
Reduce scope of temp camera file
2021-07-21 14:14:58 +00:00
Ingvar Stepanyan
3b85b63d20
Delete camera file in destructor
...
This makes sure it gets deleted even on exception.
2021-07-21 14:13:39 +00:00
Ingvar Stepanyan
e4afa15c2c
Remove Wasm preload; instead, actually load it sooner
2021-07-20 16:14:14 +00:00
Ingvar Stepanyan
379c6ead81
Shuffle around some ops in PreviewCanvas
2021-07-20 15:07:22 +00:00
Ingvar Stepanyan
51864cc154
Rename constants
2021-07-20 13:30:55 +00:00
Ingvar Stepanyan
b62b98c725
Add Wasm preload
2021-07-20 12:59:13 +00:00
Ingvar Stepanyan
26d55fb32f
Remove spurious constructor
2021-07-19 19:14:14 +00:00
Ingvar Stepanyan
e62ab51f4c
Auto-reconnect if camera already found; catch all errors
2021-07-19 17:57:50 +00:00
Ingvar Stepanyan
826aca5b9d
State management & UI improvements
2021-07-19 17:26:00 +00:00
Ingvar Stepanyan
e3aee15676
Rename ConfigComponent -> Widget
2021-07-19 16:39:36 +00:00
Ingvar Stepanyan
b12949ee98
Fix numeric values
2021-07-15 11:56:38 +00:00
Ingvar Stepanyan
e60bbbc473
One more btn improvement
2021-07-14 17:17:33 +00:00
Ingvar Stepanyan
b12b6fcd2d
Capture button improvements
2021-07-14 17:14:16 +00:00
Ingvar Stepanyan
86a271cf9f
Various UI improvements for config
2021-07-14 16:40:27 +00:00
Ingvar Stepanyan
37017f6c3f
Add TypeScript checks, fix a few issues
2021-07-14 15:29:17 +00:00
Ingvar Stepanyan
ce0372e179
Fix loading state for config
2021-07-14 12:10:06 +00:00
Ingvar Stepanyan
d66ef27c33
Add datetime support
2021-07-14 12:02:32 +00:00
Ingvar Stepanyan
6613d89d7d
Implement capture
2021-07-14 11:40:17 +00:00
Ingvar Stepanyan
e5b22b02bb
Pause updates only for the current element
2021-07-13 18:46:04 +00:00
Ingvar Stepanyan
f8188667df
Few UI fixups
2021-07-13 18:03:51 +00:00
Ingvar Stepanyan
6e28a0caac
Fix config becoming unblocked while still in progress
2021-07-12 13:09:42 +00:00
Ingvar Stepanyan
d0a53669d2
Use object keys for setting names
2021-07-12 12:04:56 +00:00
Ingvar Stepanyan
e1ca54b596
Remove log
2021-07-09 19:53:33 +00:00
Ingvar Stepanyan
5e5d7be282
Various fixes and improvements
...
Among other things, periodically poll settings back from the camera.
2021-07-08 20:36:44 +00:00
Ingvar Stepanyan
7ab5c04496
Basic example
2021-07-08 00:38:20 +00:00