fix gerber module import. fix SPACE reference in cam client
This commit is contained in:
parent
5fed7e6cda
commit
1c2aebbb4c
2 changed files with 2 additions and 2 deletions
|
|
@ -508,7 +508,7 @@ export function init() {
|
||||||
api.event.on("cam.parse.gerber", opts => {
|
api.event.on("cam.parse.gerber", opts => {
|
||||||
const { data, mesh } = opts;
|
const { data, mesh } = opts;
|
||||||
const { open, closed, circs, rects } = load.GBR.parse(data);
|
const { open, closed, circs, rects } = load.GBR.parse(data);
|
||||||
const stack = new Stack(mesh || space.world.newGroup());
|
const stack = new Stack(mesh || SPACE.world.newGroup());
|
||||||
const layers = new Layers();
|
const layers = new Layers();
|
||||||
for (let poly of open) {
|
for (let poly of open) {
|
||||||
layers.setLayer("open", { line: 0xff8800 }, false).addPoly(poly);
|
layers.setLayer("open", { line: 0xff8800 }, false).addPoly(poly);
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
import { polygons } from '../geo/polygons.js';
|
import { polygons } from '../geo/polygons.js';
|
||||||
import { CSG } from '../geo/csg.js';
|
import { CSG } from '../geo/csg.js';
|
||||||
import * as TracespaceParser from '../ext/gerber.js';
|
import '../ext/gerber.js';
|
||||||
import { newPolygon } from '../geo/polygon.js';
|
import { newPolygon } from '../geo/polygon.js';
|
||||||
import { newBounds } from '../geo/bounds.js';
|
import { newBounds } from '../geo/bounds.js';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue