@markdy/renderer-dom 1.4.24 → 1.4.25

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -7290,8 +7290,9 @@ function createDiagram(opts) {
7290
7290
  cameraLayer.style.setProperty("transform", "none", "important");
7291
7291
  }
7292
7292
  const hasAuthorInteraction = Boolean(plan.meta.player?.interaction?.pan) || Boolean(plan.meta.player?.interaction?.zoom) || Boolean(plan.meta.player?.interaction?.enabled);
7293
+ const hasInteractControl = showControls && (interactButton ?? fitViewButton) !== false && (Boolean(interactButton) || Boolean(fitViewButton));
7293
7294
  const explicitInteract = defaultInteract ?? explicitInteractOption;
7294
- let interactActive = explicitInteract !== void 0 ? Boolean(explicitInteract) : hasAuthorInteraction || Boolean(explicitInteractiveViewport);
7295
+ let interactActive = explicitInteract !== void 0 ? Boolean(explicitInteract) : hasInteractControl ? false : hasAuthorInteraction || Boolean(explicitInteractiveViewport);
7295
7296
  const ICONS2 = {
7296
7297
  play: '<svg class="markdy-icon" width="12" height="12" viewBox="0 0 24 24" fill="currentColor"><path d="M8 5v14l11-7z"/></svg>',
7297
7298
  pause: '<svg class="markdy-icon" width="12" height="12" viewBox="0 0 24 24" fill="currentColor"><path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/></svg>',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markdy/renderer-dom",
3
- "version": "1.4.24",
3
+ "version": "1.4.25",
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",
@@ -45,7 +45,7 @@
45
45
  "registry": "https://registry.npmjs.org"
46
46
  },
47
47
  "dependencies": {
48
- "@markdy/core": "^1.4.24",
48
+ "@markdy/core": "^1.4.25",
49
49
  "html2canvas": "^1.4.1"
50
50
  },
51
51
  "devDependencies": {