Skip to content

Instantly share code, notes, and snippets.

@sickrandir
sickrandir / OSD log transparent images reappear
Created Jun 8, 2017
OSD log transparent images reappear
View OSD log transparent images reappear
[Log] DRAW TOP1 631
[Log] 448
[Log] 232
[Log] 820.1257474600866
[Log] 945.5260874849878
[Log] 499.36719883889646
[Log] 258.60087082728563
[Log] DRAW TOP1 510
[Log] 448
[Log] 514
@sickrandir
sickrandir / gist:0cfc017ef97bc2b0128c5b6de0ed533c
Created Jun 8, 2017
OSD log transparent images disappear
View gist:0cfc017ef97bc2b0128c5b6de0ed533c
[Log] DRAW TOP1 642
[Log] 448
[Log] 232
[Log] 814.1257474600867
[Log] 929.8883691824793
[Log] 499.36719883889646
[Log] 258.60087082728563
[Log] DRAW TOP1 327
[Log] 448
[Log] 514
View chrome.log (metal pattern dzi)
$.Rect {x: 618, y: 144, width: 206, height: 152, degrees: 0}
$.Rect {x: 607, y: 141, width: 228, height: 168, degrees: 0}
$.Rect {x: 596, y: 138, width: 250, height: 184, degrees: 0}
$.Rect {x: 587, y: 136, width: 268, height: 197, degrees: 0}
$.Rect {x: 579, y: 134, width: 284, height: 210, degrees: 0}
$.Rect {x: 572, y: 132, width: 299, height: 221, degrees: 0}
$.Rect {x: 565, y: 131, width: 312, height: 230, degrees: 0}
$.Rect {x: 552, y: 127, width: 338, height: 250, degrees: 0}
$.Rect {x: 547, y: 126, width: 349, height: 257, degrees: 0}
$.Rect {x: 543, y: 125, width: 357, height: 263, degrees: 0}
View chrome.log
$.Rect {x: 664, y: 50, width: 112, height: 142, degrees: 0}
$.Rect {x: 658, y: 38, width: 124, height: 156, degrees: 0}
$.Rect {x: 655, y: 31, width: 130, height: 165, degrees: 0}
$.Rect {x: 653, y: 25, width: 135, height: 172, degrees: 0}
$.Rect {x: 650, y: 19, width: 140, height: 179, degrees: 0}
$.Rect {x: 648, y: 14, width: 145, height: 185, degrees: 0}
$.Rect {x: 643, y: 4, width: 154, height: 197, degrees: 0}
$.Rect {x: 641, y: -1, width: 159, height: 202, degrees: 0}
$.Rect {x: 639, y: -5, width: 163, height: 207, degrees: 0}
$.Rect {x: 637, y: -10, width: 167, height: 213, degrees: 0}
View OSDdebug
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);
View dsvcdsv
https://gist.github.com/