@bendyline/squisq-video-react 2.4.25 → 2.4.26
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-NTLNXUMA.js → chunk-36WUASP4.js} +1 -1
- package/dist/{chunk-IOLZNTKA.js → chunk-COBWVGNZ.js} +1 -1
- package/dist/{chunk-CWLDLWSE.js → chunk-MUPRW43Q.js} +10 -0
- package/dist/{chunk-JVGUGMEZ.js → chunk-VOMLSGQT.js} +1 -1
- package/dist/components/index.js +4 -4
- package/dist/cover-image/index.js +2 -2
- package/dist/dashboard-image/index.js +1 -1
- package/dist/hooks/index.js +2 -2
- package/dist/index.js +4 -4
- package/package.json +2 -2
|
@@ -866,6 +866,11 @@ async function rasterizeCaptureSvgClones(originalRoot, clonedRoot, transientCanv
|
|
|
866
866
|
try {
|
|
867
867
|
for (const [index, svg] of clonedSvgs.entries()) {
|
|
868
868
|
const originalSvg = originalSvgs[index];
|
|
869
|
+
for (const element of [svg, ...Array.from(svg.querySelectorAll("*"))]) {
|
|
870
|
+
if (!element.style) continue;
|
|
871
|
+
element.style.setProperty("animation", "none", "important");
|
|
872
|
+
element.style.setProperty("transition", "none", "important");
|
|
873
|
+
}
|
|
869
874
|
const { width, height } = captureSvgRasterSize(svg, originalSvg);
|
|
870
875
|
const cacheKey = captureSvgRasterCacheKey(originalSvg ?? svg, index);
|
|
871
876
|
activeCacheKeys.add(cacheKey);
|
|
@@ -878,7 +883,12 @@ async function rasterizeCaptureSvgClones(originalRoot, clonedRoot, transientCanv
|
|
|
878
883
|
let rasterCanvas = null;
|
|
879
884
|
try {
|
|
880
885
|
await embedCaptureSvgImages(svg, imageDataUrls);
|
|
886
|
+
const opacity = svg.style.getPropertyValue("opacity");
|
|
887
|
+
const opacityPriority = svg.style.getPropertyPriority("opacity");
|
|
888
|
+
svg.style.setProperty("opacity", "1", "important");
|
|
881
889
|
const serializedSvg = new XMLSerializer().serializeToString(svg);
|
|
890
|
+
if (opacity) svg.style.setProperty("opacity", opacity, opacityPriority);
|
|
891
|
+
else svg.style.removeProperty("opacity");
|
|
882
892
|
let entry = cache.get(cacheKey);
|
|
883
893
|
if (!entry || entry.serializedSvg !== serializedSvg || entry.width !== width || entry.height !== height) {
|
|
884
894
|
const containsForeignObject = svg.querySelector("foreignObject") !== null;
|
package/dist/components/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
VideoExportButton,
|
|
3
3
|
VideoExportModal
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-36WUASP4.js";
|
|
5
5
|
import {
|
|
6
6
|
CoverImageExportModal,
|
|
7
7
|
coverImageFilename,
|
|
8
8
|
validateCoverImageDimensions
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-VOMLSGQT.js";
|
|
10
10
|
import "../chunk-3NJDHK62.js";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-COBWVGNZ.js";
|
|
12
|
+
import "../chunk-MUPRW43Q.js";
|
|
13
13
|
import "../chunk-R4P6O5U6.js";
|
|
14
14
|
import "../chunk-RIXBIX3H.js";
|
|
15
15
|
import "../chunk-5MFQMJ5Z.js";
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
CoverImageExportModal,
|
|
3
3
|
coverImageFilename,
|
|
4
4
|
validateCoverImageDimensions
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-VOMLSGQT.js";
|
|
6
6
|
import "../chunk-3NJDHK62.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-MUPRW43Q.js";
|
|
8
8
|
import "../chunk-R4P6O5U6.js";
|
|
9
9
|
export {
|
|
10
10
|
CoverImageExportModal,
|
package/dist/hooks/index.js
CHANGED
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
resolveVideoCoverFramePlan,
|
|
4
4
|
resolveVideoExportCover,
|
|
5
5
|
useVideoExport
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-COBWVGNZ.js";
|
|
7
7
|
import {
|
|
8
8
|
useFrameCapture
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-MUPRW43Q.js";
|
|
10
10
|
import "../chunk-R4P6O5U6.js";
|
|
11
11
|
import "../chunk-RIXBIX3H.js";
|
|
12
12
|
import "../chunk-5MFQMJ5Z.js";
|
package/dist/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
VideoExportButton,
|
|
3
3
|
VideoExportModal
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-36WUASP4.js";
|
|
5
5
|
import {
|
|
6
6
|
CoverImageExportModal,
|
|
7
7
|
coverImageFilename,
|
|
8
8
|
validateCoverImageDimensions
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VOMLSGQT.js";
|
|
10
10
|
import "./chunk-3NJDHK62.js";
|
|
11
11
|
import {
|
|
12
12
|
DEFAULT_VIDEO_COVER_PRE_ROLL_SECONDS,
|
|
13
13
|
resolveVideoCoverFramePlan,
|
|
14
14
|
resolveVideoExportCover,
|
|
15
15
|
useVideoExport
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-COBWVGNZ.js";
|
|
17
17
|
import {
|
|
18
18
|
useFrameCapture
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MUPRW43Q.js";
|
|
20
20
|
import "./chunk-R4P6O5U6.js";
|
|
21
21
|
import {
|
|
22
22
|
createAudioFileEncoder,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bendyline/squisq-video-react",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.26",
|
|
4
4
|
"description": "React components for browser-based MP4 and animated-GIF export of Squisq documents",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Bendyline",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"@bendyline/squisq": "2.11.19",
|
|
81
81
|
"@bendyline/squisq-video": "2.3.23",
|
|
82
|
-
"@bendyline/squisq-react": "2.11.
|
|
82
|
+
"@bendyline/squisq-react": "2.11.22",
|
|
83
83
|
"@ffmpeg/core": "0.12.10",
|
|
84
84
|
"@ffmpeg/ffmpeg": "0.12.15",
|
|
85
85
|
"@ffmpeg/util": "0.12.2",
|