@bendyline/squisq-react 2.12.15 → 2.12.17
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/{chunk-KHWLCMZY.js → chunk-3Y62AJBT.js} +3 -3
- package/dist/{chunk-KL4ORZBF.js → chunk-H3HW6MU5.js} +1 -1
- package/dist/{chunk-FFCQT2UN.js → chunk-MPTT6UJ4.js} +1 -1
- package/dist/{chunk-TGITCMIQ.js → chunk-TOI34QD7.js} +4 -3
- package/dist/{chunk-QVPEJ6YE.js → chunk-Z23W4GCL.js} +1 -1
- package/dist/diagram-pictures/index.js +2 -2
- package/dist/index.js +5 -5
- package/dist/layers/index.js +1 -1
- package/dist/page/index.js +4 -4
- package/dist/player/index.js +4 -4
- package/dist/squisq-player.full.global.js +417 -417
- package/dist/squisq-player.global.js +84 -84
- package/dist/standalone-player-full.js +1 -1
- package/dist/standalone-source.js +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LinearDocView
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Z23W4GCL.js";
|
|
4
4
|
import {
|
|
5
5
|
useAudioSync,
|
|
6
6
|
useDocPlayback,
|
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
} from "./chunk-FLPGMUXM.js";
|
|
16
16
|
import {
|
|
17
17
|
BlockRenderer
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MPTT6UJ4.js";
|
|
19
19
|
import {
|
|
20
20
|
isCaptureDrivenVideo,
|
|
21
21
|
seekVideoToFrame
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-TOI34QD7.js";
|
|
23
23
|
import {
|
|
24
24
|
useMediaProvider,
|
|
25
25
|
useMediaUrl,
|
|
@@ -514,9 +514,8 @@ function PlainTextLayer({ layer, viewport, blockTime, textScale = 1 }) {
|
|
|
514
514
|
const maxW = boxWidth ?? viewport.width;
|
|
515
515
|
const maxH = boxHeight ?? viewport.height;
|
|
516
516
|
const scale = Math.min(1, maxW / bbox.width, maxH / bbox.height);
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
);
|
|
517
|
+
const cy = dominantBaseline === "middle" ? bbox.y + bbox.height / 2 : dominantBaseline === "text-after-edge" ? bbox.y + bbox.height : bbox.y;
|
|
518
|
+
setFit(scale < 0.995 ? { scale, cx: x, cy } : null);
|
|
520
519
|
} catch {
|
|
521
520
|
}
|
|
522
521
|
};
|
|
@@ -534,6 +533,8 @@ function PlainTextLayer({ layer, viewport, blockTime, textScale = 1 }) {
|
|
|
534
533
|
}, [
|
|
535
534
|
shrinkToFit,
|
|
536
535
|
linesKey,
|
|
536
|
+
x,
|
|
537
|
+
dominantBaseline,
|
|
537
538
|
boxWidth,
|
|
538
539
|
boxHeight,
|
|
539
540
|
viewport.width,
|
package/dist/index.js
CHANGED
|
@@ -17,17 +17,17 @@ import {
|
|
|
17
17
|
resolveDocPlayerAppearance,
|
|
18
18
|
useBuildNavigation,
|
|
19
19
|
useMediaClipDurations
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-3Y62AJBT.js";
|
|
21
21
|
import {
|
|
22
22
|
PaginatedDocView
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-H3HW6MU5.js";
|
|
24
24
|
import {
|
|
25
25
|
CanvasSection,
|
|
26
26
|
LinearDocView,
|
|
27
27
|
PageSectionView,
|
|
28
28
|
PageViewContext,
|
|
29
29
|
usePageView
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-Z23W4GCL.js";
|
|
31
31
|
import {
|
|
32
32
|
useModalDialog
|
|
33
33
|
} from "./chunk-JP457U6N.js";
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
} from "./chunk-FLPGMUXM.js";
|
|
58
58
|
import {
|
|
59
59
|
BlockRenderer
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-MPTT6UJ4.js";
|
|
61
61
|
import {
|
|
62
62
|
ImageLayer,
|
|
63
63
|
MapLayer,
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
VideoLayer,
|
|
72
72
|
getAnimationStyle,
|
|
73
73
|
getTransitionClass
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-TOI34QD7.js";
|
|
75
75
|
import {
|
|
76
76
|
MermaidDiagram
|
|
77
77
|
} from "./chunk-BXPGK5VO.js";
|
package/dist/layers/index.js
CHANGED
package/dist/page/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PaginatedDocView
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-H3HW6MU5.js";
|
|
4
4
|
import {
|
|
5
5
|
CanvasSection,
|
|
6
6
|
LinearDocView,
|
|
7
7
|
PageSectionView,
|
|
8
8
|
PageViewContext,
|
|
9
9
|
usePageView
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-Z23W4GCL.js";
|
|
11
11
|
import "../chunk-TT6ENR6T.js";
|
|
12
12
|
import "../chunk-FLPGMUXM.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-MPTT6UJ4.js";
|
|
14
|
+
import "../chunk-TOI34QD7.js";
|
|
15
15
|
import "../chunk-BXPGK5VO.js";
|
|
16
16
|
import "../chunk-P6MT4F3R.js";
|
|
17
17
|
export {
|
package/dist/player/index.js
CHANGED
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
MediaClipLayer,
|
|
13
13
|
SocialCaptionOverlay,
|
|
14
14
|
formatTime
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
} from "../chunk-3Y62AJBT.js";
|
|
16
|
+
import "../chunk-Z23W4GCL.js";
|
|
17
17
|
import "../chunk-BFZAPNGC.js";
|
|
18
18
|
import "../chunk-TT6ENR6T.js";
|
|
19
19
|
import {
|
|
@@ -22,8 +22,8 @@ import {
|
|
|
22
22
|
} from "../chunk-FLPGMUXM.js";
|
|
23
23
|
import {
|
|
24
24
|
BlockRenderer
|
|
25
|
-
} from "../chunk-
|
|
26
|
-
import "../chunk-
|
|
25
|
+
} from "../chunk-MPTT6UJ4.js";
|
|
26
|
+
import "../chunk-TOI34QD7.js";
|
|
27
27
|
import "../chunk-BXPGK5VO.js";
|
|
28
28
|
import "../chunk-P6MT4F3R.js";
|
|
29
29
|
export {
|