Skip to content

Commit

Permalink
Merge pull request IIIF-Commons#77 from cmahnke/patch-1
Browse files Browse the repository at this point in the history
Add getViewingHint()
  • Loading branch information
stephenwf authored Nov 24, 2020
2 parents 8dabb09 + 620dedf commit 10fe98a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Canvas.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { ViewingHint } from "@iiif/vocabulary/dist-commonjs";
import {
Annotation,
AnnotationList,
Expand Down Expand Up @@ -258,4 +259,7 @@ export class Canvas extends Resource {
getHeight(): number {
return this.getProperty("height");
}
getViewingHint(): ViewingHint | null {
return this.getProperty("viewingHint");
}
}

0 comments on commit 10fe98a

Please sign in to comment.