@domoritz/vega-lite
Advanced tools
Comparing version 0.1.8 to 0.1.9
20
index.js
@@ -1,14 +0,14 @@ | ||
define(["vega@3/build/vega.min.js", "vega-lite@2/build/vega-lite.min.js"], function(Vega, VegaLite) { | ||
define("global-vega-lite", ["vega@3", "vega-lite@2"], function(Vega, VegaLite) { | ||
window.vega = Vega; | ||
window.vl = VegaLite; | ||
}); | ||
return define(["vega-embed@3/build/vega-embed.min.js"], function(VegaEmbed) { | ||
return function vegalite(spec, options) { | ||
var div = document.createElement("div"); | ||
return VegaEmbed(div, spec, Object.assign(options || {}, {mode: 'vega-lite'})) | ||
.then(function() { | ||
return div; | ||
}); | ||
}; | ||
}); | ||
define(["global-vega-lite", "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'})) | ||
.then(function() { | ||
return div; | ||
}); | ||
}; | ||
}); |
{ | ||
"name": "@domoritz/vega-lite", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"description": "A convenience method for using Vega-Lite.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
839