2.0.17 • Published 2 months ago

@antv/g-svg v2.0.17

Weekly downloads
30,511
License
MIT
Repository
github
Last release
2 months ago

color-util

antv 开发的轻量级工具方法库。

安装下载

tnpm i --save @antv/util

// 所有的 api 是都这么引入,名字不同而已
import { gradient } from '@antv/color-util';

const grad = gradient(['red', 'blue']);
const color1 = grad(0.1);
const color2 = grad(0.2);

API 文档

目前使用到的、且推荐使用的 API 文档,不在文档内的不建议使用。

  • rgb2arr('#ffeedd') 将 rgb 转换成 16 进制的数组
  • gradient(colors) : 'Function' 渐变色计算 + colors : 颜色的数组,例如 'red', 'blue' + 返回值是一个函数,可以传入百分百,返回函数
    const grad = gradient(['red', 'blue']);
    const color1 = grad(0.1);
    const color2 = grad(0.2);
  • toRGB(color) : 将颜色转换成 RGB 的格式
import { toRGB } from '@antv/color-util';
toRGB('red');
toRGB('rgb(240, 240, 233)');
2.0.17

2 months ago

2.0.16

2 months ago

2.0.15

2 months ago

2.0.14

2 months ago

2.0.13

2 months ago

2.0.13-alpha.0

2 months ago

2.0.12

3 months ago

2.0.11

4 months ago

2.0.10

5 months ago

2.0.7

7 months ago

2.0.6

7 months ago

2.0.9

5 months ago

2.0.8

6 months ago

2.0.5

8 months ago

2.0.4

8 months ago

2.0.3

8 months ago

2.0.2

9 months ago

2.0.1

9 months ago

2.0.0

9 months ago

1.10.28

9 months ago

1.10.27

9 months ago

1.10.26-next.19

9 months ago

1.10.26-next.18

9 months ago

1.10.26-next.20

9 months ago

1.10.26-next.17

10 months ago

1.10.26-next.16

10 months ago

1.10.26-next.15

10 months ago

1.10.26-next.14

10 months ago

1.10.26-next.13

10 months ago

1.10.26

10 months ago

1.10.26-next.12

10 months ago

1.10.26-next.11

10 months ago

1.10.26-next.10

11 months ago

1.10.26-next.9

11 months ago

1.10.26-next.8

11 months ago

1.10.26-next.7

11 months ago

1.10.26-next.6

11 months ago

1.10.26-next.4

11 months ago

1.10.26-next.2

11 months ago

1.10.26-next.3

11 months ago

1.10.26-next.1

11 months ago

1.10.26-next.0

11 months ago

1.10.25

12 months ago

1.10.24

1 year ago

1.10.22

1 year ago

1.10.23

1 year ago

1.10.21

1 year ago

1.10.20

1 year ago

1.10.19

1 year ago

1.10.18

1 year ago

1.10.5

1 year ago

1.10.4

1 year ago

1.10.3

1 year ago

1.10.2

1 year ago

1.10.8

1 year ago

1.10.7

1 year ago

1.10.6

1 year ago

1.10.15

1 year ago

1.10.16

1 year ago

1.10.13

1 year ago

1.10.14

1 year ago

1.10.11

1 year ago

1.10.12

1 year ago

1.10.10

1 year ago

1.10.17

1 year ago

1.10.1

1 year ago

1.10.0

1 year ago

1.9.0

1 year ago

1.8.60

2 years ago

1.9.0-beta.1

1 year ago

1.8.59

2 years ago

1.9.0-alpha.1

1 year ago

1.8.54

2 years ago

1.8.55

2 years ago

1.8.56

2 years ago

1.8.57

2 years ago

1.8.58

2 years ago

1.8.52

2 years ago

1.8.53

2 years ago

1.8.40

2 years ago

1.8.41

2 years ago

1.8.42

2 years ago

1.8.43

2 years ago

1.8.44

2 years ago

1.8.45

2 years ago

1.8.46

2 years ago

1.8.47

2 years ago

1.8.48

2 years ago

1.8.49

2 years ago

1.8.50

2 years ago

1.8.51

2 years ago

1.8.37

2 years ago

1.8.38

2 years ago

1.8.39

2 years ago

1.8.32

2 years ago

1.8.33

2 years ago

1.8.34

2 years ago

1.8.35

2 years ago

1.8.36

2 years ago

1.8.33-alpha.0

2 years ago

1.8.20

2 years ago

1.8.21

2 years ago

1.8.22

2 years ago

1.8.23

2 years ago

1.8.24

2 years ago

1.8.25

2 years ago

1.8.26

2 years ago

1.8.27

2 years ago

1.8.28

2 years ago

1.8.29

2 years ago

1.8.30

2 years ago

1.8.31

2 years ago

1.8.16

2 years ago

1.8.17

2 years ago

1.8.18

2 years ago

1.8.19

2 years ago

0.5.7

2 years ago

1.8.15

2 years ago

1.7.4

2 years ago

1.8.2

2 years ago

1.8.1

2 years ago

1.8.0

2 years ago

1.7.3

2 years ago

1.7.2

2 years ago

1.8.9

2 years ago

1.8.10

2 years ago

1.8.8

2 years ago

1.8.11

2 years ago

1.8.7

2 years ago

1.8.12

2 years ago

1.8.6

2 years ago

1.8.13

2 years ago

1.8.5

2 years ago

1.8.14

2 years ago

1.8.4

2 years ago

1.8.3

2 years ago

1.2.0

3 years ago

1.6.4

2 years ago

1.6.3

2 years ago

1.6.2

2 years ago

1.6.1

2 years ago

1.6.0

2 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.1.8

3 years ago

1.5.3

2 years ago

1.1.7

3 years ago

1.5.2

2 years ago

1.1.6

3 years ago

1.5.1

2 years ago

1.1.5

3 years ago

1.6.0-alpha.0

2 years ago

1.5.0

2 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.4.0

2 years ago

1.1.3-alpha.1

3 years ago

1.1.3-alpha.0

3 years ago

1.1.8-alpha.2

3 years ago

1.1.8-alpha.1

3 years ago

1.1.8-alpha.0

3 years ago

1.7.1

2 years ago

1.7.0

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.0.20-alpha.16

3 years ago

1.0.20-alpha.15

3 years ago

1.0.20-alpha.10

3 years ago

1.0.20-alpha.12

3 years ago

1.0.20-alpha.11

3 years ago

1.0.20-alpha.14

3 years ago

1.0.20-alpha.13

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.2

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.21

3 years ago

1.0.20

3 years ago

1.0.20-alpha.9

3 years ago

1.0.19-alpha.1

3 years ago

1.0.20-alpha.8

3 years ago

1.0.19-alpha.0

3 years ago

1.0.20-alpha.4

3 years ago

1.0.20-alpha.7

3 years ago

1.0.20-alpha.6

3 years ago

1.0.19-alpha.2

3 years ago

1.0.20-alpha.0

3 years ago

1.0.20-alpha.2

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.2

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.0-alpha.30

3 years ago

1.0.0-alpha.32

3 years ago

1.0.0-alpha.38

3 years ago

1.0.0-alpha.37

3 years ago

1.0.0-alpha.34

3 years ago

1.0.0-alpha.33

3 years ago

1.0.0-alpha.36

3 years ago

1.0.0-alpha.35

3 years ago

1.0.1

3 years ago

1.0.0-alpha.27

3 years ago

1.0.0-alpha.26

3 years ago

1.0.0-alpha.29

3 years ago

1.0.0-alpha.28

3 years ago

1.0.0-alpha.25

3 years ago

1.0.0-alpha.24

3 years ago

1.0.0-alpha.23

3 years ago

1.0.0-alpha.22

3 years ago

1.0.0-alpha.21

3 years ago

1.0.0-alpha.19

3 years ago

1.0.0-alpha.20

3 years ago

1.0.0-alpha.18

3 years ago

1.0.0-alpha.17

3 years ago

1.0.0-alpha.16

3 years ago

1.0.0-alpha.15

3 years ago

1.0.0-alpha.14

3 years ago

1.0.0-alpha.13

3 years ago

1.0.0-alpha.12

3 years ago

1.0.0-alpha.11

3 years ago

1.0.0-alpha.10

3 years ago

1.0.0-alpha.9

3 years ago

1.0.0-alpha.8

3 years ago

1.0.0-alpha.7

3 years ago

1.0.0-alpha.6

3 years ago

1.0.0-alpha.5

3 years ago

1.0.0-alpha.4

3 years ago

1.0.0-alpha.3

3 years ago

1.0.0-alpha.2

3 years ago

1.0.0-alpha.1

4 years ago

1.0.0-alpha.0

4 years ago

0.5.6

4 years ago

0.5.5

4 years ago

0.5.2

4 years ago

0.5.1

4 years ago

0.5.0

4 years ago

0.5.0-beta.1

5 years ago

0.4.7

5 years ago

0.4.6

5 years ago

0.4.5

5 years ago

0.4.4

5 years ago

0.4.3

5 years ago

0.4.2

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.28

5 years ago

0.3.27

5 years ago

0.3.26

5 years ago

0.3.25

5 years ago

0.3.24

5 years ago

0.3.23

5 years ago

0.3.22

5 years ago

0.3.21

5 years ago

0.3.20

5 years ago

0.3.19

5 years ago

0.3.18

5 years ago

0.3.17

5 years ago

0.3.16

5 years ago

0.3.15

5 years ago

0.3.14

5 years ago

0.3.13

5 years ago

0.3.12

5 years ago

0.3.11

5 years ago

0.3.10

5 years ago

0.3.9

5 years ago

0.3.8

5 years ago

0.3.7

5 years ago

0.3.6

5 years ago

0.3.5

5 years ago

0.3.4

5 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.1.0-beta.11

5 years ago

0.1.0-beta.10

5 years ago

0.1.0-beta.9

5 years ago

0.1.0-beta.8

5 years ago

0.1.0-beta.7

5 years ago

0.1.0-beta.6

5 years ago

0.1.0-beta.5

5 years ago

0.1.0-beta.4

5 years ago

0.1.0-beta.3

5 years ago

0.1.0-beta.2

5 years ago

0.1.0-beta.1

5 years ago