UNPKG

fabric

Version:

Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.

172 lines (171 loc) 5.47 kB
{ "name": "fabric", "description": "Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.", "homepage": "http://fabricjs.com/", "version": "6.7.0", "author": "Juriy Zaytsev <kangax@gmail.com>", "contributors": [ { "name": "Andrea Bogazzi", "email": "andreabogazzi79@gmail.com", "url": "https://github.com/asturur" }, { "name": "Shachar Nencel", "email": "shacharnen@gmail.com", "url": "https://github.com/ShaMan123" }, { "name": "Steve Eberhardt", "email": "melchiar2@gmail.com", "url": "https://github.com/melchiar" } ], "keywords": [ "canvas", "graphic", "graphics", "SVG", "node-canvas", "parser", "HTML5", "object model" ], "repository": { "type": "git", "url": "https://github.com/fabricjs/fabric.js" }, "bugs": { "url": "https://github.com/fabricjs/fabric.js/issues" }, "license": "MIT", "scripts": { "docs": "typedoc", "cli": "node ./scripts/index.mjs", "sandboxscript": "node ./scripts/sandbox.mjs", "build": "npm run cli -- build", "build:fast": "npm run build -- -f", "dev": "npm run cli -- dev", "start": "npm run sandboxscript -- start", "export": "npm run cli -- website export", "build-tests": "rollup -c ./rollup.test.config.js", "test:jest": "jest", "test": "npm run cli -- test", "sandbox": "npm run sandboxscript -- sandbox", "test:unit-browser": "npm run cli -- test --suite unit --launch --context chrome", "test:visual-browser": "npm run test -- -s visual -p 8081 -l -c chrome firefox", "test:coverage": "nyc --silent qunit test/node_test_setup.js test/lib test/unit", "test:visual:coverage": "nyc --silent --no-clean qunit test/node_test_setup.js test/lib test/visual", "test:jest:coverage": "jest --coverage=true", "test:jest:coverage:watch": "jest --coverage=true --watch", "coverage:merge": "nyc merge coveragefiles .nyc_output/merged-coverage.json", "local-server": "http-server ./ -d=false", "test:e2e": "npx playwright test --headed", "coverage:report": "nyc report --reporter=lcov --reporter=text", "lint": "eslint src extensions", "prettier:check": "prettier --check .", "prettier:write": "prettier --write .", "babel-constants": "babel --no-babelrc src/constants.ts --extensions '.ts' --out-dir dist/src/ --config-file ./.babelrcAlt --plugins=babel-plugin-import-json-value", "babel-src": "babel --no-babelrc src --extensions '.ts' --ignore 'src/constants.ts' --out-dir dist/src --config-file ./.babelrcAlt" }, "optionalDependencies": { "canvas": "^2.11.2", "jsdom": "^20.0.1" }, "devDependencies": { "@babel/cli": "^7.22.9", "@babel/core": "^7.22.9", "@babel/preset-env": "^7.22.9", "@babel/preset-typescript": "^7.22.5", "@playwright/test": "^1.31.2", "@rollup/plugin-babel": "^6.0.3", "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-terser": "^0.4.1", "@rollup/plugin-typescript": "^11.1.1", "@types/fs-extra": "^9.0.13", "@types/jest": "^29.5.2", "@types/jsdom": "^20.0.1", "@types/lodash": "^4.14.180", "@types/mocha": "^10.0.1", "@types/node": "^17.0.21", "@typescript-eslint/eslint-plugin": "^8.1.0", "@typescript-eslint/parser": "^8.1.0", "axios": "^0.27.2", "babel-plugin-import-json-value": "^0.1.2", "babel-plugin-transform-imports": "git+https://git@github.com/fabricjs/babel-plugin-transform-imports.git", "busboy": "^1.6.0", "chalk": "^2.4.1", "commander": "^9.1.0", "eslint": "^9.9.0", "eslint-config-prettier": "^9.1.0", "fireworm": "^0.7.2", "fs-extra": "^10.0.1", "fuzzy": "^0.1.3", "http-server": "^14.1.1", "inquirer": "^8.2.1", "inquirer-checkbox-plus-prompt": "^1.0.1", "jest": "^29.7.0", "jest-environment-jsdom": "^29.5.0", "kill-port": "^2.0.1", "micromatch": "^4.0.5", "moment": "^2.29.1", "nyc": "^17.x", "pixelmatch": "^4.0.2", "prettier": "^3.3.1", "ps-list": "^8.1.0", "qunit": "^2.24.1", "rollup": "^4.20.0", "semver": "^7.3.8", "source-map-support": "^0.5.21", "testem": "^3.8.0", "tslib": "^2.6.3", "typescript": "^5.5.4", "v8-to-istanbul": "^9.3.0" }, "engines": { "node": ">=16.20.0" }, "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "typesVersions": { ">=4.2": { "*": [ "dist/index.d.ts" ], "node": [ "dist/index.node.d.ts" ] } }, "sideEffects": false, "exports": { ".": { "import": "./dist/index.min.mjs", "require": "./dist/index.min.js", "default": "./dist/index.min.js", "node": null, "types": "./dist/index.d.ts" }, "./es": { "import": "./dist/fabric.min.mjs", "require": null, "default": null, "node": null, "types": "./dist/index.d.ts" }, "./node": { "import": "./dist/index.node.mjs", "require": "./dist/index.node.cjs", "default": "./dist/index.node.cjs", "node": "./dist/index.node.cjs", "types": "./dist/index.node.d.ts" }, "./extensions": { "import": "./dist-extensions/index.mjs", "require": null, "default": "./dist-extensions/fabric-extensions.min.js", "node": "./dist-extensions/index.mjs", "types": "./dist-extensions/extensions/index.d.ts" } } }