()
| 31 | |
| 32 | export default class RapiDoc extends LitElement { |
| 33 | constructor() { |
| 34 | super(); |
| 35 | const intersectionObserverOptions = { |
| 36 | root: this.getRootNode().host, |
| 37 | rootMargin: '-50px 0px -50px 0px', // when the element is visible 100px from bottom |
| 38 | threshold: 0, |
| 39 | }; |
| 40 | this.showSummaryWhenCollapsed = true; |
| 41 | // Will activate intersection observer only after spec load and hash analyze |
| 42 | // to scroll to the proper element without being reverted by observer behavior |
| 43 | this.isIntersectionObserverActive = false; |
| 44 | this.intersectionObserver = new IntersectionObserver((entries) => { this.onIntersect(entries); }, intersectionObserverOptions); |
| 45 | } |
| 46 | |
| 47 | static get properties() { |
| 48 | return { |
nothing calls this directly
no test coverage detected