Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svgedit

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svgedit - npm Package Versions

124

4.3.0

Diff

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
brettz9
published 3.0.0 •

Changelog

Source

3.0.0

  • See pre-release version notes below for other changes that are a part of 3.0.0
  • Breaking change: For checkbox for persisting choice of initial use storage approval in storage extension dialog, turn on by default for convenience of most users (must still hit "ok" and users can still turn off the checkbox)
  • Breaking change: Remove storagePromptClosed state boolean in favor of storagePromptState; used by ext-storage.js
  • Fix: Map extension click events to "mousedown" so they can be received on touch devices (since touch.js changes touchstart to mousedown) (@ClemArt); closes #168
  • Fix: Ensure extension mouseup events run on "zoom" and "select" modes (@iuyiuy); closes #159
  • Fix: Allow language to be properly set back to a different locale and retaining preference (and ensure language changes are available before dialog closed)
  • Fix: Centering of canvas wasn't being set at proper time; fixes #272
  • Fix (extensions): Ensure langReady changes are available by time prefs dialog is closed and that its changes have occurred by time extensions have first loaded (setLang now returns a Promise rather than undefined as it waits for extension's langReady to resolve); this is also useful with ext-storage.js so we know that extensions_loaded (which conditionally updates the canvas based on storagePromptState) has seen langReady and the storage extension hasn't set a storagePromptState of "waiting"
  • Fix (regression): Extension locale loading for non-English locales
  • Enhancement: Allow "Escape" to work with hotkeys within text boxes; allows escaping out of source textarea (part of #291)
  • Enhancement: Allow 'a' also with meta key (command in Mac, ctrl otherwise) to select all (part of #291)
  • Enhancement: Add a global escape key listener to clear the selection
  • Refactoring: Change 'a' to lower case in key command to avoid impression that shift is needed
  • Refactoring: Avoid unneeded internal IIFEs; simplify w/h formula
  • Refactoring: array extra/spread operator
  • npm: Update devDeps
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc