UNPKG

d3-dag

Version:

Layout algorithms for visualizing directed acylic graphs.

244 lines 6.37 kB
{ "name": "d3-dag", "version": "1.1.0", "description": "Layout algorithms for visualizing directed acylic graphs.", "keywords": [ "d3", "d3-module", "layout", "dag", "infovis" ], "repository": { "type": "git", "url": "https://github.com/erikbrinkman/d3-dag.git" }, "author": { "name": "Erik Brinkman", "email": "erik.brinkman@gmail.com" }, "license": "MIT", "module": "bundle/d3-dag.esm.min.js", "types": "dist/index.d.ts", "main": "bundle/d3-dag.cjs.min.js", "unpkg": "bundle/d3-dag.iife.min.js", "files": [ "/bundle/*.js", "/dist/**/*.d.ts" ], "scripts": { "fmt": "pnpify prettier --write --cache '{src,test-d}/**/*.ts' '*.json' 'examples/*.json' bundle.test.ts bundle.mjs flow.mjs", "lint:ts": "tsc", "lint:es": "eslint --cache src/**/*.ts", "lint:doc": "typedoc --emit none", "lint": "yarn lint:ts && yarn lint:doc && yarn lint:es", "build:ts": "tsc -p tsconfig.build.json", "build:flow": "node flow.mjs --cache", "build:bundle": "rm -rf bundle && node bundle.mjs", "build": "yarn build:ts && yarn build:bundle", "test:jest": "jest src", "test:cov": "yarn test:jest --coverage", "test:bundle": "yarn build:bundle && jest bundle.test.ts", "test": "yarn test:cov && yarn test:bundle", "prepack": "jest --clear-cache && rm -rf dist bundle && yarn lint && yarn test && yarn build", "doc": "typedoc", "doc:watch": "typedoc --watch" }, "dependencies": { "d3-array": "^3.2.4", "javascript-lp-solver": "0.4.24", "quadprog": "^1.6.1", "stringify-object": "^5.0.0" }, "devDependencies": { "@babel/core": "^7.23.0", "@babel/preset-env": "^7.22.20", "@babel/preset-typescript": "^7.23.0", "@babel/types": "^7.23.0", "@types/d3-array": "^3.0.8", "@types/jest": "^29.5.5", "@types/node": "^20.7.2", "@types/stringify-object": "^4.0.2", "@typescript-eslint/eslint-plugin": "^6.7.3", "@typescript-eslint/parser": "^6.7.3", "@yarnpkg/pnpify": "^4.0.0-rc.52", "babel-jest": "^29.7.0", "chalk": "5.3.0", "esbuild": "^0.19.4", "esbuild-plugin-ignore": "^1.1.1", "eslint": "^8.50.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-jest": "^27.4.2", "eslint-plugin-spellcheck": "^0.0.20", "eslint-plugin-tsdoc": "^0.2.17", "flowgen": "^1.21.0", "glob": "^10.3.10", "jest": "^29.7.0", "prettier": "^3.0.3", "prettier-plugin-organize-imports": "^3.2.3", "read-package-json": "^7.0.0", "typedoc": "^0.25.1", "typescript": "^5.2.2" }, "prettier": { "plugins": [ "prettier-plugin-organize-imports" ] }, "jest": { "transformIgnorePatterns": [ "node_modules/(?!(d3-array|internmap|stringify-object|is-regexp|is-obj|get-own-enumerable-keys)/)" ] }, "eslintConfig": { "root": true, "parser": "@typescript-eslint/parser", "parserOptions": { "project": [ "./tsconfig.json" ] }, "plugins": [ "@typescript-eslint", "jest", "spellcheck", "eslint-plugin-tsdoc" ], "extends": [ "eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/recommended-requiring-type-checking", "plugin:jest/recommended", "prettier" ], "env": { "node": true }, "rules": { "no-console": "error", "@typescript-eslint/no-unnecessary-type-assertion": "error", "tsdoc/syntax": "error", "@typescript-eslint/no-inferrable-types": "off", "@typescript-eslint/no-non-null-assertion": "off", "@typescript-eslint/no-unused-vars": [ "error", { "varsIgnorePattern": "^_+$" } ], "prefer-const": [ "error", { "destructuring": "all" } ], "no-warning-comments": [ "error", { "terms": [ "fixme" ], "location": "anywhere" } ], "spellcheck/spell-checker": [ "error", { "identifiers": false, "skipWords": [ "Awan", "Azura", "Emden", "Flowgen", "Flowtype", "Gansner", "Noam", "accessor", "accessors", "acyclic", "advisee", "aggregator", "aggregators", "bidirectionalizes", "bigrams", "bottomup", "coffman", "coffmangraham", "contravariant", "coord", "covariant", "curviness", "customizable", "decrement", "decross", "decrossed", "decrossing", "decrossings", "decycle", "dedup", "deserializing", "directionally", "ecode", "esnext", "grafo", "graphvis", "hydrator", "idescendants", "iife", "ilinks", "indeg", "infeasible", "initializers", "inits", "invariants", "iroots", "isplit", "iter", "iterables", "javascript", "lagrangian", "laidout", "longestpath", "minimizers", "multidag", "multigraph", "multimap", "multitree", "nchild", "nchildren", "negatable", "outdeg", "parametrize", "quadprog", "radix", "readonly", "rect", "replacer", "rescale", "rescaled", "resized", "resizing", "suboptimal", "sugi", "sugify", "sugiyama", "tabularesque", "topdown", "transpiled", "transpiling", "twolayer", "unordered", "unranked", "unsugify", "vals", "vert", "verticality", "zherebko" ], "minLength": 4 } ] } }, "packageManager": "yarn@3.6.3" }