Home / Function/ dropAttributes() — astro Function Reference

dropAttributes() — astro Function Reference

Architecture documentation for the dropAttributes() function in runtime.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  bfbe0b28_257a_e046_cafa_90c6182cd7b6["dropAttributes()"]
  7fdc3f21_0a35_05d8_60c6_78c31cc2f5e3["runtime.ts"]
  bfbe0b28_257a_e046_cafa_90c6182cd7b6 -->|defined in| 7fdc3f21_0a35_05d8_60c6_78c31cc2f5e3
  87820b92_cb9d_cbde_2524_fd7221237e3b["normalizeProps()"]
  87820b92_cb9d_cbde_2524_fd7221237e3b -->|calls| bfbe0b28_257a_e046_cafa_90c6182cd7b6
  style bfbe0b28_257a_e046_cafa_90c6182cd7b6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/assets/runtime.ts lines 49–55

export function dropAttributes(attributes: SvgAttributes) {
	for (const attr of ATTRS_TO_DROP) {
		delete attributes[attr];
	}

	return attributes;
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does dropAttributes() do?
dropAttributes() is a function in the astro codebase, defined in packages/astro/src/assets/runtime.ts.
Where is dropAttributes() defined?
dropAttributes() is defined in packages/astro/src/assets/runtime.ts at line 49.
What calls dropAttributes()?
dropAttributes() is called by 1 function(s): normalizeProps.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free