vega 0.2.4 → 0.2.5
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +3 -3
- data/lib/vega/spec.rb +2 -2
- data/lib/vega/version.rb +1 -1
- data/vendor/assets/javascripts/vega-embed.js +25 -16
- data/vendor/assets/javascripts/vega-lite.js +2468 -3371
- 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: 7c067bc284fb8cb8d590bc3840e1903c6da0ba49f55f9c0cc784d88358d0ff5c
|
4
|
+
data.tar.gz: 22268adc67db09659c8b7701f893f6df63cbd34810845b6bdcd8a359364b0df1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5257af439bd6fdb7530a3c036a75449fedb7b2a28efe0aa426761588f07e150de7327ce52dd8e138aebacb87c3ffdf7a484356d021395b37567c01217d0f4931
|
7
|
+
data.tar.gz: b360e400d2adb00623c8ec32b1d169260959e6a7b62f4d6723329aefc5177cfb8d60bb07d2d31c966d1442a126e787007bc0dae75eb0846eaf3cadcbc562ed0b
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -13,7 +13,7 @@ Works with Rails, iRuby, and other frameworks
|
|
13
13
|
Add this line to your application’s Gemfile:
|
14
14
|
|
15
15
|
```ruby
|
16
|
-
gem
|
16
|
+
gem "vega"
|
17
17
|
```
|
18
18
|
|
19
19
|
Then follow the instructions for how you plan to use it:
|
@@ -78,8 +78,8 @@ For Sinatra and other web frameworks, include the Vega JavaScript files on pages
|
|
78
78
|
|
79
79
|
```html
|
80
80
|
<script src="https://cdn.jsdelivr.net/npm/vega@5.21.0"></script>
|
81
|
-
<script src="https://cdn.jsdelivr.net/npm/vega-lite@5.
|
82
|
-
<script src="https://cdn.jsdelivr.net/npm/vega-embed@6.
|
81
|
+
<script src="https://cdn.jsdelivr.net/npm/vega-lite@5.2.0"></script>
|
82
|
+
<script src="https://cdn.jsdelivr.net/npm/vega-embed@6.20.5"></script>
|
83
83
|
```
|
84
84
|
|
85
85
|
## Getting Started
|
data/lib/vega/spec.rb
CHANGED
@@ -34,8 +34,8 @@ module Vega
|
|
34
34
|
paths: {
|
35
35
|
'vega': 'https://cdn.jsdelivr.net/npm/vega@5.21.0/build/vega.min',
|
36
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.
|
38
|
-
'vega-embed': 'https://cdn.jsdelivr.net/npm/vega-embed@6.20.
|
37
|
+
'vega-lite': 'https://cdn.jsdelivr.net/npm/vega-lite@5.2.0/build/vega-lite.min',
|
38
|
+
'vega-embed': 'https://cdn.jsdelivr.net/npm/vega-embed@6.20.5/build/vega-embed.min'
|
39
39
|
}
|
40
40
|
});
|
41
41
|
require(['vega', 'vega-util', 'vega-lite', 'vega-embed'], function(vega, vegaUtil, vegaLite, vegaEmbed) {
|
data/lib/vega/version.rb
CHANGED
@@ -1589,7 +1589,11 @@
|
|
1589
1589
|
|
1590
1590
|
try {
|
1591
1591
|
// add if support for Symbol.iterator is present
|
1592
|
-
|
1592
|
+
Yallist$1.prototype[Symbol.iterator] = function* () {
|
1593
|
+
for (let walker = this.head; walker; walker = walker.next) {
|
1594
|
+
yield walker.value;
|
1595
|
+
}
|
1596
|
+
};
|
1593
1597
|
} catch (er) {}
|
1594
1598
|
|
1595
1599
|
const Yallist = yallist;
|
@@ -4546,7 +4550,7 @@
|
|
4546
4550
|
}
|
4547
4551
|
|
4548
4552
|
// generated with build-style.sh
|
4549
|
-
var embedStyle = "
|
4553
|
+
var embedStyle = ".vega-embed {\n position: relative;\n display: inline-block;\n box-sizing: border-box;\n}\n.vega-embed.has-actions {\n padding-right: 38px;\n}\n.vega-embed details:not([open]) > :not(summary) {\n display: none !important;\n}\n.vega-embed summary {\n list-style: none;\n position: absolute;\n top: 0;\n right: 0;\n padding: 6px;\n z-index: 1000;\n background: white;\n box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);\n color: #1b1e23;\n border: 1px solid #aaa;\n border-radius: 999px;\n opacity: 0.2;\n transition: opacity 0.4s ease-in;\n outline: none;\n cursor: pointer;\n line-height: 0px;\n}\n.vega-embed summary::-webkit-details-marker {\n display: none;\n}\n.vega-embed summary:active {\n box-shadow: #aaa 0px 0px 0px 1px inset;\n}\n.vega-embed summary svg {\n width: 14px;\n height: 14px;\n}\n.vega-embed details[open] summary {\n opacity: 0.7;\n}\n.vega-embed:hover summary, .vega-embed:focus summary {\n opacity: 1 !important;\n transition: opacity 0.2s ease;\n}\n.vega-embed .vega-actions {\n position: absolute;\n z-index: 1001;\n top: 35px;\n right: -9px;\n display: flex;\n flex-direction: column;\n padding-bottom: 8px;\n padding-top: 8px;\n border-radius: 4px;\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);\n border: 1px solid #d9d9d9;\n background: white;\n animation-duration: 0.15s;\n animation-name: scale-in;\n animation-timing-function: cubic-bezier(0.2, 0, 0.13, 1.5);\n text-align: left;\n}\n.vega-embed .vega-actions a {\n padding: 8px 16px;\n font-family: sans-serif;\n font-size: 14px;\n font-weight: 600;\n white-space: nowrap;\n color: #434a56;\n text-decoration: none;\n}\n.vega-embed .vega-actions a:hover {\n background-color: #f7f7f9;\n color: black;\n}\n.vega-embed .vega-actions::before, .vega-embed .vega-actions::after {\n content: \"\";\n display: inline-block;\n position: absolute;\n}\n.vega-embed .vega-actions::before {\n left: auto;\n right: 14px;\n top: -16px;\n border: 8px solid #0000;\n border-bottom-color: #d9d9d9;\n}\n.vega-embed .vega-actions::after {\n left: auto;\n right: 15px;\n top: -14px;\n border: 7px solid #0000;\n border-bottom-color: #fff;\n}\n.vega-embed .chart-wrapper.fit-x {\n width: 100%;\n}\n.vega-embed .chart-wrapper.fit-y {\n height: 100%;\n}\n\n.vega-embed-wrapper {\n max-width: 100%;\n overflow: auto;\n padding-right: 14px;\n}\n\n@keyframes scale-in {\n from {\n opacity: 0;\n transform: scale(0.6);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n}\n";
|
4550
4554
|
|
4551
4555
|
if (!String.prototype.startsWith) {
|
4552
4556
|
// eslint-disable-next-line no-extend-native,func-names
|
@@ -4577,7 +4581,7 @@
|
|
4577
4581
|
}
|
4578
4582
|
|
4579
4583
|
var name = "vega-embed";
|
4580
|
-
var version$1 = "6.20.
|
4584
|
+
var version$1 = "6.20.5";
|
4581
4585
|
var description = "Publish Vega visualizations as embedded web components.";
|
4582
4586
|
var keywords = ["vega", "data", "visualization", "component", "embed"];
|
4583
4587
|
var repository = {
|
@@ -4602,31 +4606,34 @@
|
|
4602
4606
|
var unpkg = "build/vega-embed.min.js";
|
4603
4607
|
var jsdelivr = "build/vega-embed.min.js";
|
4604
4608
|
var types = "build/vega-embed.module.d.ts";
|
4605
|
-
var files = ["src", "build", "build-es5"];
|
4609
|
+
var files = ["src", "build", "build-es5", "patches"];
|
4606
4610
|
var devDependencies = {
|
4607
|
-
"@auto-it/conventional-commits": "^10.32.
|
4608
|
-
"@auto-it/first-time-contributor": "^10.32.
|
4611
|
+
"@auto-it/conventional-commits": "^10.32.3",
|
4612
|
+
"@auto-it/first-time-contributor": "^10.32.3",
|
4613
|
+
"@babel/plugin-transform-runtime": "^7.16.4",
|
4609
4614
|
"@rollup/plugin-commonjs": "21.0.1",
|
4610
4615
|
"@rollup/plugin-json": "^4.1.0",
|
4611
4616
|
"@rollup/plugin-node-resolve": "^13.0.6",
|
4612
4617
|
"@types/semver": "^7.3.9",
|
4613
|
-
|
4614
|
-
auto: "^10.32.2",
|
4618
|
+
auto: "^10.32.3",
|
4615
4619
|
"browser-sync": "^2.27.7",
|
4616
4620
|
concurrently: "^6.4.0",
|
4617
4621
|
"del-cli": "^4.0.1",
|
4618
4622
|
"jest-canvas-mock": "^2.3.1",
|
4619
|
-
|
4623
|
+
"patch-package": "^6.4.7",
|
4624
|
+
"postinstall-postinstall": "^2.1.0",
|
4625
|
+
rollup: "2.60.1",
|
4620
4626
|
"rollup-plugin-bundle-size": "^1.0.3",
|
4621
4627
|
"rollup-plugin-terser": "^7.0.2",
|
4622
|
-
rollup: "2.
|
4623
|
-
|
4624
|
-
|
4628
|
+
"rollup-plugin-ts": "^2.0.4",
|
4629
|
+
sass: "^1.43.5",
|
4630
|
+
typescript: "^4.5.2",
|
4631
|
+
vega: "^5.21.0",
|
4625
4632
|
"vega-lite": "^5.0.0",
|
4626
|
-
vega: "^
|
4633
|
+
"vega-lite-dev-config": "^0.20.0"
|
4627
4634
|
};
|
4628
4635
|
var peerDependencies = {
|
4629
|
-
vega: "^5.
|
4636
|
+
vega: "^5.21.0",
|
4630
4637
|
"vega-lite": "*"
|
4631
4638
|
};
|
4632
4639
|
var dependencies = {
|
@@ -4639,6 +4646,7 @@
|
|
4639
4646
|
"vega-themes": "^2.10.0",
|
4640
4647
|
"vega-tooltip": "^0.27.0"
|
4641
4648
|
};
|
4649
|
+
var bundledDependencies = ["yallist"];
|
4642
4650
|
var scripts = {
|
4643
4651
|
prebuild: "yarn clean && yarn build:style",
|
4644
4652
|
build: "rollup -c",
|
@@ -4651,12 +4659,12 @@
|
|
4651
4659
|
pretest: "yarn build:style",
|
4652
4660
|
test: "beemo jest --stdio stream",
|
4653
4661
|
"test:inspect": "node --inspect-brk ./node_modules/.bin/jest --runInBand",
|
4654
|
-
prepare: "beemo create-config",
|
4662
|
+
prepare: "beemo create-config && npx patch-package",
|
4655
4663
|
prettierbase: "beemo prettier '*.{css,scss,html}'",
|
4656
4664
|
eslintbase: "beemo eslint .",
|
4657
4665
|
format: "yarn eslintbase --fix && yarn prettierbase --write",
|
4658
4666
|
lint: "yarn eslintbase && yarn prettierbase --check",
|
4659
|
-
release: "auto shipit"
|
4667
|
+
release: "yarn build && auto shipit"
|
4660
4668
|
};
|
4661
4669
|
var pkg = {
|
4662
4670
|
name: name,
|
@@ -4678,6 +4686,7 @@
|
|
4678
4686
|
devDependencies: devDependencies,
|
4679
4687
|
peerDependencies: peerDependencies,
|
4680
4688
|
dependencies: dependencies,
|
4689
|
+
bundledDependencies: bundledDependencies,
|
4681
4690
|
scripts: scripts
|
4682
4691
|
};
|
4683
4692
|
|