Add missing jsdoc for _setAttributes on PenSkin

This commit is contained in:
Christopher Willis-Ford
2017-01-20 13:16:22 -08:00
parent 3bdb1fff1f
commit 5eef82a9dc

View File

@@ -166,6 +166,12 @@ class PenSkin extends Skin {
this._canvasDirty = true;
}
/**
* Set context state to match provided pen attributes.
* @param {CanvasRenderingContext2D} context - the canvas rendering context to be modified.
* @param {PenAttributes} penAttributes - the pen attributes to be used.
* @private
*/
_setAttributes (context, penAttributes) {
penAttributes = penAttributes || DefaultPenAttributes;
const color4f = penAttributes.color4f || DefaultPenAttributes.color4f;