@antv/g-lite 1.3.0-next.0 → 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.
- package/dist/components/Geometry.d.ts +4 -0
- package/dist/css/StyleValueRegistry.d.ts +1 -1
- package/dist/css/cssom/CSSStyleValue.d.ts +1 -1
- package/dist/css/parser/dimension.d.ts +1 -1
- package/dist/css/properties/CSSPropertyTransformOrigin.d.ts +3 -1
- package/dist/display-objects/Circle.d.ts +1 -1
- package/dist/display-objects/CustomElement.d.ts +0 -2
- package/dist/display-objects/Ellipse.d.ts +1 -1
- package/dist/display-objects/Group.d.ts +0 -4
- package/dist/dom/Element.d.ts +2 -1
- package/dist/dom/Node.d.ts +1 -0
- package/dist/dom/interfaces.d.ts +1 -1
- package/dist/index.esm.js +374 -362
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +374 -361
- 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/SceneGraphService.d.ts +12 -12
- package/dist/services/aabb/GroupUpdater.d.ts +10 -0
- package/dist/services/aabb/index.d.ts +1 -0
- package/dist/types.d.ts +1 -8
- package/dist/utils/path.d.ts +1 -2
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
|
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(
|
|
39
|
+
constructor(options?: DisplayObjectConfig<CircleStyleProps>);
|
|
40
40
|
}
|
|
@@ -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
|
|
@@ -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(
|
|
21
|
+
constructor(options?: DisplayObjectConfig<EllipseStyleProps>);
|
|
22
22
|
}
|
|
@@ -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
|
@@ -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
|
*/
|
|
@@ -192,7 +193,7 @@ export declare class Element<StyleProps extends BaseStyleProps = any, ParsedStyl
|
|
|
192
193
|
/**
|
|
193
194
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttribute
|
|
194
195
|
*/
|
|
195
|
-
setAttribute<Key extends keyof StyleProps>(attributeName: Key, value: StyleProps[Key], force?: boolean): void;
|
|
196
|
+
setAttribute<Key extends keyof StyleProps>(attributeName: Key, value: StyleProps[Key], force?: boolean, memoize?: boolean): void;
|
|
196
197
|
getAttributeNS(namespace: string, localName: string): string;
|
|
197
198
|
getAttributeNode(qualifiedName: string): Attr;
|
|
198
199
|
getAttributeNodeNS(namespace: string, localName: string): Attr;
|
package/dist/dom/Node.d.ts
CHANGED
|
@@ -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
|
package/dist/dom/interfaces.d.ts
CHANGED
|
@@ -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
|
*/
|