Commit Graph

203 Commits

Author SHA1 Message Date
3510abfcb9 delay execute till after stream ready (#143) 2023-06-23 14:19:15 +10:00
fb3c34d5f3 send sequence with UDP packets (#140) 2023-06-23 10:54:19 +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
0858d32c1e more tauri stuff (#128) 2023-06-19 10:16:45 +10:00
e7c1554129 Mute stream by default for autoplay (#127) 2023-06-15 09:16:14 -04:00
6eaa0e0852 get release to work (#124)
* get release to work

* update skip-sign

* new strategy to avoid signing

* fix

* fix

* get ubuntu build working

* fix

* fix

* fix
v0.0.2
2023-06-08 09:52:57 +10:00
1861bb94bb Tauri setup main (#122)
* initial tauri port

* tweak build worflow
v0.0.1
2023-06-07 17:45:13 +10:00
fbee151264 Update Stream to use modeling ws (#117) 2023-05-26 17:32:31 -04:00
1fb7524da9 angled line length (#114) 2023-04-21 12:18:20 +10:00
15699361a0 Cursors should stay after a code-mod (#113)
* setup to get path to nodes back from ast-mods

* fix cursor setting for constraint buttons that use transformSecondarySketchLinesTagFirst

* fix cursors for constraints that use transformAstSketchLines
2023-04-14 07:49:36 +10:00
2fc68e7c82 Change perpendicular-distance constraint to something more intuitive to setting parallel distance (#110)
* some clean up

* Change perpendicular-distance constraint to something more intuitive to setting parallel distance

* delete

* add back

* force rename

* change name back

* try renaming again
2023-04-08 14:16:49 +10:00
0fa56c3f15 Automatically create variable for setAngle and setLength (#108) 2023-04-07 01:21:33 +10:00
52b2e26ac5 alignVertically/Horizontally (#106) 2023-04-06 12:45:56 +10:00
db5220467b set angle between two selected lines (#104) 2023-04-05 21:06:20 +10:00
1a6bcba6ca Select axis for horz/vert distances (#102) 2023-04-05 15:08:46 +10:00
a1848f2563 ui naming tweaks (#100)
ui nameing tweaks
2023-04-03 21:01:26 +10:00
8df08be687 Grid axis should be able to be selected for angles (#99) 2023-04-03 20:40:58 +10:00
a8b68bab6a Users should be able to select points (not just lines) (#97)
* update selection datastructure to accomodate more selection metadata

* Users should be able to select points (not just lines)
2023-04-03 16:05:25 +10:00
7013eb861d colour head of lines (the sphere) with the same constraint colours (#95)
* colour head of lines (the sphere) with the same constraint colours

* tweak arrow size
2023-04-02 18:38:07 +10:00
01bf3c1049 Lengths and angles should be set with |abs| values (#93)
* Lengths and angles should be set with |abs| values

* clean up
2023-04-02 17:20:11 +10:00
b279daa8e0 Fix equal length sign bug for yLines (#91)
If you have a yLine(-5,  %) i.e. it's values is negative -5 than when constraining it to the length of another line, it should take the sign into account and transform it to yLine(-segLen('someSeg', %), %), currently it always does it positively i.e. yLine(segLen('someSeg', %), %) which is jaring for users to see the line they are constraining to flip direction.
2023-04-02 09:34:56 +10:00
252ace6d69 Add common angles are permanent variables, 0, 90,180 etc (#89) 2023-04-01 21:25:00 +11:00
61533fb306 Add UI for closing the sketch loop (#87) 2023-04-01 20:38:31 +11:00
0593afc4ff Replace values with variable helper (#84)
* Refactor getNodePathFromSourceRange

getNodePathFromSourceRange wouldn't go as deep as it should have,
stopping at pipe expressions, when it should have followed as deep
into the ast as possible.

The fact that it stopped early then had other part of the code base that
expected this behaviour and it effected a lot, so a rather large refactor

* overhaul of getNodePathFromSourceRange

* quick fix for moreNodePathFromSourceRange

* minor bugs in moreNodePathFromSourceRange

* couple more tests

* add moveValueIntoNewVariable

* add UI for replacing valuse with variable

* update button text
2023-04-01 16:47:00 +11:00
42eb3506bb quick remove constraining value fix (#82) 2023-03-23 20:39:55 +11:00
6154f1bd98 Fix video link (#81)
Update README.md
2023-03-22 06:58:25 +11:00
ab1639b8b4 Add 'remove constraining values' UI (#80) 2023-03-22 03:02:37 +11:00
45091d3c4f quick bugfix (#78) 2023-03-21 19:02:18 +11:00
5f7ee2c512 Fix indentation for wrapped array and object expressions, within pipe bodies (#77) 2023-03-20 08:13:21 +11:00
37ebfd072c getSketchSegmentIndexFromSourceRange bug fix (#75)
* getSketchSegmentIndexFromSourceRange bug fix

* test was verbose

* rename function
2023-03-20 07:09:19 +11:00
1ac3713a79 Add constraint colour indications (#73) 2023-03-19 21:25:22 +11:00
22c356a841 Add intersect constraint UI (#71)
* Add intersect constraint UI

* add more combos for intersect constraint
2023-03-19 18:46:39 +11:00
0995780abb add Equal angle constraint + more cases for existing constraints (#69)
* add more setLength and horz vert distance constraints

* rename equal to equalLength

* Add equalAngle constraint
2023-03-17 21:15:46 +11:00
f7c78db92b Creating new sketch calling sketch fns with dumby default values (#67) 2023-03-17 15:53:20 +11:00
c11e7e7fd3 Give startSketchAt a 3D artifact (#65)
* Give startSketchAt a 3D artifact

* fix tests

* refactor start geo to be in the start property

* small tweak
2023-03-17 08:27:40 +11:00
d73003e3fd add gradient to non-focused cursor (#63) 2023-03-16 10:33:36 +11:00
0868eaa0f7 Use shift instead of capslock for multiple line selection (#62)
Use shift instead of caplock for multiple line selection
2023-03-15 19:03:55 +11:00
d31ff80a19 add Parallel helper (#60) 2023-03-15 08:15:01 +11:00
1de21b8bdd Clean up 'prompt user for info' modals (#58) 2023-03-13 09:22:05 +11:00
eebddb0ce2 more transform functions for various line combos (#56) 2023-03-10 14:55:16 +11:00
c3ead3b074 Add Angle & Length constraint/value, and modal for the details (#54)
* setup UI for getting length and Angle values from user

* enable setLength-angle for angledLines with an exisiting constraining value
2023-03-10 08:48:50 +11:00
2bb987b3b5 Add new query for getting available variables (#52)
* Add new query for getting available variables

* use array for findAllPreviousVariables
2023-03-10 08:35:30 +11: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