New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

svgedit

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svgedit - npm Package Versions

124

5.0.0

Diff
brettz9
published 5.0.0 •

Changelog

Source

5.0.0

  • Breaking change: Switch from deprecated @babel/polyfill to core-js-bundle and regenerator-runtime replacements
  • Build: Require Node 8.5
  • Fix: Ensure PHP files are present in dist/extensions alongside JavaScript extension files using them
  • Fix: Bug in obtaining extPath in ext-server_opensave.js
  • Fix: Fully redirect extension entrances for lacking browser support
  • Enhancement: Add config avoidClientSide to avoid using client-side support by default (and always require server)
  • Enhancement: Return a Promise for Editor's setCustomHandlers, loadFromString, loadFromDataURI so known when ready and set
  • Refactoring: Destructuring, templates, label Unicode code point
  • Linting (JSDoc): Update per newly enforced require-returns; avoid Closure syntax; reenable jsdoc/valid-jsdoc as fixed; notes re: valid-jsdoc replacement; use same namepath
  • Linting: Update per ash-nazg/plugin-node update
  • Docs: Simplify comments in HTML files re: script purposes
  • Docs: Update release instructions
  • Docs (Refactoring): Formally specify Promise resolve type; add typedef for dialog result object; add an ArbitraryCallbackResult type; prefer void
  • npm: Rename (build-doc to build-docs, types-doc to types-docs); add open-docs script
  • npm: Update devDeps
  • npm: Remove unused devDeps; update insecure devDeps
brettz9
published 4.3.0 •

Changelog

Source

4.3.0

  • Fix: Droplets for gradient pickers can now be double-clicked in other browsers in addition to Firefox such as Chrome to allow change of color (fixes #181) (@ajinkyas); may be different between the browsers as a result of https://github.com/w3c/uievents/issues/141
  • Fix: Delay icon setting until locales available (fixes #323)
  • Fix: Extension with no placement to be added to end; for #326 (@sjernigan)
  • Fix: Error on dragging control point of arc; fixes #268 (@cuixiping)
  • Fix: With locales loading before extensions, ensure extensions' langReady runs properly; fixes #334 (@cuixiping)
  • Optimization fix: Properly run code conditionally on browser check; fixes #312 (@ianli-sc)
  • Enhancement: Add CAD Placemark extension (@NeiroNx)
  • Enhancement (svgIcons): Fix JSDoc param def; add alt options
  • Accessibility: Begin work, add aria-label to some buttons and form controls; add role=main; <img alt>; <iframe title>
  • i18n: Add lang attribute
  • Refactoring: lbs, simplify i18nized element retrieval call
  • Refactoring: Make dialog OK button retrievable locale-independently via a data-ok attribute (using for testing)
  • Linting (ESLint): Update polyfills to new compat rules of eslint-config-ash-nazg and adhere to new rules (prefer for-of (or array methods) to for, catch preferred includes to indexOf); avoid no-zero-fractions rule for now
  • Testing (UI Refactoring): Abstract out to helper file functions
  • Testing (UI Refactoring): Avoid testing being locale-dependent; approve storage (and set locale to English) before each test
  • Testing: Avoid reporting meta-viewport (have own zooming controls and difficult to fix)
  • Testing: Skip js errors in Testcafe; we're getting some uncaught error despite not replicating manually; should file a Testcafe issue
  • Docs: Some JSDoc descriptions, JSDoc spacing, fix svgIcons param def
  • Docs (Accessibility): Refer to known issues
  • npm: Update devDeps; update nested deps for security audit; remove one unneeded)
brettz9
published 4.2.0 •

Changelog

Source

4.2.0

  • Fix: Problem with retaining lines with grid mode (@NeiroNx)
  • l10n: Add Chinese (simplified) extension locales (@enlove)
  • l10n: Add Russian translation to some strings (@NeiroNx)
  • Refactoring: Avoid Firefox console errors with hidden iframe
  • npm: Update devDeps
brettz9
published 4.1.0 •

Changelog

Source

4.1.0

  • Fix: Avoid cross-frame unsafe instanceof
  • Enhancement: Add svgcanvas distributions
  • Demo: Rename import to match named dist export
  • Linting (ESLint): Prefer addEventListener, exponentiation operator, avoiding catastrophic regexes, prefer spread, prefer startsWith/endsWith, no fn ref in iterator
  • npm: Update devDeps
brettz9
published 4.0.1 •

Changelog

Source

4.0.1

  • Fix: Adjust side panel width checking based on device zoom (fixes #298)
  • Fix (regression): RGBColor
brettz9
published 4.0.0 •

Changelog

Source

4.0.0

  • Breaking change (storage preference cookies): Namespace the cookie as "svgeditstore" instead of just "store"
  • Breaking change: loadSvgString now returns a Promise rather than accepting a callback.
  • Breaking change: Treat callbacks to editor.ready as Promises, only resolving after all resolve. May require no changes unless for timing.
  • Breaking change: Make editor.runCallbacks return a Promise which resolves upon all callbacks resolving.
  • Breaking change: Require npx (used with babel-node) to allow Node files for HTML building and JSDoc type checking to be expressed as ESM.
  • Breaking change: addExtension now throws upon a repeated attempt to add an already-added extension
  • Breaking change (API): Remove svgCanvas.rasterExport fourth (callback) argument, collapsing fifth (options) to fourth
  • Breaking change (API): Remove svgCanvas.exportPDF third (callback) argument
  • Breaking change (API): editor/contextmenu.js add now throws instead of giving a console error only upon detecting a bad menuitem or preexisting context menu
  • Breaking change (API): Remove svgCanvas.embedImage second (callback) argument
  • Breaking change (API): Make getHelpXML a class instead of instance method of RGBColor
  • Breaking change (internal API): Refactor dbox (and alert/confirm/process/prompt/select) to avoid a callback argument in favor of returning a Promise
  • Breaking internal API change: updateGripCursor moved to be class method of Selector rather than instance method
  • Breaking internal API change: subpathIsClosed moved to be class method of Path rather than instance method
  • Fix: Avoid running in extension langReady multiple times or serially
  • Enhancement (API): Add svgCanvas.runExtension to run just one extension and add nameFilter callback to runExtensions
  • Enhancement (API): Supply $ (our wrapped jQuery) to extensions so can use its plugins, e.g., dbox with its alert
  • Enhancement: Use alert dialog in place of alert in webappfind
  • Enhancement: editor.ready now returns a Promise resolving when all callbacks have resolved
  • Enhancement: Allow noAlert option as part of second argument to loadSvgString (and loadFromURL and loadFromDataURI) to avoid UI alert (and trigger promise rejection)
  • Enhancement: Make dbox as a separate module for alert, prompt, etc. dialogs
  • Optimization: Recompress images (imageoptim-cli updated)
  • Refactoring: Internal PaintBox as class; other misc. tweaks; no bitwise in canvg
  • Refactoring: Reuse utilities base64 encoder for SVG icons plugin
  • Linting (ESLint): Further linting changes (for editor); rename .eslintrc -> .eslintrc.js per recommendation and to more transparently allow comments; apply new strict eslint-config-ash-nazg rules.
  • Linting (ESLint): Stricter rules (or switch to warning)
  • Docs (JSDoc): Fix return of the mouseUp (can also be an object) and mouseDown (may also be a boolean) of pathActions; other JSDoc additions/improvements
  • npm: Update devDeps
brettz9
published 3.2.0 •

Changelog

Source

3.2.0

brettz9
published 3.1.1 •

Changelog

Source

3.1.1

  • Fix: Save broken on Firefox (since FF version?)
  • Docs (ReleaseInstructions): Clarify build instructions for release
  • Docs (ReleaseInstructions): Update per new testing; update grep-doc -> types-doc and indicate current failing status; indicate when build-doc will be used; clarify npm pack
  • Docs: For clarity, rename grep-jsdoc.js to jsdoc-check-overly-generic-types.js
  • Docs: Move GenericCallback to typedefs.js for possible (if unlikely) reuse
  • Docs: Mention potentially more frequent release schedule
  • npm: Update "grep-doc" to "types-doc" for greater clarity
  • npm: Per convention, switch Node-based (headless browser) testing script to npm test and change the browser tests to "browser-test"
brettz9
published 3.1.0 •

Changelog

Source

3.1.0

  • Fix (Embedded editor): (Though cross-origin DOM access of iframes apparently doesn't work now in Chrome or Firefox (which we had been using to disable a button) nor does cross-origin storage access work in Chrome), PDF export has been fixed (we download the PDF to workaround data URI limitations in Chrome) and we avoid opening an extra tab in Chrome PNG export
  • Fix (Embedded editor): Avoid using same origin shortcut if there is no global available to use (e.g., if using the modular editor)
  • Fix (Embedded editor): Add events only after load is complete and svgCanvas is available; also log blocked error objects
  • Fix: Have export handler, if triggered, always open a window even if no window name was given (needed in Chrome to avoid opening an extra window)
  • Enhancement: For anyone visiting the ES6 modules entrance file without ESM support, redirect to non-modular version
  • Enhancement: For PDF export, switch Chrome by default to "save" outputType
  • Enhancement: Add opts object to rasterExport with avoidEvent property to avoid calling the exported event
  • Refactoring (canvg): Better type-checking on canvasRGBA_ (but set correctly by default anyways)
  • Refactoring: Avoid redundant use of *AttributeNS methods with null value; just use *Attribute methods without namespace
  • Refactoring: Display inline styles within a template for readability (until we may refactor as class swapping)
  • Refactoring: Line breaks
  • Refactoring: Reorder path config to group (non-modular-dependent) image paths together (and correct code comment)
  • Docs (CHANGES): clarifications/fixes
  • Docs (README): Deemphasize unstable embedded editor fixes
  • Docs: Versions section (for migrating)
  • Docs: More info on importLocale for extensions
  • Docs: Add code comment re: use of extIconsPath in Mathjax
  • Docs (JSDoc): Denote optional arguments
  • Docs (JSDoc): Add @this to indicate ExtensionInitResponse#callback
  • Build: Add comment not to edit xdomain editor directly
  • Build: Remove unused Makefile
brettz9
published 3.0.1 •

Changelog

Source

3.0.1

  • Fix: Revert fix to have extension mouseup events run on "zoom" and "select" modes (#159); breaks polygon selection
  • Fix (jgraduate->jpicker): Actually fix issue with color val check when no other proper results (equal to "all"); prior fix had not covered original intention