furo-interval-pulse #
@furo/util v2.1.19
import '@furo/util/src/furo-interval-pulse.js';
exports FuroIntervalPulse js
exports <furo-interval-pulse>
custom-element-definition
superclass LitElement
summary trigger an event in intervals
furo-interval-pulse
Pulses a tick event every interval
ms duration and every takt
a tock event is also fired.
Attributes and Properties #
interval #
interval
number
default: 200
Duration of a tact in ms.
takt #
takt
number
default: 4
Number of ticks per tact.
auto #
auto
Boolean
Starts interval automatically
Events #
tick #
at-tick
→ Number
Fired on every interval with the position of the pulse starting at 0.
tock #
at-tock
→ Number
Fired nth interval defined by takt.
Methods #
start #
start() ⟹ void
*
→
fn-start
Starts the pulsing.
stop #
stop() ⟹ void
*
→
fn-stop
Stops the pulsing.