0.5.0 • Published 3 months ago

@types/cobe v0.5.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

Installation

npm install --save @types/cobe

Summary

This package contains type definitions for cobe (https://github.com/shuding/cobe).

Details

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

index.d.ts

// Type definitions for cobe 0.4
// Project: https://github.com/shuding/cobe
// Definitions by: Martin Badin <https://github.com/martin-badin>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

import Phenomenon from 'phenomenon';

declare namespace cobe {
    interface Marker {
        location: [number, number];
        size: number;
    }

    interface Options {
        baseColor?: number[];
        dark?: number;
        devicePixelRatio?: number;
        diffuse?: number;
        glowColor?: number[];
        height: number;
        mapBrightness?: number;
        mapSamples?: number;
        markerColor?: number[];
        markers: Marker[];
        phi?: number;
        theta?: number;
        width: number;

        onRender?(state: Record<string, unknown>): void;
    }
}

declare function cobe(canvas: HTMLCanvasElement, opts: cobe.Options): Phenomenon;

export = cobe;

Additional Details

  • Last updated: Wed, 23 Feb 2022 18:01:45 GMT
  • Dependencies: @types/phenomenon
  • Global values: none

Credits

These definitions were written by Martin Badin.

0.5.0

3 months ago

0.4.1

9 months ago

0.4.3

7 months ago

0.4.2

7 months ago

0.4.0

2 years ago