vega 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
  SHA256:
3
- metadata.gz: 81ef88e1766446a7d367331b58abcc2113a05cc3a914891dc81f5f82a026070f
4
- data.tar.gz: 31f67095fcebf1cafa5bf8e50b81bf8a6830082d43bb383a7b6c299034907d24
3
+ metadata.gz: 30bfea4df021c4f5b65530adbc1c83f5a07f5bf323faf0b25e817f9b8e2d56b7
4
+ data.tar.gz: 06ab9a178a4edfea2a0360a95dd33eca2e3197bbdd196bb764c52114028ea511
5
5
  SHA512:
6
- metadata.gz: fbd22ed80b972dbbc1ab134755a4903b255b328963a8533e7e7cae29403cd1ac81aca3f84f8a0b0f42e93515a18d85a5ec582193a3a1d020f79527a66b8fd1aa
7
- data.tar.gz: 19fad72d73ceddfaf669e3a0c0a970bdaeac5996018522e3acffca488533723e4e79a9609741399aefc1480a74891ac8f2b4db1a62540f107694fcc3e25e0a8d
6
+ metadata.gz: f6e7098cdb5660031ab98e3838c9bb68d25bf338614fd41e0fe2b31588aef2c4953cce0059a61c0338075533de5a17076a050cf75ff95e52a2a0d46611dd6954
7
+ data.tar.gz: 9d79099d412b36555e9cacb5594d5022706760ea05a880606920b326b77a09f2d373433dc1f82dde49d451c3a76f035f8b6d7de1c197a1361c8735faee90919f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.2.1 (2021-10-24)
2
+
3
+ - Added support for `nil` height
4
+ - Fixed source map warnings
5
+
1
6
  ## 0.2.0 (2021-10-23)
2
7
 
3
8
  - Added experimental support for `importmap-rails`
data/README.md CHANGED
@@ -307,7 +307,7 @@ You can also create a specification by hand
307
307
 
308
308
  ```ruby
309
309
  spec = {
310
- "$schema" => "https://vega.github.io/schema/vega-lite/v4.json",
310
+ "$schema" => "https://vega.github.io/schema/vega-lite/v5.json",
311
311
  "data" => {"url" => "https://www.example.com"},
312
312
  # ...
313
313
  }
data/lib/vega/spec.rb CHANGED
@@ -32,10 +32,10 @@ module Vega
32
32
  <script>
33
33
  require.config({
34
34
  paths: {
35
- 'vega': 'https://cdn.jsdelivr.net/npm/vega@5.21.0?noext',
36
- 'vega-util': 'https://cdn.jsdelivr.net/npm/vega-util@1.17.0?noext',
37
- 'vega-lite': 'https://cdn.jsdelivr.net/npm/vega-lite@5.1.1?noext',
38
- 'vega-embed': 'https://cdn.jsdelivr.net/npm/vega-embed@6.19.1?noext'
35
+ 'vega': 'https://cdn.jsdelivr.net/npm/vega@5.21.0/build/vega.min',
36
+ 'vega-util': 'https://cdn.jsdelivr.net/npm/vega-util@1.17.0/build/vega-util.min',
37
+ 'vega-lite': 'https://cdn.jsdelivr.net/npm/vega-lite@5.1.1/build/vega-lite.min',
38
+ 'vega-embed': 'https://cdn.jsdelivr.net/npm/vega-embed@6.19.1/build/vega-embed.min'
39
39
  }
40
40
  });
41
41
  require(['vega', 'vega-util', 'vega-lite', 'vega-embed'], function(vega, vegaUtil, vegaLite, vegaEmbed) {
@@ -52,6 +52,7 @@ module Vega
52
52
  id = "chart-#{SecureRandom.hex(16)}" # 2**128 values
53
53
  width = @spec["width"].is_a?(Integer) ? "#{@spec["width"]}px" : "100%"
54
54
  height = @spec["height"].is_a?(Integer) ? "#{@spec["height"]}px" : "300px"
55
+ height = "auto" if @spec["height"].nil?
55
56
 
56
57
  # user can override with usermeta: {embedOptions: ...}
57
58
  embed_options = {actions: false}
data/lib/vega/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Vega
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -6066,4 +6066,3 @@
6066
6066
  return wrapper;
6067
6067
 
6068
6068
  })));
6069
- //# sourceMappingURL=vega-embed.js.map
@@ -25485,4 +25485,3 @@
25485
25485
  Object.defineProperty(exports, '__esModule', { value: true });
25486
25486
 
25487
25487
  })));
25488
- //# sourceMappingURL=vega-lite.js.map
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vega
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
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-23 00:00:00.000000000 Z
11
+ date: 2021-10-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: andrew@ankane.org