parsegraph-size
TypeScript icon, indicating that this package has built-in type declarations

1.7.5 • Public • Published

parsegraph-size

This module provides a Size object, for managing a width/height combination:

import Size from 'parsegraph-size';

const size = new Size(500, 500);
const scaled = size.scaled(50);
console.log(scaled);

Output:

[w=50, h=50]

/parsegraph-size/

    Package Sidebar

    Install

    npm i parsegraph-size

    Weekly Downloads

    25

    Version

    1.7.5

    License

    MIT

    Unpacked Size

    10.8 kB

    Total Files

    10

    Last publish

    Collaborators

    • dafrito
    • tracy3