@mschaeffler/node-red-logic 0.5.1 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/counter.html CHANGED
@@ -11,6 +11,9 @@
11
11
  label: function() {
12
12
  return this.name||"counter";
13
13
  },
14
+ labelStyle: function() {
15
+ return this.name?"node_label_italic":"";
16
+ },
14
17
  inputLabels: 'input',
15
18
  outputLabels: 'output'
16
19
  });
package/logic_and.html CHANGED
@@ -16,6 +16,9 @@
16
16
  label: function() {
17
17
  return this.name||this.topic||"and";
18
18
  },
19
+ labelStyle: function() {
20
+ return this.name?"node_label_italic":"";
21
+ },
19
22
  inputLabels: 'input',
20
23
  outputLabels: 'and',
21
24
  oneditprepare: function() {
package/logic_bool.html CHANGED
@@ -13,6 +13,9 @@
13
13
  label: function() {
14
14
  return this.name||"to bool";
15
15
  },
16
+ labelStyle: function() {
17
+ return this.name?"node_label_italic":"";
18
+ },
16
19
  paletteLabel: "to bool",
17
20
  inputLabels: 'input',
18
21
  outputLabels: 'boolean',
package/logic_or.html CHANGED
@@ -16,6 +16,9 @@
16
16
  label: function() {
17
17
  return this.name||this.topic||"or";
18
18
  },
19
+ labelStyle: function() {
20
+ return this.name?"node_label_italic":"";
21
+ },
19
22
  inputLabels: 'input',
20
23
  outputLabels: 'or',
21
24
  oneditprepare: function() {
package/math_falling.html CHANGED
@@ -14,6 +14,9 @@
14
14
  label: function() {
15
15
  return this.name||"falling edge";
16
16
  },
17
+ labelStyle: function() {
18
+ return this.name?"node_label_italic":"";
19
+ },
17
20
  paletteLabel: "falling edge",
18
21
  inputLabels: 'input',
19
22
  outputLabels: 'edge trigger',
@@ -19,6 +19,9 @@
19
19
  label: function() {
20
20
  return this.name||"hysteresis";
21
21
  },
22
+ labelStyle: function() {
23
+ return this.name?"node_label_italic":"";
24
+ },
22
25
  paletteLabel: "hysteresis",
23
26
  inputLabels: 'input',
24
27
  outputLabels: 'hysteresis trigger',
package/math_number.html CHANGED
@@ -13,6 +13,9 @@
13
13
  label: function() {
14
14
  return this.name||"to number";
15
15
  },
16
+ labelStyle: function() {
17
+ return this.name?"node_label_italic":"";
18
+ },
16
19
  paletteLabel: "to number",
17
20
  inputLabels: 'input',
18
21
  outputLabels: 'number',
package/math_raising.html CHANGED
@@ -14,6 +14,9 @@
14
14
  label: function() {
15
15
  return this.name||"raising edge";
16
16
  },
17
+ labelStyle: function() {
18
+ return this.name?"node_label_italic":"";
19
+ },
17
20
  paletteLabel: "raising edge",
18
21
  inputLabels: 'input',
19
22
  outputLabels: 'edge trigger',
package/math_reduce.html CHANGED
@@ -34,6 +34,9 @@
34
34
  label: function() {
35
35
  return this.name||this.topic||this.algo||"reduce";
36
36
  },
37
+ labelStyle: function() {
38
+ return this.name?"node_label_italic":"";
39
+ },
37
40
  inputLabels: 'input',
38
41
  outputLabels: 'output',
39
42
  oneditprepare: function() {
@@ -122,6 +125,8 @@
122
125
  <dd> result of combining of all input topics.</dd>
123
126
  <dt>count <span class="property-type">number</span></dt>
124
127
  <dd> number of data elements.</dd>
128
+ <dt>data <span class="property-type">object</span></dt>
129
+ <dd> actual input data.</dd>
125
130
  </dl>
126
131
 
127
132
  <h3>Parameter</h3>
package/math_reduce.js CHANGED
@@ -34,6 +34,7 @@ module.exports = function(RED) {
34
34
 
35
35
  msg.topic = node.topic;
36
36
  msg.count = 0;
37
+ msg.data = data;
37
38
  switch( node.algo )
38
39
  {
39
40
  case "add":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mschaeffler/node-red-logic",
3
- "version": "0.5.1",
3
+ "version": "0.6.1",
4
4
  "description": "nodes for simple operations.",
5
5
  "license": "LGPL-2.1",
6
6
  "homepage": "https://github.com/m-schaeffler/node-red-my-nodes/tree/main/node-red-logic",