I have recorded mouse path stored as array.
record: function(selector) {
var target = document.querySelector(selector);
this.target = target;
target.addEventListener('mousemove', (event) => {
if (!event.isTrusted)
return false;
var x = event.pageX - target.offsetLeft;
var y = event.pageY - target.offsetTop;
this.addPoint(x, y);
});
}
How can I repeat recorded path with other start and stop coordinates? Could someone provide code example or library?
For example:
[0, 1] [0, 2] [0, 3] [0, 4]
Start point is [0, 1] and end point [0, 4]. I want to repeat the same path but with different start and stop points.
Апостиль в Лос-Анджелесе без лишних нервов и бумажной волокиты
Основные этапы разработки сайта для стоматологической клиники
Продвижение своими сайтами как стратегия роста и независимости