All Projects → antvis → scale

antvis / scale

Licence: MIT license
📦 Toolkit for mapping abstract data into visual representation.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to scale

Tonal
A functional music theory library for Javascript
Stars: ✭ 2,156 (+3967.92%)
Mutual labels:  scale
Rtimageassets
A Xcode plugin to automatically generate 2x, 1x image from 3x image for you, or upscale to 3x from 2x
Stars: ✭ 2,490 (+4598.11%)
Mutual labels:  scale
svelte-mapbox
MapBox Map and Autocomplete components for Svelte (or Vanilla JS)
Stars: ✭ 267 (+403.77%)
Mutual labels:  mapping
Docker Compose Demo
A short demo on how to use Docker Compose to create a Web Service connected to a load balancer and a Redis Database.
Stars: ✭ 168 (+216.98%)
Mutual labels:  scale
Igrphototweaks
Drag, Rotate, Scale and Crop
Stars: ✭ 212 (+300%)
Mutual labels:  scale
maptiles
Map tile generator. Converts an image into map tiles using ImageMagick. Map tiles can be used in Google Maps, Leaflet and other map rendering software.
Stars: ✭ 52 (-1.89%)
Mutual labels:  mapping
React Native Easy Gestures
React Native Gestures. Support: Drag, Scale and Rotate a Component.
Stars: ✭ 153 (+188.68%)
Mutual labels:  scale
Papart-examples
Papart examples
Stars: ✭ 29 (-45.28%)
Mutual labels:  mapping
Flutter screenutil
Flutter screen adaptation, font adaptation, get screen information
Stars: ✭ 2,843 (+5264.15%)
Mutual labels:  scale
scalem
A jQuery plugin to make any element scalable (responsive).
Stars: ✭ 33 (-37.74%)
Mutual labels:  scale
Springy facebook rebound
Springy makes Android Property animation easy to use.
Stars: ✭ 176 (+232.08%)
Mutual labels:  scale
Androidresizer
Java Desktop app to resize XXXHDPI (or lower) images and sort them into folders automatically.
Stars: ✭ 194 (+266.04%)
Mutual labels:  scale
leafmap-apps
Interactive web apps created using leafmap and streamlit
Stars: ✭ 30 (-43.4%)
Mutual labels:  mapping
Kes
KES is a simple, stateless and distributed key-management system
Stars: ✭ 168 (+216.98%)
Mutual labels:  scale
BetterDummy
Unlock your displays on your Mac! Smooth scaling, HiDPI unlock, XDR/HDR extra brightness upscale, DDC, brightness and dimming, dummy displays, PIP and lots more!
Stars: ✭ 9,601 (+18015.09%)
Mutual labels:  scale
Undermoon
Mordern Redis Cluster solution for easy operation.
Stars: ✭ 166 (+213.21%)
Mutual labels:  scale
Plezi
Plezi - the Ruby framework for realtime web-apps, websockets and RESTful HTTP
Stars: ✭ 239 (+350.94%)
Mutual labels:  scale
Spatial-Analysis-Mapping-Projects
Project Documentation, Best Practices & Procedures for Spatial Analysis and Mapping Projects
Stars: ✭ 15 (-71.7%)
Mutual labels:  mapping
nitroml
NitroML is a modular, portable, and scalable model-quality benchmarking framework for Machine Learning and Automated Machine Learning (AutoML) pipelines.
Stars: ✭ 40 (-24.53%)
Mutual labels:  scale
spicedb
Open Source, Google Zanzibar-inspired fine-grained permissions database
Stars: ✭ 3,358 (+6235.85%)
Mutual labels:  scale

@antv/scale

将抽象数据映射为视觉数据的比例尺工具包。 在线演示 · English

scale mapping

Build Status Coverage Status npm Version npm Download npm License

特性

  • 功能强大:内置包含 15+ 丰富的比例尺类型,满足各种不同的定制化需求。
  • 高性能:利用各种手段方法去提升数据映射的性能。
  • TypeScript:全部 TypeScript,并提供了完整有效的类型定义。

scale examples

📦 安装

$ npm install @antv/scale

🔨 上手

  • 基本用法
import { Linear, LinearOptions } from '@antv/scale';

const options: LinearOptions = {
  domain: [0, 10],
  range: [0, 100],
};
const x = new Linear(options);

x.map(2); // 20
x.invert(20); // 2
x.getTicks(); // [0, 2.5, 5, 7.5, 10]
  • 自定义可读 tickMethod
import { Linear } from '@antv/scale';

const x = new Linear({
  domain: [0, 10],
  range: [0, 100],
  tickCount: 3,
  tickMethod: () => [0, 5, 10],
});

x.getTicks(); // [0, 5, 10]

📎 链接

📮 贡献

$ git clone [email protected]:antvis/scale.git

$ cd scale

$ npm i

$ npm t

写完代码之后,提交 PR 即可。

📄 License

MIT@AntV.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].