feat: Dropstar's 03/11 answers on residue and item 16; wide areas count in the stroke
All checks were successful
Build and deploy / Validate source (push) Successful in 11s
Build and deploy / Integration suite on a real stack (push) Successful in 5m25s
Build and deploy / Secret scan and release gate (push) Successful in 8s
Build and deploy / Publish images (push) Successful in 1m20s
All checks were successful
Build and deploy / Validate source (push) Successful in 11s
Build and deploy / Integration suite on a real stack (push) Successful in 5m25s
Build and deploy / Secret scan and release gate (push) Successful in 8s
Build and deploy / Publish images (push) Successful in 1m20s
- Residue: the acceptance stays on loose artwork only ("arquivo
fracionado"), with their text. A ready sheet with residue goes back,
as the designer cannot clean a closed sheet.
- Item 16, new rule, all three at once: thinnest stroke up to 4 px, at
least 60% of the ink in areas 20 px or wider, at most 10% of the ink in
strokes up to 4 px. One pop-up per file, on ready sheets and loose art,
that does not block: "Imprimir assim mesmo (C1)" (default) or "Quero
subir em dois arquivos". The ready sheet's three options are gone; the
card notes that the customer was warned and printed as C1.
- The stroke reader counts the ink in wide areas with their edges and the
ink in strokes up to 4 px, and areas wider than the measured distance now
add axis samples: two edge pixels no longer make a solid art C1 ("Salmo
91" was C1 at 3 px, now C3). The four test sheets still give 2, 5, 20
and 4 px; the new rule triggers on 4 of the 9 real arts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -454,8 +454,9 @@ function chipsDaFolha(a,aceito){
|
||||
// Resíduo e fundo chapado barram o pedido (Dropstar, 21/10/2026): o texto diz
|
||||
// quantos pontos, onde estão e o que fazer, sem "arquivo com problema". O
|
||||
// resíduo o cliente pode aceitar imprimir (29/10/2026); marcado, o aviso sai
|
||||
// e fica só o aceite.
|
||||
function avisosDaFolha(a,nome,i,aceito){
|
||||
// e fica só o aceite. Só na arte avulsa (Dropstar, 03/11/2026): a folha pronta
|
||||
// com resíduo volta, porque o designer não limpa folha fechada.
|
||||
function avisosDaFolha(a,nome,i,aceito,aceitavel=false){
|
||||
if(a.grande) return '';
|
||||
if(a.fundoChapado) return /\.jpe?g$/i.test(nome||'')
|
||||
? '<p class="avisoF"><b>JPG não tem fundo transparente.</b> O que parece branco na tela sai branco '+
|
||||
@@ -467,12 +468,12 @@ function avisosDaFolha(a,nome,i,aceito){
|
||||
const aceite='<label class="aceiteRes"><input type="checkbox" data-residuo="'+i+'"'+(aceito?' checked':'')+'>'+
|
||||
'<span>Esta arte tem '+n+(varios?' pontos menores':' ponto menor')+' que 2 mm. Estou ciente e aceito '+
|
||||
'imprimir assim — '+(varios?'eles podem':'ele pode')+' se perder no recorte.</span></label>';
|
||||
if(aceito) return aceite;
|
||||
if(aceitavel && aceito) return aceite;
|
||||
return '<p class="avisoF"><b>'+(varios?'Sobraram ':'Sobrou ')+n+(varios?' pontos':' ponto')+
|
||||
' de recorte na sua folha.</b> São restos da remoção de fundo: não aparecem na sua tela, mas a '+
|
||||
'impressora enxerga e imprime. Apague '+(varios?'os pontos':'o ponto')+' na ferramenta que você '+
|
||||
'usou e envie de novo. '+(varios?'Os círculos vermelhos na prévia mostram onde estão.':'O círculo vermelho na prévia mostra onde está.')+
|
||||
' Se '+(varios?'os pontos são':'o ponto é')+' da própria arte, marque abaixo.</p>'+aceite;
|
||||
(aceitavel?' Se '+(varios?'os pontos são':'o ponto é')+' da própria arte, marque abaixo.</p>'+aceite:'</p>');
|
||||
}
|
||||
function detalhesDaFolha(a,i,aberto){
|
||||
const linhas = a.grande
|
||||
@@ -666,7 +667,7 @@ function pintaArtes(){
|
||||
}
|
||||
// Item 4: the art's dots under 2 mm, with the same warning and acceptance as a sheet.
|
||||
const an=analiseDaArte(a);
|
||||
if(an && an.residuos) aviso+=avisosDaFolha({residuos:an.residuos},a.f.name,i,!!a.residuoAceito).replace('data-residuo=','data-residuoa=')
|
||||
if(an && an.residuos) aviso+=avisosDaFolha({residuos:an.residuos},a.f.name,i,!!a.residuoAceito,true).replace('data-residuo=','data-residuoa=')
|
||||
.replace('na sua folha','nesta arte');
|
||||
if(a.semPrevia && !a.decodeError)
|
||||
aviso+='<p class="repTxt"><b>Sem prévia para '+escapeHTML(extDe(a.f.name))+' deste tamanho.</b> '+
|
||||
|
||||
Reference in New Issue
Block a user