const L = (await eda.pcb_PrimitiveLine.getAll()).filter(o=>o.layer===11); const A = (await eda.pcb_PrimitiveArc.getAll()).filter(o=>o.layer===11); const P = (await eda.pcb_PrimitivePolyline.getAll()).filter(o=>o.layer===11); const R = (await eda.pcb_PrimitiveRegion.getAll()).filter(o=>o.layer===11); return {nLine:L.length, nArc:A.length, nPoly:P.length, nRegion:R.length, lines: L.map(o=>[o.startX,o.startY,o.endX,o.endY,o.lineWidth,o.primitiveType]), arcs: A.slice(0,8).map(o=>Object.assign({}, o, {async:undefined})), polys: P.slice(0,3).map(o=>Object.keys(o))};