Libraries
Matter.js physics
matter@0.20.0
Lightweight 2D physics (no WASM).
- Version
- 0.20.0
- License
- MIT
- Size
- 26 KB
Add it
Declare it in prototir.json at the root of your ZIP. Prototir checks the
version at upload and adds it to the page's import map.
prototir.json
{
"modules": [
"matter@0.20.0"
]
}Then import it by name, from 'matter', as you would from npm.
Reference
Prototir serves the library unchanged, so its own documentation applies.
Matter.js physics documentationVersions
Every version stays available, so a prototype keeps working exactly as published. Declare the one you tested with.
matter@0.20.0
As JSON: /modules/matter.json. Source: npm:matter-js (esbuild-bundled — package ships UMD/CJS only, no ESM build; see tools/bundle-vendor.mjs).