material_raingular-d3 0.2.0 → 0.2.1

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
  SHA1:
3
- metadata.gz: a4d591e5ddc3b5ce40657d769db5dd414cc94614
4
- data.tar.gz: 7ff1d5cb8e6102c46c17508441c75e5b8ce73ddc
3
+ metadata.gz: e8468932be38b1f1f2e28820ad8347729fa3e54f
4
+ data.tar.gz: 3412543b6e437b00bc5dc162b6125ca15caf0b28
5
5
  SHA512:
6
- metadata.gz: 0ad9ab358094a62c455344ca3057e7fb90aaed576e14e2f2bbb42e3b4b1902b48d45d9fba21ce8d51d8ea0be5de1c053bc5d33e12e2adcdd4caffb4fb08cd174
7
- data.tar.gz: e4c91e62dc89717dc1f60bb7425bc69a434d87fd7223773c1659dc7bbfa223d79675c49f9f952e8b5696ca10259ae9bc6924e58fbe6b3d7b5d95e7b23aca0e7f
6
+ metadata.gz: 76b78f33ceccfd7f3ecb7c518be8e1175b3f69a0a5ae118b6b42bab1fc05db46c283d37e99be8139e13475744a43bff23c185b3ec6f1efa3713b87693fcd66fe
7
+ data.tar.gz: bcd3763519ad084f9c10b1ed20fb487a1976954304906a075f910c7cee04b23f2bf2d0ae8c2e5379e2a443f8541b308ea2599a1ed607a545e86104c2f647808f
@@ -22,7 +22,8 @@ class MaterialRaingular.d3.Directives.PieChartModel extends AngularDirectiveMode
22
22
  @slices.push(slice) unless @slices.includes(slice)
23
23
  return @slices.index(slice)
24
24
  removeSlice: (slice) ->
25
- index = @slices.index(slice)
25
+ index = @slices.indexOf(slice)
26
+ return unless index >= 0
26
27
  @slices.splice(index,1)
27
28
  @values.splice(index,1)
28
29
  @drawChart()
@@ -63,7 +63,7 @@ class MaterialRaingular.d3.Directives.MrD3StackedBar extends AngularDirectiveMod
63
63
  bar.attr('y',y)
64
64
  bar.attr('height',height)
65
65
  bar.attr('x',usedSpace)
66
- bar.attr('width',barWidth)
66
+ bar.attr('width',barWidth || 0)
67
67
  usedSpace += barWidth
68
68
  text.attr('x', parseFloat(bar.attr('width'))/2 + parseFloat(bar.attr('x')))
69
69
  .attr('y',parseFloat(bar.attr('y')) + parseFloat(bar.attr('height'))/2 + 5)
@@ -1,5 +1,5 @@
1
1
  module MaterialRaingular
2
2
  module D3
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: material_raingular-d3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Moody