Commit graph

95 commits

Author SHA1 Message Date
Rob Nadal
00c8fa83c2 Bezier-rs: Convert to_svg used in subpaths to match style used in beziers (#854)
Converted subpath::to_svg to Bezier style
2022-11-14 22:37:06 -08:00
Keavon Chambers
c4d14eed16 Update frontend and bezier-rs demo npm dependencies 2022-11-08 15:11:53 -08:00
Rob Nadal
56060b8e5f Bezier-rs: Added curve outline functions (#789)
* Implement offset and reverse

Co-authored-by: Rob Nadal <robnadal44@gmail.com>

* Initial work on graduated outline

Co-authored-by: Rob Nadal <robnadal44@gmail.com>

* Handle linear case for graduated scale

* Added skewed outline, fixed graduated scale hourglass bug

* Removed test code

* Update comments

* Fix linting issue

* Improve comments

* Comment fixes

Co-authored-by: Hannah Li <hannahli2010@gmail.com>
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2022-11-06 21:25:00 -08:00
Hannah Li
a695584d36 Bezier-rs: Add a pivot point to the 'rotate' function (#792)
* Add function to rotate around a point

* Update svg

* Improve rotation line-to-center styling

* Add second angle of lines

Co-authored-by: Keavon Chambers <keavon@keavon.com>
2022-11-06 20:52:58 -08:00
Linda Zheng
9eb2b9f6a3 Bezier-rs: Convert 'arcs' wasm function from canvas to SVG rendering (#833)
* Convert rotate demo to svg

* Fix bugs in rotate

* Fix bugs in rotate

* Draft of decasteljau to svg

* fixed de casteljau points to_svg impl

* clean up wasm impl for de casteljau points

* Use svg format in wasm for arcs

* Update app.vue

* Fix arcs as svg

Co-authored-by: Linda Zheng <ll2zheng@uwaterloo.ca>

* Remove comments

* Reduce code duplication

Co-authored-by: Thomas Cheng <contact.chengthomas@gmail.com>
Co-authored-by: Hannah Li <hannahli2010@gmail.com>
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2022-11-06 23:04:30 -05:00
Linda Zheng
398f6618e4 Bezier-rs: Convert 'rotate' and 'de casteljau' wasm functions from canvas to SVG rendering (#793)
* Convert rotate demo to svg

* Fix bugs in rotate

* Fix bugs in rotate

* Draft of decasteljau to svg

* fixed de casteljau points to_svg impl

* clean up wasm impl for de casteljau points

* Address Hannah's comments

* Nits

Co-authored-by: Thomas Cheng <contact.chengthomas@gmail.com>
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2022-11-06 21:34:53 -05:00
Jackie Chen
4483e98f21 Bezier-rs: Convert intersection functions to SVG (#791)
* Break handle of path being drawn by placing anchor on previous anchor with Pen tool (#814)

* Break path by placing anchor on previous one

* Fix offset on click without dragging

* Fix bug where ids reassigned from saved document

* Fix stuck overlay

Co-authored-by: Keavon Chambers <keavon@keavon.com>

* convert intersection functions to svg

* fixed nits

Co-authored-by: 0HyperCube <78500760+0HyperCube@users.noreply.github.com>
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2022-11-06 18:14:44 -08:00
Keavon Chambers
16afe91944 Change favicon/app manifest theme color to white 2022-11-06 01:55:48 -07:00
Keavon Chambers
0f0d30eb9a Add building instructions to the website contribute page 2022-10-14 10:09:37 -07:00
Brian Wo
197ec492f2 Fix wrong hyperlink on website home page (#785)
Fix wrong url path in website
2022-10-09 06:44:04 +08:00
Thomas Cheng
dccff784c5 Convert reduce() and offset() Bezier-rs wasm demo functions to render as SVG (#783)
* convert reduce and offset wasm func to return svg

* address comments
2022-10-05 23:54:02 -04:00
Hannah Li
55f6d13daf Bezier-rs: continue converting demos from canvas to SVG (#779)
* Convert constructor to use svg

* Convert the through_points functions to svg

* Convert length, lut, derivative, and tangent from canvas to svg

* Fixed bug when t1 == t2 in split

* Converted split and trim to use svg representation, and swapped slider options default to use quadratic options

* Convert normal and curvature to use svg representation in bezier-rs-demos

* Convert the project function to use svg representation in bezier-rs-demos

* Convert the local_extrema, bbox, and inflections to use svgs

* Add text offset constants

* Fix typo

Co-authored-by: Robert Nadal <Robnadal44@gmail.com>
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2022-09-27 17:37:30 -07:00
Hannah Li
e9cd792635 Bezier-rs: Convert from canvas to svg for constructors (#776)
* Convert constructor to use svg

* Convert the through_points functions to svg

Co-authored-by: Keavon Chambers <keavon@keavon.com>
2022-09-26 19:14:27 -07:00
Keavon Chambers
8dce2144c4 Add website link prompting to subscribe to the newsletter 2022-09-25 01:45:59 -07:00
Keavon Chambers
ab75f0fbfb Improve the website and readme with details and cleanup 2022-09-16 01:29:33 -07:00
Keavon Chambers
655831eedf Improve wording on the website home page; add a volunteer icon 2022-09-04 14:31:08 -07:00
Hannah Li
f74b6ed111 Refactor bezier-rs' to_svg functionality (#758)
* Change Bezier to_svg to include handles and endpoints

* Move params into brackets of format macro, remove unused comment

* Use write macro instead of format

* Fix path for watched directory

* Refactor functions to remove ToSVGOptions
2022-09-01 23:13:39 -04:00
Keavon Chambers
33cb6fcb00 Remove usage of 'null' in favor of 'undefined' 2022-08-25 21:32:27 -07:00
Keavon Chambers
3a84de32ac Clean up MenuList types and fix many Vue and Clippy warnings
Also remove hard-coded-in-Vue Graphite logo in the menu bar in favor of a Rust definition.
2022-08-25 14:41:16 -07:00
Keavon Chambers
1a90a4db86 Clean up camelCase and snake_case in frontend code 2022-08-23 13:36:27 -07:00
Hannah Li
49c236fcc2 Divide the large Bezier-rs implementation file into smaller ones (#751)
* Refactor bezier lib file into a separate folder

* Add better implementation comments

* Update import of Subpath from bezier-rs

* Add comment to describe compare.rs

* Remove printlns and adjust spacing
2022-08-18 18:47:36 -04:00
Keavon Chambers
4412b983cd Move bezier-rs into libraries folder and deploy its interactive docs 2022-08-14 16:17:27 -07:00
Keavon Chambers
dc0b38750c Update npm dependencies 2022-07-23 15:31:02 -07:00
Oliver Davies
03633bf313 Rename vector components to match new terminology (#719)
* Renamed VectorAnchor, VectorShape and VectorControlPoint. Also fixed other naming inconsistencies.

* Renamed messages relating to vector and updated naming in several tools

* Renamed comments + caught a few areas I had missed.

* Caught a few more incorrect names

* Code review pass

* Review changes

* Fixed warning

* Additional review feedback

Co-authored-by: Keavon Chambers <keavon@keavon.com>
2022-07-12 17:59:06 -07:00
Keavon Chambers
d12d805e2f Fix website styling 2022-05-25 00:27:07 -07:00
Keavon Chambers
ea0dbd1290 Add code style formatting to the website 2022-06-16 22:57:15 -07:00
Keavon Chambers
0f93cc1e17 Update banner for the lastest blog post 2022-06-06 16:09:42 -07:00
Keavon Chambers
c4dc999a38 Update readme 2022-05-25 00:27:29 -07:00
Keavon Chambers
d5b43ef2da Add frontend file structure docs and some related cleanup 2022-05-23 19:13:51 -07:00
Keavon Chambers
3480cc93d9 Fix website rendering issues on Firefox with -webkit-line-clamp 2022-05-12 13:34:26 -07:00
Keavon Chambers
ff57fef77c Fix website responsive layouts 2022-05-12 13:08:53 -07:00
Keavon Chambers
3673490990 Add Reddit and Twitter links to blog posts 2022-05-12 01:15:56 -07:00
Keavon Chambers
13417b26e7 Fix website URL encoding in certain links 2022-05-12 01:04:23 -07:00
Keavon Chambers
44f3ad27ec Blog post updates 2022-05-12 00:45:20 -07:00
Keavon Chambers
b24d280d81 Clean up website file structure 2022-05-10 11:35:39 -07:00
Keavon Chambers
bbe94e35cb New blog post: "Distributed computing with the Graphene runtime" 2022-04-16 11:06:26 -07:00
Keavon Chambers
e4b2cb2f53 Expand upon the "Announcing Graphite alpha" blog post 2022-04-14 10:19:09 -07:00
Keavon Chambers
9ced465150 Add node graph mockup to website 2022-03-25 02:11:31 -07:00
Keavon Chambers
f6726c1427 Various website fixes 2022-03-17 02:12:23 -07:00
Keavon Chambers
36d67393b9 Small website text improvements 2022-03-15 16:06:09 -07:00
Keavon Chambers
593aa99ffa Add features page and fixes to website 2022-03-13 11:32:53 -07:00
Keavon Chambers
d4f62ba01d Add website revisions and many new pages 2022-03-12 08:31:12 -08:00
Keavon Chambers
8c248f386e Add newsletter signup to website 2022-02-19 03:31:02 -08:00
Keavon Chambers
248e2ab0d1 Website responsive resizing improvements 2022-02-19 02:15:28 -08:00
Keavon Chambers
3f79df7314 Create project website with near-complete home page 2022-02-17 02:44:02 -08:00