Skip to content

Bug and fix for _updateCanvas routine #10

@dinther

Description

@dinther

I know shit about Github and don't want to, but here is the issue.

The coordinate system of the canvas overlay does not match the image coordinate system.

replace line 98
var viewportZoom = this._viewer.viewport.getZoom(true);
with
var viewportZoom = this._viewer.viewport.viewportToImageZoom(this._viewer.viewport.getZoom(true));

and also replace line 123
context.scale(viewportZoom/2, viewportZoom/2);
with
context.scale(viewportZoom, viewportZoom);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions