{"library":"path2d-polyfill","type":"library","category":null,"description":"path2d-polyfill is a JavaScript library designed to provide comprehensive polyfills for the Canvas API's `Path2D` interface and the `CanvasRenderingContext2D.roundRect` method in environments where they are natively unsupported. Its primary function is to extend the global `window` object, making these modern canvas features available across a wider range of browsers, ensuring consistent rendering. The current stable version is 3.2.1. Releases appear to follow an on-demand cadence, often co-releasing with its internal `path2d` dependency, indicating active maintenance. Key differentiators include comprehensive support for various `Path2D` methods (such as `arc`, `ellipse`, `bezierCurveTo`), and advanced `roundRect` functionality, including support for `DOMPoint` objects or arrays of radii for elliptical and mixed corners, which was introduced in version 3.2.0. This makes it a crucial tool for simplifying canvas development by abstracting away browser inconsistencies for advanced shape drawing.","language":"javascript","status":"active","version":"3.2.1","tags":["javascript","Path2D","polyfill","canvas","roundRect"],"install":[{"cmd":"npm install path2d-polyfill","imports":["<script src=\"https://cdn.jsdelivr.net/npm/path2d-polyfill/dist/path2d-polyfill.min.js\"></script>","ctx.roundRect(x, y, width, height, radii);"]},{"cmd":"yarn add path2d-polyfill","imports":[]},{"cmd":"pnpm add path2d-polyfill","imports":[]}],"homepage":null,"github":"https://github.com/nilzona/path2d-polyfill","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/path2d-polyfill","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/path2d-polyfill/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}