mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
reverted change to argument order in _updateTile call
This commit is contained in:
parent
2e248baf91
commit
7bb02d51d0
@ -46,8 +46,12 @@
|
||||
*/
|
||||
|
||||
class CanvasDrawer extends $.DrawerBase{
|
||||
constructor(options){
|
||||
super(options);
|
||||
constructor(){
|
||||
super(...arguments);
|
||||
|
||||
// Options
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 2d drawing context for {@link OpenSeadragon.Drawer#canvas} if it's a <canvas> element, otherwise null.
|
||||
|
@ -34,6 +34,10 @@
|
||||
|
||||
(function( $ ){
|
||||
|
||||
$.DrawerOptions = class DrawerOptions{
|
||||
constructor(options){}
|
||||
};
|
||||
|
||||
/**
|
||||
* @class DrawerBase
|
||||
* @memberof OpenSeadragon
|
||||
@ -44,7 +48,7 @@
|
||||
* @param {Element} options.element - Parent element.
|
||||
*/
|
||||
|
||||
class DrawerBase{
|
||||
$.DrawerBase = class DrawerBase{
|
||||
constructor(options){
|
||||
$.console.assert( options.viewer, "[Drawer] options.viewer is required" );
|
||||
|
||||
@ -67,6 +71,15 @@ class DrawerBase{
|
||||
$.console.error( "[Drawer] options.source is no longer accepted; use TiledImage instead" );
|
||||
}
|
||||
|
||||
|
||||
// Object.entries({}).forEach( ([key, value]) => {
|
||||
// try{
|
||||
// this[key] = value;
|
||||
// } catch(e) {
|
||||
// $.console.error(`This Drawer implementation does not support option '${key}:${value}'`);
|
||||
// }
|
||||
// });
|
||||
|
||||
this.viewer = options.viewer;
|
||||
this.viewport = options.viewport;
|
||||
this.debugGridColor = typeof options.debugGridColor === 'string' ? [options.debugGridColor] : options.debugGridColor || $.DEFAULT_SETTINGS.debugGridColor;
|
||||
@ -130,6 +143,7 @@ class DrawerBase{
|
||||
get isOpenSeadragonDrawer(){
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param tiledImage the TiledImage that is ready to be drawn
|
||||
*/
|
||||
@ -259,8 +273,6 @@ class DrawerBase{
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
$.DrawerBase = DrawerBase;
|
||||
|
||||
};
|
||||
|
||||
}( OpenSeadragon ));
|
||||
|
@ -46,8 +46,8 @@
|
||||
*/
|
||||
|
||||
class HTMLDrawer extends $.DrawerBase{
|
||||
constructor(options){
|
||||
super(options);
|
||||
constructor(){
|
||||
super(...arguments);
|
||||
|
||||
/**
|
||||
* 2d drawing context for {@link OpenSeadragon.Drawer#canvas} if it's a <canvas> element, otherwise null.
|
||||
|
@ -1597,8 +1597,8 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
|
||||
}
|
||||
|
||||
var result = this._updateTile(
|
||||
haveDrawn,
|
||||
drawLevel,
|
||||
haveDrawn,
|
||||
flippedX, y,
|
||||
level,
|
||||
levelVisibility,
|
||||
|
Loading…
Reference in New Issue
Block a user