Skip to content

Commit d3b3317

Browse files
authored
Support bezier curves on all layers
Fixes #129
1 parent 591e740 commit d3b3317

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

InteractiveHtmlBom/web/render.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ function drawPolygonShape(ctx, shape, color) {
202202
}
203203

204204
function drawDrawing(ctx, layer, scalefactor, drawing, color) {
205-
if (["segment", "arc", "circle"].includes(drawing.type)) {
205+
if (["segment", "arc", "circle", "curve"].includes(drawing.type)) {
206206
drawedge(ctx, scalefactor, drawing, color);
207207
} else if (drawing.type == "polygon") {
208208
drawPolygonShape(ctx, drawing, color);
@@ -334,7 +334,7 @@ function drawModules(canvas, layer, scalefactor, highlight) {
334334
function drawBgLayer(layername, canvas, layer, scalefactor, edgeColor, polygonColor, textColor) {
335335
var ctx = canvas.getContext("2d");
336336
for (var d of pcbdata[layername][layer]) {
337-
if (["segment", "arc", "circle"].includes(d.type)) {
337+
if (["segment", "arc", "circle", "curve"].includes(d.type)) {
338338
drawedge(ctx, scalefactor, d, edgeColor);
339339
} else if (d.type == "polygon") {
340340
drawPolygonShape(ctx, d, polygonColor);

0 commit comments

Comments
 (0)