feat: add snippet for loading touches plugin

This commit is contained in:
redhoodsu
2019-10-15 14:48:34 +08:00
parent 289d9942b2
commit dbe5ae164f
3 changed files with 11 additions and 1 deletions

View File

@@ -112,6 +112,7 @@ eruda.init({
* [eruda-geolocation](https://github.com/liriliri/eruda-geolocation): Test geolocation.
* [eruda-dom](https://github.com/liriliri/eruda-dom): Navigate dom tree.
* [eruda-orientation](https://github.com/liriliri/eruda-orientation): Test orientation api.
* [eruda-touches](https://github.com/liriliri/eruda-touches): Visualize screen touches.
If you want to create a plugin yourself, follow the guides [here](./doc/PLUGIN.md).

View File

@@ -113,6 +113,7 @@ eruda.init({
* [eruda-geolocation](https://github.com/liriliri/eruda-geolocation):测试地理位置接口。
* [eruda-dom](https://github.com/liriliri/eruda-dom):浏览 dom 树。
* [eruda-orientation](https://github.com/liriliri/eruda-orientation):测试重力感应接口。
* [eruda-touches](https://github.com/liriliri/eruda-orientation):可视化屏幕 Touch 事件触发。
如果你想要自己编写插件,可以查看这里的[教程](./PLUGIN.md)。

View File

@@ -127,6 +127,13 @@ export default [
},
desc: 'Test orientation api'
},
{
name: 'Load Touches Plugin',
fn() {
loadPlugin('touches')
},
desc: 'Visualize screen touches'
},
{
name: 'Restore Settings',
fn() {
@@ -217,5 +224,6 @@ const pluginVersion = {
benchmark: '1.0.0',
geolocation: '1.1.0',
dom: '1.1.0',
orientation: '1.0.0'
orientation: '1.0.0',
touches: '1.0.0'
}