Skip to content

Commit

Permalink
refactor(widget): reorganize imports for better readability
Browse files Browse the repository at this point in the history
- Group and sort imports for improved structure
- Remove redundant type imports
- Adjust formatting for consistency
  • Loading branch information
xs10l3 committed Dec 29, 2024
1 parent 98a7319 commit 6ed4761
Showing 1 changed file with 16 additions and 20 deletions.
36 changes: 16 additions & 20 deletions packages/lib/src/widgets/widget.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -49,11 +50,6 @@ import {
discolorateFillTo,
discolorateTo,
} from "../animations/color";
import type {
Animation,
AnimationInstance,
TimingFunction,
} from "@vue-motion/core";

export type WidgetOptions = Widget &
Positional &
Expand Down

0 comments on commit 6ed4761

Please sign in to comment.