constructor() — astro Function Reference
Architecture documentation for the constructor() function in icon.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD dd779963_eea5_dbd0_3238_6cb820b12a93["constructor()"] d6c9a997_c573_d283_b6d1_6365995e2a3b["DevToolbarIcon"] dd779963_eea5_dbd0_3238_6cb820b12a93 -->|defined in| d6c9a997_c573_d283_b6d1_6365995e2a3b 254d8849_519e_5224_59bc_121fbc545bd4["buildTemplate()"] dd779963_eea5_dbd0_3238_6cb820b12a93 -->|calls| 254d8849_519e_5224_59bc_121fbc545bd4 style dd779963_eea5_dbd0_3238_6cb820b12a93 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/runtime/client/dev-toolbar/ui-library/icon.ts lines 15–25
constructor() {
super();
this.shadowRoot = this.attachShadow({ mode: 'open' });
if (this.hasAttribute('icon')) {
this.icon = this.getAttribute('icon') as Icon;
} else {
this.buildTemplate();
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does constructor() do?
constructor() is a function in the astro codebase, defined in packages/astro/src/runtime/client/dev-toolbar/ui-library/icon.ts.
Where is constructor() defined?
constructor() is defined in packages/astro/src/runtime/client/dev-toolbar/ui-library/icon.ts at line 15.
What does constructor() call?
constructor() calls 1 function(s): buildTemplate.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free