MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / currentActiveDotIndex

Function currentActiveDotIndex

website/static/js/component/carousel.js:413–416  ·  view source on GitHub ↗

* @param {Carousel} carousel

(carousel)

Source from the content-addressed store, hash-verified

411 * @param {Carousel} carousel
412 */
413function currentActiveDotIndex(carousel) {
414 const activeDot = carousel.carouselContainer.querySelector("[data-carousel-dot].active");
415 return activeDot ? Array.from(carousel.dots).indexOf(activeDot) : -1;
416}
417
418/**
419 * @param {PointerEvent} event

Callers 1

dragEndFunction · 0.85

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected