@antv/coord
    TypeScript icon, indicating that this package has built-in type declarations

    0.4.0 • Public • Published

    @antv/coord

    Toolkit for mapping elements of sets into geometric objects.

    Build Status Coverage Status npm Version npm Download npm License

    Features

    • Powerful
    • High performance
    • Fully embrace TypeScript

    📦 Installation

    $ npm install @antv/coord

    🔨 Getting Started

    import { Coordinate, Options } from '@antv/coord';
    
    const optons: Options = {
      x: 0,
      y: 0,
      width: 500,
      height: 500,
      transformations: [['cartesian']]
    };
    
    const coord = new Coordinate(options);
    coord.transform('translate', 10, 10);
    coord.map([0.5, 0.5]); // [260, 260]
    coord.getSize(); // [500, 500]
    coord.getCenter(); // [250, 250]

    📎 Links

    📮 Contribution

    $ git clone git@github.com:antvis/coord.git
    
    $ cd coord
    
    $ npm i
    
    $ npm t

    Then send a pull request after coding.

    📄 License

    MIT@AntV.

    Install

    npm i @antv/coord

    DownloadsWeekly Downloads

    69,161

    Version

    0.4.0

    License

    MIT

    Unpacked Size

    182 kB

    Total Files

    158

    Last publish

    Collaborators

    • iaaron
    • wjgogogo
    • yangzhanmei
    • jinke.li
    • susan_ann
    • yard
    • intchous
    • soundquiet
    • lviser
    • freestyle21
    • serializedowen
    • sturuby
    • xdzhao
    • elaine.q.10
    • sakuya223
    • leungwensen
    • dori
    • simaq
    • dxq613
    • lzxue
    • army8735
    • atool
    • baizn
    • dengfuping
    • neoddish
    • jeffy2012
    • zqlu
    • afc163
    • pomelo-nwu
    • kopiluwaky
    • ccnuzindex
    • panyuqi
    • bubkoo
    • zengyue
    • kasmine
    • boyu.zlj
    • l1ud0ngq1
    • newbyvector
    • winniexing
    • chenluli
    • kn9117
    • xdddst
    • semious2020
    • esora
    • nadia_liu
    • bbsqq
    • mxz96102
    • openwayne
    • pearmini
    • pddpd
    • yiqianyao
    • zhanba
    • cxxxxxn