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

New Canvas 2D API #246

Open
3 of 4 tasks
yisibl opened this issue Apr 30, 2021 · 5 comments
Open
3 of 4 tasks

New Canvas 2D API #246

yisibl opened this issue Apr 30, 2021 · 5 comments

Comments

@yisibl
Copy link
Collaborator

yisibl commented Apr 30, 2021

https://groups.google.com/a/chromium.org/g/blink-dev/c/bEgFQrTsDso

const canvas = document.createElement('canvas');
const ctx = canvas.getContext('2d');

ctx.fillRoundRect(10, 10, 50, 50, [10]); // Chrome 中当前实现是 ctx.roundRect()
ctx.fillRoundRect(100, 10, 50, 50, [10, 10, 0, 10]);
@yisibl
Copy link
Collaborator Author

yisibl commented May 14, 2021

@yisibl
Copy link
Collaborator Author

yisibl commented May 14, 2021

CanvasRenderingContext2D.createConicGradient 已经在 Firefox 86 中初步实现,需要开启 canvas.createConicGradient.enabled flag

浏览器实施进度

HTML 规范:whatwg/html#6661

@controversial
Copy link

Are there any plans to support roundRect, support for which landed in Chrome in February?

@Brooooooklyn
Copy link
Owner

@controversial see here #601

@yisibl
Copy link
Collaborator Author

yisibl commented Aug 20, 2023

https://mail.google.com/mail/u/0/#inbox/FMfcgzGtwgjqpRQNjGdpCrQTWXMKWjfq

  • alphabeticBaseline
  • hangingBaseline
  • ideographicBaseline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants