@remotion/mac-cursors 4.0.528 → 4.0.529
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 +9 -2
- package/package.json +3 -3
package/dist/esm/index.mjs
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
// src/MacOSCursor.tsx
|
|
2
2
|
import React from "react";
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
Freeze,
|
|
5
|
+
Sequence,
|
|
6
|
+
Interactive,
|
|
7
|
+
Internals,
|
|
8
|
+
useCurrentScale
|
|
9
|
+
} from "remotion";
|
|
4
10
|
|
|
5
11
|
// src/cursor-assets.ts
|
|
6
12
|
var cursorAssets = {
|
|
@@ -257,6 +263,7 @@ var MacOSCursorInner = ({
|
|
|
257
263
|
const refForOutline = React.useRef(null);
|
|
258
264
|
const width = resolved?.width ?? undefined;
|
|
259
265
|
const height = resolved?.height ?? undefined;
|
|
266
|
+
const currentScale = useCurrentScale({ dontThrowIfOutsideOfRemotion: true });
|
|
260
267
|
const {
|
|
261
268
|
effectivePremountFor,
|
|
262
269
|
effectivePostmountFor,
|
|
@@ -317,7 +324,7 @@ var MacOSCursorInner = ({
|
|
|
317
324
|
width,
|
|
318
325
|
height,
|
|
319
326
|
preserveAspectRatio: "xMinYMin meet"
|
|
320
|
-
})
|
|
327
|
+
}, cursor === "custom" ? currentScale : undefined)
|
|
321
328
|
}) : null
|
|
322
329
|
})
|
|
323
330
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/mac-cursors",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.529",
|
|
4
4
|
"description": "macOS cursor components for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"remotion": "4.0.
|
|
27
|
+
"remotion": "4.0.529"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"react": ">=16.8.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"react": "19.2.3",
|
|
43
43
|
"react-dom": "19.2.3",
|
|
44
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
44
|
+
"@remotion/eslint-config-internal": "4.0.529",
|
|
45
45
|
"eslint": "9.19.0",
|
|
46
46
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
47
47
|
},
|