UNPKG

@antv/x6

Version:

JavaScript diagramming library that uses SVG and HTML for rendering

119 lines 3.16 kB
{ "name": "@antv/x6", "version": "3.1.7", "description": "JavaScript diagramming library that uses SVG and HTML for rendering", "main": "lib/index.js", "module": "es/index.js", "unpkg": "dist/x6.min.js", "jsdelivr": "dist/x6.min.js", "types": "lib/index.d.ts", "type": "module", "files": [ "dist", "es", "lib", "src" ], "keywords": [ "graph", "diagram", "flowchart", "uml", "x6-editor", "editor", "svg", "x6", "antv" ], "dependencies": { "dom-align": "^1.12.4", "lodash-es": "^4.17.15", "mousetrap": "^1.6.5", "utility-types": "^3.10.0" }, "devDependencies": { "@biomejs/biome": "^2.2.2", "@commitlint/config-conventional": "^19.8.1", "@napi-rs/canvas": "^0.1.77", "@rollup/plugin-commonjs": "^28.0.6", "@rollup/plugin-json": "^6.1.0", "@rollup/plugin-node-resolve": "^16.0.1", "@rollup/plugin-terser": "^0.4.4", "@testing-library/jest-dom": "^6.7.0", "@types/lodash-es": "^4.17.12", "@types/mousetrap": "^1.6.11", "@types/node": "^24.3.0", "@vitest/coverage-v8": "3.2.4", "jsdom": "^24.0.0", "limit-size": "^0.1.4", "lint-staged": "^16.1.5", "npm-run-all": "^4.1.5", "rimraf": "^6.0.1", "rollup": "^4.48.1", "rollup-plugin-typescript2": "^0.35.0", "rollup-plugin-visualizer": "^5.14.0", "sinon": "^21.0.0", "svgo": "^4.0.0", "tslib": "^2.8.1", "typescript": "^5.9.2", "vitest": "^3.2.4" }, "limit-size": [ { "path": "dist/x6.min.js", "limit": "200 Kb", "gzip": true }, { "path": "dist/x6.min.js", "limit": "600 Kb", "gzip": false } ], "lint-staged": { "*.{ts,js,json}": [ "biome check --write", "biome format --write", "biome lint" ] }, "commitlint": { "extends": [ "@commitlint/config-conventional" ] }, "author": "antv", "license": "MIT", "homepage": "https://x6.antv.antgroup.com/tutorial/about", "bugs": { "url": "https://github.com/antvis/x6/issues" }, "engines": { "node": ">=20.0.0" }, "repository": { "type": "git", "url": "https://github.com/antvis/x6.git" }, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org" }, "scripts": { "prestart:examples": "node ./scripts/check-node-version.js", "start:examples": "pnpm run build:esm && cd examples && pnpm run start", "build:esm": "rimraf es && tsc --module esnext --target es6 --outDir ./es", "build:cjs": "rimraf lib && tsc --module commonjs --target es6 --outDir ./lib", "build:umd": "rimraf dist && rollup -c && npm run size", "size": "limit-size", "build": "run-p -s build:*", "pretest:watch": "node ./scripts/check-node-version.js", "test:watch": "vitest", "pretest": "node ./scripts/check-node-version.js", "test": "vitest --watch=false", "pretest:coverage": "node ./scripts/check-node-version.js", "test:coverage": "vitest run --coverage --watch=false", "prestart:site": "node ./scripts/check-node-version.js", "start:site": "cd site && pnpm run start" } }