@floless/app 0.97.0 → 0.97.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/floless-server.cjs +2 -2
- package/dist/web/app.css +1 -1
- package/dist/web/workspaces.js +9 -1
- package/package.json +1 -1
package/dist/floless-server.cjs
CHANGED
|
@@ -53106,7 +53106,7 @@ function appVersion() {
|
|
|
53106
53106
|
return resolveVersion({
|
|
53107
53107
|
isSea: isSea2(),
|
|
53108
53108
|
sqVersionXml: readSqVersionXml(),
|
|
53109
|
-
define: true ? "0.97.
|
|
53109
|
+
define: true ? "0.97.1" : void 0,
|
|
53110
53110
|
pkgVersion: readPkgVersion()
|
|
53111
53111
|
});
|
|
53112
53112
|
}
|
|
@@ -53116,7 +53116,7 @@ function resolveChannel(s) {
|
|
|
53116
53116
|
return "dev";
|
|
53117
53117
|
}
|
|
53118
53118
|
function appChannel() {
|
|
53119
|
-
return resolveChannel({ isSea: isSea2(), define: true ? "0.97.
|
|
53119
|
+
return resolveChannel({ isSea: isSea2(), define: true ? "0.97.1" : void 0 });
|
|
53120
53120
|
}
|
|
53121
53121
|
|
|
53122
53122
|
// workflow-update.ts
|
package/dist/web/app.css
CHANGED
|
@@ -3984,7 +3984,7 @@ tr.hist-diff-row[hidden] { display:none; }
|
|
|
3984
3984
|
.kb-g-fit { position: absolute; top: 10px; right: 10px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-muted); border-radius: 6px; padding: 3px 9px; font-size: 12px; cursor: pointer; font: inherit; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
|
|
3985
3985
|
.kb-g-fit:hover { color: var(--text); border-color: var(--accent); }
|
|
3986
3986
|
.kb-g-fit[hidden] { display: none; }
|
|
3987
|
-
.kb-g-edge { stroke: color-mix(in srgb, var(--border-strong) 90%, transparent); stroke-width: 1.5; }
|
|
3987
|
+
.kb-g-edge { stroke: color-mix(in srgb, var(--border-strong) 90%, transparent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
|
|
3988
3988
|
.kb-g-node { cursor: pointer; }
|
|
3989
3989
|
.kb-g-hit { fill: transparent; } /* wider click/focus target */
|
|
3990
3990
|
.kb-g-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
|
package/dist/web/workspaces.js
CHANGED
|
@@ -962,7 +962,7 @@
|
|
|
962
962
|
const lines = graph.edges.map((e) => { const a = pos[idx.get(e.a)], b = pos[idx.get(e.b)];
|
|
963
963
|
return (a && b) ? `<line class="kb-g-edge" x1="${a.x.toFixed(1)}" y1="${a.y.toFixed(1)}" x2="${b.x.toFixed(1)}" y2="${b.y.toFixed(1)}"/>` : ''; }).join('');
|
|
964
964
|
const dots = graph.nodes.map((n, i) => { const p = pos[i];
|
|
965
|
-
return `<g class="kb-g-node kb-g-${escapeAttr(n.type)}" tabindex="0" role="button" aria-label="${escapeAttr(n.title + ', ' + n.type)}" data-kb-node="${escapeAttr(n.slug)}" data-tip="${escapeAttr(n.title + ' · ' + n.type)}" transform="translate(${p.x.toFixed(1)},${p.y.toFixed(1)})">` +
|
|
965
|
+
return `<g class="kb-g-node kb-g-${escapeAttr(n.type)}" tabindex="0" role="button" aria-label="${escapeAttr(n.title + ', ' + n.type)}" data-kb-node="${escapeAttr(n.slug)}" data-tip="${escapeAttr(n.title + ' · ' + n.type)}" data-pos="${p.x.toFixed(1)},${p.y.toFixed(1)}" transform="translate(${p.x.toFixed(1)},${p.y.toFixed(1)})">` +
|
|
966
966
|
`<circle class="kb-g-hit" r="16"/><circle class="kb-g-dot" r="9"/><text x="13" y="4">${escapeHtml(n.title)}</text></g>`; }).join('');
|
|
967
967
|
const overview = graph.index ? `<button type="button" class="kb-g-overview" data-kb-node="${escapeAttr(graph.index.slug)}" data-tip="Open the overview">✦ Overview</button>` : '';
|
|
968
968
|
const legend = '<div class="kb-g-legend"><span class="kb-gleg src">Source</span><span class="kb-gleg con">Concept</span><span class="kb-gleg per">Person</span></div>';
|
|
@@ -979,6 +979,14 @@
|
|
|
979
979
|
function kbSetVb(svg, x, y, w, h) {
|
|
980
980
|
svg.setAttribute('viewBox', `${x} ${y} ${w} ${h}`);
|
|
981
981
|
const [bx, by, bw] = svg.dataset.vbBase.split(' ').map(Number);
|
|
982
|
+
// Shrinking the viewBox to zoom magnifies everything inside it — dots and labels would balloon and
|
|
983
|
+
// overlap. Counter-scale each node by k = shown-fraction-of-base so its dot + label keep a constant
|
|
984
|
+
// on-screen size (map-label behaviour). scale() is around the group's local origin, where the dot
|
|
985
|
+
// sits, so the dot stays pinned to its graph coord. (Edge stroke stays constant via non-scaling-stroke.)
|
|
986
|
+
const k = w / bw;
|
|
987
|
+
svg.querySelectorAll('.kb-g-node').forEach((n) => {
|
|
988
|
+
if (n.dataset.pos) n.setAttribute('transform', `translate(${n.dataset.pos}) scale(${k})`);
|
|
989
|
+
});
|
|
982
990
|
const off = Math.abs(w - bw) > 0.5 || Math.abs(x - bx) > 0.5 || Math.abs(y - by) > 0.5;
|
|
983
991
|
const fit = svg.parentElement.querySelector('[data-kb-fit]');
|
|
984
992
|
if (fit) fit.hidden = !off;
|