@remotion/rough-notation 4.0.537 → 4.0.539

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.
@@ -5,4 +5,4 @@ export type Size = {
5
5
  readonly top: number;
6
6
  readonly refresh: () => void;
7
7
  };
8
- export declare const useElementSize: (ref: import("react").RefObject<HTMLElement | null>) => Size | null;
8
+ export declare const useElementSize: (ref: React.RefObject<HTMLElement | null>) => Size | null;
@@ -1755,9 +1755,9 @@ var constructFromInstructions = (instructions) => {
1755
1755
  if (instruction.type === "q") {
1756
1756
  if (instruction.cpdx === 0 && instruction.cpdy === 0) {
1757
1757
  const linearCurve = makeLinearPosition({
1758
- x0: cur[0] + instruction.cpdx,
1759
- x1: cur[0] + instruction.cpdy,
1760
- y0: cur[1] + instruction.dx,
1758
+ x0: cur[0],
1759
+ x1: cur[0] + instruction.dx,
1760
+ y0: cur[1],
1761
1761
  y1: cur[1] + instruction.dy
1762
1762
  });
1763
1763
  totalLength += linearCurve.getTotalLength();
@@ -4,7 +4,7 @@ export declare const addKeysToPaths: (paths: string[]) => {
4
4
  readonly d: string;
5
5
  readonly key: string;
6
6
  }[];
7
- export declare function getInstructions({ rect, config, seed, options }: {
7
+ export declare function getInstructions({ rect, config, seed, options, }: {
8
8
  readonly rect: Rect;
9
9
  readonly config: ResolvedAnnotationConfig;
10
10
  readonly seed: number;
package/dist/rough.d.ts CHANGED
@@ -7,4 +7,4 @@ export declare const render: ({ seed, element, config, progress, options, }: {
7
7
  readonly config: ResolvedAnnotationConfig;
8
8
  readonly progress: number;
9
9
  readonly options: RoughAnnotationOptions;
10
- }) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>>[];
10
+ }) => React.ReactElement[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/rough-notation",
3
- "version": "4.0.537",
3
+ "version": "4.0.539",
4
4
  "description": "Rough annotation primitives for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -14,8 +14,8 @@
14
14
  "formatting": "oxfmt src --check",
15
15
  "format": "oxfmt src",
16
16
  "lint": "eslint src",
17
- "watch": "tsgo -w",
18
- "make": "tsgo && bun --env-file=../.env.bundle bundle.ts"
17
+ "watch": "tsc -w",
18
+ "make": "tsc && bun --env-file=../.env.bundle bundle.ts"
19
19
  },
20
20
  "author": "Jonny Burger <jonny@remotion.dev>",
21
21
  "contributors": [
@@ -26,8 +26,8 @@
26
26
  "url": "https://github.com/remotion-dev/remotion/issues"
27
27
  },
28
28
  "dependencies": {
29
- "@remotion/paths": "4.0.537",
30
- "remotion": "4.0.537",
29
+ "@remotion/paths": "4.0.539",
30
+ "remotion": "4.0.539",
31
31
  "roughjs": "4.6.6"
32
32
  },
33
33
  "peerDependencies": {
@@ -45,9 +45,9 @@
45
45
  "devDependencies": {
46
46
  "react": "19.2.3",
47
47
  "react-dom": "19.2.3",
48
- "@remotion/eslint-config-internal": "4.0.537",
48
+ "@remotion/eslint-config-internal": "4.0.539",
49
49
  "eslint": "9.19.0",
50
- "@typescript/native-preview": "7.0.0-dev.20260217.1"
50
+ "typescript": "7.1.0-beta"
51
51
  },
52
52
  "keywords": [
53
53
  "remotion",