get_zoom() — svelte Function Reference
Architecture documentation for the get_zoom() function in index.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 7d2542cb_15f1_8840_167a_fedb0eb5a146["get_zoom()"] f6212c25_7a1e_6392_8ec8_309b3ffcc39d["index.js"] 7d2542cb_15f1_8840_167a_fedb0eb5a146 -->|defined in| f6212c25_7a1e_6392_8ec8_309b3ffcc39d 06e9beb7_5a57_1400_1bcb_dd47dffa5975["flip()"] 06e9beb7_5a57_1400_1bcb_dd47dffa5975 -->|calls| 7d2542cb_15f1_8840_167a_fedb0eb5a146 style 7d2542cb_15f1_8840_167a_fedb0eb5a146 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/animate/index.js lines 63–78
function get_zoom(element) {
if ('currentCSSZoom' in element) {
return /** @type {number} */ (element.currentCSSZoom);
}
/** @type {Element | null} */
var current = element;
var zoom = 1;
while (current !== null) {
zoom *= +getComputedStyle(current).zoom;
current = /** @type {Element | null} */ (current.parentElement);
}
return zoom;
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does get_zoom() do?
get_zoom() is a function in the svelte codebase, defined in packages/svelte/src/animate/index.js.
Where is get_zoom() defined?
get_zoom() is defined in packages/svelte/src/animate/index.js at line 63.
What calls get_zoom()?
get_zoom() is called by 1 function(s): flip.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free