@domoritz/vega
Advanced tools
Comparing version 0.1.5 to 0.1.6
12
index.js
define(["https://bundle.run/vega-embed@3"], function(VegaEmbed) { | ||
var style = document.createElement("style") | ||
style.innerHTML = ".vega-embed .vega-actions > a { visibility: hidden; font-size: 0.9em; margin-right: 0.5em; } " + | ||
style.innerHTML = ".vega-embed .vega-actions > a { visibility: hidden; font-size: 0.9em; margin-right: 0.6em; } " + | ||
".vega-embed:hover .vega-actions > a { visibility: visible; }" | ||
@@ -9,3 +9,11 @@ document.getElementsByTagName("head")[0].appendChild(style) | ||
var div = document.createElement("div"); | ||
return VegaEmbed.default(div, spec, Object.assign(options || {}, {mode: "vega"})) | ||
return VegaEmbed.default(div, spec, Object.assign( | ||
options || {}, | ||
{ | ||
mode: "vega", | ||
actions: Object.assign( | ||
{source: false}, | ||
options ? options.actions || {} : {}) | ||
}) | ||
) | ||
.then(function(result) { | ||
@@ -12,0 +20,0 @@ div.value = result.view; |
{ | ||
"name": "@domoritz/vega", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "A convenience method for using Vega.", | ||
@@ -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
1163
22