@remotion/paths 4.0.423 → 4.0.425

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.
@@ -1,5 +1,5 @@
1
1
  import type { CInstruction, Point, ReducedInstruction } from './helpers/types';
2
- export declare function cutCInstruction({ progress, lastPoint, instruction, }: {
2
+ export declare function cutCInstruction({ progress, lastPoint, instruction }: {
3
3
  progress: number;
4
4
  lastPoint: Point;
5
5
  instruction: CInstruction;
@@ -1,9 +1,9 @@
1
1
  import type { AbsoluteInstruction, QInstruction, ReducedInstruction } from './types';
2
- export declare const iterateOverSegments: <T extends ReducedInstruction | QInstruction>({ segments, iterate, }: {
3
- segments: (AbsoluteInstruction | QInstruction)[];
2
+ export declare const iterateOverSegments: <T extends QInstruction | ReducedInstruction>({ segments, iterate, }: {
3
+ segments: AbsoluteInstruction[];
4
4
  iterate: (options: {
5
- segment: AbsoluteInstruction | QInstruction;
6
- prevSegment: (AbsoluteInstruction | QInstruction) | null;
5
+ segment: AbsoluteInstruction;
6
+ prevSegment: AbsoluteInstruction | null;
7
7
  x: number;
8
8
  y: number;
9
9
  initialX: number;
package/dist/index.d.ts CHANGED
@@ -19,7 +19,7 @@ export { serializeInstructions } from './serialize-instructions';
19
19
  export { translatePath } from './translate-path';
20
20
  export { warpPath, WarpPathFn } from './warp-path';
21
21
  export declare const PathInternals: {
22
- getBoundingBoxFromInstructions: (instructions: import("./helpers/types").ReducedInstruction[]) => import("./helpers/types").BoundingBox;
22
+ getBoundingBoxFromInstructions: (instructions: import(".").ReducedInstruction[]) => import(".").BoundingBox;
23
23
  debugPath: (d: string) => {
24
24
  d: string;
25
25
  color: string;
package/dist/index.js CHANGED
@@ -4,43 +4,43 @@ exports.PathInternals = exports.warpPath = exports.translatePath = exports.seria
4
4
  const cut_path_1 = require("./cut-path");
5
5
  const debug_path_1 = require("./debug-path");
6
6
  const get_bounding_box_1 = require("./get-bounding-box");
7
- var cut_path_2 = require("./cut-path");
7
+ const cut_path_2 = require("./cut-path");
8
8
  Object.defineProperty(exports, "cutPath", { enumerable: true, get: function () { return cut_path_2.cutPath; } });
9
- var evolve_path_1 = require("./evolve-path");
9
+ const evolve_path_1 = require("./evolve-path");
10
10
  Object.defineProperty(exports, "evolvePath", { enumerable: true, get: function () { return evolve_path_1.evolvePath; } });
11
- var extend_viewbox_1 = require("./extend-viewbox");
11
+ const extend_viewbox_1 = require("./extend-viewbox");
12
12
  Object.defineProperty(exports, "extendViewBox", { enumerable: true, get: function () { return extend_viewbox_1.extendViewBox; } });
13
- var get_bounding_box_2 = require("./get-bounding-box");
13
+ const get_bounding_box_2 = require("./get-bounding-box");
14
14
  Object.defineProperty(exports, "getBoundingBox", { enumerable: true, get: function () { return get_bounding_box_2.getBoundingBox; } });
15
- var get_instruction_index_at_length_1 = require("./get-instruction-index-at-length");
15
+ const get_instruction_index_at_length_1 = require("./get-instruction-index-at-length");
16
16
  Object.defineProperty(exports, "getInstructionIndexAtLength", { enumerable: true, get: function () { return get_instruction_index_at_length_1.getInstructionIndexAtLength; } });
17
- var get_length_1 = require("./get-length");
17
+ const get_length_1 = require("./get-length");
18
18
  Object.defineProperty(exports, "getLength", { enumerable: true, get: function () { return get_length_1.getLength; } });
19
- var get_point_at_length_1 = require("./get-point-at-length");
19
+ const get_point_at_length_1 = require("./get-point-at-length");
20
20
  Object.defineProperty(exports, "getPointAtLength", { enumerable: true, get: function () { return get_point_at_length_1.getPointAtLength; } });
21
- var get_subpaths_1 = require("./get-subpaths");
21
+ const get_subpaths_1 = require("./get-subpaths");
22
22
  Object.defineProperty(exports, "getSubpaths", { enumerable: true, get: function () { return get_subpaths_1.getSubpaths; } });
23
- var get_tangent_at_length_1 = require("./get-tangent-at-length");
23
+ const get_tangent_at_length_1 = require("./get-tangent-at-length");
24
24
  Object.defineProperty(exports, "getTangentAtLength", { enumerable: true, get: function () { return get_tangent_at_length_1.getTangentAtLength; } });
25
- var interpolate_path_1 = require("./interpolate-path/interpolate-path");
25
+ const interpolate_path_1 = require("./interpolate-path/interpolate-path");
26
26
  Object.defineProperty(exports, "interpolatePath", { enumerable: true, get: function () { return interpolate_path_1.interpolatePath; } });
27
- var normalize_path_1 = require("./normalize-path");
27
+ const normalize_path_1 = require("./normalize-path");
28
28
  Object.defineProperty(exports, "normalizePath", { enumerable: true, get: function () { return normalize_path_1.normalizePath; } });
29
- var parse_path_1 = require("./parse-path");
29
+ const parse_path_1 = require("./parse-path");
30
30
  Object.defineProperty(exports, "parsePath", { enumerable: true, get: function () { return parse_path_1.parsePath; } });
31
- var reduce_instructions_1 = require("./reduce-instructions");
31
+ const reduce_instructions_1 = require("./reduce-instructions");
32
32
  Object.defineProperty(exports, "reduceInstructions", { enumerable: true, get: function () { return reduce_instructions_1.reduceInstructions; } });
33
- var reset_path_1 = require("./reset-path");
33
+ const reset_path_1 = require("./reset-path");
34
34
  Object.defineProperty(exports, "resetPath", { enumerable: true, get: function () { return reset_path_1.resetPath; } });
35
- var reverse_path_1 = require("./reverse-path");
35
+ const reverse_path_1 = require("./reverse-path");
36
36
  Object.defineProperty(exports, "reversePath", { enumerable: true, get: function () { return reverse_path_1.reversePath; } });
37
- var scale_path_1 = require("./scale-path");
37
+ const scale_path_1 = require("./scale-path");
38
38
  Object.defineProperty(exports, "scalePath", { enumerable: true, get: function () { return scale_path_1.scalePath; } });
39
- var serialize_instructions_1 = require("./serialize-instructions");
39
+ const serialize_instructions_1 = require("./serialize-instructions");
40
40
  Object.defineProperty(exports, "serializeInstructions", { enumerable: true, get: function () { return serialize_instructions_1.serializeInstructions; } });
41
- var translate_path_1 = require("./translate-path");
41
+ const translate_path_1 = require("./translate-path");
42
42
  Object.defineProperty(exports, "translatePath", { enumerable: true, get: function () { return translate_path_1.translatePath; } });
43
- var warp_path_1 = require("./warp-path");
43
+ const warp_path_1 = require("./warp-path");
44
44
  Object.defineProperty(exports, "warpPath", { enumerable: true, get: function () { return warp_path_1.warpPath; } });
45
45
  exports.PathInternals = {
46
46
  getBoundingBoxFromInstructions: get_bounding_box_1.getBoundingBoxFromInstructions,
@@ -1,2 +1,2 @@
1
1
  import type { CInstruction, LInstruction, MInstruction, ReducedInstruction, ZInstruction } from '../helpers/types';
2
- export declare const interpolateInstructionOfSameKind: (t: number, first: ReducedInstruction, second: ReducedInstruction) => LInstruction | CInstruction | MInstruction | ZInstruction;
2
+ export declare const interpolateInstructionOfSameKind: (t: number, first: ReducedInstruction, second: ReducedInstruction) => CInstruction | LInstruction | MInstruction | ZInstruction;
@@ -8,4 +8,4 @@ import type { CInstruction, LInstruction, QInstruction, ReducedInstruction } fro
8
8
  * @param {Number} segmentCount The number of segments to create
9
9
  * @return {Object[]} An array of commands representing the segments in sequence
10
10
  */
11
- export declare const splitCurveInstructions: (instructionStartX: number, instructionStartY: number, instructionEnd: LInstruction | QInstruction | CInstruction, segmentCount: number) => ReducedInstruction[];
11
+ export declare const splitCurveInstructions: (instructionStartX: number, instructionStartY: number, instructionEnd: CInstruction | LInstruction | QInstruction, segmentCount: number) => ReducedInstruction[];
@@ -1,5 +1,5 @@
1
1
  import type { WarpPathFn } from './warp-helpers';
2
2
  export declare const warpPath: (path: string, transformer: WarpPathFn, options?: {
3
- interpolationThreshold?: number;
4
- }) => string;
3
+ interpolationThreshold?: number | undefined;
4
+ } | undefined) => string;
5
5
  export type { WarpPathFn } from './warp-helpers';
package/package.json CHANGED
@@ -3,17 +3,17 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/paths"
4
4
  },
5
5
  "name": "@remotion/paths",
6
- "version": "4.0.423",
6
+ "version": "4.0.425",
7
7
  "description": "Utilities for working with SVG paths",
8
8
  "main": "dist/index.js",
9
9
  "types": "dist/index.d.ts",
10
10
  "module": "dist/esm/index.mjs",
11
11
  "sideEffects": false,
12
12
  "scripts": {
13
- "formatting": "prettier --experimental-cli src --check",
13
+ "formatting": "prettier src --check",
14
14
  "lint": "eslint src",
15
15
  "test": "bun test src",
16
- "make": "tsc -d && bun --env-file=../.env.bundle bundle.ts"
16
+ "make": "tsgo -d && bun --env-file=../.env.bundle bundle.ts"
17
17
  },
18
18
  "author": "Jonny Burger <jonny@remotion.dev>",
19
19
  "license": "MIT",
@@ -26,8 +26,9 @@
26
26
  "utilities"
27
27
  ],
28
28
  "devDependencies": {
29
- "@remotion/eslint-config-internal": "4.0.423",
30
- "eslint": "9.19.0"
29
+ "@remotion/eslint-config-internal": "4.0.425",
30
+ "eslint": "9.19.0",
31
+ "@typescript/native-preview": "7.0.0-dev.20260217.1"
31
32
  },
32
33
  "exports": {
33
34
  "./package.json": "./package.json",