- Refactoring: Avoid commonjs in Rollup
- Build: Update - npm: Rebuild `package-lock.json` with later depsmaster
parent
c9d3bcf258
commit
21a6f4f456
|
@ -2922,7 +2922,7 @@ function jQueryPluginSVG($) {
|
|||
var proxied = $.fn.attr,
|
||||
svgns = 'http://www.w3.org/2000/svg';
|
||||
/**
|
||||
* @typedef {PlainObject.<string, string|Float>} module:jQueryAttr.Attributes
|
||||
* @typedef {PlainObject<string, string|Float>} module:jQueryAttr.Attributes
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -4124,7 +4124,7 @@ RemoveElementCommand.type = RemoveElementCommand.prototype.type;
|
|||
*/
|
||||
|
||||
/**
|
||||
* @typedef {PlainObject.<module:history.CommandAttributeName, string>} module:history.CommandAttributes
|
||||
* @typedef {PlainObject<module:history.CommandAttributeName, string>} module:history.CommandAttributes
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -4900,7 +4900,7 @@ var segData = {
|
|||
/**
|
||||
* @tutorial LocaleDocs
|
||||
* @typedef {module:locale.LocaleStrings|PlainObject} module:path.uiStrings
|
||||
* @property {PlainObject.<string, string>} ui
|
||||
* @property {PlainObject<string, string>} ui
|
||||
*/
|
||||
|
||||
var uiStrings = {};
|
||||
|
@ -4944,7 +4944,7 @@ var editorContext_ = null;
|
|||
* Object with the following keys/values
|
||||
* @typedef {PlainObject} module:path.SVGElementJSON
|
||||
* @property {string} element - Tag name of the SVG element to create
|
||||
* @property {PlainObject.<string, string>} attr - Has key-value attributes to assign to the new element
|
||||
* @property {PlainObject<string, string>} attr - Has key-value attributes to assign to the new element. An `id` should be set so that {@link module:utilities.EditorContext#addSVGElementFromJson} can later re-identify the element for modification or replacement.
|
||||
* @property {boolean} [curStyles=false] - Indicates whether current style attributes should be applied first
|
||||
* @property {module:path.SVGElementJSON[]} [children] - Data objects to be added recursively as children
|
||||
* @property {string} [namespace="http://www.w3.org/2000/svg"] - Indicate a (non-SVG) namespace
|
||||
|
@ -4998,7 +4998,7 @@ var editorContext_ = null;
|
|||
/**
|
||||
* @function module:path.EditorContext#remapElement
|
||||
* @param {Element} selected - DOM element to be changed
|
||||
* @param {PlainObject.<string, string>} changes - Object with changes to be remapped
|
||||
* @param {PlainObject<string, string>} changes - Object with changes to be remapped
|
||||
* @param {SVGMatrix} m - Matrix object to use for remapping coordinates
|
||||
* @returns {void}
|
||||
*/
|
||||
|
@ -7872,7 +7872,7 @@ var svgroot_ = null;
|
|||
* Object with the following keys/values
|
||||
* @typedef {PlainObject} module:utilities.SVGElementJSON
|
||||
* @property {string} element - Tag name of the SVG element to create
|
||||
* @property {PlainObject.<string, string>} attr - Has key-value attributes to assign to the new element
|
||||
* @property {PlainObject<string, string>} attr - Has key-value attributes to assign to the new element. An `id` should be set so that {@link module:utilities.EditorContext#addSVGElementFromJson} can later re-identify the element for modification or replacement.
|
||||
* @property {boolean} [curStyles=false] - Indicates whether current style attributes should be applied first
|
||||
* @property {module:utilities.SVGElementJSON[]} [children] - Data objects to be added recursively as children
|
||||
* @property {string} [namespace="http://www.w3.org/2000/svg"] - Indicate a (non-SVG) namespace
|
||||
|
@ -10353,7 +10353,7 @@ function () {
|
|||
* Note: Layers are ordered, but referenced externally by name; so, we need both container
|
||||
* types depending on which function is called (i.e. all_layers and layer_map).
|
||||
*
|
||||
* @type {PlainObject.<string, Layer>}
|
||||
* @type {PlainObject<string, Layer>}
|
||||
*/
|
||||
|
||||
this.layer_map = {};
|
||||
|
@ -10365,7 +10365,7 @@ function () {
|
|||
this.current_layer = null;
|
||||
/**
|
||||
* The nonce to use to uniquely identify elements across drawings.
|
||||
* @type {!String}
|
||||
* @type {!string}
|
||||
*/
|
||||
|
||||
this.nonce_ = '';
|
||||
|
@ -13559,7 +13559,8 @@ if (window.opera) {
|
|||
window.console.dir = function (str) {
|
||||
/* */
|
||||
};
|
||||
}
|
||||
} // Reenable after fixing eslint-plugin-jsdoc to handle
|
||||
|
||||
/**
|
||||
* The main SvgCanvas class that manages all SVG-related functions.
|
||||
* @memberof module:svgcanvas
|
||||
|
@ -13728,7 +13729,7 @@ function SvgCanvas(container, config) {
|
|||
/**
|
||||
* @typedef {PlainObject} module:svgcanvas.SVGAsJSON
|
||||
* @property {string} element
|
||||
* @property {PlainObject.<string, string>} attr
|
||||
* @property {PlainObject<string, string>} attr
|
||||
* @property {module:svgcanvas.SVGAsJSON[]} children
|
||||
*/
|
||||
|
||||
|
@ -14575,8 +14576,8 @@ function SvgCanvas(container, config) {
|
|||
|
||||
/**
|
||||
* @interface module:svgcanvas.ExtensionInitResponse
|
||||
* @property {module:SVGEditor.ContextTool[]|PlainObject.<string, module:SVGEditor.ContextTool>} [context_tools]
|
||||
* @property {module:SVGEditor.Button[]|PlainObject.<Integer, module:SVGEditor.Button>} [buttons]
|
||||
* @property {module:SVGEditor.ContextTool[]|PlainObject<string, module:SVGEditor.ContextTool>} [context_tools]
|
||||
* @property {module:SVGEditor.Button[]|PlainObject<Integer, module:SVGEditor.Button>} [buttons]
|
||||
* @property {string} [svgicons] The location of a local SVG or SVGz file
|
||||
*/
|
||||
|
||||
|
@ -20684,7 +20685,7 @@ function SvgCanvas(container, config) {
|
|||
var batchCmd = new BatchCommand$1('Paste elements'); // const drawing = getCurrentDrawing();
|
||||
|
||||
/**
|
||||
* @typedef {PlainObject.<string, string>} module:svgcanvas.ChangedIDs
|
||||
* @typedef {PlainObject<string, string>} module:svgcanvas.ChangedIDs
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -22381,7 +22382,7 @@ $(function() {
|
|||
|
||||
/**
|
||||
* @callback module:jQuerySVGIcons.SVGIconsLoadedCallback
|
||||
* @param {PlainObject.<string, external:jQuery>} svgIcons IDs keyed to jQuery objects of images
|
||||
* @param {PlainObject<string, external:jQuery>} svgIcons IDs keyed to jQuery objects of images
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -22396,13 +22397,13 @@ function jQueryPluginSVGIcons($) {
|
|||
/**
|
||||
* Map of raster images with each key being the SVG icon ID
|
||||
* to replace, and the value the image file name
|
||||
* @typedef {PlainObject.<string, string>} external:jQuery.svgIcons.Fallback
|
||||
* @typedef {PlainObject<string, string>} external:jQuery.svgIcons.Fallback
|
||||
*/
|
||||
|
||||
/**
|
||||
* Map of raster images with each key being the SVG icon ID
|
||||
* whose `alt` will be set, and the value being the `alt` text
|
||||
* @typedef {PlainObject.<string, string>} external:jQuery.svgIcons.Alts
|
||||
* @typedef {PlainObject<string, string>} external:jQuery.svgIcons.Alts
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -23097,7 +23098,7 @@ function jQueryPluginJGraduate($) {
|
|||
};
|
||||
var isGecko = navigator.userAgent.includes('Gecko/');
|
||||
/**
|
||||
* @typedef {PlainObject.<string, string>} module:jGraduate.Attrs
|
||||
* @typedef {PlainObject<string, string>} module:jGraduate.Attrs
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -25355,7 +25356,6 @@ var jPicker = function jPicker($) {
|
|||
* @param {external:jQuery.jPicker.Color} color
|
||||
* @param {external:jQuery.fn.$.fn.jPicker} bindedHex
|
||||
* @param {Float} alphaPrecision
|
||||
* @constructor
|
||||
*/
|
||||
|
||||
|
||||
|
@ -32246,10 +32246,10 @@ editor.init = function () {
|
|||
* @typedef {PlainObject} module:SVGEditor.ContextTool
|
||||
* @property {string} panel The ID of the existing panel to which the tool is being added. Required.
|
||||
* @property {string} id The ID of the actual tool element. Required.
|
||||
* @property {PlainObject.<string, external:jQuery.Function>|PlainObject.<"change", external:jQuery.Function>} events DOM event names keyed to associated functions. Example: `{change () { alert('Option was changed') } }`. "change" event is one specifically handled for the "button-select" type. Required.
|
||||
* @property {PlainObject<string, external:jQuery.Function>|PlainObject<"change", external:jQuery.Function>} events DOM event names keyed to associated functions. Example: `{change () { alert('Option was changed') } }`. "change" event is one specifically handled for the "button-select" type. Required.
|
||||
* @property {string} title The tooltip text that will appear when the user hovers over the tool. Required.
|
||||
* @property {"tool_button"|"select"|"button-select"|"input"|string} type The type of tool being added. Expected.
|
||||
* @property {PlainObject.<string, string>} [options] List of options and their labels for select tools. Example: `{1: 'One', 2: 'Two', all: 'All' }`. Required by "select" tools.
|
||||
* @property {PlainObject<string, string>} [options] List of options and their labels for select tools. Example: `{1: 'One', 2: 'Two', all: 'All' }`. Required by "select" tools.
|
||||
* @property {string} [container_id] The ID to be given to the tool's container element.
|
||||
* @property {string} [defval] Default value
|
||||
* @property {string|Integer} [colnum] Added as part of the option list class.
|
||||
|
@ -32376,7 +32376,7 @@ editor.init = function () {
|
|||
* @property {string} id A unique identifier for this button. If SVG icons are used, this must match the ID used in the icon file. Required.
|
||||
* @property {"mode_flyout"|"mode"|"context"|"app_menu"} type Type of button. Required.
|
||||
* @property {string} title The tooltip text that will appear when the user hovers over the icon. Required.
|
||||
* @property {PlainObject.<string, external:jQuery.Function>|PlainObject.<"click", external:jQuery.Function>} events DOM event names with associated functions. Example: `{click () { alert('Button was clicked') } }`. Click is used with `includeWith` and `type` of "mode_flyout" (and "mode"); any events may be added if `list` is not present. Expected.
|
||||
* @property {PlainObject<string, external:jQuery.Function>|PlainObject<"click", external:jQuery.Function>} events DOM event names with associated functions. Example: `{click () { alert('Button was clicked') } }`. Click is used with `includeWith` and `type` of "mode_flyout" (and "mode"); any events may be added if `list` is not present. Expected.
|
||||
* @property {string} panel The ID of the context panel to be included, if type is "context". Required only if type is "context".
|
||||
* @property {string} icon The file path to the raster version of the icon image source. Required only if no `svgicons` is supplied from [ExtensionInitResponse]{@link module:svgcanvas.ExtensionInitResponse}.
|
||||
* @property {string} [svgicon] If absent, will utilize the button "id"; used to set "placement" on the `svgIcons` call
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -2928,7 +2928,7 @@
|
|||
var proxied = $.fn.attr,
|
||||
svgns = 'http://www.w3.org/2000/svg';
|
||||
/**
|
||||
* @typedef {PlainObject.<string, string|Float>} module:jQueryAttr.Attributes
|
||||
* @typedef {PlainObject<string, string|Float>} module:jQueryAttr.Attributes
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -4130,7 +4130,7 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* @typedef {PlainObject.<module:history.CommandAttributeName, string>} module:history.CommandAttributes
|
||||
* @typedef {PlainObject<module:history.CommandAttributeName, string>} module:history.CommandAttributes
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -4906,7 +4906,7 @@
|
|||
/**
|
||||
* @tutorial LocaleDocs
|
||||
* @typedef {module:locale.LocaleStrings|PlainObject} module:path.uiStrings
|
||||
* @property {PlainObject.<string, string>} ui
|
||||
* @property {PlainObject<string, string>} ui
|
||||
*/
|
||||
|
||||
var uiStrings = {};
|
||||
|
@ -4950,7 +4950,7 @@
|
|||
* Object with the following keys/values
|
||||
* @typedef {PlainObject} module:path.SVGElementJSON
|
||||
* @property {string} element - Tag name of the SVG element to create
|
||||
* @property {PlainObject.<string, string>} attr - Has key-value attributes to assign to the new element
|
||||
* @property {PlainObject<string, string>} attr - Has key-value attributes to assign to the new element. An `id` should be set so that {@link module:utilities.EditorContext#addSVGElementFromJson} can later re-identify the element for modification or replacement.
|
||||
* @property {boolean} [curStyles=false] - Indicates whether current style attributes should be applied first
|
||||
* @property {module:path.SVGElementJSON[]} [children] - Data objects to be added recursively as children
|
||||
* @property {string} [namespace="http://www.w3.org/2000/svg"] - Indicate a (non-SVG) namespace
|
||||
|
@ -5004,7 +5004,7 @@
|
|||
/**
|
||||
* @function module:path.EditorContext#remapElement
|
||||
* @param {Element} selected - DOM element to be changed
|
||||
* @param {PlainObject.<string, string>} changes - Object with changes to be remapped
|
||||
* @param {PlainObject<string, string>} changes - Object with changes to be remapped
|
||||
* @param {SVGMatrix} m - Matrix object to use for remapping coordinates
|
||||
* @returns {void}
|
||||
*/
|
||||
|
@ -7878,7 +7878,7 @@
|
|||
* Object with the following keys/values
|
||||
* @typedef {PlainObject} module:utilities.SVGElementJSON
|
||||
* @property {string} element - Tag name of the SVG element to create
|
||||
* @property {PlainObject.<string, string>} attr - Has key-value attributes to assign to the new element
|
||||
* @property {PlainObject<string, string>} attr - Has key-value attributes to assign to the new element. An `id` should be set so that {@link module:utilities.EditorContext#addSVGElementFromJson} can later re-identify the element for modification or replacement.
|
||||
* @property {boolean} [curStyles=false] - Indicates whether current style attributes should be applied first
|
||||
* @property {module:utilities.SVGElementJSON[]} [children] - Data objects to be added recursively as children
|
||||
* @property {string} [namespace="http://www.w3.org/2000/svg"] - Indicate a (non-SVG) namespace
|
||||
|
@ -10359,7 +10359,7 @@
|
|||
* Note: Layers are ordered, but referenced externally by name; so, we need both container
|
||||
* types depending on which function is called (i.e. all_layers and layer_map).
|
||||
*
|
||||
* @type {PlainObject.<string, Layer>}
|
||||
* @type {PlainObject<string, Layer>}
|
||||
*/
|
||||
|
||||
this.layer_map = {};
|
||||
|
@ -10371,7 +10371,7 @@
|
|||
this.current_layer = null;
|
||||
/**
|
||||
* The nonce to use to uniquely identify elements across drawings.
|
||||
* @type {!String}
|
||||
* @type {!string}
|
||||
*/
|
||||
|
||||
this.nonce_ = '';
|
||||
|
@ -13565,7 +13565,8 @@
|
|||
window.console.dir = function (str) {
|
||||
/* */
|
||||
};
|
||||
}
|
||||
} // Reenable after fixing eslint-plugin-jsdoc to handle
|
||||
|
||||
/**
|
||||
* The main SvgCanvas class that manages all SVG-related functions.
|
||||
* @memberof module:svgcanvas
|
||||
|
@ -13734,7 +13735,7 @@
|
|||
/**
|
||||
* @typedef {PlainObject} module:svgcanvas.SVGAsJSON
|
||||
* @property {string} element
|
||||
* @property {PlainObject.<string, string>} attr
|
||||
* @property {PlainObject<string, string>} attr
|
||||
* @property {module:svgcanvas.SVGAsJSON[]} children
|
||||
*/
|
||||
|
||||
|
@ -14581,8 +14582,8 @@
|
|||
|
||||
/**
|
||||
* @interface module:svgcanvas.ExtensionInitResponse
|
||||
* @property {module:SVGEditor.ContextTool[]|PlainObject.<string, module:SVGEditor.ContextTool>} [context_tools]
|
||||
* @property {module:SVGEditor.Button[]|PlainObject.<Integer, module:SVGEditor.Button>} [buttons]
|
||||
* @property {module:SVGEditor.ContextTool[]|PlainObject<string, module:SVGEditor.ContextTool>} [context_tools]
|
||||
* @property {module:SVGEditor.Button[]|PlainObject<Integer, module:SVGEditor.Button>} [buttons]
|
||||
* @property {string} [svgicons] The location of a local SVG or SVGz file
|
||||
*/
|
||||
|
||||
|
@ -20690,7 +20691,7 @@
|
|||
var batchCmd = new BatchCommand$1('Paste elements'); // const drawing = getCurrentDrawing();
|
||||
|
||||
/**
|
||||
* @typedef {PlainObject.<string, string>} module:svgcanvas.ChangedIDs
|
||||
* @typedef {PlainObject<string, string>} module:svgcanvas.ChangedIDs
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -22387,7 +22388,7 @@
|
|||
|
||||
/**
|
||||
* @callback module:jQuerySVGIcons.SVGIconsLoadedCallback
|
||||
* @param {PlainObject.<string, external:jQuery>} svgIcons IDs keyed to jQuery objects of images
|
||||
* @param {PlainObject<string, external:jQuery>} svgIcons IDs keyed to jQuery objects of images
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -22402,13 +22403,13 @@
|
|||
/**
|
||||
* Map of raster images with each key being the SVG icon ID
|
||||
* to replace, and the value the image file name
|
||||
* @typedef {PlainObject.<string, string>} external:jQuery.svgIcons.Fallback
|
||||
* @typedef {PlainObject<string, string>} external:jQuery.svgIcons.Fallback
|
||||
*/
|
||||
|
||||
/**
|
||||
* Map of raster images with each key being the SVG icon ID
|
||||
* whose `alt` will be set, and the value being the `alt` text
|
||||
* @typedef {PlainObject.<string, string>} external:jQuery.svgIcons.Alts
|
||||
* @typedef {PlainObject<string, string>} external:jQuery.svgIcons.Alts
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -23103,7 +23104,7 @@
|
|||
};
|
||||
var isGecko = navigator.userAgent.includes('Gecko/');
|
||||
/**
|
||||
* @typedef {PlainObject.<string, string>} module:jGraduate.Attrs
|
||||
* @typedef {PlainObject<string, string>} module:jGraduate.Attrs
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -25361,7 +25362,6 @@
|
|||
* @param {external:jQuery.jPicker.Color} color
|
||||
* @param {external:jQuery.fn.$.fn.jPicker} bindedHex
|
||||
* @param {Float} alphaPrecision
|
||||
* @constructor
|
||||
*/
|
||||
|
||||
|
||||
|
@ -32252,10 +32252,10 @@
|
|||
* @typedef {PlainObject} module:SVGEditor.ContextTool
|
||||
* @property {string} panel The ID of the existing panel to which the tool is being added. Required.
|
||||
* @property {string} id The ID of the actual tool element. Required.
|
||||
* @property {PlainObject.<string, external:jQuery.Function>|PlainObject.<"change", external:jQuery.Function>} events DOM event names keyed to associated functions. Example: `{change () { alert('Option was changed') } }`. "change" event is one specifically handled for the "button-select" type. Required.
|
||||
* @property {PlainObject<string, external:jQuery.Function>|PlainObject<"change", external:jQuery.Function>} events DOM event names keyed to associated functions. Example: `{change () { alert('Option was changed') } }`. "change" event is one specifically handled for the "button-select" type. Required.
|
||||
* @property {string} title The tooltip text that will appear when the user hovers over the tool. Required.
|
||||
* @property {"tool_button"|"select"|"button-select"|"input"|string} type The type of tool being added. Expected.
|
||||
* @property {PlainObject.<string, string>} [options] List of options and their labels for select tools. Example: `{1: 'One', 2: 'Two', all: 'All' }`. Required by "select" tools.
|
||||
* @property {PlainObject<string, string>} [options] List of options and their labels for select tools. Example: `{1: 'One', 2: 'Two', all: 'All' }`. Required by "select" tools.
|
||||
* @property {string} [container_id] The ID to be given to the tool's container element.
|
||||
* @property {string} [defval] Default value
|
||||
* @property {string|Integer} [colnum] Added as part of the option list class.
|
||||
|
@ -32382,7 +32382,7 @@
|
|||
* @property {string} id A unique identifier for this button. If SVG icons are used, this must match the ID used in the icon file. Required.
|
||||
* @property {"mode_flyout"|"mode"|"context"|"app_menu"} type Type of button. Required.
|
||||
* @property {string} title The tooltip text that will appear when the user hovers over the icon. Required.
|
||||
* @property {PlainObject.<string, external:jQuery.Function>|PlainObject.<"click", external:jQuery.Function>} events DOM event names with associated functions. Example: `{click () { alert('Button was clicked') } }`. Click is used with `includeWith` and `type` of "mode_flyout" (and "mode"); any events may be added if `list` is not present. Expected.
|
||||
* @property {PlainObject<string, external:jQuery.Function>|PlainObject<"click", external:jQuery.Function>} events DOM event names with associated functions. Example: `{click () { alert('Button was clicked') } }`. Click is used with `includeWith` and `type` of "mode_flyout" (and "mode"); any events may be added if `list` is not present. Expected.
|
||||
* @property {string} panel The ID of the context panel to be included, if type is "context". Required only if type is "context".
|
||||
* @property {string} icon The file path to the raster version of the icon image source. Required only if no `svgicons` is supplied from [ExtensionInitResponse]{@link module:svgcanvas.ExtensionInitResponse}.
|
||||
* @property {string} [svgicon] If absent, will utilize the button "id"; used to set "placement" on the `svgIcons` call
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -2529,7 +2529,7 @@ var SvgCanvas = (function () {
|
|||
var proxied = $.fn.attr,
|
||||
svgns = 'http://www.w3.org/2000/svg';
|
||||
/**
|
||||
* @typedef {PlainObject.<string, string|Float>} module:jQueryAttr.Attributes
|
||||
* @typedef {PlainObject<string, string|Float>} module:jQueryAttr.Attributes
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -4196,7 +4196,7 @@ var SvgCanvas = (function () {
|
|||
*/
|
||||
|
||||
/**
|
||||
* @typedef {PlainObject.<module:history.CommandAttributeName, string>} module:history.CommandAttributes
|
||||
* @typedef {PlainObject<module:history.CommandAttributeName, string>} module:history.CommandAttributes
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -4972,7 +4972,7 @@ var SvgCanvas = (function () {
|
|||
/**
|
||||
* @tutorial LocaleDocs
|
||||
* @typedef {module:locale.LocaleStrings|PlainObject} module:path.uiStrings
|
||||
* @property {PlainObject.<string, string>} ui
|
||||
* @property {PlainObject<string, string>} ui
|
||||
*/
|
||||
|
||||
var uiStrings = {};
|
||||
|
@ -5016,7 +5016,7 @@ var SvgCanvas = (function () {
|
|||
* Object with the following keys/values
|
||||
* @typedef {PlainObject} module:path.SVGElementJSON
|
||||
* @property {string} element - Tag name of the SVG element to create
|
||||
* @property {PlainObject.<string, string>} attr - Has key-value attributes to assign to the new element
|
||||
* @property {PlainObject<string, string>} attr - Has key-value attributes to assign to the new element. An `id` should be set so that {@link module:utilities.EditorContext#addSVGElementFromJson} can later re-identify the element for modification or replacement.
|
||||
* @property {boolean} [curStyles=false] - Indicates whether current style attributes should be applied first
|
||||
* @property {module:path.SVGElementJSON[]} [children] - Data objects to be added recursively as children
|
||||
* @property {string} [namespace="http://www.w3.org/2000/svg"] - Indicate a (non-SVG) namespace
|
||||
|
@ -5070,7 +5070,7 @@ var SvgCanvas = (function () {
|
|||
/**
|
||||
* @function module:path.EditorContext#remapElement
|
||||
* @param {Element} selected - DOM element to be changed
|
||||
* @param {PlainObject.<string, string>} changes - Object with changes to be remapped
|
||||
* @param {PlainObject<string, string>} changes - Object with changes to be remapped
|
||||
* @param {SVGMatrix} m - Matrix object to use for remapping coordinates
|
||||
* @returns {void}
|
||||
*/
|
||||
|
@ -7944,7 +7944,7 @@ var SvgCanvas = (function () {
|
|||
* Object with the following keys/values
|
||||
* @typedef {PlainObject} module:utilities.SVGElementJSON
|
||||
* @property {string} element - Tag name of the SVG element to create
|
||||
* @property {PlainObject.<string, string>} attr - Has key-value attributes to assign to the new element
|
||||
* @property {PlainObject<string, string>} attr - Has key-value attributes to assign to the new element. An `id` should be set so that {@link module:utilities.EditorContext#addSVGElementFromJson} can later re-identify the element for modification or replacement.
|
||||
* @property {boolean} [curStyles=false] - Indicates whether current style attributes should be applied first
|
||||
* @property {module:utilities.SVGElementJSON[]} [children] - Data objects to be added recursively as children
|
||||
* @property {string} [namespace="http://www.w3.org/2000/svg"] - Indicate a (non-SVG) namespace
|
||||
|
@ -9920,7 +9920,7 @@ var SvgCanvas = (function () {
|
|||
* Note: Layers are ordered, but referenced externally by name; so, we need both container
|
||||
* types depending on which function is called (i.e. all_layers and layer_map).
|
||||
*
|
||||
* @type {PlainObject.<string, Layer>}
|
||||
* @type {PlainObject<string, Layer>}
|
||||
*/
|
||||
|
||||
this.layer_map = {};
|
||||
|
@ -9932,7 +9932,7 @@ var SvgCanvas = (function () {
|
|||
this.current_layer = null;
|
||||
/**
|
||||
* The nonce to use to uniquely identify elements across drawings.
|
||||
* @type {!String}
|
||||
* @type {!string}
|
||||
*/
|
||||
|
||||
this.nonce_ = '';
|
||||
|
@ -13337,7 +13337,8 @@ var SvgCanvas = (function () {
|
|||
window.console.dir = function (str) {
|
||||
/* */
|
||||
};
|
||||
}
|
||||
} // Reenable after fixing eslint-plugin-jsdoc to handle
|
||||
|
||||
/**
|
||||
* The main SvgCanvas class that manages all SVG-related functions.
|
||||
* @memberof module:svgcanvas
|
||||
|
@ -13506,7 +13507,7 @@ var SvgCanvas = (function () {
|
|||
/**
|
||||
* @typedef {PlainObject} module:svgcanvas.SVGAsJSON
|
||||
* @property {string} element
|
||||
* @property {PlainObject.<string, string>} attr
|
||||
* @property {PlainObject<string, string>} attr
|
||||
* @property {module:svgcanvas.SVGAsJSON[]} children
|
||||
*/
|
||||
|
||||
|
@ -14353,8 +14354,8 @@ var SvgCanvas = (function () {
|
|||
|
||||
/**
|
||||
* @interface module:svgcanvas.ExtensionInitResponse
|
||||
* @property {module:SVGEditor.ContextTool[]|PlainObject.<string, module:SVGEditor.ContextTool>} [context_tools]
|
||||
* @property {module:SVGEditor.Button[]|PlainObject.<Integer, module:SVGEditor.Button>} [buttons]
|
||||
* @property {module:SVGEditor.ContextTool[]|PlainObject<string, module:SVGEditor.ContextTool>} [context_tools]
|
||||
* @property {module:SVGEditor.Button[]|PlainObject<Integer, module:SVGEditor.Button>} [buttons]
|
||||
* @property {string} [svgicons] The location of a local SVG or SVGz file
|
||||
*/
|
||||
|
||||
|
@ -20462,7 +20463,7 @@ var SvgCanvas = (function () {
|
|||
var batchCmd = new BatchCommand$1('Paste elements'); // const drawing = getCurrentDrawing();
|
||||
|
||||
/**
|
||||
* @typedef {PlainObject.<string, string>} module:svgcanvas.ChangedIDs
|
||||
* @typedef {PlainObject<string, string>} module:svgcanvas.ChangedIDs
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -2925,7 +2925,7 @@
|
|||
var proxied = $.fn.attr,
|
||||
svgns = 'http://www.w3.org/2000/svg';
|
||||
/**
|
||||
* @typedef {PlainObject.<string, string|Float>} module:jQueryAttr.Attributes
|
||||
* @typedef {PlainObject<string, string|Float>} module:jQueryAttr.Attributes
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -4127,7 +4127,7 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* @typedef {PlainObject.<module:history.CommandAttributeName, string>} module:history.CommandAttributes
|
||||
* @typedef {PlainObject<module:history.CommandAttributeName, string>} module:history.CommandAttributes
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -4903,7 +4903,7 @@
|
|||
/**
|
||||
* @tutorial LocaleDocs
|
||||
* @typedef {module:locale.LocaleStrings|PlainObject} module:path.uiStrings
|
||||
* @property {PlainObject.<string, string>} ui
|
||||
* @property {PlainObject<string, string>} ui
|
||||
*/
|
||||
|
||||
var uiStrings = {};
|
||||
|
@ -4947,7 +4947,7 @@
|
|||
* Object with the following keys/values
|
||||
* @typedef {PlainObject} module:path.SVGElementJSON
|
||||
* @property {string} element - Tag name of the SVG element to create
|
||||
* @property {PlainObject.<string, string>} attr - Has key-value attributes to assign to the new element
|
||||
* @property {PlainObject<string, string>} attr - Has key-value attributes to assign to the new element. An `id` should be set so that {@link module:utilities.EditorContext#addSVGElementFromJson} can later re-identify the element for modification or replacement.
|
||||
* @property {boolean} [curStyles=false] - Indicates whether current style attributes should be applied first
|
||||
* @property {module:path.SVGElementJSON[]} [children] - Data objects to be added recursively as children
|
||||
* @property {string} [namespace="http://www.w3.org/2000/svg"] - Indicate a (non-SVG) namespace
|
||||
|
@ -5001,7 +5001,7 @@
|
|||
/**
|
||||
* @function module:path.EditorContext#remapElement
|
||||
* @param {Element} selected - DOM element to be changed
|
||||
* @param {PlainObject.<string, string>} changes - Object with changes to be remapped
|
||||
* @param {PlainObject<string, string>} changes - Object with changes to be remapped
|
||||
* @param {SVGMatrix} m - Matrix object to use for remapping coordinates
|
||||
* @returns {void}
|
||||
*/
|
||||
|
@ -7875,7 +7875,7 @@
|
|||
* Object with the following keys/values
|
||||
* @typedef {PlainObject} module:utilities.SVGElementJSON
|
||||
* @property {string} element - Tag name of the SVG element to create
|
||||
* @property {PlainObject.<string, string>} attr - Has key-value attributes to assign to the new element
|
||||
* @property {PlainObject<string, string>} attr - Has key-value attributes to assign to the new element. An `id` should be set so that {@link module:utilities.EditorContext#addSVGElementFromJson} can later re-identify the element for modification or replacement.
|
||||
* @property {boolean} [curStyles=false] - Indicates whether current style attributes should be applied first
|
||||
* @property {module:utilities.SVGElementJSON[]} [children] - Data objects to be added recursively as children
|
||||
* @property {string} [namespace="http://www.w3.org/2000/svg"] - Indicate a (non-SVG) namespace
|
||||
|
@ -10356,7 +10356,7 @@
|
|||
* Note: Layers are ordered, but referenced externally by name; so, we need both container
|
||||
* types depending on which function is called (i.e. all_layers and layer_map).
|
||||
*
|
||||
* @type {PlainObject.<string, Layer>}
|
||||
* @type {PlainObject<string, Layer>}
|
||||
*/
|
||||
|
||||
this.layer_map = {};
|
||||
|
@ -10368,7 +10368,7 @@
|
|||
this.current_layer = null;
|
||||
/**
|
||||
* The nonce to use to uniquely identify elements across drawings.
|
||||
* @type {!String}
|
||||
* @type {!string}
|
||||
*/
|
||||
|
||||
this.nonce_ = '';
|
||||
|
@ -13562,7 +13562,8 @@
|
|||
window.console.dir = function (str) {
|
||||
/* */
|
||||
};
|
||||
}
|
||||
} // Reenable after fixing eslint-plugin-jsdoc to handle
|
||||
|
||||
/**
|
||||
* The main SvgCanvas class that manages all SVG-related functions.
|
||||
* @memberof module:svgcanvas
|
||||
|
@ -13731,7 +13732,7 @@
|
|||
/**
|
||||
* @typedef {PlainObject} module:svgcanvas.SVGAsJSON
|
||||
* @property {string} element
|
||||
* @property {PlainObject.<string, string>} attr
|
||||
* @property {PlainObject<string, string>} attr
|
||||
* @property {module:svgcanvas.SVGAsJSON[]} children
|
||||
*/
|
||||
|
||||
|
@ -14578,8 +14579,8 @@
|
|||
|
||||
/**
|
||||
* @interface module:svgcanvas.ExtensionInitResponse
|
||||
* @property {module:SVGEditor.ContextTool[]|PlainObject.<string, module:SVGEditor.ContextTool>} [context_tools]
|
||||
* @property {module:SVGEditor.Button[]|PlainObject.<Integer, module:SVGEditor.Button>} [buttons]
|
||||
* @property {module:SVGEditor.ContextTool[]|PlainObject<string, module:SVGEditor.ContextTool>} [context_tools]
|
||||
* @property {module:SVGEditor.Button[]|PlainObject<Integer, module:SVGEditor.Button>} [buttons]
|
||||
* @property {string} [svgicons] The location of a local SVG or SVGz file
|
||||
*/
|
||||
|
||||
|
@ -20687,7 +20688,7 @@
|
|||
var batchCmd = new BatchCommand$1('Paste elements'); // const drawing = getCurrentDrawing();
|
||||
|
||||
/**
|
||||
* @typedef {PlainObject.<string, string>} module:svgcanvas.ChangedIDs
|
||||
* @typedef {PlainObject<string, string>} module:svgcanvas.ChangedIDs
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -22384,7 +22385,7 @@
|
|||
|
||||
/**
|
||||
* @callback module:jQuerySVGIcons.SVGIconsLoadedCallback
|
||||
* @param {PlainObject.<string, external:jQuery>} svgIcons IDs keyed to jQuery objects of images
|
||||
* @param {PlainObject<string, external:jQuery>} svgIcons IDs keyed to jQuery objects of images
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -22399,13 +22400,13 @@
|
|||
/**
|
||||
* Map of raster images with each key being the SVG icon ID
|
||||
* to replace, and the value the image file name
|
||||
* @typedef {PlainObject.<string, string>} external:jQuery.svgIcons.Fallback
|
||||
* @typedef {PlainObject<string, string>} external:jQuery.svgIcons.Fallback
|
||||
*/
|
||||
|
||||
/**
|
||||
* Map of raster images with each key being the SVG icon ID
|
||||
* whose `alt` will be set, and the value being the `alt` text
|
||||
* @typedef {PlainObject.<string, string>} external:jQuery.svgIcons.Alts
|
||||
* @typedef {PlainObject<string, string>} external:jQuery.svgIcons.Alts
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -23100,7 +23101,7 @@
|
|||
};
|
||||
var isGecko = navigator.userAgent.includes('Gecko/');
|
||||
/**
|
||||
* @typedef {PlainObject.<string, string>} module:jGraduate.Attrs
|
||||
* @typedef {PlainObject<string, string>} module:jGraduate.Attrs
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -25358,7 +25359,6 @@
|
|||
* @param {external:jQuery.jPicker.Color} color
|
||||
* @param {external:jQuery.fn.$.fn.jPicker} bindedHex
|
||||
* @param {Float} alphaPrecision
|
||||
* @constructor
|
||||
*/
|
||||
|
||||
|
||||
|
@ -32249,10 +32249,10 @@
|
|||
* @typedef {PlainObject} module:SVGEditor.ContextTool
|
||||
* @property {string} panel The ID of the existing panel to which the tool is being added. Required.
|
||||
* @property {string} id The ID of the actual tool element. Required.
|
||||
* @property {PlainObject.<string, external:jQuery.Function>|PlainObject.<"change", external:jQuery.Function>} events DOM event names keyed to associated functions. Example: `{change () { alert('Option was changed') } }`. "change" event is one specifically handled for the "button-select" type. Required.
|
||||
* @property {PlainObject<string, external:jQuery.Function>|PlainObject<"change", external:jQuery.Function>} events DOM event names keyed to associated functions. Example: `{change () { alert('Option was changed') } }`. "change" event is one specifically handled for the "button-select" type. Required.
|
||||
* @property {string} title The tooltip text that will appear when the user hovers over the tool. Required.
|
||||
* @property {"tool_button"|"select"|"button-select"|"input"|string} type The type of tool being added. Expected.
|
||||
* @property {PlainObject.<string, string>} [options] List of options and their labels for select tools. Example: `{1: 'One', 2: 'Two', all: 'All' }`. Required by "select" tools.
|
||||
* @property {PlainObject<string, string>} [options] List of options and their labels for select tools. Example: `{1: 'One', 2: 'Two', all: 'All' }`. Required by "select" tools.
|
||||
* @property {string} [container_id] The ID to be given to the tool's container element.
|
||||
* @property {string} [defval] Default value
|
||||
* @property {string|Integer} [colnum] Added as part of the option list class.
|
||||
|
@ -32379,7 +32379,7 @@
|
|||
* @property {string} id A unique identifier for this button. If SVG icons are used, this must match the ID used in the icon file. Required.
|
||||
* @property {"mode_flyout"|"mode"|"context"|"app_menu"} type Type of button. Required.
|
||||
* @property {string} title The tooltip text that will appear when the user hovers over the icon. Required.
|
||||
* @property {PlainObject.<string, external:jQuery.Function>|PlainObject.<"click", external:jQuery.Function>} events DOM event names with associated functions. Example: `{click () { alert('Button was clicked') } }`. Click is used with `includeWith` and `type` of "mode_flyout" (and "mode"); any events may be added if `list` is not present. Expected.
|
||||
* @property {PlainObject<string, external:jQuery.Function>|PlainObject<"click", external:jQuery.Function>} events DOM event names with associated functions. Example: `{click () { alert('Button was clicked') } }`. Click is used with `includeWith` and `type` of "mode_flyout" (and "mode"); any events may be added if `list` is not present. Expected.
|
||||
* @property {string} panel The ID of the context panel to be included, if type is "context". Required only if type is "context".
|
||||
* @property {string} icon The file path to the raster version of the icon image source. Required only if no `svgicons` is supplied from [ExtensionInitResponse]{@link module:svgcanvas.ExtensionInitResponse}.
|
||||
* @property {string} [svgicon] If absent, will utilize the button "id"; used to set "placement" on the `svgIcons` call
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -3,14 +3,13 @@
|
|||
// NOTE:
|
||||
// See rollup-config.config.js instead for building the main (configurable)
|
||||
// user entrance file
|
||||
import {join, basename} from 'path';
|
||||
import {lstatSync, readdirSync, copyFileSync} from 'fs';
|
||||
|
||||
import babel from 'rollup-plugin-babel';
|
||||
import {terser} from 'rollup-plugin-terser';
|
||||
import replace from 'rollup-plugin-re';
|
||||
|
||||
const {lstatSync, readdirSync, copyFileSync} = require('fs'); // eslint-disable-line import/no-commonjs
|
||||
const {join, basename} = require('path'); // eslint-disable-line import/no-commonjs
|
||||
|
||||
const localeFiles = readdirSync('editor/locale');
|
||||
const extensionFiles = readdirSync('editor/extensions');
|
||||
|
||||
|
|
|
@ -2925,7 +2925,7 @@
|
|||
var proxied = $.fn.attr,
|
||||
svgns = 'http://www.w3.org/2000/svg';
|
||||
/**
|
||||
* @typedef {PlainObject.<string, string|Float>} module:jQueryAttr.Attributes
|
||||
* @typedef {PlainObject<string, string|Float>} module:jQueryAttr.Attributes
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -4127,7 +4127,7 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* @typedef {PlainObject.<module:history.CommandAttributeName, string>} module:history.CommandAttributes
|
||||
* @typedef {PlainObject<module:history.CommandAttributeName, string>} module:history.CommandAttributes
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -4903,7 +4903,7 @@
|
|||
/**
|
||||
* @tutorial LocaleDocs
|
||||
* @typedef {module:locale.LocaleStrings|PlainObject} module:path.uiStrings
|
||||
* @property {PlainObject.<string, string>} ui
|
||||
* @property {PlainObject<string, string>} ui
|
||||
*/
|
||||
|
||||
var uiStrings = {};
|
||||
|
@ -4947,7 +4947,7 @@
|
|||
* Object with the following keys/values
|
||||
* @typedef {PlainObject} module:path.SVGElementJSON
|
||||
* @property {string} element - Tag name of the SVG element to create
|
||||
* @property {PlainObject.<string, string>} attr - Has key-value attributes to assign to the new element
|
||||
* @property {PlainObject<string, string>} attr - Has key-value attributes to assign to the new element. An `id` should be set so that {@link module:utilities.EditorContext#addSVGElementFromJson} can later re-identify the element for modification or replacement.
|
||||
* @property {boolean} [curStyles=false] - Indicates whether current style attributes should be applied first
|
||||
* @property {module:path.SVGElementJSON[]} [children] - Data objects to be added recursively as children
|
||||
* @property {string} [namespace="http://www.w3.org/2000/svg"] - Indicate a (non-SVG) namespace
|
||||
|
@ -5001,7 +5001,7 @@
|
|||
/**
|
||||
* @function module:path.EditorContext#remapElement
|
||||
* @param {Element} selected - DOM element to be changed
|
||||
* @param {PlainObject.<string, string>} changes - Object with changes to be remapped
|
||||
* @param {PlainObject<string, string>} changes - Object with changes to be remapped
|
||||
* @param {SVGMatrix} m - Matrix object to use for remapping coordinates
|
||||
* @returns {void}
|
||||
*/
|
||||
|
@ -7875,7 +7875,7 @@
|
|||
* Object with the following keys/values
|
||||
* @typedef {PlainObject} module:utilities.SVGElementJSON
|
||||
* @property {string} element - Tag name of the SVG element to create
|
||||
* @property {PlainObject.<string, string>} attr - Has key-value attributes to assign to the new element
|
||||
* @property {PlainObject<string, string>} attr - Has key-value attributes to assign to the new element. An `id` should be set so that {@link module:utilities.EditorContext#addSVGElementFromJson} can later re-identify the element for modification or replacement.
|
||||
* @property {boolean} [curStyles=false] - Indicates whether current style attributes should be applied first
|
||||
* @property {module:utilities.SVGElementJSON[]} [children] - Data objects to be added recursively as children
|
||||
* @property {string} [namespace="http://www.w3.org/2000/svg"] - Indicate a (non-SVG) namespace
|
||||
|
@ -10356,7 +10356,7 @@
|
|||
* Note: Layers are ordered, but referenced externally by name; so, we need both container
|
||||
* types depending on which function is called (i.e. all_layers and layer_map).
|
||||
*
|
||||
* @type {PlainObject.<string, Layer>}
|
||||
* @type {PlainObject<string, Layer>}
|
||||
*/
|
||||
|
||||
this.layer_map = {};
|
||||
|
@ -10368,7 +10368,7 @@
|
|||
this.current_layer = null;
|
||||
/**
|
||||
* The nonce to use to uniquely identify elements across drawings.
|
||||
* @type {!String}
|
||||
* @type {!string}
|
||||
*/
|
||||
|
||||
this.nonce_ = '';
|
||||
|
@ -13562,7 +13562,8 @@
|
|||
window.console.dir = function (str) {
|
||||
/* */
|
||||
};
|
||||
}
|
||||
} // Reenable after fixing eslint-plugin-jsdoc to handle
|
||||
|
||||
/**
|
||||
* The main SvgCanvas class that manages all SVG-related functions.
|
||||
* @memberof module:svgcanvas
|
||||
|
@ -13731,7 +13732,7 @@
|
|||
/**
|
||||
* @typedef {PlainObject} module:svgcanvas.SVGAsJSON
|
||||
* @property {string} element
|
||||
* @property {PlainObject.<string, string>} attr
|
||||
* @property {PlainObject<string, string>} attr
|
||||
* @property {module:svgcanvas.SVGAsJSON[]} children
|
||||
*/
|
||||
|
||||
|
@ -14578,8 +14579,8 @@
|
|||
|
||||
/**
|
||||
* @interface module:svgcanvas.ExtensionInitResponse
|
||||
* @property {module:SVGEditor.ContextTool[]|PlainObject.<string, module:SVGEditor.ContextTool>} [context_tools]
|
||||
* @property {module:SVGEditor.Button[]|PlainObject.<Integer, module:SVGEditor.Button>} [buttons]
|
||||
* @property {module:SVGEditor.ContextTool[]|PlainObject<string, module:SVGEditor.ContextTool>} [context_tools]
|
||||
* @property {module:SVGEditor.Button[]|PlainObject<Integer, module:SVGEditor.Button>} [buttons]
|
||||
* @property {string} [svgicons] The location of a local SVG or SVGz file
|
||||
*/
|
||||
|
||||
|
@ -20687,7 +20688,7 @@
|
|||
var batchCmd = new BatchCommand$1('Paste elements'); // const drawing = getCurrentDrawing();
|
||||
|
||||
/**
|
||||
* @typedef {PlainObject.<string, string>} module:svgcanvas.ChangedIDs
|
||||
* @typedef {PlainObject<string, string>} module:svgcanvas.ChangedIDs
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -22384,7 +22385,7 @@
|
|||
|
||||
/**
|
||||
* @callback module:jQuerySVGIcons.SVGIconsLoadedCallback
|
||||
* @param {PlainObject.<string, external:jQuery>} svgIcons IDs keyed to jQuery objects of images
|
||||
* @param {PlainObject<string, external:jQuery>} svgIcons IDs keyed to jQuery objects of images
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -22399,13 +22400,13 @@
|
|||
/**
|
||||
* Map of raster images with each key being the SVG icon ID
|
||||
* to replace, and the value the image file name
|
||||
* @typedef {PlainObject.<string, string>} external:jQuery.svgIcons.Fallback
|
||||
* @typedef {PlainObject<string, string>} external:jQuery.svgIcons.Fallback
|
||||
*/
|
||||
|
||||
/**
|
||||
* Map of raster images with each key being the SVG icon ID
|
||||
* whose `alt` will be set, and the value being the `alt` text
|
||||
* @typedef {PlainObject.<string, string>} external:jQuery.svgIcons.Alts
|
||||
* @typedef {PlainObject<string, string>} external:jQuery.svgIcons.Alts
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -23100,7 +23101,7 @@
|
|||
};
|
||||
var isGecko = navigator.userAgent.includes('Gecko/');
|
||||
/**
|
||||
* @typedef {PlainObject.<string, string>} module:jGraduate.Attrs
|
||||
* @typedef {PlainObject<string, string>} module:jGraduate.Attrs
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -25358,7 +25359,6 @@
|
|||
* @param {external:jQuery.jPicker.Color} color
|
||||
* @param {external:jQuery.fn.$.fn.jPicker} bindedHex
|
||||
* @param {Float} alphaPrecision
|
||||
* @constructor
|
||||
*/
|
||||
|
||||
|
||||
|
@ -32249,10 +32249,10 @@
|
|||
* @typedef {PlainObject} module:SVGEditor.ContextTool
|
||||
* @property {string} panel The ID of the existing panel to which the tool is being added. Required.
|
||||
* @property {string} id The ID of the actual tool element. Required.
|
||||
* @property {PlainObject.<string, external:jQuery.Function>|PlainObject.<"change", external:jQuery.Function>} events DOM event names keyed to associated functions. Example: `{change () { alert('Option was changed') } }`. "change" event is one specifically handled for the "button-select" type. Required.
|
||||
* @property {PlainObject<string, external:jQuery.Function>|PlainObject<"change", external:jQuery.Function>} events DOM event names keyed to associated functions. Example: `{change () { alert('Option was changed') } }`. "change" event is one specifically handled for the "button-select" type. Required.
|
||||
* @property {string} title The tooltip text that will appear when the user hovers over the tool. Required.
|
||||
* @property {"tool_button"|"select"|"button-select"|"input"|string} type The type of tool being added. Expected.
|
||||
* @property {PlainObject.<string, string>} [options] List of options and their labels for select tools. Example: `{1: 'One', 2: 'Two', all: 'All' }`. Required by "select" tools.
|
||||
* @property {PlainObject<string, string>} [options] List of options and their labels for select tools. Example: `{1: 'One', 2: 'Two', all: 'All' }`. Required by "select" tools.
|
||||
* @property {string} [container_id] The ID to be given to the tool's container element.
|
||||
* @property {string} [defval] Default value
|
||||
* @property {string|Integer} [colnum] Added as part of the option list class.
|
||||
|
@ -32379,7 +32379,7 @@
|
|||
* @property {string} id A unique identifier for this button. If SVG icons are used, this must match the ID used in the icon file. Required.
|
||||
* @property {"mode_flyout"|"mode"|"context"|"app_menu"} type Type of button. Required.
|
||||
* @property {string} title The tooltip text that will appear when the user hovers over the icon. Required.
|
||||
* @property {PlainObject.<string, external:jQuery.Function>|PlainObject.<"click", external:jQuery.Function>} events DOM event names with associated functions. Example: `{click () { alert('Button was clicked') } }`. Click is used with `includeWith` and `type` of "mode_flyout" (and "mode"); any events may be added if `list` is not present. Expected.
|
||||
* @property {PlainObject<string, external:jQuery.Function>|PlainObject<"click", external:jQuery.Function>} events DOM event names with associated functions. Example: `{click () { alert('Button was clicked') } }`. Click is used with `includeWith` and `type` of "mode_flyout" (and "mode"); any events may be added if `list` is not present. Expected.
|
||||
* @property {string} panel The ID of the context panel to be included, if type is "context". Required only if type is "context".
|
||||
* @property {string} icon The file path to the raster version of the icon image source. Required only if no `svgicons` is supplied from [ExtensionInitResponse]{@link module:svgcanvas.ExtensionInitResponse}.
|
||||
* @property {string} [svgicon] If absent, will utilize the button "id"; used to set "placement" on the `svgIcons` call
|
||||
|
|
Loading…
Reference in New Issue