node-red-node-ui-vega
Advanced tools
Comparing version 0.1.2 to 0.1.3
{ | ||
"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 @@ } |
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
458688