Following is a layer: pointers anywhere on the page, and a list of what to follow
A pointer is what it points at, not where it is. What goes out is the element under it, as a path from <body> with where it sits in each element on the way down, so over a button it is over the watcher's button however differently the two windows are laid out. In an SVG the point is in the SVG's own units, so on the stage it stays on the drawing at any zoom. A path that half resolves dims at the deepest element both pages share; one scrolled out of a pane waits at its edge. A press shows as a ring. The ▾ beside the eye says what you follow, each a switch: tab, frame and play with speed, loop and marks; selection; timeline rows; onion, tracing and mat; tool and brush; which panels are shut; panel scroll; pointers. What you let go of you neither take nor send, so looking around never moves the party, and taking it back catches up. The pool and the inspector are both `section.pane`, so a path by first class put a pointer on the pool whenever one window had it shut. A step now matches on the whole class list, and falls back to the first class only for state classes like `on` and `selected`. All of it lives in `arthur.follow` and `follow/`, switched on by one line in `arthur.core`. Collab no longer knows parties exist: it keeps a roster of whatever each peer says about itself, and lets a listener hear the room. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
7c637576b2
commit
00e94c025a
10 changed files with 684 additions and 294 deletions
|
|
@ -474,16 +474,44 @@ button.peer {
|
|||
display: inline-grid; place-items: center;
|
||||
background: var(--sel); color: #fff; font-size: 10px; font-weight: 600;
|
||||
}
|
||||
button.peer:disabled { cursor: default; }
|
||||
|
||||
/* follow — arthur.follow. A face you can follow lights on hover, one that will
|
||||
not let you is dimmed, and the ones you are following wear a ring. The eye
|
||||
says whether you may be followed; ▾ beside it is what you follow. */
|
||||
button.peer:hover:not(:disabled) { filter: brightness(1.15); }
|
||||
button.peer:disabled { opacity: .45; cursor: default; }
|
||||
button.peer:disabled:not(.mate) { opacity: .45; }
|
||||
button.peer.mate { outline: 1.5px solid var(--fg); outline-offset: 1px; }
|
||||
button.followable { padding: 0 3px; color: var(--dim); border-color: transparent; background: none; }
|
||||
button.followable.on { color: var(--fg); }
|
||||
button.followable svg { width: 12px; height: 12px; display: block; }
|
||||
.follow-what .view-popout { min-width: 190px; max-width: 240px; }
|
||||
.follow-what .view-popout label {
|
||||
display: flex; gap: 8px; align-items: center; margin: 0; padding: 3px 0;
|
||||
white-space: nowrap; cursor: pointer;
|
||||
}
|
||||
.follow-what .view-popout input { width: auto; margin: 0; flex: none; }
|
||||
.follow-what .view-popout small { display: block; margin-top: 8px; color: var(--dim); white-space: normal; }
|
||||
|
||||
/* A party-mate's pointer on the stage, in screen pixels whatever the zoom. */
|
||||
.peer-cursors .arrow { stroke: #fff; stroke-width: 1; stroke-linejoin: round; }
|
||||
.peer-cursors text { font-size: 10px; font-weight: 600; fill: #fff; }
|
||||
/* A mate's pointer, over everything and catching nothing. `lost` is a pointer
|
||||
on something this page does not have open, `away` one scrolled out of view
|
||||
and waiting at the edge. */
|
||||
#follow-layer { position: fixed; inset: 0; pointer-events: none; z-index: 2147483000; overflow: hidden; }
|
||||
.follow-pointer { position: absolute; left: 0; top: 0; will-change: transform; transition: opacity .15s; }
|
||||
.follow-pointer svg { width: 11px; height: 15px; display: block; overflow: visible; }
|
||||
.follow-pointer path { fill: var(--who); stroke: #fff; stroke-width: 1; stroke-linejoin: round; }
|
||||
.follow-pointer span {
|
||||
position: absolute; left: 9px; top: 13px; white-space: nowrap;
|
||||
padding: 1px 5px; border-radius: 3px; background: var(--who);
|
||||
color: #fff; font: 600 10px/12px system-ui, sans-serif;
|
||||
}
|
||||
.follow-pointer i {
|
||||
position: absolute; left: -9px; top: -9px; width: 18px; height: 18px;
|
||||
border-radius: 50%; border: 2px solid var(--who); opacity: 0;
|
||||
}
|
||||
.follow-pointer.lost { opacity: .45; }
|
||||
.follow-pointer.away { opacity: .6; }
|
||||
/* end follow */
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
media pool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue