constructor() — astro Function Reference
Architecture documentation for the constructor() function in events.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 7284f264_729e_57c9_cea7_29a63bed9592["constructor()"] 5c388325_26b8_6a86_e240_8941b364ae29["BeforeEvent"] 7284f264_729e_57c9_cea7_29a63bed9592 -->|defined in| 5c388325_26b8_6a86_e240_8941b364ae29 ed73202a_7510_9114_87d2_65fdb0bae92c["constructor()"] ed73202a_7510_9114_87d2_65fdb0bae92c -->|calls| 7284f264_729e_57c9_cea7_29a63bed9592 fb3fec80_31a2_8b88_6da0_348863d0cf20["constructor()"] fb3fec80_31a2_8b88_6da0_348863d0cf20 -->|calls| 7284f264_729e_57c9_cea7_29a63bed9592 ed73202a_7510_9114_87d2_65fdb0bae92c["constructor()"] 7284f264_729e_57c9_cea7_29a63bed9592 -->|calls| ed73202a_7510_9114_87d2_65fdb0bae92c style 7284f264_729e_57c9_cea7_29a63bed9592 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/transitions/events.ts lines 35–67
constructor(
type: string,
eventInitDict: EventInit | undefined,
from: URL,
to: URL,
direction: Direction | string,
navigationType: NavigationTypeString,
sourceElement: Element | undefined,
info: any,
newDocument: Document,
signal: AbortSignal,
) {
super(type, eventInitDict);
this.from = from;
this.to = to;
this.direction = direction;
this.navigationType = navigationType;
this.sourceElement = sourceElement;
this.info = info;
this.newDocument = newDocument;
this.signal = signal;
Object.defineProperties(this, {
from: { enumerable: true },
to: { enumerable: true, writable: true },
direction: { enumerable: true, writable: true },
navigationType: { enumerable: true },
sourceElement: { enumerable: true },
info: { enumerable: true },
newDocument: { enumerable: true, writable: true },
signal: { enumerable: true },
});
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does constructor() do?
constructor() is a function in the astro codebase, defined in packages/astro/src/transitions/events.ts.
Where is constructor() defined?
constructor() is defined in packages/astro/src/transitions/events.ts at line 35.
What does constructor() call?
constructor() calls 1 function(s): constructor.
What calls constructor()?
constructor() is called by 2 function(s): constructor, constructor.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free