Commit Graph

42 Commits (cad412fe6e846fd2489ab80f09b3aaa0851ca5b4)

Author SHA1 Message Date
Brett Zamir a3f0b8e501 - Security fix: 'extPath', 'imgPath', 'extIconsPath', 'canvgPath', 'langPath', 'jGraduatePath', and 'jspdfPath' were not being prevented
- Breaking change: Rename "svgutils.js" to "utilities.js" (make in conformity with JSDoc module naming convention)
- Breaking change: Rename "svgedit.js" to "namespaces.js" (to make clear purpose and avoid confusing with editor)
- Breaking change: Rename "jquery-svg.js" to "jQuery.attr.js"
- Breaking change: Rename "jquery.contextMenu.js" to "jQuery.contextMenu.js"
- Breaking change: Rename "jquery.jpicker.js" to "jQuery.jPicker.js"
- Breaking change: Rename "JQuerySpinBtn.css" to "jQuery.SpinButton.css"
- Breaking change: Rename "JQuerySpinBtn.js" to "jQuery.SpinButton.js" (to have file name more closely reflect name)
- Breaking change: Rename "jquery.svgicons.js" to "jQuery.svgIcons.js"
- Breaking change: Rename "jquery.jgraduate.js" to "jQuery.jGraduate.js"
- Breaking change: Rename "pathseg.js" to "svgpathseg.js" (as it is a poyfill of SVGPathSeg)
- Breaking change: Rename `addSvgElementFromJson()` to `addSVGElementFromJson` for consistency
- Breaking change: Rename `changeSvgContent()` to `changeSVGContent()` for consistency
- Breaking change: Have `exportPDF` resolve with `output` and `outputType` rather than `dataurlstring` (as type may vary)
- Breaking change: Rename `extensions/mathjax/MathJax.js` to `extensions/mathjax/MathJax.min.js`
- Breaking change: Avoid recent change to have editor ready callbacks return Promises (we're not using and advantageous to keep sequential)
- Breaking change: Avoid recent addition of locale-side function in ext-imagelib for l10n
- Breaking change: Change name of ext-arrows.js from `Arrows` to `arrows` for sake of file path (not localized anyways).
- Breaking change: Change `addlangData` extension event to `addLangData` for consistency with method name
- Breaking change: Have `readLang`  return lang and data but do not call `setLang`
- Fix: Have general locales load first so extensions may use
- Fix: Provide `importLocale` to extensions `init` so it may delay adding of the extension until locale data loaded
- Fix: Ensure call to `rasterExport` without `imgType` properly sets MIME type to PNG
- Fix: Wrong name for moinsave
- Update: Update WebAppFind per new API changes
- Enhancement: Make `setStrings` public on editor for late setting (used
  by `ext-shapes.js`)
- Enhancement: Add `extensions_added` event
- Enhancement: Add `message` event (Relay messages including those which
  have been been received prior to extension load)
- Enhancement: Allow SVGEdit to work out of the box--avoid need for copying sample config file. Should also help with Github-based file servers
- Enhancement: Allow avoiding "name" in extension export (just extract out of file name)
- Enhancement: Add stack blur to canvg by default (and refactoring it)
- Enhancement: Return `Promise` for `embedImage` (as with some other loading methods)
- Enhancement: Supply `importLocale` to `langReady` to facilitate extension locale loading
- Enhancement: Recover if an extension fails to load (just log and otherwise ignore)
- Enhancement: More i18n of extensions (also fixed issue with some console warnings about missing locale strings); i18nize Hello World too
- Enhancement: Allowing importing of locales within `addLangData`
- npm: Update devDeps
- Docs: Migrate copies of all old wiki pages to docs/from-old-wiki folder; intended for a possible move to Markdown, so raw HTML (with formatting) was not preserved, though named links had their absolute URL links preserved
- Docs: Begin deleting `SvgCanvas.md` as ensuring jsdoc has replacements
- Docs: Add Edtior doc file for help to general users
- Docs: Clarify/simplify install instructions
- npm/Docs (JSDoc): Add script to check for overly generic types
- Docs (JSDoc): For config/prefs and extension creating, link to tutorials (moved tutorials to own directory to avoid recursion problems by jsdoc)
- Docs (JSDoc): Add modules (upper case for usual main entrance files or regular names)
- Docs (JSDoc): Fill out missing areas; indicate return of `undefined`; consistency with `@returns`
- Docs (JSDoc): Add our own layout template to support overflow
- Docs (JSDoc): Use cleverLinks and disallow unknown tags
- Docs (JSDoc): Insist on "pedantic" flag; put output directory in config
- Docs (JSDoc): Use more precise Integer/Float over number, the specific type of array/function/object
- Docs (JSDoc): Use `@throws`, `@enum`, `@event`/`@fires`/`@listens`
- Docs: Generally update/improve docs (fixes #92)
- Docs: Update links to `latest` path (Avoid needing to update such references upon each release)
- Docs: 80 chars max
- Refactoring: Drop code for extension as function (already requiring export to be an object)
- Refactoring: Object destructuring, `Object.entries`, Object shorthand, array extras, more camelCase variable names
- Refactoring: Add a `Command` base class
- Refactoring: Simplify svgicons `callback` ready detection
- Refactoring: Put `let` or `const` closer to scope
- Refactoring: Remove unneeded `delimiter` from regex escaping utility
- Refactoring: Clearer variable names
- Refactoring: Use (non-deprecated) Event constructors
- Testing: Use new Sinon
2018-07-08 22:39:46 -07:00
Flint O'Brien 853891aeaf Added new files to Makefile. Added underscores to private members in HistoryRecordingService. 2016-05-02 12:27:53 -04:00
Ian Newborn 97da0ede72 Corrected case of jquery.contextMenu.js in make file 2016-03-14 09:53:57 +00:00
Philip Rogers b0d3b24956 Updating Makefile and CHANGES for release 2.8.1 2015-12-02 20:25:46 -08:00
Philip Rogers 81afaa94d2 Update Makefile and CHANGES for svg-edit 2.8 2015-11-24 15:19:28 -08:00
Philip Rogers 7e3f9e037d Add pathseg.js, a polyfill for the SVGPathSeg API
The SVGPathSeg API is being removed from the spec [1] and is being
removed in Chromium 47 [2]. I implemented a drop-in polyfill[3] so
svg-edit users are not broken as browsers migrate away from the
path seg api.

This patch simply imports the upstream pathseg.js and updates all
dependencies. With this change all tests pass in Chrome 46 (with
the path seg api), Chrome 47 (without the path seg api), and
there are no changes to tests in Safari 9.01 or Firefox 43. I
also manually tested svg-edit while developing the polyfill and
could not find any broken features.

[1] https://lists.w3.org/Archives/Public/www-svg/2015Jun/0044.html
[2] https://groups.google.com/a/chromium.org/d/msg/blink-dev/EDC3cBg9mCU/OvElJgOWCgAJ
[3] https://github.com/progers/pathseg
2015-11-04 19:25:30 -08:00
Brett Zamir 4bb15e0fb6 Update changes file and Makefile
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2836 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-22 07:47:26 +00:00
Brett Zamir bdb81d541c Update trunk to the non-release-related minor changes in stable/branch 2.7
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2758 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-07 04:08:52 +00:00
Reda Lyazidi 71586aa5fe Correction of the problem with firefox with the radial gradient
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2468 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-23 21:32:09 +00:00
Jeff Schiller 59130ed555 Create jquery-svg module and empty test, update build. Add a couple tiny unit tests for recalculate.js
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2442 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-20 15:34:42 +00:00
Jeff Schiller bbe79434d6 Add empty test file and update Makefile
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2437 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-20 06:42:00 +00:00
Bruno Heridet f9b8aa624c created svgedit main object, moved all namespaces handling in the same place
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2411 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-16 15:02:26 +00:00
Jeff Schiller a779a74aa9 Add fully qualified function calls, shuffle a couple tiny functions into svgutils.js, add an empty coords.js module for later
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2390 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-14 15:19:46 +00:00
Jeff Schiller 5786a1bc30 Patch for jquery.contextmenu.js. Add jquery.contextmenu.js to Closure compiler step in Makefile
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2060 eee81c28-f429-11dd-99c0-75d572ba1ddd
2012-03-17 17:45:28 +00:00
Jeff Schiller c7635282f4 Fix Issue 907: Allow custom menu options (Apply patch from adambender)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2055 eee81c28-f429-11dd-99c0-75d572ba1ddd
2012-02-25 02:13:18 +00:00
Pavol Rusnak 7220cd1079 add files for creating chrome webstore app
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2034 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-06-01 12:53:49 +00:00
Pavol Rusnak e9945a5f02 don't package embedapi.js in Firefox extension
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1994 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-02-11 16:25:04 +00:00
Jeff Schiller 99a73cc06f Refactor a few more functions into the math and path modules. Update MIME type on all JS files
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1984 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-02-09 06:14:47 +00:00
Jeff Schiller 52c74f266b Move most of Path into svgedit.path
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1978 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-02-04 16:06:25 +00:00
Jeff Schiller 6b8958bd39 Turn on Closure compilers SIMPLE_OPTIMIZATIONS. Slightly change how svgedit namespace is set up in each module
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1931 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-01-18 06:46:45 +00:00
Jeff Schiller 8379711c3e Finish Python script that switches the release script tags in svg-editor.html. Updated Makefile
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1930 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-01-18 06:13:40 +00:00
Jeff Schiller af0599d632 Changes to Makefile so things build better. Start on a python script for releasing the HTML file
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1929 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-01-17 22:11:35 +00:00
Jeff Schiller 0db154bff4 Rename document module to draw. Add getNumLayers() to draw module.
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1925 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-01-16 23:07:35 +00:00
Jeff Schiller 28b9c0cfd7 Rename browsersupport module to browser
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1910 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-01-13 07:47:21 +00:00
Jeff Schiller e557f346e9 Add unused document JS module and test. Change svgcanvas to always increment object ids for every call to getNextId().
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1908 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-01-13 06:57:26 +00:00
Jeff Schiller 3ef0229180 Move Selector and SelectorManager into select.js. Start of unit test file for select.js.
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1873 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-11-15 09:25:49 +00:00
Jeff Schiller 4a133d490d Move undo/redo functionality into history.js. Started unit test file.
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1864 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-11-12 19:08:29 +00:00
Jeff Schiller a681fc2579 Add a sanitize.js module and put sanitizeSvg into it. Fix some browsersupport sniffing calls.
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1852 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-11-07 20:14:05 +00:00
Jeff Schiller cd62a0f51f Add units.js to Makefile and test HTML file
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1845 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-11-05 17:03:26 +00:00
Jeff Schiller c5083035ae Tiny uplift of jgraduate and really check in the Makefile changes this time
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1835 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-10-29 05:23:25 +00:00
Jeff Schiller 33fdd28713 Move math functions into new JS file: math.js. Add new version of Closure compiler.
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1833 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-10-28 16:47:39 +00:00
Jeff Schiller 91ae501438 Update Makefile for two new JS files
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1819 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-10-26 07:29:00 +00:00
Alexis Deveria c9b20be85b Updated makefile for 2.6 with patch from d.paleino
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1702 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-09-09 16:36:17 +00:00
Pavol Rusnak c0273beb31 fix build of firefox extension and opera widget again
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1696 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-09-01 09:20:05 +00:00
Pavol Rusnak 6e92d40ee1 enable experimental support for Google Closure
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1480 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-03-28 13:59:52 +00:00
Jeff Schiller c7e65bb77d Minor updates to branding to update to pre-2.5
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1146 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-04 21:15:01 +00:00
Jeff Schiller 8afac891c9 Correction to Makefile to remove naturaldocs config directory, not docs directory. Add main index.html doc file for API
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@790 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-10-09 19:15:18 +00:00
Jeff Schiller 1ecb018dd4 A start on documentation for SvgCanvas using NaturalDocs. You will need to download the NaturalDocs and put it in svg-edit/naturaldocs
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@788 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-10-09 19:07:52 +00:00
Pavol Rusnak 005a864c98 cp -a is GNU only ...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@597 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-09-05 18:52:39 +00:00
Pavol Rusnak 306dfaa69d fix Makefile for firefox extension
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@596 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-09-05 18:46:53 +00:00
Pavol Rusnak 6a8f0576f7 fix paths in resulting zipped files (release, firefox extension, opera
widget)


git-svn-id: http://svg-edit.googlecode.com/svn/trunk@589 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-09-05 18:36:44 +00:00
Pavol Rusnak d86d5c3518 actually add makefile :-D
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@587 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-09-05 16:46:41 +00:00