2017 © Pedro Peláez
 

library svgedit

SVG-edit is a fast, web-based, javascript-driven SVG drawing editor that works in any modern browser.

image

svg-edit/svgedit

SVG-edit is a fast, web-based, javascript-driven SVG drawing editor that works in any modern browser.

  • Sunday, July 29, 2018
  • by montefuscolo
  • Repository
  • 162 Watchers
  • 2214 Stars
  • 10 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 556 Forks
  • 61 Open issues
  • 5 Versions
  • 150 % Grown

The README.md

, (*1)

SVGEdit

npm Actions Status Known Vulnerabilities Total Alerts Code Quality: Javascript, (*2)

SVGEdit is a fast, web-based, JavaScript-driven SVG drawing editor that works in any modern browser. SVGEdit is based on a powerful SVG canvas @svgedit/svgcanvas, (*3)

screenshot , (*4)

Contributions

SVGEdit is the most popular open source SVG editor. It was started more than 13 years ago by a fantastic team of developers. Unfortunately, the product was not maintained for quite a long time. We decided to give this tool a new life by refreshing many aspects., (*5)

Please let us know by creating an issue or a discussion if you wish to contribute., (*6)

I want to use SVGEdit

Thanks to Netlify, you can access the following builds from your favorite browser:, (*7)

Prior to V7:

We recommend using the V7 version but for older browsers or some abandoned features, you may need to access older versions of SVGEdit., (*8)

Additional tip: you may try a version released on NPM using unpkg, for example, with version 3.2.0, (*9)

I want to host SVGEdit in my environment

If you want to host a local version of SVGEdit, please follow these instructions:, (*10)

  1. clone or copy the repository contents from github
  2. run npm i to install dependencies
  3. run npm run build --workspace @svgedit/svgcanvas to build the svgcanvas dependency locally
  4. to test, you can run npm run start to start a local server
  5. and access http://localhost:8000/src/editor/index.html with a supported browser
  6. run npm run build to build a bundle that you can serve from your own web server

I want to contribute to SVGEdit

Thanks!, (*11)

SVGEdit is made of two major components:, (*12)

  1. The "svgcanvas" that takes care of the underlying svg editor. It can be used to build your own editor
  2. The "editor" that takes care of the editor UI (menus, buttons, etc.)

You should fork SVGEdit in your github environment and install SVGEdit locally as explained above., (*13)

Before you submit your PR, please make sure you run locally:, (*14)

  1. npm run lint to check that you follow the standardjs rules (https://standardjs.com/rules) for the linter
  2. npm run test to run a suite of Cypress tests (https://www.cypress.io/)

If you intend to contribute on a regular basis, let us know so we can add you to the maintainer team., (*15)

I want to integrate SVGEdit into my own Web application

V7 is changing significantly the way to integrate and customize SVGEdit. You can have a look at index.html to see how you can insert a div element into your HTML code and inject the editor into the div., (*16)

Warning: This div can be positioned anywhere in the DOM but it must have a numeric width and a numeric height (i.e. not 'auto' which happens when the div is hidden), (*17)

<head>
   
  <link href="./svgedit.css" rel="stylesheet" media="all"></link>
</head>

<body>
  


</body> </html>

I want to build my own svg editor

You can just use the underlying canvas and use it in your application with your favorite framework. See example in the demos folder or the svg-edit-react repository., (*18)

To install the canvas:, (*19)

npm i -s '@svgedit/svgcanvas', (*20)

you can then import it in your application:, (*21)

import svgCanvas from '@svgedit/svgcanvas', (*22)

Supported browsers

Development and Continuous Integration are done with a Chrome environment. Recent versions of Chrome, FireFox, and Safari are supported (in the meaning that we will try to fix bugs for these browsers)., (*23)

To support old browsers, you may need to use an older version of the package. However, please open an issue if you need support for a specific version of your browser so that the project team can decide if we should support it in the latest version of SVGEdit., (*24)

Sample extension based on React

A sample React component was used to build a SVGEdit extension., (*25)

To activate:, (*26)

  • "npm run build" from the extension folder "src/editor/react-extensions/react-test" in order to create the bundle for the extension.
  • modify "index.html" to activate the extension as a userExtensions
svgEditor.setConfig({
          allowInitialUserOverride: true,
          extensions: [],
          noDefaultExtensions: false,
          userExtensions: ['./react-extensions/react-test/dist/react-test.js']
        })

Further reading and more information

Hosting

SVGEdit versions are deployed to:, (*27)

Deploys by Netlify, (*28)


⇈ Back to Top, (*29)

The Versions

29/07 2018

dev-master

9999999-dev https://github.com/SVG-Edit/svgedit/tree/master

SVG-edit is a fast, web-based, javascript-driven SVG drawing editor that works in any modern browser.

  Sources   Download

MIT

by Narendra Sisodiya
by Pavol Rusnak
by Jeff Schiller
by Vidar Hokstad
by Alexis Deveria
by Brett Zamir

editor svg drawing svg-edit

20/07 2018

v3.0.0-rc.1

3.0.0.0-RC1 https://github.com/SVG-Edit/svgedit/tree/master

SVG-edit is a fast, web-based, javascript-driven SVG drawing editor that works in any modern browser.

  Sources   Download

MIT

by Narendra Sisodiya
by Pavol Rusnak
by Jeff Schiller
by Vidar Hokstad
by Alexis Deveria
by Brett Zamir

editor svg drawing svg-edit

30/05 2018

v3.0.0-alpha.4

3.0.0.0-alpha4 https://github.com/SVG-Edit/svgedit/tree/master

SVG-edit is a fast, web-based, javascript-driven SVG drawing editor that works in any modern browser.

  Sources   Download

MIT

by Narendra Sisodiya
by Pavol Rusnak
by Jeff Schiller
by Vidar Hokstad
by Alexis Deveria
by Brett Zamir

editor svg drawing svg-edit

29/05 2018

v3.0.0-alpha.3

3.0.0.0-alpha3 https://github.com/SVG-Edit/svgedit/tree/master

SVG-edit is a fast, web-based, javascript-driven SVG drawing editor that works in any modern browser.

  Sources   Download

MIT

by Narendra Sisodiya
by Pavol Rusnak
by Jeff Schiller
by Vidar Hokstad
by Alexis Deveria
by Brett Zamir

editor svg drawing svg-edit

25/05 2018

v3.0.0-alpha.2

3.0.0.0-alpha2 https://github.com/SVG-Edit/svgedit/tree/master

SVG-edit is a fast, web-based, javascript-driven SVG drawing editor that works in any modern browser.

  Sources   Download

MIT

by Narendra Sisodiya
by Pavol Rusnak
by Jeff Schiller
by Vidar Hokstad
by Alexis Deveria
by Brett Zamir

editor svg drawing svg-edit