@intentius/behold 0.29.40 → 0.29.42
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/AGENTS.md +180 -10
- package/README.md +6 -2
- package/dist/cli.js +16121 -13141
- package/example-writes/README.md +1 -1
- package/example-writes/chant.config.ts +0 -6
- package/package.json +5 -2
- package/web/app.js +327 -21
- package/web/carve-export.js +142 -0
- package/web/carve-narration.js +294 -0
- package/web/carve-narration.test.js +48 -0
- package/web/change-set-overlay.js +147 -0
- package/web/change-set-overlay.test.js +83 -0
- package/web/dots-border.js +66 -0
- package/web/dots-border.test.js +27 -0
- package/web/dots-kiosk.js +279 -0
- package/web/dots-kiosk.test.js +60 -0
- package/web/dots-layout.d.ts +10 -0
- package/web/dots-layout.js +201 -0
- package/web/dots-live.js +316 -0
- package/web/dots-live.test.js +220 -0
- package/web/dots-lod.js +122 -0
- package/web/dots-lod.test.js +78 -0
- package/web/dots-recording.d.ts +7 -0
- package/web/dots-recording.js +247 -0
- package/web/dots-recording.test.js +71 -0
- package/web/dots-scene.js +294 -0
- package/web/dots-scene.test.js +118 -0
- package/web/dots-timeline.js +128 -0
- package/web/dots-timeline.test.js +83 -0
- package/web/dots-tour.js +153 -0
- package/web/dots.js +2124 -0
- package/web/dots.test.js +15 -0
- package/web/event-help-modal.js +1 -1
- package/web/index.html +215 -121
- package/web/kiosk-carve.js +225 -0
- package/web/kiosk-carve.test.js +26 -0
- package/web/kiosk-event-help-ui.js +7 -1
- package/web/kiosk-link.js +68 -0
- package/web/kiosk-link.test.js +69 -0
- package/web/kiosk-metrics.js +2 -2
- package/web/kiosk-trace.js +1 -1
- package/web/kiosk.html +186 -135
- package/web/kiosk.js +65 -7
- package/web/motion.js +42 -0
- package/web/motion.test.js +64 -0
- package/web/operator.js +1 -1
- package/web/run-playhead.js +102 -19
- package/web/run-playhead.test.js +81 -11
- package/web/terralith.html +2 -2
- package/web/theme.js +99 -26
- package/web/theme.test.js +70 -6
- package/web/tooltip.js +212 -0
- package/web/tooltip.test.js +193 -0
- package/web/tour-player.js +204 -0
- package/web/tour-player.test.js +115 -0
- package/web/tours/behold.tour.v1.schema.json +182 -0
- package/web/tours/terralith.json +330 -0
- package/web/trunk-lane.js +406 -0
- package/web/trunk-lane.test.js +224 -0
- package/web/workspace-gates.js +29 -4
- package/web/workspace-gates.test.js +23 -2
package/web/dots.test.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// #712: unmounted, the dots layer changes nothing in the app. app.js calls
|
|
2
|
+
// these on every camera move and every wheel event; with no preview mounted
|
|
3
|
+
// they must be no-ops and leave today's 3x zoom-out limit in place.
|
|
4
|
+
import { describe, it, expect } from "vitest";
|
|
5
|
+
import { dotsActive, dotsZoomOutFactor, dotsCamera, unmountDots } from "./dots.js";
|
|
6
|
+
|
|
7
|
+
describe("the dots layer when the preview is off (#712)", () => {
|
|
8
|
+
it("is inactive, sets no zoom limit and ignores the camera", () => {
|
|
9
|
+
expect(dotsActive()).toBe(false);
|
|
10
|
+
expect(dotsZoomOutFactor()).toBe(null);
|
|
11
|
+
expect(() => dotsCamera()).not.toThrow();
|
|
12
|
+
expect(() => unmountDots()).not.toThrow();
|
|
13
|
+
expect(dotsActive()).toBe(false);
|
|
14
|
+
});
|
|
15
|
+
});
|
package/web/event-help-modal.js
CHANGED
|
@@ -103,7 +103,7 @@ export const MODAL_STYLE = `
|
|
|
103
103
|
border: 2px solid var(--bar, var(--focus)); box-shadow: 0 16px 48px color-mix(in srgb, var(--shadow) 80%, transparent); font-size: 1.05em; }
|
|
104
104
|
.eh-modal-held { --bar: var(--bar-foreign, var(--foreign)); } .eh-modal-failed { --bar: var(--bar-degraded, var(--degraded)); } .eh-modal-applied { --bar: var(--bar-managed, var(--managed)); }
|
|
105
105
|
.eh-modal-close { position: absolute; top: 0.4em; right: 0.5em; font-size: 1.3em; background: transparent; border: 0; color: var(--muted); cursor: pointer; }
|
|
106
|
-
.eh-modal-mode { margin: 0 2em 0.3em 0; font: 600 0.
|
|
106
|
+
.eh-modal-mode { margin: 0 2em 0.3em 0; font: 600 0.8em var(--font-ui); font-variant-numeric: tabular-nums; color: var(--bar, var(--muted)); }
|
|
107
107
|
.eh-modal-title { margin: 0 0 0.5em; font-size: 1.35em; }
|
|
108
108
|
.eh-modal-line { margin: 0.2em 0; color: color-mix(in srgb, var(--fg) 82%, var(--muted)); }
|
|
109
109
|
.eh-modal-line.eh-lit { color: var(--fg); font-family: var(--font-mono); font-size: 0.9em; padding: 0.35em 0.6em; border-radius: 6px; background: color-mix(in srgb, var(--bar, var(--focus)) 14%, var(--well, transparent)); box-shadow: inset 3px 0 0 var(--bar, var(--focus)); }
|