UNPKG

vue-data-ui

Version:

A user-empowering data visualization Vue 3 components library for eloquent data storytelling

14 lines (13 loc) 340 B
import { onMounted as u, onUnmounted as s, ref as t } from "vue"; function i(e, n, o) { u(() => e.addEventListener(n, o)), s(() => e.removeEventListener(n, o)); } function m() { const e = t(0), n = t(0); return i(window, "mousemove", (o) => { e.value = o.clientX, n.value = o.clientY; }), { x: e, y: n }; } export { m as u };