# @types/svg-path-contours

> TypeScript definitions for svg-path-contours

Latest version **2.0.1** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/svg-path-contours
pnpm add @types/svg-path-contours
yarn add @types/svg-path-contours
bun add @types/svg-path-contours
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2023-11-07 |
| First published | 2023-11-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51428 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/svg-path-contours
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/svg-path-contours
- npm.io page: https://npm.io/package/@types/svg-path-contours

## Recent versions

- 2.0.1 (latest) — 2023-11-07
- 2.0.0 — 2023-11-03

## README

# Installation
> `npm install --save @types/svg-path-contours`

# Summary
This package contains type definitions for svg-path-contours (https://github.com/mattdesl/svg-path-contours).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/svg-path-contours.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/svg-path-contours/index.d.ts)
````ts
declare namespace Contours {
    type MoveCommand = [code: "m" | "M", x: number, y: number];
    type LineCommand = [code: "l" | "L", x: number, y: number];
    type HorizontalCommand = [code: "h" | "H", x: number];
    type VerticalCommand = [code: "v" | "V", y: number];
    // eslint-disable-next-line @definitelytyped/no-single-element-tuple-type
    type ClosePathCommand = [code: "z" | "Z"];
    type BezierCurveCommand = [code: "c" | "C", x1: number, y1: number, x2: number, y2: number, x: number, y: number];
    type FollowingBezierCurveCommand = [code: "s" | "S", x2: number, y2: number, x: number, y: number];
    type QuadraticCurveCommand = [code: "q" | "Q", x1: number, y1: number, x: number, y: number];
    type FollowingQuadraticCurveCommand = [code: "t" | "T", x: number, y: number];
    type ArcCommand = [
        code: "a" | "A",
        rx: number,
        ry: number,
        xRot: number,
        largeArcFlag: number,
        sweepFlag: number,
        x: number,
        y: number,
    ];
    type Command =
        | MoveCommand
        | LineCommand
        | HorizontalCommand
        | VerticalCommand
        | ClosePathCommand
        | BezierCurveCommand
        | FollowingBezierCurveCommand
        | QuadraticCurveCommand
        | FollowingQuadraticCurveCommand
        | ArcCommand;
}

declare function Contours(path: Contours.Command[], scale?: number): Contours.Command[];
export = Contours;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [Sikriti Dakua](https://github.com/devloop01).

---
_Source: https://npm.io/package/@types/svg-path-contours · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
