These are chat archives for openseadragon/openseadragon

28th
Aug 2017
Oswaldo Capriles
@pipriles
Aug 28 2017 07:31
@iangilman It is weird why the innerTracker conflicts with fabric.js freeDraw events
@iangilman Do you have any ideas why the Angular animation it's gone?
Oswaldo Capriles
@pipriles
Aug 28 2017 07:56
I had to do this so i can scroll when freeDrawing is active...
initEvents() {

    let viewer = this._overlay.viewer;

    /* Maximus workaround */
    this._fabric.on('mouse:down', (e) => {
        if (this._fabric.isDrawingMode) 
            viewer.setMouseNavEnabled(false);
    });

    this._fabric.on('mouse:up', (e) => {
        if (this._fabric.isDrawingMode) 
            viewer.setMouseNavEnabled(true);
    });

}
Sriyan Sampath
@ssrajapaksha_twitter
Aug 28 2017 10:28
Thank you @ooystein @iangilman . It worked.
And currently I'm changing RGB channels using CamonJS
it works on the main canvas, but i need to reflect the changes on the navigator as well
How can I apply those changes in the navigator?
Ian Gilman
@iangilman
Aug 28 2017 16:54
@ssrajapaksha_twitter The navigator is also a Viewer, so I guess whatever works on the main viewer should be able to translate to the navigator. I don't know the details of what custom work you're doing on the viewer; it could be enough just to do that same stuff on the navigator, or you might need to share information between the two.
@pipriles I don't know enough about Angular animation to know; sorry. I could take a look if you have a repro to share...
Sriyan Sampath
@ssrajapaksha_twitter
Aug 28 2017 17:05
Hi It didnt work as there was a error saying
caman.full.min.js:36 Uncaught DOMException: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data.
from camon js
Wonder why it doesnt work for just the navigator
I did the same as I did for Viewer.
Ian Gilman
@iangilman
Aug 28 2017 17:25
@ssrajapaksha_twitter Interesting. What settings are you using for your viewer?