@antv/component 1.0.1-beta.0 → 1.0.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component.min.js +1 -1
- package/esm/animation/fadeIn.d.ts +1 -1
- package/esm/animation/fadeOut.d.ts +1 -1
- package/esm/animation/utils.d.ts +3 -3
- package/esm/ui/checkbox/constant.d.ts +2 -2
- package/esm/util/keyframe-interpolate.d.ts +1 -1
- package/esm/util/text.d.ts +6 -1
- package/lib/animation/fadeIn.d.ts +1 -1
- package/lib/animation/fadeOut.d.ts +1 -1
- package/lib/animation/utils.d.ts +3 -3
- package/lib/ui/checkbox/constant.d.ts +2 -2
- package/lib/util/keyframe-interpolate.d.ts +1 -1
- package/lib/util/text.d.ts +6 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { DisplayObject } from '../shapes';
|
|
2
2
|
import type { GenericAnimation } from '.';
|
|
3
|
-
export default function (element: DisplayObject, options: GenericAnimation): import("_@antv_g-lite@1.2.
|
|
3
|
+
export default function (element: DisplayObject, options: GenericAnimation): import("_@antv_g-lite@1.2.21@@antv/g-lite").IAnimation | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { DisplayObject } from '../shapes';
|
|
2
2
|
import type { GenericAnimation } from '.';
|
|
3
|
-
export default function (element: DisplayObject, options: GenericAnimation): import("_@antv_g-lite@1.2.
|
|
3
|
+
export default function (element: DisplayObject, options: GenericAnimation): import("_@antv_g-lite@1.2.21@@antv/g-lite").IAnimation | null;
|
package/esm/animation/utils.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { AnimationOption, AnimationResult, GenericAnimation, StandardAnimat
|
|
|
4
4
|
export declare function parseAnimationOption(option: AnimationOption): StandardAnimationOption;
|
|
5
5
|
export declare function onAnimateFinished(animation: AnimationResult, callback: () => void): void;
|
|
6
6
|
export declare function onAnimatesFinished(animations: AnimationResult[], callback: () => void): void;
|
|
7
|
-
export declare function animate(target: DisplayObject | Component<any>, keyframes: Keyframe[], options: GenericAnimation): import("_@antv_g-lite@1.2.
|
|
7
|
+
export declare function animate(target: DisplayObject | Component<any>, keyframes: Keyframe[], options: GenericAnimation): import("_@antv_g-lite@1.2.21@@antv/g-lite").IAnimation | null;
|
|
8
8
|
/**
|
|
9
9
|
* transition source shape to target shape
|
|
10
10
|
* @param source
|
|
@@ -12,7 +12,7 @@ export declare function animate(target: DisplayObject | Component<any>, keyframe
|
|
|
12
12
|
* @param options
|
|
13
13
|
* @param after destroy or hide source shape after transition
|
|
14
14
|
*/
|
|
15
|
-
export declare function transitionShape(source: DisplayObject, target: DisplayObject, options: GenericAnimation, after?: 'destroy' | 'hide'): (import("_@antv_g-lite@1.2.
|
|
15
|
+
export declare function transitionShape(source: DisplayObject, target: DisplayObject, options: GenericAnimation, after?: 'destroy' | 'hide'): (import("_@antv_g-lite@1.2.21@@antv/g-lite").IAnimation | null)[];
|
|
16
16
|
/**
|
|
17
17
|
* execute transition animation on element
|
|
18
18
|
* @description in the current stage, only support the following properties:
|
|
@@ -23,4 +23,4 @@ export declare function transitionShape(source: DisplayObject, target: DisplayOb
|
|
|
23
23
|
* @param animate whether to animate
|
|
24
24
|
* @returns transition instance
|
|
25
25
|
*/
|
|
26
|
-
export declare function transition(target: DisplayObject | Component<any>, state: Record<string, any> | (DisplayObject | Component<any>), options: GenericAnimation): import("_@antv_g-lite@1.2.
|
|
26
|
+
export declare function transition(target: DisplayObject | Component<any>, state: Record<string, any> | (DisplayObject | Component<any>), options: GenericAnimation): import("_@antv_g-lite@1.2.21@@antv/g-lite").IAnimation | null;
|
|
@@ -6,8 +6,8 @@ export declare const LABEL_TEXT_STYLE: import("../../core").PrefixStyleProps<{
|
|
|
6
6
|
readonly overflow: "clip";
|
|
7
7
|
}, "label">;
|
|
8
8
|
export declare const CHECKBOX_RECT_STYLE: {
|
|
9
|
-
default: import("../../shapes/types").OmitConflictStyleProps<import("_@antv_g-lite@1.2.
|
|
10
|
-
selected: import("../../shapes/types").OmitConflictStyleProps<import("_@antv_g-lite@1.2.
|
|
9
|
+
default: import("../../shapes/types").OmitConflictStyleProps<import("_@antv_g-lite@1.2.21@@antv/g-lite").RectStyleProps>;
|
|
10
|
+
selected: import("../../shapes/types").OmitConflictStyleProps<import("_@antv_g-lite@1.2.21@@antv/g-lite").RectStyleProps>;
|
|
11
11
|
};
|
|
12
12
|
export declare const CHECKED_SHAPE_STYLE: {
|
|
13
13
|
path: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { GenericAnimation } from '../animation';
|
|
2
2
|
import type { DisplayObject } from '../shapes';
|
|
3
3
|
import type { Interpolatable } from './interpolate';
|
|
4
|
-
export declare function keyframeInterpolate<T extends Interpolatable>(element: DisplayObject, from: T, to: T, options: GenericAnimation): import("_@antv_g-lite@1.2.
|
|
4
|
+
export declare function keyframeInterpolate<T extends Interpolatable>(element: DisplayObject, from: T, to: T, options: GenericAnimation): import("_@antv_g-lite@1.2.21@@antv/g-lite").IAnimation | null;
|
package/esm/util/text.d.ts
CHANGED
|
@@ -5,7 +5,12 @@ export declare function setMockMeasureTextWidth(mock: (text: string, fontSize: n
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const measureTextWidth: {
|
|
7
7
|
(...args: any[]): any;
|
|
8
|
-
cache:
|
|
8
|
+
cache: {
|
|
9
|
+
clear: (isPartial?: number | undefined) => void;
|
|
10
|
+
has: (key: any) => boolean;
|
|
11
|
+
get: (key: any) => any;
|
|
12
|
+
set: (key: any, value: any) => void;
|
|
13
|
+
};
|
|
9
14
|
};
|
|
10
15
|
export declare const getFont: (textShape: Text) => {
|
|
11
16
|
fontSize: number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { DisplayObject } from '../shapes';
|
|
2
2
|
import type { GenericAnimation } from '.';
|
|
3
|
-
export default function (element: DisplayObject, options: GenericAnimation): import("_@antv_g-lite@1.2.
|
|
3
|
+
export default function (element: DisplayObject, options: GenericAnimation): import("_@antv_g-lite@1.2.21@@antv/g-lite").IAnimation | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { DisplayObject } from '../shapes';
|
|
2
2
|
import type { GenericAnimation } from '.';
|
|
3
|
-
export default function (element: DisplayObject, options: GenericAnimation): import("_@antv_g-lite@1.2.
|
|
3
|
+
export default function (element: DisplayObject, options: GenericAnimation): import("_@antv_g-lite@1.2.21@@antv/g-lite").IAnimation | null;
|
package/lib/animation/utils.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { AnimationOption, AnimationResult, GenericAnimation, StandardAnimat
|
|
|
4
4
|
export declare function parseAnimationOption(option: AnimationOption): StandardAnimationOption;
|
|
5
5
|
export declare function onAnimateFinished(animation: AnimationResult, callback: () => void): void;
|
|
6
6
|
export declare function onAnimatesFinished(animations: AnimationResult[], callback: () => void): void;
|
|
7
|
-
export declare function animate(target: DisplayObject | Component<any>, keyframes: Keyframe[], options: GenericAnimation): import("_@antv_g-lite@1.2.
|
|
7
|
+
export declare function animate(target: DisplayObject | Component<any>, keyframes: Keyframe[], options: GenericAnimation): import("_@antv_g-lite@1.2.21@@antv/g-lite").IAnimation | null;
|
|
8
8
|
/**
|
|
9
9
|
* transition source shape to target shape
|
|
10
10
|
* @param source
|
|
@@ -12,7 +12,7 @@ export declare function animate(target: DisplayObject | Component<any>, keyframe
|
|
|
12
12
|
* @param options
|
|
13
13
|
* @param after destroy or hide source shape after transition
|
|
14
14
|
*/
|
|
15
|
-
export declare function transitionShape(source: DisplayObject, target: DisplayObject, options: GenericAnimation, after?: 'destroy' | 'hide'): (import("_@antv_g-lite@1.2.
|
|
15
|
+
export declare function transitionShape(source: DisplayObject, target: DisplayObject, options: GenericAnimation, after?: 'destroy' | 'hide'): (import("_@antv_g-lite@1.2.21@@antv/g-lite").IAnimation | null)[];
|
|
16
16
|
/**
|
|
17
17
|
* execute transition animation on element
|
|
18
18
|
* @description in the current stage, only support the following properties:
|
|
@@ -23,4 +23,4 @@ export declare function transitionShape(source: DisplayObject, target: DisplayOb
|
|
|
23
23
|
* @param animate whether to animate
|
|
24
24
|
* @returns transition instance
|
|
25
25
|
*/
|
|
26
|
-
export declare function transition(target: DisplayObject | Component<any>, state: Record<string, any> | (DisplayObject | Component<any>), options: GenericAnimation): import("_@antv_g-lite@1.2.
|
|
26
|
+
export declare function transition(target: DisplayObject | Component<any>, state: Record<string, any> | (DisplayObject | Component<any>), options: GenericAnimation): import("_@antv_g-lite@1.2.21@@antv/g-lite").IAnimation | null;
|
|
@@ -6,8 +6,8 @@ export declare const LABEL_TEXT_STYLE: import("../../core").PrefixStyleProps<{
|
|
|
6
6
|
readonly overflow: "clip";
|
|
7
7
|
}, "label">;
|
|
8
8
|
export declare const CHECKBOX_RECT_STYLE: {
|
|
9
|
-
default: import("../../shapes/types").OmitConflictStyleProps<import("_@antv_g-lite@1.2.
|
|
10
|
-
selected: import("../../shapes/types").OmitConflictStyleProps<import("_@antv_g-lite@1.2.
|
|
9
|
+
default: import("../../shapes/types").OmitConflictStyleProps<import("_@antv_g-lite@1.2.21@@antv/g-lite").RectStyleProps>;
|
|
10
|
+
selected: import("../../shapes/types").OmitConflictStyleProps<import("_@antv_g-lite@1.2.21@@antv/g-lite").RectStyleProps>;
|
|
11
11
|
};
|
|
12
12
|
export declare const CHECKED_SHAPE_STYLE: {
|
|
13
13
|
path: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { GenericAnimation } from '../animation';
|
|
2
2
|
import type { DisplayObject } from '../shapes';
|
|
3
3
|
import type { Interpolatable } from './interpolate';
|
|
4
|
-
export declare function keyframeInterpolate<T extends Interpolatable>(element: DisplayObject, from: T, to: T, options: GenericAnimation): import("_@antv_g-lite@1.2.
|
|
4
|
+
export declare function keyframeInterpolate<T extends Interpolatable>(element: DisplayObject, from: T, to: T, options: GenericAnimation): import("_@antv_g-lite@1.2.21@@antv/g-lite").IAnimation | null;
|
package/lib/util/text.d.ts
CHANGED
|
@@ -5,7 +5,12 @@ export declare function setMockMeasureTextWidth(mock: (text: string, fontSize: n
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const measureTextWidth: {
|
|
7
7
|
(...args: any[]): any;
|
|
8
|
-
cache:
|
|
8
|
+
cache: {
|
|
9
|
+
clear: (isPartial?: number | undefined) => void;
|
|
10
|
+
has: (key: any) => boolean;
|
|
11
|
+
get: (key: any) => any;
|
|
12
|
+
set: (key: any, value: any) => void;
|
|
13
|
+
};
|
|
9
14
|
};
|
|
10
15
|
export declare const getFont: (textShape: Text) => {
|
|
11
16
|
fontSize: number;
|