Home / Function/ onfinish() — svelte Function Reference

onfinish() — svelte Function Reference

Architecture documentation for the onfinish() function in animation-helpers.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  5bc204c9_a7e1_1216_dffa_2a87d204a0c9["onfinish()"]
  3ae2bea3_65e8_95e9_3e41_46d185d3488f["Animation"]
  5bc204c9_a7e1_1216_dffa_2a87d204a0c9 -->|defined in| 3ae2bea3_65e8_95e9_3e41_46d185d3488f
  0ea92103_2955_4760_2a59_9c49c55f20cb["_update()"]
  0ea92103_2955_4760_2a59_9c49c55f20cb -->|calls| 5bc204c9_a7e1_1216_dffa_2a87d204a0c9
  2cab0f64_6d19_d981_66e2_d2555c252702["queue_micro_task()"]
  5bc204c9_a7e1_1216_dffa_2a87d204a0c9 -->|calls| 2cab0f64_6d19_d981_66e2_d2555c252702
  style 5bc204c9_a7e1_1216_dffa_2a87d204a0c9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/tests/animation-helpers.js lines 145–154

	set onfinish(fn) {
		if (this.#duration === 0) {
			queue_micro_task(fn);
		} else {
			this.#onfinish = () => {
				fn();
				this.#onfinish = () => {};
			};
		}
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does onfinish() do?
onfinish() is a function in the svelte codebase, defined in packages/svelte/tests/animation-helpers.js.
Where is onfinish() defined?
onfinish() is defined in packages/svelte/tests/animation-helpers.js at line 145.
What does onfinish() call?
onfinish() calls 1 function(s): queue_micro_task.
What calls onfinish()?
onfinish() is called by 1 function(s): _update.

Analyze Your Own Codebase

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

Try Supermodel Free