Merge fix/orchestrator-e2e-unify-regressions into unify/skills-20261112
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
9a18853f65
4 files changed
+92
-29
No files matched your search
@@ -58,10 +58,18 @@
|
||||
view.node.style.setProperty("--tail", `${fixed((middle - left) / scale)}px`);
|
||||
}
|
||||
|
||||
function saidOf(item) {
|
||||
return item.words || Bubbles.words(item.line);
|
||||
}
|
||||
|
||||
function wordsRead(item) {
|
||||
return item.started ? Bubbles.shown(saidOf(item).length, item.duration, (performance.now() - item.started) / 1000) : 0;
|
||||
}
|
||||
|
||||
function drawBubble(entry, view) {
|
||||
const {item} = entry;
|
||||
const said = item.words || Bubbles.words(item.line);
|
||||
const count = item.started ? Bubbles.shown(said.length, item.duration, (performance.now() - item.started) / 1000) : 0;
|
||||
const said = saidOf(item);
|
||||
const count = wordsRead(item);
|
||||
const text = said.slice(0, count).join(" ") || "…";
|
||||
if (view.words.textContent !== text) {
|
||||
view.words.textContent = text;
|
||||
@@ -81,6 +89,7 @@
|
||||
for (const [item, view] of bubbles.shown) {
|
||||
if (!kept.has(item)) {
|
||||
bubbles.shown.delete(item);
|
||||
view.node.dataset.read = String(wordsRead(item));
|
||||
view.node.classList.add("leaving");
|
||||
window.setTimeout(() => view.node.remove(), BUBBLE_FADE);
|
||||
}
|
||||
|
||||
@@ -128,6 +128,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
function keepPlaces(nodes) {
|
||||
const laid = new Map(g3.graph.graphData().nodes.filter((node) => Number.isFinite(node.x)).map((node) => [node.id, node]));
|
||||
for (const node of nodes) {
|
||||
const old = laid.get(node.id);
|
||||
if (old) {
|
||||
Object.assign(node, {x: old.x, y: old.y, z: old.z});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function colors3d() {
|
||||
const css = window.getComputedStyle(document.documentElement);
|
||||
const value = (name) => css.getPropertyValue(`--${name}`).trim() || "#888";
|
||||
@@ -394,6 +404,7 @@
|
||||
}
|
||||
}
|
||||
const layout = layoutOf(tab);
|
||||
keepPlaces(data.nodes);
|
||||
place(data.nodes, layout);
|
||||
g3.badges = new Map();
|
||||
g3.faces = new Set();
|
||||
|
||||
Reference in new issue
Block a user