所属产品: Mingcedar Studio DESIGNER
Move:先定输入范围,再定输出位移 | Mingcedar Studio
Move 最适合做单轴位移,例如滑块、液位块、进度指示块、行程位置和水平或垂直移动对象。
<section id="move-core" class="docs-block docs-block-intro docs-block-current"> <span class="section-kicker">Move</span> <h2>Move:先定输入范围,再定输出位移</h2> <p>Move 最适合做单轴位移,例如滑块、液位块、进度指示块、行程位置和水平或垂直移动对象。</p> <div class="docs-detail-list"> <article id="move-core-item-1" class="docs-detail-row"> <strong>Move 关键字段说明</strong> <p>Source value 是当前数值。Source minimum / Source maximum 提供 ValueMin / ValueMax 别名;Limit minimum / Limit maximum 决定实际归一化范围。MOVEMENT OUTPUT 中的 At limit minimum / At limit maximum 为端点位移;Move axis 选择水平或垂直方向。</p> <ul> <li>先确认输入值可能落在哪个区间</li><li>再确认 0% 和 100% 分别对应移动距离</li><li>最后确定方向是 Horizontal 还是 Vertical</li> </ul> </article><article id="move-core-item-2" class="docs-detail-row"> <strong>移动一个组件宽度或高度</strong> <p>在 MOVEMENT OUTPUT 的 At limit maximum 中填写 shape.width 或 shape.height,使最大位移等于组件原始宽度或高度。向左或向上移动时使用负值。</p> <ul> <li>水平移动一个宽度:shape.width</li><li>垂直移动一个高度:shape.height</li><li>At limit minimum 通常填 0</li> </ul> <pre class="docs-code-block"><code>At limit minimum: 0
At limit maximum: shape.width
Move axis: Horizontal</code></pre> </article><article id="move-core-item-3" class="docs-detail-row"> <strong>移动两个组件宽度</strong> <p>At limit maximum 填 shape.width * 2,可在有效输入范围上限处向右移动两个组件宽度。垂直位移使用 shape.height * 2。</p> <ul> <li>向右:shape.width * 2</li><li>向左:-shape.width * 2</li><li>向下:shape.height * 2</li><li>向上:-shape.height * 2</li> </ul> <pre class="docs-code-block"><code>At limit minimum: 0
At limit maximum: shape.width * 2
Move axis: Horizontal</code></pre> </article><article id="move-core-item-4" class="docs-detail-row"> <strong>负方向与比例位移</strong> <p>位移字段支持数值表达式,例如 -shape.width、shape.width * 0.5 或 shape.height * 1.5。结果单位为画布距离,应与移动轴保持一致。</p> </article><article id="move-core-item-5" class="docs-detail-row"> <strong>模板变量参与表达式的判断规则</strong> <p>模板占位符只替换字符串。数值字段用 Number('<LIMIT>') 并校验有限值;布尔参数明确比较字符串。不要使用未加引号的 <变量>。</p> <ul> <li>字符串值:'<TITLE>' 或 "<TITLE>"</li><li>数值参数:Number('<LIMIT>')</li><li>布尔参数:'<ENABLED>' === 'true'</li><li>普通表达式:shape.width * 2</li><li>不要把模板字符串直接作为数值结果</li> </ul> </article><article id="move-core-item-6" class="docs-detail-row"> <strong>输入超限与显示规则</strong> <p>Hide outside input limits 在超出 Limit minimum / Limit maximum 时隐藏组件;未启用则夹取到端点。工艺超限用 Range Color 或 Script Color,Override border by quality 仅表示数据质量。</p> </article> </div> <div class="docs-note-grid"> <figure id="move-core-image-1" class="docs-note-card manual-doc-image-card"> <img src="/WEB_img/HQPPT/GeometryBehaviorEditorFormPosition.png" alt="Move 几何行为" loading="lazy" decoding="async"> <figcaption> <strong>Move 行为</strong> <p>Move 的核心是把输入区间映射成位移区间,而不是手写一个固定像素偏移。</p> </figcaption> </figure> </div> </section>