Changelog
4.3.0
placement
to be added to end;
for #326 (@sjernigan)langReady
runs properly; fixes #334 (@cuixiping)alt
optionsrole=main
; <img alt>
; <iframe title>
lang
attributedata-ok
attribute (using for testing)for-of
(or array methods) to for
, catch preferred includes
to indexOf
);
avoid no-zero-fractions
rule for nowChangelog
4.2.0
Changelog
4.1.0
instanceof
addEventListener
, exponentiation operator,
avoiding catastrophic regexes, prefer spread, prefer
startsWith
/endsWith
, no fn ref in iteratorChangelog
4.0.1
Changelog
4.0.0
loadSvgString
now returns a Promise
rather than
accepting a callback.editor.ready
as Promises, only
resolving after all resolve. May require no changes unless for timing.editor.runCallbacks
return a Promise
which
resolves upon all callbacks resolving.npx
(used with babel-node
) to allow Node files
for HTML building and JSDoc type checking to be expressed as ESM.addExtension
now throws upon a repeated attempt to
add an already-added extensionsvgCanvas.rasterExport
fourth (callback)
argument, collapsing fifth (options) to fourthsvgCanvas.exportPDF
third (callback)
argumenteditor/contextmenu.js
add
now throws instead
of giving a console error only upon detecting a bad menuitem or
preexisting context menusvgCanvas.embedImage
second (callback)
argumentgetHelpXML
a class instead of instance method
of RGBColor
dbox
(and
alert
/confirm
/process
/prompt
/select
) to avoid a callback argument
in favor of returning a PromiseupdateGripCursor
moved to be class method
of Selector rather than instance methodsubpathIsClosed
moved to be class method
of Path
rather than instance methodlangReady
multiple times or seriallysvgCanvas.runExtension
to run just one extension and
add nameFilter
callback to runExtensions
$
(our wrapped jQuery) to extensions so can use
its plugins, e.g., dbox with its alert
alert
in webappfindeditor.ready
now returns a Promise resolving when all
callbacks have resolvednoAlert
option as part of second argument to
loadSvgString
(and loadFromURL
and loadFromDataURI
) to avoid UI
alert (and trigger promise rejection)dbox
as a separate module for alert, prompt, etc. dialogsPaintBox
as class; other misc. tweaks; no bitwise
in canvg.eslintrc
-> .eslintrc.js
per recommendation and to more transparently
allow comments; apply new strict eslint-config-ash-nazg
rules.mouseUp
(can also be an object) and
mouseDown
(may also be a boolean) of pathActions
; other JSDoc
additions/improvementsChangelog
3.2.0
addEventListener
false
; change internal
jPicker function to class (used with new
)valid-jsdoc
rule and make fixes, but turn off for
now due to https://github.com/eslint/doctrine/issues/221 and
https://github.com/eslint/doctrine/issues/222eslint-plugin-compat
to get browser support
warningseslint-plugin-markdown
with
slightly loosened config (no-undef
and padded-blocks
off and
no-unused-vars
as a warning)eslint-plugin-jsdoc
and apply to
JSDoc code comments though disable jsdoc/valid-types
rule for now due to https://github.com/Kuniwak/jsdoctypeparser/issues/47 and disable rule
jsdoc/require-param
due to
https://github.com/gajus/eslint-plugin-jsdoc/issues/100; also of
possible interest: https://github.com/AtomLinter/linter-eslint/issues/1192,
https://github.com/gajus/eslint-plugin-jsdoc/issues/103,
https://github.com/eslint/eslint-plugin-markdown/issues/109,
https://github.com/gajus/eslint-plugin-jsdoc/issues/101,
https://github.com/gajus/eslint-plugin-jsdoc/issues/99,
https://github.com/eslint/eslint/issues/11043; NOTE:
if we need to tap into Markdown within JSDoc, see https://github.com/jsdoc3/jsdoc#b21427343c7294bbf1f14c718a390f3e955e37cb
for commit not present in npm..Function
as in
jQuery.Function
) and avoid one previously missed instancepackage-lock.json
accordingly; update qunit distChangelog
3.1.1
grep-doc
-> types-doc
and indicate current failing status; indicate
when build-doc
will be used; clarify npm pack
grep-jsdoc.js
to
jsdoc-check-overly-generic-types.js
GenericCallback
to typedefs.js
for possible (if unlikely)
reusenpm test
and change the browser tests to "browser-test"Changelog
3.1.0
outputType
opts
object to rasterExport
with avoidEvent
property
to avoid calling the exported
eventcanvasRGBA_
(but set
correctly by default anyways)null
value; just use *Attribute methods without namespaceimportLocale
for extensionsextIconsPath
in MathjaxExtensionInitResponse#callback
Makefile
Changelog
3.0.1
mouseup
events run on "zoom" and
"select" modes (#159); breaks polygon selectionChangelog
3.0.0
storagePromptClosed
state boolean in favor of
storagePromptState
; used by ext-storage.js
touch.js
changes touchstart
to
mousedown
) (@ClemArt); closes #168mouseup
events run on "zoom" and "select"
modes (@iuyiuy); closes #159langReady
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"