Last active
October 11, 2016 08:53
-
-
Save sickrandir/51f0eb458b12a2245c5995c16eda56a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (useSketch) { | |
var offsetForRotation = tiledImage.viewport.degrees !== 0 && sketchScale; | |
if (tiledImage.source.tilesUrl == "https://differenthood.duckdns.org:3000/system/label_item_images/dzi_files/handle3_grey_files/") { | |
console.log(tiledImage); | |
console.log(bounds); | |
console.log(sketchScale); | |
console.log(sketchTranslate); | |
} | |
if (offsetForRotation) { | |
tiledImage._drawer._offsetForRotation(tiledImage.viewport.degrees, false); | |
} | |
tiledImage._drawer.blendSketch({ | |
opacity: tiledImage.opacity, | |
scale: sketchScale, | |
translate: sketchTranslate, | |
compositeOperation: tiledImage.compositeOperation, | |
bounds: bounds | |
}); | |
if (offsetForRotation) { | |
tiledImage._drawer._restoreRotationChanges(false); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment