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/index.js
CHANGED
|
@@ -5407,6 +5407,10 @@ var handleCutout = (solidRegion, index) => {
|
|
|
5407
5407
|
}))
|
|
5408
5408
|
});
|
|
5409
5409
|
};
|
|
5410
|
+
var LEAD_SHAPE_LAYER = 100;
|
|
5411
|
+
var isPcbSolidRegionCutout = (shape) => {
|
|
5412
|
+
return shape.fillStyle === "cutout" && shape.layermask !== LEAD_SHAPE_LAYER;
|
|
5413
|
+
};
|
|
5410
5414
|
var getCadPositionZMmFromMetadata = (easyEdaJson) => {
|
|
5411
5415
|
const svgNode = easyEdaJson.packageDetail.dataStr.shape.find(
|
|
5412
5416
|
(shape) => shape.type === "SVGNODE" && shape.svgData.attrs?.uuid
|
|
@@ -5613,7 +5617,7 @@ var convertEasyEdaJsonToCircuitJson = (easyEdaJson, {
|
|
|
5613
5617
|
circuitElements.push(handleVia(v, index));
|
|
5614
5618
|
});
|
|
5615
5619
|
easyEdaJson.packageDetail.dataStr.shape.filter(
|
|
5616
|
-
(shape) => shape.type === "SOLIDREGION" && shape
|
|
5620
|
+
(shape) => shape.type === "SOLIDREGION" && isPcbSolidRegionCutout(shape)
|
|
5617
5621
|
).forEach((sr, index) => {
|
|
5618
5622
|
circuitElements.push(handleCutout(sr, index));
|
|
5619
5623
|
});
|
|
@@ -5665,7 +5669,7 @@ var convertEasyEdaJsonToCircuitJson = (easyEdaJson, {
|
|
|
5665
5669
|
circuitElements.push(
|
|
5666
5670
|
pcb_silkscreen_text.parse({
|
|
5667
5671
|
type: "pcb_silkscreen_text",
|
|
5668
|
-
pcb_silkscreen_text_id:
|
|
5672
|
+
pcb_silkscreen_text_id: "pcb_silkscreen_text_designator_fallback",
|
|
5669
5673
|
pcb_component_id: "pcb_component_1",
|
|
5670
5674
|
text: "{NAME}",
|
|
5671
5675
|
anchor_position: {
|