diff --git a/Cargo.lock b/Cargo.lock index 9efea71..24edd9f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -602,7 +602,7 @@ dependencies = [ [[package]] name = "canvas-pilot" -version = "0.9.64" +version = "0.9.65" dependencies = [ "base64 0.22.1", "craft-dwg", diff --git a/Cargo.toml b/Cargo.toml index 06cd1de..86d65d4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ default-members = ["crates/canvas-pilot"] resolver = "3" [workspace.package] -version = "0.9.64" +version = "0.9.65" edition = "2024" license = "MIT" repository = "https://proxy.dandaedre.com/gitea/idle-org/canvas-pilot" diff --git a/docs/canvas-pilot/changelog.md b/docs/canvas-pilot/changelog.md index 698ddd1..dd77cc7 100644 --- a/docs/canvas-pilot/changelog.md +++ b/docs/canvas-pilot/changelog.md @@ -4,6 +4,13 @@ ## Unreleased +### v0.9.65 + +- Added per-destination **Send options** to the mapping window mockup: Position, + Size, Crop, Fit mode, Mask and opt-in Input. This is a visual proposal only; + application transfer behavior and save formats are unchanged. + + ### v0.9.64 - Source properties can stage a physical input with **Change input**, applied only diff --git a/docs/development/design/mapping-window.html b/docs/development/design/mapping-window.html index 47659c8..7a05bf1 100644 --- a/docs/development/design/mapping-window.html +++ b/docs/development/design/mapping-window.html @@ -9,6 +9,18 @@ *{box-sizing:border-box}body{margin:0;background:#0b1017;color:var(--text);font:14px/1.5 system-ui,sans-serif}button,select,input{font:inherit}button,select{color:inherit;background:var(--field);border:1px solid var(--line);border-radius:6px;padding:8px 12px}button:disabled{cursor:default}select{width:100%;padding-right:25px}button:focus-visible,select:focus-visible,summary:focus-visible,a:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:23px;font-weight:600}h2{font-size:19px;font-weight:600}h3{font-size:15px}small,.muted{color:var(--muted)}.study{max-width:1260px;margin:26px auto 12px;padding:0 12px;display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:12px}.study a{color:var(--cyan)}.window{max-width:1260px;margin:0 auto 28px;border:1px solid var(--line);border-radius:12px;background:var(--bg);overflow:hidden;box-shadow:0 24px 70px #0005}.top{padding:22px 26px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.eyebrow{font-size:11px;letter-spacing:.09em;color:var(--muted);text-transform:uppercase;margin-bottom:3px}.tag{border:1px solid #72603d;background:#332b20;color:var(--amber);font-size:11px;padding:4px 9px;border-radius:20px;white-space:nowrap}.body{display:grid;grid-template-columns:245px 1fr}.sidebar{background:var(--panel);border-right:1px solid var(--line);padding:22px 14px;display:flex;flex-direction:column;gap:8px}.sidebarhead{display:flex;justify-content:space-between;padding:0 10px;margin-bottom:9px;font-size:12px;color:var(--muted)}.folder{padding:8px 10px;font-size:13px;color:var(--muted)}.layer{display:block;text-decoration:none;color:var(--text);padding:13px 12px;border:1px solid transparent;border-radius:7px}.layer.selected{border-color:var(--purple);background:#6655d922}.layer .name{font-weight:600;font-size:14px}.route-count{font-size:12px;color:var(--muted);margin-top:5px;display:flex;gap:13px}.cyan{color:var(--cyan)}.amber{color:var(--amber)}.sidebarfoot{margin-top:auto;border-top:1px solid var(--line);padding:18px 10px 0;font-size:12px;color:var(--muted)}main{padding:24px 28px 25px;min-width:0}.layer-title{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:24px}.layer-title h2{font-size:23px}.pill{color:var(--muted);border:1px solid var(--line);border-radius:20px;padding:4px 10px;font-size:12px}.section-title{display:flex;align-items:center;gap:10px;margin-bottom:4px}.direction{width:30px;height:30px;border-radius:7px;display:grid;place-items:center;font-size:21px;background:#66dbef12;color:var(--cyan)}.direction.send{background:#f6c57712;color:var(--amber)}.hint{color:var(--muted);font-size:12px;margin:0 0 14px 40px}.card{border:1px solid var(--line);border-radius:8px;background:var(--panel);padding:17px 18px}.fields{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:14px}.fields label{display:grid;gap:6px;color:var(--muted);font-size:12px}.fields select{color:var(--text);font-size:14px}.note{display:flex;justify-content:space-between;gap:16px;margin-top:12px;color:var(--muted);font-size:12px}.note strong{font-weight:500;color:var(--text)}.between{height:29px;display:flex;align-items:center;justify-content:center;font-size:11px;letter-spacing:.06em;color:var(--muted)}.between span{background:var(--bg);padding:0 12px}.send-heading{display:flex;justify-content:space-between;align-items:center}.connection{border:1px solid var(--line);border-radius:8px;overflow:hidden}.connection-head{padding:11px 16px;background:var(--panel);display:flex;align-items:center;justify-content:space-between}.connection-head strong{font-size:13px}.connection-head span{font-size:12px;color:var(--muted)}.target{display:grid;grid-template-columns:minmax(120px,1fr) minmax(130px,1fr) minmax(150px,1.2fr) 30px;gap:12px;align-items:center;padding:12px 16px;border-top:1px solid var(--line)}.target.labels{border-top:0;padding-top:9px;padding-bottom:3px;font-size:11px;color:var(--muted)}.target.first{border-top:0}.target select{padding:7px 9px;font-size:13px}.chain{font-size:12px;color:#c7c0ff;display:flex;align-items:center;gap:7px}.chain input{accent-color:var(--purple);width:15px;height:15px;margin:0}.remove{padding:1px 6px;font-size:19px;color:var(--muted);background:transparent;border-color:transparent}.addrow{padding:10px 16px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.addrow button{font-size:12px;padding:6px 10px}.addrow small{font-size:11px}.future{margin-top:12px;border:1px dashed var(--line);border-radius:7px;padding:10px 14px;color:var(--muted);font-size:12px}.future summary{cursor:pointer}.future-content{padding-top:12px;display:flex;gap:20px;justify-content:space-between;color:var(--text)}.scope{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 0 0;font-size:12px;color:var(--muted)}.footer{border-top:1px solid var(--line);padding:15px 24px;display:flex;justify-content:space-between;align-items:center;gap:20px}.footer p{font-size:12px;color:var(--muted)}.actions{display:flex;gap:10px}.primary{background:var(--purple);border-color:var(--purple)}.swatch{display:inline-block;width:7px;height:7px;background:var(--cyan);border-radius:50%;margin-right:7px}.legend{max-width:1260px;margin:0 auto 30px;padding:0 12px;color:var(--muted);font-size:12px}.legend strong{color:var(--text);font-weight:500} @media(max-width:900px){.study,.window,.legend{margin-left:12px;margin-right:12px}.body{grid-template-columns:190px 1fr}main{padding:20px 18px}.fields{grid-template-columns:1fr}.target{grid-template-columns:1fr 1fr 30px}.target .chain{grid-column:1 / 3;grid-row:2}.target .remove{grid-column:3;grid-row:1}.target.labels{display:none}.footer{align-items:flex-start;flex-direction:column}.layer-title{flex-wrap:wrap}} @media(max-width:600px){.body{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid var(--line)}.sidebarfoot,.folder,.layer:not(.selected){display:none}.top{padding:16px}.top h1{font-size:20px}.top .tag{white-space:normal}.note,.scope{flex-direction:column;gap:5px}.actions{flex-wrap:wrap}} + +.send-options{grid-column:1 / -1;min-width:0} +.send-options summary{display:list-item;list-style-position:inside;width:fit-content;cursor:pointer;border:1px solid var(--line);border-radius:6px;padding:5px 10px;background:var(--field);font-size:12px} +.send-options[open] summary{border-color:var(--amber);color:var(--amber);margin-bottom:12px} +.send-options fieldset{margin:0;padding:12px;border:1px solid var(--line);border-radius:6px;min-width:0} +.send-options legend{padding:0 5px;font-size:12px;color:var(--muted)} +.send-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px} +.send-fields label{display:flex;align-items:flex-start;gap:9px;font-size:13px;cursor:pointer} +.send-fields input{accent-color:var(--amber);margin:4px 0 0;width:16px;height:16px;flex-shrink:0} +.send-fields input:focus-visible{outline:2px solid var(--cyan);outline-offset:3px} +.send-fields small{display:block;font-size:11px} +.send-options p{margin-top:10px;font-size:12px;color:var(--muted)} @@ -49,12 +61,54 @@
+
+Send options +
Properties to send to this destination +
+ + + + + + +
+

Unchecked properties keep their device values. Leave Input off to preserve this destination’s source. Uncheck everything to skip this destination.

+
+
Independent target +
+Send options +
Properties to send to this destination +
+ + + + + + +
+

Unchecked properties keep their device values. Leave Input off to preserve this destination’s source. Uncheck everything to skip this destination.

+
+
Independent target +
+Send options +
Properties to send to this destination +
+ + + + + + +
+

Unchecked properties keep their device values. Leave Input off to preserve this destination’s source. Uncheck everything to skip this destination.

+
+
Same layer, another screen—or another layer on this screen.
@@ -65,6 +119,6 @@ -

Try the layout: open the dropdowns, expand the future-connection group, and resize this page. Values and counts are illustrative; controls are not connected to each other or to Canvas Pilot.

+

Try the layout: open the dropdowns, expand each destination’s Send options and try its checkboxes, expand the future-connection group, and resize this page. Values and counts are illustrative; controls are not connected to each other or to Canvas Pilot.

diff --git a/docs/development/design/mapping-window.md b/docs/development/design/mapping-window.md index a9955a6..4fd5e29 100644 --- a/docs/development/design/mapping-window.md +++ b/docs/development/design/mapping-window.md @@ -37,6 +37,29 @@ The list shows small source/target counts so a layer with no routes or several destinations is easy to spot. It deliberately avoids a large checkbox matrix: connection × screen × layer combinations would quickly overwhelm that layout. +## Send options per destination + +Each destination has a collapsed **Send options** control with independent +checkboxes for **Position**, **Size**, **Crop**, **Fit mode**, **Mask**, and +**Input**. Position and size are separate so an operator can move a layer without +intentionally replacing its dimensions. Crop includes edges, zoom and offsets; +fit mode is separate from that framing. Input means the destination’s video +source, not shared input processing settings. + +The proposed default includes layout properties but leaves **Input unchecked**. +Unchecked properties should keep their current device values; all unchecked +should skip that destination. Following the load source should only link the +destination address, not these checkboxes. Other destinations retain their own +choices. In this mockup, controls only expand/collapse and toggle locally; nothing +is saved or sent, and sample counts do not change. + +Before implementation, resolve geometric dependencies: device crop, fit, size +and position can affect one another. Preparation must use fresh device values +for excluded properties and explain or reject combinations that cannot preserve +them faithfully. It must not silently enable extra categories. The final transfer +review should show included properties and explicitly flag input changes. +This is a design proposal, not a promise of independent device fields. + ## Questions for visual review - Is the selected-layer approach comfortable, or is a project-wide route overview