mindmapviz 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f7cf0b671cb87edee8ba01f25392d6a94917432aa47482d068ca66fa8c32992
4
- data.tar.gz: ee877d88ccd0f7ff0c51229c4b4ad50a934a03da138c7f56110d851fab0d47a2
3
+ metadata.gz: 86ecaf5267be58577a3aff2199ffb3ca164ba76a689762b11c4326c6fdb229ea
4
+ data.tar.gz: 40b4359e4140fbd5ee48112ea64a38b4dc7456817f3aebda71dcdb51a54461e2
5
5
  SHA512:
6
- metadata.gz: 100e5a0f97e40292166ffb5d5106321f73e3e0ba5e219374ec7472fa7ba233bef0d103ec097150ec0b16d554338e537a42422071d96c654964c10afd97b897e2
7
- data.tar.gz: a9fe8f5fba944e93ddec400ef1228d9cc23064de5094731be9c7d6b4f132f00ff51b2ee352091d891cdb3d4559d5b2b59d37f0673a0618a1206ec575395672fb
6
+ metadata.gz: b6a65fcc009a1abf86323e501cdfc219fa51de2208bba09c5867663613487590bcf650bff82cc3bda71fffd4ea34fb4fe6fd5e1eb4237e0f8a3582568152a912
7
+ data.tar.gz: 2c042ed339a96e06ad96f8cf984d838c517163ae4d01582d765898fbb1f84b7b803db934f5888f5d6411966b6f670871d32817d454658b2345cfdd2577b240d6
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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: debug: debug, fill: fill,
61
- stroke: stroke, text_color: text_color)
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: #ccffcc;
80
- fontcolor: #330055;
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: #999999;
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.1
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