@markdy/core 1.0.11 → 1.0.12
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 +13 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -395,6 +395,7 @@ var CONTROL_KEYS = [
|
|
|
395
395
|
"speed",
|
|
396
396
|
"fit",
|
|
397
397
|
"resetView",
|
|
398
|
+
"fullscreen",
|
|
398
399
|
"svg",
|
|
399
400
|
"share"
|
|
400
401
|
];
|
|
@@ -437,6 +438,11 @@ var CONTROLS = {
|
|
|
437
438
|
reset_view: { group: "controls", key: "resetView", type: "boolean" },
|
|
438
439
|
resetViewButton: { group: "controls", key: "resetView", type: "boolean" },
|
|
439
440
|
reset_view_button: { group: "controls", key: "resetView", type: "boolean" },
|
|
441
|
+
fullscreen: { group: "controls", key: "fullscreen", type: "boolean" },
|
|
442
|
+
fullScreen: { group: "controls", key: "fullscreen", type: "boolean" },
|
|
443
|
+
full_screen: { group: "controls", key: "fullscreen", type: "boolean" },
|
|
444
|
+
fullscreenButton: { group: "controls", key: "fullscreen", type: "boolean" },
|
|
445
|
+
fullscreen_button: { group: "controls", key: "fullscreen", type: "boolean" },
|
|
440
446
|
svg: { group: "controls", key: "svg", type: "boolean" },
|
|
441
447
|
exportSvg: { group: "controls", key: "svg", type: "boolean" },
|
|
442
448
|
export_svg: { group: "controls", key: "svg", type: "boolean" },
|
|
@@ -501,6 +507,11 @@ var FLAT = {
|
|
|
501
507
|
fit_view_button: CONTROLS.fit_view_button,
|
|
502
508
|
resetViewButton: CONTROLS.resetViewButton,
|
|
503
509
|
reset_view_button: CONTROLS.reset_view_button,
|
|
510
|
+
fullscreen: CONTROLS.fullscreen,
|
|
511
|
+
fullScreen: CONTROLS.fullScreen,
|
|
512
|
+
full_screen: CONTROLS.full_screen,
|
|
513
|
+
fullscreenButton: CONTROLS.fullscreenButton,
|
|
514
|
+
fullscreen_button: CONTROLS.fullscreen_button,
|
|
504
515
|
exportSvg: CONTROLS.exportSvg,
|
|
505
516
|
export_svg: CONTROLS.export_svg,
|
|
506
517
|
shareLink: CONTROLS.shareLink,
|
|
@@ -591,6 +602,7 @@ function resolvePlayer(config = {}, overrides = {}) {
|
|
|
591
602
|
speed: controlsOn && (config.controls?.speed ?? true),
|
|
592
603
|
fit: controlsOn && (config.controls?.fit ?? true),
|
|
593
604
|
resetView: controlsOn && (config.controls?.resetView ?? true),
|
|
605
|
+
fullscreen: controlsOn && (config.controls?.fullscreen ?? true),
|
|
594
606
|
svg: controlsOn && (config.controls?.svg ?? true),
|
|
595
607
|
share: controlsOn && (config.controls?.share ?? true)
|
|
596
608
|
};
|
|
@@ -602,7 +614,7 @@ function resolvePlayer(config = {}, overrides = {}) {
|
|
|
602
614
|
};
|
|
603
615
|
const interactionEnabled = gestures.zoom || gestures.pan || gestures.doubleClickToReset;
|
|
604
616
|
const resetView = controls.resetView && interactionEnabled;
|
|
605
|
-
const controlsEnabled = controls.play || controls.restart || controls.prevBeat || controls.nextBeat || controls.seek || controls.speed || controls.fit || controls.svg || controls.share || resetView;
|
|
617
|
+
const controlsEnabled = controls.play || controls.restart || controls.prevBeat || controls.nextBeat || controls.seek || controls.speed || controls.fit || controls.resetView || controls.fullscreen || controls.svg || controls.share || resetView;
|
|
606
618
|
const rate = overrides.playbackRate ?? playback.rate ?? 1;
|
|
607
619
|
return {
|
|
608
620
|
playback: {
|
package/package.json
CHANGED