Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Generic Component Builder Test #3

@seveibar

Description

@seveibar
  • We must make sure the builder supports the equivalent of this tsx syntax
  <component>
    {pins.map((label, i) => (
      <>
        <platedhole
          net={label}
          x={`${i * 2.5}mm`}
          y={0}
          outerDiameter="2mm"
          holeDiameter="1mm"
        />
        <port port net={label} x="-0.25in" y={`${i * 0.25}in`} />
        <schematicdrawing>
          <box w="0.5in" h="1in" x="0" y="0" />
          {pins.map((label, i) => (
            <line
              x1={"-0.25in"}
              y1={`${0.1 + 0.2 * i}in`}
              x2={"0in"}
              y2={`${0.1 + 0.2 * i}in`}
            />
          ))}
        </schematicdrawing>
      </>
    ))}
    </component>

The work for this is in the generic-component-builder.test.ts

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions