WIP on master
This commit is contained in:
parent
14e1d6aad3
commit
276a51b8c3
@ -754,6 +754,7 @@ export class Aard {
|
|||||||
const segmentPixels = width * edgePosition;
|
const segmentPixels = width * edgePosition;
|
||||||
const edgeSegmentSize = segmentPixels * 4;
|
const edgeSegmentSize = segmentPixels * 4;
|
||||||
|
|
||||||
|
|
||||||
// check the top
|
// check the top
|
||||||
{
|
{
|
||||||
// no use in doing guardline tests if guardline hasn't been measured yet, or if
|
// no use in doing guardline tests if guardline hasn't been measured yet, or if
|
||||||
@ -764,6 +765,7 @@ export class Aard {
|
|||||||
const secondSegment = rowEnd - edgeSegmentSize;
|
const secondSegment = rowEnd - edgeSegmentSize;
|
||||||
|
|
||||||
let i = rowStart;
|
let i = rowStart;
|
||||||
|
|
||||||
while (i < firstSegment) {
|
while (i < firstSegment) {
|
||||||
if (
|
if (
|
||||||
imageData[i] > this.testResults.blackThreshold
|
imageData[i] > this.testResults.blackThreshold
|
||||||
@ -1836,7 +1838,6 @@ export class Aard {
|
|||||||
|
|
||||||
const compensatedWidth = fileAr === canvasAr ? this.canvasStore.main.width : this.canvasStore.main.width * fileAr;
|
const compensatedWidth = fileAr === canvasAr ? this.canvasStore.main.width : this.canvasStore.main.width * fileAr;
|
||||||
|
|
||||||
|
|
||||||
// console.log(`
|
// console.log(`
|
||||||
// ———— ASPECT RATIO CALCULATION: —————
|
// ———— ASPECT RATIO CALCULATION: —————
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user