- Docs: Clarify role for `id` on `attr` on `SVGElementJSON`

- npm: Update devDeps
master
Brett Zamir 2019-06-28 07:59:58 +08:00
parent 5eb3e09034
commit c9d3bcf258
4 changed files with 6 additions and 6 deletions

View File

@ -89,7 +89,7 @@ let 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

View File

@ -41,7 +41,7 @@ let 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

6
package-lock.json generated
View File

@ -4195,9 +4195,9 @@
}
},
"eslint-plugin-jsdoc": {
"version": "9.0.1",
"resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-9.0.1.tgz",
"integrity": "sha512-4Sd6rjpMJ5YOd2WnCcgWW7K/EIawKKYgn4ObtDG0pyDP+QpN9EyRoPvY62IQtUOz5KkAS/EpFvEIMUo3qUyeyQ==",
"version": "10.0.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-10.0.0.tgz",
"integrity": "sha512-xZUjGTjg4t4XoHe4VVlIddV9Xy3XFDKOyVTwM1kuyGGSP691w/o3TbxNIHe7j+x+8hcR1KGk/uLEOaI+FCTQgg==",
"dev": true,
"requires": {
"comment-parser": "^0.5.5",

View File

@ -91,7 +91,7 @@
"eslint-plugin-compat": "^3.2.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "2.18.0",
"eslint-plugin-jsdoc": "^9.0.1",
"eslint-plugin-jsdoc": "^10.0.0",
"eslint-plugin-markdown": "^1.0.0",
"eslint-plugin-no-use-extend-native": "^0.4.1",
"eslint-plugin-node": "9.1.0",