Given the programmatic loading of a single page, the user can create a new fragmentSelector Annotation.
Load
For this case, the user would be navigating to a Page in a Project. For some reason, perhaps a detection that there are no annotations, the user will be interacting with an Interface where they can draw new Lines on the Page.
This issue assumes the Project is already known and the User is authenticated, so this can all be hardcoded as a demo.
Project will have a title and layers that do not need to be displayed.
Layer only one Layer will be used, though extras are allowed. The Layer label should be displayed for the user. The Layer will be a Web Annotation AnnotationPage and saved in TinyPen.
Canvas are the targets of each AnnotationPage and are from the IIIF Model. This Canvas conventionally would contain the AnnotationPage reference in its annotations but in our application, it will frequently be an external reference.
On screen, the User will expect a depiction of the Page image (Canvas.items[0].items[0]). If there is an Annotation in the Layer already, that should also be drawn. Finally, some interaction element for drawing a new annotation should be visible.
Annotate
Most simply, the User can delete/remove and create a new Annotation. This should be saved through the TPEN API to save an Annotation to a Layer.
Given the programmatic loading of a single page, the user can create a new fragmentSelector Annotation.
Load
For this case, the user would be navigating to a Page in a Project. For some reason, perhaps a detection that there are no annotations, the user will be interacting with an Interface where they can draw new Lines on the Page.
This issue assumes the Project is already known and the User is authenticated, so this can all be hardcoded as a demo.
title
andlayers
that do not need to be displayed.label
should be displayed for the user. The Layer will be a Web Annotation AnnotationPage and saved in TinyPen.target
s of each AnnotationPage and are from the IIIF Model. This Canvas conventionally would contain the AnnotationPage reference in itsannotations
but in our application, it will frequently be an external reference.Render
On screen, the User will expect a depiction of the Page image (
Canvas.items[0].items[0]
). If there is an Annotation in the Layer already, that should also be drawn. Finally, some interaction element for drawing a new annotation should be visible.Annotate
Most simply, the User can delete/remove and create a new Annotation. This should be saved through the TPEN API to save an Annotation to a Layer.