From 2d0566c331f38c91cf8f247567d081c9498a0714 Mon Sep 17 00:00:00 2001 From: elsouza1985 Date: Mon, 11 Sep 2023 19:00:58 -0300 Subject: [PATCH 1/3] Update package.json --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 40d4999..6a5f59c 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { - "name": "@latticehr/react-org-chart", + "name": "@elsouza/react-org-chart", "version": "0.1.1", "description": "Simple, high-performance react component for d3 org chart", - "repository": "https://github.com/latticehr/react-org-chart.git", + "repository": "https://github.com/elsouza1985/react-org-chart.git", "main": "dist/index.js", "directories": { "example": "src/examples" From 1e73dcc25152413e8a550077c6735910e74b04e5 Mon Sep 17 00:00:00 2001 From: elsouzaF1 Date: Mon, 11 Sep 2023 22:14:46 -0300 Subject: [PATCH 2/3] fix layouts --- package.json | 546 +++++++++++++++++++++++++++++++++++++++- src/chart/config.js | 12 +- src/chart/render.js | 72 +++--- src/defs/avatar-clip.js | 8 +- src/examples/react.js | 2 +- webpack.config.js | 27 +- webpack.dev.config.js | 75 +++--- 7 files changed, 631 insertions(+), 111 deletions(-) diff --git a/package.json b/package.json index 6a5f59c..75fb7a0 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,14 @@ { - "name": "@elsouza/react-org-chart", - "version": "0.1.1", + "name": "@elsouza1985/react-org-chart", + "version": "1.0.1", "description": "Simple, high-performance react component for d3 org chart", - "repository": "https://github.com/elsouza1985/react-org-chart.git", + "repository": { + "type": "git", + "url": "git+https://github.com/elsouza1985/react-org-chart.git" + }, "main": "dist/index.js", "directories": { - "example": "src/examples" + "example": "examples" }, "files": [ "dist/index.js" @@ -32,8 +35,8 @@ "react": "^16.2.0", "react-dom": "^16.2.0", "rimraf": "^2.6.2", - "webpack": "^4.0.1", - "webpack-cli": "^2.0.10", + "webpack": "^4.41.2", + "webpack-cli": "^3.1.1", "webpack-dev-server": "^3.1.0" }, "peerDependencies": { @@ -46,5 +49,536 @@ "env", "stage-2" ] + }, + "bugs": { + "url": "https://github.com/elsouza1985/react-org-chart/issues" + }, + "homepage": "https://github.com/elsouza1985/react-org-chart#readme", + "dependencies": { + "accepts": "^1.3.8", + "ajv-keywords": "^3.5.2", + "acorn": "^6.4.2", + "ajv-errors": "^1.0.1", + "ajv": "^6.12.6", + "ansi-colors": "^3.2.4", + "ansi-html-community": "^0.0.8", + "ansi-regex": "^2.1.1", + "ansi-styles": "^2.2.1", + "aproba": "^1.2.0", + "arr-diff": "^4.0.0", + "anymatch": "^3.1.3", + "arr-flatten": "^1.1.0", + "array-flatten": "^2.1.2", + "array-union": "^1.0.2", + "array-unique": "^0.3.2", + "array-uniq": "^1.0.3", + "arr-union": "^3.1.0", + "assert": "^1.5.1", + "asn1.js": "^5.4.1", + "async": "^2.6.4", + "assign-symbols": "^1.0.0", + "atob": "^2.1.2", + "async-each": "^1.0.6", + "babel-code-frame": "^6.26.0", + "babel-generator": "^6.26.1", + "babel-helper-bindify-decorators": "^6.24.1", + "async-limiter": "^1.0.1", + "babel-helper-builder-binary-assignment-operator-visitor": "^6.24.1", + "babel-helper-call-delegate": "^6.24.1", + "babel-helper-define-map": "^6.26.0", + "babel-helper-explode-class": "^6.24.1", + "babel-helper-function-name": "^6.24.1", + "babel-helper-explode-assignable-expression": "^6.24.1", + "babel-helper-hoist-variables": "^6.24.1", + "babel-helper-regex": "^6.26.0", + "babel-helper-get-function-arity": "^6.24.1", + "babel-helper-remap-async-to-generator": "^6.24.1", + "babel-helper-optimise-call-expression": "^6.24.1", + "babel-messages": "^6.23.0", + "babel-helper-replace-supers": "^6.24.1", + "babel-plugin-syntax-async-functions": "^6.13.0", + "babel-helpers": "^6.24.1", + "babel-plugin-check-es2015-constants": "^6.22.0", + "babel-plugin-syntax-async-generators": "^6.13.0", + "babel-plugin-syntax-decorators": "^6.13.0", + "babel-plugin-syntax-class-properties": "^6.13.0", + "babel-plugin-syntax-exponentiation-operator": "^6.13.0", + "babel-plugin-syntax-dynamic-import": "^6.18.0", + "babel-plugin-transform-async-generator-functions": "^6.24.1", + "babel-plugin-syntax-object-rest-spread": "^6.13.0", + "babel-plugin-syntax-trailing-function-commas": "^6.22.0", + "babel-plugin-transform-async-to-generator": "^6.24.1", + "babel-plugin-transform-es2015-block-scoped-functions": "^6.22.0", + "babel-plugin-transform-class-properties": "^6.24.1", + "babel-plugin-transform-es2015-arrow-functions": "^6.22.0", + "babel-plugin-transform-decorators": "^6.24.1", + "babel-plugin-transform-es2015-block-scoping": "^6.26.0", + "babel-plugin-transform-es2015-classes": "^6.24.1", + "babel-plugin-transform-es2015-for-of": "^6.23.0", + "babel-plugin-transform-es2015-computed-properties": "^6.24.1", + "babel-plugin-transform-es2015-destructuring": "^6.23.0", + "babel-plugin-transform-es2015-function-name": "^6.24.1", + "babel-plugin-transform-es2015-duplicate-keys": "^6.24.1", + "babel-plugin-transform-es2015-literals": "^6.22.0", + "babel-plugin-transform-es2015-modules-commonjs": "^6.26.2", + "babel-plugin-transform-es2015-modules-umd": "^6.24.1", + "babel-plugin-transform-es2015-modules-systemjs": "^6.24.1", + "babel-plugin-transform-es2015-object-super": "^6.24.1", + "babel-plugin-transform-es2015-modules-amd": "^6.24.1", + "babel-plugin-transform-es2015-spread": "^6.22.0", + "babel-plugin-transform-es2015-shorthand-properties": "^6.24.1", + "babel-plugin-transform-es2015-parameters": "^6.24.1", + "babel-plugin-transform-es2015-sticky-regex": "^6.24.1", + "babel-plugin-transform-es2015-unicode-regex": "^6.24.1", + "babel-plugin-transform-exponentiation-operator": "^6.24.1", + "babel-plugin-transform-es2015-template-literals": "^6.22.0", + "babel-plugin-transform-es2015-typeof-symbol": "^6.23.0", + "babel-plugin-transform-regenerator": "^6.26.0", + "babel-plugin-transform-strict-mode": "^6.24.1", + "babel-register": "^6.26.0", + "babel-plugin-transform-object-rest-spread": "^6.26.0", + "babel-preset-stage-3": "^6.24.1", + "babel-template": "^6.26.0", + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "babel-traverse": "^6.26.0", + "babylon": "^6.18.0", + "balanced-match": "^1.0.2", + "base": "^0.11.2", + "batch": "^0.6.1", + "base64-js": "^1.5.1", + "big.js": "^5.2.2", + "binary-extensions": "^2.2.0", + "bluebird": "^3.7.2", + "bn.js": "^5.2.1", + "body-parser": "^1.20.1", + "bonjour": "^3.5.0", + "braces": "^2.3.2", + "brace-expansion": "^1.1.11", + "brorand": "^1.1.0", + "browserify-aes": "^1.2.0", + "browserify-rsa": "^4.1.0", + "browserify-cipher": "^1.0.1", + "browserify-zlib": "^0.2.0", + "browserify-sign": "^4.2.1", + "browserify-des": "^1.0.2", + "browserslist": "^3.2.8", + "buffer": "^4.9.2", + "buffer-from": "^1.1.2", + "buffer-xor": "^1.0.3", + "buffer-indexof": "^1.1.1", + "cacache": "^12.0.4", + "builtin-status-codes": "^3.0.0", + "bytes": "^3.0.0", + "call-bind": "^1.0.2", + "cache-base": "^1.0.1", + "chokidar": "^3.5.3", + "camelcase": "^5.3.1", + "caniuse-lite": "^1.0.30001532", + "chalk": "^1.1.3", + "chownr": "^1.1.4", + "cipher-base": "^1.0.4", + "cliui": "^5.0.0", + "chrome-trace-event": "^1.0.3", + "class-utils": "^0.3.6", + "color-name": "^1.1.3", + "collection-visit": "^1.0.0", + "color-convert": "^1.9.3", + "commander": "^2.20.3", + "commondir": "^1.0.1", + "concat-map": "^0.0.1", + "compressible": "^2.0.18", + "component-emitter": "^1.3.0", + "compression": "^1.7.4", + "concat-stream": "^1.6.2", + "console-browserify": "^1.2.0", + "connect-history-api-fallback": "^1.6.0", + "constants-browserify": "^1.0.0", + "content-disposition": "^0.5.4", + "convert-source-map": "^1.9.0", + "content-type": "^1.0.5", + "cookie": "^0.5.0", + "cookie-signature": "^1.0.6", + "copy-concurrently": "^1.0.5", + "copy-descriptor": "^0.1.1", + "core-util-is": "^1.0.3", + "core-js": "^2.6.12", + "create-ecdh": "^4.0.4", + "create-hmac": "^1.1.7", + "create-hash": "^1.2.0", + "cyclist": "^1.0.2", + "crypto-browserify": "^3.12.0", + "decamelize": "^1.2.0", + "cross-spawn": "^6.0.5", + "d3": "^3.5.17", + "deep-equal": "^1.1.1", + "debug": "^2.6.9", + "decode-uri-component": "^0.2.2", + "default-gateway": "^4.2.0", + "define-properties": "^1.2.0", + "depd": "^2.0.0", + "define-property": "^2.0.2", + "del": "^4.1.1", + "destroy": "^1.2.0", + "diffie-hellman": "^5.0.3", + "detect-file": "^1.0.0", + "des.js": "^1.1.0", + "detect-node": "^2.1.0", + "dns-equal": "^1.0.0", + "detect-indent": "^4.0.0", + "dns-packet": "^1.3.4", + "dns-txt": "^2.0.2", + "domain-browser": "^1.2.0", + "electron-to-chromium": "^1.4.515", + "duplexify": "^3.7.1", + "ee-first": "^1.1.1", + "emojis-list": "^3.0.0", + "emoji-regex": "^7.0.3", + "elliptic": "^6.5.4", + "end-of-stream": "^1.4.4", + "enhanced-resolve": "^4.5.0", + "encodeurl": "^1.0.2", + "escape-html": "^1.0.3", + "escape-string-regexp": "^1.0.5", + "errno": "^0.1.8", + "eslint-scope": "^4.0.3", + "estraverse": "^4.3.0", + "esrecurse": "^4.3.0", + "eventemitter3": "^4.0.7", + "etag": "^1.8.1", + "esutils": "^2.0.3", + "events": "^3.3.0", + "execa": "^1.0.0", + "eventsource": "^2.0.2", + "expand-brackets": "^2.1.4", + "evp_bytestokey": "^1.0.3", + "expand-tilde": "^2.0.2", + "extend-shallow": "^3.0.2", + "express": "^4.18.2", + "fast-deep-equal": "^3.1.3", + "extglob": "^2.0.4", + "figgy-pudding": "^3.5.2", + "fast-json-stable-stringify": "^2.1.0", + "faye-websocket": "^0.11.4", + "fill-range": "^4.0.0", + "finalhandler": "^1.2.0", + "find-cache-dir": "^1.0.0", + "find-up": "^2.1.0", + "follow-redirects": "^1.15.2", + "flush-write-stream": "^1.1.1", + "for-in": "^1.0.2", + "findup-sync": "^3.0.0", + "fragment-cache": "^0.2.1", + "fresh": "^0.5.2", + "forwarded": "^0.2.0", + "from2": "^2.3.0", + "fs-write-stream-atomic": "^1.0.10", + "fs.realpath": "^1.0.0", + "function-bind": "^1.1.1", + "get-caller-file": "^2.0.5", + "functions-have-names": "^1.2.3", + "get-intrinsic": "^1.2.1", + "get-value": "^2.0.6", + "glob-parent": "^5.1.2", + "globals": "^9.18.0", + "globby": "^6.1.0", + "global-prefix": "^3.0.0", + "global-modules": "^2.0.0", + "graceful-fs": "^4.2.11", + "has-ansi": "^2.0.0", + "handle-thing": "^2.0.1", + "has-flag": "^3.0.0", + "has-property-descriptors": "^1.0.0", + "has": "^1.0.3", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "has-tostringtag": "^1.0.0", + "has-values": "^1.0.0", + "has-value": "^1.0.0", + "hash-base": "^3.1.0", + "hash.js": "^1.1.7", + "hmac-drbg": "^1.0.1", + "home-or-tmp": "^2.0.0", + "homedir-polyfill": "^1.0.3", + "hpack.js": "^2.1.6", + "http-deceiver": "^1.2.7", + "http-errors": "^2.0.0", + "html-entities": "^1.4.0", + "http-parser-js": "^0.5.8", + "https-browserify": "^1.0.0", + "http-proxy-middleware": "^0.19.1", + "http-proxy": "^1.18.1", + "iconv-lite": "^0.4.24", + "imurmurhash": "^0.1.4", + "ieee754": "^1.2.1", + "import-local": "^2.0.0", + "iferr": "^0.1.5", + "infer-owner": "^1.0.4", + "inflight": "^1.0.6", + "inherits": "^2.0.4", + "internal-ip": "^4.3.0", + "ini": "^1.3.8", + "invariant": "^2.2.4", + "interpret": "^1.4.0", + "ip": "^1.1.8", + "ipaddr.js": "^1.9.1", + "ip-regex": "^2.1.0", + "is-accessor-descriptor": "^1.0.0", + "is-absolute-url": "^3.0.3", + "is-binary-path": "^2.1.0", + "is-buffer": "^1.1.6", + "is-arguments": "^1.1.1", + "is-date-object": "^1.0.5", + "is-data-descriptor": "^1.0.0", + "is-descriptor": "^1.0.2", + "is-extendable": "^1.0.1", + "is-finite": "^1.1.0", + "is-extglob": "^2.1.1", + "is-fullwidth-code-point": "^2.0.0", + "is-glob": "^4.0.3", + "is-number": "^3.0.0", + "is-path-cwd": "^2.2.0", + "is-regex": "^1.1.4", + "is-path-in-cwd": "^2.1.0", + "is-path-inside": "^2.1.0", + "is-plain-object": "^2.0.4", + "is-windows": "^1.0.2", + "is-stream": "^1.1.0", + "is-wsl": "^1.1.0", + "isexe": "^2.0.0", + "isarray": "^1.0.0", + "isobject": "^3.0.1", + "json-parse-better-errors": "^1.0.2", + "js-tokens": "^3.0.2", + "jsesc": "^1.3.0", + "json-schema-traverse": "^0.4.1", + "json5": "^0.5.1", + "loader-runner": "^2.4.0", + "killable": "^1.0.1", + "kind-of": "^6.0.3", + "loader-utils": "^1.4.2", + "locate-path": "^2.0.0", + "loglevel": "^1.8.1", + "lru-cache": "^5.1.1", + "loose-envify": "^1.4.0", + "map-cache": "^0.2.2", + "memory-fs": "^0.4.1", + "map-visit": "^1.0.0", + "md5.js": "^1.3.5", + "methods": "^1.1.2", + "media-typer": "^0.3.0", + "merge-descriptors": "^1.0.1", + "micromatch": "^3.1.10", + "miller-rabin": "^4.0.1", + "mime": "^1.6.0", + "make-dir": "^1.3.0", + "minimalistic-assert": "^1.0.1", + "mime-db": "^1.52.0", + "mime-types": "^2.1.35", + "minimalistic-crypto-utils": "^1.0.1", + "minimatch": "^3.1.2", + "minimist": "^1.2.8", + "mississippi": "^3.0.0", + "mkdirp": "^0.5.6", + "move-concurrently": "^1.0.1", + "mixin-deep": "^1.3.2", + "multicast-dns": "^6.2.3", + "ms": "^2.0.0", + "nanomatch": "^1.2.13", + "multicast-dns-service-types": "^1.1.0", + "negotiator": "^0.6.3", + "nice-try": "^1.0.5", + "neo-async": "^2.6.2", + "node-forge": "^0.10.0", + "node-libs-browser": "^2.2.1", + "normalize-path": "^3.0.0", + "npm-run-path": "^2.0.2", + "object-assign": "^4.1.1", + "object-copy": "^0.1.0", + "object-inspect": "^1.12.3", + "object-is": "^1.1.5", + "object-visit": "^1.0.1", + "object-keys": "^1.1.1", + "obuf": "^1.1.2", + "on-headers": "^1.0.2", + "object.assign": "^4.1.4", + "object.pick": "^1.3.0", + "on-finished": "^2.4.1", + "once": "^1.4.0", + "os-browserify": "^0.3.0", + "opn": "^5.5.0", + "os-tmpdir": "^1.0.2", + "p-limit": "^1.3.0", + "p-finally": "^1.0.0", + "os-homedir": "^1.0.2", + "p-locate": "^2.0.0", + "p-map": "^2.1.0", + "p-retry": "^3.0.1", + "pako": "^1.0.11", + "p-try": "^1.0.0", + "parallel-transform": "^1.2.0", + "parse-asn1": "^5.1.6", + "parse-passwd": "^1.0.0", + "path-browserify": "^0.0.1", + "pascalcase": "^0.1.1", + "parseurl": "^1.3.3", + "path-dirname": "^1.0.2", + "path-exists": "^3.0.0", + "path-is-absolute": "^1.0.1", + "path-to-regexp": "^0.1.7", + "path-key": "^2.0.1", + "path-is-inside": "^1.0.2", + "pbkdf2": "^3.1.2", + "pify": "^3.0.0", + "pkg-dir": "^2.0.0", + "picomatch": "^2.3.1", + "pinkie-promise": "^2.0.1", + "portfinder": "^1.0.32", + "posix-character-classes": "^0.1.1", + "pinkie": "^2.0.4", + "process-nextick-args": "^2.0.1", + "private": "^0.1.8", + "promise-inflight": "^1.0.1", + "process": "^0.11.10", + "prop-types": "^15.8.1", + "proxy-addr": "^2.0.7", + "prr": "^1.0.1", + "pump": "^3.0.0", + "punycode": "^1.4.1", + "public-encrypt": "^4.0.3", + "pumpify": "^1.5.1", + "querystring-es3": "^0.2.1", + "qs": "^6.11.2", + "randombytes": "^2.1.0", + "querystringify": "^2.2.0", + "range-parser": "^1.2.1", + "randomfill": "^1.0.4", + "raw-body": "^2.5.1", + "readable-stream": "^2.3.8", + "react-is": "^16.13.1", + "readdirp": "^3.6.0", + "regenerate": "^1.4.2", + "regenerator-runtime": "^0.11.1", + "regex-not": "^1.0.2", + "regexp.prototype.flags": "^1.5.0", + "regenerator-transform": "^0.10.1", + "regexpu-core": "^2.0.0", + "regjsgen": "^0.2.0", + "regjsparser": "^0.1.5", + "repeat-element": "^1.1.4", + "repeat-string": "^1.6.1", + "repeating": "^2.0.1", + "remove-trailing-separator": "^1.1.0", + "require-main-filename": "^2.0.0", + "require-directory": "^2.1.1", + "requires-port": "^1.0.0", + "resolve-cwd": "^2.0.0", + "resolve-url": "^0.2.1", + "resolve-from": "^3.0.0", + "ret": "^0.1.15", + "ripemd160": "^2.0.2", + "resolve-dir": "^1.0.1", + "retry": "^0.12.0", + "run-queue": "^1.0.3", + "safe-regex": "^1.1.0", + "scheduler": "^0.19.1", + "safe-buffer": "^5.2.1", + "safer-buffer": "^2.1.2", + "selfsigned": "^1.10.14", + "schema-utils": "^1.0.0", + "select-hose": "^2.0.0", + "semver": "^5.7.2", + "serialize-javascript": "^4.0.0", + "send": "^0.18.0", + "serve-index": "^1.9.1", + "set-blocking": "^2.0.0", + "set-value": "^2.0.1", + "serve-static": "^1.15.0", + "setimmediate": "^1.0.5", + "setprototypeof": "^1.2.0", + "shebang-regex": "^1.0.0", + "sha.js": "^2.4.11", + "side-channel": "^1.0.4", + "signal-exit": "^3.0.7", + "shebang-command": "^1.2.0", + "slash": "^1.0.0", + "snapdragon": "^0.8.2", + "snapdragon-util": "^3.0.1", + "sockjs": "^0.3.24", + "snapdragon-node": "^2.1.1", + "sockjs-client": "^1.6.1", + "source-list-map": "^2.0.1", + "source-map": "^0.5.7", + "source-map-resolve": "^0.5.3", + "source-map-url": "^0.4.1", + "source-map-support": "^0.4.18", + "spdy": "^4.0.2", + "spdy-transport": "^3.0.0", + "ssri": "^6.0.2", + "static-extend": "^0.1.2", + "stream-browserify": "^2.0.2", + "split-string": "^3.1.0", + "statuses": "^2.0.1", + "stream-each": "^1.2.3", + "stream-shift": "^1.0.1", + "stream-http": "^2.8.3", + "string-width": "^3.1.0", + "string_decoder": "^1.3.0", + "strip-ansi": "^3.0.1", + "supports-color": "^2.0.0", + "tapable": "^1.1.3", + "strip-eof": "^1.0.0", + "terser-webpack-plugin": "^1.4.5", + "terser": "^4.8.1", + "timers-browserify": "^2.0.12", + "through2": "^2.0.5", + "to-arraybuffer": "^1.0.1", + "thunky": "^1.1.0", + "to-fast-properties": "^1.0.3", + "to-regex": "^3.0.2", + "to-object-path": "^0.3.0", + "toidentifier": "^1.0.1", + "to-regex-range": "^2.1.1", + "trim-right": "^1.0.1", + "tty-browserify": "^0.0.0", + "type-is": "^1.6.18", + "typedarray": "^0.0.6", + "unique-filename": "^1.1.1", + "union-value": "^1.0.1", + "unique-slug": "^2.0.2", + "unpipe": "^1.0.0", + "unset-value": "^1.0.0", + "urix": "^0.1.0", + "uri-js": "^4.4.1", + "url-parse": "^1.5.10", + "upath": "^1.2.0", + "util-deprecate": "^1.0.2", + "util": "^0.11.1", + "utils-merge": "^1.0.1", + "url": "^0.11.2", + "use": "^3.1.1", + "uuid": "^8.3.2", + "v8-compile-cache": "^2.4.0", + "vary": "^1.1.2", + "watchpack-chokidar2": "^2.0.1", + "watchpack": "^1.7.5", + "wbuf": "^1.7.3", + "vm-browserify": "^1.1.2", + "webpack-log": "^2.0.0", + "webpack-dev-middleware": "^3.7.3", + "websocket-extensions": "^0.1.4", + "websocket-driver": "^0.7.4", + "webpack-sources": "^1.4.3", + "wrap-ansi": "^5.1.0", + "which": "^1.3.1", + "worker-farm": "^1.7.0", + "which-module": "^2.0.1", + "wrappy": "^1.0.2", + "ws": "^6.2.2", + "xtend": "^4.0.2", + "yallist": "^3.1.1", + "y18n": "^4.0.3", + "yargs": "^13.3.2", + "yargs-parser": "^13.1.2" } } diff --git a/src/chart/config.js b/src/chart/config.js index f6ed81e..a35f0a0 100644 --- a/src/chart/config.js +++ b/src/chart/config.js @@ -2,12 +2,12 @@ const animationDuration = 350 const shouldResize = true // Nodes -const nodeWidth = 240 -const nodeHeight = 120 +const nodeWidth = 300 +const nodeHeight = 80 const nodeSpacing = 12 -const nodePaddingX = 16 +const nodePaddingX = 4 const nodePaddingY = 16 -const avatarWidth = 40 +const avatarWidth = 80 const nodeBorderRadius = 4 const margin = { top: 20, @@ -21,7 +21,7 @@ const lineType = 'angle' const lineDepthY = 120 /* Height of the line for child nodes */ // Colors -const backgroundColor = '#fff' +const backgroundColor = 'rgb(243,244,246)' const borderColor = '#e6e8e9' const nameColor = '#222d38' const titleColor = '#617080' @@ -47,4 +47,4 @@ const config = { shouldResize } -module.exports = config +module.exports = config \ No newline at end of file diff --git a/src/chart/render.js b/src/chart/render.js index fc9ab55..6aa95c5 100644 --- a/src/chart/render.js +++ b/src/chart/render.js @@ -117,56 +117,56 @@ function render(config) { const heightForTitle = 45 // getHeightForText(d.person.title) // Person's Reports - nodeEnter - .append('text') - .attr('class', PERSON_REPORTS_CLASS) - .attr('x', namePos.x) - .attr('y', namePos.y + nodePaddingY + heightForTitle) - .attr('dy', '.9em') - .style('font-size', 14) - .style('font-weight', 500) - .style('cursor', 'pointer') - .style('fill', reportsColor) - .text(helpers.getTextForTitle) + // nodeEnter + // .append('text') + // .attr('class', PERSON_REPORTS_CLASS) + // .attr('x', namePos.x) + // .attr('y', namePos.y + nodePaddingY + heightForTitle) + // .attr('dy', '.9em') + // .style('font-size', 14) + // .style('font-weight', 500) + // .style('cursor', 'pointer') + // .style('fill', reportsColor) + // .text(helpers.getTextForTitle) // Person's Avatar nodeEnter .append('image') - .attr('width', avatarWidth) - .attr('height', avatarWidth) - .attr('x', nodePaddingX) - .attr('y', nodePaddingY) + .attr('width', 80) + .attr('height', 80) + .attr('x', 0) + .attr('y', 1) .attr('stroke', borderColor) .attr('src', d => d.person.avatar) .attr('xlink:href', d => d.person.avatar) .attr('clip-path', 'url(#avatarClip)') // Person's Department - nodeEnter - .append('text') - .attr('class', getDepartmentClass) - .attr('x', 34) - .attr('y', avatarWidth + nodePaddingY * 1.2) - .attr('dy', '.9em') - .style('cursor', 'pointer') - .style('fill', titleColor) - .style('font-weight', 600) - .style('font-size', 8) - .attr('text-anchor', 'middle') - .text(helpers.getTextForDepartment) + // nodeEnter + // .append('text') + // .attr('class', getDepartmentClass) + // .attr('x', 34) + // .attr('y', avatarWidth + nodePaddingY * 1.2) + // .attr('dy', '.9em') + // .style('cursor', 'pointer') + // .style('fill', titleColor) + // .style('font-weight', 600) + // .style('font-size', 8) + // .attr('text-anchor', 'middle') + // .text(helpers.getTextForDepartment) // Person's Link const nodeLink = nodeEnter - .append('a') + .append('p') .attr('class', PERSON_LINK_CLASS) - .attr('xlink:href', d => d.person.link || 'https://lattice.com') - .on('click', datum => { - d3.event.stopPropagation() - // TODO: fire link click handler - if (onPersonLinkClick) { - onPersonLinkClick(datum, d3.event) - } - }) + // .attr('xlink:href', d => d.person.link || 'https://lattice.com') + // .on('click', datum => { + // d3.event.stopPropagation() + // // TODO: fire link click handler + // if (onPersonLinkClick) { + // onPersonLinkClick(datum, d3.event) + // } + // }) iconLink({ svg: nodeLink, diff --git a/src/defs/avatar-clip.js b/src/defs/avatar-clip.js index 33444ea..364393d 100644 --- a/src/defs/avatar-clip.js +++ b/src/defs/avatar-clip.js @@ -14,7 +14,7 @@ module.exports = function defineAvatarClip(svg, id, config = {}) { .append('clipPath') .attr('id', id) .append('circle') - .attr('cx', 34) - .attr('cy', 34) - .attr('r', 18) -} + .attr('cx', 35) + .attr('cy', 45) + .attr('r', 30) +} \ No newline at end of file diff --git a/src/examples/react.js b/src/examples/react.js index 207e91a..9d51011 100644 --- a/src/examples/react.js +++ b/src/examples/react.js @@ -24,7 +24,7 @@ const props = { // this could also just be `return tree.children` return Promise.resolve(tree.children) }, - lineType: 'curve' + lineType: 'angle' } ReactDOM.render(React.createElement(OrgChart, props, null), root) diff --git a/webpack.config.js b/webpack.config.js index 1377b9f..4f53f4c 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -2,38 +2,41 @@ const webpack = require('webpack') const { resolve } = require('path') module.exports = { - name: '@latticehr/react-org-chart', + name: '@elsouza1985/react-org-chart', + devtool: 'source-map', entry: './src/index.js', output: { filename: 'index.js', + sourceMapFilename: './index.js.map', + pathinfo: true, path: resolve(__dirname, 'dist'), - library: '@latticehr/react-org-chart', - libraryTarget: 'commonjs2' + library: '@elsouza1985/react-org-chart', + libraryTarget: 'commonjs2', }, module: { rules: [ { test: /\.(js|jsx)$/, exclude: /node_modules/, - use: ['babel-loader'] - } - ] + use: ['babel-loader'], + }, + ], }, resolve: { - extensions: ['*', '.js', '.jsx'] + extensions: ['*', '.js', '.jsx'], }, externals: { d3: { commonjs: 'd3', commonjs2: 'd3', amd: 'd3', - root: '_' + root: '_', }, react: { commonjs: 'react', commonjs2: 'react', amd: 'react', - root: '_' - } - } -} + root: '_', + }, + }, +} \ No newline at end of file diff --git a/webpack.dev.config.js b/webpack.dev.config.js index 01ec1f6..6f67fa3 100644 --- a/webpack.dev.config.js +++ b/webpack.dev.config.js @@ -1,60 +1,43 @@ -const glob = require('glob') const webpack = require('webpack') const { resolve } = require('path') -const getFilename = path => - path - .split('\\') - .pop() - .split('/') - .pop() - .replace('.js', '') - -const getExamples = () => { - return glob - .sync('./src/examples/*.js', { - matchBase: true - }) - .map(getFilename) - .map(filename => ({ - name: `example-${filename}`, - value: `./src/examples/${filename}.js` - })) - .reduce((acc, o) => { - acc[o.name] = o.value - return acc - }, {}) -} - module.exports = { - name: 'react-org-chart', - cache: true, - devtool: 'cheap-module-eval-source-map', - entry: { - index: './src/index', - ...getExamples() - }, + name: '@elsouza1985/react-org-chart', + devtool: 'source-map', + entry: './src/index.js', output: { - filename: '[name].bundle.js', + filename: 'index.js', + devtoolLineToLine: true, + sourceMapFilename: './index.js.map', + pathinfo: true, path: resolve(__dirname, 'dist'), - publicPath: '/dist/' + library: '@elsouza1985/react-org-chart', + libraryTarget: 'commonjs2', }, - plugins: [ - new webpack.DllReferencePlugin({ - context: resolve(__dirname, 'src'), - manifest: resolve(__dirname, 'dist/manifest.json') - }) - ], module: { rules: [ { test: /\.(js|jsx)$/, exclude: /node_modules/, - use: ['babel-loader'] - } - ] + use: ['babel-loader'], + }, + ], }, resolve: { - extensions: ['*', '.js', '.jsx'] - } -} + extensions: ['*', '.js', '.jsx'], + }, + externals: { + d3: { + commonjs: 'd3', + commonjs2: 'd3', + amd: 'd3', + root: '_', + }, + react: { + commonjs: 'react', + commonjs2: 'react', + amd: 'react', + root: '_', + }, + }, +} \ No newline at end of file From da52df95e034696c501988c69489cc2ccf8196f0 Mon Sep 17 00:00:00 2001 From: elsouzaF1 Date: Mon, 11 Sep 2023 22:21:51 -0300 Subject: [PATCH 3/3] iniit --- package.json | 531 +-------------------------------------------------- 1 file changed, 2 insertions(+), 529 deletions(-) diff --git a/package.json b/package.json index 75fb7a0..64cad30 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ }, "main": "dist/index.js", "directories": { - "example": "examples" + "example": "src/examples" }, "files": [ "dist/index.js" @@ -53,532 +53,5 @@ "bugs": { "url": "https://github.com/elsouza1985/react-org-chart/issues" }, - "homepage": "https://github.com/elsouza1985/react-org-chart#readme", - "dependencies": { - "accepts": "^1.3.8", - "ajv-keywords": "^3.5.2", - "acorn": "^6.4.2", - "ajv-errors": "^1.0.1", - "ajv": "^6.12.6", - "ansi-colors": "^3.2.4", - "ansi-html-community": "^0.0.8", - "ansi-regex": "^2.1.1", - "ansi-styles": "^2.2.1", - "aproba": "^1.2.0", - "arr-diff": "^4.0.0", - "anymatch": "^3.1.3", - "arr-flatten": "^1.1.0", - "array-flatten": "^2.1.2", - "array-union": "^1.0.2", - "array-unique": "^0.3.2", - "array-uniq": "^1.0.3", - "arr-union": "^3.1.0", - "assert": "^1.5.1", - "asn1.js": "^5.4.1", - "async": "^2.6.4", - "assign-symbols": "^1.0.0", - "atob": "^2.1.2", - "async-each": "^1.0.6", - "babel-code-frame": "^6.26.0", - "babel-generator": "^6.26.1", - "babel-helper-bindify-decorators": "^6.24.1", - "async-limiter": "^1.0.1", - "babel-helper-builder-binary-assignment-operator-visitor": "^6.24.1", - "babel-helper-call-delegate": "^6.24.1", - "babel-helper-define-map": "^6.26.0", - "babel-helper-explode-class": "^6.24.1", - "babel-helper-function-name": "^6.24.1", - "babel-helper-explode-assignable-expression": "^6.24.1", - "babel-helper-hoist-variables": "^6.24.1", - "babel-helper-regex": "^6.26.0", - "babel-helper-get-function-arity": "^6.24.1", - "babel-helper-remap-async-to-generator": "^6.24.1", - "babel-helper-optimise-call-expression": "^6.24.1", - "babel-messages": "^6.23.0", - "babel-helper-replace-supers": "^6.24.1", - "babel-plugin-syntax-async-functions": "^6.13.0", - "babel-helpers": "^6.24.1", - "babel-plugin-check-es2015-constants": "^6.22.0", - "babel-plugin-syntax-async-generators": "^6.13.0", - "babel-plugin-syntax-decorators": "^6.13.0", - "babel-plugin-syntax-class-properties": "^6.13.0", - "babel-plugin-syntax-exponentiation-operator": "^6.13.0", - "babel-plugin-syntax-dynamic-import": "^6.18.0", - "babel-plugin-transform-async-generator-functions": "^6.24.1", - "babel-plugin-syntax-object-rest-spread": "^6.13.0", - "babel-plugin-syntax-trailing-function-commas": "^6.22.0", - "babel-plugin-transform-async-to-generator": "^6.24.1", - "babel-plugin-transform-es2015-block-scoped-functions": "^6.22.0", - "babel-plugin-transform-class-properties": "^6.24.1", - "babel-plugin-transform-es2015-arrow-functions": "^6.22.0", - "babel-plugin-transform-decorators": "^6.24.1", - "babel-plugin-transform-es2015-block-scoping": "^6.26.0", - "babel-plugin-transform-es2015-classes": "^6.24.1", - "babel-plugin-transform-es2015-for-of": "^6.23.0", - "babel-plugin-transform-es2015-computed-properties": "^6.24.1", - "babel-plugin-transform-es2015-destructuring": "^6.23.0", - "babel-plugin-transform-es2015-function-name": "^6.24.1", - "babel-plugin-transform-es2015-duplicate-keys": "^6.24.1", - "babel-plugin-transform-es2015-literals": "^6.22.0", - "babel-plugin-transform-es2015-modules-commonjs": "^6.26.2", - "babel-plugin-transform-es2015-modules-umd": "^6.24.1", - "babel-plugin-transform-es2015-modules-systemjs": "^6.24.1", - "babel-plugin-transform-es2015-object-super": "^6.24.1", - "babel-plugin-transform-es2015-modules-amd": "^6.24.1", - "babel-plugin-transform-es2015-spread": "^6.22.0", - "babel-plugin-transform-es2015-shorthand-properties": "^6.24.1", - "babel-plugin-transform-es2015-parameters": "^6.24.1", - "babel-plugin-transform-es2015-sticky-regex": "^6.24.1", - "babel-plugin-transform-es2015-unicode-regex": "^6.24.1", - "babel-plugin-transform-exponentiation-operator": "^6.24.1", - "babel-plugin-transform-es2015-template-literals": "^6.22.0", - "babel-plugin-transform-es2015-typeof-symbol": "^6.23.0", - "babel-plugin-transform-regenerator": "^6.26.0", - "babel-plugin-transform-strict-mode": "^6.24.1", - "babel-register": "^6.26.0", - "babel-plugin-transform-object-rest-spread": "^6.26.0", - "babel-preset-stage-3": "^6.24.1", - "babel-template": "^6.26.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "babel-traverse": "^6.26.0", - "babylon": "^6.18.0", - "balanced-match": "^1.0.2", - "base": "^0.11.2", - "batch": "^0.6.1", - "base64-js": "^1.5.1", - "big.js": "^5.2.2", - "binary-extensions": "^2.2.0", - "bluebird": "^3.7.2", - "bn.js": "^5.2.1", - "body-parser": "^1.20.1", - "bonjour": "^3.5.0", - "braces": "^2.3.2", - "brace-expansion": "^1.1.11", - "brorand": "^1.1.0", - "browserify-aes": "^1.2.0", - "browserify-rsa": "^4.1.0", - "browserify-cipher": "^1.0.1", - "browserify-zlib": "^0.2.0", - "browserify-sign": "^4.2.1", - "browserify-des": "^1.0.2", - "browserslist": "^3.2.8", - "buffer": "^4.9.2", - "buffer-from": "^1.1.2", - "buffer-xor": "^1.0.3", - "buffer-indexof": "^1.1.1", - "cacache": "^12.0.4", - "builtin-status-codes": "^3.0.0", - "bytes": "^3.0.0", - "call-bind": "^1.0.2", - "cache-base": "^1.0.1", - "chokidar": "^3.5.3", - "camelcase": "^5.3.1", - "caniuse-lite": "^1.0.30001532", - "chalk": "^1.1.3", - "chownr": "^1.1.4", - "cipher-base": "^1.0.4", - "cliui": "^5.0.0", - "chrome-trace-event": "^1.0.3", - "class-utils": "^0.3.6", - "color-name": "^1.1.3", - "collection-visit": "^1.0.0", - "color-convert": "^1.9.3", - "commander": "^2.20.3", - "commondir": "^1.0.1", - "concat-map": "^0.0.1", - "compressible": "^2.0.18", - "component-emitter": "^1.3.0", - "compression": "^1.7.4", - "concat-stream": "^1.6.2", - "console-browserify": "^1.2.0", - "connect-history-api-fallback": "^1.6.0", - "constants-browserify": "^1.0.0", - "content-disposition": "^0.5.4", - "convert-source-map": "^1.9.0", - "content-type": "^1.0.5", - "cookie": "^0.5.0", - "cookie-signature": "^1.0.6", - "copy-concurrently": "^1.0.5", - "copy-descriptor": "^0.1.1", - "core-util-is": "^1.0.3", - "core-js": "^2.6.12", - "create-ecdh": "^4.0.4", - "create-hmac": "^1.1.7", - "create-hash": "^1.2.0", - "cyclist": "^1.0.2", - "crypto-browserify": "^3.12.0", - "decamelize": "^1.2.0", - "cross-spawn": "^6.0.5", - "d3": "^3.5.17", - "deep-equal": "^1.1.1", - "debug": "^2.6.9", - "decode-uri-component": "^0.2.2", - "default-gateway": "^4.2.0", - "define-properties": "^1.2.0", - "depd": "^2.0.0", - "define-property": "^2.0.2", - "del": "^4.1.1", - "destroy": "^1.2.0", - "diffie-hellman": "^5.0.3", - "detect-file": "^1.0.0", - "des.js": "^1.1.0", - "detect-node": "^2.1.0", - "dns-equal": "^1.0.0", - "detect-indent": "^4.0.0", - "dns-packet": "^1.3.4", - "dns-txt": "^2.0.2", - "domain-browser": "^1.2.0", - "electron-to-chromium": "^1.4.515", - "duplexify": "^3.7.1", - "ee-first": "^1.1.1", - "emojis-list": "^3.0.0", - "emoji-regex": "^7.0.3", - "elliptic": "^6.5.4", - "end-of-stream": "^1.4.4", - "enhanced-resolve": "^4.5.0", - "encodeurl": "^1.0.2", - "escape-html": "^1.0.3", - "escape-string-regexp": "^1.0.5", - "errno": "^0.1.8", - "eslint-scope": "^4.0.3", - "estraverse": "^4.3.0", - "esrecurse": "^4.3.0", - "eventemitter3": "^4.0.7", - "etag": "^1.8.1", - "esutils": "^2.0.3", - "events": "^3.3.0", - "execa": "^1.0.0", - "eventsource": "^2.0.2", - "expand-brackets": "^2.1.4", - "evp_bytestokey": "^1.0.3", - "expand-tilde": "^2.0.2", - "extend-shallow": "^3.0.2", - "express": "^4.18.2", - "fast-deep-equal": "^3.1.3", - "extglob": "^2.0.4", - "figgy-pudding": "^3.5.2", - "fast-json-stable-stringify": "^2.1.0", - "faye-websocket": "^0.11.4", - "fill-range": "^4.0.0", - "finalhandler": "^1.2.0", - "find-cache-dir": "^1.0.0", - "find-up": "^2.1.0", - "follow-redirects": "^1.15.2", - "flush-write-stream": "^1.1.1", - "for-in": "^1.0.2", - "findup-sync": "^3.0.0", - "fragment-cache": "^0.2.1", - "fresh": "^0.5.2", - "forwarded": "^0.2.0", - "from2": "^2.3.0", - "fs-write-stream-atomic": "^1.0.10", - "fs.realpath": "^1.0.0", - "function-bind": "^1.1.1", - "get-caller-file": "^2.0.5", - "functions-have-names": "^1.2.3", - "get-intrinsic": "^1.2.1", - "get-value": "^2.0.6", - "glob-parent": "^5.1.2", - "globals": "^9.18.0", - "globby": "^6.1.0", - "global-prefix": "^3.0.0", - "global-modules": "^2.0.0", - "graceful-fs": "^4.2.11", - "has-ansi": "^2.0.0", - "handle-thing": "^2.0.1", - "has-flag": "^3.0.0", - "has-property-descriptors": "^1.0.0", - "has": "^1.0.3", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "has-tostringtag": "^1.0.0", - "has-values": "^1.0.0", - "has-value": "^1.0.0", - "hash-base": "^3.1.0", - "hash.js": "^1.1.7", - "hmac-drbg": "^1.0.1", - "home-or-tmp": "^2.0.0", - "homedir-polyfill": "^1.0.3", - "hpack.js": "^2.1.6", - "http-deceiver": "^1.2.7", - "http-errors": "^2.0.0", - "html-entities": "^1.4.0", - "http-parser-js": "^0.5.8", - "https-browserify": "^1.0.0", - "http-proxy-middleware": "^0.19.1", - "http-proxy": "^1.18.1", - "iconv-lite": "^0.4.24", - "imurmurhash": "^0.1.4", - "ieee754": "^1.2.1", - "import-local": "^2.0.0", - "iferr": "^0.1.5", - "infer-owner": "^1.0.4", - "inflight": "^1.0.6", - "inherits": "^2.0.4", - "internal-ip": "^4.3.0", - "ini": "^1.3.8", - "invariant": "^2.2.4", - "interpret": "^1.4.0", - "ip": "^1.1.8", - "ipaddr.js": "^1.9.1", - "ip-regex": "^2.1.0", - "is-accessor-descriptor": "^1.0.0", - "is-absolute-url": "^3.0.3", - "is-binary-path": "^2.1.0", - "is-buffer": "^1.1.6", - "is-arguments": "^1.1.1", - "is-date-object": "^1.0.5", - "is-data-descriptor": "^1.0.0", - "is-descriptor": "^1.0.2", - "is-extendable": "^1.0.1", - "is-finite": "^1.1.0", - "is-extglob": "^2.1.1", - "is-fullwidth-code-point": "^2.0.0", - "is-glob": "^4.0.3", - "is-number": "^3.0.0", - "is-path-cwd": "^2.2.0", - "is-regex": "^1.1.4", - "is-path-in-cwd": "^2.1.0", - "is-path-inside": "^2.1.0", - "is-plain-object": "^2.0.4", - "is-windows": "^1.0.2", - "is-stream": "^1.1.0", - "is-wsl": "^1.1.0", - "isexe": "^2.0.0", - "isarray": "^1.0.0", - "isobject": "^3.0.1", - "json-parse-better-errors": "^1.0.2", - "js-tokens": "^3.0.2", - "jsesc": "^1.3.0", - "json-schema-traverse": "^0.4.1", - "json5": "^0.5.1", - "loader-runner": "^2.4.0", - "killable": "^1.0.1", - "kind-of": "^6.0.3", - "loader-utils": "^1.4.2", - "locate-path": "^2.0.0", - "loglevel": "^1.8.1", - "lru-cache": "^5.1.1", - "loose-envify": "^1.4.0", - "map-cache": "^0.2.2", - "memory-fs": "^0.4.1", - "map-visit": "^1.0.0", - "md5.js": "^1.3.5", - "methods": "^1.1.2", - "media-typer": "^0.3.0", - "merge-descriptors": "^1.0.1", - "micromatch": "^3.1.10", - "miller-rabin": "^4.0.1", - "mime": "^1.6.0", - "make-dir": "^1.3.0", - "minimalistic-assert": "^1.0.1", - "mime-db": "^1.52.0", - "mime-types": "^2.1.35", - "minimalistic-crypto-utils": "^1.0.1", - "minimatch": "^3.1.2", - "minimist": "^1.2.8", - "mississippi": "^3.0.0", - "mkdirp": "^0.5.6", - "move-concurrently": "^1.0.1", - "mixin-deep": "^1.3.2", - "multicast-dns": "^6.2.3", - "ms": "^2.0.0", - "nanomatch": "^1.2.13", - "multicast-dns-service-types": "^1.1.0", - "negotiator": "^0.6.3", - "nice-try": "^1.0.5", - "neo-async": "^2.6.2", - "node-forge": "^0.10.0", - "node-libs-browser": "^2.2.1", - "normalize-path": "^3.0.0", - "npm-run-path": "^2.0.2", - "object-assign": "^4.1.1", - "object-copy": "^0.1.0", - "object-inspect": "^1.12.3", - "object-is": "^1.1.5", - "object-visit": "^1.0.1", - "object-keys": "^1.1.1", - "obuf": "^1.1.2", - "on-headers": "^1.0.2", - "object.assign": "^4.1.4", - "object.pick": "^1.3.0", - "on-finished": "^2.4.1", - "once": "^1.4.0", - "os-browserify": "^0.3.0", - "opn": "^5.5.0", - "os-tmpdir": "^1.0.2", - "p-limit": "^1.3.0", - "p-finally": "^1.0.0", - "os-homedir": "^1.0.2", - "p-locate": "^2.0.0", - "p-map": "^2.1.0", - "p-retry": "^3.0.1", - "pako": "^1.0.11", - "p-try": "^1.0.0", - "parallel-transform": "^1.2.0", - "parse-asn1": "^5.1.6", - "parse-passwd": "^1.0.0", - "path-browserify": "^0.0.1", - "pascalcase": "^0.1.1", - "parseurl": "^1.3.3", - "path-dirname": "^1.0.2", - "path-exists": "^3.0.0", - "path-is-absolute": "^1.0.1", - "path-to-regexp": "^0.1.7", - "path-key": "^2.0.1", - "path-is-inside": "^1.0.2", - "pbkdf2": "^3.1.2", - "pify": "^3.0.0", - "pkg-dir": "^2.0.0", - "picomatch": "^2.3.1", - "pinkie-promise": "^2.0.1", - "portfinder": "^1.0.32", - "posix-character-classes": "^0.1.1", - "pinkie": "^2.0.4", - "process-nextick-args": "^2.0.1", - "private": "^0.1.8", - "promise-inflight": "^1.0.1", - "process": "^0.11.10", - "prop-types": "^15.8.1", - "proxy-addr": "^2.0.7", - "prr": "^1.0.1", - "pump": "^3.0.0", - "punycode": "^1.4.1", - "public-encrypt": "^4.0.3", - "pumpify": "^1.5.1", - "querystring-es3": "^0.2.1", - "qs": "^6.11.2", - "randombytes": "^2.1.0", - "querystringify": "^2.2.0", - "range-parser": "^1.2.1", - "randomfill": "^1.0.4", - "raw-body": "^2.5.1", - "readable-stream": "^2.3.8", - "react-is": "^16.13.1", - "readdirp": "^3.6.0", - "regenerate": "^1.4.2", - "regenerator-runtime": "^0.11.1", - "regex-not": "^1.0.2", - "regexp.prototype.flags": "^1.5.0", - "regenerator-transform": "^0.10.1", - "regexpu-core": "^2.0.0", - "regjsgen": "^0.2.0", - "regjsparser": "^0.1.5", - "repeat-element": "^1.1.4", - "repeat-string": "^1.6.1", - "repeating": "^2.0.1", - "remove-trailing-separator": "^1.1.0", - "require-main-filename": "^2.0.0", - "require-directory": "^2.1.1", - "requires-port": "^1.0.0", - "resolve-cwd": "^2.0.0", - "resolve-url": "^0.2.1", - "resolve-from": "^3.0.0", - "ret": "^0.1.15", - "ripemd160": "^2.0.2", - "resolve-dir": "^1.0.1", - "retry": "^0.12.0", - "run-queue": "^1.0.3", - "safe-regex": "^1.1.0", - "scheduler": "^0.19.1", - "safe-buffer": "^5.2.1", - "safer-buffer": "^2.1.2", - "selfsigned": "^1.10.14", - "schema-utils": "^1.0.0", - "select-hose": "^2.0.0", - "semver": "^5.7.2", - "serialize-javascript": "^4.0.0", - "send": "^0.18.0", - "serve-index": "^1.9.1", - "set-blocking": "^2.0.0", - "set-value": "^2.0.1", - "serve-static": "^1.15.0", - "setimmediate": "^1.0.5", - "setprototypeof": "^1.2.0", - "shebang-regex": "^1.0.0", - "sha.js": "^2.4.11", - "side-channel": "^1.0.4", - "signal-exit": "^3.0.7", - "shebang-command": "^1.2.0", - "slash": "^1.0.0", - "snapdragon": "^0.8.2", - "snapdragon-util": "^3.0.1", - "sockjs": "^0.3.24", - "snapdragon-node": "^2.1.1", - "sockjs-client": "^1.6.1", - "source-list-map": "^2.0.1", - "source-map": "^0.5.7", - "source-map-resolve": "^0.5.3", - "source-map-url": "^0.4.1", - "source-map-support": "^0.4.18", - "spdy": "^4.0.2", - "spdy-transport": "^3.0.0", - "ssri": "^6.0.2", - "static-extend": "^0.1.2", - "stream-browserify": "^2.0.2", - "split-string": "^3.1.0", - "statuses": "^2.0.1", - "stream-each": "^1.2.3", - "stream-shift": "^1.0.1", - "stream-http": "^2.8.3", - "string-width": "^3.1.0", - "string_decoder": "^1.3.0", - "strip-ansi": "^3.0.1", - "supports-color": "^2.0.0", - "tapable": "^1.1.3", - "strip-eof": "^1.0.0", - "terser-webpack-plugin": "^1.4.5", - "terser": "^4.8.1", - "timers-browserify": "^2.0.12", - "through2": "^2.0.5", - "to-arraybuffer": "^1.0.1", - "thunky": "^1.1.0", - "to-fast-properties": "^1.0.3", - "to-regex": "^3.0.2", - "to-object-path": "^0.3.0", - "toidentifier": "^1.0.1", - "to-regex-range": "^2.1.1", - "trim-right": "^1.0.1", - "tty-browserify": "^0.0.0", - "type-is": "^1.6.18", - "typedarray": "^0.0.6", - "unique-filename": "^1.1.1", - "union-value": "^1.0.1", - "unique-slug": "^2.0.2", - "unpipe": "^1.0.0", - "unset-value": "^1.0.0", - "urix": "^0.1.0", - "uri-js": "^4.4.1", - "url-parse": "^1.5.10", - "upath": "^1.2.0", - "util-deprecate": "^1.0.2", - "util": "^0.11.1", - "utils-merge": "^1.0.1", - "url": "^0.11.2", - "use": "^3.1.1", - "uuid": "^8.3.2", - "v8-compile-cache": "^2.4.0", - "vary": "^1.1.2", - "watchpack-chokidar2": "^2.0.1", - "watchpack": "^1.7.5", - "wbuf": "^1.7.3", - "vm-browserify": "^1.1.2", - "webpack-log": "^2.0.0", - "webpack-dev-middleware": "^3.7.3", - "websocket-extensions": "^0.1.4", - "websocket-driver": "^0.7.4", - "webpack-sources": "^1.4.3", - "wrap-ansi": "^5.1.0", - "which": "^1.3.1", - "worker-farm": "^1.7.0", - "which-module": "^2.0.1", - "wrappy": "^1.0.2", - "ws": "^6.2.2", - "xtend": "^4.0.2", - "yallist": "^3.1.1", - "y18n": "^4.0.3", - "yargs": "^13.3.2", - "yargs-parser": "^13.1.2" - } + "homepage": "https://github.com/elsouza1985/react-org-chart#readme" }