From da912cdd8d838481d623a96a19fe5643ebf9629f Mon Sep 17 00:00:00 2001 From: ehsan2003 <51885828+ehsan2003@users.noreply.github.com> Date: Wed, 9 Feb 2022 12:43:04 +0330 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com> --- src/runtime/internal/Component.ts | 2 +- src/runtime/transition/index.ts | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/runtime/internal/Component.ts b/src/runtime/internal/Component.ts index a23a4666fc..9932d1f6d5 100644 --- a/src/runtime/internal/Component.ts +++ b/src/runtime/internal/Component.ts @@ -284,7 +284,7 @@ export class SvelteComponent { }; } /** - * * + * * ```ts * component.$set(props) * ``` diff --git a/src/runtime/transition/index.ts b/src/runtime/transition/index.ts index d42b8bd713..abc7da6c74 100644 --- a/src/runtime/transition/index.ts +++ b/src/runtime/transition/index.ts @@ -1,5 +1,6 @@ import { cubicOut, cubicInOut, linear } from 'svelte/easing'; import { assign, is_function } from 'svelte/internal'; + /** * * Easing functions specify the rate of change over time and are useful when working with Svelte's built-in transitions and animations as well as the tweened and spring utilities. `svelte/easing` contains 31 named exports, a `linear` ease and 3 variants of 10 different easing functions: `in`, `out` and `inOut`. @@ -113,6 +114,7 @@ export interface FadeParams { /** (`function`, default `linear`) — an [easing function](https://svelte.dev/docs#run-time-svelte-easing) */ easing?: EasingFunction; } + /** * * ```html @@ -257,6 +259,7 @@ export interface SlideParams { /** (`function`, default `cubicOut`) — an [easing function](https://svelte.dev/docs#run-time-svelte-easing) */ easing?: EasingFunction; } + /** * * ```html @@ -340,6 +343,7 @@ export interface ScaleParams { /** (`number`, default 0) - the opacity value to animate out to and in from */ opacity?: number; } + /** * * ```html @@ -418,6 +422,7 @@ export interface DrawParams { /** (`function`, default `cubicInOut`) — an [easing function](https://svelte.dev/docs#run-time-svelte-easing) */ easing?: EasingFunction; } + /** * * ```html @@ -510,6 +515,7 @@ export interface CrossfadeParams { } type ClientRectMap = Map; + /** * * The `crossfade` function creates a pair of [transitions](https://svelte.dev/docs#template-syntax-element-directives-transition-fn) called `send` and `receive`. When an element is 'sent', it looks for a corresponding element being 'received', and generates a transition that transforms the element to its counterpart's position and fades it out. When an element is 'received', the reverse happens. If there is no counterpart, the `fallback` transition is used.