mirror of https://github.com/node-red/node-red.git
Merge branch 'master' into dev
commit
412f4465c7
|
@ -368,6 +368,8 @@ RED.view.tools = (function() {
|
|||
|
||||
|
||||
function gotoNearestNode(direction) {
|
||||
// Do not select a nearest node if move is active
|
||||
if (RED.view.state() === RED.state.MOVING_ACTIVE) { return }
|
||||
var selection = RED.view.selection();
|
||||
if (selection.nodes && selection.nodes.length === 1) {
|
||||
var origin = selection.nodes[0];
|
||||
|
|
|
@ -248,8 +248,9 @@
|
|||
errors.push(RED._("node-red:inject.errors.invalid-json", { prop: 'msg.'+v[i].p, error: e.message }))
|
||||
}
|
||||
} else if (v[i].vt === "num"){
|
||||
if (!/^[+-]?[0-9]*\.?[0-9]*([eE][-+]?[0-9]+)?$/.test(v[i].v)) {
|
||||
errors.push(RED._("node-red:inject.errors.invalid-prop", { prop: 'msg.'+v[i].p, error: v[i].v }))
|
||||
const numValidation = RED.utils.validateTypedProperty(v[i].v, 'num', { prop: 'msg.'+v[i].p });
|
||||
if (numValidation !== true) {
|
||||
errors.push(numValidation || RED._("node-red:inject.errors.invalid-prop", { prop: 'msg.'+v[i].p, error: v[i].v }))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<script type="text/html" data-help-name="rbe">
|
||||
<p>Report by Exception (RBE) node - only passes on data if the payload has changed.
|
||||
<p>filter node - only passes on data if the payload has changed.
|
||||
It can also block unless, or ignore if the value changes by a specified amount (Dead- and Narrowband mode).</p>
|
||||
<h3>Inputs</h3>
|
||||
<dl class="message-properties">
|
||||
|
@ -12,7 +12,7 @@
|
|||
</dt>
|
||||
<dd>if specified the function will work on a per topic basis. This property can be set by configuration.</dd>
|
||||
<dt class="optional">reset<span class="property-type">any</span></dt>
|
||||
<dd>if set clears the stored value for the specified msg.topic, or
|
||||
<dd>if set clears the stored value for the specified <code>msg.topic</code>, or
|
||||
all topics if msg.topic is not specified.</dd>
|
||||
</dl>
|
||||
<h3>Outputs</h3>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!-- Source revision: https://github.com/node-red/node-red-nodes/commit/467907776088422882076f46d85e25601449564d -->
|
||||
|
||||
<script type="text/html" data-help-name="rbe">
|
||||
<p>Report by Exception(例外データの報告)ノード - ペイロードの値が変化した場合だけデータを送信。</p>
|
||||
<p>filterノード - ペイロードの値が変化した場合だけデータを送信。</p>
|
||||
<p>値が指定した量変化するまでブロックすることもできます- 不感帯(deadband)モード。</p>
|
||||
<h3>入力</h3> <dl class="message-properties">
|
||||
<dt>payload
|
||||
|
@ -12,7 +12,7 @@
|
|||
</dt>
|
||||
<dd>指定すると、トピックごとに動作します。</dd>
|
||||
<dt class="optional">reset<span class="property-type">任意</span></dt>
|
||||
<dd>値を設定すると、保存した値をクリアします。msg.topicを指定した場合は対応する値、指定しなければ全てのトピックが対象となります。</dd>
|
||||
<dd>値を設定すると、保存した値をクリアします。<code>msg.topic</code>を指定した場合は対応する値、指定しなければ全てのトピックが対象となります。</dd>
|
||||
</dl>
|
||||
<h3>出力</h3>
|
||||
<dl class="message-properties">
|
||||
|
|
Loading…
Reference in New Issue