Home / Function/ get_custom_elements_slots() — svelte Function Reference

get_custom_elements_slots() — svelte Function Reference

Architecture documentation for the get_custom_elements_slots() function in custom-element.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  1c94278d_44a5_f118_36ac_43ee68eaf611["get_custom_elements_slots()"]
  1a45e32c_24fc_a764_ca2d_b81df9bec325["custom-element.js"]
  1c94278d_44a5_f118_36ac_43ee68eaf611 -->|defined in| 1a45e32c_24fc_a764_ca2d_b81df9bec325
  style 1c94278d_44a5_f118_36ac_43ee68eaf611 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/internal/client/dom/elements/custom-element.js lines 268–275

function get_custom_elements_slots(element) {
	/** @type {Record<string, true>} */
	const result = {};
	element.childNodes.forEach((node) => {
		result[/** @type {Element} node */ (node).slot || 'default'] = true;
	});
	return result;
}

Domain

Subdomains

Frequently Asked Questions

What does get_custom_elements_slots() do?
get_custom_elements_slots() is a function in the svelte codebase, defined in packages/svelte/src/internal/client/dom/elements/custom-element.js.
Where is get_custom_elements_slots() defined?
get_custom_elements_slots() is defined in packages/svelte/src/internal/client/dom/elements/custom-element.js at line 268.

Analyze Your Own Codebase

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

Try Supermodel Free