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 +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +1 -1
- data/lib/vega/spec.rb +5 -4
- data/lib/vega/version.rb +1 -1
- data/vendor/assets/javascripts/vega-embed.js +0 -1
- data/vendor/assets/javascripts/vega-lite.js +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30bfea4df021c4f5b65530adbc1c83f5a07f5bf323faf0b25e817f9b8e2d56b7
|
4
|
+
data.tar.gz: 06ab9a178a4edfea2a0360a95dd33eca2e3197bbdd196bb764c52114028ea511
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6e7098cdb5660031ab98e3838c9bb68d25bf338614fd41e0fe2b31588aef2c4953cce0059a61c0338075533de5a17076a050cf75ff95e52a2a0d46611dd6954
|
7
|
+
data.tar.gz: 9d79099d412b36555e9cacb5594d5022706760ea05a880606920b326b77a09f2d373433dc1f82dde49d451c3a76f035f8b6d7de1c197a1361c8735faee90919f
|
data/CHANGELOG.md
CHANGED
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/
|
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
|
36
|
-
'vega-util': 'https://cdn.jsdelivr.net/npm/vega-util@1.17.0
|
37
|
-
'vega-lite': 'https://cdn.jsdelivr.net/npm/vega-lite@5.1.1
|
38
|
-
'vega-embed': 'https://cdn.jsdelivr.net/npm/vega-embed@6.19.1
|
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
@@ -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.
|
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-
|
11
|
+
date: 2021-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: andrew@ankane.org
|