@antv/g-lite 1.3.0-next.1 → 1.3.0-next.10

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
  }
@@ -24,7 +24,7 @@ export declare const canonicalUnitTypeForCategory: (category: UnitCategory) => U
24
24
  * @see https://chromium.googlesource.com/chromium/src/+/refs/heads/main/third_party/blink/renderer/core/css/css_primitive_value.cc#353
25
25
  */
26
26
  export declare const conversionToCanonicalUnitsScaleFactor: (unit_type: UnitType) => number;
27
- export declare const unitTypeToString: (type: UnitType) => "em" | "px" | "deg" | "rad" | "grad" | "ms" | "s" | "rem" | "turn" | "" | "%";
27
+ export declare const unitTypeToString: (type: UnitType) => "" | "em" | "px" | "deg" | "rad" | "grad" | "ms" | "s" | "rem" | "turn" | "%";
28
28
  /**
29
29
  * CSSStyleValue is the base class for all CSS values accessible from Typed OM.
30
30
  * Values that are not yet supported as specific types are also returned as base CSSStyleValues.
@@ -51,4 +51,4 @@ export declare function convertAngleUnit(value: CSSUnitValue): number;
51
51
  export declare function parseDimensionArrayFormat(string: string | number | (string | number)[], size: number): number[];
52
52
  export declare function parseDimensionArray(string: string | (string | number)[]): CSSUnitValue[];
53
53
  export declare function parseDimensionArrayUnmemoize(string: string | (string | number)[]): CSSUnitValue[];
54
- export declare function convertPercentUnit(valueWithUnit: CSSUnitValue, vec3Index: number, target: DisplayObject): number;
54
+ export declare function convertPercentUnit(valueWithUnit: CSSUnitValue, vec3Index: number, target: DisplayObject, useMin?: boolean): number;
@@ -1,4 +1,5 @@
1
- import type { CSSUnitValue } from '../cssom';
1
+ import { DisplayObject } from '../../display-objects';
2
+ import { type CSSUnitValue } from '../cssom';
2
3
  import type { CSSProperty } from '../CSSProperty';
3
4
  /**
4
5
  * @see https://developer.mozilla.org/zh-CN/docs/Web/CSS/transform-origin
@@ -11,4 +12,5 @@ export declare class CSSPropertyTransformOrigin implements Partial<CSSProperty<[
11
12
  cache: Map<any, any>;
12
13
  };
13
14
  parserUnmemoize: (value: string | number[]) => [CSSUnitValue, CSSUnitValue];
15
+ postProcessor(object: DisplayObject): void;
14
16
  }
@@ -36,5 +36,5 @@ export interface ParsedCircleStyleProps extends ParsedBaseStyleProps {
36
36
  isSizeAttenuation?: boolean;
37
37
  }
38
38
  export declare class Circle extends DisplayObject<CircleStyleProps, ParsedCircleStyleProps> {
39
- constructor({ style, ...rest }?: DisplayObjectConfig<CircleStyleProps>);
39
+ constructor(options?: DisplayObjectConfig<CircleStyleProps>);
40
40
  }
@@ -18,5 +18,5 @@ export interface ParsedEllipseStyleProps extends ParsedBaseStyleProps {
18
18
  isBillboard?: boolean;
19
19
  }
20
20
  export declare class Ellipse extends DisplayObject<EllipseStyleProps, ParsedEllipseStyleProps> {
21
- constructor({ style, ...rest }?: DisplayObjectConfig<EllipseStyleProps>);
21
+ constructor(options?: DisplayObjectConfig<EllipseStyleProps>);
22
22
  }
@@ -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
  */