rails-erd-d3 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/templates/d3.html.erb +13 -12
- data/rails-erd-d3.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0bcce33a5a0973906a644225d4eb35ef4036ad93
|
4
|
+
data.tar.gz: 286ff8460c731f77176597eee9af5868cb5cb14a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 575cb3adad7cd62ea378c44f0c7c0714e7ce2e2dd899efd0f929b45bb517cb491ce5311e39f7a898ebddc4a78f17aed411217eecb05f598879fc127c663ef4b3
|
7
|
+
data.tar.gz: 20fae5e7423f1ffb15af3632b0ee64e4eda6d75b835362afe64787bb7b44a124080fa3f5dc9c80416f4e78666913299b061f38d53fc41d2788ee12cac2841b89
|
data/lib/templates/d3.html.erb
CHANGED
@@ -15,17 +15,17 @@
|
|
15
15
|
.attr('width', width)
|
16
16
|
.style('background', 'white');
|
17
17
|
|
18
|
-
svg.append(
|
19
|
-
.append(
|
20
|
-
.attr(
|
21
|
-
.attr(
|
22
|
-
.attr(
|
23
|
-
.attr(
|
24
|
-
.attr(
|
25
|
-
.attr(
|
26
|
-
.attr(
|
27
|
-
.append(
|
28
|
-
.attr(
|
18
|
+
svg.append('defs')
|
19
|
+
.append('marker')
|
20
|
+
.attr('id', 'arrow')
|
21
|
+
.attr('viewBox', '0 -5 10 10')
|
22
|
+
.attr('refX', 32)
|
23
|
+
.attr('refY', 0)
|
24
|
+
.attr('markerWidth', 7)
|
25
|
+
.attr('markerHeight', 7)
|
26
|
+
.attr('orient', 'auto')
|
27
|
+
.append('svg:path')
|
28
|
+
.attr('d', 'M0,-5L10,0L0,5');
|
29
29
|
|
30
30
|
var simulation = d3.forceSimulation()
|
31
31
|
.force('link', d3.forceLink().id(function(d) { return d.index }))
|
@@ -43,7 +43,8 @@
|
|
43
43
|
.append('line')
|
44
44
|
.attr('class', function(d, i) { return data.nodes[d.source].label + ' ' + data.nodes[d.target].label })
|
45
45
|
.attr('stroke', function(d) { return colorScale(d.color) })
|
46
|
-
.attr('
|
46
|
+
.attr('stroke-width', 2)
|
47
|
+
.attr('marker-end', 'url(#arrow)');
|
47
48
|
|
48
49
|
var node = svg.selectAll('.node')
|
49
50
|
.data(data.nodes)
|
data/rails-erd-d3.gemspec
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = "rails-erd-d3"
|
7
7
|
spec.authors = ["Roman Krasavtsev"]
|
8
8
|
spec.email = ["mr.krasavtsev@gmail.com"]
|
9
|
-
spec.version = "0.6.
|
9
|
+
spec.version = "0.6.1"
|
10
10
|
spec.summary = "Entity–relationship diagram with D3.js for Rails application"
|
11
11
|
spec.description = "This gem creates entity–relationship diagram with D3.js for your Rails application"
|
12
12
|
spec.homepage = "https://github.com/RomanKrasavtsev/rails-erd-d3"
|