@markdy/core 1.4.22 → 1.4.24
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/index.d.ts +1 -0
- package/dist/index.js +11 -1
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -423,6 +423,10 @@ var CONTROLS = {
|
|
|
423
423
|
fit_view: { group: "controls", key: "fit", type: "boolean" },
|
|
424
424
|
fitViewButton: { group: "controls", key: "fit", type: "boolean" },
|
|
425
425
|
fit_view_button: { group: "controls", key: "fit", type: "boolean" },
|
|
426
|
+
interact: { group: "controls", key: "interact", type: "boolean" },
|
|
427
|
+
interactive: { group: "controls", key: "interact", type: "boolean" },
|
|
428
|
+
interactButton: { group: "controls", key: "interact", type: "boolean" },
|
|
429
|
+
interact_button: { group: "controls", key: "interact", type: "boolean" },
|
|
426
430
|
resetView: { group: "controls", key: "resetView", type: "boolean" },
|
|
427
431
|
reset_view: { group: "controls", key: "resetView", type: "boolean" },
|
|
428
432
|
resetViewButton: { group: "controls", key: "resetView", type: "boolean" },
|
|
@@ -509,6 +513,9 @@ var FLAT = {
|
|
|
509
513
|
fit_view: CONTROLS.fit_view,
|
|
510
514
|
fitViewButton: CONTROLS.fitViewButton,
|
|
511
515
|
fit_view_button: CONTROLS.fit_view_button,
|
|
516
|
+
interact: CONTROLS.interact,
|
|
517
|
+
interactButton: CONTROLS.interactButton,
|
|
518
|
+
interact_button: CONTROLS.interact_button,
|
|
512
519
|
resetViewButton: CONTROLS.resetViewButton,
|
|
513
520
|
reset_view_button: CONTROLS.reset_view_button,
|
|
514
521
|
focus: CONTROLS.focus,
|
|
@@ -638,10 +645,12 @@ function resolvePlayer(config = {}, overrides = {}) {
|
|
|
638
645
|
const controlsActive = controlsAllowed && (hostControlDefault || controlsExplicitlyDeclared);
|
|
639
646
|
const unconfiguredFallback = controlsExplicitlyDeclared ? false : hostControlDefault;
|
|
640
647
|
const resolveControl = (value, fallback = unconfiguredFallback) => controlsAllowed && (value ?? fallback);
|
|
648
|
+
const interactExplicit = configuredControls.interact ?? configuredControls.fit;
|
|
641
649
|
const requestedControls = {
|
|
642
650
|
seek: resolveControl(configuredControls.seek, false),
|
|
643
651
|
speed: resolveControl(configuredControls.speed),
|
|
644
652
|
fit: controlsActive && configuredControls.fit !== false,
|
|
653
|
+
interact: controlsActive && interactExplicit !== false,
|
|
645
654
|
resetView: resolveControl(configuredControls.resetView),
|
|
646
655
|
fullscreen: resolveControl(configuredControls.fullscreen),
|
|
647
656
|
svg: resolveControl(configuredControls.svg),
|
|
@@ -667,7 +676,8 @@ function resolvePlayer(config = {}, overrides = {}) {
|
|
|
667
676
|
...requestedControls,
|
|
668
677
|
speed: requestedControls.speed && speeds.length > 1,
|
|
669
678
|
resetView: requestedControls.resetView && interactionEnabled,
|
|
670
|
-
fit: requestedControls.fit
|
|
679
|
+
fit: requestedControls.fit,
|
|
680
|
+
interact: requestedControls.interact
|
|
671
681
|
};
|
|
672
682
|
const controlsEnabled = Object.values(controls).some(Boolean);
|
|
673
683
|
const rate = overrides.playbackRate ?? playback.rate ?? 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markdy/core",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.24",
|
|
4
4
|
"description": "Diagram-native MarkdyScript parser and compiler (auto-layout, edge routing, cue scheduling) — zero runtime dependencies.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -41,7 +41,8 @@
|
|
|
41
41
|
"url": "https://github.com/HoangYell/markdy-com/issues"
|
|
42
42
|
},
|
|
43
43
|
"publishConfig": {
|
|
44
|
-
"access": "public"
|
|
44
|
+
"access": "public",
|
|
45
|
+
"registry": "https://registry.npmjs.org"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
48
|
"tsup": "^8.5.1",
|