@markdy/renderer-dom 0.8.17 → 0.8.18

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/README.md CHANGED
@@ -77,7 +77,7 @@ diagram.destroy(); // clean up DOM + cancel animations
77
77
  | `sceneBoundaryProgress` | `boolean` | `progressBar ?? true` | Preferred flag for the rainbow scene-boundary progress bar |
78
78
  | `playbackRate` | `number` | `1` | Normalized timeline speed multiplier; `1` is Markdy's normal pace |
79
79
  | `interactiveViewport` | `boolean` | `false` | Enable wheel zoom and drag pan on the rendered viewport |
80
- | `controls` | `boolean` | `false` | Show a compact toolbar with play/pause, restart, speed, and view reset controls when viewport interaction is enabled |
80
+ | `controls` | `boolean` | `false` | Show a compact toolbar with play/pause, restart, speed, and view reset controls; also enables viewport interaction |
81
81
  | `onWarning` | `(warning: Diagnostic) => void` | `console.warn` | Called for each soft parse warning |
82
82
  | `onTimeUpdate` | `(seconds: number, durationSeconds: number) => void` | — | Called whenever playback or seek changes the current time |
83
83
  | `onPlayStateChange` | `(playing: boolean) => void` | — | Called when playback starts or pauses |
package/dist/index.d.ts CHANGED
@@ -24,7 +24,7 @@ interface DiagramOptions {
24
24
  playbackRate?: number;
25
25
  /** Enable wheel zoom and drag pan on the rendered viewport. Defaults to false. */
26
26
  interactiveViewport?: boolean;
27
- /** Show built-in playback and viewport controls. Defaults to false. */
27
+ /** Show built-in playback and viewport controls. Also enables viewport interaction. Defaults to false. */
28
28
  controls?: boolean;
29
29
  onWarning?: (warning: Diagnostic) => void;
30
30
  onTimeUpdate?: (seconds: number, durationSeconds: number) => void;
package/dist/index.js CHANGED
@@ -1863,8 +1863,8 @@ function createDiagram(opts) {
1863
1863
  progressBar,
1864
1864
  sceneBoundaryProgress,
1865
1865
  playbackRate: initialPlaybackRate = DEFAULT_PLAYBACK_RATE,
1866
- interactiveViewport = false,
1867
1866
  controls = false,
1867
+ interactiveViewport = controls,
1868
1868
  onWarning = (w) => console.warn(`[markdy] line ${w.line}: ${w.message}`),
1869
1869
  onTimeUpdate,
1870
1870
  onPlayStateChange
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markdy/renderer-dom",
3
- "version": "0.8.17",
3
+ "version": "0.8.18",
4
4
  "description": "Browser renderer for diagram-native animated MarkdyScript architecture diagrams, built on the Web Animations API.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -44,14 +44,14 @@
44
44
  "access": "public"
45
45
  },
46
46
  "dependencies": {
47
- "@markdy/core": "0.8.17"
47
+ "@markdy/core": "0.8.18"
48
48
  },
49
49
  "devDependencies": {
50
50
  "jsdom": "^29.1.1",
51
51
  "tsup": "^8.5.1",
52
52
  "typescript": "^5.9.3",
53
53
  "vitest": "^4.1.7",
54
- "@markdy/stdlib-systems": "0.8.17"
54
+ "@markdy/stdlib-systems": "0.8.18"
55
55
  },
56
56
  "scripts": {
57
57
  "build": "tsup",