@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.
- package/dist/css/parser/color.d.ts +2 -2
- package/dist/css/properties/CSSPropertyOffsetDistance.d.ts +1 -1
- package/dist/css/properties/CSSPropertyPath.d.ts +1 -5
- package/dist/css/properties/CSSPropertyPoints.d.ts +0 -5
- package/dist/css/properties/index.d.ts +0 -1
- package/dist/display-objects/CustomElement.d.ts +0 -2
- package/dist/display-objects/Group.d.ts +0 -4
- package/dist/display-objects/Line.d.ts +0 -2
- package/dist/dom/Element.d.ts +1 -1
- package/dist/index.esm.js +251 -445
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +251 -445
- package/dist/index.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/dist/services/aabb/CircleUpdater.d.ts +4 -2
- package/dist/services/aabb/EllipseUpdater.d.ts +4 -2
- package/dist/services/aabb/LineUpdater.d.ts +4 -2
- package/dist/services/aabb/PathUpdater.d.ts +4 -2
- package/dist/services/aabb/PolylineUpdater.d.ts +4 -2
- package/dist/services/aabb/RectUpdater.d.ts +4 -2
- package/dist/services/aabb/TextUpdater.d.ts +4 -13
- package/dist/services/aabb/interfaces.d.ts +6 -6
- package/dist/types.d.ts +1 -13
- package/dist/utils/gradient.d.ts +2 -2
- package/dist/utils/path.d.ts +1 -2
- package/package.json +1 -1
|
@@ -6,8 +6,8 @@ import { CSSRGB } from '../cssom';
|
|
|
6
6
|
*/
|
|
7
7
|
export interface Pattern {
|
|
8
8
|
image: string | CanvasImageSource | Rect;
|
|
9
|
-
repetition
|
|
10
|
-
transform
|
|
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
|
|
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 {
|
|
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
|
}
|
package/dist/dom/Element.d.ts
CHANGED
|
@@ -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;
|