Git Product home page Git Product logo

svgedit's Introduction

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 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/[email protected]/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

svgedit's People

Contributors

codedread avatar fyrd avatar brettz9 avatar jfhenon avatar agriyadev5 avatar prusnak avatar delapouite avatar staldert avatar cuixiping avatar progers avatar antimatter15 avatar adrianbj avatar mathieucura avatar flintobrien avatar iuyiuy avatar asyazwan avatar magnebra avatar neilfraser avatar ibrierley avatar wschleter avatar aguirrel2 avatar rafaelcastrocouto avatar waldyrious avatar jbrookover avatar marclaporte avatar flexy-recruitment-backend avatar bluetwelve avatar tdittmann avatar bcw104 avatar mibi88 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.