mindmapviz 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/mindmapviz.rb +29 -5
- metadata +7 -7
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86ecaf5267be58577a3aff2199ffb3ca164ba76a689762b11c4326c6fdb229ea
|
4
|
+
data.tar.gz: 40b4359e4140fbd5ee48112ea64a38b4dc7456817f3aebda71dcdb51a54461e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6a65fcc009a1abf86323e501cdfc219fa51de2208bba09c5867663613487590bcf650bff82cc3bda71fffd4ea34fb4fe6fd5e1eb4237e0f8a3582568152a912
|
7
|
+
data.tar.gz: 2c042ed339a96e06ad96f8cf984d838c517163ae4d01582d765898fbb1f84b7b803db934f5888f5d6411966b6f670871d32817d454658b2345cfdd2577b240d6
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/mindmapviz.rb
CHANGED
@@ -9,6 +9,30 @@ require 'pxgraphviz'
|
|
9
9
|
# inspired by https://github.com/bingwei/ruby-graphviz-mindmap
|
10
10
|
|
11
11
|
|
12
|
+
=begin
|
13
|
+
notes:
|
14
|
+
|
15
|
+
coloured box for central point
|
16
|
+
box for nodes
|
17
|
+
text for leaves
|
18
|
+
|
19
|
+
or
|
20
|
+
ellipse for central point
|
21
|
+
text for nodes and leaves
|
22
|
+
|
23
|
+
or
|
24
|
+
|
25
|
+
coloure dellipse for central point
|
26
|
+
text for nodes and leaves
|
27
|
+
- larger text and thicker connections for more important things
|
28
|
+
coloured branches for different nodes
|
29
|
+
|
30
|
+
For text only use shape: 'none'
|
31
|
+
=end
|
32
|
+
|
33
|
+
# inspired by https://github.com/bingwei/ruby-graphviz-mindmap
|
34
|
+
|
35
|
+
|
12
36
|
class Mindmapviz < PxGraphViz
|
13
37
|
using ColouredText
|
14
38
|
|
@@ -57,8 +81,8 @@ EOF
|
|
57
81
|
|
58
82
|
style ||= default_stylesheet()
|
59
83
|
|
60
|
-
super(raw_doc, style: style
|
61
|
-
|
84
|
+
super(raw_doc, style: style, debug: debug, fill: fill,
|
85
|
+
stroke: stroke, text_color: text_color)
|
62
86
|
@css = "
|
63
87
|
.node ellipse {stroke: #{stroke}; fill: #{fill}}
|
64
88
|
.node text {fill: #{text_color}}
|
@@ -76,8 +100,8 @@ EOF
|
|
76
100
|
<<STYLE
|
77
101
|
node {
|
78
102
|
color: #ddaa66;
|
79
|
-
fillcolor: #
|
80
|
-
fontcolor: #
|
103
|
+
fillcolor: #{@fill};
|
104
|
+
fontcolor: #{@text_color};
|
81
105
|
fontname: 'Trebuchet MS';
|
82
106
|
fontsize: 8;
|
83
107
|
margin: 0.0;
|
@@ -92,7 +116,7 @@ EOF
|
|
92
116
|
|
93
117
|
edge {
|
94
118
|
arrowsize: 0.5;
|
95
|
-
color: #
|
119
|
+
color: #{@stroke};
|
96
120
|
fontcolor: #444444;
|
97
121
|
fontname: Verdana;
|
98
122
|
fontsize: 8;
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mindmapviz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -41,22 +41,22 @@ dependencies:
|
|
41
41
|
name: pxgraphviz
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- - ">="
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: 0.5.0
|
47
44
|
- - "~>"
|
48
45
|
- !ruby/object:Gem::Version
|
49
46
|
version: '0.5'
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 0.5.2
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
|
-
- - ">="
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
version: 0.5.0
|
57
54
|
- - "~>"
|
58
55
|
- !ruby/object:Gem::Version
|
59
56
|
version: '0.5'
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: 0.5.2
|
60
60
|
description:
|
61
61
|
email: james@jamesrobertson.eu
|
62
62
|
executables: []
|
metadata.gz.sig
CHANGED
Binary file
|