@antv/g 6.2.0 → 6.3.0
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/index.esm.js +3140 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3158 -26
- package/dist/index.js.map +1 -1
- package/dist/index.umd.min.js +25 -22
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +8 -8
- package/types/index.d.ts +5 -3
- package/types/index.d.ts.map +1 -1
- package/types/plugins/camera-api/AdvancedCamera.d.ts +44 -0
- package/types/plugins/camera-api/AdvancedCamera.d.ts.map +1 -0
- package/types/plugins/camera-api/index.d.ts +3 -0
- package/types/plugins/camera-api/index.d.ts.map +1 -0
- package/types/plugins/components/Arrow.d.ts +61 -0
- package/types/plugins/components/Arrow.d.ts.map +1 -0
- package/types/plugins/components/Sector.d.ts +21 -0
- package/types/plugins/components/Sector.d.ts.map +1 -0
- package/types/plugins/components/Sector2.d.ts +9 -0
- package/types/plugins/components/Sector2.d.ts.map +1 -0
- package/types/plugins/components/index.d.ts +3 -0
- package/types/plugins/components/index.d.ts.map +1 -0
- package/types/plugins/image-exporter/ImageExporter.d.ts +27 -0
- package/types/plugins/image-exporter/ImageExporter.d.ts.map +1 -0
- package/types/plugins/image-exporter/index.d.ts +3 -0
- package/types/plugins/image-exporter/index.d.ts.map +1 -0
- package/types/plugins/image-exporter/types.d.ts +12 -0
- package/types/plugins/image-exporter/types.d.ts.map +1 -0
- package/types/plugins/pattern/dots.d.ts +16 -0
- package/types/plugins/pattern/dots.d.ts.map +1 -0
- package/types/plugins/pattern/index.d.ts +4 -0
- package/types/plugins/pattern/index.d.ts.map +1 -0
- package/types/plugins/pattern/interfaces.d.ts +78 -0
- package/types/plugins/pattern/interfaces.d.ts.map +1 -0
- package/types/plugins/pattern/lines.d.ts +19 -0
- package/types/plugins/pattern/lines.d.ts.map +1 -0
- package/types/plugins/pattern/squares.d.ts +21 -0
- package/types/plugins/pattern/squares.d.ts.map +1 -0
- package/types/plugins/pattern/util.d.ts +18 -0
- package/types/plugins/pattern/util.d.ts.map +1 -0
- package/types/plugins/web-animations-api/dom/Animation.d.ts +135 -0
- package/types/plugins/web-animations-api/dom/Animation.d.ts.map +1 -0
- package/types/plugins/web-animations-api/dom/AnimationEffectTiming.d.ts +59 -0
- package/types/plugins/web-animations-api/dom/AnimationEffectTiming.d.ts.map +1 -0
- package/types/plugins/web-animations-api/dom/AnimationEvent.d.ts +12 -0
- package/types/plugins/web-animations-api/dom/AnimationEvent.d.ts.map +1 -0
- package/types/plugins/web-animations-api/dom/AnimationTimeline.d.ts +40 -0
- package/types/plugins/web-animations-api/dom/AnimationTimeline.d.ts.map +1 -0
- package/types/plugins/web-animations-api/dom/KeyframeEffect.d.ts +48 -0
- package/types/plugins/web-animations-api/dom/KeyframeEffect.d.ts.map +1 -0
- package/types/plugins/web-animations-api/dom/KeyframeList.d.ts +3 -0
- package/types/plugins/web-animations-api/dom/KeyframeList.d.ts.map +1 -0
- package/types/plugins/web-animations-api/dom/index.d.ts +6 -0
- package/types/plugins/web-animations-api/dom/index.d.ts.map +1 -0
- package/types/plugins/web-animations-api/index.d.ts +3 -0
- package/types/plugins/web-animations-api/index.d.ts.map +1 -0
- package/types/plugins/web-animations-api/utils/animation.d.ts +16 -0
- package/types/plugins/web-animations-api/utils/animation.d.ts.map +1 -0
- package/types/plugins/web-animations-api/utils/bezier-easing.d.ts +21 -0
- package/types/plugins/web-animations-api/utils/bezier-easing.d.ts.map +1 -0
- package/types/plugins/web-animations-api/utils/custom-easing.d.ts +16 -0
- package/types/plugins/web-animations-api/utils/custom-easing.d.ts.map +1 -0
- package/types/plugins/web-animations-api/utils/index.d.ts +5 -0
- package/types/plugins/web-animations-api/utils/index.d.ts.map +1 -0
- package/types/plugins/web-animations-api/utils/interpolation.d.ts +3 -0
- package/types/plugins/web-animations-api/utils/interpolation.d.ts.map +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/g",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.0",
|
|
4
4
|
"description": "A core module for rendering engine implements DOM API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antv",
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
"README.md"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
+
"@antv/util": "^3.3.5",
|
|
38
39
|
"@babel/runtime": "^7.25.6",
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"@antv/g-lite": "2.
|
|
42
|
-
"@antv/g-web-animations-api": "2.1.31"
|
|
40
|
+
"html2canvas": "^1.4.1",
|
|
41
|
+
"gl-matrix": "^3.4.3",
|
|
42
|
+
"@antv/g-lite": "2.6.0"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
|
-
"build:
|
|
49
|
-
"build": "
|
|
50
|
-
"
|
|
48
|
+
"build:js": "rimraf dist && rollup -c",
|
|
49
|
+
"build:types": "rimraf types && tsc --emitDeclarationOnly --noCheck",
|
|
50
|
+
"build": "npm run build:js && npm run build:types",
|
|
51
51
|
"sync": "tnpm sync",
|
|
52
52
|
"watch": "rollup -c -w"
|
|
53
53
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export * from '@antv/g-camera-api';
|
|
2
|
-
export * from '@antv/g-dom-mutation-observer-api';
|
|
3
1
|
export * from '@antv/g-lite';
|
|
4
|
-
export * from '
|
|
2
|
+
export * from './plugins/web-animations-api';
|
|
3
|
+
export * from './plugins/camera-api';
|
|
4
|
+
export * from './plugins/image-exporter';
|
|
5
|
+
export * from './plugins/pattern';
|
|
6
|
+
export * from './plugins/components';
|
|
5
7
|
//# sourceMappingURL=index.d.ts.map
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAG7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Camera } from '@antv/g-lite';
|
|
2
|
+
import { vec3 } from 'gl-matrix';
|
|
3
|
+
import type { vec2 } from 'gl-matrix';
|
|
4
|
+
import type { TypeEasingFunction, Landmark } from '@antv/g-lite';
|
|
5
|
+
/**
|
|
6
|
+
* Provides camera action & animation.
|
|
7
|
+
*/
|
|
8
|
+
export declare class AdvancedCamera extends Camera {
|
|
9
|
+
/**
|
|
10
|
+
* switch between multiple landmarks
|
|
11
|
+
*/
|
|
12
|
+
private landmarks;
|
|
13
|
+
private landmarkAnimationID;
|
|
14
|
+
/**
|
|
15
|
+
* Changes the azimuth and elevation with respect to the current camera axes
|
|
16
|
+
* @param {Number} azimuth the relative azimuth
|
|
17
|
+
* @param {Number} elevation the relative elevation
|
|
18
|
+
* @param {Number} roll the relative roll
|
|
19
|
+
*/
|
|
20
|
+
rotate(azimuth: number, elevation: number, roll: number): this;
|
|
21
|
+
/**
|
|
22
|
+
* 沿水平(right) & 垂直(up)平移相机
|
|
23
|
+
*/
|
|
24
|
+
pan(tx: number, ty: number): this;
|
|
25
|
+
/**
|
|
26
|
+
* 沿 n 轴移动,当距离视点远时移动速度较快,离视点越近速度越慢
|
|
27
|
+
*/
|
|
28
|
+
dolly(value: number): this;
|
|
29
|
+
cancelLandmarkAnimation(): void;
|
|
30
|
+
createLandmark(name: string, params?: Partial<{
|
|
31
|
+
position: vec3 | vec2;
|
|
32
|
+
focalPoint: vec3 | vec2;
|
|
33
|
+
zoom: number;
|
|
34
|
+
roll: number;
|
|
35
|
+
}>): Landmark;
|
|
36
|
+
gotoLandmark(name: string | Landmark, options?: number | Partial<{
|
|
37
|
+
easing: string;
|
|
38
|
+
easingFunction: TypeEasingFunction;
|
|
39
|
+
duration: number;
|
|
40
|
+
onframe: (t: number) => void;
|
|
41
|
+
onfinish: () => void;
|
|
42
|
+
}>): void;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=AdvancedCamera.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdvancedCamera.d.ts","sourceRoot":"","sources":["../../../src/plugins/camera-api/AdvancedCamera.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EAMP,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAc,IAAI,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAEjE;;GAEG;AACH,qBAAa,cAAe,SAAQ,MAAM;IACxC;;OAEG;IACH,OAAO,CAAC,SAAS,CAAkB;IACnC,OAAO,CAAC,mBAAmB,CAAqB;IAEhD;;;;;OAKG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;IAoDvD;;OAEG;IACH,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;IAc1B;;OAEG;IACH,KAAK,CAAC,KAAK,EAAE,MAAM;IA8BnB,uBAAuB;IAMvB,cAAc,CACZ,IAAI,EAAE,MAAM,EACZ,MAAM,GAAE,OAAO,CAAC;QACd,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAC;QACtB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;QACxB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;KACd,CAAM,GACN,QAAQ;IA+CX,YAAY,CACV,IAAI,EAAE,MAAM,GAAG,QAAQ,EACvB,OAAO,GACH,MAAM,GACN,OAAO,CAAC;QACN,MAAM,EAAE,MAAM,CAAC;QACf,cAAc,EAAE,kBAAkB,CAAC;QACnC,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;QAC7B,QAAQ,EAAE,MAAM,IAAI,CAAC;KACtB,CAAM;CAkHd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/camera-api/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { BaseStyleProps, DisplayObject, DisplayObjectConfig, Line, Polyline } from '@antv/g-lite';
|
|
2
|
+
import { CustomElement, Path } from '@antv/g-lite';
|
|
3
|
+
type ArrowHead = boolean | DisplayObject;
|
|
4
|
+
type ArrowBody = Line | Path | Polyline;
|
|
5
|
+
export interface ArrowStyleProps extends BaseStyleProps {
|
|
6
|
+
body?: ArrowBody;
|
|
7
|
+
startHead?: ArrowHead;
|
|
8
|
+
endHead?: ArrowHead;
|
|
9
|
+
/**
|
|
10
|
+
* offset along tangent for start head
|
|
11
|
+
*/
|
|
12
|
+
startHeadOffset?: number;
|
|
13
|
+
/**
|
|
14
|
+
* offset along tangent for end head
|
|
15
|
+
*/
|
|
16
|
+
endHeadOffset?: number;
|
|
17
|
+
stroke?: string;
|
|
18
|
+
lineWidth?: number;
|
|
19
|
+
opacity?: number;
|
|
20
|
+
strokeOpacity?: number;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* support 3 types of arrow line:
|
|
24
|
+
* 1. Line
|
|
25
|
+
* 2. Polyline
|
|
26
|
+
* 3. Path
|
|
27
|
+
*
|
|
28
|
+
* support 2 types of arrow head:
|
|
29
|
+
* 1. default(Path)
|
|
30
|
+
* 2. custom
|
|
31
|
+
*/
|
|
32
|
+
export declare class Arrow extends CustomElement<ArrowStyleProps> {
|
|
33
|
+
static tag: string;
|
|
34
|
+
static PARSED_STYLE_LIST: Set<string>;
|
|
35
|
+
private body;
|
|
36
|
+
private startHead?;
|
|
37
|
+
private endHead?;
|
|
38
|
+
private startHeadPosition;
|
|
39
|
+
private startHeadRad;
|
|
40
|
+
private endHeadPosition;
|
|
41
|
+
private endHeadRad;
|
|
42
|
+
constructor(config: DisplayObjectConfig<ArrowStyleProps>);
|
|
43
|
+
private handleBodyAttributeChanged;
|
|
44
|
+
getBody(): Line | Path | Polyline;
|
|
45
|
+
getStartHead(): DisplayObject<any, any>;
|
|
46
|
+
getEndHead(): DisplayObject<any, any>;
|
|
47
|
+
attributeChangedCallback<Key extends keyof ArrowStyleProps>(name: Key, oldValue: ArrowStyleProps[Key], newValue: ArrowStyleProps[Key]): void;
|
|
48
|
+
private getArrowHeadType;
|
|
49
|
+
private appendArrowHead;
|
|
50
|
+
/**
|
|
51
|
+
* transform arrow head according to arrow line
|
|
52
|
+
*/
|
|
53
|
+
private transformArrowHead;
|
|
54
|
+
private moveArrowHeadAlongTangent;
|
|
55
|
+
private destroyArrowHead;
|
|
56
|
+
private getTangent;
|
|
57
|
+
private createDefaultArrowHead;
|
|
58
|
+
private applyArrowStyle;
|
|
59
|
+
}
|
|
60
|
+
export {};
|
|
61
|
+
//# sourceMappingURL=Arrow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Arrow.d.ts","sourceRoot":"","sources":["../../../src/plugins/components/Arrow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,IAAI,EAEJ,QAAQ,EACT,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,aAAa,EAAgB,IAAI,EAAS,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AO,CAAC,kBAAkB;IAuD1B,OAAO,CAAC,yBAAyB;IA8BjC,OAAO,CAAC,gBAAgB;IAWxB,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,sBAAsB;IAiB9B,OAAO,CAAC,eAAe;CAoCxB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { BaseStyleProps, DisplayObjectConfig } from '@antv/g-lite';
|
|
2
|
+
import { CustomElement } from '@antv/g-lite';
|
|
3
|
+
export interface SectorStyleProps extends BaseStyleProps {
|
|
4
|
+
startAngle: number;
|
|
5
|
+
endAngle: number;
|
|
6
|
+
sr0: number;
|
|
7
|
+
sr: number;
|
|
8
|
+
sradius: number;
|
|
9
|
+
sx: number;
|
|
10
|
+
sy: number;
|
|
11
|
+
}
|
|
12
|
+
export declare class Sector extends CustomElement<SectorStyleProps> {
|
|
13
|
+
static PARSED_STYLE_LIST: Set<string>;
|
|
14
|
+
static tag: string;
|
|
15
|
+
private path;
|
|
16
|
+
constructor(config: DisplayObjectConfig<SectorStyleProps>);
|
|
17
|
+
attributeChangedCallback<Key extends keyof SectorStyleProps>(name: Key, oldValue: SectorStyleProps[Key], newValue: SectorStyleProps[Key]): void;
|
|
18
|
+
private updatePath;
|
|
19
|
+
private createPath;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=Sector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sector.d.ts","sourceRoot":"","sources":["../../../src/plugins/components/Sector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,EACL,aAAa,EAKd,MAAM,cAAc,CAAC;AA0ItB,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACtD,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,qBAAa,MAAO,SAAQ,aAAa,CAAC,gBAAgB,CAAC;IACzD,MAAM,CAAC,iBAAiB,cASrB;IAEH,MAAM,CAAC,GAAG,SAAY;IAEtB,OAAO,CAAC,IAAI,CAAO;gBAEP,MAAM,EAAE,mBAAmB,CAAC,gBAAgB,CAAC;IAgBzD,wBAAwB,CAAC,GAAG,SAAS,MAAM,gBAAgB,EACzD,IAAI,EAAE,GAAG,EACT,QAAQ,EAAE,gBAAgB,CAAC,GAAG,CAAC,EAC/B,QAAQ,EAAE,gBAAgB,CAAC,GAAG,CAAC;IAejC,OAAO,CAAC,UAAU;IAgBlB,OAAO,CAAC,UAAU;CA2WnB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Path } from '@antv/g-lite';
|
|
2
|
+
export declare class Sector extends Path {
|
|
3
|
+
static PARSED_STYLE_LIST: Set<string>;
|
|
4
|
+
constructor(config: any);
|
|
5
|
+
setAttribute(name: any, value: any, force?: boolean): void;
|
|
6
|
+
private updatePath;
|
|
7
|
+
private createPath;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=Sector2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sector2.d.ts","sourceRoot":"","sources":["../../../src/plugins/components/Sector2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAgC,MAAM,cAAc,CAAC;AA0IlE,qBAAa,MAAO,SAAQ,IAAI;IAC9B,MAAM,CAAC,iBAAiB,cASrB;gBAGS,MAAM,KAAA;IAIlB,YAAY,CAAC,IAAI,KAAA,EAAE,KAAK,KAAA,EAAE,KAAK,CAAC,EAAE,OAAO;IAOzC,OAAO,CAAC,UAAU;IAgBlB,OAAO,CAAC,UAAU;CA2WnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Canvas } from '@antv/g-lite';
|
|
2
|
+
import type { CanvasOptions, DownloadImageOptions } from './types';
|
|
3
|
+
export interface ImageExporterOptions {
|
|
4
|
+
canvas: Canvas;
|
|
5
|
+
defaultFilename?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class ImageExporter {
|
|
8
|
+
private options;
|
|
9
|
+
constructor(options: ImageExporterOptions);
|
|
10
|
+
/**
|
|
11
|
+
* return a HTMLCanvasElement which you can call `toDataURL` later
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* const canvas = await exporter.toCanvas();
|
|
15
|
+
* canvas.toDataURL(); // data:
|
|
16
|
+
*/
|
|
17
|
+
toCanvas(options?: Partial<CanvasOptions>): Promise<HTMLCanvasElement>;
|
|
18
|
+
/**
|
|
19
|
+
* generate data url for the whole viewport
|
|
20
|
+
*/
|
|
21
|
+
private toDataURL;
|
|
22
|
+
private isSVG;
|
|
23
|
+
toSVGDataURL(): Promise<string>;
|
|
24
|
+
downloadImage(options: DownloadImageOptions): void;
|
|
25
|
+
private getOrCreateImage;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=ImageExporter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageExporter.d.ts","sourceRoot":"","sources":["../../../src/plugins/image-exporter/ImageExporter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAkB,MAAM,cAAc,CAAC;AAG3D,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEnE,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,qBAAa,aAAa;IACZ,OAAO,CAAC,OAAO;gBAAP,OAAO,EAAE,oBAAoB;IAEjD;;;;;;OAMG;IACG,QAAQ,CAAC,OAAO,GAAE,OAAO,CAAC,aAAa,CAAM;IAoFnD;;OAEG;YACW,SAAS;IAIvB,OAAO,CAAC,KAAK;IAQP,YAAY;IAMlB,aAAa,CAAC,OAAO,EAAE,oBAAoB;IAgE3C,OAAO,CAAC,gBAAgB;CAiBzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/image-exporter/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Rectangle } from '@antv/g-lite';
|
|
2
|
+
export interface DownloadImageOptions {
|
|
3
|
+
dataURL: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface CanvasOptions {
|
|
7
|
+
clippingRegion: Rectangle;
|
|
8
|
+
beforeDrawImage: (context: CanvasRenderingContext2D) => void;
|
|
9
|
+
afterDrawImage: (context: CanvasRenderingContext2D) => void;
|
|
10
|
+
ignoreElements: (element: Element) => boolean;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/plugins/image-exporter/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,aAAa;IAC5B,cAAc,EAAE,SAAS,CAAC;IAC1B,eAAe,EAAE,CAAC,OAAO,EAAE,wBAAwB,KAAK,IAAI,CAAC;IAC7D,cAAc,EAAE,CAAC,OAAO,EAAE,wBAAwB,KAAK,IAAI,CAAC;IAC5D,cAAc,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC;CAC/C"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Rect } from '@antv/g-lite';
|
|
2
|
+
import type { DotPatternCfg } from './interfaces';
|
|
3
|
+
export declare const defaultDotPatternCfg: {
|
|
4
|
+
size: number;
|
|
5
|
+
padding: number;
|
|
6
|
+
backgroundColor: string;
|
|
7
|
+
opacity: number;
|
|
8
|
+
fill: string;
|
|
9
|
+
fillOpacity: number;
|
|
10
|
+
stroke: string;
|
|
11
|
+
strokeOpacity: number;
|
|
12
|
+
lineWidth: number;
|
|
13
|
+
isStagger: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare function dots(cfg?: DotPatternCfg): Rect;
|
|
16
|
+
//# sourceMappingURL=dots.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dots.d.ts","sourceRoot":"","sources":["../../../src/plugins/pattern/dots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,IAAI,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAGlD,eAAO,MAAM,oBAAoB;;;;;;;;;;;CAWhC,CAAC;AAEF,wBAAgB,IAAI,CAAC,GAAG,CAAC,EAAE,aAAa,GAAG,IAAI,CAoD9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/pattern/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export type PatternCfg = {
|
|
2
|
+
/**
|
|
3
|
+
* @title 背景色
|
|
4
|
+
* @description pattern background color. Default: inherit (默认: 继承图形元素颜色)
|
|
5
|
+
* @default "inherit"
|
|
6
|
+
*/
|
|
7
|
+
backgroundColor?: string;
|
|
8
|
+
backgroundOpacity?: number;
|
|
9
|
+
/**
|
|
10
|
+
* @title 贴图图案填充色
|
|
11
|
+
*/
|
|
12
|
+
fill?: string;
|
|
13
|
+
/**
|
|
14
|
+
* @title 填充透明度
|
|
15
|
+
*/
|
|
16
|
+
fillOpacity?: number;
|
|
17
|
+
/**
|
|
18
|
+
* @title 描边色
|
|
19
|
+
* @description 贴图图案描边色
|
|
20
|
+
*/
|
|
21
|
+
stroke?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @title 描边透明度
|
|
24
|
+
*/
|
|
25
|
+
strokeOpacity?: number;
|
|
26
|
+
/**
|
|
27
|
+
* @title 描边粗细
|
|
28
|
+
*/
|
|
29
|
+
lineWidth?: number;
|
|
30
|
+
/**
|
|
31
|
+
* @title 透明度
|
|
32
|
+
* @description 整个pattern 透明度
|
|
33
|
+
*/
|
|
34
|
+
opacity?: number;
|
|
35
|
+
};
|
|
36
|
+
export type DotPatternCfg = PatternCfg & {
|
|
37
|
+
/**
|
|
38
|
+
* @title 点的大小
|
|
39
|
+
* @default 4
|
|
40
|
+
*/
|
|
41
|
+
size?: number;
|
|
42
|
+
/**
|
|
43
|
+
* @title 点间距
|
|
44
|
+
* @default 4
|
|
45
|
+
*/
|
|
46
|
+
padding?: number;
|
|
47
|
+
/**
|
|
48
|
+
* @title 是否交错
|
|
49
|
+
* @default true
|
|
50
|
+
*/
|
|
51
|
+
isStagger?: boolean;
|
|
52
|
+
};
|
|
53
|
+
export type LinePatternCfg = PatternCfg & {
|
|
54
|
+
/**
|
|
55
|
+
* @title 线之间的距离
|
|
56
|
+
*/
|
|
57
|
+
spacing?: number;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* @title square pattern
|
|
61
|
+
*/
|
|
62
|
+
export type SquarePatternCfg = PatternCfg & {
|
|
63
|
+
/**
|
|
64
|
+
* @title 矩形的大小
|
|
65
|
+
*/
|
|
66
|
+
size?: number;
|
|
67
|
+
/**
|
|
68
|
+
* @title 矩形之间的间隔
|
|
69
|
+
*/
|
|
70
|
+
padding?: number;
|
|
71
|
+
/**
|
|
72
|
+
* @title 是否交错
|
|
73
|
+
* @description 即 staggered squares.
|
|
74
|
+
* @default true
|
|
75
|
+
*/
|
|
76
|
+
isStagger?: boolean;
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/plugins/pattern/interfaces.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACvB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG;IACvC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG;IACxC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG;IAC1C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Rect } from '@antv/g-lite';
|
|
2
|
+
import type { LinePatternCfg } from './interfaces';
|
|
3
|
+
/**
|
|
4
|
+
* linePattern 的 默认配置
|
|
5
|
+
*/
|
|
6
|
+
export declare const defaultLinePatternCfg: {
|
|
7
|
+
spacing: number;
|
|
8
|
+
opacity: number;
|
|
9
|
+
backgroundColor: string;
|
|
10
|
+
backgroundOpacity: number;
|
|
11
|
+
strokeOpacity: number;
|
|
12
|
+
stroke: string;
|
|
13
|
+
lineWidth: number;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* 创建 linePattern
|
|
17
|
+
*/
|
|
18
|
+
export declare function lines(cfg?: LinePatternCfg): Rect;
|
|
19
|
+
//# sourceMappingURL=lines.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lines.d.ts","sourceRoot":"","sources":["../../../src/plugins/pattern/lines.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAQ,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;CAQjC,CAAC;AAEF;;GAEG;AACH,wBAAgB,KAAK,CAAC,GAAG,CAAC,EAAE,cAAc,GAAG,IAAI,CAgDhD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Rect } from '@antv/g-lite';
|
|
2
|
+
import type { SquarePatternCfg } from './interfaces';
|
|
3
|
+
/**
|
|
4
|
+
* squarePattern 的 默认配置
|
|
5
|
+
*/
|
|
6
|
+
export declare const defaultSquarePatternCfg: {
|
|
7
|
+
size: number;
|
|
8
|
+
padding: number;
|
|
9
|
+
isStagger: boolean;
|
|
10
|
+
backgroundColor: string;
|
|
11
|
+
opacity: number;
|
|
12
|
+
fill: string;
|
|
13
|
+
fillOpacity: number;
|
|
14
|
+
stroke: string;
|
|
15
|
+
lineWidth: number;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* 创建 squarePattern
|
|
19
|
+
*/
|
|
20
|
+
export declare function squares(cfg?: SquarePatternCfg): Rect;
|
|
21
|
+
//# sourceMappingURL=squares.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"squares.d.ts","sourceRoot":"","sources":["../../../src/plugins/pattern/squares.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGrD;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;CAUnC,CAAC;AAEF;;GAEG;AACH,wBAAgB,OAAO,CAAC,GAAG,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAqDpD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 计算贴图单元大小
|
|
3
|
+
*
|
|
4
|
+
* @param size 元素大小
|
|
5
|
+
* @param padding 圆点间隔
|
|
6
|
+
* @param isStagger 是否交错
|
|
7
|
+
* @reutrn 返回贴图单元大小
|
|
8
|
+
*/
|
|
9
|
+
export declare function getUnitPatternSize(size: number, padding: number, isStagger: boolean): number;
|
|
10
|
+
/**
|
|
11
|
+
* 计算有交错情况的元素坐标
|
|
12
|
+
*
|
|
13
|
+
* @param unitSize 贴图单元大小
|
|
14
|
+
* @param isStagger 是否交错
|
|
15
|
+
* @reutrn 元素中心坐标 x,y 数组集合
|
|
16
|
+
*/
|
|
17
|
+
export declare function getSymbolsPosition(unitSize: number, isStagger: boolean): number[][];
|
|
18
|
+
//# sourceMappingURL=util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/plugins/pattern/util.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,OAAO,GACjB,MAAM,CAIR;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,OAAO,GACjB,MAAM,EAAE,EAAE,CASZ"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import type { IAnimation } from '@antv/g-lite';
|
|
2
|
+
import type { AnimationTimeline } from './AnimationTimeline';
|
|
3
|
+
import type { KeyframeEffect } from './KeyframeEffect';
|
|
4
|
+
/**
|
|
5
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Animation/Animation
|
|
6
|
+
*/
|
|
7
|
+
export declare class Animation implements IAnimation {
|
|
8
|
+
/**
|
|
9
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Animation/effect
|
|
10
|
+
*/
|
|
11
|
+
effect: KeyframeEffect;
|
|
12
|
+
/**
|
|
13
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Animation/timeline
|
|
14
|
+
*/
|
|
15
|
+
timeline: AnimationTimeline;
|
|
16
|
+
/**
|
|
17
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Animation/id
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
/**
|
|
21
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Animation/pending
|
|
22
|
+
*/
|
|
23
|
+
get pending(): boolean;
|
|
24
|
+
private currentTimePending;
|
|
25
|
+
/**
|
|
26
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Animation/playState
|
|
27
|
+
*/
|
|
28
|
+
private _idle;
|
|
29
|
+
private _paused;
|
|
30
|
+
private _finishedFlag;
|
|
31
|
+
get playState(): AnimationPlayState;
|
|
32
|
+
/**
|
|
33
|
+
* record previos state
|
|
34
|
+
*/
|
|
35
|
+
private oldPlayState;
|
|
36
|
+
private _holdTime;
|
|
37
|
+
private readyPromise;
|
|
38
|
+
private finishedPromise;
|
|
39
|
+
private resolveReadyPromise;
|
|
40
|
+
private rejectReadyPromise;
|
|
41
|
+
private resolveFinishedPromise;
|
|
42
|
+
private rejectFinishedPromise;
|
|
43
|
+
/**
|
|
44
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Animation/ready
|
|
45
|
+
* @example
|
|
46
|
+
animation.pause();
|
|
47
|
+
animation.ready.then(function() {
|
|
48
|
+
// Displays 'running'
|
|
49
|
+
alert(animation.playState);
|
|
50
|
+
});
|
|
51
|
+
animation.play();
|
|
52
|
+
*/
|
|
53
|
+
get ready(): Promise<any>;
|
|
54
|
+
/**
|
|
55
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Animation/finished
|
|
56
|
+
* @example
|
|
57
|
+
Promise.all(
|
|
58
|
+
elem.getAnimations().map(
|
|
59
|
+
function(animation) {
|
|
60
|
+
return animation.finished
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
).then(
|
|
64
|
+
function() {
|
|
65
|
+
return elem.remove();
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
*/
|
|
69
|
+
get finished(): Promise<any>;
|
|
70
|
+
/**
|
|
71
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Animation/onfinish
|
|
72
|
+
*/
|
|
73
|
+
onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
|
|
74
|
+
/**
|
|
75
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Animation/oncancel
|
|
76
|
+
*/
|
|
77
|
+
oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
|
|
78
|
+
/**
|
|
79
|
+
* get called after each frame when running
|
|
80
|
+
*/
|
|
81
|
+
onframe: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
|
|
82
|
+
/**
|
|
83
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Animation/currentTime
|
|
84
|
+
*/
|
|
85
|
+
private _currentTime;
|
|
86
|
+
get currentTime(): number | null;
|
|
87
|
+
set currentTime(newTime: number | null);
|
|
88
|
+
/**
|
|
89
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Animation/startTime
|
|
90
|
+
*/
|
|
91
|
+
private _startTime;
|
|
92
|
+
get startTime(): number | null;
|
|
93
|
+
set startTime(newTime: number | null);
|
|
94
|
+
private _playbackRate;
|
|
95
|
+
get playbackRate(): number;
|
|
96
|
+
set playbackRate(value: number);
|
|
97
|
+
get _isFinished(): boolean;
|
|
98
|
+
_totalDuration: number;
|
|
99
|
+
get totalDuration(): number;
|
|
100
|
+
_inEffect: boolean;
|
|
101
|
+
_inTimeline: boolean;
|
|
102
|
+
get _needsTick(): boolean;
|
|
103
|
+
constructor(effect: KeyframeEffect, timeline: AnimationTimeline);
|
|
104
|
+
/**
|
|
105
|
+
* state machine,
|
|
106
|
+
* resolve/reject ready/finished Promise according to current state
|
|
107
|
+
*/
|
|
108
|
+
updatePromises(): false | Promise<any>;
|
|
109
|
+
play(): void;
|
|
110
|
+
pause(): void;
|
|
111
|
+
finish(): void;
|
|
112
|
+
cancel(): void;
|
|
113
|
+
reverse(): void;
|
|
114
|
+
/**
|
|
115
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Animation/updatePlaybackRate
|
|
116
|
+
*/
|
|
117
|
+
updatePlaybackRate(playbackRate: number): void;
|
|
118
|
+
targetAnimations(): IAnimation[];
|
|
119
|
+
markTarget(): void;
|
|
120
|
+
unmarkTarget(): void;
|
|
121
|
+
tick(timelineTime: number, isAnimationFrame: boolean): void;
|
|
122
|
+
private rewind;
|
|
123
|
+
persist(): void;
|
|
124
|
+
addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
125
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
126
|
+
removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
127
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
128
|
+
dispatchEvent(event: Event): boolean;
|
|
129
|
+
onremove: ((this: Animation, ev: Event) => any) | null;
|
|
130
|
+
commitStyles(): void;
|
|
131
|
+
private ensureAlive;
|
|
132
|
+
private tickCurrentTime;
|
|
133
|
+
private fireEvents;
|
|
134
|
+
}
|
|
135
|
+
//# sourceMappingURL=Animation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Animation.d.ts","sourceRoot":"","sources":["../../../../src/plugins/web-animations-api/dom/Animation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,UAAU,EAAE,MAAM,cAAc,CAAC;AAG9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIvD;;GAEG;AACH,qBAAa,SAAU,YAAW,UAAU;IAC1C;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;IAEvB;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAC;IAE5B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAIX;;OAEG;IACH,IAAI,OAAO,YAKV;IACD,OAAO,CAAC,kBAAkB,CAAS;IAEnC;;OAEG;IAEH,OAAO,CAAC,KAAK,CAAQ;IACrB,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,aAAa,CAAQ;IAC7B,IAAI,SAAS,IAAI,kBAAkB,CAKlC;IAED;;OAEG;IACH,OAAO,CAAC,YAAY,CAAiC;IAErD,OAAO,CAAC,SAAS,CAAS;IAE1B,OAAO,CAAC,YAAY,CAA2B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