Commit Graph

32 Commits

Author SHA1 Message Date
a0518c556f Stream setup (#46)
* set up stream

* clean up
2023-03-06 20:13:34 +11:00
433c29217e tidy up (#37) 2023-03-03 20:35:48 +11:00
6446601a67 Add equal-length constraints & implement UnaryExpressions (#35)
* add segLen help to lang std

* adding helpers functions to sketchConstraints

* update tokeniser tests because they were annoying me not being 100%

* compare async lexer with sync lexer instead

* add helper functions

* remove unneeded nesting

* update add ast modifier function for angledLine

* initial equal ast modification

It adds a tag to the primary line, and converts any secondary lines to angledLine, but doesn't reference the taged/primary line yet

* Update fn call with refernce to previous line using segLen

* add test for giveSketchFnCallTag

* fix excutor bug, executing call expression in array expression

* fix small issue in executor

* add CallExpressions to BinaryExpressions

* add unary Expressions

* tweaks to unaryExpression logic

* add recasting for unaryExpressions and CallExpressions in BinaryExpressions

* ensure pipe substitution info is passed down to unary expressions and others

* allow binary expressions in function argumentns

* inital setup, new way of organising sketch fn transforms

Starting with equal length

* overhaul equalLength button

* add equal length support for angledLine

* line with one variable supports signed legLength

* fix indentation when recasting long arrayExpressions in a pipeExpression

* improve modifyAst consision

* further modify ast tidy

* equalLength transfroms far angledLineOfXLength

* add transforms for line-yRelative

* add equal constraint for angledLineOfYLength

* quick test fix

* add equal length constrain transforms for lineTo

* add equal length constraints for angledLineToX

* add equalLength constraints for angledLineToY

* test tidy

* setup new vertical-horizontal constraints

* Add equal Length constraints for vertical/horizontal lines

* migrate old tests, and refactor callback tag

* tweaks and refactor horzVert component

* fix leg len with small negative leg length
2023-03-02 21:19:11 +11:00
f70f0f7bc3 persist code in local storage (#34)
Just a little frustrating to have code disapear on you, will probably need to be made less naive at some point
2023-02-21 14:50:22 +11:00
ea05f804cc Add multi-cursor support (#30)
* update execution of callExpressions

* tweak types to store multiple cursor ranges and hook up with artifact highlighting

* multi-cursor from 3d scene

Working but has to be capslock for the time being

* tweak pannel headers

* add issue to todo comment
2023-02-21 10:28:34 +11:00
594d55576a functional sketch working (#26)
* functional sketch working

With old sketch block still there

* get all version of lines working with add line and update line

* remove old ui state types

* some clean up

* rename some things

* add todo for multi cursor

* shorten useStore repitition

* small type improvement

* big overhaul to group sketch function and they ast modifying helpers together

* unneeded tweak

* ruthlessly rip out sketch logic

* clean up path keyword

* getting sketch on face working again with all the new sketch line types

* add a bunch of tests and re-arrage file structure
2023-02-12 10:56:45 +11:00
9bb4f68794 change logs aswell (#21)
* kurt-19-change-logs-aswell

* fix tests
2023-02-03 11:09:09 +11:00
487d61b862 add memory dump panel (#20) 2023-02-03 10:04:16 +11:00
96720023db clean up panels a little (#18) 2023-02-02 20:41:28 +11:00
29e06ec852 Add non-code metadata to the ast (#15)
* Revert "wire up comments to ui (#11)"

This reverts commit bdf778530f.

* Revert "Add the ability to recast comments and some whitespace (#10)"

This reverts commit dd5022b38e.

* ast metadata

* clean up
2023-02-01 07:30:55 +11:00
bdf778530f wire up comments to ui (#11) 2023-01-24 21:09:00 +11:00
cb16d3efd7 rename file 2023-01-10 15:42:22 +11:00
9ad6b946c0 massive overhall to how program memory works and how artifacts their metada are rendered 2023-01-08 16:37:31 +11:00
0779befc65 fix sketch plan orientation 2023-01-04 01:28:26 +11:00
6b19966e49 update near far cam settings 2023-01-01 07:50:09 +11:00
1c1ceae4d3 fmt 2022-12-23 07:47:46 +11:00
cecc4b1f01 drag sphere - edit sketch working for xy plane 2022-12-07 10:02:21 +11:00
034c903672 add the ability to edit sketch later 2022-12-06 05:40:05 +11:00
faf37d1b03 fix up code model connection a little 2022-11-29 19:03:50 +11:00
95f9c4c2b4 get nested geomtry structure working for highlighting 2022-11-29 11:24:04 +11:00
1ed96ad7b6 fix up axis 2022-11-28 21:05:56 +11:00
80f513401c fmt 2022-11-28 19:44:08 +11:00
b671db1e81 add format button 2022-11-28 19:43:20 +11:00
ade1e9fb82 start of code gen from direct manipulation 2022-11-28 09:37:46 +11:00
6f24e75f92 Gui scafolding toolbar, log console, axis for sketching 2022-11-27 14:06:33 +11:00
48e59ac710 remove semi-colons 2022-11-26 08:38:57 +11:00
ca020e14eb get feature highlighting working both ways
From the editor to the viewer and from the viewer to the editor
2022-11-26 05:15:32 +11:00
e7e0f2a4fd make boilder plate react test happy with new dependencies 2022-11-25 11:04:14 +11:00
b4f9e70752 get tests passing again and add codemirror 2022-11-24 06:18:13 +11:00
5ce89d83fc sketch code to 3d scene initial connection working 2022-11-23 21:28:38 +11:00
266edb578a start 3d work
Setup r3f, drei, tailwindcss and start with first 3d util, to-from line
2022-11-22 09:06:08 +11:00
033f00754a create react app template 2022-11-12 13:11:54 +11:00