@cardenelabs/dragon 0.45.2 → 0.45.3
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/cli.cjs +3 -3
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +3 -3
- package/dist/cli.js.map +1 -1
- package/dist/export.cjs +3 -3
- package/dist/export.cjs.map +1 -1
- package/dist/export.js +3 -3
- package/dist/export.js.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/light/chunk-5OQV42W3.cjs.map +1 -1
- package/dist/light/chunk-CLS6JVKK.cjs.map +1 -1
- package/dist/light/chunk-JCEKXALJ.cjs.map +1 -1
- package/dist/light/git-K3KAAAWW.cjs.map +1 -1
- package/dist/light/index.cjs +3 -3
- package/dist/light/index.cjs.map +1 -1
- package/dist/light/index.js +3 -3
- package/dist/light/index.js.map +1 -1
- package/dist/light/lineup-623J25LU.cjs.map +1 -1
- package/dist/light/state-OZVCHX7H.cjs.map +1 -1
- package/dist/light/time-PQCPVQOE.cjs.map +1 -1
- package/dist/light/tree-6D7KI57H.cjs.map +1 -1
- package/dist/player.global.js +1 -1
- package/package.json +1 -1
- package/src/render/draw.ts +7 -5
package/dist/index.cjs
CHANGED
|
@@ -13237,9 +13237,9 @@ function followView(layout, timeline, diagram, m, id, content, follow, heads, dr
|
|
|
13237
13237
|
return { vh: vh2, mw: mw2, k: k2, mh: mh2, bw: bw2, bgW: bw2 + M.pad * 2, bgH: mh2 + M.pad * 2 + M.title, beside: mh2 > mw2 };
|
|
13238
13238
|
};
|
|
13239
13239
|
const natural = sized(Math.min(worldH, Math.max(F.minH, full * F.aspect)));
|
|
13240
|
-
const bare = natural.beside
|
|
13240
|
+
const bare = frameWidth < F.narrow && (natural.beside || layout.strip !== void 0);
|
|
13241
13241
|
const tableH = layout.strip ? rewrapStrip(layout.strip, 0, 0, full).h + M.inset : 0;
|
|
13242
|
-
const room = follow.height === void 0 ? Number.POSITIVE_INFINITY : (natural.beside ? follow.height : follow.height - natural.bgH - M.inset) - tableH;
|
|
13242
|
+
const room = follow.height === void 0 ? Number.POSITIVE_INFINITY : (natural.beside || bare ? follow.height : follow.height - natural.bgH - M.inset) - tableH;
|
|
13243
13243
|
const { vh, mw, k, mh, bw, bgW, bgH, beside } = room < natural.vh ? sized(Math.max(F.fitMinH, room)) : { ...natural, vh: Number.isFinite(room) ? Math.min(worldH, room) : natural.vh };
|
|
13244
13244
|
const vw = beside && !bare ? Math.min(layout.width, frameWidth - bgW - M.inset) : full;
|
|
13245
13245
|
const clampX = (x) => Math.min(layout.width - vw / 2, Math.max(vw / 2, x));
|
|
@@ -13300,7 +13300,7 @@ function followView(layout, timeline, diagram, m, id, content, follow, heads, dr
|
|
|
13300
13300
|
const head = strip2 === 0 ? "" : `<g class="dg-hd"><rect class="dg-hd-bg" width="${vw}" height="${strip2}"/><line class="dg-sep" x1="0" y1="${strip2}" x2="${vw}" y2="${strip2}"/><g class="dg-a" style="${m.move(cam.map(([t, cx, , s, e]) => [t, vw / 2 - cx, 0, s, e]))}">${heads}</g></g>`;
|
|
13301
13301
|
const body = `<defs><clipPath id="dg-vp-${id}"><rect width="${vw}" height="${vh}" rx="${LOOK.region.radius}"/></clipPath>${mini.clip}</defs><g clip-path="url(#dg-vp-${id})"><rect class="dg-vp-bg" width="${vw}" height="${vh}"/><g class="dg-a" style="${camKf}">${content}</g>${head}</g><rect class="dg-vp-frame" x="0.5" y="0.5" width="${vw - 1}" height="${vh - 1}" rx="${LOOK.region.radius}"/>${mini.body}`;
|
|
13302
13302
|
const w = beside && !bare ? vw + M.inset + bgW : full;
|
|
13303
|
-
const bottom = beside ? vh : bgY + bgH;
|
|
13303
|
+
const bottom = beside || bare ? vh : bgY + bgH;
|
|
13304
13304
|
if (!layout.strip) return { body, w, h: bottom };
|
|
13305
13305
|
const table = rewrapStrip(layout.strip, 0, bottom + M.inset, full);
|
|
13306
13306
|
return { body: body + drawTable(table, layout.strip), w, h: table.y + table.h };
|