Commit Graph

31 Commits (ae2394f086ff4694043b24f80611d6cacf3eee6d)

Author SHA1 Message Date
Brett Zamir ae2394f086 (INCOMPLETE: ES6 Module conversion and linting)
- Breaking change: Require `new` with `EmbeddedSVGEdit` (allows us to use `class` internally)
- Breaking change: If `svgcanvas.setUiStrings` must now be called if not using editor in order
    to get strings (for sake of i18n) (and if using path.js alone, must also have its `setUiStrings` called)
- Breaking change (ext-overview-window): Avoid global `overviewWindowGlobals`
- Breaking change (ext-imagelib): Change to object-based encoding for namespacing of
    messages (though keep stringifying/parsing ourselves until we remove IE9 support)
- Breaking change: Rename `jquery.js` to `jquery.min.js`
- Breaking change: Remove `scoped` attribute from `style`; it is now deprecated and
    obsolete; also move to head (after other stylesheets)
- Enhancement: Make SpinButton plugin independent of SVGEdit via
    generic state object for tool_scale
- Enhancement: Remove now unused Python l10n scripts (#238)
- Enhancement: ES6 Modules (including jQuery plugins but not jQuery)
- Enhancement: Further JSDoc (incomplete)
- Enhancement (Optimization): Compress images using imageoptim (and add
    npm script) (per #215)
- Fix: i18nize path.js strings and canvas notifications
- Fix: Attempt i18n for ext-markers
- Refactoring (ext-storage): Move locale info to own file imported by the extension (toward modularity; still should be split into separate files by language and *dynamically* imported, but we'll wait for better `import` support to refactor this)
- Refactoring: For imagelib, add local jQuery copy (using old 1.4.4 as had
    been using from server)
- Refactoring: For MathJax, add local copy (using old 2.3 as had been using from
    server); server had not been working
- Refactoring: Remove `use strict` (implicit in modules)
- Refactoring: Remove trailing whitespace, fix some code within comments
- Refactoring: Expect `jQuery` global rather than `$` for better modularity
    (also to adapt line later once available via `import`)
- Refactoring: Prefer `const` (and then `let`)
- Refactoring: Add block scope keywords closer to first block in which they appear
- Refactoring: Use ES6 `class`
- Refactoring `$.isArray` -> `Array.isArray` and avoid some other jQuery core methods
    with simple VanillaJS replacements
- Refactoring: Use abbreviated object property syntax
- Refactoring: Object destructuring
- Refactoring: Remove `uiStrings` contents in svg-editor.js (obtains from locale)
- Refactoring: Add favicon to embedded API file
- Refactoring: Use arrow functions for brief functions (incomplete)
- Refactoring: Use `Array.prototype.includes`/`String.prototype.includes`;
    `String.prototype.startsWith`, `String.prototype.trim`
- Refactoring: Remove now unnecessary svgutils do/while resetting of variables
- Refactoring: Use shorthand methods for object literals (avoid ": function")
- Refactoring: Avoid quoting object property keys where unnecessary
- Refactoring: Just do truthy/falsey check for lengths in place of comparison to 0
- Refactoring (Testing): Avoid jQuery usage within most test files (defer script,
    also in preparation for future switch to ES6 modules for tests)
- Refactoring: Make jpicker variable declaration indent bearable
- Refactoring (Linting): Finish svgcanvas.js
- Docs: Mention in comment no longer an entry file as before
- Docs: Migrate old config, extensions, and FAQ docs
- Licensing: Indicate MIT is license type of rgbcolor; rename/add license file name for
    jgraduate and screencast to reflect type (Apache 2.0); rename file to reflect it
    contains license information (of type MIT) for Raphael icons
2018-05-22 18:02:57 +08:00
Brett Zamir 4bfbaacb5e - Complete conversion to 2-spaces, fixing issue #37 (also removed some extra/misplaced tabs/spaces in process) 2018-05-18 14:23:36 +08:00
Brett Zamir dc6ab72480 - Update Opera and jQuery links
- Use `https://` (fix #172), including in prompt for URL and relevant code comments (where available and naturally not on namespaces)
- Comment out broken link in svg-editor.html
- Trailing space
2018-05-18 13:48:47 +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
Philip Rogers 68580b5664 Fix icons in Safari due to a redefinition of the xmlns attribute 2015-11-29 17:59:28 -08:00
Brett Zamir b1f88d2b94 Address issue with Unicode text in SVG icons; jshint
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2880 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-06-13 02:45:12 +00:00
Marc Laporte cf0dde3f4a Updating license information as per http://code.google.com/p/svg-edit/issues/detail?id=959
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2088 eee81c28-f429-11dd-99c0-75d572ba1ddd
2012-09-16 18:53:27 +00:00
Jeff Schiller dfc67588dc Update to jQuery and jQuery-UI latest
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2052 eee81c28-f429-11dd-99c0-75d572ba1ddd
2012-02-23 02:48:21 +00:00
Alexis Deveria a439a8fea5 Fixed icons in Opera which were broken due to jQuery 1.4.3
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1832 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-10-28 16:04:35 +00:00
Alexis Deveria 40dd45125c Fixed part of issue 700, and possibly issue 703
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1774 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-10-04 16:01:58 +00:00
Alexis Deveria a54a874ffd Fixed issue 680, added Raphael icons to path lib (thanks Christian)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1735 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-09-20 20:40:41 +00:00
Alexis Deveria fb653705d6 Applied patch by bencurthoys to fix embed api
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1734 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-09-20 18:55:10 +00:00
Alexis Deveria b79afbde87 More likely fix to issue 679
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1733 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-09-20 15:13:26 +00:00
Alexis Deveria 3e159f2180 Trying streamlined svgicons again
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1719 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-09-16 12:19:35 +00:00
Alexis Deveria ef86b8a08a Reverting jquery.svgicons.js until bug is actually found
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1718 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-09-15 20:22:51 +00:00
Alexis Deveria d42b8b919f Oops, hopefully fixed bug that killed icons in last revision
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1717 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-09-15 20:18:18 +00:00
Alexis Deveria fac8fbe1d1 Removed chunks of code for IE9 compat, no longer necessary thanks to fixes in IE9 Beta
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1716 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-09-15 20:10:43 +00:00
Alexis Deveria 119bf24229 Made optimizations to connector plugin, fixed issue 670 and possibly issue 664
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1714 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-09-13 19:41:21 +00:00
Alexis Deveria 450cc3df8c Fixed some imagelib bugs, added nicer icon, nicer buttons
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1695 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-08-31 20:31:58 +00:00
Alexis Deveria 292dd46316 Fixed issue 657 (color picker)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1689 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-08-30 17:17:57 +00:00
Alexis Deveria 9df823863a Made icons work in IE9 (with a few minor bugs)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1680 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-08-25 15:10:43 +00:00
Alexis Deveria 0d1284ca23 Implemented new icon size scaling method
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1645 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-07-27 13:37:52 +00:00
Alexis Deveria 1a9b08bed6 Made editor work better locally in Chrome 5, fixed some minor bugs
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1642 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-07-21 17:12:57 +00:00
Alexis Deveria afb7ef00bb Made some minor code optimization, added more icon labels (blur by Christian Tzurcanu)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1530 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-04-20 15:53:19 +00:00
Alexis Deveria 4a79a4b1da Made SVG icons no longer require a viewBox to display properly
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1489 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-03-30 15:28:57 +00:00
Jeff Schiller faa165eb9d Change encoding from Western to UTF-8
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1201 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-12 20:39:03 +00:00
Jeff Schiller f00068c02c Merge arbelos fixes for opera widget for svgicons and locale to trunk
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1195 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-12 08:07:50 +00:00
Alexis Deveria c249478eed Fixed several minor bugs
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1140 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-04 14:10:52 +00:00
Alexis Deveria 082523f7f7 Fixed issue 331 and updated svg-icon-loader
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@946 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-11-16 15:19:51 +00:00
Alexis Deveria 344e7a802d Fixed several remaining cross-browser icon bugs
git-svn-id: http://svg-edit.googlecode.com/svn/branches/transformlist@933 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-11-12 16:00:50 +00:00
Alexis Deveria 2a46a5eca0 Adding SVG icons to svg-editor.html and related scripts, keeping old with -classic suffix
git-svn-id: http://svg-edit.googlecode.com/svn/branches/transformlist@916 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-11-09 18:59:53 +00:00