chore(scripts): compare bisect subsets by bounds
This commit is contained in:
parent
931e39e011
commit
61ada46f24
|
|
@ -167,11 +167,15 @@ async function exportOpenPencilSubset(indices: number[], path: string): Promise<
|
|||
}
|
||||
|
||||
try {
|
||||
const data = await headlessRenderNodes(graph, page.id, page.childIds, {
|
||||
scale,
|
||||
format: 'PNG',
|
||||
trimTransparent: true
|
||||
})
|
||||
const data = await headlessRenderNodes(
|
||||
graph,
|
||||
page.id,
|
||||
indices.map((index) => childIds[index]),
|
||||
{
|
||||
scale,
|
||||
format: 'PNG'
|
||||
}
|
||||
)
|
||||
if (!data) throw new Error(`OpenPencil render produced no image for ${indices.join(',')}`)
|
||||
await Bun.write(path, data)
|
||||
} finally {
|
||||
|
|
|
|||
Loading…
Reference in a new issue