@antv/g-lite 1.2.2 → 1.2.4

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,6 +1,5 @@
1
- import type { CSSUnitValue } from '../css';
2
1
  import type { DisplayObjectConfig } from '../dom';
3
- import { AABB } from '../shapes';
2
+ import { AABB, Rectangle } from '../shapes';
4
3
  import type { BaseStyleProps, ParsedBaseStyleProps } from '../types';
5
4
  import { DisplayObject } from './DisplayObject';
6
5
  export interface HTMLStyleProps extends BaseStyleProps {
@@ -11,12 +10,12 @@ export interface HTMLStyleProps extends BaseStyleProps {
11
10
  height?: number | string;
12
11
  }
13
12
  export interface ParsedHTMLStyleProps extends ParsedBaseStyleProps {
14
- x: CSSUnitValue;
15
- y: CSSUnitValue;
13
+ x: number;
14
+ y: number;
16
15
  $el: HTMLElement;
17
16
  innerHTML: string | HTMLElement;
18
- width: CSSUnitValue;
19
- height: CSSUnitValue;
17
+ width: number;
18
+ height: number;
20
19
  }
21
20
  /**
22
21
  * HTML container
@@ -34,8 +33,8 @@ export declare class HTML extends DisplayObject<HTMLStyleProps, ParsedHTMLStyleP
34
33
  * override with $el.getBoundingClientRect
35
34
  * @see https://developer.mozilla.org/zh-CN/docs/Web/API/Element/getBoundingClientRect
36
35
  */
37
- getBoundingClientRect(): DOMRect;
38
- getClientRects(): DOMRect[];
36
+ getBoundingClientRect(): Rectangle;
37
+ getClientRects(): Rectangle[];
39
38
  getBounds(): AABB;
40
39
  getLocalBounds(): AABB;
41
40
  }