1 | # util
|
2 |
|
3 | > AntV 底层依赖的工具库,不建议在自己业务中使用。
|
4 |
|
5 |
|
6 | [![Build Status](https://github.com/antvis/util/workflows/build/badge.svg)](https://github.com/antvis/util/actions)
|
7 | [![npm Version](https://img.shields.io/npm/v/@antv/util.svg)](https://www.npmjs.com/package/@antv/util)
|
8 | [![npm Download](https://img.shields.io/npm/dm/@antv/util.svg)](https://www.npmjs.com/package/@antv/util)
|
9 | [![npm License](https://img.shields.io/npm/l/@antv/util.svg)](https://www.npmjs.com/package/@antv/util)
|
10 |
|
11 |
|
12 | ## Usage
|
13 |
|
14 | ```ts
|
15 | import { gradient } from '@antv/util';
|
16 |
|
17 | ```
|
18 |
|
19 |
|
20 | ## 原则
|
21 |
|
22 | - util 只有一个 npm 包,按照目录来组织不同类型的方法,避免 monorepo 互相依赖
|
23 | - 内容和 AntV 强相关,避免做和 lodash 等相同的工具库
|
24 | - 不使用的方法,及时删除,并保持新增方法可以按需引入
|
25 | - 旧版本的不维护,如果 AntV 技术栈的旧版本需要迭代,请升级到 v3
|
26 |
|
27 |
|
28 |
|
29 | ## License
|
30 |
|
31 | MIT@[AntV](https://github.com/antvis).
|