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

Implement pcbOffsetX and pcbOffsetY in <board /> #485

Closed
wants to merge 3 commits into from

Conversation

techmannih
Copy link
Contributor

@techmannih techmannih commented Jan 6, 2025

fixes #484
/claim #484

@tscircuitbot
Copy link
Contributor

Size Report

Bundle Size

  • Base branch size: 668K
  • PR branch size: 668K
  • Difference: 0

Install Size

  • Base branch size: 9.22mb
  • PR branch size: 9.27mb
  • Difference: +.05

Full Howfat Output (PR Branch)

@tscircuit/[email protected] (26 deps, 9.27mb, 1011 files, ©undefined)
╭─────────────────────────────────────────┬──────────────┬───────────┬───────┬───────────┬──────────────┬───────────╮
│ Name                                    │ Dependencies │      Size │ Files │ Native    │ License      │ Deprec    │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ @lume/[email protected]                        │              │   121.6kb │    31 │           │ BSD-3-Clause │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ @tscircuit/[email protected]           │            2 │ 1010.98kb │    73 │           │ ISC          │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ @tscircuit/[email protected]   │              │  249.72kb │    14 │           │              │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ @tscircuit/[email protected]             │              │   23.07kb │    26 │           │              │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ @tscircuit/[email protected]                │              │  716.04kb │    53 │           │ ISC          │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ @tscircuit/[email protected]   │            3 │  806.89kb │    92 │           │              │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ @tscircuit/[email protected]             │            1 │  329.98kb │    31 │           │ ISC          │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected] │            1 │   54.54kb │    27 │           │              │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected]                    │            2 │    1.31mb │    68 │           │ ISC          │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected]                    │              │    4.61kb │     6 │           │              │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected]                            │              │   10.69kb │    11 │           │ MIT          │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected]                   │              │   11.08kb │    17 │           │ MIT          │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected]                 │            5 │    1.07mb │    56 │           │ MIT          │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected]                            │            2 │  331.04kb │    33 │           │ MIT          │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected]               │              │     1.1mb │   163 │           │              │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected]            │              │  430.45kb │    56 │           │ MIT          │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected]                              │              │  677.75kb │    52 │           │ MIT          │           │
╰─────────────────────────────────────────┴──────────────┴───────────┴───────┴───────────┴──────────────┴───────────╯

(aside)

@tscircuitbot
Copy link
Contributor

Size Report

Bundle Size

  • Base branch size: 668K
  • PR branch size: 668K
  • Difference: 0

Install Size

  • Base branch size: 9.22mb
  • PR branch size: 9.31mb
  • Difference: +.09

Full Howfat Output (PR Branch)

@tscircuit/[email protected] (26 deps, 9.31mb, 1018 files, ©undefined)
╭─────────────────────────────────────────┬──────────────┬───────────┬───────┬───────────┬──────────────┬───────────╮
│ Name                                    │ Dependencies │      Size │ Files │ Native    │ License      │ Deprec    │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ @lume/[email protected]                        │              │   121.6kb │    31 │           │ BSD-3-Clause │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ @tscircuit/[email protected]           │            2 │ 1010.98kb │    73 │           │ ISC          │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ @tscircuit/[email protected]   │              │  249.72kb │    14 │           │              │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ @tscircuit/[email protected]             │              │   23.07kb │    26 │           │              │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ @tscircuit/[email protected]                │              │  716.04kb │    53 │           │ ISC          │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ @tscircuit/[email protected]   │            3 │  806.89kb │    92 │           │              │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ @tscircuit/[email protected]             │            1 │  329.98kb │    31 │           │ ISC          │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected] │            1 │   54.54kb │    27 │           │              │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected]                    │            2 │    1.31mb │    68 │           │ ISC          │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected]                    │              │    4.61kb │     6 │           │              │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected]                            │              │   10.69kb │    11 │           │ MIT          │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected]                   │              │   11.08kb │    17 │           │ MIT          │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected]                 │            3 │    1.05mb │    43 │           │ MIT          │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected]                            │            2 │  331.04kb │    33 │           │ MIT          │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected]               │              │     1.1mb │   163 │           │              │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected]            │              │  430.45kb │    56 │           │ MIT          │           │
├─────────────────────────────────────────┼──────────────┼───────────┼───────┼───────────┼──────────────┼───────────┤
│ [email protected]                              │              │  677.75kb │    52 │           │ MIT          │           │
╰─────────────────────────────────────────┴──────────────┴───────────┴───────┴───────────┴──────────────┴───────────╯

(aside)

Comment on lines 345 to +347
outline?: Point[]
}
type PcbBoardWithOffsets = PcbBoard & {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
outline?: Point[]
}
type PcbBoardWithOffsets = PcbBoard & {
outline?: Point[]

btw this file is supposed to be replaced with tscircuit plop (npm install -g @tscircuit/plop then run plop)

> & {
pcbOffsetX: number
pcbOffsetY: number
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nooooo no other files do this, why would you do this pattern?

Copy link
Contributor

@seveibar seveibar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no test, and a bunch of irrelevant changes,

@techmannih read over your work, make sure there aren't irrelevant changes, check the patterns and always start by writing a test that makes sure YOU understand what you're supposed to be implementing

with no test it's not worth requesting a review. I've seen a couple of these at this point from you and it takes up my time, this one is really really bad though. Why wouldn't you write a test? Write a snapshot PCB test, that will demonstrate to you that it doesn't work.

@techmannih techmannih closed this Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement <board /> outlineOffsetX and outlineOffsetY
3 participants