Inspector: one row per channel, names from symbols, tweens you can see

The inspector shows what can be changed and nothing else. Ids, spans and the
facts the fields below them already said are gone; explanations are hover
text. Performance only appears for a face.

Every animatable thing is one row: ◀ ◆ ▶, its name, its value, its gap. The
arrows jump to the key before and after on every channel. A drawing's keys
are an ordinary `shape` row, as are a palette placement's and a tracing
layer's holds. The gap switch is about the gap the playhead is in, and on a
key the one arriving at it, so keying B asks about A→B.

The timeline draws every gap on a channel row, tween or hold, and a click
switches it.

An instance has no name of its own: it is called what it places, a rename
renames the symbol, and `(n)` says how many places show it. Export numbers
two placements of one symbol. Instance names in old documents are ignored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Olive Vaughn 2026-10-10 18:28:03 -04:00
parent e2ca251ef4
commit 4b780f9e91
13 changed files with 569 additions and 510 deletions

View file

@ -926,7 +926,6 @@ button.share-button:hover, button.share-button.on { filter: brightness(1.1); }
letter-spacing: .07em;
}
.inspector-form { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 7px; }
.inspector-field { display: grid; gap: 2px; color: var(--dim); }
.inspector-field input { width: 100%; color: var(--fg); }
@ -936,11 +935,6 @@ button.share-button:hover, button.share-button.on { filter: brightness(1.1); }
.correction-item { display: flex; align-items: center; gap: 4px; min-width: 0; }
.correction-item > span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Label / value, once, for every read-only fact in the pane. */
.facts { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; margin: 0; }
.facts dt { color: var(--dim); }
.facts dd { margin: 0; overflow: hidden; text-overflow: ellipsis; }
.knob { display: grid; gap: 1px; margin-bottom: 6px; }
.knob .top-line { display: flex; justify-content: space-between; gap: 8px; }
.knob .top-line .name { color: var(--dim); }
@ -1402,28 +1396,70 @@ button.share-button:hover, button.share-button.on { filter: brightness(1.1); }
border-top: 1px solid var(--hair);
}
/* A transform or visibility channel: its key button, then a field per component. */
.facts dd.channel { display: flex; gap: 3px; align-items: center; overflow: visible; }
.facts dd.channel input[type=number] { width: 0; flex: 1; min-width: 0; }
.facts dd.channel .key { padding: 0 3px; color: var(--dim); }
.facts dd.channel .key.keyed { color: var(--fg); }
.facts dd.channel .key.on { color: var(--sel); }
.facts dd.channel .channel-swatches {
display: flex;
flex: 1;
flex-wrap: wrap;
gap: 3px;
min-width: 0;
/* The inspector. One column of names, 46px, and controls after it: the
header, then a row per channel, then labelled rows. */
.inspect-head {
display: flex; align-items: center; gap: 5px;
padding: 6px; border-bottom: 1px solid var(--hair);
position: sticky; top: 0; z-index: 1; background: var(--pane);
}
.facts dd.channel .channel-swatches .swatch { flex: 0 0 15px; }
.facts dd.channel.live {
margin: -2px;
padding: 2px;
.inspect-kind { color: var(--dim); flex: 0 0 auto; }
.inspect-name { flex: 1; min-width: 0; font-weight: 600; }
.uses, .tl-label .uses { color: var(--dim); flex: 0 0 auto; }
.chans, .props { padding: 4px 6px; display: grid; gap: 3px; border-bottom: 1px solid var(--hair); }
/* ◀ ◆ ▶ · name · value · gap */
.chan { display: grid; grid-template-columns: auto 38px 1fr 16px; gap: 4px; align-items: center; min-height: 20px; }
.chan-name, .prop-name { color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chan-value { display: flex; gap: 3px; align-items: center; min-width: 0; }
.chan-value input[type=number], .prop input[type=number] { width: 0; flex: 1; min-width: 0; }
.chan-value select, .prop select { flex: 1; min-width: 0; }
.chan.live {
margin: -1px -3px; padding: 1px 3px;
border-radius: 3px;
background: var(--live-bg);
box-shadow: 0 0 0 1px rgba(35, 148, 71, .45), 0 0 6px rgba(35, 148, 71, .28);
box-shadow: 0 0 0 1px rgba(35, 148, 71, .45);
}
.facts dd.channel.live input { border-color: var(--live); }
.chan.live input { border-color: var(--live); }
.key-nav { display: flex; align-items: center; }
.key-nav button, .chan .gap, .prop .icon, .chan-value .icon {
padding: 0; border: 0; background: none; width: 14px; height: 18px;
display: inline-flex; align-items: center; justify-content: center;
color: var(--dim);
}
.key-nav button:disabled { opacity: .3; }
.key-nav .key { width: 16px; }
.key-nav .key.keyed { color: var(--fg); }
.key-nav .key.on { color: var(--sel); }
.key-nav svg, .chan .gap svg, .prop .seg svg { width: 11px; height: 11px; }
.key-nav button:hover:not(:disabled), .chan button.gap:hover, .icon:hover:not(:disabled) { color: var(--fg); }
.chan .gap.on { color: var(--sel); }
.chan-swatches { display: flex; flex-wrap: wrap; gap: 2px; min-width: 0; }
.chan-swatches .swatch { flex: 0 0 11px; width: 11px; height: 11px; }
.prop { display: flex; gap: 4px; align-items: center; min-height: 20px; }
.prop > .prop-name { flex: 0 0 46px; }
.prop input[type=text] { flex: 1; min-width: 0; }
.prop .seg button { padding: 1px 4px; display: inline-flex; align-items: center; }
/* A gap between two keys of a channel row: empty where it holds, a ramp where
it tweens, as Flash draws a classic tween. Click to switch. */
button.tl-gap {
position: absolute; top: 50%; height: 9px; margin-top: -4.5px;
padding: 0; border: 0; border-radius: 0; background: transparent;
cursor: pointer; z-index: 3;
}
button.tl-gap::after {
content: ""; position: absolute; left: 6px; right: 6px; top: 4px; height: 1px;
background: var(--line);
}
button.tl-gap.tween { background: rgba(47, 111, 192, .22); }
button.tl-gap.tween::after { top: 3px; height: 3px; background: var(--sel); }
button.tl-gap:hover { background: rgba(47, 111, 192, .28); }
/* The selected node's transform box, in stage pixels (the SVG's viewBox). */
.paint-overlay .handles .box { fill: none; stroke: #e6ca8b; stroke-width: 0.5; stroke-dasharray: 2 1; pointer-events: none; }