dagrejs-dagre-d3-92981c1/ 0000775 0000000 0000000 00000000000 13571513126 0015003 5 ustar 00root root 0000000 0000000 dagrejs-dagre-d3-92981c1/.eslintrc.json 0000664 0000000 0000000 00000000355 13571513126 0017602 0 ustar 00root root 0000000 0000000 { "env": { "browser": true, "node": true, "mocha": true }, "extends": "eslint:recommended", "rules": { "indent": [ "error", 2 ], "linebreak-style": [ "error", "unix" ], "semi": [ "error", "always" ] } } dagrejs-dagre-d3-92981c1/.gitignore 0000664 0000000 0000000 00000000146 13571513126 0016774 0 ustar 00root root 0000000 0000000 /bower_components /build /dist/demo /node_modules .vscode .idea *.iml *.ipr yarn.lock *.swp dagrejs-dagre-d3-92981c1/.jshintrc 0000664 0000000 0000000 00000000327 13571513126 0016632 0 ustar 00root root 0000000 0000000 { "eqeqeq": true, "newcap": true, "quotmark": true, "unused": true, "trailing": true, "laxbreak": true, "node": true, "expr": true, "globals": { "location": false } } dagrejs-dagre-d3-92981c1/.npmignore 0000664 0000000 0000000 00000000074 13571513126 0017003 0 ustar 00root root 0000000 0000000 /browser.js /build /demo /Makefile /node_modules /src /test dagrejs-dagre-d3-92981c1/LICENSE 0000664 0000000 0000000 00000002041 13571513126 0016005 0 ustar 00root root 0000000 0000000 Copyright (c) 2013 Chris Pettitt Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. dagrejs-dagre-d3-92981c1/Makefile 0000664 0000000 0000000 00000004630 13571513126 0016446 0 ustar 00root root 0000000 0000000 MOD = dagre-d3 NODE = node NPM = npm BROWSERIFY = ./node_modules/browserify/bin/cmd.js ISTANBUL = ./node_modules/istanbul/lib/cli.js JSHINT = ./node_modules/jshint/bin/jshint ESLINT = ./node_modules/eslint/bin/eslint.js KARMA = ./node_modules/karma/bin/karma MOCHA = ./node_modules/mocha/bin/_mocha PHANTOMJS = ./node_modules/phantomjs-prebuilt/bin/phantomjs UGLIFY = ./node_modules/uglify-js/bin/uglifyjs ISTANBUL_OPTS = --dir $(COVERAGE_DIR) --report html JSHINT_OPTS = --reporter node_modules/jshint-stylish/stylish.js MOCHA_OPTS = -R dot BUILD_DIR = build COVERAGE_DIR = $(BUILD_DIR)/cov DIST_DIR = dist DEMO_FILES = $(shell find demo -type f) SRC_FILES = index.js lib/version.js $(shell find lib -type f -name '*.js') BUILD_FILES = $(addprefix $(BUILD_DIR)/dist/, \ $(MOD).js $(MOD).min.js \ $(MOD).core.js $(MOD).core.min.js \ $(DEMO_FILES)) DIRS = $(BUILD_DIR) $(BUILD_DIR)/dist $(BUILD_DIR)/dist/demo .PHONY: all clean browser-test demo-test test dist all: test lint lib/version.js: package.json @src/release/make-version.js > $@ $(DIRS): @mkdir -p $@ lint: @$(ESLINT) $(SRC_FILES) test: browser-test demo-test node-test browser-test: $(BUILD_FILES) $(KARMA) start --single-run $(KARMA_OPTS) $(KARMA) start karma.core.conf.js --single-run $(KARMA_OPTS) demo-test: test/demo-test.js | $(BUILD_FILES) echo $(PHANTOMJS) $< $(PHANTOMJS) $< node-test: test/node-test.js | $(BUILD_FILES) $(NODE) $< bower.json: package.json src/release/make-bower.json.js @src/release/make-bower.json.js > $@ $(BUILD_DIR)/dist/$(MOD).js: index.js $(SRC_FILES) | $(BUILD_DIR)/dist node_modules @$(BROWSERIFY) $< > $@ -s dagreD3 $(BUILD_DIR)/dist/$(MOD).min.js: $(BUILD_DIR)/dist/$(MOD).js | $(BUILD_DIR)/dist @$(UGLIFY) $< --comments '@license' --source-map --output $@ $(BUILD_DIR)/dist/$(MOD).core.js: index.js $(SRC_FILES) | $(BUILD_DIR)/dist node_modules @$(BROWSERIFY) $< > $@ --no-bundle-external -s dagreD3 $(BUILD_DIR)/dist/$(MOD).core.min.js: $(BUILD_DIR)/dist/$(MOD).core.js | $(BUILD_DIR)/dist @$(UGLIFY) $< --comments '@license' --source-map --output $@ $(BUILD_DIR)/dist/demo/%: demo/% | $(BUILD_DIR)/dist/demo @cp $< $@ dist: $(BUILD_FILES) bower.json test @rm -rf $@ @mkdir -p $@ @cp -r $(BUILD_DIR)/dist/* $@ release: dist @echo @echo Starting release... @echo @src/release/release.sh $(MOD) dist clean: rm -rf $(BUILD_DIR) rm -rf $(DIST_DIR)/demo node_modules: package.json @$(NPM) install @touch $@ dagrejs-dagre-d3-92981c1/README.md 0000664 0000000 0000000 00000001005 13571513126 0016256 0 ustar 00root root 0000000 0000000 # dagre-d3 - A D3-based renderer for dagre [Dagre](https://github.com/dagrejs/dagre) is a JavaScript library that makes it easy to lay out directed graphs on the client-side. The dagre-d3 library acts as a front-end to dagre, providing actual rendering using [D3](http://d3js.org). For more details, including examples and configuration options, please see our [wiki](https://github.com/dagrejs/dagre-d3/wiki). ## License dagre-d3 is licensed under the terms of the MIT License. See the LICENSE file for details. dagrejs-dagre-d3-92981c1/bower.json 0000664 0000000 0000000 00000000706 13571513126 0017017 0 ustar 00root root 0000000 0000000 { "name": "dagre-d3", "version": "0.6.4", "main": [ "dist/dagre-d3.core.js" ], "ignore": [ ".*", "README.md", "CHANGELOG.md", "Makefile", "browser.js", "dist/dagre-d3.js", "dist/dagre-d3.min.js", "index.js", "karma*", "lib/**", "package.json", "src/**", "test/**" ], "dependencies": { "d3": "^5.14", "dagre": "^0.8.5", "graphlib": "^2.1.8", "lodash": "^4.17.15" } } dagrejs-dagre-d3-92981c1/demo/ 0000775 0000000 0000000 00000000000 13571513126 0015727 5 ustar 00root root 0000000 0000000 dagrejs-dagre-d3-92981c1/demo/arrows.html 0000664 0000000 0000000 00000003121 13571513126 0020127 0 ustar 00root root 0000000 0000000
A sample that shows the different arrows available in dagre-d3.
An example of visualizing clusters. This example shows how clusters can be applied to a rendered graph.
A sample showing how to use DOM nodes in a graph. Note that IE does not support this technique.