kicad-to-circuit-json 0.0.150 → 0.0.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5251,6 +5251,7 @@ var CollectZonesStage = class extends ConverterStage {
|
|
|
5251
5251
|
if (netKey !== null) {
|
|
5252
5252
|
netName = this.ctx.netNumToName.get(netKey) || netName;
|
|
5253
5253
|
}
|
|
5254
|
+
const sourceNetId = netKey !== null && netKey !== 0 ? this.ctx.netNumToSourceNetId?.get(netKey) : void 0;
|
|
5254
5255
|
for (const polygonRecord of polygonRecords) {
|
|
5255
5256
|
const transformedPoints = polygonRecord.points.map(
|
|
5256
5257
|
(point) => applyToPoint10(this.ctx.k2cMatPcb, { x: point.x, y: point.y })
|
|
@@ -5258,6 +5259,7 @@ var CollectZonesStage = class extends ConverterStage {
|
|
|
5258
5259
|
this.ctx.db.pcb_copper_pour.insert({
|
|
5259
5260
|
layer: polygonRecord.layer,
|
|
5260
5261
|
net_name: netName,
|
|
5262
|
+
source_net_id: sourceNetId,
|
|
5261
5263
|
points: transformedPoints,
|
|
5262
5264
|
shape: "polygon"
|
|
5263
5265
|
});
|