🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@types/svg-path-reverse

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/svg-path-reverse

TypeScript definitions for svg-path-reverse

ts5.0
ts5.1
ts5.2
ts5.3
ts5.4
ts5.5
ts5.6
ts5.7
ts5.8
ts5.9
ts6.0
latest
Source
npmnpm
Version
1.7.0
Version published
Maintainers
1
Created
Source

Installation

npm install --save @types/svg-path-reverse

Summary

This package contains type definitions for svg-path-reverse (https://github.com/Pomax/svg-path-reverse#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/svg-path-reverse.

index.d.ts

/*
 * @see [source](https://github.com/Pomax/svg-path-reverse/blob/gh-pages/reverse.js)
 */

/**
 * Normalise an SVG path to absolute coordinates and full commands
 */
declare function normalize(path: string): string;

/**
 * Reverse a normalized SVG path
 */
declare function reverseNormalized(normalizedPath: string): string;

/**
 * Reverse individual subpaths in a path "d" attribute
 * @param path The SVG path to reverse
 * @param subpath Optional subpath index to reverse. If not provided, reverses all subpaths
 */
declare function reverse(path: string, subpath?: number): string;

declare const SVGPathEditor: {
    normalize: typeof normalize;
    reverseNormalized: typeof reverseNormalized;
    reverse: typeof reverse;
};

export = SVGPathEditor;

Additional Details

  • Last updated: Wed, 05 Feb 2025 06:37:10 GMT
  • Dependencies: none

Credits

These definitions were written by Vlad.

FAQs

Package last updated on 05 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts