@remotion/rough-notation 4.0.529 → 4.0.530
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/esm/index.mjs +8 -5
- package/package.json +4 -4
package/dist/esm/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/Annotation.tsx
|
|
2
|
-
import
|
|
2
|
+
import { useMemo as useMemo3 } from "react";
|
|
3
3
|
import {
|
|
4
4
|
Interactive,
|
|
5
5
|
Freeze,
|
|
@@ -2916,6 +2916,7 @@ var makeAnnotationComponent = ({
|
|
|
2916
2916
|
styleWhilePostmounted,
|
|
2917
2917
|
trimBefore,
|
|
2918
2918
|
playbackRate,
|
|
2919
|
+
loop,
|
|
2919
2920
|
freeze,
|
|
2920
2921
|
hidden,
|
|
2921
2922
|
name,
|
|
@@ -2938,7 +2939,6 @@ var makeAnnotationComponent = ({
|
|
|
2938
2939
|
const annotation = useMemo3(() => {
|
|
2939
2940
|
return createAnnotation();
|
|
2940
2941
|
}, []);
|
|
2941
|
-
const outlineRef = React2.useRef(null);
|
|
2942
2942
|
const config = disabled ? { type: "none" } : { ...configProps, type };
|
|
2943
2943
|
const annotationElement = /* @__PURE__ */ jsx3(annotation.Annotation, {
|
|
2944
2944
|
...config,
|
|
@@ -2963,7 +2963,11 @@ var makeAnnotationComponent = ({
|
|
|
2963
2963
|
premountingStyle
|
|
2964
2964
|
} = Internals.usePremounting({
|
|
2965
2965
|
from: from ?? 0,
|
|
2966
|
-
durationInFrames:
|
|
2966
|
+
durationInFrames: Internals.resolveSequenceDuration({
|
|
2967
|
+
durationInFrames,
|
|
2968
|
+
playbackRate,
|
|
2969
|
+
loop
|
|
2970
|
+
}),
|
|
2967
2971
|
premountFor: premountFor ?? null,
|
|
2968
2972
|
postmountFor: postmountFor ?? null,
|
|
2969
2973
|
style: null,
|
|
@@ -2979,6 +2983,7 @@ var makeAnnotationComponent = ({
|
|
|
2979
2983
|
from: from ?? 0,
|
|
2980
2984
|
trimBefore,
|
|
2981
2985
|
playbackRate,
|
|
2986
|
+
loop,
|
|
2982
2987
|
durationInFrames: durationInFrames ?? Infinity,
|
|
2983
2988
|
freeze,
|
|
2984
2989
|
hidden,
|
|
@@ -2986,13 +2991,11 @@ var makeAnnotationComponent = ({
|
|
|
2986
2991
|
showInTimeline: showInTimeline ?? true,
|
|
2987
2992
|
controls,
|
|
2988
2993
|
_remotionInternalDocumentationLink: `https://www.remotion.dev/docs/rough-notation/${documentationSlug}`,
|
|
2989
|
-
outlineRef,
|
|
2990
2994
|
_remotionInternalPremountDisplay: effectivePremountFor || null,
|
|
2991
2995
|
_remotionInternalPostmountDisplay: effectivePostmountFor || null,
|
|
2992
2996
|
_remotionInternalIsPremounting: premountingActive,
|
|
2993
2997
|
_remotionInternalIsPostmounting: postmountingActive,
|
|
2994
2998
|
children: /* @__PURE__ */ jsx3("span", {
|
|
2995
|
-
ref: outlineRef,
|
|
2996
2999
|
style: {
|
|
2997
3000
|
display: "inline-block",
|
|
2998
3001
|
position: "relative",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/rough-notation",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.530",
|
|
4
4
|
"description": "Rough annotation primitives for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@remotion/paths": "4.0.
|
|
30
|
-
"remotion": "4.0.
|
|
29
|
+
"@remotion/paths": "4.0.530",
|
|
30
|
+
"remotion": "4.0.530",
|
|
31
31
|
"roughjs": "4.6.6"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"react": "19.2.3",
|
|
47
47
|
"react-dom": "19.2.3",
|
|
48
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
48
|
+
"@remotion/eslint-config-internal": "4.0.530",
|
|
49
49
|
"eslint": "9.19.0",
|
|
50
50
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
51
51
|
},
|