Commit Graph
27 Commits
Author SHA1 Message Date
Preet c552ff4554 added an explanatory comment 2023-10-23 21:48:35 -07:00
Preet 26f9b54199 compute midpoints properly when dealing with split line indices 2023-10-23 21:41:00 -07:00
Preet 7f5b7bab69 split linear segments as curves 2023-10-23 21:29:53 -07:00
Preet bf7c91536f render and toggle split points for linear elements as well 2023-10-23 21:15:25 -07:00
Preet 4372e992e0 highlight squares appropriately 2023-10-23 18:13:43 -07:00
Preet 1e4bfceb13 render split points as squares 2023-10-23 17:58:28 -07:00
Preet 539071fcfe ensure split indices are sorted 2023-10-23 17:29:12 -07:00
Preet 3700cf2d10 fix some linting/prettier issues 2023-10-23 10:50:52 -07:00
Preet 89218ba596 update indices when inserting/removing points 2023-10-22 17:39:51 -07:00
Preet bc5436592e split curve only for rounded curves 2023-10-22 17:07:08 -07:00
Preet 750055ddfa draw split curves 2023-10-21 21:45:27 -07:00
Preet 93e4cb8d25 restore properly 2023-10-21 17:24:01 -07:00
Preet a2dd3c6ea2 visual indicator that curve is being split 2023-10-21 16:57:56 -07:00
Preet 0360e64219 . 2023-10-21 16:41:32 -07:00
Preet c2867c9a93 defined split array 2023-10-21 16:15:41 -07:00
Preet 14bca119f7 update rough to include hetrogeneous curves 2023-10-21 16:04:06 -07:00
d2a508104e fix: Better fill rendering with latest RoughJS (#7031)
Co-authored-by: dwelle <luzar.david@gmail.com>
2023-10-20 15:08:24 +02:00
79989fedda chore: bump roughjs version (#4386)
Co-authored-by: dwelle <luzar.david@gmail.com>
2021-12-11 22:46:44 +01:00
PreetandGitHub 07839f8d20 perf: Reduce SVG export size by more than half by reducing precision to 2 decimal places (#3567)
* render svg with a specified precision

* moved precision to a constant

* fix test case  to use rounded values
2021-05-11 19:35:35 -07:00
PreetandGitHub f4fefbcee8 feat: Better rendering of curved rectangles (#3562) 2021-05-10 12:41:17 +02:00
PreetandGitHub 584e4182a7 Ensure arrows are not draggable from inside (#1620) 2020-05-21 21:57:54 +02:00
PreetandGitHub 9ac79061fa Bump roughjs and resolve breaking change in roughjs refactoring… (#1463)
* Fix for roughjs refactoring curve-estinmation code into a separate package

* Update jest transformIgnorePatterns
2020-04-20 19:43:06 +02:00
PreetandGitHub 2852610960 bump roughjs version (#1332) 2020-04-09 11:12:01 +02:00
PreetandGitHub 57bbc9fe55 Fill a looped curve with the selected background color (#1315) 2020-04-09 11:46:47 +03:00
PreetandGitHub 97b11b0f53 SVG export (#598)
* first draft of export to SVG. WIP

* enabled text rendeing - which is not quite right atm

* placeholder svg icon

* size the canvas based on the bounding box of elements

* Do not add opacity attributes if default

* render background rect

* Ensure arrows are in the same SVG group

* parse font-size from font

* export web fonts

* use fixed locations for fonts

* Rename export functions

* renamed export file

* oops broke the icon.
2020-01-28 12:25:13 -08:00
PreetandChristopher Chedeau d2a3ed7931 Bump roughjs version to fix ellipse fills (#367) 2020-01-13 21:39:42 -08:00
PreetandChristopher Chedeau 8dbd1b80df Update to rough.js 4.0.1 (#363)
* upgrade to latest rough.js

* remove random.ts because roughjs now supports seeding.
2020-01-13 11:04:28 -08:00