From af742ea536593409ea8bad3d6afa2d74a8d231ad Mon Sep 17 00:00:00 2001
From: Dave Conway-Jones
Date: Tue, 1 Oct 2019 20:57:20 +0100
Subject: [PATCH] Add example to range node info and make use of target
consistent
---
.../nodes/locales/en-US/function/16-range.html | 13 ++++++++++---
.../@node-red/nodes/locales/en-US/messages.json | 2 +-
2 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/packages/node_modules/@node-red/nodes/locales/en-US/function/16-range.html b/packages/node_modules/@node-red/nodes/locales/en-US/function/16-range.html
index 740f1fec3..16ea0d784 100644
--- a/packages/node_modules/@node-red/nodes/locales/en-US/function/16-range.html
+++ b/packages/node_modules/@node-red/nodes/locales/en-US/function/16-range.html
@@ -29,9 +29,16 @@
Details
This node will linearly scale the received value. By default, the result
- is not constrained to the range defined in the node.
+ is not constrained to the range defined in the node.
Scale and limit to target range means that the result will never be outside
- the range specified within the result range.
+ the range specified within the target range.
Scale and wrap within the target range means that the result will
- be wrapped within the result range.
+ be wrapped within the target range.
+ For example an input 0 - 10 mapped to 0 - 100.
+
+ mode | input | output |
+ scale | 12 | 120 |
+ limit | 12 | 100 |
+ wrap | 12 | 20 |
+
diff --git a/packages/node_modules/@node-red/nodes/locales/en-US/messages.json b/packages/node_modules/@node-red/nodes/locales/en-US/messages.json
index f5fbe9e91..4999cb8a7 100755
--- a/packages/node_modules/@node-red/nodes/locales/en-US/messages.json
+++ b/packages/node_modules/@node-red/nodes/locales/en-US/messages.json
@@ -664,7 +664,7 @@
"label": {
"action": "Action",
"inputrange": "Map the input range",
- "resultrange": "to the result range",
+ "resultrange": "to the target range",
"from": "from",
"to": "to",
"roundresult": "Round result to the nearest integer?"