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

@semilimes/node-red-semilimes

Package Overview
Dependencies
Maintainers
0
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@semilimes/node-red-semilimes - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

2

package.json
{
"name": "@semilimes/node-red-semilimes",
"version": "1.2.1",
"version": "1.2.2",
"description": "The new semilimes connector which integrates with the public API",

@@ -5,0 +5,0 @@ "scripts": {

@@ -53,4 +53,27 @@ "use strict";

//location langitude and longitude reused from location object
//location latitude and longitude reused from location object
//Line Chart
this.xLabelText = config.xLabelText;
this.xLabelTextType = config.xLabelTextType;
this.xShowValues = config.xShowValues;
this.xShowValuesType = config.xShowValuesType;
this.yLabelText = config.yLabelText;
this.yLabelTextType = config.yLabelTextType;
this.yShowValues = config.yShowValues;
this.yShowValuesType = config.yShowValuesType;
this.gridDisplay = config.gridDisplay;
this.gridDisplayType = config.gridDisplayType;
this.backgroundColor = config.backgroundColor;
this.backgroundColorType = config.backgroundColorType;
this.lines = config.lines;
this.linesType = config.linesType;
//WebView

@@ -180,2 +203,55 @@ this.url = config.url;

break;
case 'linechart':
var titleValue = smeHelper.getNodeConfigValue(node, msg, node.titleType, node.title);
var xLabelTextValue = smeHelper.getNodeConfigValue(node, msg, node.xLabelTextType, node.xLabelText);
var yLabelTextValue = smeHelper.getNodeConfigValue(node, msg, node.yLabelTextType, node.yLabelText);
var gridDisplayValue = smeHelper.getNodeConfigValue(node, msg, node.gridDisplayType, node.gridDisplay);
var backgroundColorValue = smeHelper.getNodeConfigValue(node, msg, node.backgroundColorType, node.backgroundColor);
var linesValue = smeHelper.getNodeConfigValue(node, msg, node.linesType, node.lines);
//Setting default options object
var options = {
x: {
label: {
text: "X Axis"
},
showTitles: node.xShowValues || false
},
y: {
label: {
text: "Y Axis"
},
showTitles: node.yShowValues || false
},
grid: {
display: true
},
background: {
color: "#FFFFFF"
}
};
if (xLabelTextValue) {
options.x.label.text = xLabelTextValue;
}
if (yLabelTextValue) {
options.y.label.text = yLabelTextValue;
}
if (typeof gridDisplayValue === 'boolean') {
options.grid.display = gridDisplayValue;
}
if (backgroundColorValue) {
options.background.color = backgroundColorValue;
}
smeMsg = {
dataComponent: {
dataComponentType: "linechart",
title: titleValue || "Line Chart",
options: options,
lines: linesValue
}
}
break;
case 'location':

@@ -182,0 +258,0 @@ var locationNameValue = smeHelper.getNodeConfigValue(node, msg, node.locationNameType, node.locationName);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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