UNPKG

canvas-size

Version:

Determine the maximum area, height, width, and custom dimensions of an HTML canvas element.

82 lines (81 loc) 2.25 kB
{ "name": "canvas-size", "version": "2.0.0", "description": "Determine the maximum area, height, width, and custom dimensions of an HTML canvas element.", "author": "John Hildenbiddle <http://hildenbiddle.com>", "license": "MIT", "homepage": "https://github.com/jhildenbiddle/canvas-size", "repository": { "type": "git", "url": "git+https://jhildenbiddle@github.com/jhildenbiddle/canvas-size.git" }, "bugs": { "url": "https://github.com/jhildenbiddle/canvas-size/issues" }, "keywords": [ "area", "canvas", "height", "html", "limit", "max", "maximum", "offscreen", "offscreencanvas", "promise", "scale", "size", "test", "web worker", "worker", "width" ], "files": [ "dist" ], "type": "module", "main": "dist/canvas-size.js", "module": "dist/canvas-size.esm.js", "unpkg": "dist/canvas-size.min.js", "lint-staged": { "*.{j,t}s{x}, {c,m}js, json, html, {s}css": [ "eslint", "prettier --write" ], "*.md": [ "markdownlint" ] }, "scripts": { "prepare": "husky && rimraf dist/*.js* && npm run build", "build": "rollup -c", "dev": "npm start & npm run test:watch & npm run serve", "lint": "prettier . --check && eslint . && markdownlint *.md", "lint:fix": "prettier . --write && eslint . --fix", "serve": "node server.js", "start": "rimraf coverage/* && npm run build -- --watch", "test": "rimraf coverage/* && npx playwright test", "test:chrome": "npm test -- --project='chromium'", "test:watch": "npm test -- --ui", "version": "npm run prepare && npm run lint && npm run test" }, "devDependencies": { "@babel/preset-env": "^7.23.9", "@playwright/test": "^1.41.2", "@rollup/plugin-babel": "^6.0.3", "@rollup/plugin-eslint": "^9.0.3", "@rollup/plugin-terser": "^0.4.0", "@types/node": "^20.11.16", "browser-sync": "^3.0.2", "eslint": "^7.32.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-playwright": "^0.22.2", "husky": "^9.0.10", "lint-staged": "^15.2.2", "markdownlint-cli": "^0.39.0", "mergician": "^2.0.0", "prettier": "^3.2.5", "rimraf": "^5.0.5", "rollup": "^2.79.1" } }