From 6ed4761c8be17183dfcdee9e00a3395ffc27cf9a Mon Sep 17 00:00:00 2001 From: sujiaqi <1526394815@qq.com> Date: Sun, 29 Dec 2024 21:36:45 +0800 Subject: [PATCH] refactor(widget): reorganize imports for better readability - Group and sort imports for improved structure - Remove redundant type imports - Adjust formatting for consistency --- packages/lib/src/widgets/widget.ts | 36 +++++++++++++----------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/packages/lib/src/widgets/widget.ts b/packages/lib/src/widgets/widget.ts index 29e17ea..2990fee 100644 --- a/packages/lib/src/widgets/widget.ts +++ b/packages/lib/src/widgets/widget.ts @@ -1,41 +1,42 @@ import type { + Animation, + AnimationInstance, AnimationManager, AnimationParams, + TimingFunction, Widget, } from "@vue-motion/core"; import { registerAnimation } from "@vue-motion/core"; import { inject } from "vue"; import { + destory, + fadeIn, + fadeOut, + fadeTo, + grow, Growable, GrowableIns, type HasOpacity, type HasOpacityIns, type HasScale, type HasScaleIns, + move, + moveOnFunction, + moveOnPath, + moveTo, type Positional, type PositionalIns, type Rotatable, type RotatableIns, + rotate, + rotateTo, type Scalable, + scale, + scaleTo, Strokable, type StrokableIns, - destory, - grow, - moveOnFunction, - moveOnPath, trace, traceFill, -} from "../animations"; -import { - fadeIn, - fadeOut, - fadeTo, - move, - moveTo, - rotate, - rotateTo, - scale, - scaleTo, zoomIn, zoomOut, zoomTo, @@ -49,11 +50,6 @@ import { discolorateFillTo, discolorateTo, } from "../animations/color"; -import type { - Animation, - AnimationInstance, - TimingFunction, -} from "@vue-motion/core"; export type WidgetOptions = Widget & Positional &