Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic Component Builder Test #3

Open
seveibar opened this issue Oct 31, 2022 · 0 comments
Open

Generic Component Builder Test #3

seveibar opened this issue Oct 31, 2022 · 0 comments
Assignees

Comments

@seveibar
Copy link
Contributor

seveibar commented Oct 31, 2022

  • 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

@seveibar seveibar self-assigned this Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant