Skip to content

Commit

Permalink
Merge pull request #690 from SVG-Edit/fix-#689
Browse files Browse the repository at this point in the history
Fix #689
  • Loading branch information
jfhenon authored Jan 2, 2022
2 parents 91294e9 + e620ef6 commit eb3567d
Show file tree
Hide file tree
Showing 20 changed files with 158 additions and 134 deletions.
3 changes: 2 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# SVG-Edit CHANGES

## 7.1.1
- Fix an issue when moving a text with an existing transformation (issue #689)
## 7.1.0
- Large refactoring of svgcanvas (a lot of remaining work with the goal to separate in its own package).This explains the move to a minor version
- move to a new linter (standard).
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,15 @@ Please let us know with an issue or a discussions if you wish to contribute.

Thanks to **Netlify**, you can test the following builds:

### [Try SVGEdit 7.1.0 here](https://svgedit.netlify.app/editor/index.html)
### [Try SVGEdit 7.1.x here](https://svgedit.netlify.app/editor/index.html)

[Try SVGEdit 5.1.0 here](https://6098683962bf91702907ee33--svgedit.netlify.app/editor/svg-editor.html)

[Try SVGEdit 6.1.0 here](https://60a0000fc9900b0008fd268d--svgedit.netlify.app/editor/index.html)

Additional tip: you may try a version released on NPM using unpkg for example with version 7.1.0:
[https://unpkg.com/[email protected]/dist/editor/index.html](https://unpkg.com/[email protected]/dist/editor/index.html)

## Installation

### Quick install
Expand Down
10 changes: 5 additions & 5 deletions cypress/integration/ui/__snapshots__/scenario3.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ exports[`use all parts of svg-edit > check tool_path_change_node_xy #0`] = `
</body>
`;

exports[`use all parts of svg-edit > check tool_path_openclose #0`] = `
exports[`use all parts of svg-edit > check tool_path_change_seg_type #0`] = `
<body>
<svg
width="640"
Expand All @@ -77,7 +77,7 @@ exports[`use all parts of svg-edit > check tool_path_openclose #0`] = `
<g class="layer">
<title>Layer 1</title>
<path
d="m201,246l-51,-146l-25,100c55.16667,65.16667 172.83333,215.33333 148.625,173c-24.20833,-42.33333 -64.29167,-106.16667 -72.625,-127z"
d="m75,75l75,25l-25,100c110.33333,130.33333 -33.33333,-83.33333 -50,-125z"
fill="#FF0000"
id="svg_1"
stroke="#000000"
Expand All @@ -88,7 +88,7 @@ exports[`use all parts of svg-edit > check tool_path_openclose #0`] = `
</body>
`;

exports[`use all parts of svg-edit > check tool_path_change_seg_type #0`] = `
exports[`use all parts of svg-edit > check tool_path_change_clone_node #0`] = `
<body>
<svg
width="640"
Expand All @@ -99,7 +99,7 @@ exports[`use all parts of svg-edit > check tool_path_change_seg_type #0`] = `
<g class="layer">
<title>Layer 1</title>
<path
d="m75,75l75,25l-25,100c110.33333,130.33333 -33.33333,-83.33333 -50,-125z"
d="m201,246l-51,-146l-25,100c55.16667,65.16667 172.83333,215.33333 148.625,173c-24.20833,-42.33333 -64.29167,-106.16667 -72.625,-127z"
fill="#FF0000"
id="svg_1"
stroke="#000000"
Expand All @@ -110,7 +110,7 @@ exports[`use all parts of svg-edit > check tool_path_change_seg_type #0`] = `
</body>
`;

exports[`use all parts of svg-edit > check tool_path_change_clone_node #0`] = `
exports[`use all parts of svg-edit > check tool_path_openclose #0`] = `
<body>
<svg
width="640"
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "svgedit",
"version": "7.1.0",
"version": "7.1.1",
"description": "Powerful SVG-Editor for your browser ",
"main": "dist/Editor.js",
"module": "dist/Editor.js",
Expand Down
2 changes: 1 addition & 1 deletion src/svgcanvas/blur-event.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let svgCanvas = null
* @param {module:blur.blurContext} blurContext
* @returns {void}
*/
export const init = function (canvas) {
export const init = (canvas) => {
svgCanvas = canvas
}

Expand Down
2 changes: 1 addition & 1 deletion src/svgcanvas/coords.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ let svgCanvas = null
* @param {module:svgcanvas.SvgCanvas#event:pointsAdded} editorContext
* @returns {void}
*/
export const init = function (canvas) {
export const init = (canvas) => {
svgCanvas = canvas
}

Expand Down
2 changes: 1 addition & 1 deletion src/svgcanvas/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ let svgCanvas
* @param {module:draw.DrawCanvasInit} canvas
* @returns {void}
*/
export const init = function (canvas) {
export const init = (canvas) => {
svgCanvas = canvas
}

Expand Down
2 changes: 1 addition & 1 deletion src/svgcanvas/elem-get-set.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ let svgCanvas = null
* @param {module:elem-get-set.elemContext} elemContext
* @returns {void}
*/
export const init = function (canvas) {
export const init = (canvas) => {
svgCanvas = canvas
}

Expand Down
Loading

0 comments on commit eb3567d

Please sign in to comment.