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

node-red-node-ui-vega

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-node-ui-vega - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

2

package.json
{
"name": "node-red-node-ui-vega",
"version": "0.1.2",
"version": "0.1.3",
"description": "Node-RED UI widget node for Vega visualization grammar",

@@ -5,0 +5,0 @@ "author" : "Hiroyasu Nishiyama",

@@ -49,3 +49,3 @@ /**

if (!this.readyState ||
(this.readyState === "loaded") ||
(this.readyState === "loaded") ||
(this.readyState === "complete")) {

@@ -67,3 +67,3 @@ done = true;

function showVega(spec) {
vegaEmbed('#${vid}', spec,
vegaEmbed('#${vid}', spec,
{

@@ -74,5 +74,5 @@ actions: false

loadScripts(["https://cdn.jsdelivr.net/npm/vega@5.4.0",
"https://cdn.jsdelivr.net/npm/vega-lite@4.0.0-beta.0",
"https://cdn.jsdelivr.net/npm/vega-embed@4.2.1"],
loadScripts(["https://cdn.jsdelivr.net/npm/vega@5.4.0",
"https://cdn.jsdelivr.net/npm/vega-lite@4.0.0-beta.0",
"https://cdn.jsdelivr.net/npm/vega-embed@4.2.1"],
function() {

@@ -113,28 +113,28 @@ `+

if (checkConfig(node, config)) {
var html = HTML(config);
done = ui.addWidget({
node: node,
order: config.order,
group: config.group,
width: config.width,
height: config.height,
format: html,
templateScope: "local",
emitOnlyNewValues: false,
forwardInputMessages: false,
storeFrontEndInputAsState: true,
convertBack: function (value) {
return value;
},
beforeEmit: function(msg, value) {
return { msg: { payload: value } };
},
beforeSend: function (msg, orig) {
if (orig) {
return orig.msg;
var html = HTML(config);
done = ui.addWidget({
node: node,
order: config.order,
group: config.group,
width: config.width,
height: config.height,
format: html,
templateScope: "local",
emitOnlyNewValues: false,
forwardInputMessages: false,
storeFrontEndInputAsState: true,
convertBack: function (value) {
return value;
},
beforeEmit: function(msg, value) {
return { msg: { payload:value, socketid:msg.socketid } };
},
beforeSend: function (msg, orig) {
if (orig) {
return orig.msg;
}
},
initController: function($scope, events) {
}
},
initController: function($scope, events) {
}
});
});
}

@@ -141,0 +141,0 @@ }

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