An open API service indexing awesome lists of open source software.

https://github.com/think2011/collision-checker

💥 矩形碰撞检测 JavaScript版
https://github.com/think2011/collision-checker

Last synced: 10 months ago
JSON representation

💥 矩形碰撞检测 JavaScript版

Awesome Lists containing this project

README

          

💥 矩形碰撞检测

## demo
[think2011.net/collision-checker](http://think2011.net/collision-checker)

## 引用
UMD规范, 支持AMD、CMD、全局方式应用

使用 npm 安装, `npm i collision-checker --save`

## 使用
`collisionChecker(被碰撞元素, [拖拽元素])` // 如果不传拖拽元素,则鼠标 or 触摸位置作为碰撞点

## 兼容性
支持PC 和 移动端