easyeda 0.0.265 → 0.0.266
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/browser/index.js +6 -2
- package/dist/browser/index.js.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/main.cjs +7 -3
- package/dist/main.cjs.map +1 -1
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -9290,6 +9290,10 @@ var handleCutout = (solidRegion, index) => {
|
|
|
9290
9290
|
}))
|
|
9291
9291
|
});
|
|
9292
9292
|
};
|
|
9293
|
+
var LEAD_SHAPE_LAYER = 100;
|
|
9294
|
+
var isPcbSolidRegionCutout = (shape) => {
|
|
9295
|
+
return shape.fillStyle === "cutout" && shape.layermask !== LEAD_SHAPE_LAYER;
|
|
9296
|
+
};
|
|
9293
9297
|
var getCadPositionZMmFromMetadata = (easyEdaJson) => {
|
|
9294
9298
|
const svgNode = easyEdaJson.packageDetail.dataStr.shape.find(
|
|
9295
9299
|
(shape) => shape.type === "SVGNODE" && shape.svgData.attrs?.uuid
|
|
@@ -9496,7 +9500,7 @@ var convertEasyEdaJsonToCircuitJson = (easyEdaJson, {
|
|
|
9496
9500
|
circuitElements.push(handleVia(v, index));
|
|
9497
9501
|
});
|
|
9498
9502
|
easyEdaJson.packageDetail.dataStr.shape.filter(
|
|
9499
|
-
(shape) => shape.type === "SOLIDREGION" && shape
|
|
9503
|
+
(shape) => shape.type === "SOLIDREGION" && isPcbSolidRegionCutout(shape)
|
|
9500
9504
|
).forEach((sr, index) => {
|
|
9501
9505
|
circuitElements.push(handleCutout(sr, index));
|
|
9502
9506
|
});
|
|
@@ -9548,7 +9552,7 @@ var convertEasyEdaJsonToCircuitJson = (easyEdaJson, {
|
|
|
9548
9552
|
circuitElements.push(
|
|
9549
9553
|
pcb_silkscreen_text.parse({
|
|
9550
9554
|
type: "pcb_silkscreen_text",
|
|
9551
|
-
pcb_silkscreen_text_id:
|
|
9555
|
+
pcb_silkscreen_text_id: "pcb_silkscreen_text_designator_fallback",
|
|
9552
9556
|
pcb_component_id: "pcb_component_1",
|
|
9553
9557
|
text: "{NAME}",
|
|
9554
9558
|
anchor_position: {
|