@domoritz/vega-lite
Advanced tools
Comparing version 0.1.9 to 0.1.10
11
index.js
@@ -1,10 +0,11 @@ | ||
define("global-vega-lite", ["vega@3", "vega-lite@2"], function(Vega, VegaLite) { | ||
window.vega = Vega; | ||
window.vl = VegaLite; | ||
requirejs.config({ | ||
shim: { | ||
"vega-embed@3": ["vega@3", "vega-lite@2"] | ||
} | ||
}); | ||
define(["global-vega-lite", "vega-embed@3"], function(_, VegaEmbed) { | ||
define(["vega-embed@3"], function(_, VegaEmbed) { | ||
return function vegalite(spec, options) { | ||
var div = document.createElement("div"); | ||
return VegaEmbed.default(div, spec, Object.assign(options || {}, {mode: 'vega-lite'})) | ||
return VegaEmbed.default(div, spec, Object.assign(options || {}, {mode: "vega-lite"})) | ||
.then(function() { | ||
@@ -11,0 +12,0 @@ return div; |
{ | ||
"name": "@domoritz/vega-lite", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "A convenience method for using Vega-Lite.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14
772