baseService.parseURL() — astro Function Reference
Architecture documentation for the baseService.parseURL() function in service.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD ab5725e5_b332_6462_68d2_514fe8f4b135["baseService.parseURL()"] f0f55fc4_9c63_b35c_86d8_8eb3e4fa20ee["service.ts"] ab5725e5_b332_6462_68d2_514fe8f4b135 -->|defined in| f0f55fc4_9c63_b35c_86d8_8eb3e4fa20ee style ab5725e5_b332_6462_68d2_514fe8f4b135 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/assets/services/service.ts lines 396–415
parseURL(url) {
const params = url.searchParams;
if (!params.has('href')) {
return undefined;
}
const transform: BaseServiceTransform = {
src: params.get('href')!,
width: params.has('w') ? parseInt(params.get('w')!) : undefined,
height: params.has('h') ? parseInt(params.get('h')!) : undefined,
format: params.get('f') as ImageOutputFormat,
quality: params.get('q'),
fit: params.get('fit') as ImageFit,
position: params.get('position') ?? undefined,
background: params.get('background') ?? undefined,
};
return transform;
},
Domain
Subdomains
Source
Frequently Asked Questions
What does baseService.parseURL() do?
baseService.parseURL() is a function in the astro codebase, defined in packages/astro/src/assets/services/service.ts.
Where is baseService.parseURL() defined?
baseService.parseURL() is defined in packages/astro/src/assets/services/service.ts at line 396.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free