@remotion/motion-blur 4.0.530 → 4.0.532

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.
@@ -38,7 +38,7 @@ const MotionBlurSample = ({ children, width, height, index, count, shutterInFram
38
38
  const sampleFrame = Math.max(firstFrame, Math.min(lastFrame, frame + ((index + 0.5) / count - 0.5) * shutterInFrames));
39
39
  const content = jsx_runtime_1.jsx(remotion_1.Freeze, { frame: sampleFrame, children: children });
40
40
  const isRepresentativeSample = index === Math.floor(count / 2);
41
- return (jsx_runtime_1.jsx("div", { "aria-hidden": !isRepresentativeSample, drawable: '', style: {
41
+ return (jsx_runtime_1.jsx("div", { "aria-hidden": !isRepresentativeSample, ...(index === 0 ? {} : { drawable: '' }), style: {
42
42
  position: 'absolute',
43
43
  inset: 0,
44
44
  width,
@@ -90,11 +90,7 @@ const HtmlInCanvasMotionBlurInner = ({ children, width, height, shutterAngle = 1
90
90
  ? elementImage
91
91
  : layoutCanvas.captureElementImage(sampleElement);
92
92
  try {
93
- const sampleTransform = context.drawElementImage(image, 0, 0);
94
- if (index === Math.floor(actualSamples / 2)) {
95
- sampleElement.style.transform =
96
- sampleTransform.toString();
97
- }
93
+ context.drawElementImage(image, 0, 0);
98
94
  }
99
95
  finally {
100
96
  if (index !== 0) {
@@ -115,7 +115,7 @@ var MotionBlurSample = ({
115
115
  const isRepresentativeSample = index === Math.floor(count / 2);
116
116
  return /* @__PURE__ */ jsx2("div", {
117
117
  "aria-hidden": !isRepresentativeSample,
118
- ...{ drawable: "" },
118
+ ...index === 0 ? {} : { drawable: "" },
119
119
  style: {
120
120
  position: "absolute",
121
121
  inset: 0,
@@ -186,10 +186,7 @@ var HtmlInCanvasMotionBlurInner = ({
186
186
  for (const [index, sampleElement] of captureElements.entries()) {
187
187
  const image = index === 0 ? elementImage : layoutCanvas.captureElementImage(sampleElement);
188
188
  try {
189
- const sampleTransform = context.drawElementImage(image, 0, 0);
190
- if (index === Math.floor(actualSamples / 2)) {
191
- sampleElement.style.transform = sampleTransform.toString();
192
- }
189
+ context.drawElementImage(image, 0, 0);
193
190
  } finally {
194
191
  if (index !== 0) {
195
192
  image.close();
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/motion-blur"
4
4
  },
5
5
  "name": "@remotion/motion-blur",
6
- "version": "4.0.530",
6
+ "version": "4.0.532",
7
7
  "description": "Motion blur effect for Remotion",
8
8
  "main": "dist/cjs/index.js",
9
9
  "types": "dist/cjs/index.d.ts",
@@ -21,7 +21,7 @@
21
21
  "url": "https://github.com/remotion-dev/remotion/issues"
22
22
  },
23
23
  "dependencies": {
24
- "remotion": "4.0.530"
24
+ "remotion": "4.0.532"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "react": ">=16.8.0",
@@ -39,8 +39,8 @@
39
39
  "devDependencies": {
40
40
  "react": "19.2.3",
41
41
  "react-dom": "19.2.3",
42
- "remotion": "4.0.530",
43
- "@remotion/eslint-config-internal": "4.0.530",
42
+ "remotion": "4.0.532",
43
+ "@remotion/eslint-config-internal": "4.0.532",
44
44
  "eslint": "9.19.0",
45
45
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
46
46
  },