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

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.
@@ -6,8 +6,8 @@ import { CSSRGB } from '../cssom';
6
6
  */
7
7
  export interface Pattern {
8
8
  image: string | CanvasImageSource | Rect;
9
- repetition: 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat';
10
- transform: string;
9
+ repetition?: 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat';
10
+ transform?: string;
11
11
  }
12
12
  export declare function isCSSGradientValue(object: any): object is CSSGradientValue;
13
13
  export declare function isPattern(object: any): object is Pattern;
@@ -1,4 +1,4 @@
1
- import type { DisplayObject } from '../../display-objects';
1
+ import { DisplayObject } from '../../display-objects';
2
2
  import type { CSSUnitValue } from '../cssom';
3
3
  import type { CSSProperty } from '../CSSProperty';
4
4
  export declare class CSSPropertyOffsetDistance implements Partial<CSSProperty<CSSUnitValue, number>> {
@@ -1,5 +1,5 @@
1
1
  import type { AbsoluteArray } from '@antv/util';
2
- import type { DisplayObject, ParsedPathStyleProps } from '../../display-objects';
2
+ import type { ParsedPathStyleProps } from '../../display-objects';
3
3
  import { Rectangle } from '../../shapes';
4
4
  import type { CSSProperty } from '../CSSProperty';
5
5
  import { mergePaths, parsePath } from '../parser/path';
@@ -20,8 +20,4 @@ export declare class CSSPropertyPath implements Partial<CSSProperty<ParsedPathSt
20
20
  rect: Rectangle;
21
21
  };
22
22
  mixer: typeof mergePaths;
23
- /**
24
- * update local position
25
- */
26
- postProcessor(object: DisplayObject, attributes: string[]): void;
27
23
  }
@@ -1,4 +1,3 @@
1
- import type { DisplayObject } from '../../display-objects';
2
1
  import type { CSSProperty } from '../CSSProperty';
3
2
  import { parsePoints, mergePoints } from '../parser/points';
4
3
  export declare class CSSPropertyPoints implements Partial<CSSProperty<{
@@ -11,9 +10,5 @@ export declare class CSSPropertyPoints implements Partial<CSSProperty<{
11
10
  segments: [number, number][];
12
11
  }>> {
13
12
  parser: typeof parsePoints;
14
- /**
15
- * update local position
16
- */
17
- postProcessor(object: DisplayObject, attributes: string[]): void;
18
13
  mixer: typeof mergePoints;
19
14
  }
@@ -5,7 +5,6 @@ export * from './CSSPropertyFilter';
5
5
  export * from './CSSPropertyLengthOrPercentage';
6
6
  export * from './CSSPropertyLengthOrPercentage12';
7
7
  export * from './CSSPropertyLengthOrPercentage14';
8
- export * from './CSSPropertyLocalPosition';
9
8
  export * from './CSSPropertyMarker';
10
9
  export * from './CSSPropertyNumber';
11
10
  export * from './CSSPropertyOffsetDistance';
@@ -2,8 +2,6 @@ import type { DisplayObjectConfig } from '../dom';
2
2
  import type { BaseStyleProps } from '../types';
3
3
  import { DisplayObject } from './DisplayObject';
4
4
  export interface BaseCustomElementStyleProps extends BaseStyleProps {
5
- x?: number | string;
6
- y?: number | string;
7
5
  }
8
6
  /**
9
7
  * shadow root
@@ -3,14 +3,10 @@ import type { DisplayObjectConfig } from '../dom';
3
3
  import type { BaseStyleProps, ParsedBaseStyleProps } from '../types';
4
4
  import { DisplayObject } from './DisplayObject';
5
5
  export interface GroupStyleProps extends BaseStyleProps {
6
- x?: number | string;
7
- y?: number | string;
8
6
  width?: number | string;
9
7
  height?: number | string;
10
8
  }
11
9
  export interface ParsedGroupStyleProps extends ParsedBaseStyleProps {
12
- x: CSSUnitValue;
13
- y: CSSUnitValue;
14
10
  width?: CSSUnitValue;
15
11
  height?: CSSUnitValue;
16
12
  }
@@ -59,8 +59,6 @@ export interface ParsedLineStyleProps extends ParsedBaseStyleProps {
59
59
  y2: number;
60
60
  z1?: number;
61
61
  z2?: number;
62
- defX: number;
63
- defY: number;
64
62
  isBillboard?: boolean;
65
63
  isSizeAttenuation?: boolean;
66
64
  markerStart?: DisplayObject | null;
@@ -192,7 +192,7 @@ export declare class Element<StyleProps extends BaseStyleProps = any, ParsedStyl
192
192
  /**
193
193
  * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttribute
194
194
  */
195
- setAttribute<Key extends keyof StyleProps>(attributeName: Key, value: StyleProps[Key], force?: boolean): void;
195
+ setAttribute<Key extends keyof StyleProps>(attributeName: Key, value: StyleProps[Key], force?: boolean, memoize?: boolean): void;
196
196
  getAttributeNS(namespace: string, localName: string): string;
197
197
  getAttributeNode(qualifiedName: string): Attr;
198
198
  getAttributeNodeNS(namespace: string, localName: string): Attr;