@remotion/rough-notation 4.0.528 → 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.
Files changed (2) hide show
  1. package/dist/esm/index.mjs +11 -5
  2. package/package.json +4 -4
@@ -1,5 +1,5 @@
1
1
  // src/Annotation.tsx
2
- import React2, { useMemo as useMemo3 } from "react";
2
+ import { useMemo as useMemo3 } from "react";
3
3
  import {
4
4
  Interactive,
5
5
  Freeze,
@@ -100,6 +100,9 @@ var useElementSize = (ref) => {
100
100
  };
101
101
 
102
102
  // ../paths/dist/esm/index.mjs
103
+ import {
104
+ interpolate
105
+ } from "remotion/no-react";
103
106
  var tValues = [
104
107
  [],
105
108
  [],
@@ -2913,6 +2916,7 @@ var makeAnnotationComponent = ({
2913
2916
  styleWhilePostmounted,
2914
2917
  trimBefore,
2915
2918
  playbackRate,
2919
+ loop,
2916
2920
  freeze,
2917
2921
  hidden,
2918
2922
  name,
@@ -2935,7 +2939,6 @@ var makeAnnotationComponent = ({
2935
2939
  const annotation = useMemo3(() => {
2936
2940
  return createAnnotation();
2937
2941
  }, []);
2938
- const outlineRef = React2.useRef(null);
2939
2942
  const config = disabled ? { type: "none" } : { ...configProps, type };
2940
2943
  const annotationElement = /* @__PURE__ */ jsx3(annotation.Annotation, {
2941
2944
  ...config,
@@ -2960,7 +2963,11 @@ var makeAnnotationComponent = ({
2960
2963
  premountingStyle
2961
2964
  } = Internals.usePremounting({
2962
2965
  from: from ?? 0,
2963
- durationInFrames: durationInFrames ?? Infinity,
2966
+ durationInFrames: Internals.resolveSequenceDuration({
2967
+ durationInFrames,
2968
+ playbackRate,
2969
+ loop
2970
+ }),
2964
2971
  premountFor: premountFor ?? null,
2965
2972
  postmountFor: postmountFor ?? null,
2966
2973
  style: null,
@@ -2976,6 +2983,7 @@ var makeAnnotationComponent = ({
2976
2983
  from: from ?? 0,
2977
2984
  trimBefore,
2978
2985
  playbackRate,
2986
+ loop,
2979
2987
  durationInFrames: durationInFrames ?? Infinity,
2980
2988
  freeze,
2981
2989
  hidden,
@@ -2983,13 +2991,11 @@ var makeAnnotationComponent = ({
2983
2991
  showInTimeline: showInTimeline ?? true,
2984
2992
  controls,
2985
2993
  _remotionInternalDocumentationLink: `https://www.remotion.dev/docs/rough-notation/${documentationSlug}`,
2986
- outlineRef,
2987
2994
  _remotionInternalPremountDisplay: effectivePremountFor || null,
2988
2995
  _remotionInternalPostmountDisplay: effectivePostmountFor || null,
2989
2996
  _remotionInternalIsPremounting: premountingActive,
2990
2997
  _remotionInternalIsPostmounting: postmountingActive,
2991
2998
  children: /* @__PURE__ */ jsx3("span", {
2992
- ref: outlineRef,
2993
2999
  style: {
2994
3000
  display: "inline-block",
2995
3001
  position: "relative",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/rough-notation",
3
- "version": "4.0.528",
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.528",
30
- "remotion": "4.0.528",
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.528",
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
  },