@invarn/cibuild 2.4.4 → 2.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +18 -10
- package/dist/src/yaml/steps/render-post-processor.d.ts.map +1 -1
- package/dist/src/yaml/steps/render-post-processor.js +8 -0
- package/dist/src/yaml/steps/ui-fidelity-preview-android.test.js +2 -0
- package/dist/src/yaml/steps/ui-fidelity-preview.d.ts +9 -0
- package/dist/src/yaml/steps/ui-fidelity-preview.d.ts.map +1 -1
- package/dist/src/yaml/steps/ui-fidelity-preview.test.js +2 -0
- package/dist/src/yaml/steps/ui-fidelity-render-android.test.js +2 -0
- package/dist/src/yaml/steps/ui-fidelity-render.test.js +8 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-post-processor.d.ts","sourceRoot":"","sources":["../../../../src/yaml/steps/render-post-processor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAMH;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,wBAAwB,EAAE,
|
|
1
|
+
{"version":3,"file":"render-post-processor.d.ts","sourceRoot":"","sources":["../../../../src/yaml/steps/render-post-processor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAMH;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,wBAAwB,EAAE,MA+JtC,CAAC;AAEF,iFAAiF;AACjF,MAAM,MAAM,YAAY,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE5C,iFAAiF;AACjF,MAAM,WAAW,QAAQ;IACvB,QAAQ,EAAE,YAAY,CAAC;IACvB,SAAS,EAAE,YAAY,CAAC;IACxB,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,yDAAyD;AACzD,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,sBAAsB;IACrC,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAAC;IAC/C,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,oBAAoB,CAAC;IAC3D,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG;QAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CAC1F;AAED;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAC,SAAS,CAAC,EAAE;IACpD,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,GAAG,sBAAsB,CAkBzB;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,GAAG,IAAI,CAqBhD"}
|
|
@@ -180,6 +180,14 @@ function trimRenderedImage(entry, renderedPath) {
|
|
|
180
180
|
rendered_px: dims.rendered,
|
|
181
181
|
logical_pt: [roundTwo(dims.rendered[0] / scale), roundTwo(dims.rendered[1] / scale)],
|
|
182
182
|
reference_px: dims.reference[0] > 0 && dims.reference[1] > 0 ? dims.reference : null,
|
|
183
|
+
// The PRE-TRIM raster: what the renderer actually PAINTED, before cropping
|
|
184
|
+
// to content. The gate's frame-fill check needs it to tell "the wrapper
|
|
185
|
+
// never reached its design frame" (a real defect) from "the wrapper filled
|
|
186
|
+
// the frame in a UNIFORM colour, so the trim cropped its own padding back
|
|
187
|
+
// off" (not a defect -- and previously indistinguishable, which meant a
|
|
188
|
+
// padding fix could never close its finding: post-trim px are identical
|
|
189
|
+
// before and after the fix).
|
|
190
|
+
source_px: dims.source,
|
|
183
191
|
};
|
|
184
192
|
// Surface how much margin was removed -- a no-op (source == rendered) means
|
|
185
193
|
// the view fills an opaque canvas with no transparent or uniform margin.
|
|
@@ -171,6 +171,8 @@ describe('renderUiFidelityPreviewAndroid — fake toolchain', () => {
|
|
|
171
171
|
rendered_px: [320, 640],
|
|
172
172
|
logical_pt: [160, 320],
|
|
173
173
|
reference_px: [160, 320],
|
|
174
|
+
// the fake helper's TRIMDIMS pre-trim source px (fields 5-6)
|
|
175
|
+
source_px: [400, 800],
|
|
174
176
|
});
|
|
175
177
|
});
|
|
176
178
|
test('writes images under the requested outDir', () => {
|
|
@@ -57,6 +57,15 @@ export interface UiFidelityPreviewDimensions {
|
|
|
57
57
|
rendered_px: [number, number];
|
|
58
58
|
logical_pt: [number, number];
|
|
59
59
|
reference_px: [number, number] | null;
|
|
60
|
+
/**
|
|
61
|
+
* The PRE-TRIM raster in px -- what the renderer PAINTED before cropping to
|
|
62
|
+
* content. The gate's frame-fill check reads it to tell a wrapper that never
|
|
63
|
+
* reached its design frame (a real defect) from one that filled the frame in a
|
|
64
|
+
* UNIFORM colour, whose own padding the trim then cropped back off (not a
|
|
65
|
+
* defect). Absent on renders produced before this shipped: absence makes no
|
|
66
|
+
* statement and the check falls back to the post-trim extent.
|
|
67
|
+
*/
|
|
68
|
+
source_px?: [number, number];
|
|
60
69
|
}
|
|
61
70
|
export interface UiFidelityPreviewScreenResult {
|
|
62
71
|
screen: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-fidelity-preview.d.ts","sourceRoot":"","sources":["../../../../src/yaml/steps/ui-fidelity-preview.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AA6BH,+EAA+E;AAC/E,MAAM,WAAW,uBAAuB;IACtC,wEAAwE;IACxE,MAAM,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gEAAgE;IAChE,OAAO,EAAE,uBAAuB,EAAE,CAAC;IACnC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,0EAA0E;IAC1E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,2EAA2E;IAC3E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,2BAA2B;IAC1C,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"ui-fidelity-preview.d.ts","sourceRoot":"","sources":["../../../../src/yaml/steps/ui-fidelity-preview.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AA6BH,+EAA+E;AAC/E,MAAM,WAAW,uBAAuB;IACtC,wEAAwE;IACxE,MAAM,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gEAAgE;IAChE,OAAO,EAAE,uBAAuB,EAAE,CAAC;IACnC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,0EAA0E;IAC1E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACj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zE,EAAE,EAAE,OAAO,CAAC;CACb;AAED,kEAAkE;AAClE,2EAA2E;AAC3E,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAChD,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,UAAU,CAAC,EAAE,2BAA2B,GAAG,IAAI,CAAC;CACjD;AAuBD;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,gBAAgB,EACrB,YAAY,EAAE,MAAM,GACnB,6BAA6B,CAgB/B;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,wBAAwB,GAChC,uBAAuB,CAqIzB"}
|
|
@@ -163,6 +163,8 @@ describe('renderUiFidelityPreview — fake toolchain', () => {
|
|
|
163
163
|
rendered_px: [320, 640],
|
|
164
164
|
logical_pt: [160, 320],
|
|
165
165
|
reference_px: [160, 320],
|
|
166
|
+
// the fake helper's TRIMDIMS pre-trim source px (fields 5-6)
|
|
167
|
+
source_px: [400, 800],
|
|
166
168
|
});
|
|
167
169
|
});
|
|
168
170
|
test('writes images under the requested outDir', () => {
|
|
@@ -326,6 +326,8 @@ describe('android render runtime — render + trim (happy path)', () => {
|
|
|
326
326
|
rendered_px: [320, 640],
|
|
327
327
|
logical_pt: [160, 320],
|
|
328
328
|
reference_px: [160, 320],
|
|
329
|
+
// the fake helper's TRIMDIMS pre-trim source px (fields 5-6)
|
|
330
|
+
source_px: [400, 800],
|
|
329
331
|
});
|
|
330
332
|
expect(isPng(artifact(project, 'ui-fidelity/rendered/XProof.png'))).toBe(true);
|
|
331
333
|
expect(isPng(artifact(project, 'ui-fidelity/aligned/XProof.png'))).toBe(true);
|
|
@@ -1102,6 +1102,8 @@ describe('render script runtime (package_source: repo)', () => {
|
|
|
1102
1102
|
rendered_px: [320, 640],
|
|
1103
1103
|
logical_pt: [160, 320],
|
|
1104
1104
|
reference_px: [160, 320],
|
|
1105
|
+
// the fake helper's TRIMDIMS pre-trim source px (fields 5-6)
|
|
1106
|
+
source_px: [400, 800],
|
|
1105
1107
|
},
|
|
1106
1108
|
},
|
|
1107
1109
|
],
|
|
@@ -1207,6 +1209,8 @@ describe('render output trimming (package_source variants)', () => {
|
|
|
1207
1209
|
rendered_px: [320, 640],
|
|
1208
1210
|
logical_pt: [160, 320],
|
|
1209
1211
|
reference_px: [160, 320],
|
|
1212
|
+
// the fake helper's TRIMDIMS pre-trim source px (fields 5-6)
|
|
1213
|
+
source_px: [400, 800],
|
|
1210
1214
|
});
|
|
1211
1215
|
});
|
|
1212
1216
|
test('logs how much margin the trim removed (source -> rendered)', async () => {
|
|
@@ -1277,6 +1281,8 @@ describe('render script runtime (package_source: inputs)', () => {
|
|
|
1277
1281
|
rendered_px: [320, 640],
|
|
1278
1282
|
logical_pt: [160, 320],
|
|
1279
1283
|
reference_px: [160, 320],
|
|
1284
|
+
// the fake helper's TRIMDIMS pre-trim source px (fields 5-6)
|
|
1285
|
+
source_px: [400, 800],
|
|
1280
1286
|
},
|
|
1281
1287
|
},
|
|
1282
1288
|
{
|
|
@@ -1292,6 +1298,8 @@ describe('render script runtime (package_source: inputs)', () => {
|
|
|
1292
1298
|
rendered_px: [320, 640],
|
|
1293
1299
|
logical_pt: [160, 320],
|
|
1294
1300
|
reference_px: [160, 320],
|
|
1301
|
+
// the fake helper's TRIMDIMS pre-trim source px (fields 5-6)
|
|
1302
|
+
source_px: [400, 800],
|
|
1295
1303
|
},
|
|
1296
1304
|
},
|
|
1297
1305
|
],
|