mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-21 20:56:09 +03:00
small cleanups
This commit is contained in:
parent
500c22feb1
commit
3bab3c2190
@ -272,6 +272,7 @@ $.DrawerBase = class DrawerBase{
|
||||
* @property {OpenSeadragon.TiledImage} tiledImage - Which TiledImage is being drawn.
|
||||
* @property {Array} tiles - An array of Tile objects that were drawn.
|
||||
* @property {?Object} userData - Arbitrary subscriber-defined object.
|
||||
* @private
|
||||
*/
|
||||
this.viewer.raiseEvent( 'tiled-image-drawn', {
|
||||
tiledImage: tiledImage,
|
||||
|
@ -115,7 +115,6 @@ class HTMLDrawer extends $.DrawerBase{
|
||||
*/
|
||||
setImageSmoothingEnabled(){
|
||||
// noop - HTML Drawer does not deal with this property
|
||||
$.console.warn('HTMLDrawer.setImageSmoothingEnabled does not have an effect.');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -214,7 +214,7 @@
|
||||
* For complete list of modes, please @see {@link https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation/ globalCompositeOperation}
|
||||
*
|
||||
* @property {Boolean} [imageSmoothingEnabled=true]
|
||||
* Image smoothing for canvas rendering (only if canvas is used). Note: Ignored
|
||||
* Image smoothing for canvas rendering (only if the canvas drawer is used). Note: Ignored
|
||||
* by some (especially older) browsers which do not support this canvas property.
|
||||
* This property can be changed in {@link Viewer.Drawer.setImageSmoothingEnabled}.
|
||||
*
|
||||
|
@ -368,10 +368,7 @@
|
||||
* @param {Boolean} enabled
|
||||
*/
|
||||
setImageSmoothingEnabled(enabled){
|
||||
//TODO: does imageSmoothingEnabled make sense in the WebGL drawer?
|
||||
// We aren't scaling small images up to larger ones using context2d canvas operations so it may not apply
|
||||
this._clippingContext.imageSmoothingEnabled = !!enabled;
|
||||
this._outputContext.imageSmoothingEnabled = !!enabled;
|
||||
// noop - this property does not impact WebGLDrawer
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -16,7 +16,6 @@
|
||||
// debugMode: true,
|
||||
zoomPerScroll: 1.02,
|
||||
showNavigator: testNavigator,
|
||||
drawer: ['canvas', 'html'],
|
||||
// defaultZoomLevel: 2,
|
||||
// homeFillsViewer: true,
|
||||
// sequenceMode: true,
|
||||
|
Loading…
Reference in New Issue
Block a user