A partial archive of discourse.wicg.io as of Saturday February 24, 2024.

Canvas Path2D Bounds

MK20
2021-09-27

It would be very valuable to have the possibility of obtaining the BOUNDING BOX of a path2D. Currently when we draw a path2d, we must manually calculate these limits, it would be very efficient and practical for them to be calculated automatically.

example var p = new Path2D(“M…”); p.width p.height p.x p.y