Skip to content

Commit

Permalink
using only d3 as dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Desmaisons committed Sep 15, 2017
1 parent e80acfe commit 0a357ee
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 18 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
node_modules/
npm-debug.log
test/unit/coverage
/.vscode
3 changes: 3 additions & 0 deletions build/webpack.base.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ module.exports = {
eslint: {
formatter: require('eslint-friendly-formatter')
},
externals:[{
xmlhttprequest: '{XMLHttpRequest:XMLHttpRequest}'
}],
vue: {
loaders: utils.cssLoaders({ sourceMap: useCssSourceMap }),
postcss: [
Expand Down
4 changes: 2 additions & 2 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vued3tree",
"version": "3.4.2",
"version": "3.4.3",
"description": "A Vue.js project",
"author": "desmaisons_david <desmaisons_david@hotmail.com>",
"scripts": {
Expand All @@ -22,11 +22,7 @@
"web-components"
],
"dependencies": {
"d3-drag": "^1.1.1",
"d3-hierarchy": "^1.0.3",
"d3-selection": "^1.1.0",
"d3-shape": "^1.2.0",
"d3-zoom": "^1.5.0",
"d3": "^4.10.2",
"vue": "^2.1.0",
"vue-resize-directive": "^1.0.0"
},
Expand Down
5 changes: 1 addition & 4 deletions src/HierarchicalEdgeBundling.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ import resize from 'vue-resize-directive'
import layout from './circular-layout'
import {anchorTodx, compareNode, removeTextAndGraph, roundPath, toPromise, translate, updateTexts} from './d3-utils'
import * as d3selection from 'd3-selection'
import * as d3Shape from 'd3-shape'
import * as d3Hierarchy from 'd3-hierarchy'
const d3 = Object.assign(d3selection, d3Hierarchy, d3Shape)
import * as d3 from 'd3'
const props = {
data: Object,
Expand Down
6 changes: 1 addition & 5 deletions src/Tree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ import euclidean from './euclidean-layout'
import circular from './circular-layout'
import {compareString, anchorTodx, drawLink, toPromise, findInParents, mapMany, removeTextAndGraph, translate} from './d3-utils'
import * as d3selection from 'd3-selection'
import * as d3zoom from 'd3-zoom'
import * as d3Hierarchy from 'd3-hierarchy'
import * as d3Drag from 'd3-drag'
const d3 = Object.assign(d3selection, d3Hierarchy, d3zoom, d3Drag)
import * as d3 from 'd3'
const layout = {
euclidean,
Expand Down

0 comments on commit 0a357ee

Please sign in to comment.