@@ -202,7 +202,7 @@ function drawPolygonShape(ctx, shape, color) {
202
202
}
203
203
204
204
function drawDrawing ( ctx , layer , scalefactor , drawing , color ) {
205
- if ( [ "segment" , "arc" , "circle" ] . includes ( drawing . type ) ) {
205
+ if ( [ "segment" , "arc" , "circle" , "curve" ] . includes ( drawing . type ) ) {
206
206
drawedge ( ctx , scalefactor , drawing , color ) ;
207
207
} else if ( drawing . type == "polygon" ) {
208
208
drawPolygonShape ( ctx , drawing , color ) ;
@@ -334,7 +334,7 @@ function drawModules(canvas, layer, scalefactor, highlight) {
334
334
function drawBgLayer ( layername , canvas , layer , scalefactor , edgeColor , polygonColor , textColor ) {
335
335
var ctx = canvas . getContext ( "2d" ) ;
336
336
for ( var d of pcbdata [ layername ] [ layer ] ) {
337
- if ( [ "segment" , "arc" , "circle" ] . includes ( d . type ) ) {
337
+ if ( [ "segment" , "arc" , "circle" , "curve" ] . includes ( d . type ) ) {
338
338
drawedge ( ctx , scalefactor , d , edgeColor ) ;
339
339
} else if ( d . type == "polygon" ) {
340
340
drawPolygonShape ( ctx , d , polygonColor ) ;
0 commit comments