feat: the Site cuts the empty strips at the top and bottom of a ready PNG sheet from price and print
Some checks failed
Build and deploy / Validate source (push) Successful in 6s
Build and deploy / Integration suite on a real stack (push) Failing after 7m43s
Build and deploy / Secret scan and release gate (push) Successful in 7s
Build and deploy / Publish images (push) Has been skipped
Some checks failed
Build and deploy / Validate source (push) Successful in 6s
Build and deploy / Integration suite on a real stack (push) Failing after 7m43s
Build and deploy / Secret scan and release gate (push) Successful in 7s
Build and deploy / Publish images (push) Has been skipped
Step 2 of trimming empty strips (Marcus, 2026-11-18): the Site.
- The sheet check finds where the ink starts and ends (each map cell
keeps its first and last ink row) and returns the empty strips.
- A ready PNG sheet whose strip passes 1 cm loses it but for 0,5 cm, as
the layout keeps; its metres drop to what is left, and the cart sends
trim_top_cm and trim_bottom_cm with the source, which the server prints
without (06f4ec9). Spaces between artworks stay.
- The sheet's card says "Removemos N cm vazios do fim do arquivo.
Cobrado: X m." (with several sheets or copies: "Esta folha fica com
X m.").
- The thinnest stroke's place for the proof counts from where the cut
starts.
Checked in Chromium against the page: a 100 cm UV sheet with art from 20
to 45 cm leaves 25,98 cm, a 3 m sheet (the tall-PNG path) 71 cm, two
sheets each say their own metres; the cart's production passes the
server model and prints 25,98 cm with the art whole.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -64,9 +64,17 @@ function tracoDoItem(lista,layout){
|
||||
const fino=medidas.reduce((a,b)=>b.traco.px<a.traco.px?b:a);
|
||||
// Avisado do item 16, o cliente quis imprimir assim: fica a medida, C1.
|
||||
const avisado=arquivos.some(x=>x.mistaVista && mista(lista?tracoDaArte(x):tracoDoArquivo(x)));
|
||||
// On a sheet with its empty strips cut (aplicaCorte) the stroke's place
|
||||
// counts from where the cut starts, as the printed film does.
|
||||
let fracao=fino.traco.proofYFraction||0;
|
||||
const doArquivo=!lista && arquivos[fino.index];
|
||||
if(doArquivo && doArquivo.corte && doArquivo.med){
|
||||
const {topo,fim}=doArquivo.corte, alt=doArquivo.med.alt;
|
||||
fracao=Math.max(0,Math.min(1,(fracao*alt-topo)/(alt-topo-fim)));
|
||||
}
|
||||
return {strokePx:fino.traco.px, strokeClass:fino.traco.classe, strokeChoice:avisado?'measured':null,
|
||||
proofSourceIndex:fino.index,
|
||||
proofYFraction:fracaoNoFilme(layout||montagemLayout,fino.index,fino.traco.proofYFraction||0)};
|
||||
proofYFraction:fracaoNoFilme(layout||montagemLayout,fino.index,fracao)};
|
||||
}
|
||||
// Fecha a medida da conferência quando não há mais arquivo sendo lido (0.12).
|
||||
function marcaTempos(){
|
||||
|
||||
Reference in New Issue
Block a user