Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timed goToTarget(..) #95

Open
tomcrane opened this issue Nov 25, 2021 · 1 comment
Open

Timed goToTarget(..) #95

tomcrane opened this issue Nov 25, 2021 · 1 comment

Comments

@tomcrane
Copy link
Contributor

tomcrane commented Nov 25, 2021

(from a Getty reqt)

This is a very lightweight app

It processes an annotation page.
Each anno is highlighting a box.
The app navigates the user around - like Ocean Liners.

Version 1
The annos target a 2D canvas, but they have a custom duration, before and after property (tbc). Appropriate for driving around someone else's canvas.

Version 2
The canvas has a duration, but the painting content is 2D, targeting the entire duration. The annos then just target their approriate t.

This app could achieve 1 by synthesising a new canvas with duration and modifying the annos, so it becomes the same as 2. In practice the raw data would probably some other JSON, not W3C annos, and the app wrapper would convert it to 2.

This demo draws out how we want CP to behave when rendering highlight annos.

If the canvas was 2D w,h and had highlighting annos, the default would be to show them all.
With duration, they only become visible in their time segments.
What does the developer need to do to get CP to show the anno boxes?

  • nothing?
  • wrap them each in DisplayAnnotation manually, so they become displayable styleable things?

See https://deploy-preview-50--iiif-canvas-panel.netlify.app/docs/examples/rendering-links#dealing-with-existing-linking-annotations and related discussion #33 (comment)

@tomcrane
Copy link
Contributor Author

This is not a full scale Ocean Liners display - the timing data doesn't need to be pulled out of IIIF (e.g., timed annos), it can just be in the code of the app, e.g., setTimeout for each new anno.

@tomcrane tomcrane added the defer label Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant