UNPKG

pixi-viewport

Version:

A highly configurable viewport/2D camera designed to work with pixi.js. Features include dragging, pinch-to-zoom, mouse wheel zooming, decelerated dragging, follow target, snap to point, snap to zoom, clamping, bouncing on edges, and move on mouse edges.

82 lines (81 loc) 2.74 kB
{ "name": "pixi-viewport", "version": "6.0.3", "description": "A highly configurable viewport/2D camera designed to work with pixi.js. Features include dragging, pinch-to-zoom, mouse wheel zooming, decelerated dragging, follow target, snap to point, snap to zoom, clamping, bouncing on edges, and move on mouse edges.", "main": "./dist/pixi_viewport.umd.cjs", "module": "./dist/pixi_viewport.js", "type": "module", "types": "./dist/index.d.ts", "directories": { "doc": "docs" }, "files": [ "dist" ], "scripts": { "dev": "vite dev", "test": "floss --path test", "coverage": "nyc mocha", "build": "vite build --config vite.build.ts && node ./scripts/append-mixins.js", "docs": "vite build && rimraf ./js && tsc -p ./tsconfig-docs.json --outDir js && rimraf ./docs/dist/jsdoc/ && jsdoc -c .jsdoc.json && node ./scripts/copy", "docs:serve": "vite preview --outDir dist/", "upgrade": "npm run upgrade-interactive --latest", "prepublishOnly": "npm run build && npm run docs", "lint": "eslint . --ignore-path .gitignore", "lint:fix": "eslint . --ignore-path .gitignore --fix", "prepare": "husky install && npm run build", "pre-commit": "lint-staged", "prepack": "npm run build" }, "repository": { "type": "git", "url": "git+https://github.com/davidfig/pixi-viewport.git" }, "keywords": [ "PIXI", "pixi.js", "viewport", "zoom", "scroll", "pinch", "stage", "bounce", "decelerate" ], "author": "David Figatner", "license": "MIT", "bugs": { "url": "https://github.com/davidfig/pixi-viewport/issues" }, "homepage": "https://github.com/davidfig/pixi-viewport#readme", "peerDependencies": { "pixi.js": ">=8" }, "devDependencies": { "@pixi/eslint-config": "5.1.0", "@types/node": "^22.9.0", "@types/penner": "0.1.3", "@typescript-eslint/eslint-plugin": "5.62.0", "@typescript-eslint/parser": "5.62.0", "chai": "4.3.4", "clicked": "4.0.3", "dom-ease": "0.9.3", "electron": "20.0.2", "eslint": "8.57.1", "floss": "5.0.1", "fs-extra": "10.0.0", "husky": "8.0.3", "jsdoc": "4.0.4", "lint-staged": "13.1.0", "pixi-ease": "3.0.7", "pixi.js": "8.5.2", "raf": "3.4.1", "typescript": "5.6.2", "vite": "4.4.10", "vite-plugin-dts": "3.6.0", "yy-counter": "2.1.0", "yy-fps": "2.0.1", "yy-jsdoc-template": "1.3.0", "yy-random": "1.10.2" } }