Brett Zamir
4fd4054f03
- Enhancement: Use minified version of jpicker in svg-editor
...
- Build: Update minified version of jgraduate/jpicker per linted/improved files (and add to uglify script)
- Fix: jgraduate recent regressions
- Docs: Update CHANGES
2018-05-17 17:42:46 +08:00
Brett Zamir
e252e866b7
- npm: Add uglify script
...
- Todo: Indicate to-do re: converting AppCache to sample service-worker
- Build: Update minified version of spinbtn per linted/improved file
2018-05-17 16:55:33 +08:00
Brett Zamir
fb329e4977
Merge pull request #229 from NeilFraser/deps
...
Add missing dependency
2018-05-17 15:32:20 +08:00
Brett Zamir
69f3a42aa8
Current test status: All tests passing (in at least Chrome and Firefox beta)
...
- Fix (Firefox): tspan (and textPath apparently) have no `getBBox` in Firefox, so recover (fixes FF issue with recalculate test 3: "recalculateDimensions() on text w/tspan with simple translate")
- Fix (Chrome): Chrome has a bug in not performing `removeAttribute` after `removeItem`; deal with it (though only if there is a single identity matrix) (fixes Chrome issue with recalculate test 1: " recalculateDimensions() on rect with identity matrix")
2018-05-17 15:27:38 +08:00
Brett Zamir
25b1e9be01
- Linting (ESLint): Fix other indents besides main (though continue to disable check)
2018-05-17 13:15:20 +08:00
Brett Zamir
fff77db4f1
Test summary: two tests failing: draw.js (releaseId), svgedit.recalculate (text w/tspan with simple translate)
...
- Testing: Add node-static to get tests working
- Testing: Fix timing for ensuring expanding iframe size to fit content
- Testing: Add favicon to test files
- Refactoring: Move scripts to own files and lint
2018-05-17 12:57:51 +08:00
Brett Zamir
a3b3525789
- Linting (ESLint): Finish
...
- Fix: Globals (x, y) in `mouseMove`
- Fix: Global (element, d_attr->dAttr) in `mouseDown`
- Fix: Avoid `drawnPath` not defined error
- Docs: sp.
2018-05-17 11:34:21 +08:00
Brett Zamir
eba9dee54c
- Linting (ESLint): Finish `editor/svg-editor.js`; unfinished: `editor/svgcanvas.js`
...
- Fix: Restore save alert
2018-05-16 16:03:43 +08:00
Brett Zamir
340915be4e
- Linting (ESLint): Finish extensions and most files in editor/; unfinished: `editor/svg-editor.js`, `editor/svgcanvas.js`
...
- Linting (ESLint): Fix ignore file paths
- History `elem` fix
2018-05-16 12:08:41 +08:00
Brett Zamir
15331535f8
- jgraduate->jpicker: Fix Throw Error object of Invalid Mode instead of string
...
- jgraduate->jpicker: Fix missing `var` for some i loops
- jgraduate->jpicker: Fix Color val check when `name.length` is empty (equal to "all")
- jquery.jgraduate.js: Fix `numstops` is present for check
- Linting: ESLint; unfinished: editor/extensions/, editor/ (root), test/ (root) HTML
2018-05-15 23:10:20 +08:00
Brett Zamir
5894398c36
- Linting: ESLint (or ignore) JavaScript files; unfinished: editor/jgraduate and editor/extensions folders, editor/ (root), test/ (root) HTML
...
- Fix: An apparent bug in jquery.svgicons.js whereby a variable `holder` was declared in too nested of a scope
- Fix: `addBezierCurve` in canvg.js had undeclared `i`
- Fix: Undeclared variable in opera widget
- Fix: Screencast `showNotes`
2018-05-13 18:47:00 +08:00
Brett Zamir
820964334c
- Fix: Broken lv locale, inconsistent tabs/spaces pt-PR
...
- Linting: Add ESLint script and devDeps and begin ESLint conversion (completed locales and jspdf directories only)
2018-05-13 11:03:45 +08:00
Brett Zamir
38d6274723
- Linting (HTML): Use double-quotes for attributes, remove redundant `type=text/css`,
...
indent/lbs, consistent non-use of HTML namespace, consistent indents, consistent charset
casing
- Linting (Markdown): Add `.remarkrc`, use proper hierarchical headings, use consistent
heading format, trailing spaces
- `composer.json`: consistent property spacing
- License: Add `.txt` extension, update copyright date, and reflect type (MIT) in file name
- Credits: Add self
- npm: Add `package.json` (version 3.0.0-alpha.1 for npm release only; just reserving name)
2018-05-13 09:58:13 +08:00
Neil Fraser
6aced017ea
Add missing dependency
...
HistoryRecordingService is required at line 400.
2018-05-10 12:07:44 -07:00
Igin
edb8a75402
fix #222 Browsers block data URI ( #224 )
...
* fix #222 Browsers block data URI
* add spaces and blank lines
2018-04-12 11:00:52 -07:00
Jeff Schiller
396cce40eb
Merge pull request #208 from iuyiuy/setSvgString_without_undo
...
Add ability to set the svg drawing without adding to the undo stack.
2018-02-27 07:04:09 -08:00
KB Jørgensen
64759a8cab
Added documentation for the preventUndo parameter in the svgcanvas.setSvgString() function.
2018-02-27 11:21:07 +01:00
Jeff Schiller
aadb85a9b7
Merge pull request #158 from iuyiuy/improved_transform_list_detection
...
Improved transform list detection.
2018-02-26 20:39:27 -08:00
Philip Rogers
f5f9e627d7
Update pathseg.js to fix Firefox 59+ path editing
...
Firefox 59 removed some SVG path seg APIs which breaks path editing.
This change updates pathseg.js to the latest version which contains a fix for Firefox 59. I checked that Firefox 58 (pre-api-change), Firefox 59 (post-api-change), Chrome 65, and Safari Tech Preview can all edit paths correctly with this change. This change has a lot of diffs due to minor changes in pathseg.js since the first time it was imported into svgedit.
This fixes issue #216
2018-02-26 18:10:26 -08:00
KB Jørgensen
d3ed6cbb8c
Changed code style as requested in svgedit pull request #208 .
2018-01-26 15:11:41 +01:00
KB Jørgensen
07803fd1db
Add ability to set the svg drawing without adding to the undo stack.
2018-01-22 11:40:00 +01:00
KB Jørgensen
42bcd5bcf8
Fixed typo in comment.
2018-01-22 10:15:59 +01:00
KB Jørgensen
e055468f77
Added comment to explain meaning of a regex.
2018-01-22 10:15:59 +01:00
KB Jørgensen
055198e28d
Use a variable for the key, as requested by codedread.
2018-01-22 10:15:59 +01:00
KB Jørgensen
19170116ba
Fixed handling of connectors after the new clipboard changes.
2018-01-22 10:15:59 +01:00
KB Jørgensen
524f47cab9
Let the 'this' keyword propagate in to the for each loop.
2018-01-22 10:15:59 +01:00
KB Jørgensen
02c8721c2d
Implemented a clipboard that works across tabs and windows.
2018-01-18 14:02:03 +01:00
codedread
6f7aa650f8
Allow data- attributes in the sanitize whitelist. Fixes issue #203 .
2017-11-29 07:52:02 -08:00
Jeff Schiller
cba2d0aa1e
Merge pull request #195 from TijoloAzul/master
...
Bug importing complex paths to svg edit
2017-11-28 00:00:50 -08:00
Teemu Koivisto
6ee97e0d3f
Fix broken saving of svg in Chrome >=60
2017-11-27 19:49:34 +02:00
Tiago Fonseca
c761cb68b7
correct import of paths with several "M/m" and "Z/z"
2017-10-04 12:15:43 +01:00
KB Jørgensen
92719c1bce
Improved transform list detection.
2017-01-04 12:28:09 +01:00
KB Jørgensen
aafcbb694e
Log errors from extensions to the browser console.
2016-11-21 15:45:43 +01:00
Jeff Schiller
97f5127e81
Merge pull request #130 from iuyiuy/addSvgElementFromJson_expansion
...
Add svg element from json expansion
2016-11-15 05:57:26 -08:00
KB Jørgensen
b92024eca2
Adjusted requested code styling changes.
2016-11-15 09:27:31 +01:00
Jeff Schiller
f7a1d2eb81
Merge pull request #148 from iuyiuy/optimized_loading
...
Optimized loading by removing unnecessary code
2016-11-14 08:17:10 -08:00
KB Jørgensen
c65f98b0ba
Split code for added clarity.
2016-11-14 10:08:06 +01:00
KB Jørgensen
4994deb6ec
Removed redundant function name.
2016-11-14 10:06:05 +01:00
KB Jørgensen
0bf50b0b42
Added description of the new children option to the addSvgElementFromJson() function.
2016-11-14 09:54:53 +01:00
Jeff Schiller
627d038e33
Merge pull request #142 from iuyiuy/null_stroke_fix
...
Fixed an issue where resizing an element would set stroke="null" on it.
2016-11-11 10:09:06 -08:00
Jeff Schiller
8f73ae16bb
Update svgcanvas.js
2016-11-11 10:08:38 -08:00
Jeff Schiller
0108115b41
Merge pull request #138 from sbrown345/master
...
Fixed call to createSVGRect in getIntersectionList
2016-11-11 10:06:55 -08:00
Jeff Schiller
9b80e65828
Merge pull request #127 from iuyiuy/upstream_issue_93
...
Fix for issue #93 - svgEditorReady event is not triggered in an iframe.
2016-11-11 08:50:30 -08:00
Jeff Schiller
90b8837aa2
Merge pull request #111 from q2apro/patch-1
...
Improved DE translation
2016-11-11 08:49:01 -08:00
KB Jørgensen
6f2822fac8
Removed code which went through all nodes and recalculated dimensions,
...
which was a lot of work for large svg drawings. There's no need to do
that when loading. It will happen gradually when you use it and on
manageable parts. This changed the loading time for a page with svg-edit
and a large drawing from ~50 secs to ~5 secs.
2016-11-11 15:46:51 +01:00
KB Jørgensen
b2469d27d5
Fixed an issue where resizing an element would set stroke="null" on it.
2016-10-12 10:37:50 +02:00
Simon Brown
b9549e1d43
fixed call to createSVGRect in getIntersectionList
...
createSVGRect() does not have parameters, they must be set on the object after
https://developer.mozilla.org/en/docs/Web/API/SVGSVGElement
2016-09-14 18:44:09 +01:00
Sylvain Chiron
644f5c2448
Updated/reviewed French translation
...
Signed-off-by: Sylvain Chiron <chironsylvain@orange.fr>
2016-08-12 23:34:05 +02:00
KB Jørgensen
e79db0f2a6
Added ability to create a text node with just a string in addSvgElementFromJson().
2016-08-08 16:32:59 +02:00
KB Jørgensen
b301acf716
Added ability to include children in the json to addSvgElementFromJson().
2016-08-05 14:29:58 +02:00