Package Exports
- @antv/g-math
- @antv/g-math/lib/arc
- @antv/g-math/lib/cubic
- @antv/g-math/lib/line
- @antv/g-math/lib/polygon
- @antv/g-math/lib/polyline
- @antv/g-math/lib/quadratic
- @antv/g-math/lib/util
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@antv/g-math) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
g-math
为
G提供几何图形运算的库
安装下载
tnpm i --save @antv/g-math
// 所有的 api 是都这么引入,名字不同而已
import { line } from '@antv/g-math';
const len = line.length(x1, x2, x2, y2);
API 文档
目前使用到的、且推荐使用的 API 文档,不在文档内的不建议使用。