Skip to content
This repository was archived by the owner on Jun 21, 2025. It is now read-only.

Commit 6ed4761

Browse files
committed
refactor(widget): reorganize imports for better readability
- Group and sort imports for improved structure - Remove redundant type imports - Adjust formatting for consistency
1 parent 98a7319 commit 6ed4761

File tree

1 file changed

+16
-20
lines changed

1 file changed

+16
-20
lines changed

packages/lib/src/widgets/widget.ts

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,42 @@
11
import type {
2+
Animation,
3+
AnimationInstance,
24
AnimationManager,
35
AnimationParams,
6+
TimingFunction,
47
Widget,
58
} from "@vue-motion/core";
69
import { registerAnimation } from "@vue-motion/core";
710
import { inject } from "vue";
811
import {
12+
destory,
13+
fadeIn,
14+
fadeOut,
15+
fadeTo,
16+
grow,
917
Growable,
1018
GrowableIns,
1119
type HasOpacity,
1220
type HasOpacityIns,
1321
type HasScale,
1422
type HasScaleIns,
23+
move,
24+
moveOnFunction,
25+
moveOnPath,
26+
moveTo,
1527
type Positional,
1628
type PositionalIns,
1729
type Rotatable,
1830
type RotatableIns,
31+
rotate,
32+
rotateTo,
1933
type Scalable,
34+
scale,
35+
scaleTo,
2036
Strokable,
2137
type StrokableIns,
22-
destory,
23-
grow,
24-
moveOnFunction,
25-
moveOnPath,
2638
trace,
2739
traceFill,
28-
} from "../animations";
29-
import {
30-
fadeIn,
31-
fadeOut,
32-
fadeTo,
33-
move,
34-
moveTo,
35-
rotate,
36-
rotateTo,
37-
scale,
38-
scaleTo,
3940
zoomIn,
4041
zoomOut,
4142
zoomTo,
@@ -49,11 +50,6 @@ import {
4950
discolorateFillTo,
5051
discolorateTo,
5152
} from "../animations/color";
52-
import type {
53-
Animation,
54-
AnimationInstance,
55-
TimingFunction,
56-
} from "@vue-motion/core";
5753

5854
export type WidgetOptions = Widget &
5955
Positional &

0 commit comments

Comments
 (0)