Commit Graph

23 Commits

Author SHA1 Message Date
25392824cb Fix zoom to not jump anymore (#272)
* Remove scroll handling, honor zoom on drag + ctrl

* Add back ability to zoom with mouse wheel, but properly

* Add TODO for 'any' removal

* Update kittycad lib to remove 'any'
2023-08-21 10:52:41 -04:00
a8d23f5c0d Fix lint warnings (#289) 2023-08-19 08:14:35 +10:00
108827075d fix export types (#271)
* fix export types

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* update kittycad lib

* fix wasm

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
Co-authored-by: Kurt Hutten Irev-Dev <k.hutten@protonmail.ch>
2023-08-18 08:12:32 -07:00
ae460ed02f Franknoirot/video loading (#248)
* Refactor Loading to take children

* Add loading state to stream
2023-08-11 06:22:45 +10:00
8ebb8b8b94 re implement selections (#243) 2023-08-09 20:49:10 +10:00
f9259aa869 Implement zoom for mousewheel event on stream (#238) 2023-08-08 18:30:26 -04:00
391f4ba206 Implement "floating windows" style UI (#224)
* Basic transparent pane styling

* HTML and static asset cleanup

* Convert to collapsibles

* Polish up DebugPanel

* Add hotkey support, remove allotment

* Remove allotment css dependency

* Merge in from main

* Add a different resizable package

* Fix tsc errors introduced by merge

* Stream has to have at least z-index of 0

* App header has to be above stream z-index

* Applied z-index to the wrong element

* Scrollable logs, disable UI while dragging

* Fix test errors from importing CSS Modules in Jest

* Persist open panes configuration

* Style tweaks and fix camera step in onboarding

* Kurt review, make click-drag handler declarative
2023-08-07 11:29:26 +10:00
c80dd44c59 Kurt pet issue (#216)
* use key names vars

* tweaks
2023-08-03 07:28:06 +10:00
5419039fae add client lib @kittycad/lib (#214)
* add client lib

* tsc after build

* update after spec update

* remove uneeded check

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixes

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix camera drag

* fix throttle typing

* comment with link to issue

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
Co-authored-by: Jess Frazelle <github@jessfraz.com>
2023-08-02 15:41:59 +10:00
9cd3845975 Franknoirot/add walkthrough (#189)
* Barebones onboarding triggering and resetting

* Make onboarding route-based

* Add Camera step, highlighting camera feed

* Implement redirect behavior

* Unify navigation hooks

* Formatting

* add useResizeObserver, convert to custom hook
2023-07-25 10:40:26 -04:00
1666e17ca5 Add support for camera Pan (#182) 2023-07-20 14:08:32 -04:00
a70399bacf onmouse leave (#148) 2023-06-29 20:11:51 +10:00
7289965916 send mouse drag over wrtc (#139)
* send mouse drag over wrtc

* add more debugging code

* wrtc data channel working
2023-06-23 09:56:37 +10:00
2d3c73d46a asyncronise executor (#115)
* Intital async of executor

The execture now sends websocket message instead of calling functions
directly from the engine, When it does so it holds onto the id.
The engine is still returning geo/polys directly but I'm working make it
so that the UI doesn't need to know about that, so that we can switch
over the streaming ui.

Things left to do:
- it is still making both direct function calls and websockets, and the former should be removed.
- It does highlighting of segments and sourceRanges not through websockets and that needs to be fixed.
- Tests have not been adjusted for these changes.
- Selecting the head of a segment is not working correctly again yet.

* Rough engine prep changes (#135)

* rough changes for engine prep

* mouse movements working again

* connect to engine for startsketch, line, close and extrude
2023-06-22 16:43:33 +10:00
dd3117cf03 Steal Jess's mouse move code (#137)
steal Jess's mouse move code
2023-06-21 09:15:02 +10:00
efa3bc7ac6 Use trickle ICE (#136)
* Try trickle ice setup

* Fix typo

* Append auth to api.dev too
2023-06-20 16:51:12 -04:00
e7c1554129 Mute stream by default for autoplay (#127) 2023-06-15 09:16:14 -04:00
fbee151264 Update Stream to use modeling ws (#117) 2023-05-26 17:32:31 -04:00
d729ae3990 Add socket send for mouse events (#50)
Add socket send
2023-03-08 14:07:40 -05:00
3180702e7d quick tweak (#48) 2023-03-08 11:27:14 +11:00
8a6a11535c log stream mouse positon (#47)
* remove stream video controles

* Add mouse position logging

* clean up

* add todo

* Move mouse position into the same useEffect as the stream setup, so that it has access to socket

That will be useful when we're ready to send to the server

* make todo comment better
2023-03-08 06:12:41 +11:00
2ac24bcd95 Horz/Vert distance constraint with modal workflow (#43)
* button style tweak

* Remove duplication constraint ast transforms

* giveSketchFnCallTag to return if line already had a tag

* remove duplication

* update tag name to referenceSegName

* Update transform shape to return key details about the transform

* add modal to hor vert distance workflow

* fix browser env stuff from breaking tests

* fmt
2023-03-07 15:45:59 +11:00
a0518c556f Stream setup (#46)
* set up stream

* clean up
2023-03-06 20:13:34 +11:00