Commit Graph

38 Commits (52268c43243f02d81da61b437cf7168213416613)

Author SHA1 Message Date
Brett Zamir 8c9e40d349 - Breaking change: Rename config file to `svgedit-config-iife.js` (or for the module version, `svgedit-config-es.js`);
also expect one directory higher; incorporates #207 (@iuyiuy)
- Breaking change: Separate `extIconsPath` from `extPath` (not copying over icons)
- Breaking change: Don't reference `custom.css` in HTML; can instead be referenced in JavaScript through
    the config file (provided in `svgedit-config-sample-iife.js`/`svgedit-config-sample-es.js` as `svgedit-custom.css` for
    better namespacing); incorporates #207 (@iuyiuy)
- Breaking change: Remove minified jgraduate/spinbtn files (minified within Rollup routine)
- Fix: Zoom when scrolled; incorporates #169 (@AndrolGenhald), adapting for conventions; also allow avoidance when shift key pressed
- Fix: Update Atom feed reference in HTML
- Fixes related to recent commits: Some path and method name fixes needed, function order, missing methods, variable scope declaration, no need for DOMContentLoaded listeners in modules, switch back to non-default export, avoid trimming nullish, deal with mock tests, fix `math.matrixMultiply`, use jquery-svg where needed for array/SVG attributes; add babel-polyfill and defer script to imagelib; other misc. fixes
- Enhancement: Move config-sample.js out of `editor` directory
- Enhancement: For `callback`-style extensions, also provide config object; add following
   to that object: buildCanvgCallback, canvg, decode64, encode64, executeAfterLoads, getTypeMap, isChrome, ieIE, NS, text2xml
- Enhancement: Complete ES6 modules work (extensions, locales, tests), along with Babel;
    make Node build routine for converting modular source to non-modular,
    use `loadStylesheets` for modular stylehsheet defining (but parallel loading);
- Enhancement: Add `stylesheets` config for modular but parallel stylesheet loading with `@default` option for simple inclusion/exclusion of defaults (if not going with default).
- Refactoring: Clean up `svg-editor.html`: consistent indents; avoid extra lbs, avoid long lines
- Refactoring: Avoid embedded API adding inline JavaScript listener
- Refactoring: Move layers and context code to `draw.js`
- Refactoring: Move `pathActions` from `svgcanvas.js` (though preserve aliases to these methods on `canvas`) and `convertPath` from `svgutils.js` to `path.js`
- Refactoring: Move `getStrokedBBox` from `svgcanvas.js` (while keeping an alias) to `svgutils.js` (as `getStrokedBBoxDefaultVisible` to avoid conflict with existing)
- Docs: Remove "dependencies" comments in code except where summarizing role of jQuery or a non-obvious dependency
- Refactoring/Linting: Enfore `no-extra-semi` and `quote-props` rules
- Refactoring: Further avoidance of quotes on properties (as possible)
- Refactoring: Use `class` in place of functions where intended as classes
- Refactoring: Consistency and granularity in extensions imports
- Testing: Update QUnit to 2.6.1 (node_modules) and Sinon to 5.0.8 (and add sinon-test at 2.1.3) and enforce eslint-plugin-qunit linting rules; update custom extensions
- Testing: Add node-static for automating (and accessing out-of-directory contents)
- Testing: Avoid HTML attributes for styling
- Testing: Add npm `test` script
- Testing: Comment out unused jQuery SVG test
- Testing: Add test1 and svgutils_performance_test to all tests page
- Testing: Due apparently to Path having not been a formal class, the test was calling it without `new`; refactored now with sufficient mock data to take into account it is a class
- npm: Update devDeps
- npm: Add html modules and config build to test script
2018-05-25 20:03:14 +08:00
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 7cf976cfb8 - Fix (Locale): Remove bad characters in Persian (fa) file
- Linting (ESLint): Locale files
- Docs: Fix code comment
- Remove BOM from documents (@drsassafras #237)
2018-05-20 15:04:11 +08:00
Brett Zamir 52353c6321 - Further convert tabs -> 2 spaces in JS code comments (except in test performance
file where used for alignment though use tab escape within JS), CSS
    (including comments), PHP, SVG, JSON, XUL
- Remove extra spaces in svgcanvas.js, ext-connector.js
2018-05-18 14:41:43 +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 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 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
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
Mark MacKay bea865ae4f fix for transparent color
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2225 eee81c28-f429-11dd-99c0-75d572ba1ddd
2012-12-05 00:06:48 +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
Alexis Deveria 717f596928 Fixed gradient picker by updating minified file
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1933 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-01-18 18:54:50 +00:00
Alexis Deveria 1b7e991bfe Made several minor visual improvements
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1899 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-01-07 18:37:21 +00:00
Alexis Deveria a14e02d71c Updated jGraduate, to set the inverse of the current color as the default second gradient stop
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1898 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-01-07 17:35:05 +00:00
Alexis Deveria 09a6a7c307 Fixed jGraduate display bugs in Windows
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1847 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-11-05 20:06:26 +00:00
Alexis Deveria f48ad463c7 Fixed utilities reference
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1846 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-11-05 18:29:39 +00:00
Alexis Deveria 3f7f951c81 Updated to latest jGraduate version, fixes bugs and supports multi-stops/more radial gradient options
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1842 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-11-05 16:15:56 +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
Alexis Deveria 9dc297862e Fixed Issue 720: Tree of life doesn't render properly
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1804 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-10-14 17:54:01 +00:00
Alexis Deveria 23c7ede442 Fixed bug where picker opacity appeared wrong
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1803 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-10-14 17:35:34 +00:00
Alexis Deveria ae13b96bdf Attempt to upgrade the jPicker plug-in to 1.1.5
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1802 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-10-14 16:54:15 +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 f37aaf8d39 Made more IE9 fixes, drawing shapes works properly now, as does alignment
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1681 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-08-25 19:06:23 +00:00
Alexis Deveria 86fa551bf9 Removed code in jGraduate that related to old Opera bug (similar to code already removed from svg-edit). Also fixes issue 422
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1641 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-07-21 13:31:10 +00:00
Alexis Deveria 7054c3fd95 Fixed issue 551
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1566 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-05-05 19:52:00 +00:00
Alexis Deveria 7f2428557d Fixed bug where Cancel button didn't work on linearGradient tab
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1537 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-04-21 17:01:08 +00:00
Alexis Deveria 2b4270163e Added support for loading config data from URL, prevented creation of unneeded global variables
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1459 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-03-12 20:43:33 +00:00
Alexis Deveria 38a244bcc6 Fixed bug where attributes were being removed from gradient element on serialization in Opera
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1454 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-03-10 19:03:05 +00:00
Alexis Deveria 037c641b11 Updated jGraduate and made radialGradients work as expected, fixing issue 298
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1452 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-03-10 18:17:48 +00:00
Jeff Schiller be04bdc1c1 Fix Issue 62: can now set color to none right in the picker (uplift to jGraduate r71)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1295 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-29 05:39:57 +00:00
Alexis Deveria 525dbf0c18 cleaned up objects with too many commas, made some optimizations which prevent icon elems from being included in ID numbers
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1133 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-12-31 19:24:03 +00:00
Alexis Deveria 0278caccd8 Hopefully finally fixed gradient serialization issues in Opera/Win/Non-en
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@945 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-11-13 20:45:18 +00:00
Jeff Schiller bc7b1880f8 Check in minimized JS and updated HTML. Remove jPicker (now included as part of jGraduate)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@571 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-09-04 21:23:54 +00:00
Alexis Deveria 5df494c2b6 Fixed remaining bug for 164 and additional bug that selects correct paint tab on change to gradient
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@561 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-09-04 14:52:21 +00:00
Alexis Deveria b6970bf6db Fixed Issue 164: Colorpicker doesn't display correctly on Firefox 1.5.x by updating to latest version of jGraduate
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@558 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-09-04 13:25:35 +00:00
Jeff Schiller d1d91c556e Fix several bugs with gradient picking. Uplift to latest jGraduate.
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@348 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-01 05:03:51 +00:00
Jeff Schiller 05ff4be18f Fix Issue 33: Gradient picker for fill/stroke. Also start to optimize suspendRedraw/unsuspend. Added vector image of logo.
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@346 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-07-30 22:45:59 +00:00