INNER CODE UNIT · Python
observer
gurkenlabs/litiengine · config/javadoc/generate_js.py:566
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
tocLinks.forEach(l => l.classList.remove('active-toc'));
const match = headings.find(h => h.target === entry.target);
if (match) {
match.link.classList.add('active-toc');
}
}
});
}, {
rootMargin: '-80px 0px -70% 0px'
});
headings.forEach(h => observer.observe(h.target));
}
function cleanInheritanceTree() {