Commit Graph

552 Commits

Author SHA1 Message Date
shanyue
7c6085e7b9 fix(svgcanvas): Handle 'none' stroke color in SVG elements (#1084)
This update modifies the stroke color handling in both the SvgCanvas and ext-connector modules. When the stroke color is set to 'none', it now correctly assigns an empty string or 'none' instead of a hex value, ensuring proper rendering of SVG elements without strokes.
2026-03-16 16:08:34 +01:00
JFH
d405708005 added translations 2025-12-07 19:21:56 +01:00
JFH
7ca39b6471 add flip buttons
also update svgedit.css
2025-12-07 18:56:10 +01:00
JFH
370ba56ff0 Simplify publish process 2025-12-07 18:20:29 +01:00
JFH
fa380402e1 increase test coverage
extend test coverage
2025-12-07 10:56:29 +01:00
JFH
a37fbac749 migration to vite/playwright 2025-11-30 19:10:16 +01:00
JFH
babd3490c9 Nov25 fixes (#1072)
* update deps
* fixes #963 and #1061
* fix the issue #974
* update test
2025-11-27 18:10:49 +01:00
Qscy
03355487ee Add Alt + Wheel Zoom Shortcut & Fix Localization for Panning & Update zh-CN locale (#1067)
* Add a new shortcut( Alt + wheels ) for zoom in/out

* update zh-CN locale

* Fix a ext-panning problem cound not fit locale

* Style for passing linter
2025-09-11 19:48:42 +02:00
JFH
865d1bea33 Prefer href to xlink href (#1059) 2025-06-09 16:59:29 +08:00
JFH
8b55657c70 add cursors svg 2025-03-30 17:15:55 +02:00
Michael S. Scherotter
5c05fd77bc Fixed bug in Editor.loadFromURL where the promise was not resolving (#1040) 2025-03-26 08:08:41 +01:00
Michael S. Scherotter
f4a66c989c Fixed bug in ext-opensave.js when dropping text. (#1038) 2025-03-23 08:11:39 +01:00
JFH
56296446ba consider pathedit mode when zooming (#1035)
* consider pathedit mode when zooming
* new helper function and style improvements
* update dependencies
2025-03-16 11:58:39 +01:00
S1NJED
1b847fa20c Fix gradient (#1033)
* fix: color picker popup duplicate

Signed-off-by: sinjed <oooguuh@gmail.com>

* removed console log

Signed-off-by: sinjed <oooguuh@gmail.com>

* lint

Signed-off-by: sinjed <oooguuh@gmail.com>

---------

Signed-off-by: sinjed <oooguuh@gmail.com>
2025-03-12 09:22:33 +01:00
Michael S. Scherotter
61e8d439c4 Fixed issue in EditorStartup.init() where $qq will not work if the editor is in a Web Component (#1028)
* Added alt tags to img elements.

* fixed lint issues

* Changed the SESpinInput to have a closed shadow DOM to fix the duplicate label id issue reported in browser.

* Fixed code in EditorStartup that fails if the editor is in a Web Component.  $qq will not find the .svg_editor, but this.$container will.

* fix linter issue

* update packages

* remove closed as this causes the test to fail.

---------

Co-authored-by: JFH <20402845+jfhenon@users.noreply.github.com>
2025-03-09 21:41:41 +01:00
S1NJED
25e0d91add Fix: color picker value wont change after selecting a new element (#1030)
* fix: color picker failed to update when selecting a new element
Signed-off-by: S1NJED <oooguuh@gmail.com>
2025-03-09 19:19:43 +01:00
Michael S. Scherotter
5ad039a693 Added alt tags to img elements (#1026) 2025-03-02 14:30:07 +01:00
JFH
346378ead6 convert to base64 before export as CORS restrictions would break the export of linked images (#1003) 2024-10-26 19:26:11 +02:00
Shivang Patel
29216f4f68 fix(config): Fix modifying array values, such as for dimensions (#999) 2024-10-21 22:35:03 +02:00
Venissa
49dd041bc0 Merge layer_view extension (#995)
* Add tested version of layer_view extension

* Fix linting errors

* Modify button style to SVG-Edit colour palette
2024-09-27 20:00:28 +02:00
Venissa
59690cd5f0 Populate layers after new file is opened (#993) 2024-09-20 19:53:59 +02:00
JFH
23c6bc2e23 September updates (#992)
* fix deprecated apple-mobile -web-app-capable
* fix issue #974
* update dependencies
* fix a trailing space for points
* fix issue with tspan recalculation
2024-09-16 13:13:05 +02:00
w8w8w8
e81a4f8ba9 Update LayersPanel.js (#981)
* Update LayersPanel.js

fix the eye icon lost at right layers

* Update LayersPanel.js

---------

Co-authored-by: JFH <20402845+jfhenon@users.noreply.github.com>
2024-07-05 00:10:05 +02:00
Paul Korecky
6eafa75325 fix double binding of shortcut "d" (#972) 2024-05-26 14:09:22 +02:00
Kamil
a4dc7f7396 Update lang.ru.js (#966) 2024-04-25 16:00:10 +02:00
olekhshch
77b7bd95b7 Enhancement: Eyedropper (#948)
* cursor helper

* shortcuts

* Helper styling

* linter fix

* dasharray param fix
2024-01-30 08:14:17 +01:00
olekhshch
9f77e9c63a fix #832, floating btns closing, Esc to close confirmation dialog, 0x0 rects disabled (#947) 2024-01-20 22:53:20 +00:00
olekhshch
f75d1a83a0 Cursors, Esc to cancel active tool (#946)
* basic drawing cursors

* Esc to cancel tool, I shortcut bug fix

* panel btns hover animation

* minor changes

* Linter fix

* update packages

* remove NYC coverage causing build errors
would be nice to find out a replacement or a fix

---------

Co-authored-by: JFH <20402845+jfhenon@users.noreply.github.com>
2024-01-17 15:19:37 +01:00
Mo'ath Zaghdad
24f78d3d0f fix: Call zoomChanged event after updating the zoom (#940)
The zoomChange method was not being called on the extensions, and this
commit fixes this by calling the runExtensions method after updating the
zoom.
This commit addresses issue SVG-Edit/svgedit#896
2024-01-14 23:21:05 +01:00
olekhshch
19403a2755 Panning, modeChange Event, minor changes (#939)
* mode event, panning cursor

* Panning shortcuts(space,wheel), undo shortcut

* Undo/redo shortcuts, svgcanvas changes added to the main file

* minor refactoring
2023-12-28 11:20:26 +01:00
olekhshch
d502525cc0 Bottom panel styling, more adaptive palette, shortcuts (#937) 2023-12-24 01:48:27 +01:00
JFH
f0e4407f44 Fix export (#936)
* fix export

* improve dialog and fix quality
2023-12-10 10:52:20 +01:00
JFH
ec3e0522df Fixes issue with xy panel (#935)
* update deps

* fixes #930

* update workflow

* Update TopPanel.js

* fix side effects

* Update utilities-performance.cy.js
2023-12-09 17:17:10 +01:00
JFH
94068b80b7 package updates 2023-10-12 23:03:50 +02:00
Mo'ath Zaghdad
0895235c17 fix: Enhance text properties for multiple selected elements (SVG-Edit/svgedit#918) (#919)
* fix: Enhance text properties for multiple selected elements (SVG-Edit/svgedit#918)

This commit addresses issue SVG-Edit/svgedit#918 by improving
text property handling when multiple elements are selected.
You can now set Bold, Italic, Text-Decoration, Text-Anchor,
Letter-Spacing, Word-Spacing, Text Length, and Length Adjust.

* Update Editor.js

---------

Co-authored-by: JFH <20402845+jfhenon@users.noreply.github.com>
2023-09-18 12:38:41 +02:00
JFH
24b8f74c4d Connector extension (#916)
* npm update
* move connector extension back
2023-08-25 23:47:16 +02:00
JFH
ca21e83365 Refresh dependencies (#913)
* update dependencies

* fix lint issues
2023-07-25 12:23:10 +02:00
JFH
420861f408 update npm packages, refresh ar language. (#901)
* update npm packages

* Update lang.ar.js

* fix linter issues

* update version to publish

---------

Co-authored-by: Abdelmjid Saber <87904671+abdelmjid-saber@users.noreply.github.com>
2023-05-28 09:36:05 +02:00
Mo'ath Zaghdad
0c0663eb34 fix: Correct a condition that gets the width value on the Image-Properties (#880) 2023-01-29 19:21:51 +01:00
Liubomyr Vyhovskyi
230331b36e fix(se-zoom): fix missing arrow_down.svg icon (#874) 2023-01-20 00:24:39 +01:00
JFH
5682e8c596 update react test (#870) 2023-01-09 14:53:00 +01:00
Liubomyr Vyhovskyi
990cc58260 feat(locale): add Ukrainian language translations (#859)
Co-authored-by: JFH <20402845+jfhenon@users.noreply.github.com>
2022-12-14 17:23:55 +01:00
Liubomyr Vyhovskyi
476b2a178c feat(locale): add Swedish language translations (#860)
* feat(locale): add Swedish language translations

* add missing labels
2022-12-14 15:28:27 +01:00
bluetwelve
bb3a9b105f fix bug where font family select doesn't update the Top Panel dropdown (#853) (#856) 2022-11-28 17:57:12 +01:00
JFH
00a7d61122 Update packages and remove the instrument step (#854)
* several updates
* avoid the instrumented step in tests
2022-11-27 23:01:27 +01:00
cg-scorpio
8350b97875 Enhancement: add a parameter to the importSvgString function in order… (#842)
* Enhancement: add a parameter to the importSvgString function in order to permit to decide if the importation should apply a transformation on the imported element or not

* allow user to import SVG preserving the dimension

Co-authored-by: JFH <20402845+jfhenon@users.noreply.github.com>
2022-10-16 23:30:44 +02:00
JFH
43bf93968a separate svgcanvas from svgedit
now you can use directlt svgcanvas. see readme.md

* configure workspaces
* move svgcanvas to packages folder
* move utils to common and paint to svgcanvas
* make svgcanvas a dependency of svgedit
* update deps
* workspaces requires npm 7 at least so the ci needs a new node version
* update github actions to V3
* update snapshots using custom svg exports
* remove unmaintained cypress snapshot plugin
* new github action to add coverage in PR
* Update onpushandpullrequest.yml
* svgcanvas v7.1.6
2022-08-14 15:01:51 +02:00
radasam
ad1b9df6a5 Fix: Zoom selector rewrite (#826) 2022-08-08 01:09:13 +02:00
Thakur Karthik
f9fe802dcd refactor se-list and se-list-item (#827) 2022-08-08 01:05:22 +02:00
pmkrawczyk
de9df3871f Enable text tool panel wen multiple text elements are selected. (#822)
* Update TopPanel.js

Enable text tool panel wen multiple text elements are selected.

* Fix linter error

* Update TopPanel.js

Refactor code per suggestion
2022-07-28 15:58:24 +02:00