Skip to content

WebSVG/svg-edge-editor

Repository files navigation

svg-edge-editor

Live demo : https://svg-edge-editor.deno.dev/

Gif Demo

drop and parse curves

SVG import and edit edges with input SVG curves, runs as a service with proper UI

  • drag and drop and SVG file
    • Extract straight edges from all paths
  • drag and drop SVG curves
  • highlight curve
  • click on edge to assign
  • click again on edge to toggle
  • click on another curve to assign

Dev

Usage

pnpm need to be installed globally

    pnpm install
    pnpm run dev
    deno run --allow-env --allow-net --allow-read dist/server/entry.mjs

Frameworks

  • Astro.build
  • pnpm
  • SSR Mode with deno
  • tailwind web only (or fallback on solid/svelte)
  • sign-in with github
  • try aws / deno deploy

deno deploy

Features

  • Top menu with entries and sign in
  • css adjustable side menu with min max

TODO

  • improve the coordinates Offset not to be hardcoded but to the SVG Offset within the client
  • only cycle the shape when clicking on the same side

Issues

  • @astro-auth/core does not build with deno
[commonjs--resolver] Cannot bundle Node.js built-in "stream" imported from "node_modules\.pnpm\@[email protected]\node_modules\@astro-auth\core\dist\index.js". Consider disabling ssr.noExternal or remove the built-in dependency.  ncy.

About

SVG import and edit edges with input SVG curves, runs as a service with proper UI

Resources

License

Stars

Watchers

Forks