@antv/component 2.1.0 → 2.1.1-alpha.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.
@@ -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").IAnimation | null;
3
+ export default function (element: DisplayObject, options: GenericAnimation): import("@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").IAnimation | null;
3
+ export default function (element: DisplayObject, options: GenericAnimation): import("@antv/g-lite").IAnimation | null;
@@ -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").IAnimation | null;
7
+ export declare function animate(target: DisplayObject | Component<any>, keyframes: Keyframe[], options: GenericAnimation): import("@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").IAnimation | null)[];
15
+ export declare function transitionShape(source: DisplayObject, target: DisplayObject, options: GenericAnimation, after?: 'destroy' | 'hide'): (import("@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").IAnimation | null;
26
+ export declare function transition(target: DisplayObject | Component<any>, state: Record<string, any> | (DisplayObject | Component<any>), options: GenericAnimation): import("@antv/g-lite").IAnimation | null;
@@ -5,5 +5,5 @@ import type { AxisOptions, AxisStyleProps, RequiredAxisStyleProps } from './type
5
5
  export type { ArcAxisOptions, ArcAxisStyleProps, AxisOptions, AxisStyleProps, LinearAxisOptions, LinearAxisStyleProps, } from './types';
6
6
  export declare class Axis extends Component<AxisStyleProps> {
7
7
  constructor(options: AxisOptions);
8
- render(attributes: RequiredAxisStyleProps, container: Group, specificAnimation?: GenericAnimation): import("@antv/g").IAnimation[];
8
+ render(attributes: RequiredAxisStyleProps, container: Group, specificAnimation?: GenericAnimation): import("@antv/g-lite").IAnimation[];
9
9
  }
@@ -1,4 +1,4 @@
1
1
  import { StandardAnimationOption } from '../../../animation';
2
2
  import { Selection } from '../../../util';
3
3
  import type { AxisDatum, AxisStyleProps } from '../types';
4
- export declare function renderGrid(container: Selection, data: AxisDatum[], attr: Required<AxisStyleProps>, animate: StandardAnimationOption): import("@antv/g").IAnimation[];
4
+ export declare function renderGrid(container: Selection, data: AxisDatum[], attr: Required<AxisStyleProps>, animate: StandardAnimationOption): import("@antv/g-lite").IAnimation[];
@@ -4,4 +4,4 @@ import { Selection } from '../../../util';
4
4
  import type { AxisDatum, RequiredAxisStyleProps } from '../types';
5
5
  export declare function getTickVector(value: number, attr: RequiredAxisStyleProps): Vector2;
6
6
  export declare function getTickPoints(unitVector: Vector2, tickLength: number): number[][];
7
- export declare function renderTicks(container: Selection, axisData: AxisDatum[], attr: RequiredAxisStyleProps, animate: StandardAnimationOption): import("@antv/g").IAnimation[];
7
+ export declare function renderTicks(container: Selection, axisData: AxisDatum[], attr: RequiredAxisStyleProps, animate: StandardAnimationOption): import("@antv/g-lite").IAnimation[];
@@ -2,4 +2,4 @@ import type { StandardAnimationOption } from '../../../animation';
2
2
  import type { DisplayObject } from '../../../shapes';
3
3
  import type { Selection } from '../../../util';
4
4
  import type { RequiredAxisStyleProps } from '../types';
5
- export declare function renderTitle(container: Selection, axis: DisplayObject, attr: RequiredAxisStyleProps, animate: StandardAnimationOption): import("@antv/g").IAnimation[];
5
+ export declare function renderTitle(container: Selection, axis: DisplayObject, attr: RequiredAxisStyleProps, animate: StandardAnimationOption): import("@antv/g-lite").IAnimation[];
@@ -3,5 +3,5 @@ import type { Group } from '../../shapes';
3
3
  import type { GridOptions, GridStyleProps } from './types';
4
4
  export type { GridOptions, GridStyleProps };
5
5
  export declare class Grid extends Component<GridStyleProps> {
6
- render(attributes: GridStyleProps, container: Group): import("@antv/g").IAnimation[];
6
+ render(attributes: GridStyleProps, container: Group): import("@antv/g-lite").IAnimation[];
7
7
  }
@@ -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").IAnimation | null;
4
+ export declare function keyframeInterpolate<T extends Interpolatable>(element: DisplayObject, from: T, to: T, options: GenericAnimation): import("@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").IAnimation | null;
3
+ export default function (element: DisplayObject, options: GenericAnimation): import("@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").IAnimation | null;
3
+ export default function (element: DisplayObject, options: GenericAnimation): import("@antv/g-lite").IAnimation | null;
@@ -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").IAnimation | null;
7
+ export declare function animate(target: DisplayObject | Component<any>, keyframes: Keyframe[], options: GenericAnimation): import("@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").IAnimation | null)[];
15
+ export declare function transitionShape(source: DisplayObject, target: DisplayObject, options: GenericAnimation, after?: 'destroy' | 'hide'): (import("@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").IAnimation | null;
26
+ export declare function transition(target: DisplayObject | Component<any>, state: Record<string, any> | (DisplayObject | Component<any>), options: GenericAnimation): import("@antv/g-lite").IAnimation | null;
@@ -5,5 +5,5 @@ import type { AxisOptions, AxisStyleProps, RequiredAxisStyleProps } from './type
5
5
  export type { ArcAxisOptions, ArcAxisStyleProps, AxisOptions, AxisStyleProps, LinearAxisOptions, LinearAxisStyleProps, } from './types';
6
6
  export declare class Axis extends Component<AxisStyleProps> {
7
7
  constructor(options: AxisOptions);
8
- render(attributes: RequiredAxisStyleProps, container: Group, specificAnimation?: GenericAnimation): import("@antv/g").IAnimation[];
8
+ render(attributes: RequiredAxisStyleProps, container: Group, specificAnimation?: GenericAnimation): import("@antv/g-lite").IAnimation[];
9
9
  }
@@ -1,4 +1,4 @@
1
1
  import { StandardAnimationOption } from '../../../animation';
2
2
  import { Selection } from '../../../util';
3
3
  import type { AxisDatum, AxisStyleProps } from '../types';
4
- export declare function renderGrid(container: Selection, data: AxisDatum[], attr: Required<AxisStyleProps>, animate: StandardAnimationOption): import("@antv/g").IAnimation[];
4
+ export declare function renderGrid(container: Selection, data: AxisDatum[], attr: Required<AxisStyleProps>, animate: StandardAnimationOption): import("@antv/g-lite").IAnimation[];
@@ -4,4 +4,4 @@ import { Selection } from '../../../util';
4
4
  import type { AxisDatum, RequiredAxisStyleProps } from '../types';
5
5
  export declare function getTickVector(value: number, attr: RequiredAxisStyleProps): Vector2;
6
6
  export declare function getTickPoints(unitVector: Vector2, tickLength: number): number[][];
7
- export declare function renderTicks(container: Selection, axisData: AxisDatum[], attr: RequiredAxisStyleProps, animate: StandardAnimationOption): import("@antv/g").IAnimation[];
7
+ export declare function renderTicks(container: Selection, axisData: AxisDatum[], attr: RequiredAxisStyleProps, animate: StandardAnimationOption): import("@antv/g-lite").IAnimation[];
@@ -2,4 +2,4 @@ import type { StandardAnimationOption } from '../../../animation';
2
2
  import type { DisplayObject } from '../../../shapes';
3
3
  import type { Selection } from '../../../util';
4
4
  import type { RequiredAxisStyleProps } from '../types';
5
- export declare function renderTitle(container: Selection, axis: DisplayObject, attr: RequiredAxisStyleProps, animate: StandardAnimationOption): import("@antv/g").IAnimation[];
5
+ export declare function renderTitle(container: Selection, axis: DisplayObject, attr: RequiredAxisStyleProps, animate: StandardAnimationOption): import("@antv/g-lite").IAnimation[];
@@ -3,5 +3,5 @@ import type { Group } from '../../shapes';
3
3
  import type { GridOptions, GridStyleProps } from './types';
4
4
  export type { GridOptions, GridStyleProps };
5
5
  export declare class Grid extends Component<GridStyleProps> {
6
- render(attributes: GridStyleProps, container: Group): import("@antv/g").IAnimation[];
6
+ render(attributes: GridStyleProps, container: Group): import("@antv/g-lite").IAnimation[];
7
7
  }
@@ -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").IAnimation | null;
4
+ export declare function keyframeInterpolate<T extends Interpolatable>(element: DisplayObject, from: T, to: T, options: GenericAnimation): import("@antv/g-lite").IAnimation | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/component",
3
- "version": "2.1.0",
3
+ "version": "2.1.1-alpha.2",
4
4
  "description": "Visualization components for AntV, based on G.",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",