chore(scripts): compare bisect subsets by bounds

This commit is contained in:
Danila Poyarkov 2026-05-18 12:26:06 +03:00
parent 931e39e011
commit 61ada46f24

View file

@ -167,11 +167,15 @@ async function exportOpenPencilSubset(indices: number[], path: string): Promise<
}
try {
const data = await headlessRenderNodes(graph, page.id, page.childIds, {
const data = await headlessRenderNodes(
graph,
page.id,
indices.map((index) => childIds[index]),
{
scale,
format: 'PNG',
trimTransparent: true
})
format: 'PNG'
}
)
if (!data) throw new Error(`OpenPencil render produced no image for ${indices.join(',')}`)
await Bun.write(path, data)
} finally {