pill_chart 1.0.1 → 1.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e6caa8f5bc8e610ff73f24218f4341b367dc6660
4
- data.tar.gz: 7629915095214c95ea439242f5a884966914ca32
3
+ metadata.gz: 9ec32abdf67ce0d179656aa8b07435d711e101c7
4
+ data.tar.gz: 643c133491dc0658ce6fc6706dab22d1ac22044c
5
5
  SHA512:
6
- metadata.gz: 330136c65db70b0a01c41c98c038b251cb904c81b172077bf514173bbcf29d9f6fab03d7474740fb626ba04835d9439f11b6b803cd2ee0e2868e0f9f4b1620b7
7
- data.tar.gz: 72575f650b69443ea70b94367df0432c52f8d5a66eea2c2d693de4108ded239a36d61baa184c0e8590afdbf94e8e9d18af223fe74531143819b824fb05520e72
6
+ metadata.gz: bf00bbe64b9091f6e57f7fc3e4a576fca9aa50f4f5498c6d45db7909f3da7ffaa88431155019dfdc50c6c339394c5d9563ab5b0ec81c25df77fad5096da22da2
7
+ data.tar.gz: d103f1caecbcc3355ab9dc8ffee22f210cbc13a6a648e08c6422fc66bc2ebe1ba78109071233455efaab8c2f077e6640032d5adf20c765f6432b0d7d8ea4ea3a
@@ -63,7 +63,7 @@ module PillChart
63
63
  def drawBackgroundPath
64
64
  render = []
65
65
  render << "<rect"
66
- render << "id=\"background\" x=\"0\" cy=\"0\" height=\"20\" width=\"60\""
66
+ render << "id=\"background\" x=\"0\" cy=\"0\" height=\"#{@height}\" width=\"#{@width}\""
67
67
  render << "style=\"fill: #{@config['background']}; mask: url(#pill-base)\""
68
68
  render << "/>"
69
69
  @paths.push([:background], render.join(" "))
@@ -76,7 +76,7 @@ module PillChart
76
76
  def drawSimpleForegroundPath
77
77
  render = []
78
78
  render << "<rect"
79
- render << "id=\"foreground\" x=\"0\" cy=\"0\" height=\"20\" width=\"#{@valueWidth}\""
79
+ render << "id=\"foreground\" x=\"0\" cy=\"0\" height=\"#{@height}\" width=\"#{@valueWidth}\""
80
80
  render << "style=\"fill: #{@config['foreground']}; mask: url(#pill-base)\""
81
81
  render << "/>"
82
82
  @paths.push([:foreground], render.join(" "))
@@ -94,7 +94,7 @@ module PillChart
94
94
  end
95
95
  render = []
96
96
  render << "<rect"
97
- render << "id=\"foreground\" x=\"0\" cy=\"0\" height=\"20\" width=\"#{@valueWidth}\""
97
+ render << "id=\"foreground\" x=\"0\" cy=\"0\" height=\"#{@height}\" width=\"#{@valueWidth}\""
98
98
  render << "style=\"fill: #{barColor}; mask: url(#pill-base)\""
99
99
  render << "/>"
100
100
  @paths.push([:foreground], render.join(" "))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pill_chart
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Aubin