Skip to content

Commit

Permalink
Merge pull request #22 from IIIF-Commons/minor-documentation-update
Browse files Browse the repository at this point in the history
Minor documentation update , also tests document generation
  • Loading branch information
glenrobson authored Sep 25, 2024
2 parents 8b009ef + 736f84d commit d57a167
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/RotateTransform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ export class RotateTransform extends Transform {

}


/**
* Returns an object with x,y,z attributes whose values are
* a counter-clockwise rotation in degrees about the fixed coordinate
* system axes.
*
* @returns object
**/
getRotation() : object {
var retVal = {};
for (const attrib of ["x","y","z"]){
Expand All @@ -18,7 +24,12 @@ export class RotateTransform extends Transform {
}
return retVal;
}


/**
* accessor Rotation is an object with x,y,z attributes whose values are
* a counter-clockwise rotation in degrees about the fixed coordinate
* system axes.
**/
get Rotation() : object { return this.getRotation(); }

};

0 comments on commit d57a167

Please sign in to comment.