easyeda 0.0.323 → 0.0.325

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.
@@ -11842,6 +11842,7 @@ var generateFootprintTsx = (circuitJson, options = {}) => {
11842
11842
  const smtPads = su(circuitJson).pcb_smtpad.list();
11843
11843
  const vias = su(circuitJson).pcb_via.list();
11844
11844
  const silkscreenPaths = su(circuitJson).pcb_silkscreen_path.list();
11845
+ const silkscreenRects = su(circuitJson).pcb_silkscreen_rect.list();
11845
11846
  const silkscreenTexts = su(circuitJson).pcb_silkscreen_text.list();
11846
11847
  const fabricationNotePaths = su(circuitJson).pcb_fabrication_note_path.list();
11847
11848
  const courtyardOutlines = su(circuitJson).pcb_courtyard_outline.list();
@@ -11911,6 +11912,15 @@ var generateFootprintTsx = (circuitJson, options = {}) => {
11911
11912
  `<silkscreenpath route={${JSON.stringify(silkscreenPath.route)}} />`
11912
11913
  );
11913
11914
  }
11915
+ for (const silkscreenRect of silkscreenRects) {
11916
+ const rotation2 = silkscreenRect.ccw_rotation || 0;
11917
+ const rotationAttr = rotation2 ? ` pcbRotation="${rotation2}deg"` : "";
11918
+ const filledAttr = silkscreenRect.is_filled ? " isFilled" : "";
11919
+ const strokeAttr = silkscreenRect.has_stroke === false ? " hasStroke={false}" : "";
11920
+ elementStrings.push(
11921
+ `<silkscreenrect pcbX="${mmStr(silkscreenRect.center.x)}" pcbY="${mmStr(silkscreenRect.center.y)}" width="${mmStr(silkscreenRect.width)}" height="${mmStr(silkscreenRect.height)}" strokeWidth="${mmStr(silkscreenRect.stroke_width)}"${filledAttr}${strokeAttr}${rotationAttr} />`
11922
+ );
11923
+ }
11914
11924
  for (const silkscreenText of silkscreenTexts) {
11915
11925
  const isRefDes = silkscreenText.text === "{NAME}";
11916
11926
  const textValue = isRefDes ? JSON.stringify("{NAME}") : JSON.stringify(silkscreenText.text);