Graphite/website/other/bezier-rs-demos
Priyanshu d22b2ca927
Refactor the Centroid node and `Subpath` struct and methods to use Kurbo, eliminating all remaining usages of Bezier-rs (#3036)
* define Subpath struct in gcore and refactor node-graph

* Refactor few methods

* refactoring worked!

* refactor centoid area and length

* remove unused

* cleanup

* fix pathseg_points function

* fix tranforming segments

* fix segment intersection

* refactor to_path_segments fn in gpath-bool crate

* refactor gcraft

* add bezier-rs dep

* Code review the editor directory

* use path-bool for solving roots

* Code review

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
2025-08-16 13:39:25 -07:00
..
public Make builds of the editor and the website serve their own local fonts (#2186) 2025-05-19 02:38:29 -07:00
src New nodes: 'Position on Path' and 'Tangent on Path' (#2588) 2025-04-16 22:50:50 -07:00
wasm Refactor the Centroid node and `Subpath` struct and methods to use Kurbo, eliminating all remaining usages of Bezier-rs (#3036) 2025-08-16 13:39:25 -07:00
.eslintrc.cjs Upgrade web dependencies 2024-09-24 01:33:12 -07:00
.gitignore Bezier-rs: Replace Vue-CLI with Webpack bundler 2023-03-29 16:58:51 -07:00
.prettierrc Fix Bezier-rs interactive demos and migrate its Webpack bundler to Vite 2024-01-04 23:13:40 -08:00
README.md Fix, document, and update npm dependencies and tooling; fix Bezier-rs demos not building (#1857) 2024-07-24 18:05:01 -07:00
index.html Make builds of the editor and the website serve their own local fonts (#2186) 2025-05-19 02:38:29 -07:00
package-installer.js Clean up web code errors and make CI enforce them 2024-09-24 01:33:02 -07:00
package-lock.json Update dependencies throughout the project (#2401) 2025-03-07 21:32:52 -08:00
package.json Update dependencies throughout the project (#2401) 2025-03-07 21:32:52 -08:00
tsconfig.json Add drag-and-drop and copy-paste file importing/opening throughout the UI (#2012) 2024-09-28 00:19:43 -07:00
vite.config.ts Fix Bezier-rs interactive demos and migrate its Webpack bundler to Vite 2024-01-04 23:13:40 -08:00

README.md

Bezier-rs interactive documentation

Open these interactive docs: https://graphite.rs/libraries/bezier-rs/

This page also serves isolated demos for iframes used in the Rustdoc crate documentation.

Building and running

Make sure Node.js (the latest LTS version) and Rust (the latest stable release) are installed on your system, and wasm-pack has been installed by running cargo install wasm-pack.

  • To run the development server with hot reloading:
    npm start
    
  • To compile an optimized production build:
    npm run build