a27a5d5637
- Docs: Exclude from jsdoc firefox-extension, opera-widget, screencasts, test folders and build.html.js/rollup files - Docs: Further JSDoc of methods - Docs: Transfer some changes from ExtensionDocs on wiki (need to fully reconcile) - Refactoring (minor): variadic args through ellipsis
Brett Zamir
2018-05-31 16:07:44 +08:00
96e089f930
- Breaking change: In interests of modularity/removing globals, remove window.svgCanvas and svgCanvas.ready as used by older extensions; use svgEditor.canvas and svgEditor.ready instead - npm: Add prepare script to ensure building/testing before publish
Brett Zamir
2018-05-31 09:53:47 +08:00
7f5c315812
- Linting (ESLint): Missed a few comments
Brett Zamir
2018-05-31 09:16:29 +08:00
a5c25a2113
- Code comments: Coding standards within - Refactoring (minor): Use single quotes in PHP
Brett Zamir
2018-05-31 07:52:13 +08:00
8f53e34c0c
- Docs (JSDoc) - Fix regression (Imagelib): Fix path for non-module version
Brett Zamir
2018-05-30 21:49:32 +08:00
d173df34d2
- Fix (Embedded API): Cross-domain may fail to even access origin or contentDocument - Fix (Embedded API): Avoid adding URL to iframe src if there are no arguments - Fix (Cross-domain usage): Recover from exceptions with localStorage - Docs (JSDoc): Missing function
Brett Zamir
2018-05-30 19:39:00 +08:00
f2b1a1ff0c
- Enhancement: Allow callback argument and return promise for canvas methods: rasterExport and exportPDF
Brett Zamir
2018-05-30 16:47:20 +08:00
a5ad91a370
- Refactoring: Sort Embedded functions alphabetically and add lbs for better visibiilty in code - i18n: Clarify locale messages (where still available as English) to reflect fact that Chrome only has "Save as" via context menu/right-click, not via file menu (toward #192) - Linting (ESLint): Avoid linting jsdoc folder
Brett Zamir
2018-05-30 15:59:45 +08:00
df69ba2b72
- Move jsdoc output to public directory so may be visible on releases (while still having in a .gitignore)
Brett Zamir
2018-05-30 11:32:56 +08:00
f1bdd668c6
- Docs (ReleaseInstructions): Avoid referencing binary files for now; include mention of ES6 Module HTML file and need to copy config files (without .git/.gitignore files); mention reviewing Github release format
Brett Zamir
2018-05-30 11:08:19 +08:00
3b04fe0c63
- Docs: Add README link to pre-release - Docs (ReleaseInstructions): Comment out Makefile-related instructions for now and add to-dos (README referencing current version and package-lock.json, tagging) - npm: Bump to 3.0.0-alpha.4
Brett Zamir
2018-05-30 10:57:28 +08:00
5e8f460f55
- Fix (Extensions): Use "extIconsPath for now given that extPath will not work relative to dist`
Brett Zamir
2018-05-28 21:59:39 +08:00
54d6fd41b6
- Allow addSvgElementFromJson to accept non-SVG namespaces with explicit namespace property as well as the default SVG namespace (fixes#155); document
Brett Zamir
2018-05-28 21:17:27 +08:00
28ba66d98d
- Optimization: For setSvgString, if element content is not SVG, return false earlier (Fixes#152); thanks iuyiuy!
Brett Zamir
2018-05-28 20:42:37 +08:00
5b23b93154
- Fix (ext-connector): Handle case of 2 connecting elements with same y-coordinate (fixes#210 ; thanks, @iuyiuy!)
Brett Zamir
2018-05-28 20:29:22 +08:00
c2e06534ff
- Enhancement: Delete the imge upon cancel if it is a new image (fixes#177)
Brett Zamir
2018-05-28 19:19:00 +08:00
beb513ae0e
- npm: package-lock.json: updated version - Fix (Connector extension): Get config object when available
Brett Zamir
2018-05-28 18:49:30 +08:00
cea251b15a
- New installation steps
Brett Zamir
2018-05-26 09:12:46 +08:00
5ad83b9b87
- Refactoring: Clean-up - Fix: Race condition with svgicons and seticonsize - Embedded editor: Use module form for now; drop unused inline attribute - Embedded editor: Fix PNG export; work toward restoring PDF (add getUIStrings method to editor for assisting) - canvg and importScript fixes
Brett Zamir
2018-05-25 22:43:01 +08:00
52268c4324
- Docs: Add to CHANGES (and change prior list formatting) - npm: Bump to 3.0.0-alpha.2
Brett Zamir
2018-05-25 21:26:53 +08:00
bf261fd670
- Add in locales for English
Brett Zamir
2018-05-25 21:25:38 +08:00
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
Brett Zamir
2018-05-22 18:03:16 +08:00
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
Brett Zamir
2018-05-18 11:25:45 +08:00
7cf976cfb8
- Fix (Locale): Remove bad characters in Persian (fa) file - Linting (ESLint): Locale files - Docs: Fix code comment - Remove BOM from documents (@drsassafras #237)
Brett Zamir
2018-05-20 15:04:11 +08:00
10291dc556
- Remove carriage returns; fixes#37 - Remove extra spaces from svgcanvas, embedapi
Brett Zamir
2018-05-18 15:39:36 +08:00
1f3b8dad52
- Apply tabs->4 spaces to Markdown code and remove extra WS (more like ESLint "standard") - Apply spaces in README (now tabs confined to Python, Makefile, chrome.manifest, vendor code, and few test files for formatting)
Brett Zamir
2018-05-18 14:54:44 +08:00
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
Brett Zamir
2018-05-18 14:41:43 +08:00
4bfbaacb5e
- Complete conversion to 2-spaces, fixing issue #37 (also removed some extra/misplaced tabs/spaces in process)
Brett Zamir
2018-05-18 14:23:36 +08:00
f21d41a231
- Linting (ESLint): Use two spaces for indent - Update links in commented out copyright section of editor, link in screencast, and within SVG file comments (created with SVG-edit should refer to current URL)
Brett Zamir
2018-05-18 14:05:52 +08:00
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
Brett Zamir
2018-05-18 12:40:50 +08:00
646a927ef6
Convert all tabs to spaces in extensions for issue #37
codedread
2018-05-17 21:54:31 -07:00
89cbab7217
- Refactoring (minor): Simplify (empty string is falsey) - Refactoring (minor): Consistent HTML indenting/no-namespacing and title/icon use - Testing: Add browser bug test with reference to issue
Brett Zamir
2018-05-18 11:35:24 +08:00
7bb89f53a5
Don’t throw error for unlinked nodes in Chrome
Neil Fraser
2018-05-17 12:04:58 -07:00
f9fb7f47ae
Residual linting
Neil Fraser
2018-05-17 11:57:28 -07:00
1c966d17ed
Update not supported page (#230)
Neil Fraser
2018-05-17 11:29:20 -07:00
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
Brett Zamir
2018-05-17 17:42:46 +08:00
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
Brett Zamir
2018-05-17 16:55:33 +08:00
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")
Brett Zamir
2018-05-17 15:27:38 +08:00
6f791b12dd
Current test results: svgedit.recalculate failing different tests in Chrome and Firefox: 1. Chrome: Test 1: recalculateDimensions() on rect with identity matrix 2. Firefox: Test 3: recalculateDimensions() on text w/tspan with simple translate - Testing: Fix draw_test
Brett Zamir
2018-05-17 13:46:16 +08:00
25b1e9be01
- Linting (ESLint): Fix other indents besides main (though continue to disable check)
Brett Zamir
2018-05-17 13:15:20 +08:00
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
Brett Zamir
2018-05-17 12:57:51 +08:00
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.
Brett Zamir
2018-05-16 16:32:44 +08:00
f7bdf6be18
- Testing (math_test): Fix undeclared variables - Testing: Move JavaScript out of HTML to own files - Linting: ESLint; unfinished: editor/extensions/, editor/ (root); some of test
Brett Zamir
2018-05-15 23:16:28 +08:00
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
Brett Zamir
2018-05-15 23:10:20 +08:00
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
Brett Zamir
2018-05-13 18:47:00 +08:00
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)
Brett Zamir
2018-05-13 11:03:45 +08:00