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

Exact initial image #147

Open
stephenwf opened this issue Feb 24, 2022 · 0 comments
Open

Exact initial image #147

stephenwf opened this issue Feb 24, 2022 · 0 comments

Comments

@stephenwf
Copy link
Member

stephenwf commented Feb 24, 2022

A new property on canvas panel and image service components to determine what the full initial image region is and make an exact pixel-perfect request for the initial load.

  <canvas-panel
    preset="responsive"
    canvas-id="https://digirati-co-uk.github.io/wunder/canvases/0"
    manifest-id="https://digirati-co-uk.github.io/wunder.json"
    region="466,2221,1612,450"
    exact-initial-image="true">
  </canvas-panel>

Whether the region is full, or a specific region, exact-initial-size forces CP to make just one request - or one request per image, if the canvas has multiple images on it. And then, only if it can - e.g., if level0 tiles only, it has to ignore this property (usually).

CP calculates its pixel w,h #147
Can it make a single request?
If so, do so, ignoring tiles, sizes and virtual sizes.

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