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

Opacity should be percentage instead of exact value. #61

Open
sharu725 opened this issue Dec 21, 2024 · 0 comments
Open

Opacity should be percentage instead of exact value. #61

sharu725 opened this issue Dec 21, 2024 · 0 comments

Comments

@sharu725
Copy link

sharu725 commented Dec 21, 2024

attachEvent('addArrow4Btn', 'click', () => {
  arrow4Id = board.addArrow({
    color: 'orange',
    end: 'f3',
    opacity: 100,
    size: 'large',
    start: 'g1'
  })
})

At the moment, opacity will be set to 100 in CSS which is not valid. It should be set to 1.

But an another example uses exact value

attachEvent('addCircle5Btn', 'click', () => {
  circle5Id = board.addCircle({
    color: 'orange',
    square: 'h1',
    opacity: 0.5,
    size: 1.2
  })
  console.log('added Circle 5 with id:', circle5Id)
})
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