@antv/g-lite 1.0.13 → 1.0.14
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/path.d.ts.map +1 -1
- package/dist/display-objects/Path.d.ts +26 -7
- package/dist/display-objects/Path.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +343 -38
- package/dist/index.js +340 -34
- package/dist/index.umd.js +1100 -73
- package/dist/index.umd.min.js +2 -2
- package/dist/utils/path.d.ts +11 -4
- package/dist/utils/path.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/utils/path.d.ts
CHANGED
|
@@ -2,21 +2,28 @@
|
|
|
2
2
|
* implements morph animation with cubic splitting
|
|
3
3
|
* @see http://thednp.github.io/kute.js/svgCubicMorph.html
|
|
4
4
|
*/
|
|
5
|
-
import type { AbsoluteArray
|
|
6
|
-
import type {
|
|
5
|
+
import type { AbsoluteArray } from '@antv/util';
|
|
6
|
+
import type { mat4 } from 'gl-matrix';
|
|
7
|
+
import type { Circle, Ellipse, Line, Path, PathSegment, Polygon, Polyline, Rect } from '../display-objects';
|
|
7
8
|
export declare function getOrCalculatePathTotalLength(path: Path): number;
|
|
8
9
|
export declare function hasArcOrBezier(path: AbsoluteArray): boolean;
|
|
9
10
|
export declare function extractPolygons(pathArray: AbsoluteArray): {
|
|
10
11
|
polygons: [number, number][][];
|
|
11
12
|
polylines: [number, number][][];
|
|
12
13
|
};
|
|
13
|
-
export declare function
|
|
14
|
+
export declare function getPathBBox(segments: any[], lineWidth: number): {
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
};
|
|
20
|
+
export declare function path2Segments(path: AbsoluteArray): PathSegment[];
|
|
14
21
|
/**
|
|
15
22
|
* convert object to path, should account for:
|
|
16
23
|
* * transform & origin
|
|
17
24
|
* * anchor
|
|
18
25
|
* * lineWidth
|
|
19
26
|
*/
|
|
20
|
-
export declare function convertToPath(object: Circle | Ellipse | Rect | Line | Polyline | Polygon | Path,
|
|
27
|
+
export declare function convertToPath(object: Circle | Ellipse | Rect | Line | Polyline | Polygon | Path, transform?: mat4): string;
|
|
21
28
|
export declare function translatePathToString(pathArray: AbsoluteArray, x: number, y: number, startOffsetX?: number, startOffsetY?: number, endOffsetX?: number, endOffsetY?: number): string;
|
|
22
29
|
//# sourceMappingURL=path.d.ts.map
|
package/dist/utils/path.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../src/utils/path.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../src/utils/path.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,aAAa,EAAY,MAAM,YAAY,CAAC;AAG1D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,OAAO,KAAK,EACV,MAAM,EACN,OAAO,EACP,IAAI,EACJ,IAAI,EAEJ,WAAW,EAEX,OAAO,EACP,QAAQ,EACR,IAAI,EACL,MAAM,oBAAoB,CAAC;AAI5B,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,IAAI,UAKvD;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,aAAa,WAYjD;AAED,wBAAgB,eAAe,CAAC,SAAS,EAAE,aAAa;;;EAmCvD;AAMD,wBAAgB,WAAW,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,SAAS,EAAE,MAAM;;;;;EAiG7D;AAgDD,wBAAgB,aAAa,CAAC,IAAI,EAAE,aAAa,GAAG,WAAW,EAAE,CA2IhE;AAkND;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,IAAI,GAAG,QAAQ,GAAG,OAAO,GAAG,IAAI,EAClE,SAAS,GAAE,IAAiC,UAuD7C;AAED,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,aAAa,EACxB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,YAAY,SAAI,EAChB,YAAY,SAAI,EAChB,UAAU,SAAI,EACd,UAAU,SAAI,UAsCf"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/g-lite",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"description": "A core module for rendering engine implements DOM API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antv",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"sync": "tnpm sync"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@antv/g-math": "^1.7.
|
|
35
|
+
"@antv/g-math": "^1.7.25",
|
|
36
36
|
"@antv/util": "^3.2.4",
|
|
37
37
|
"@types/offscreencanvas": "^2019.6.4",
|
|
38
38
|
"d3-color": "^1.4.0",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "564d1a1f8147699ec6b93c093e590625138b3643"
|
|
55
55
|
}
|