React test (#700)
* first commit for react-test * Update selection.js * small arrangements to archived files * prepare for PR
This commit is contained in:
25
README.md
25
README.md
@@ -3,19 +3,10 @@
|
||||
# SVGEdit
|
||||
|
||||
[](https://www.npmjs.com/package/svgedit)
|
||||
[](https://david-dm.org/SVG-Edit/svgedit)
|
||||
[](https://david-dm.org/SVG-Edit/svgedit?type=dev)
|
||||
|
||||
<!-- [](https://github.com/SVG-Edit/svgedit/actions)
|
||||
[](https://github.com/SVG-Edit/svgedit/actions)
|
||||
-->
|
||||
[](badges/tests-badge.svg)
|
||||
[](badges/coverage-badge.svg)
|
||||
|
||||
[](https://github.com/SVG-Edit/svgedit/actions)
|
||||
[](https://snyk.io/test/github/SVG-Edit/svgedit)
|
||||
[](https://lgtm.com/projects/g/SVG-Edit/svgedit/alerts)
|
||||
[](https://lgtm.com/projects/g/SVG-Edit/svgedit/context:javascript)
|
||||
|
||||
[](https://issuehunt.io/r/SVG-Edit/svgedit)
|
||||
|
||||
SVG-edit is a fast, web-based, JavaScript-driven SVG drawing editor that
|
||||
@@ -65,6 +56,20 @@ 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
|
||||
* Participate in [discussions](https://github.com/SVG-Edit/svgedit/discussions)
|
||||
* See [AUTHORS](AUTHORS) file for authors.
|
||||
|
||||
Reference in New Issue
Block a user