Skip to content

Commit

Permalink
Merge pull request #815 from adroitwhiz/fix-resetmips-jsdoc
Browse files Browse the repository at this point in the history
Fix JSDoc for resetMIPs and setSVG
  • Loading branch information
fsih authored Mar 25, 2021
2 parents cfaa033 + c6e51c2 commit c92e9f5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/SVGSkin.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,6 @@ class SVGSkin extends Skin {

/**
* Do a hard reset of the existing MIPs by deleting them.
* @param {Array<number>} [rotationCenter] - Optional rotation center for the SVG. If not supplied, it will be
* calculated from the bounding box
* @fires Skin.event:WasAltered
*/
resetMIPs () {
this._scaledMIPs.forEach(oldMIP => this._renderer.gl.deleteTexture(oldMIP));
Expand All @@ -169,7 +166,9 @@ class SVGSkin extends Skin {
/**
* Set the contents of this skin to a snapshot of the provided SVG data.
* @param {string} svgData - new SVG to use.
* @param {Array<number>} [rotationCenter] - Optional rotation center for the SVG.
* @param {Array<number>} [rotationCenter] - Optional rotation center for the SVG. If not supplied, it will be
* calculated from the bounding box
* @fires Skin.event:WasAltered
*/
setSVG (svgData, rotationCenter) {
this._svgRenderer.loadSVG(svgData, false, () => {
Expand Down

0 comments on commit c92e9f5

Please sign in to comment.