mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Add example to range node info and make use of target consistent
This commit is contained in:
parent
14c1a86b9b
commit
af742ea536
@ -29,9 +29,16 @@
|
|||||||
</dl>
|
</dl>
|
||||||
<h3>Details</h3>
|
<h3>Details</h3>
|
||||||
<p>This node will linearly scale the received value. By default, the result
|
<p>This node will linearly scale the received value. By default, the result
|
||||||
is not constrained to the range defined in the node.</p>
|
is not constrained to the range defined in the node.</p>
|
||||||
<p><i>Scale and limit to target range</i> means that the result will never be outside
|
<p><i>Scale and limit to target range</i> means that the result will never be outside
|
||||||
the range specified within the result range.</p>
|
the range specified within the target range.</p>
|
||||||
<p><i>Scale and wrap within the target range</i> means that the result will
|
<p><i>Scale and wrap within the target range</i> means that the result will
|
||||||
be wrapped within the result range.</p>
|
be wrapped within the target range.</p>
|
||||||
|
<p>For example an input 0 - 10 mapped to 0 - 100.</p>
|
||||||
|
<table style="outline-width:#888 solid thin">
|
||||||
|
<tr><th width="80px">mode</th><th width="80px">input</th><th width="80px">output</th></tr>
|
||||||
|
<tr><td><center>scale</center></td><td><center>12</center></td><td><center>120</center></td></tr>
|
||||||
|
<tr><td><center>limit</center></td><td><center>12</center></td><td><center>100</center></td></tr>
|
||||||
|
<tr><td><center>wrap</center></td><td><center>12</center></td><td><center>20</center></td></tr>
|
||||||
|
</table>
|
||||||
</script>
|
</script>
|
||||||
|
@ -664,7 +664,7 @@
|
|||||||
"label": {
|
"label": {
|
||||||
"action": "Action",
|
"action": "Action",
|
||||||
"inputrange": "Map the input range",
|
"inputrange": "Map the input range",
|
||||||
"resultrange": "to the result range",
|
"resultrange": "to the target range",
|
||||||
"from": "from",
|
"from": "from",
|
||||||
"to": "to",
|
"to": "to",
|
||||||
"roundresult": "Round result to the nearest integer?"
|
"roundresult": "Round result to the nearest integer?"
|
||||||
|
Loading…
Reference in New Issue
Block a user