@antv/g-lite 1.3.0-next.4 → 1.3.0-next.7

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,5 +1,9 @@
1
1
  import type { AABB } from '../shapes';
2
2
  export interface Geometry {
3
+ /**
4
+ * Need re-compute bounds.
5
+ */
6
+ dirty: boolean;
3
7
  /**
4
8
  * excluding all children
5
9
  */
@@ -49,6 +49,6 @@ export declare class DefaultStyleValueRegistry implements StyleValueRegistry {
49
49
  * update geometry when relative props changed,
50
50
  * eg. r of Circle, width/height of Rect
51
51
  */
52
- private updateGeometry;
52
+ updateGeometry(object: DisplayObject): void;
53
53
  private isPropertyInheritable;
54
54
  }
@@ -11,6 +11,7 @@ export declare function resetEntityCounter(): void;
11
11
  * * Animation
12
12
  */
13
13
  export declare class Element<StyleProps extends BaseStyleProps = any, ParsedStyleProps extends ParsedBaseStyleProps = any> extends Node implements IElement<StyleProps, ParsedStyleProps> {
14
+ constructor();
14
15
  /**
15
16
  * Unique id.
16
17
  */
@@ -30,6 +30,7 @@ export declare abstract class Node extends EventTarget implements INode {
30
30
  */
31
31
  static DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
32
32
  static isNode(target: IEventTarget | INode): target is INode;
33
+ constructor();
33
34
  shadow: boolean;
34
35
  /**
35
36
  * points to canvas.document
@@ -303,7 +303,7 @@ export interface IElement<StyleProps = any, ParsedStyleProps = any> extends INod
303
303
  /**
304
304
  * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttribute
305
305
  */
306
- setAttribute: <Key extends keyof StyleProps>(attributeName: Key, value: StyleProps[Key], force?: boolean) => void;
306
+ setAttribute: <Key extends keyof StyleProps>(attributeName: Key, value: StyleProps[Key], force?: boolean, memoize?: boolean) => void;
307
307
  /**
308
308
  * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/getAttribute
309
309
  */