Go to file
pmkrawczyk cdc85a515b
Fix image paths (#813)
* Update seExplorerButton.js

* Update seFlyingButton.js

* Fix linter
2022-07-05 22:02:32 +02:00
.github Codeql to ignore archive folder (#722) 2022-02-01 10:55:11 +01:00
archive React test (#700) 2022-01-08 22:41:33 +01:00
badges restore 2 tests and fix snapshot 2021-05-31 00:10:26 +02:00
cypress cypress 10 migration (#777) 2022-06-18 10:32:27 +02:00
demos move to standard linter for simpler configuration 2021-12-28 11:02:29 -03:00
docs fix to doc and config 2022-06-25 23:07:06 +02:00
src Fix image paths (#813) 2022-07-05 22:02:32 +02:00
.editorconfig - Docs: Update testing info; update CHANGES 2020-02-20 12:31:06 +08:00
.gitignore fix to doc and config 2022-06-25 23:07:06 +02:00
.npmignore fix to doc and config 2022-06-25 23:07:06 +02:00
AUTHORS tr translation finished (#760) 2022-05-08 23:41:20 +02:00
CHANGES.md 7.1.4 2022-06-25 22:32:46 +02:00
CODE_OF_CONDUCT.md prepare requirements for netlify 2020-09-13 12:44:35 +02:00
FUNDING.yml React test (#700) 2022-01-08 22:41:33 +01:00
LICENSE-MIT.txt - Linting (HTML): Use double-quotes for attributes, remove redundant `type=text/css`, 2018-05-13 09:58:13 +08:00
README.md Update README.md 2022-02-01 10:21:37 +01:00
babel.config.json update dependencies 2021-11-01 20:27:52 +01:00
composer.json minor adjustments for release 2021-11-08 10:13:55 +01:00
cypress.config.js cypress 10 migration (#777) 2022-06-18 10:32:27 +02:00
lgtm.yml fix several configuration issue and linter 2021-05-19 23:09:40 +02:00
licenseInfo.json #104 deparam changed ref: https://www.sitepoint.com/get-url-parameters-with-javascript/ 2021-05-27 14:17:01 +05:30
netlify.toml build master with netlify 2021-05-09 22:57:43 +02:00
nyc.config.js move to standard linter for simpler configuration 2021-12-28 11:02:29 -03:00
package-lock.json 7.1.4 2022-06-25 22:32:46 +02:00
package.json 7.1.4 2022-06-25 22:32:46 +02:00
rollup.config.js update dependencies (#764) 2022-05-16 09:38:45 +02:00
web-dev-server.config.mjs update dependencies (#764) 2022-05-16 09:38:45 +02:00

README.md

SVGEdit

npm Actions Status Known Vulnerabilities Total Alerts Code Quality: Javascript

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

screenshot

Contributions

SVGEdit is the most popular open source SVG editor. It was started more than 10 years ago by a fantastic team of developers. Unfortunately, the product was not maintained for a quite long period. We decided to give this tool a new life by refreshing many aspects. Please let us know with an issue or a discussions if you wish to contribute.

Demo

Thanks to Netlify, you can test the following builds:

Try SVGEdit V7 (latest build)

Try SVGEdit V7 (latest published version)

Prior V7:

Try SVGEdit 6.1.0 here

Try SVGEdit 5.1.0 here

Additional tip: you may try a version released on NPM using unpkg for example with version 3.2.0: https://unpkg.com/svgedit@3.2.0/editor/svg-editor.html

Installation

Quick install

  1. Clone or copy the repository contents
  2. run npm i to install dependencies
  3. run npm run start to start a local server
  4. Use your browser to access http://localhost:8000/src/editor/index.html

Integrating SVGEdit into your own application

V7 is changing significantly the way to integrate and customize SVG-Edit. You can have a look to index.html to see how you can insert a div element into your HTML code and inject the editor into the div.

SVG-Edit is made of two major components:

  1. The "svgcanvas" that takes care of the underlying svg edition. It can be used to build your own editor. See example in the demos folder or the svg-edit-react repository.
  2. The "editor" that takes care of the editor UI (menus, buttons, etc.)

For earlier versions of SVGEdit, please look in their respective branches.

Supported browsers

Developments and Continuous Integration are done with a **Chrome** environment. Chrome, FireFox and Safari recent versions are supported (in the meaning that we will try to fix bugs for these browsers).
Support for old browsers may require 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 the project team can decide if we should support with the latest version.

Sample extension based on React

A sample React component was used to build a svgedit extension. To activate:

  • "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: Deploys by Netlify