UNPKG

alpha-mask-events

Version:

Enable click‑through on transparent regions of images (PNG, WebP, AVIF, GIF, SVG) using alpha masks.

65 lines (64 loc) 1.82 kB
{ "name": "alpha-mask-events", "version": "1.0.1", "description": "Enable click‑through on transparent regions of images (PNG, WebP, AVIF, GIF, SVG) using alpha masks.", "main": "dist/index.cjs.js", "module": "dist/index.esm.js", "browser": "dist/alpha-mask-events.umd.js", "unpkg": "dist/alpha-mask-events.umd.min.js", "jsdelivr": "dist/alpha-mask-events.umd.min.js", "types": "types/index.d.ts", "bin": { "ame-generate-masks": "bin/generate-masks.js" }, "scripts": { "build": "rollup -c", "test": "node --experimental-vm-modules node_modules/.bin/jest", "test:generate-images": "node __tests__/fixtures/create-test-images.js", "lint": "eslint src", "prepublishOnly": "npm run build && npm test" }, "files": [ "dist", "types", "bin" ], "keywords": [ "alpha-mask", "click-through", "transparent", "png", "webp", "avif", "image-transparency", "pointer-events", "transparency-detection" ], "author": "Daniel Morgan <ud4x5w82m@mozmail.com> (https://danielwmorgan.town)", "license": "MIT", "type": "module", "repository": { "type": "git", "url": "git+https://github.com/themorgantown/alpha-mask-events.git" }, "bugs": { "url": "https://github.com/themorgantown/alpha-mask-events/issues" }, "homepage": "https://github.com/themorgantown/alpha-mask-events", "dependencies": { "canvas": "^2.11.2", "yargs": "^17.7.2" }, "devDependencies": { "@eslint/js": "^9.24.0", "@rollup/plugin-commonjs": "^28.0.0", "@rollup/plugin-node-resolve": "^15.0.0", "@rollup/plugin-terser": "^0.4.0", "eslint": "^9.25.1", "globals": "^16.0.0", "jest": "^29.0.0", "jest-environment-jsdom": "^29.7.0", "rollup": "^3.0.0", "typescript-eslint": "^8.30.1" } }