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

How should bounds correspond to the screen? #51

Open
ShaoGongBra opened this issue May 12, 2024 · 0 comments
Open

How should bounds correspond to the screen? #51

ShaoGongBra opened this issue May 12, 2024 · 0 comments

Comments

@ShaoGongBra
Copy link

ShaoGongBra commented May 12, 2024

{
  "boundingCenterX": 261,
  "boundingCenterY": 364,
  "boundingExactCenterX": 261.5,
  "boundingExactCenterY": 364.5,
  "height": 275,
  "width": 275,
  "x": 129.75,
  "y": 271.75
}
<Column
    key={index}
    className='absolute'
    style={{
      width: item.bounds.width,
      height: item.bounds.height,
      left: item.bounds.boundingCenterX - item.bounds.width / 2,
      top: item.bounds.boundingCenterY - item.bounds.height / 2,
      // left: item.bounds.x,
      // top: item.bounds.y,
      borderWidth: px(4),
      borderColor: '#999'
    }}
  />

This writing style doesn't seem to correspond to anything

@ShaoGongBra ShaoGongBra changed the title How should boundaries correspond to the screen? How should bounds correspond to the screen? May 12, 2024
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