mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +03:00
Merge pull request #1286 from mkoesem/master
Fix placeholderFillStyle on tiledImage has no effect #1283
This commit is contained in:
commit
a1b27bcb33
@ -1805,15 +1805,19 @@ function compareTiles( previousBest, tile ) {
|
|||||||
* @param {OpenSeadragon.Tile[]} lastDrawn - An unordered list of Tiles drawn last frame.
|
* @param {OpenSeadragon.Tile[]} lastDrawn - An unordered list of Tiles drawn last frame.
|
||||||
*/
|
*/
|
||||||
function drawTiles( tiledImage, lastDrawn ) {
|
function drawTiles( tiledImage, lastDrawn ) {
|
||||||
if (tiledImage.opacity === 0 || lastDrawn.length === 0) {
|
if (tiledImage.opacity === 0 || (lastDrawn.length === 0 && !tiledImage.placeholderFillStyle)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var tile = lastDrawn[0];
|
|
||||||
|
|
||||||
var useSketch = tiledImage.opacity < 1 ||
|
var tile = lastDrawn[0];
|
||||||
|
var useSketch;
|
||||||
|
|
||||||
|
if (tile) {
|
||||||
|
useSketch = tiledImage.opacity < 1 ||
|
||||||
(tiledImage.compositeOperation &&
|
(tiledImage.compositeOperation &&
|
||||||
tiledImage.compositeOperation !== 'source-over') ||
|
tiledImage.compositeOperation !== 'source-over') ||
|
||||||
(!tiledImage._isBottomItem() && tile._hasTransparencyChannel());
|
(!tiledImage._isBottomItem() && tile._hasTransparencyChannel());
|
||||||
|
}
|
||||||
|
|
||||||
var sketchScale;
|
var sketchScale;
|
||||||
var sketchTranslate;
|
var sketchTranslate;
|
||||||
|
Loading…
Reference in New Issue
Block a user