mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
add comment; clean up console.log messages from testing
This commit is contained in:
parent
f2c8db5db0
commit
9d6a785aac
@ -117,7 +117,6 @@ class CanvasDrawer extends OpenSeadragon.DrawerBase{
|
|||||||
if(this.viewer.viewport.getFlip() !== this._viewportFlipped){
|
if(this.viewer.viewport.getFlip() !== this._viewportFlipped){
|
||||||
this._flip();
|
this._flip();
|
||||||
}
|
}
|
||||||
console.log('draw', this._viewportFlipped);
|
|
||||||
for(const tiledImage of tiledImages){
|
for(const tiledImage of tiledImages){
|
||||||
if (tiledImage.opacity !== 0) {
|
if (tiledImage.opacity !== 0) {
|
||||||
this._drawTiles(tiledImage);
|
this._drawTiles(tiledImage);
|
||||||
@ -187,6 +186,10 @@ class CanvasDrawer extends OpenSeadragon.DrawerBase{
|
|||||||
context.restore();
|
context.restore();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test whether the current context is flipped or not
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
get _viewportFlipped(){
|
get _viewportFlipped(){
|
||||||
return this.context.getTransform().a < 0;
|
return this.context.getTransform().a < 0;
|
||||||
}
|
}
|
||||||
@ -963,7 +966,6 @@ class CanvasDrawer extends OpenSeadragon.DrawerBase{
|
|||||||
context.translate(point.x, 0);
|
context.translate(point.x, 0);
|
||||||
context.scale(-1, 1);
|
context.scale(-1, 1);
|
||||||
context.translate(-point.x, 0);
|
context.translate(-point.x, 0);
|
||||||
console.log('flipped');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// private
|
// private
|
||||||
|
Loading…
Reference in New Issue
Block a user