🚨 Latest Research:Tanstack npm Packages Compromised in Ongoing Mini Shai-Hulud Supply-Chain Attack.Learn More
Socket
Book a DemoSign in
Socket

@types/flubber

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/flubber

TypeScript definitions for flubber

ts4.8
ts4.9
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
0.4.0
Version published
Weekly downloads
37K
27.52%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/flubber

Summary

This package contains type definitions for flubber (https://github.com/veltman/flubber#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/flubber.

index.d.ts

export type Interpolator = (t: number) => string;

export type Shape = number[][] | string;

export interface Options {
    maxSegmentLength?: number;
    string?: boolean;
    single?: boolean;
}

export function interpolate(fromShape: Shape, toShape: Shape, options?: Options): Interpolator;

export function toCircle(fromShape: Shape, x: number, y: number, r: number): Interpolator;

export function toRect(
    fromShape: Shape,
    x: number,
    y: number,
    width: number,
    height: number,
    options?: Options,
): Interpolator;

export function fromCircle(x: number, y: number, radius: number, toShape: Shape, options?: Options): Interpolator;

export function fromRect(
    x: number,
    y: number,
    width: number,
    height: number,
    toShape: Shape,
    options?: Options,
): Interpolator;

export function separate(fromShape: Shape, toShapeList: Shape[], options?: Options): Interpolator;

export function combine(fromShapeList: Shape[], toShape: Shape, options?: Options): Interpolator;

export function interpolateAll(fromShapeList: Shape[], toShapeList: Shape[], options?: Options): Interpolator;

export function toPathString(ring: Array<[number, number]>): string;

export function splitPathString(pathString: string): string[];

Additional Details

  • Last updated: Sat, 06 Jul 2024 08:09:34 GMT
  • Dependencies: none

Credits

These definitions were written by Huxulm.

FAQs

Package last updated on 06 Jul 2024

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