Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@domoritz/vega

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@domoritz/vega - npm Package Compare versions

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;

2

package.json
{
"name": "@domoritz/vega",
"version": "0.1.5",
"version": "0.1.6",
"description": "A convenience method for using Vega.",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc