交叉口
一个相交算法库,涵盖以下SVG形状中的任意两个形状的所有排列:
弧线
二次贝塞尔曲线
立方贝塞尔
圆圈
椭圆
线
路径
多边形
折线
长方形
安装
npm install kld-intersections
输入
以下各节说明如何导入代码以在各种环境中使用。
节点
const { ShapeInfo , Intersection } = require ( "kld-intersections" ) ;
浏览器
< script src =" ./node_modules/kld-intersections/dist/index-umd.js " > </ script >
< script >
var ShapeInfo = KldIntersections . ShapeInfo ;
var Intersection = KldIntersections . Inte
评论0
最新资源