beyond-rails 0.0.196 → 0.0.201

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: af6f1f88484a8fb81cb7fbd3c767a9fa299aa7147328796ca7a6c03a1b91f2e6
4
- data.tar.gz: 78d0af543fe477024b913db9a32fe8f5b43aea55d15cb61b9e50122c2c535fc2
3
+ metadata.gz: b9759e033d571fadd60f7ff3a2284398e363f2dfadbb6ab3db54abf8f5863d7a
4
+ data.tar.gz: 037e12fb98286c223a7187fba28c8c88172e96a46cce3f5ef0d7537cadefd59c
5
5
  SHA512:
6
- metadata.gz: 66327bc01ecd8e2feaccbd2ce3bb83b90333c922e668e4f2edbae8dea61e61f98d2dfccbd8dff7d46d6c80a02b0b9a6ec59369a806805d161c6bb698089912c5
7
- data.tar.gz: e384f507cd9ab6616bf820a95a6fcf141b016f85d8d72c0b2565cbf455f1ce8bde039bf95362bddff55abb5ca00ffc60bc3cbbdd7f54968f0d36002f33931f3f
6
+ metadata.gz: 50b799c4d35bcbf22b8d765cf2c65a3fbd5513cefbd4c0c61106b99821f0e8b21615a7065d6dde23ddeebc30c84cee9e69a03799e52bec7e60f544ce37065ed2
7
+ data.tar.gz: 0df9f28b53a6a310d92c7408189261c0b018fbdc62db9f5bfe59eb0f21540603105cbe59059a87177b2efc921d031943964eb8f948e3df298549ef69475aed8c
@@ -20,7 +20,7 @@ export default class BarChart {
20
20
  this.options = options
21
21
  this.bars = []
22
22
 
23
- this.height = options.height || 186
23
+ this.height = options.height
24
24
  this.width = options.width
25
25
 
26
26
  this.toYLabel = isDef(options.toYLabel) ? mem(options.toYLabel) : (v => v)
@@ -46,7 +46,7 @@ export default class BarChart {
46
46
 
47
47
  init() {
48
48
  this.setDpr()
49
- this.setDomWidthIfNeeded()
49
+ this.setDomSizeIfNeeded()
50
50
  this.setCanvas()
51
51
  this.clear()
52
52
  this.bindMedia()
@@ -342,7 +342,7 @@ export default class BarChart {
342
342
  refresh() {
343
343
  this.raf(() => {
344
344
  this.clearBarPos()
345
- this.setDomWidthIfNeeded()
345
+ this.setDomSizeIfNeeded()
346
346
  this.setCanvasSize(this.canvas)
347
347
  this.setLabelWidths()
348
348
  this.setLabelHeights()
@@ -41,7 +41,7 @@ export default class LineChart {
41
41
  this.dom = dom
42
42
  this.options = options
43
43
  this.pointsArr = []
44
- this.height = options.height || 150
44
+ this.height = options.height
45
45
  this.width = options.width
46
46
 
47
47
  this.toXLabel = isDef(options.toXLabel) ? mem(options.toXLabel) : (v => v)
@@ -76,7 +76,7 @@ export default class LineChart {
76
76
 
77
77
  init() {
78
78
  this.setDpr()
79
- this.setDomWidthIfNeeded()
79
+ this.setDomSizeIfNeeded()
80
80
  this.setCanvas()
81
81
  this.clear()
82
82
  this.bindMedia()
@@ -438,7 +438,7 @@ export default class LineChart {
438
438
  refresh() {
439
439
  this.raf(() => {
440
440
  this.clearPointPos()
441
- this.setDomWidthIfNeeded()
441
+ this.setDomSizeIfNeeded()
442
442
  this.setCanvasSize(this.canvas)
443
443
  this.layers.forEach(layer => this.setCanvasSize(layer.canvas))
444
444
  this.setLabelWidths()
@@ -205,10 +205,13 @@ export default function chartCommon(target) {
205
205
  canvas.getContext('2d').scale(dpr, dpr)
206
206
  }
207
207
 
208
- setDomWidthIfNeeded() {
208
+ setDomSizeIfNeeded() {
209
209
  if (isUndef(this.options.width)) {
210
210
  this.width = this.dom.offsetWidth
211
211
  }
212
+ if (isUndef(this.options.height)) {
213
+ this.height = this.dom.offsetHeight
214
+ }
212
215
  }
213
216
 
214
217
  setDpr() {
@@ -122,13 +122,13 @@ $color-active: #5469d4;
122
122
  }
123
123
 
124
124
  .align-left {
125
- text-align: left;
125
+ text-align: left !important;
126
126
  }
127
127
  .align-right {
128
- text-align: right;
128
+ text-align: right !important;
129
129
  }
130
130
  .align-center {
131
- text-align: center;
131
+ text-align: center !important;
132
132
  }
133
133
 
134
134
  .sr-only {
@@ -2,6 +2,7 @@
2
2
  outline: 0;
3
3
  background-color: #fff;
4
4
  display: inline-flex;
5
+ justify-content: center;
5
6
  align-items: center;
6
7
  border: 0;
7
8
  padding: 6px 12px 7px;
@@ -66,7 +67,7 @@
66
67
  cursor: not-allowed;
67
68
  }
68
69
  .icon {
69
- margin-right: .7em;
70
+ margin-right: .4em;
70
71
  }
71
72
  }
72
73
  .btn-loader {
@@ -112,6 +113,9 @@
112
113
  &:focus {
113
114
  @include focus-outline;
114
115
  }
116
+ &.active {
117
+ background-color: #f3f3f7;
118
+ }
115
119
  }
116
120
 
117
121
  .btn .badge {
@@ -220,7 +220,7 @@ label {
220
220
  font-size: 80%;
221
221
  margin-top: .35rem;
222
222
  &:before {
223
- font-family: 'icomoon';
223
+ font-family: $beyond-icon-font-name;
224
224
  display: inline-block;
225
225
  }
226
226
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beyond-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.196
4
+ version: 0.0.201
5
5
  platform: ruby
6
6
  authors:
7
7
  - kmsheng
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-09-16 00:00:00.000000000 Z
12
+ date: 2020-09-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sassc