@remotion/transitions 4.0.495 → 4.0.497

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.
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.zoomInOut = exports.zoomInOutShader = void 0;
4
4
  const html_in_canvas_presentation_1 = require("../html-in-canvas-presentation");
5
+ const upload_element_image_1 = require("./upload-element-image");
5
6
  const VERTEX_SHADER = `#version 300 es
6
7
  in vec2 a_pos;
7
8
  out vec2 v_uv;
@@ -128,13 +129,13 @@ const zoomInOutShader = (canvas) => {
128
129
  gl.activeTexture(gl.TEXTURE0);
129
130
  gl.bindTexture(gl.TEXTURE_2D, prevTex);
130
131
  if (prevImage) {
131
- gl.texElementImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, prevImage);
132
+ (0, upload_element_image_1.uploadElementImage)(gl, prevImage);
132
133
  }
133
134
  gl.uniform1i(uPrev, 0);
134
135
  gl.activeTexture(gl.TEXTURE1);
135
136
  gl.bindTexture(gl.TEXTURE_2D, nextTex);
136
137
  if (nextImage) {
137
- gl.texElementImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, nextImage);
138
+ (0, upload_element_image_1.uploadElementImage)(gl, nextImage);
138
139
  }
139
140
  gl.uniform1i(uNext, 1);
140
141
  gl.uniform1f(uTime, effectiveTime);
package/dist/types.d.ts CHANGED
@@ -26,7 +26,7 @@ export type TransitionPresentationComponentProps<PresentationProps extends Recor
26
26
  presentationDirection: PresentationDirection;
27
27
  passedProps: PresentationProps;
28
28
  presentationDurationInFrames: number;
29
- onElementImage: (elementImage: ElementImage, draw: DrawFunction) => void;
29
+ onElementImage: (elementImage: OffscreenCanvas, draw: DrawFunction) => void;
30
30
  onUnmount: () => void;
31
31
  bothEnteringAndExiting: boolean;
32
32
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/transitions"
4
4
  },
5
5
  "name": "@remotion/transitions",
6
- "version": "4.0.495",
6
+ "version": "4.0.497",
7
7
  "description": "Library for creating transitions in Remotion",
8
8
  "main": "dist/esm/index.mjs",
9
9
  "module": "dist/esm/index.js",
@@ -22,18 +22,18 @@
22
22
  "url": "https://github.com/remotion-dev/remotion/issues"
23
23
  },
24
24
  "dependencies": {
25
- "remotion": "4.0.495",
26
- "@remotion/shapes": "4.0.495",
27
- "@remotion/paths": "4.0.495"
25
+ "remotion": "4.0.497",
26
+ "@remotion/shapes": "4.0.497",
27
+ "@remotion/paths": "4.0.497"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@happy-dom/global-registrator": "14.5.1",
31
- "remotion": "4.0.495",
31
+ "remotion": "4.0.497",
32
32
  "react": "19.2.3",
33
33
  "react-dom": "19.2.3",
34
- "@remotion/test-utils": "4.0.495",
35
- "@remotion/player": "4.0.495",
36
- "@remotion/eslint-config-internal": "4.0.495",
34
+ "@remotion/test-utils": "4.0.497",
35
+ "@remotion/player": "4.0.497",
36
+ "@remotion/eslint-config-internal": "4.0.497",
37
37
  "eslint": "9.19.0",
38
38
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
39
39
  },