fix frame api
This commit is contained in:
parent
07da144aee
commit
841082c485
6 changed files with 13 additions and 4 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue