Commit graph

360 commits

Author SHA1 Message Date
Val Erastov
a57f2fcf46 Bug: Can not delete sketch objects after creation until sketch is closed and reopened. #30 2016-12-21 18:23:16 -08:00
Val Erastov
d6e6ec0dcd apply fillet and exit if there is selection on point #13 2016-12-21 01:40:31 -08:00
Val Erastov
0ccbe50c7c Rectangle tool to sketcher #28 2016-12-21 01:05:23 -08:00
Val Erastov
cf117a2aea bulk adding for the parallel constraint 2016-12-20 22:52:18 -08:00
Val Erastov
c7b0a12958 add horizontal and vertical constraints transactionally to avoid unnecessary refreshes 2016-12-20 22:48:22 -08:00
Val Erastov
cbab1646b9 bulk operation for adding horizontal and vertical constraints 2016-12-20 22:42:15 -08:00
Val Erastov
42372db6bb reuse point on arc for point on ellipse action 2016-12-11 23:08:26 -08:00
Val Erastov
602a682e48 taking bound into account for an ellipse and bezier curve 2016-12-11 22:57:55 -08:00
Val Erastov
d36498048b indexing children non simple object when serializing deserializing 2016-12-11 22:49:34 -08:00
Val Erastov
aaca1c9141 convex hull test before building LUT for bezier curve 2016-12-09 15:37:36 -08:00
Val Erastov
7cf69aafcf disable lut debugging 2016-12-09 02:37:15 -08:00
Val Erastov
56ad328e99 make bezier curve shape pickable 2016-12-09 02:34:16 -08:00
Val Erastov
6c7e8e7377 storing layer readOnly attribute 2016-12-09 00:27:02 -08:00
Val Erastov
32632b81ac basic support for bezier curve 2016-12-08 22:58:18 -08:00
Val Erastov
32879114d6 extract the styles to a separate module 2016-12-08 18:19:07 -08:00
Val Erastov
73f318c05a remove getDefaultTool from circle and ellipse since it was moved to a mapping file 2016-12-08 17:54:32 -08:00
Val Erastov
99ceec4cd1 equalize linked endpoints 2016-12-08 11:37:59 -08:00
Val Erastov
9944b71370 elliptical arc simple approximation for 3D carving 2016-12-08 02:49:13 -08:00
Val Erastov
787dc07925 elliptical arc basic support(no DXF or SVG export) 2016-12-08 01:25:28 -08:00
Val Erastov
af85e3e77b use draw pipelines for selected objects 2016-12-07 00:59:20 -08:00
Val Erastov
1939c7c988 introducing draw pipeline 2016-12-07 00:37:21 -08:00
Val Erastov
e01b450ad2 ellipse tangent UI support 2016-12-06 23:45:54 -08:00
Val Erastov
8a9050d1ed cleanup: remove unused 'validateGeom' method 2016-12-06 23:44:58 -08:00
Val Erastov
69da5dcd16 ellipse tangent constraint math / 'Grater Than' constraint math 2016-12-06 23:42:38 -08:00
Val Erastov
02466e24f7 fix dumb mode on Mac 2016-12-05 01:49:23 -08:00
Val Erastov
ca45a3fd01 extract numeric derivative calculation to reuse by other constraints 2016-12-01 02:30:51 -08:00
Val Erastov
cfae03f291 extract radiusAtAngle to a function 2016-12-01 02:13:53 -08:00
Val Erastov
2c824b88ce create point on ellipse auxiliary as preparation to elliptical arc 2016-12-01 02:11:57 -08:00
Val Erastov
bf62c9314d fix point rendering order 2016-12-01 01:37:12 -08:00
Val Erastov
e0cfa8c3e6 minor code style 2016-12-01 01:36:51 -08:00
Val Erastov
ae984c88d8 make points always rendered on top of other objects 2016-12-01 00:57:33 -08:00
Val Erastov
3eebe7ac02 check for dumb mode 2016-12-01 00:19:49 -08:00
Val Erastov
f3409df80c solve system on changing ellipse radius 2016-12-01 00:19:31 -08:00
Val Erastov
1b2c2d65df UI support for point on ellipse constraint 2016-12-01 00:18:55 -08:00
Val Erastov
5761164b0c point on ellipse constraint 2016-12-01 00:18:36 -08:00
Val Erastov
441bed2639 extract check for dumbMode 2016-12-01 00:18:12 -08:00
Val Erastov
cdf8d93fe9 serialize ellipse 2016-12-01 00:17:28 -08:00
Val Erastov
fba94a47f5 drag tool as alternate mode for circle 2016-11-30 22:51:59 -08:00
Val Erastov
939b93410e fix snapping for ellipse / alternate default tool for a shape 2016-11-30 22:50:37 -08:00
Val Erastov
3cfff1b863 add hints for ellipse tools 2016-11-30 21:47:28 -08:00
Val Erastov
e1d62e6a6a add ellipse tool 2016-11-30 21:45:57 -08:00
Val Erastov
a2f40b66ad fix references to EndPoint 2016-11-30 20:29:28 -08:00
Val Erastov
5c220950e7 make some start from middle state 2016-11-30 20:25:57 -08:00
Val Erastov
3518b78ded fillet tool refactoring 2016-11-30 19:30:55 -08:00
Val Erastov
c29a46fc95 fix ellipse picking 2016-11-30 02:33:22 -08:00
Val Erastov
0dc159eb1f fix ellipse picking 2016-11-30 02:29:02 -08:00
Val Erastov
16063c9f56 remove garbage 2016-11-30 02:28:39 -08:00
Val Erastov
bedb65a169 ellipse drawing implementation 2016-11-30 02:12:54 -08:00
Val Erastov
32d79a1181 shapes hierarchy refactoring 2016-11-29 22:48:16 -08:00
Val Erastov
00b6b49b09 fix circle dimension 2016-11-29 21:09:44 -08:00
Val Erastov
08122759d5 move tool manager to separate module 2016-11-29 02:13:45 -08:00
Val Erastov
0e1344febe move pan and drag tool out of viewer 2016-11-28 21:53:51 -08:00
Val Erastov
ea26bb18c4 fix snapping 2016-11-28 21:24:38 -08:00
Val Erastov
9ed5cc8c1e check the way for checking being marked 2016-11-28 20:59:59 -08:00
Val Erastov
61bf3ec671 tools refactoring for dimensions 2016-11-28 19:13:49 -08:00
Val Erastov
8945e95fd7 code format 2016-11-27 23:28:42 -08:00
Val Erastov
3bce2d9862 add terminal support for arcs 2016-11-27 23:27:55 -08:00
Val Erastov
85bc6cd711 reorder service layer 2016-11-27 01:32:45 -08:00
Val Erastov
8fa8b7757b add terminal support for line, circle, point and origin tool 2016-11-27 01:26:25 -08:00
Val Erastov
c79b71c6b4 change event name from tool-state to tool-change 2016-11-25 01:50:05 -08:00
Val Erastov
6ac8939595 add tool info text in the bottom of the viewer 2016-11-25 01:38:32 -08:00
Val Erastov
238e9ffb04 rewrite point, line and origin using classes 2016-11-24 21:29:54 -08:00
Val Erastov
8e67c2cd39 implement command support for origin tool 2016-11-24 03:28:40 -08:00
Val Erastov
7606240ad0 extract terminal to separate module 2016-11-24 02:55:24 -08:00
Val Erastov
48c60d9dc3 add keymaps support 2016-11-24 02:32:10 -08:00
Val Erastov
c836e9a853 fix merge problem 2016-11-23 21:45:29 -08:00
Val Erastov
c97ed81575 terminal 2016-11-23 21:39:58 -08:00
Val Erastov
6e7c76a16c reference point 2016-11-11 18:45:55 -08:00
Val Erastov
cb114b7baa coordinates info 2016-11-11 18:45:55 -08:00
Val Erastov
e5485dd9be ui toolkit 2016-10-14 01:19:06 -07:00
Val Erastov
cba2f565e6 fix object recovery if it linked to auxiliary object 2016-09-09 02:22:07 -07:00
Val Erastov
2e49847d32 fix boundary recovery 2016-09-09 02:21:07 -07:00
Val Erastov
e041a1a7f3 fix boundary recovery 2016-09-09 00:42:17 -07:00
Val Erastov
757b16477e fix boundary recovery 2016-09-08 23:18:46 -07:00
Val Erastov
3cfbf3537d fix linter complaints 2016-09-08 22:08:36 -07:00
Val Erastov
56a025b8d0 refactoring of equals elimination 2016-09-08 20:51:31 -07:00
Val Erastov
3029bf6a9a fix aux bug 2016-09-08 20:51:31 -07:00
Val Erastov
201142b3ed transition to es6 modules 2016-09-08 20:51:30 -07:00
Val Erastov
218eb44058 rollback trajectory reconstruction 2016-08-31 19:20:59 -07:00
Val Erastov
8afd42e412 check for being auxiliary while recovery 2016-08-30 02:27:33 -07:00
Val Erastov
f44ef5b69c make base origin crosshair thinner 2016-08-30 00:01:43 -07:00
Val Erastov
aaa360e48d line geometry validation and recovery 2016-08-29 23:46:48 -07:00
Val Erastov
f2f3cd92ac fix some potential bugs 2016-08-29 23:46:24 -07:00
Val Erastov
4a45decc26 handle div by zero for distance derivatives smarter 2016-08-29 23:42:16 -07:00
Val Erastov
85c48fbab8 smooth moving 2016-08-29 14:50:06 -07:00
Val Erastov
be9b4e59e6 reindex auxiliary edges to couple with constraints 2016-08-29 01:12:48 -07:00
Val Erastov
318107256d Draw basis crosshair for 2d sketches 2016-08-28 13:39:08 -07:00
Val Erastov
c5d5a2cfe4 add comment 2016-08-26 11:50:59 -07:00
Val Erastov
dd415da635 fix the same derivative mistake for P2LDistance 2016-08-25 16:00:20 -07:00
Val Erastov
87c79ef577 fix derivatives for P2LDistanceV constraint 2016-08-12 18:25:56 -07:00
Val Erastov
738b6b6c9d fix yui compiler errors 2016-07-19 21:32:41 -07:00
Val Erastov
fc7dd3c9e9 Dimension constants 2016-07-19 20:56:25 -07:00
Val Erastov
db1ac31180 Constraint filter 2016-07-18 21:27:02 -07:00
Val Erastov
bbace6bb44 first attempt to optimize fillet generation 2016-05-27 22:04:48 -07:00
Val Erastov
17b7c8bade convex constraint 2016-05-27 20:36:44 -07:00
Val Erastov
2471272ee4 minor, fix global declaration 2016-05-26 23:30:54 -07:00
Val Erastov
9f21aff7be dimensions for arcs 2016-05-26 23:08:57 -07:00
Val Erastov
1c4135578d fix arc picking 2016-05-26 22:23:48 -07:00
Val Erastov
3a6b3b08aa circle dimension 2016-05-24 23:41:56 -07:00
Val Erastov
5a34a46cdf fix arc selection bug 2016-05-24 22:11:14 -07:00
Val Erastov
b182e8aa4d symmetry constraint 2016-05-24 21:07:48 -07:00
Val Erastov
9efe277da0 fix line ange constraint serialization and visualization 2016-05-23 23:59:18 -07:00
Val Erastov
ff8f448bd7 fix bug when arc is aux 2016-05-23 22:33:50 -07:00
Val Erastov
04ccdb32cc Snap for arcs 2016-03-29 21:11:55 -07:00
Val Erastov
bd06a25f7f Min length of line experiment 2016-03-10 23:47:40 -08:00
Val Erastov
1d3a26d092 fix problem equals elimination has recursive conflicts 2016-03-02 21:46:32 -08:00
Val Erastov
d4377945c3 terminal outline 2016-02-24 22:34:53 -08:00
Val Erastov
4b42f228ac tile up windows 2016-02-24 21:37:48 -08:00
Val Erastov
3afe85cae1 fix div zero behavior 2016-02-23 21:17:22 -08:00
Val Erastov
7e5e01c8cc commands window 2016-02-23 16:13:08 -08:00
Val Erastov
ae8bc2ef0a ui / resize manager 2016-02-19 21:19:08 -08:00
Val Erastov
bf8a9bc806 dimensions scale 2016-02-19 16:16:52 -08:00
Val Erastov
c9245aa313 UI work 2016-02-17 23:35:31 -08:00
Val Erastov
10c2ce6389 working on dock UI 2016-02-17 00:31:48 -08:00
Val Erastov
9cec97fee1 fix dimension rendering 2016-02-11 21:47:31 -08:00
Val Erastov
bf6df958cb Point in the middle 2016-02-10 23:31:03 -08:00
Val Erastov
e4f0ccd251 Point on arc constraint 2016-02-10 23:03:07 -08:00
Val Erastov
3b3576c63a angle constraint 2015-12-04 20:29:23 -08:00
Val Erastov
6443243249 improve equals entity UI 2015-12-04 16:32:21 -08:00
Val Erastov
8e23f97dd0 working on dragging moving 2015-12-01 20:39:50 -08:00
Val Erastov
54d5f5224d fix aux constraints bug 2015-11-26 00:48:14 -08:00
Val Erastov
23145b3ad0 always update lock 2015-11-26 00:05:03 -08:00
Val Erastov
2e73e20cdd be able to select ambiguity 2015-11-25 22:12:47 -08:00
Val Erastov
36617beb25 export to stl 2015-11-25 21:48:58 -08:00
Val Erastov
17ba1f0c1b restore wizards from history 2015-11-25 20:51:33 -08:00
Val Erastov
c7b9adf3d6 support for switching layers 2015-11-23 18:07:59 -08:00
Val Erastov
36ff07366e fix aux constraints 2015-11-13 00:35:41 -08:00
Val Erastov
16a0194aa2 storing bounds 2015-11-12 23:17:40 -08:00
Val Erastov
19949822cc fix fitting 2015-11-12 22:50:27 -08:00
Val Erastov
f3c613ac54 fix bounds for radius 2015-11-12 22:36:43 -08:00
Val Erastov
2af66f0807 line to line constraint 2015-11-12 22:34:08 -08:00
Val Erastov
66d26e49db fit sketch to screen action 2015-11-12 21:16:07 -08:00
Val Erastov
f0e0bbf3e5 minor 2015-11-12 21:14:48 -08:00
Val Erastov
a259b1bb49 minor 2015-11-12 20:18:35 -08:00
Val Erastov
69de018f45 fix sketcher solving problems 2015-11-12 20:01:40 -08:00
Val Erastov
5d962623fd hotkey to delete an object from sketch 2015-11-06 12:43:29 -08:00
Val Erastov
f02edbba70 fix removing objects 2015-11-06 01:13:25 -08:00
Val Erastov
f0236c6444 fix constraints with auxiliary 2015-09-15 20:40:10 -07:00
Val Erastov
247acc0f38 circle support 2015-09-08 22:09:05 -07:00
Val Erastov
9f6aae0aa7 support arcs in csg 2015-08-28 00:13:29 -07:00
Val Erastov
000a27a845 Fix toolManager bugs 2015-08-21 20:14:36 -07:00
Val Erastov
c3855c155a Fix undo/redo null input 2015-08-21 19:49:54 -07:00
Val Erastov
25e7efd77b Snap for circle 2015-08-21 19:21:50 -07:00
Val Erastov
1ac5417ae9 Use prepare-solve idiom 2015-08-13 22:03:05 -07:00
Val Erastov
0a41cc23c1 rollback LM as a precise solver as dog leg doing great now 2015-08-13 00:47:35 -07:00
Val Erastov
d7c7c29730 make weight param modifiable 2015-08-13 00:47:34 -07:00
Val Erastov
81b217bf2e Use levenberg-maquard algo for precise minimization 2015-08-13 00:47:34 -07:00
Val Erastov
4536f948f4 Not solve if either ctrl or alt pressed 2015-08-12 18:52:38 -07:00
Val Erastov
0a20bca450 Retina support / honoring draw style 2015-08-11 23:09:02 -07:00
Val Erastov
6c51a1e83d Retina support / dragging 2015-08-11 23:00:47 -07:00
Val Erastov
06ebb2f3b3 Retina support / basic fixes 2015-08-11 22:52:37 -07:00
Val Erastov
c0f013af02 make selecting multiple objects on shift 2015-08-11 20:20:32 -07:00
Val Erastov
87ebd84009 fix redundancy check 2015-07-29 19:30:11 -07:00
Val Erastov
449fd71f44 don't diagnose every time 2015-07-23 00:15:43 -07:00
Val Erastov
5eed5c1753 constrints clean up 2015-07-23 00:05:30 -07:00
Val Erastov
e150b6b57b make only coi contraints reduciable 2015-07-22 22:52:52 -07:00
Val Erastov
71eeeff10e caching parameters for solving 2015-07-22 22:52:52 -07:00
Val Erastov
2cabcefa8b enable equals elimination 2015-07-22 22:52:52 -07:00
Val Erastov
59d1437131 cleanup 2015-07-22 22:52:52 -07:00
Val Erastov
afd12fadd9 fix redundency check 2015-07-22 22:52:52 -07:00
Val Erastov
b977c18a9d extract API for solver 2015-07-22 22:52:52 -07:00
Val Erastov
e9a9df713f make native format build independent 2015-07-22 22:52:52 -07:00
Val Erastov
bd7c32bf42 remove geometry validation after solving 2015-07-19 22:42:41 -07:00
Val Erastov
1f37ad6316 fix compilation warnings 2015-07-19 22:41:06 -07:00
Val Erastov
e8054a509b fix compilation warnings 2015-07-19 21:16:58 -07:00
Val Erastov
ca5b5d056e mark all constructor with annotation 2015-07-19 21:03:54 -07:00
Val Erastov
f1e23e76e7 prepare for js compilation 2015-07-19 20:36:05 -07:00
Val Erastov
5a9497a703 Export Manager 2015-07-17 23:17:12 -07:00
Val Erastov
ed2c85dd3c Sketch Manager 2015-07-17 23:04:56 -07:00
Val Erastov
379d6cb37e DXF export 2015-07-17 16:55:04 -07:00
Val Erastov
a70b485454 user text builder 2015-07-17 16:55:04 -07:00
Val Erastov
5e85ab26b9 colors iterator and fix bbox 2015-07-17 16:55:04 -07:00
Val Erastov
f63ca74185 bbox refactoring 2015-07-17 16:55:03 -07:00
Val Erastov
2f926e3274 extract types to constants 2015-07-17 16:55:03 -07:00
Val Erastov
82d7c6936d export refactoring 2015-07-17 16:55:03 -07:00
Val Erastov
8dde9b9803 store bound for svg 2015-07-17 00:27:52 -07:00
Val Erastov
baaf2278aa fix svg export 2015-07-16 23:51:32 -07:00
Val Erastov
4595faca67 svg export outline 2015-07-16 23:47:21 -07:00
Val Erastov
89301a3d8f a comment 2015-07-16 19:17:00 -07:00
Val Erastov
0e533c2b2b fix update bounds 2015-07-16 00:57:31 -07:00
Val Erastov
b305388240 fix update bounds 2015-07-16 00:21:36 -07:00
Val Erastov
cff5e384d6 make values changeable for some constraints 2015-07-16 00:01:06 -07:00
Val Erastov
3cea890cd1 checkpoint on constraint remove 2015-07-15 23:19:16 -07:00
Val Erastov
86b5102d17 minor 2015-07-15 23:11:44 -07:00
Val Erastov
37a8f7cbd5 Refactoring for prompted constraints 2015-07-15 23:11:27 -07:00
Val Erastov
04c1fe479f UI names for constraints 2015-07-15 22:39:29 -07:00
Val Erastov
2949f89c09 fix light checkpoint for dragging 2015-07-15 22:23:38 -07:00
Val Erastov
7833d4b827 checkpoint on save 2015-07-15 22:14:23 -07:00
Val Erastov
ac72a164e2 fix undo/redo checkpoint for constraints 2015-07-15 21:54:46 -07:00
Val Erastov
8d32652b81 embed undo/redo engine 2015-07-15 21:42:58 -07:00
Val Erastov
242cba46a4 undo/redo engine done 2015-07-10 22:23:15 -07:00
Val Erastov
d0174891aa First approach to undo/redo 2015-06-26 17:54:44 -07:00
Val Erastov
180339188d Merged in fillet (pull request #2)
improve fillet performance
2015-04-06 19:38:32 -07:00
Val Erastov
e18085fee4 fix dogleg algo 2015-03-17 00:02:44 -07:00
Val Erastov
5c68a2013c Disable sorting 2015-03-03 21:41:35 -08:00
Val Erastov
43986faa22 fillet tool 2015-02-27 23:20:11 -08:00
Val Erastov
5645ac13f8 fix parametric warning 2015-02-25 21:29:24 -08:00
Val Erastov
cc16a4bdbb Save points 2015-02-25 20:59:29 -08:00
Val Erastov
8d19130bb9 Point on Line constraint 2015-02-25 20:11:20 -08:00
Val Erastov
f99a788ee7 Eye candy for unsolved arcs 2015-02-25 01:18:45 -08:00