@preply/ds-visual-coverage-core
Advanced tools
Comparing version 0.97.1 to 0.97.2
import type { Coverage, PixelCounts } from '../types'; | ||
declare type Params = { | ||
type Params = { | ||
pixelCounts: PixelCounts; | ||
@@ -4,0 +4,0 @@ }; |
import type { Bitmap, ChildData, CoverageMode, Logger, Milliseconds, PixelByPixelType, PixelCounts, Rect, WeightByComponentName } from '../types'; | ||
declare type Params = { | ||
type Params = { | ||
logger: Logger; | ||
@@ -23,3 +23,3 @@ elementRect: Rect; | ||
}; | ||
declare type CountPixelsResult = { | ||
type CountPixelsResult = { | ||
bitmap: Bitmap; | ||
@@ -26,0 +26,0 @@ pixelCounts: PixelCounts; |
@@ -5,2 +5,3 @@ import { createBitmap } from '../bitmap/createBitmap.js'; | ||
import { getRectCoordinate } from '../rect/rectProperties.js'; | ||
import { createPixelCounts } from './createPixelCounts.js'; | ||
@@ -205,4 +206,3 @@ /* eslint-disable no-continue */ | ||
} | ||
const length = 8; | ||
const pixelCounts = new Uint32Array(length + 1); | ||
const pixelCounts = createPixelCounts(); | ||
for (let i = 0, n = bitmap.length; i < n; i++) { | ||
@@ -226,2 +226,2 @@ pixelCounts[bitmap[i]]++; | ||
export { countPixels }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291bnRQaXhlbHMuanMiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb3JlL2NvdW50UGl4ZWxzLnRzIl0sInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludC1kaXNhYmxlIG5vLWNvbnRpbnVlICovXG4vKiBlc2xpbnQtZGlzYWJsZSBuby1wbHVzcGx1cyAqL1xuXG5pbXBvcnQgeyBjcmVhdGVCaXRtYXAgfSBmcm9tICcuLi9iaXRtYXAvY3JlYXRlQml0bWFwJztcbmltcG9ydCB7IGxvZ0JpdG1hcCB9IGZyb20gJy4uL2JpdG1hcC9sb2dCaXRtYXAnO1xuaW1wb3J0IHsgc2V0Qml0bWFwU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F0aC5mbG9vcihyZWN0TGVmdCAtIG9mZnNldExlZnQpOyA7IGN1cnJlbnRMZWZ0KyspIHtcbiAgICAgICAgICAgICAgICAvLyBIYXBwZW5zIHdoZW4gdGhlIHdlaWdodCBpcyBoaWdoZXIgdGhhbiBoYWxmIHRoZSBoZWlnaHQgb2YgdGhlIGVsZW1lbnQsIGFuZCBzbyB0b3AgYW5kIGJvdHRvbSBmbGlwXG4gICAgICAgICAgICAgICAgLy8gRXguIGZpcnN0IGxvb3Agd2l0aCB3ZWlnaHQgPSA1XG4gICAgICAgICAgICAgICAgLy8gW1xuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICBbICwgLCAsICwgLCAsICwgLCAsICxdLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICBbICwgLCAsICwgLEwsTCxMLEwsTCxdLCDwn5GI8J+RiPCfkYggdG9wXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgIFsgLCAsICwgLCAsTCwgLCAsICwgLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgIFsgLCAsICwgLCAsTCwgLCAsICwgLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgIFsgLCAsICwgLCAsTCxMLEwsTCxMLF0sIPCfkYjwn5GI8J+RiCBib3R0b21cbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgWyAsICwgLCAsICwgLCAsICwgLCAsXSxcbiAgICAgICAgICAgICAgICAvLyBdXG4gICAgICAgICAgICAgICAgLy8gc2Vjb25kIGl0ZXJhdGlvbiB3aXRoIHdlaWdodCA9IDVcbiAgICAgICAgICAgICAgICAvLyBbXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgIFsgLCAsICwgLCAsICwgLCAsICwgLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgIFsgLCAsICwgLCAsTCxMLEwsTCxMLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgIFsgLCAsICwgLCAsTCxMLEwsTCxMLF0sIPCfkYjwn5GI8J+RiCB0b3BcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgWyAsICwgLCAsICxMLEwsTCxMLEwsXSwg8J+RiPCfkYjwn5GIIGJvdHRvbVxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICBbICwgLCAsICwgLEwsTCxMLEwsTCxdLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICBbICwgLCAsICwgLCAsICwgLCAsICxdLFxuICAgICAgICAgICAgICAgIC8vIF1cbiAgICAgICAgICAgICAgICAvLyB0aGlyZCBpdGVyYXRpb24gd2l0aCB3ZWlnaHQgPSA1ICh0aGUgbG9vcCBtdXN0IGJyZWFrKVxuICAgICAgICAgICAgICAgIC8vIFtcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgWyAsICwgLCAsICwgLCAsICwgLCAsXSxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgWyAsICwgLCAsICxMLEwsTCxMLEwsXSxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgWyAsICwgLCAsICxMLEwsTCxMLEwsXSwg8J+RiPCfkYjwn5GIIGJvdHRvbVxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICBbICwgLCAsICwgLEwsTCxMLEwsTCxdLCDwn5GI8J+RiPCfkYggdG9wXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgIFsgLCAsICwgLCAsTCxMLEwsTCxMLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgIFsgLCAsICwgLCAsICwgLCAsICwgLF0sXG4gICAgICAgICAgICAgICAgLy8gXVxuXG4gICAgICAgICAgICAgICAgY29uc3QgdG9wUm93Q3Jvc3NlZEhhbGZIZWlnaHQgPSB0b3AgPiBib3R0b207XG4gICAgICAgICAgICAgICAgY29uc3Qgbm9Nb3JlSG9yaXpvbnRhbExpbmVzVG9EcmF3ID0gdG9wUm93Q3J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LCAsICwgLCAsXSxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgWyAsICwgLCAsICwgLCAsICwgLCAsXSxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgWyAsICwgLCAsICwgLCAsICwgLCAsXSxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAg8J+RifCfkYnwn5GJIFsgLCAsICwgLCAsTCxMLEwsTCxMLF0sIPCfkYjwn5GI8J+RiFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICBbICwgLCAsICwgLEwsICwgLCAsTCxdLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICBbICwgLCAsICwgLEwsTCxMLEwsTCxdLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICBbICwgLCAsICwgLCAsICwgLCAsICxdLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICBbICwgLCAsICwgLCAsICwgLCAsICxdLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICBbICwgLCAsICwgLCAsICwgLCAsICxdLFxuICAgICAgICAgICAgICAgIC8vIF1cbiAgICAgICAgICAgICAgICBjb25zdCB0b3BSb3dJc0luc2lkZVRoZVZpZXdwb3J0ID0gdG9wID49IDAgJiYgdG9wIDwgcm93TGVuZ3RoO1xuICAgICAgICAgICAgICAgIGlmICh0b3BSb3dJc0luc2lkZVRoZVZpZXdwb3J0KSB7XG4gICAgICAgICAgICAgICAgICAgIHNldEJpdG1hcFBpeGVsKHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRvcCxcbiAgICAgICAgICAgICAgICAgICAgICAgIGJpdG1hcCxcbiAgICAgICAgICAgICAgICAgICAgICAgIGxlZnQ6IGN1cnJlbnRMZWZ0LFxuICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU6IHBpeGVsLFxuICAgICAgICAgICAgICAgICAgICAgICAgd2lkdGg6IGdldFJlY3RDb29yZGluYXRlKGVsZW1lbnRSZWN0LCAnd2lkdGgnKSxcbiAgICAgICAgICAgICAgICAgICAgfSk7XG5cbiAgICAgICAgICAgICAgICAgICAgaWYgKGNvdmVyYWdlTW9kZSA9PT0gJ2NvdW50Q29tcG9uZW50cycpXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBUaGUgZ29hbCBpcyB3cml0ZSBvbmUgcGl4ZWwgZm9yIGV2ZXJ5IHJvd1xuICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgLy8gXCJEcmF3XCIgdGhlIGJvdHRvbSByb3dcbiAgICAgICAgICAgICAgICAvLyBbXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgIFsgLCAsICwgLCAsICwgLCAsICwgLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgIFsgLCAsICwgLCAsICwgLCAsICwgLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgIFsgLCAsICwgLCAsICwgLCAsICwgLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgIFsgLCAsICwgLCAsICwgLCAsICwgLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgIFsgLCAsICwgLCAsTCxMLEwsTCxMLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgIFsgLCAsICwgLCAsTCwgLCAsICxMLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgICAgIPCfkYnwn5GJ8J+RiSBbICwgLCAsICwgLEwsTCxMLEwsTCxdLCDwn5GI8J+RiPCfkYhcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgWyAsICwgLCAsICwgLCAsICwgLCAsXSxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgWyAsICwgLCAsICwgLCAsICwgLCAsXSxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgWyAsICwgLCAsICwgLCAsICwgLCAsXSxcbiAgICAgICAgICAgICAgICAvLyBdXG4gICAgICAgICAgICAgICAgY29uc3QgYm90dG9tUm93SXNJbnNpZGVUaGVWaWV3cG9ydCA9IGJvdHRvbSA+PSAwICYmIGJvdHRvbSA8IHJvd0xlbmd0aDtcbiAgICAgICAgICAgICAgICBpZiAoYm90dG9tUm93SXNJbnNpZGVUaGVWaWV3cG9ydCkge1xuICAgICAgICAgICAgICAgICAgICBzZXRCaXRtYXBQaXhlbCh7XG4gICAgICAgICAgICAgICAgICAgICAgICB0b3A6IGJvdHRvbSxcbiAgICAgICAgICAgICAgICAgICAgICAgIGJpdG1hcCxcbiAgICAgICAgICAgICAgICAgICAgICAgIGxlZnQ6IGN1cnJlbnRMZWZ0LFxuICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU6IHBpeGVsLFxuICAgICAgICAgICAgICAgICAgICAgICAgd2lkdGg6IGdldFJlY3RDb29yZGluYXRlKGVsZW1lbnRSZWN0LCAnd2lkdGgnKSxcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAvLyBcIkRyYXdcIiB0aGUgY29sdW1ucyBpbiBiaXRtYXBcbiAgICAgICAgICAgIGNvbnN0IGxlZnQgPSBNYXRoLmZsb29yKHJlY3RMZWZ0IC0gb2Zmc2V0TGVmdCArIHdlaWdodExpbmUpO1xuICAgICAgICAgICAgY29uc3QgcmlnaHQgPSBNYXRoLmZsb29yKHJlY3RMZWZ0IC0gb2Zmc2V0TGVmdCArIHJlY3RXaWR0aCAtIDEgLSB3ZWlnaHRMaW5lKTtcbiAgICAgICAgICAgIGZvciAobGV0IGN1cnJlbnRUb3AgPSBNYXRoLmZsb29yKHJlY3RUb3AgLSBvZmZzZXRUb3ApOyA7IGN1cnJlbnRUb3ArKykge1xuICAgICAgICAgICAgICAgIGlmIChjb3ZlcmFnZU1vZGUgPT09ICdjb3VudENvbXBvbmVudHMnKVxuICAgICAgICAgICAgICAgICAgICAvLyBUaGUg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gICAvLyBcIkRyYXdcIiB0aGUgbGVmdCBjb2x1bW5cbiAgICAgICAgICAgICAgICAvLyBbXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgICDwn5GHXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgICDwn5GHXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgICDwn5GHXG4gICAgICAgICAgICAgICAgLy8gICAgWyAsICwgLCAsICwgLCAsICwgLCAsXSxcbiAgICAgICAgICAgICAgICAvLyAgICBbICwgLCAsICwgLCAsICwgLCAsICxdLFxuICAgICAgICAgICAgICAgIC8vICAgIFsgLCAsICwgLCAsICwgLCAsICwgLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgWyAsICwgLCAsICwgLCAsICwgLCAsXSxcbiAgICAgICAgICAgICAgICAvLyAgICBbICwgLCAsICwgLEwsTCxMLEwsTCxdLFxuICAgICAgICAgICAgICAgIC8vICAgIFsgLCAsICwgLCAsTCwgLCAsICxMLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgWyAsICwgLCAsICxMLEwsTCxMLEwsXSxcbiAgICAgICAgICAgICAgICAvLyAgICBbICwgLCAsICwgLCAsICwgLCAsICxdLFxuICAgICAgICAgICAgICAgIC8vICAgIFsgLCAsICwgLCAsICwgLCAsICwgLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgWyAsICwgLCAsICwgLCAsICwgLCAsXSxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgIPCfkYZcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgIPCfkYZcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgIPCfkYZcbiAgICAgICAgICAgICAgICAvLyBdXG4gICAgICAgICAgICAgICAgY29uc3QgbGVmdENvbHVtbklzSW5zaWRlVGhlVmlld3BvcnQgPVxuICAgICAgICAgICAgICAgICAgICBsZWZ0ID49IDAgJiYgY3VycmVudFRvcCA8IHJvd0xlbmd0aCAmJiBsZWZ0IDwgY29sdW1uTGVuZ3RoO1xuXG4gICAgICAgICAgICAgICAgaWYgKGxlZnRDb2x1bW5Jc0luc2lkZVRoZVZpZXdwb3J0KSB7XG4gICAgICAgICAgICAgICAgICAgIHNldEJpdG1hcFBpeGVsKHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGxlZnQsXG4gICAgICAgICAgICAgICAgICAgICAgICBiaXRtYXAsXG4gICAgICAgICAgICAgICAgICAgICAgICB0b3A6IGN1cnJlbnRUb3AsXG4gICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZTogcGl4ZWwsXG4gICAgICAgICAgICAgICAgICAgICAgICB3aWR0aDogZ2V0UmVjdENvb3JkaW5hdGUoZWxlbWVudFJlY3QsICd3aWR0aCcpLFxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAvLyBcIkRyYXdcIiB0aGUgcmlnaHQgY29sdW1uXG4gICAgICAgICAgICAgICAgLy8gW1xuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICAgICAgICDwn5GHXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgICAgIPCfkYdcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgICAgICAgICAg8J+Rh1xuICAgICAgICAgICAgICAgIC8vICAgIFsgLCAsICwgLCAsICwgLCAsICwgLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgWyAsICwgLCAsICwgLCAsICwgLCAsXSxcbiAgICAgICAgICAgICAgICAvLyAgICBbICwgLCAsICwgLCAsICwgLCAsICxdLFxuICAgICAgICAgICAgICAgIC8vICAgIFsgLCAsICwgLCAsICwgLCAsICwgLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgWyAsICwgLCAsICxMLEwsTCxMLEwsXSxcbiAgICAgICAgICAgICAgICAvLyAgICBbICwgLCAsICwgLEwsICwgLCAsTCxdLFxuICAgICAgICAgICAgICAgIC8vICAgIFsgLCAsICwgLCAsTCxMLEwsTCxMLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgWyAsICwgLCAsICwgLCAsICwgLCAsXSxcbiAgICAgICAgICAgICAgICAvLyAgICBbICwgLCAsICwgLCAsICwgLCAsICxdLFxuICAgICAgICAgICAgICAgIC8vICAgIFsgLCAsICwgLCAsICwgLCAsICwgLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgICAgIPCfkYZcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgICAgICAgICAg8J+RhlxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICAgICAgICDwn5GGXG4gICAgICAgICAgICAgICAgLy8gXVxuICAgICAgICAgICAgICAgIGNvbnN0IHJpZ3RodENvbHVtbklzSW5zaWRlVGhlVmlld3BvcnQgPVxuICAgICAgICAgICAgICAgICAgICByaWdodCA+PSAwICYmIGN1cnJlbnRUb3AgPCByb3dMZW5ndGggJiYgcmlnaHQgPCBjb2x1bW5MZW5ndGg7XG4gICAgICAgICAgICAgICAgaWYgKHJpZ3RodENvbHVtbklzSW5zaWRlVGhlVmlld3BvcnQpIHtcbiAgICAgICAgICAgICAgICAgICAgc2V0Qml0bWFwUGl4ZWwoe1xuICAgICAgICAgICAgICAgICAgICAgICAgYml0bWFwLFxuICAgICAgICAgICAgICAgICAgICAgICAgdG9wOiBjdXJyZW50VG9wLFxuICAgICAgICAgICAgICAgICAgICAgICAgbGVmdDogcmlnaHQsXG4gICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZTogcGl4ZWwsXG4gICAgICAgICAgICAgICAgICAgICAgICB3aWR0aDogZ2V0UmVjdENvb3JkaW5hdGUoZWxlbWVudFJlY3QsICd3aWR0aCcpLFxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBjb25zdCBsZW5ndGg6IEhpZ2hlc3ROdW1iZXIgPSA4O1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W50LCBhbmQgc28gdG9wIGFuZCBib3R0b20gZmxpcFxuICAgICAgICAgICAgICAgIC8vIEV4LiBmaXJzdCBsb29wIHdpdGggd2VpZ2h0ID0gNVxuICAgICAgICAgICAgICAgIC8vIFtcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgWyAsICwgLCAsICwgLCAsICwgLCAsXSxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgWyAsICwgLCAsICxMLEwsTCxMLEwsXSwg8J+RiPCfkYjwn5GIIHRvcFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICBbICwgLCAsICwgLEwsICwgLCAsICxdLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICBbICwgLCAsICwgLEwsICwgLCAsICxdLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICBbICwgLCAsICwgLEwsTCxMLEwsTCxdLCDwn5GI8J+RiPCfkYggYm90dG9tXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgIFsgLCAsICwgLCAsICwgLCAsICwgLF0sXG4gICAgICAgICAgICAgICAgLy8gXVxuICAgICAgICAgICAgICAgIC8vIHNlY29uZCBpdGVyYXRpb24gd2l0aCB3ZWlnaHQgPSA1XG4gICAgICAgICAgICAgICAgLy8gW1xuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICBbICwgLCAsICwgLCAsICwgLCAsICxdLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICBbICwgLCAsICwgLEwsTCxMLEwsTCxdLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICBbICwgLCAsICwgLEwsTCxMLEwsTCxdLCDwn5GI8J+RiPCfkYggdG9wXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgIFsgLCAsICwgLCAsTCxMLEwsTCxMLF0sIPCfkYjwn5GI8J+RiCBib3R0b21cbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgWyAsICwgLCAsICxMLEwsTCxMLEwsXSxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgWyAsICwgLCAsICwgLCAsICwgLCAsXSxcbiAgICAgICAgICAgICAgICAvLyBdXG4gICAgICAgICAgICAgICAgLy8gdGhpcmQgaXRlcmF0aW9uIHdpdGggd2VpZ2h0ID0gNSAodGhlIGxvb3AgbXVzdCBicmVhaylcbiAgICAgICAgICAgICAgICAvLyBbXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgIFsgLCAsICwgLCAsICwgLCAsICwgLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgIFsgLCAsICwgLCAsTCxMLEwsTCxMLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgIFsgLCAsICwgLCAsTCxMLEwsTCxMLF0sIPCfkYjwn5GI8J+RiCBib3R0b21cbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgWyAsICwgLCAsICxMLEwsTCxMLEwsXSwg8J+RiPCfkYjwn5GIIHRvcFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICBbICwgLCAsICwgLEwsTCxMLEwsTCxdLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICBbICwgLCAsICwgLCAsICwgLCAsICxdLFxuICAgICAgICAgICAgICAgIC8vIF1cblxuICAgICAgICAgICAgICAgIGNvbnN0IHRvcFJvd0Nyb3NzZWRIYWxmSGVpZ2h0ID0gdG9wID4gYm90dG9tO1xuICAgICAgICAgICAgICAgIGNvbnN0IG5vTW9yZUhvcml6b250YWxMaW5lc1RvRHJhdyA9IHRvcFJvd0Nyb3NzZWRIYWxmSGVpZ2h0O1xuXG4gICAgICAgICAgICAgICAgY29uc3QgcGl4ZWxzTXVzdFJlbWFpbkluc2lkZUNvbXBvbmVudEFyZWEgPSBjb3ZlcmFnZU1vZGUgPT09ICdjb3VudFBlcmltZXRlcnMnO1xuXG4gICAgICAgICAgICAgICAgaWYgKHBpeGVsc011c3RSZW1haW5JbnNpZGVDb21wb25lbnRBcmVhICYmIG5vTW9yZUhvcml6b250YWxMaW5lc1RvRHJhdykgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICAvLyBUaGlzIGlzIHRoZSBsb29wIGNvbmRpdGlvbiwgaGVyZSBpdCdzIG1vcmUgcmVhZGFibGVcbiAgICAgICAgICAgICAgICBjb25zdCBpc0F0VGhlUmlnaHRPZlRoZVZpZXdwb3J0ID1cbiAgICAgICAgICAgICAgICAgICAgY3VycmVudExlZnQgPj0gcmVjdExlZnQgLSBvZmZzZXRMZWZ0ICsgcmVjdFdpZHRoIHx8IGN1cnJlbnRMZWZ0ID49IGNvbHVtbkxlbmd0aDtcbiAgICAgICAgICAgICAgICBpZiAoaXNBdFRoZVJpZ2h0T2ZUaGVWaWV3cG9ydCkgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBjb25zdCBpc0F0VGhlTGVmdE9mVGhlVmlld3BvcnQgPSBjdXJyZW50TGVmdCA8IDA7IC8vIGNhbiBoYXBwZW4gZm9yIGVsZW1lbnRzIHBsYWNlZCBvdXRzaWRlIHRoZSB2aWV3cG9ydFxuICAgICAgICAgICAgICAgIGlmIChpc0F0VGhlTGVmdE9mVGhlVmlld3BvcnQpIGNvbnRpbnVlO1xuXG4gICAgICAgICAgICAgICAgLy8gXCJEcmF3XCIgdGhlIHRvcCByb3dcbiAgICAgICAgICAgICAgICAvLyBbXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgIFsgLCAsICwgLCAsICwgLCAsICwgLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgIFsgLCAsICwgLCAsICwgLCAsICwgLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgIFsgLCAsICwgLCAsICwgLCAsICwgLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgIFsgLCAsICwgLCAsICwgLCAsICwgLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgICAgIPCfkYnwn5GJ8J+RiSBbICwgLCAsICwgLEwsTCxMLEwsTCxdLCDwn5GI8J+RiPCfkYhcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgWyAsICwgLCAsICxMLCAsICwgLEwsXSxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgWyAsICwgLCAsICxMLEwsTCxMLEwsXSxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgWyAsICwgLCAsICwgLCAsICwgLCAsXSxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgWyAsICwgLCAsICwgLCAsICwgLCAsXSxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgWyAsICwgLCAsICwgLCAsICwgLCAsXSxcbiAgICAgICAgICAgICAgICAvLyBdXG4gICAgICAgICAgICAgICAgY29uc3QgdG9wUm93SXNJbnNpZGVUaGVWaWV3cG9ydCA9IHRvcCA+PSAwICYmIHRvcCA8IHJvd0xlbmd0aDtcbiAgICAgICAgICAgICAgICBpZiAodG9wUm93SXNJbnNpZGVUaGVWaWV3cG9ydCkge1xuICAgICAgICAgICAgICAgICAgICBzZXRCaXRtYXBQaXhlbCh7XG4gICAgICAgICAgICAgICAgICAgICAgICB0b3AsXG4gICAgICAgICAgICAgICAgICAgICAgICBiaXRtYXAsXG4gICAgICAgICAgICAgICAgICAgICAgICBsZWZ0OiBjdXJyZW50TGVmdCxcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlOiBwaXhlbCxcbiAgICAgICAgICAgICAgICAgICAgICAgIHdpZHRoOiBnZXRSZWN0Q29vcmRpbmF0ZShlbGVtZW50UmVjdCwgJ3dpZHRoJyksXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuXG4gICAgICAgICAgICAgICAgICAgIGlmIChjb3ZlcmFnZU1vZGUgPT09ICdjb3VudENvbXBvbmVudHMnKVxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gVGhlIGdvYWwgaXMgd3JpdGUgb25lIHBpeGVsIGZvciBldmVyeSByb3dcbiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIC8vIFwiRHJhd1wiIHRoZSBib3R0b20gcm93XG4gICAgICAgICAgICAgICAgLy8gW1xuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICBbICwgLCAsICwgLCAsICwgLCAsICxdLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICBbICwgLCAsICwgLCAsICwgLCAsICxdLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICBbICwgLCAsICwgLCAsICwgLCAsICxdLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICBbICwgLCAsICwgLCAsICwgLCAsICxdLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICBbICwgLCAsICwgLEwsTCxMLEwsTCxdLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICBbICwgLCAsICwgLEwsICwgLCAsTCxdLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICDwn5GJ8J+RifCfkYkgWyAsICwgLCAsICxMLEwsTCxMLEwsXSwg8J+RiPCfkYjwn5GIXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgIFsgLCAsICwgLCAsICwgLCAsICwgLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgIFsgLCAsICwgLCAsICwgLCAsICwgLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgIFsgLCAsICwgLCAsICwgLCAsICwgLF0sXG4gICAgICAgICAgICAgICAgLy8gXVxuICAgICAgICAgICAgICAgIGNvbnN0IGJvdHRvbVJvd0lzSW5zaWRlVGhlVmlld3BvcnQgPSBib3R0b20gPj0gMCAmJiBib3R0b20gPCByb3dMZW5ndGg7XG4gICAgICAgICAgICAgICAgaWYgKGJvdHRvbVJvd0lzSW5zaWRlVGhlVmlld3BvcnQpIHtcbiAgICAgICAgICAgICAgICAgICAgc2V0Qml0bWFwUGl4ZWwoe1xuICAgICAgICAgICAgICAgICAgICAgICAgdG9wOiBib3R0b20sXG4gICAgICAgICAgICAgICAgICAgICAgICBiaXRtYXAsXG4gICAgICAgICAgICAgICAgICAgICAgICBsZWZ0OiBjdXJyZW50TGVmdCxcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlOiBwaXhlbCxcbiAgICAgICAgICAgICAgICAgICAgICAgIHdpZHRoOiBnZXRSZWN0Q29vcmRpbmF0ZShlbGVtZW50UmVjdCwgJ3dpZHRoJyksXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgLy8gXCJEcmF3XCIgdGhlIGNvbHVtbnMgaW4gYml0bWFwXG4gICAgICAgICAgICBjb25zdCBsZWZ0ID0gTWF0aC5mbG9vcihyZWN0TGVmdCAtIG9mZnNldExlZnQgKyB3ZWlnaHRMaW5lKTtcbiAgICAgICAgICAgIGNvbnN0IHJpZ2h0ID0gTWF0aC5mbG9vcihyZWN0TGVmdCAtIG9mZnNldExlZnQgKyByZWN0V2lkdGggLSAxIC0gd2VpZ2h0TGluZSk7XG4gICAgICAgICAgICBmb3IgKGxldCBjdXJyZW50VG9wID0gTWF0aC5mbG9vcihyZWN0VG9wIC0gb2Zmc2V0VG9wKTsgOyBjdXJyZW50VG9wKyspIHtcbiAgICAgICAgICAgICAgICBpZiAoY292ZXJhZ2VNb2RlID09PSAnY291bnRDb21wb25lbnRzJylcbiAgICAgICAgICAgICAgICAgICAgLy8gVGhlIGdvYWwgaXMgd3JpdGUgb25lIHBpeGVsIGZvciBldmVyeSByb3dcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICAvLyBIYXBwZW5zIHdoZW4gdGhlIHdlaWdodCBpcyBoaWdoZXIgdGhhbiBoYWxmIHRoZSBoZWlnaHQgb2YgdGhlIGVsZW1lbnQsIGFuZCBzbyB0b3AgYW5kIGJvdHRvbSBmbGlwLiBMb29rIGF0IG5vTW9yZUhvcml6b250YWxMaW5lc1RvRHJhdydzIGNvbW1lbnRcbiAgICAgICAgICAgICAgICBjb25zdCBub01vcmVWZXJ0aWNhbExpbmVzVG9EcmF3ID0gbGVmdCA+IHJpZ2h0O1xuICAgICAgICAgICAgICAgIGlmIChub01vcmVWZXJ0aWNhbExpbmVzVG9EcmF3KSBicmVhaztcblxuICAgICAgICAgICAgICAgIC8vIFRoaXMgaXMgdGhlIGxvb3AgY29uZGl0aW9uLCBoZXJlIGl0J3MgbW9yZSByZWFkYWJsZVxuICAgICAgICAgICAgICAgIGNvbnN0IGlzQXRUaGVCb3R0b21PZlRoZVZpZXdwb3J0ID1cbiAgICAgICAgICAgICAgICAgICAgY3VycmVudFRvcCA+PSByZWN0VG9wIC0gb2Zmc2V0VG9wICsgcmVjdEhlaWdodCAtIDEgfHwgY3VycmVudFRvcCA+IHJvd0xlbmd0aDtcblxuICAgICAgICAgICAgICAgIGlmIChpc0F0VGhlQm90dG9tT2ZUaGVWaWV3cG9ydCkgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBjb25zdCBpc0F0VGhlVG9wT2ZUaGVWaWV3cG9ydCA9IGN1cnJlbnRUb3AgPCAwOyAvLyBjYW4gaGFwcGVuIGZvciBlbGVtZW50cyBwbGFjZWQgb3V0c2lkZSB0aGUgdmlld3BvcnRcbiAgICAgICAgICAgICAgICBpZiAoaXNBdFRoZVRvcE9mVGhlVmlld3BvcnQpIGNvbnRpbnVlO1xuXG4gICAgICAgICAgICAgICAgLy8gXCJEcmF3XCIgdGhlIGxlZnQgY29sdW1uXG4gICAgICAgICAgICAgICAgLy8gW1xuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAg8J+Rh1xuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAg8J+Rh1xuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAg8J+Rh1xuICAgICAgICAgICAgICAgIC8vICAgIFsgLCAsICwgLCAsICwgLCAsICwgLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgWyAsICwgLCAsICwgLCAsICwgLCAsXSxcbiAgICAgICAgICAgICAgICAvLyAgICBbICwgLCAsICwgLCAsICwgLCAsICxdLFxuICAgICAgICAgICAgICAgIC8vICAgIFsgLCAsICwgLCAsICwgLCAsICwgLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgWyAsICwgLCAsICxMLEwsTCxMLEwsXSxcbiAgICAgICAgICAgICAgICAvLyAgICBbICwgLCAsICwgLEwsICwgLCAsTCxdLFxuICAgICAgICAgICAgICAgIC8vICAgIFsgLCAsICwgLCAsTCxMLEwsTCxMLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgWyAsICwgLCAsICwgLCAsICwgLCAsXSxcbiAgICAgICAgICAgICAgICAvLyAgICBbICwgLCAsICwgLCAsICwgLCAsICxdLFxuICAgICAgICAgICAgICAgIC8vICAgIFsgLCAsICwgLCAsICwgLCAsICwgLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgICDwn5GGXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgICDwn5GGXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgICDwn5GGXG4gICAgICAgICAgICAgICAgLy8gXVxuICAgICAgICAgICAgICAgIGNvbnN0IGxlZnRDb2x1bW5Jc0luc2lkZVRoZVZpZXdwb3J0ID1cbiAgICAgICAgICAgICAgICAgICAgbGVmdCA+PSAwICYmIGN1cnJlbnRUb3AgPCByb3dMZW5ndGggJiYgbGVmdCA8IGNvbHVtbkxlbmd0aDtcblxuICAgICAgICAgICAgICAgIGlmIChsZWZ0Q29sdW1uSXNJbnNpZGVUaGVWaWV3cG9ydCkge1xuICAgICAgICAgICAgICAgICAgICBzZXRCaXRtYXBQaXhlbCh7XG4gICAgICAgICAgICAgICAgICAgICAgICBsZWZ0LFxuICAgICAgICAgICAgICAgICAgICAgICAgYml0bWFwLFxuICAgICAgICAgICAgICAgICAgICAgICAgdG9wOiBjdXJyZW50VG9wLFxuICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU6IHBpeGVsLFxuICAgICAgICAgICAgICAgICAgICAgICAgd2lkdGg6IGdldFJlY3RDb29yZGluYXRlKGVsZW1lbnRSZWN0LCAnd2lkdGgnKSxcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgLy8gXCJEcmF3XCIgdGhlIHJpZ2h0IGNvbHVtblxuICAgICAgICAgICAgICAgIC8vIFtcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgICAgICAgICAg8J+Rh1xuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICAgICAgICDwn5GHXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgICAgIPCfkYdcbiAgICAgICAgICAgICAgICAvLyAgICBbICwgLCAsICwgLCAsICwgLCAsICxdLFxuICAgICAgICAgICAgICAgIC8vICAgIFsgLCAsICwgLCAsICwgLCAsICwgLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgWyAsICwgLCAsICwgLCAsICwgLCAsXSxcbiAgICAgICAgICAgICAgICAvLyAgICBbICwgLCAsICwgLCAsICwgLCAsICxdLFxuICAgICAgICAgICAgICAgIC8vICAgIFsgLCAsICwgLCAsTCxMLEwsTCxMLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgWyAsICwgLCAsICxMLCAsICwgLEwsXSxcbiAgICAgICAgICAgICAgICAvLyAgICBbICwgLCAsICwgLEwsTCxMLEwsTCxdLFxuICAgICAgICAgICAgICAgIC8vICAgIFsgLCAsICwgLCAsICwgLCAsICwgLF0sXG4gICAgICAgICAgICAgICAgLy8gICAgWyAsICwgLCAsICwgLCAsICwgLCAsXSxcbiAgICAgICAgICAgICAgICAvLyAgICBbICwgLCAsICwgLCAsICwgLCAsICxdLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICAgICAgICDwn5GGXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgICAgIPCfkYZcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgICAgICAgICAg8J+RhlxuICAgICAgICAgICAgICAgIC8vIF1cbiAgICAgICAgICAgICAgICBjb25zdCByaWd0aHRDb2x1bW5Jc0luc2lkZVRoZVZpZXdwb3J0ID1cbiAgICAgICAgICAgICAgICAgICAgcmlnaHQgPj0gMCAmJiBjdXJyZW50VG9wIDwgcm93TGVuZ3RoICYmIHJpZ2h0IDwgY29sdW1uTGVuZ3RoO1xuICAgICAgICAgICAgICAgIGlmIChyaWd0aHRDb2x1bW5Jc0luc2lkZVRoZVZpZXdwb3J0KSB7XG4gICAgICAgICAgICAgICAgICAgIHNldEJpdG1hcFBpeGVsKHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGJpdG1hcCxcbiAgICAgICAgICAgICAgICAgICAgICAgIHRvcDogY3VycmVudFRvcCxcbiAgICAgICAgICAgICAgICAgICAgICAgIGxlZnQ6IHJpZ2h0LFxuICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU6IHBpeGVsLFxuICAgICAgICAgICAgICAgICAgICAgICAgd2lkdGg6IGdldFJlY3RDb29yZGluYXRlKGVsZW1lbnRSZWN0LCAnd2lkdGgnKSxcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgY29uc3QgcGl4ZWxDb3VudHMgPSBjcmVhdGVQaXhlbENvdW50cygpO1xuICAgIGZvciAobGV0IGkgPSAwLCBuID0gYml0bWFwLmxlbmd0aDsgaSA8IG47IGkrKykge1xuICAgICAgICBwaXhlbENvdW50c1tiaXRtYXBbaV1dKys7XG4gICAgfVxuXG4gICAgaWYgKHByaW50QXNjaWlBcnQpIHtcbiAgICAgICAgbG9nQml0bWFwKHtcbiAgICAgICAgICAgIGxvZ2dlcixcbiAgICAgICAgIC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QUUsR0FBRyxLQUFLO0tBQy9CLENBQUM7QUFDTjs7OzsifQ== |
import type { DsVisualCoverageDeNormalizedResult, Logger } from '../types'; | ||
declare type Params = { | ||
type Params = { | ||
results: DsVisualCoverageDeNormalizedResult[]; | ||
@@ -4,0 +4,0 @@ logger: Logger; |
import type { ComponentType, PixelCounts } from '../types'; | ||
declare type Params = { | ||
type Params = { | ||
componentType: ComponentType; | ||
@@ -4,0 +4,0 @@ pixelCounts: PixelCounts; |
import type { ChildData, ColorByPixelType, WeightByComponentName } from '../types'; | ||
declare type LoopParams = { | ||
type LoopParams = { | ||
childrenData: ChildData[]; | ||
@@ -4,0 +4,0 @@ svgRenderer: SVGSVGElement; |
@@ -1,2 +0,2 @@ | ||
export type { Rect, Pixel, Bitmap, Logger, ChildData, TreeStats, PixelCounts, Milliseconds, CoverageMode, ComponentType, HighestNumber, ColorByPixelType, PixelByPixelType, CoverageContainer, ReadableCharByPixel, WeightByComponentName, DsVisualCoverageResult, DsVisualCoverageRunResult, CoverageContainerDomAttributeValue, DsVisualCoverageDeNormalizedResult, } from './types'; | ||
export type { Rect, Pixel, Bitmap, Logger, ChildData, PixelCounts, Milliseconds, CoverageMode, ComponentType, HighestNumber, ColorByPixelType, PixelByPixelType, CoverageContainer, ReadableCharByPixel, WeightByComponentName, DsVisualCoverageResult, DsVisualCoverageRunResult, CoverageContainerDomAttributeValue, DsVisualCoverageDeNormalizedResult, } from './types'; | ||
export { logBitmap } from './bitmap/logBitmap'; | ||
@@ -6,9 +6,9 @@ export { countPixels } from './core/countPixels'; | ||
export { setBitmapPixel } from './bitmap/setBitmapPixel'; | ||
export { createTreeStats } from './utils/createTreeStats'; | ||
export { getComponentType } from './core/getComponentType'; | ||
export { addSvgRectangles } from './debug/addSvgRectangles'; | ||
export { calculateCoverage } from './core/calculateCoverage'; | ||
export { calculateTreeStats } from './utils/calculateTreeStats'; | ||
export { createPixelCounts } from './core/createPixelCounts'; | ||
export { createLogger, isActiveLogger } from './utils/createLogger'; | ||
export { filterOutEmptyContainers } from './core/filterOutEmptyContainers'; | ||
export { isEmptyCoverageContainer } from './core/isEmptyCoverageContainer'; | ||
export { getPixelCountByComponentType } from './core/getPixelCountByComponentType'; | ||
@@ -15,0 +15,0 @@ export { getDenormalizedCoverageResult } from './utils/getDenormalizedCoverageResult'; |
@@ -5,9 +5,9 @@ export { logBitmap } from './bitmap/logBitmap.js'; | ||
export { setBitmapPixel } from './bitmap/setBitmapPixel.js'; | ||
export { createTreeStats } from './utils/createTreeStats.js'; | ||
export { getComponentType } from './core/getComponentType.js'; | ||
export { addSvgRectangles } from './debug/addSvgRectangles.js'; | ||
export { calculateCoverage } from './core/calculateCoverage.js'; | ||
export { calculateTreeStats } from './utils/calculateTreeStats.js'; | ||
export { createPixelCounts } from './core/createPixelCounts.js'; | ||
export { createLogger, isActiveLogger } from './utils/createLogger.js'; | ||
export { filterOutEmptyContainers } from './core/filterOutEmptyContainers.js'; | ||
export { isEmptyCoverageContainer } from './core/isEmptyCoverageContainer.js'; | ||
export { getPixelCountByComponentType } from './core/getPixelCountByComponentType.js'; | ||
@@ -14,0 +14,0 @@ export { getDenormalizedCoverageResult } from './utils/getDenormalizedCoverageResult.js'; |
import type { ComponentNames } from '@preply/ds-visual-coverage-component-names'; | ||
import { coverageContainerDomAttributeName } from './core/constants'; | ||
export declare type CoverageContainer<TEAM extends string = string, COMPONENT extends string = string> = { | ||
export type CoverageContainer<TEAM extends string = string, COMPONENT extends string = string> = { | ||
team: TEAM; | ||
@@ -12,4 +12,4 @@ component: COMPONENT; | ||
*/ | ||
export declare type CoverageContainerDomAttributeName = typeof coverageContainerDomAttributeName; | ||
export declare type CoverageContainerDomAttributeValue = string; | ||
export type CoverageContainerDomAttributeName = typeof coverageContainerDomAttributeName; | ||
export type CoverageContainerDomAttributeValue = string; | ||
/** | ||
@@ -34,14 +34,13 @@ * Virtual representation of the pixels of the page. Its length is the page's width*height | ||
*/ | ||
export declare type Bitmap = Uint8Array; | ||
export declare type EmptyPixel = 0; | ||
export declare type NonDsComponentPixel = 1; | ||
export declare type DsComponentPixels = 2 | 3 | 4 | 5 | 6 | 7 | 8; | ||
export declare type ComponentPixels = NonDsComponentPixel | DsComponentPixels; | ||
export declare type Pixel = EmptyPixel | ComponentPixels; | ||
export declare type HighestNumber = 8; | ||
export declare type ComponentType = 'nonDsComponent' | 'uiDsComponent' | 'utilDsComponent' | 'rebrandComponent' | 'layoutDsComponent' | 'unknownDsComponent' | 'dsCandidateComponent' | 'outdatedDsComponent'; | ||
export declare type PixelType = 'emptyPixel' | ComponentType; | ||
export declare type DsVisualCoverageResult = { | ||
export type Bitmap = Uint8Array; | ||
export type EmptyPixel = 0; | ||
export type NonDsComponentPixel = 1; | ||
export type DsComponentPixels = 2 | 3 | 4 | 5 | 6 | 7 | 8; | ||
export type ComponentPixels = NonDsComponentPixel | DsComponentPixels; | ||
export type Pixel = EmptyPixel | ComponentPixels; | ||
export type HighestNumber = 8; | ||
export type ComponentType = 'nonDsComponent' | 'uiDsComponent' | 'utilDsComponent' | 'rebrandComponent' | 'layoutDsComponent' | 'unknownDsComponent' | 'dsCandidateComponent' | 'outdatedDsComponent'; | ||
export type PixelType = 'emptyPixel' | ComponentType; | ||
export type DsVisualCoverageResult = { | ||
stopped: boolean; | ||
treeStats: TreeStats; | ||
duration: Duration; | ||
@@ -51,9 +50,9 @@ pixelCounts: PixelCounts; | ||
}; | ||
declare type Percentage = number; | ||
export declare type Coverage = Percentage; | ||
type Percentage = number; | ||
export type Coverage = Percentage; | ||
/** | ||
* See countPixels for the differences between the two modes. | ||
*/ | ||
export declare type CoverageMode = 'countComponents' | 'countPerimeters'; | ||
export declare type DsVisualCoverageDeNormalizedResult = DsVisualCoverageResult & { | ||
export type CoverageMode = 'countComponents' | 'countPerimeters'; | ||
export type DsVisualCoverageDeNormalizedResult = DsVisualCoverageResult & { | ||
team: string; | ||
@@ -65,3 +64,3 @@ component: string; | ||
}; | ||
export declare type DsVisualCoverageRunResult = { | ||
export type DsVisualCoverageRunResult = { | ||
stopped: boolean; | ||
@@ -71,10 +70,5 @@ totalDuration: Milliseconds; | ||
}; | ||
declare type ComponentName = string; | ||
export declare type TreeStats = { | ||
totalComponentsByName: Record<ComponentName, number>; | ||
totalComponentsByType: Record<ComponentType, number>; | ||
}; | ||
export declare type Logger = (...args: unknown[]) => void; | ||
export declare type PixelCounts = Uint32Array; | ||
export declare type Coordinates = { | ||
export type Logger = (...args: unknown[]) => void; | ||
export type PixelCounts = Uint32Array; | ||
export type Coordinates = { | ||
top: number; | ||
@@ -85,6 +79,6 @@ left: number; | ||
}; | ||
export declare type TopLeftWidthHeight = Uint16Array; | ||
export declare type Rect = TopLeftWidthHeight; | ||
export declare type Milliseconds = number; | ||
export declare type Duration = { | ||
export type TopLeftWidthHeight = Uint16Array; | ||
export type Rect = TopLeftWidthHeight; | ||
export type Milliseconds = number; | ||
export type Duration = { | ||
blockingDuration: Milliseconds; | ||
@@ -95,3 +89,3 @@ nonBlockingDuration: Milliseconds; | ||
}; | ||
export declare type ChildData = { | ||
export type ChildData = { | ||
rect: Rect; | ||
@@ -102,9 +96,9 @@ dsComponentType: ComponentType; | ||
}; | ||
export declare type RgbColor = string; | ||
export declare type ReadableChar = string; | ||
export declare type WeightByComponentName = Record<'emptyPixel' | 'nonDsComponent' | 'unknownDsComponent' | ComponentNames, number>; | ||
export declare type PixelByPixelType = Record<PixelType, Pixel>; | ||
export declare type ColorByPixelType = Record<PixelType, RgbColor>; | ||
export declare type ReadableCharByPixel = Record<Pixel, ReadableChar>; | ||
export type RgbColor = string; | ||
export type ReadableChar = string; | ||
export type WeightByComponentName = Record<'emptyPixel' | 'nonDsComponent' | 'unknownDsComponent' | ComponentNames, number>; | ||
export type PixelByPixelType = Record<PixelType, Pixel>; | ||
export type ColorByPixelType = Record<PixelType, RgbColor>; | ||
export type ReadableCharByPixel = Record<Pixel, ReadableChar>; | ||
export {}; | ||
//# sourceMappingURL=types.d.ts.map |
import type { CoverageContainer, DsVisualCoverageDeNormalizedResult, DsVisualCoverageResult, Rect } from '../types'; | ||
declare type Params = { | ||
type Params = { | ||
result: DsVisualCoverageResult; | ||
@@ -4,0 +4,0 @@ dsVisualCoverageContainerData: { |
{ | ||
"name": "@preply/ds-visual-coverage-core", | ||
"version": "0.97.1", | ||
"version": "0.97.2", | ||
"publishConfig": { | ||
@@ -16,3 +16,3 @@ "access": "public" | ||
"lint": "run --top-level eslint --ext .js,.ts,.tsx,.mdx *.config.js src/", | ||
"test": "run --top-level jest --coverage", | ||
"test": "run --top-level vitest --coverage --watch=false", | ||
"build": "NODE_ENV=production && run build:rollup", | ||
@@ -23,8 +23,8 @@ "build:rollup": "run --top-level rollup -c rollup.config.js", | ||
"dependencies": { | ||
"@preply/ds-visual-coverage-component-names": "0.97.1" | ||
"@preply/ds-visual-coverage-component-names": "0.97.2" | ||
}, | ||
"peerDependencies": { | ||
"@preply/ds-visual-coverage-component-names": "0.97.1" | ||
"@preply/ds-visual-coverage-component-names": "0.97.2" | ||
}, | ||
"gitHead": "4f0b9b1b6e755137bf53d7f19f5b2833f6609053" | ||
"gitHead": "baae2278c4ff001f6e4381207576816c74cc7146" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
189406
1660
+ Added@preply/ds-visual-coverage-component-names@0.97.2(transitive)
- Removed@preply/ds-visual-coverage-component-names@0.97.1(transitive)