MCPcopy Index your code
hub / github.com/rapi-doc/RapiDoc / constructor

Method constructor

src/rapidoc.js:33–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31
32export 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 {

Callers

nothing calls this directly

Calls 1

onIntersectMethod · 0.95

Tested by

no test coverage detected