active-detector
Advanced tools
Comparing version 1.0.1 to 1.1.0
{ | ||
"name": "active-detector", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": "fi3ework", |
@@ -14,8 +14,9 @@ # active-detector | ||
## Usage | ||
## Example | ||
See demo [here](./example). | ||
Run `yarn && yarn start` and watch the console log. | ||
## Usage | ||
### Quick Start | ||
@@ -68,2 +69,10 @@ | ||
getRanges: () => ActiveRange[]; // {start: number, end: number}[] | ||
``` | ||
### Clear Time Ranges | ||
Clear time ranges immediately, it might be used in case you have reported number of ranges by time. | ||
```typescript | ||
clearRanges: () => void; // {start: number, end: number}[] | ||
``` |
29481
76