fix frame api

This commit is contained in:
Stewart Allen 2025-12-29 22:21:03 -05:00
commit 841082c485
6 changed files with 13 additions and 4 deletions

View file

@ -870,10 +870,13 @@ export async function prepare_one(widget, settings, print, firstPoint, update) {
// we're coming from another widget. offset compensated below
printPoint = firstPoint;
// console.log('coming from another widget', { printPoint });
} else {
} else if (center) {
// we're the first widget output. offset is center
printPoint = origin.clone().move({ x: center.x, y: center.y });
// console.log('first widget output', { printPoint });
} else {
console.log({ missing_center_using_origin: origin });
printPoint = origin.clone();
}
let ops = {

View file

@ -241,7 +241,7 @@ export class Topo {
}
}
// raise output points when inside tab boundaries
if (!inside && tabsOn && clipTab.length)
if (tabsOn && clipTab.length)
for (let poly of lines) {
for (let p of poly.points) {
for (let clip of clipTab) {