A printed poster's leader lines carry about the image print's ink (stroke-opacity .5, measured)

This commit is contained in:
Doxa Maps 2026-10-03 16:20:01 +00:00
parent 66c9f048c9
commit 0d3219e58e

View file

@ -873,7 +873,7 @@ function fitForPrint(html) {
// and clipped to the fitted box too (the frame print has no root, so this rule changes nothing there).
const css = `<style>@media print{@page{margin:${PRINT_MARGIN_MM}mm}.stage{transform:scale(${(+sc[1] * f).toFixed(6)})}`
+ `html,body{width:${w}px;height:${h}px}#dxm-print-root{width:${w}px!important;height:${h}px!important;overflow:hidden!important;margin:0!important}`
+ `.lead{stroke-opacity:.6}.slead{opacity:.4}}</style>`
+ `.lead{stroke-opacity:.5}.slead{opacity:.4}}</style>`
return html.replace('</head>', css + '</head>')
}