- Refactoring: Reorder path config to group (non-modular-dependent) image

paths together (and correct code comment)
- Docs: CHANGES clarifications/fixes
- Docs: Migrations documents section
- Docs: Add code comment re: use of `extIconsPath` in Mathjax
- Docs: Add JSDoc indicate @this for `ExtensionInitResponse#callback`
- Build: Update build files
- npm: Bump to 3.1.0
This commit is contained in:
Brett Zamir
2018-10-23 18:35:49 +08:00
parent 9d454d79fd
commit 07f59ba01a
17 changed files with 539 additions and 55 deletions

View File

@@ -238,6 +238,8 @@ var svgEditorExtension_mathjax = (function () {
svgEditor.curConfig.extIconsPath + mathjaxSrcSecure
);
*/
// We use `extIconsPath` here for now as it does not vary with
// the modular type as does `extPath`
importScript(svgEditor.curConfig.extIconsPath + mathjaxSrcSecure).then(function () {
// When MathJax is loaded get the div where the math will be rendered.

15
dist/index-es.js vendored
View File

@@ -14294,6 +14294,7 @@ function SvgCanvas(container, config) {
/**
* @function module:svgcanvas.ExtensionInitResponse#callback
* @this module:SVGEditor
* @param {module:svgcanvas.SvgCanvas#event:ext-callback} arg
* @returns {undefined}
*/
@@ -27724,17 +27725,17 @@ defaultConfig = {
no_save_warning: false,
// PATH CONFIGURATION
// The following path configuration items are disallowed in the URL (as should any future path configurations)
imgPath: 'images/',
langPath: 'locale/',
// Default will be changed if this is a modular load
// Default will be changed if this is a non-modular load
extPath: 'extensions/',
// Default will be changed if this is a modular load
// Default will be changed if this is a non-modular load
canvgPath: 'canvg/',
// Default will be changed if this is a modular load
// Default will be changed if this is a non-modular load
jspdfPath: 'jspdf/',
// Default will be changed if this is a modular load
extIconsPath: 'extensions/',
// Default will be changed if this is a non-modular load
imgPath: 'images/',
jGraduatePath: 'jgraduate/images/',
extIconsPath: 'extensions/',
// DOCUMENT PROPERTIES
// Change the following to a preference (already in the Document Properties dialog)?
dimensions: [640, 480],
@@ -28275,7 +28276,7 @@ editor.init = function () {
// ways with other script resources
['extPath', 'imgPath', 'extIconsPath', 'canvgPath', 'langPath', 'jGraduatePath', 'jspdfPath'].forEach(function (pathConfig) {
['langPath', 'extPath', 'canvgPath', 'jspdfPath', 'imgPath', 'jGraduatePath', 'extIconsPath'].forEach(function (pathConfig) {
if (urldata[pathConfig]) {
delete urldata[pathConfig];
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

15
dist/index-umd.js vendored
View File

@@ -14300,6 +14300,7 @@
/**
* @function module:svgcanvas.ExtensionInitResponse#callback
* @this module:SVGEditor
* @param {module:svgcanvas.SvgCanvas#event:ext-callback} arg
* @returns {undefined}
*/
@@ -27730,17 +27731,17 @@
no_save_warning: false,
// PATH CONFIGURATION
// The following path configuration items are disallowed in the URL (as should any future path configurations)
imgPath: 'images/',
langPath: 'locale/',
// Default will be changed if this is a modular load
// Default will be changed if this is a non-modular load
extPath: 'extensions/',
// Default will be changed if this is a modular load
// Default will be changed if this is a non-modular load
canvgPath: 'canvg/',
// Default will be changed if this is a modular load
// Default will be changed if this is a non-modular load
jspdfPath: 'jspdf/',
// Default will be changed if this is a modular load
extIconsPath: 'extensions/',
// Default will be changed if this is a non-modular load
imgPath: 'images/',
jGraduatePath: 'jgraduate/images/',
extIconsPath: 'extensions/',
// DOCUMENT PROPERTIES
// Change the following to a preference (already in the Document Properties dialog)?
dimensions: [640, 480],
@@ -28281,7 +28282,7 @@
// ways with other script resources
['extPath', 'imgPath', 'extIconsPath', 'canvgPath', 'langPath', 'jGraduatePath', 'jspdfPath'].forEach(function (pathConfig) {
['langPath', 'extPath', 'canvgPath', 'jspdfPath', 'imgPath', 'jGraduatePath', 'extIconsPath'].forEach(function (pathConfig) {
if (urldata[pathConfig]) {
delete urldata[pathConfig];
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long