@antv/g2 5.1.6 → 5.1.8-beta.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.
Files changed (265) hide show
  1. package/README.md +2 -2
  2. package/README.zh-CN.md +1 -1
  3. package/dist/g2.full.min.js +1 -1
  4. package/dist/g2.lite.min.js +1 -1
  5. package/dist/g2.min.js +1 -1
  6. package/esm/animation/growInX.js +0 -4
  7. package/esm/animation/growInX.js.map +1 -1
  8. package/esm/animation/growInY.js +0 -4
  9. package/esm/animation/growInY.js.map +1 -1
  10. package/esm/animation/scaleInX.js +5 -7
  11. package/esm/animation/scaleInX.js.map +1 -1
  12. package/esm/animation/scaleInY.js +5 -7
  13. package/esm/animation/scaleInY.js.map +1 -1
  14. package/esm/animation/scaleOutX.js +5 -7
  15. package/esm/animation/scaleOutX.js.map +1 -1
  16. package/esm/animation/scaleOutY.js +5 -7
  17. package/esm/animation/scaleOutY.js.map +1 -1
  18. package/esm/animation/zoomIn.js +4 -5
  19. package/esm/animation/zoomIn.js.map +1 -1
  20. package/esm/animation/zoomOut.js +4 -6
  21. package/esm/animation/zoomOut.js.map +1 -1
  22. package/esm/component/axis.js +1 -5
  23. package/esm/component/axis.js.map +1 -1
  24. package/esm/component/index.d.ts +0 -1
  25. package/esm/component/index.js +0 -1
  26. package/esm/component/index.js.map +1 -1
  27. package/esm/component/legendContinuous.js +1 -1
  28. package/esm/component/legendContinuous.js.map +1 -1
  29. package/esm/coordinate/index.d.ts +0 -2
  30. package/esm/coordinate/index.js +0 -1
  31. package/esm/coordinate/index.js.map +1 -1
  32. package/esm/exports.d.ts +6 -1
  33. package/esm/exports.js +4 -0
  34. package/esm/exports.js.map +1 -1
  35. package/esm/index.d.ts +114 -114
  36. package/esm/index.js +2 -2
  37. package/esm/index.js.map +1 -1
  38. package/esm/lib/builtinlib.d.ts +7 -7
  39. package/esm/lib/core.d.ts +32 -32
  40. package/esm/lib/index.d.ts +0 -2
  41. package/esm/lib/index.js +0 -2
  42. package/esm/lib/index.js.map +1 -1
  43. package/esm/lib/lite.d.ts +18 -18
  44. package/esm/lib/std.d.ts +56 -56
  45. package/esm/mark/index.d.ts +0 -4
  46. package/esm/mark/index.js +0 -4
  47. package/esm/mark/index.js.map +1 -1
  48. package/esm/mark/liquid.js +2 -1
  49. package/esm/mark/liquid.js.map +1 -1
  50. package/esm/runtime/component.js +1 -3
  51. package/esm/runtime/component.js.map +1 -1
  52. package/esm/runtime/types/component.d.ts +1 -6
  53. package/esm/shape/index.d.ts +0 -4
  54. package/esm/shape/index.js +0 -4
  55. package/esm/shape/index.js.map +1 -1
  56. package/esm/shape/interval/color.d.ts +4 -0
  57. package/esm/shape/interval/color.js +10 -7
  58. package/esm/shape/interval/color.js.map +1 -1
  59. package/esm/shape/interval/rect.d.ts +4 -0
  60. package/esm/shape/interval/rect.js.map +1 -1
  61. package/esm/shape/line/smooth.js +8 -4
  62. package/esm/shape/line/smooth.js.map +1 -1
  63. package/esm/spec/coordinate.d.ts +1 -4
  64. package/esm/spec/mark.d.ts +1 -3
  65. package/esm/theme/create.d.ts +1 -0
  66. package/esm/theme/create.js +1 -0
  67. package/esm/theme/create.js.map +1 -1
  68. package/esm/transform/filter.js +3 -1
  69. package/esm/transform/filter.js.map +1 -1
  70. package/esm/transform/maybeTitle.js +6 -1
  71. package/esm/transform/maybeTitle.js.map +1 -1
  72. package/esm/utils/dateFormat.d.ts +1 -0
  73. package/esm/utils/dateFormat.js +18 -0
  74. package/esm/utils/dateFormat.js.map +1 -0
  75. package/esm/utils/number.d.ts +4 -0
  76. package/esm/utils/number.js +8 -0
  77. package/esm/utils/number.js.map +1 -1
  78. package/lib/animation/growInX.js +0 -4
  79. package/lib/animation/growInX.js.map +1 -1
  80. package/lib/animation/growInY.js +0 -4
  81. package/lib/animation/growInY.js.map +1 -1
  82. package/lib/animation/scaleInX.js +5 -7
  83. package/lib/animation/scaleInX.js.map +1 -1
  84. package/lib/animation/scaleInY.js +5 -7
  85. package/lib/animation/scaleInY.js.map +1 -1
  86. package/lib/animation/scaleOutX.js +5 -7
  87. package/lib/animation/scaleOutX.js.map +1 -1
  88. package/lib/animation/scaleOutY.js +5 -7
  89. package/lib/animation/scaleOutY.js.map +1 -1
  90. package/lib/animation/zoomIn.js +4 -5
  91. package/lib/animation/zoomIn.js.map +1 -1
  92. package/lib/animation/zoomOut.js +4 -6
  93. package/lib/animation/zoomOut.js.map +1 -1
  94. package/lib/component/axis.js +3 -7
  95. package/lib/component/axis.js.map +1 -1
  96. package/lib/component/index.d.ts +0 -1
  97. package/lib/component/index.js +1 -3
  98. package/lib/component/index.js.map +1 -1
  99. package/lib/component/legendContinuous.js +1 -1
  100. package/lib/component/legendContinuous.js.map +1 -1
  101. package/lib/coordinate/index.d.ts +0 -2
  102. package/lib/coordinate/index.js +1 -3
  103. package/lib/coordinate/index.js.map +1 -1
  104. package/lib/exports.d.ts +6 -1
  105. package/lib/exports.js +13 -1
  106. package/lib/exports.js.map +1 -1
  107. package/lib/index.d.ts +114 -114
  108. package/lib/index.js +1 -2
  109. package/lib/index.js.map +1 -1
  110. package/lib/lib/builtinlib.d.ts +7 -7
  111. package/lib/lib/core.d.ts +32 -32
  112. package/lib/lib/index.d.ts +0 -2
  113. package/lib/lib/index.js +1 -5
  114. package/lib/lib/index.js.map +1 -1
  115. package/lib/lib/lite.d.ts +18 -18
  116. package/lib/lib/std.d.ts +56 -56
  117. package/lib/mark/index.d.ts +0 -4
  118. package/lib/mark/index.js +1 -9
  119. package/lib/mark/index.js.map +1 -1
  120. package/lib/mark/liquid.js +2 -1
  121. package/lib/mark/liquid.js.map +1 -1
  122. package/lib/runtime/component.js +2 -4
  123. package/lib/runtime/component.js.map +1 -1
  124. package/lib/runtime/types/component.d.ts +1 -6
  125. package/lib/shape/index.d.ts +0 -4
  126. package/lib/shape/index.js +6 -14
  127. package/lib/shape/index.js.map +1 -1
  128. package/lib/shape/interval/color.d.ts +4 -0
  129. package/lib/shape/interval/color.js +10 -7
  130. package/lib/shape/interval/color.js.map +1 -1
  131. package/lib/shape/interval/rect.d.ts +4 -0
  132. package/lib/shape/interval/rect.js.map +1 -1
  133. package/lib/shape/line/smooth.js +6 -2
  134. package/lib/shape/line/smooth.js.map +1 -1
  135. package/lib/spec/coordinate.d.ts +1 -4
  136. package/lib/spec/mark.d.ts +1 -3
  137. package/lib/theme/create.d.ts +1 -0
  138. package/lib/theme/create.js +1 -0
  139. package/lib/theme/create.js.map +1 -1
  140. package/lib/transform/filter.js +3 -1
  141. package/lib/transform/filter.js.map +1 -1
  142. package/lib/transform/maybeTitle.js +6 -1
  143. package/lib/transform/maybeTitle.js.map +1 -1
  144. package/lib/utils/dateFormat.d.ts +1 -0
  145. package/lib/utils/dateFormat.js +22 -0
  146. package/lib/utils/dateFormat.js.map +1 -0
  147. package/lib/utils/number.d.ts +4 -0
  148. package/lib/utils/number.js +10 -1
  149. package/lib/utils/number.js.map +1 -1
  150. package/package.json +10 -17
  151. package/src/animation/growInX.ts +1 -6
  152. package/src/animation/growInY.ts +1 -6
  153. package/src/animation/scaleInX.ts +8 -11
  154. package/src/animation/scaleInY.ts +8 -11
  155. package/src/animation/scaleOutX.ts +8 -11
  156. package/src/animation/scaleOutY.ts +8 -11
  157. package/src/animation/zoomIn.ts +4 -6
  158. package/src/animation/zoomOut.ts +4 -7
  159. package/src/component/axis.ts +1 -5
  160. package/src/component/index.ts +0 -1
  161. package/src/component/legendContinuous.ts +1 -1
  162. package/src/coordinate/index.ts +0 -2
  163. package/src/exports.ts +18 -2
  164. package/src/index.ts +2 -2
  165. package/src/lib/index.ts +0 -2
  166. package/src/mark/index.ts +0 -4
  167. package/src/mark/liquid.ts +2 -1
  168. package/src/runtime/component.ts +1 -4
  169. package/src/runtime/types/component.ts +2 -9
  170. package/src/shape/index.ts +0 -4
  171. package/src/shape/interval/color.ts +16 -4
  172. package/src/shape/interval/rect.ts +5 -0
  173. package/src/shape/line/smooth.ts +12 -4
  174. package/src/spec/coordinate.ts +0 -5
  175. package/src/spec/mark.ts +0 -3
  176. package/src/theme/create.ts +1 -0
  177. package/src/transform/filter.ts +3 -1
  178. package/src/transform/maybeTitle.ts +8 -1
  179. package/src/utils/dateFormat.ts +22 -0
  180. package/src/utils/number.ts +8 -0
  181. package/CHANGELOG.md +0 -417
  182. package/esm/component/axisZ.d.ts +0 -8
  183. package/esm/component/axisZ.js +0 -14
  184. package/esm/component/axisZ.js.map +0 -1
  185. package/esm/coordinate/cartesian3D.d.ts +0 -7
  186. package/esm/coordinate/cartesian3D.js +0 -6
  187. package/esm/coordinate/cartesian3D.js.map +0 -1
  188. package/esm/lib/auto.d.ts +0 -3
  189. package/esm/lib/auto.js +0 -7
  190. package/esm/lib/auto.js.map +0 -1
  191. package/esm/lib/threed.d.ts +0 -7
  192. package/esm/lib/threed.js +0 -13
  193. package/esm/lib/threed.js.map +0 -1
  194. package/esm/mark/auto.d.ts +0 -1
  195. package/esm/mark/auto.js +0 -26
  196. package/esm/mark/auto.js.map +0 -1
  197. package/esm/mark/interval3D.d.ts +0 -8
  198. package/esm/mark/interval3D.js +0 -65
  199. package/esm/mark/interval3D.js.map +0 -1
  200. package/esm/mark/line3D.d.ts +0 -7
  201. package/esm/mark/line3D.js +0 -65
  202. package/esm/mark/line3D.js.map +0 -1
  203. package/esm/mark/point3D.d.ts +0 -9
  204. package/esm/mark/point3D.js +0 -76
  205. package/esm/mark/point3D.js.map +0 -1
  206. package/esm/shape/interval3D/cube.d.ts +0 -6
  207. package/esm/shape/interval3D/cube.js +0 -71
  208. package/esm/shape/interval3D/cube.js.map +0 -1
  209. package/esm/shape/line3D/line.d.ts +0 -3
  210. package/esm/shape/line3D/line.js +0 -30
  211. package/esm/shape/line3D/line.js.map +0 -1
  212. package/esm/shape/point3D/cube.d.ts +0 -6
  213. package/esm/shape/point3D/cube.js +0 -70
  214. package/esm/shape/point3D/cube.js.map +0 -1
  215. package/esm/shape/point3D/sphere.d.ts +0 -6
  216. package/esm/shape/point3D/sphere.js +0 -70
  217. package/esm/shape/point3D/sphere.js.map +0 -1
  218. package/lib/component/axisZ.d.ts +0 -8
  219. package/lib/component/axisZ.js +0 -19
  220. package/lib/component/axisZ.js.map +0 -1
  221. package/lib/coordinate/cartesian3D.d.ts +0 -7
  222. package/lib/coordinate/cartesian3D.js +0 -10
  223. package/lib/coordinate/cartesian3D.js.map +0 -1
  224. package/lib/lib/auto.d.ts +0 -3
  225. package/lib/lib/auto.js +0 -11
  226. package/lib/lib/auto.js.map +0 -1
  227. package/lib/lib/threed.d.ts +0 -7
  228. package/lib/lib/threed.js +0 -17
  229. package/lib/lib/threed.js.map +0 -1
  230. package/lib/mark/auto.d.ts +0 -1
  231. package/lib/mark/auto.js +0 -30
  232. package/lib/mark/auto.js.map +0 -1
  233. package/lib/mark/interval3D.d.ts +0 -8
  234. package/lib/mark/interval3D.js +0 -69
  235. package/lib/mark/interval3D.js.map +0 -1
  236. package/lib/mark/line3D.d.ts +0 -7
  237. package/lib/mark/line3D.js +0 -69
  238. package/lib/mark/line3D.js.map +0 -1
  239. package/lib/mark/point3D.d.ts +0 -9
  240. package/lib/mark/point3D.js +0 -80
  241. package/lib/mark/point3D.js.map +0 -1
  242. package/lib/shape/interval3D/cube.d.ts +0 -6
  243. package/lib/shape/interval3D/cube.js +0 -75
  244. package/lib/shape/interval3D/cube.js.map +0 -1
  245. package/lib/shape/line3D/line.d.ts +0 -3
  246. package/lib/shape/line3D/line.js +0 -34
  247. package/lib/shape/line3D/line.js.map +0 -1
  248. package/lib/shape/point3D/cube.d.ts +0 -6
  249. package/lib/shape/point3D/cube.js +0 -74
  250. package/lib/shape/point3D/cube.js.map +0 -1
  251. package/lib/shape/point3D/sphere.d.ts +0 -6
  252. package/lib/shape/point3D/sphere.js +0 -74
  253. package/lib/shape/point3D/sphere.js.map +0 -1
  254. package/src/component/axisZ.ts +0 -25
  255. package/src/coordinate/cartesian3D.ts +0 -11
  256. package/src/lib/auto.ts +0 -7
  257. package/src/lib/threed.ts +0 -13
  258. package/src/mark/auto.ts +0 -22
  259. package/src/mark/interval3D.ts +0 -100
  260. package/src/mark/line3D.ts +0 -81
  261. package/src/mark/point3D.ts +0 -90
  262. package/src/shape/interval3D/cube.ts +0 -69
  263. package/src/shape/line3D/line.ts +0 -29
  264. package/src/shape/point3D/cube.ts +0 -68
  265. package/src/shape/point3D/sphere.ts +0 -68
package/lib/index.js CHANGED
@@ -14,14 +14,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.Chart = exports.threedlib = exports.stdlib = exports.geolib = exports.graphlib = exports.plotlib = exports.corelib = void 0;
17
+ exports.Chart = exports.stdlib = exports.geolib = exports.graphlib = exports.plotlib = exports.corelib = void 0;
18
18
  const lib_1 = require("./lib");
19
19
  Object.defineProperty(exports, "corelib", { enumerable: true, get: function () { return lib_1.corelib; } });
20
20
  Object.defineProperty(exports, "plotlib", { enumerable: true, get: function () { return lib_1.plotlib; } });
21
21
  Object.defineProperty(exports, "graphlib", { enumerable: true, get: function () { return lib_1.graphlib; } });
22
22
  Object.defineProperty(exports, "geolib", { enumerable: true, get: function () { return lib_1.geolib; } });
23
23
  Object.defineProperty(exports, "stdlib", { enumerable: true, get: function () { return lib_1.stdlib; } });
24
- Object.defineProperty(exports, "threedlib", { enumerable: true, get: function () { return lib_1.threedlib; } });
25
24
  const api_1 = require("./api");
26
25
  __exportStar(require("./exports"), exports);
27
26
  /**
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"src/","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,+BAA8E;AAKrE,wFALA,aAAO,OAKA;AAAE,wFALA,aAAO,OAKA;AAAE,yFALA,cAAQ,OAKA;AAAE,uFALA,YAAM,OAKA;AAAE,uFALA,YAAM,OAKA;AAAE,0FALA,eAAS,OAKA;AAJ9D,+BAAwC;AAMxC,4CAA0B;AAE1B;;GAEG;AACH,MAAM,OAAO,qBAAQ,IAAA,YAAM,GAAE,CAAE,CAAC;AAEnB,QAAA,KAAK,GAAG,IAAA,YAAM,EAAC,aAAO,EAAE,OAAO,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"src/","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,+BAAmE;AAK1D,wFALA,aAAO,OAKA;AAAE,wFALA,aAAO,OAKA;AAAE,yFALA,cAAQ,OAKA;AAAE,uFALA,YAAM,OAKA;AAAE,uFALA,YAAM,OAKA;AAJnD,+BAAwC;AAMxC,4CAA0B;AAE1B;;GAEG;AACH,MAAM,OAAO,qBAAQ,IAAA,YAAM,GAAE,CAAE,CAAC;AAEnB,QAAA,KAAK,GAAG,IAAA,YAAM,EAAC,aAAO,EAAE,OAAO,CAAC,CAAC"}
@@ -1,13 +1,13 @@
1
1
  import { Event } from '../interaction/event';
2
2
  export declare function builtinlib(): {
3
- readonly 'component.axisRadar': import("../runtime").GuideComponentComponent<import("../component/axisRadar").AxisRadarOptions>;
4
- readonly 'component.axisLinear': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
5
- readonly 'component.axisArc': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
6
- readonly 'component.legendContinuousBlock': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
7
- readonly 'component.legendContinuousBlockSize': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
8
- readonly 'component.legendContinuousSize': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
3
+ readonly 'component.axisRadar': import("..").GuideComponentComponent<import("../component/axisRadar").AxisRadarOptions>;
4
+ readonly 'component.axisLinear': import("..").GuideComponentComponent<import("..").AxisOptions>;
5
+ readonly 'component.axisArc': import("..").GuideComponentComponent<import("..").AxisOptions>;
6
+ readonly 'component.legendContinuousBlock': import("..").GuideComponentComponent<import("../component").LegendContinuousOptions>;
7
+ readonly 'component.legendContinuousBlockSize': import("..").GuideComponentComponent<import("../component").LegendContinuousOptions>;
8
+ readonly 'component.legendContinuousSize': import("..").GuideComponentComponent<import("../component").LegendContinuousOptions>;
9
9
  readonly 'interaction.event': typeof Event;
10
10
  readonly 'composition.mark': import("../runtime").CompositionComponent<import("../composition").MarkOptions>;
11
11
  readonly 'composition.view': import("../runtime").CompositionComponent<import("../composition").ViewOptions>;
12
- readonly 'shape.label.label': import("../runtime").ShapeComponent<import("../shape").LabelShapeOptions>;
12
+ readonly 'shape.label.label': import("..").ShapeComponent<import("../shape").LabelShapeOptions>;
13
13
  };
package/lib/lib/core.d.ts CHANGED
@@ -50,28 +50,28 @@ export declare function corelib(): {
50
50
  readonly 'encode.field': import("../runtime").EncodeComponent<import("../encode").FieldOptions>;
51
51
  readonly 'encode.transform': import("../runtime").EncodeComponent<import("../encode").TransformOptions>;
52
52
  readonly 'encode.column': import("../runtime").EncodeComponent<import("../encode").ColumnOptions>;
53
- readonly 'mark.interval': import("../runtime").MarkComponent<import("../mark").IntervalOptions>;
54
- readonly 'mark.rect': import("../runtime").MarkComponent<import("../mark").RectOptions>;
55
- readonly 'mark.line': import("../runtime").MarkComponent<import("../mark").LineOptions>;
56
- readonly 'mark.point': import("../runtime").MarkComponent<import("../mark").PointOptions>;
57
- readonly 'mark.text': import("../runtime").MarkComponent<import("../mark").TextOptions>;
58
- readonly 'mark.cell': import("../runtime").MarkComponent<import("../mark").CellOptions>;
59
- readonly 'mark.area': import("../runtime").MarkComponent<import("../mark").AreaOptions>;
60
- readonly 'mark.link': import("../runtime").MarkComponent<import("../mark").LinkOptions>;
61
- readonly 'mark.image': import("../runtime").MarkComponent<import("../mark").ImageOptions>;
62
- readonly 'mark.polygon': import("../runtime").MarkComponent<import("../mark").PolygonOptions>;
63
- readonly 'mark.box': import("../runtime").MarkComponent<import("../mark").BoxOptions>;
64
- readonly 'mark.vector': import("../runtime").MarkComponent<import("../mark").VectorOptions>;
65
- readonly 'mark.lineX': import("../runtime").MarkComponent<import("../mark").LineXOptions>;
66
- readonly 'mark.lineY': import("../runtime").MarkComponent<import("../mark").LineYOptions>;
67
- readonly 'mark.connector': import("../runtime").MarkComponent<import("../mark").ConnectorOptions>;
68
- readonly 'mark.range': import("../runtime").MarkComponent<import("../mark").RangeOptions>;
69
- readonly 'mark.rangeX': import("../runtime").MarkComponent<import("../mark").RangeXOptions>;
70
- readonly 'mark.rangeY': import("../runtime").MarkComponent<import("../mark").RangeYOptions>;
71
- readonly 'mark.path': import("../runtime").MarkComponent<import("../mark/path").PathOptions>;
72
- readonly 'mark.shape': import("../runtime").MarkComponent<import("../mark").ShapeOptions>;
73
- readonly 'mark.density': import("../runtime").MarkComponent<import("../mark").DensityOptions>;
74
- readonly 'mark.heatmap': import("../runtime").MarkComponent<import("../mark").HeatmapOptions>;
53
+ readonly 'mark.interval': import("..").MarkComponent<import("../mark").IntervalOptions>;
54
+ readonly 'mark.rect': import("..").MarkComponent<import("../mark").RectOptions>;
55
+ readonly 'mark.line': import("..").MarkComponent<import("../mark").LineOptions>;
56
+ readonly 'mark.point': import("..").MarkComponent<import("../mark").PointOptions>;
57
+ readonly 'mark.text': import("..").MarkComponent<import("../mark").TextOptions>;
58
+ readonly 'mark.cell': import("..").MarkComponent<import("../mark").CellOptions>;
59
+ readonly 'mark.area': import("..").MarkComponent<import("../mark").AreaOptions>;
60
+ readonly 'mark.link': import("..").MarkComponent<import("../mark").LinkOptions>;
61
+ readonly 'mark.image': import("..").MarkComponent<import("../mark").ImageOptions>;
62
+ readonly 'mark.polygon': import("..").MarkComponent<import("../mark").PolygonOptions>;
63
+ readonly 'mark.box': import("..").MarkComponent<import("../mark").BoxOptions>;
64
+ readonly 'mark.vector': import("..").MarkComponent<import("../mark").VectorOptions>;
65
+ readonly 'mark.lineX': import("..").MarkComponent<import("../mark").LineXOptions>;
66
+ readonly 'mark.lineY': import("..").MarkComponent<import("../mark").LineYOptions>;
67
+ readonly 'mark.connector': import("..").MarkComponent<import("../mark").ConnectorOptions>;
68
+ readonly 'mark.range': import("..").MarkComponent<import("../mark").RangeOptions>;
69
+ readonly 'mark.rangeX': import("..").MarkComponent<import("../mark").RangeXOptions>;
70
+ readonly 'mark.rangeY': import("..").MarkComponent<import("../mark").RangeYOptions>;
71
+ readonly 'mark.path': import("..").MarkComponent<import("../mark/path").PathOptions>;
72
+ readonly 'mark.shape': import("..").MarkComponent<import("../mark").ShapeOptions>;
73
+ readonly 'mark.density': import("..").MarkComponent<import("../mark").DensityOptions>;
74
+ readonly 'mark.heatmap': import("..").MarkComponent<import("../mark").HeatmapOptions>;
75
75
  readonly 'palette.category10': import("../runtime").PaletteComponent<import("../palette").Category10Options>;
76
76
  readonly 'palette.category20': import("../runtime").PaletteComponent<import("../palette").Category20Options>;
77
77
  readonly 'scale.linear': import("../runtime").ScaleComponent<import("../scale").LinearOptions>;
@@ -93,16 +93,16 @@ export declare function corelib(): {
93
93
  readonly 'theme.academy': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
94
94
  readonly 'theme.light': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
95
95
  readonly 'theme.dark': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
96
- readonly 'component.axisX': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
97
- readonly 'component.axisY': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
98
- readonly 'component.legendCategory': import("../runtime").GuideComponentComponent<import("../component").LegendCategoryOptions>;
99
- readonly 'component.legendContinuous': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
100
- readonly 'component.legends': import("../runtime").GuideComponentComponent<import("../component").LegendsOptions>;
101
- readonly 'component.title': import("../runtime").GuideComponentComponent<import("../runtime").G2Title>;
102
- readonly 'component.sliderX': import("../runtime").GuideComponentComponent<import("../component/slider").SliderOptions>;
103
- readonly 'component.sliderY': import("../runtime").GuideComponentComponent<import("../component/slider").SliderOptions>;
104
- readonly 'component.scrollbarX': import("../runtime").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
105
- readonly 'component.scrollbarY': import("../runtime").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
96
+ readonly 'component.axisX': import("..").GuideComponentComponent<import("..").AxisOptions>;
97
+ readonly 'component.axisY': import("..").GuideComponentComponent<import("..").AxisOptions>;
98
+ readonly 'component.legendCategory': import("..").GuideComponentComponent<import("../component").LegendCategoryOptions>;
99
+ readonly 'component.legendContinuous': import("..").GuideComponentComponent<import("../component").LegendContinuousOptions>;
100
+ readonly 'component.legends': import("..").GuideComponentComponent<import("../component").LegendsOptions>;
101
+ readonly 'component.title': import("..").GuideComponentComponent<import("../runtime").G2Title>;
102
+ readonly 'component.sliderX': import("..").GuideComponentComponent<import("../component/slider").SliderOptions>;
103
+ readonly 'component.sliderY': import("..").GuideComponentComponent<import("../component/slider").SliderOptions>;
104
+ readonly 'component.scrollbarX': import("..").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
105
+ readonly 'component.scrollbarY': import("..").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
106
106
  readonly 'animation.scaleInX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
107
107
  readonly 'animation.scaleOutX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
108
108
  readonly 'animation.scaleInY': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
@@ -2,7 +2,5 @@ export { corelib } from './core';
2
2
  export { geolib } from './geo';
3
3
  export { graphlib } from './graph';
4
4
  export { plotlib } from './plot';
5
- export { threedlib } from './threed';
6
5
  export { stdlib } from './std';
7
6
  export { litelib } from './lite';
8
- export { autolib } from './auto';
package/lib/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.autolib = exports.litelib = exports.stdlib = exports.threedlib = exports.plotlib = exports.graphlib = exports.geolib = exports.corelib = void 0;
3
+ exports.litelib = exports.stdlib = exports.plotlib = exports.graphlib = exports.geolib = exports.corelib = void 0;
4
4
  var core_1 = require("./core");
5
5
  Object.defineProperty(exports, "corelib", { enumerable: true, get: function () { return core_1.corelib; } });
6
6
  var geo_1 = require("./geo");
@@ -9,12 +9,8 @@ var graph_1 = require("./graph");
9
9
  Object.defineProperty(exports, "graphlib", { enumerable: true, get: function () { return graph_1.graphlib; } });
10
10
  var plot_1 = require("./plot");
11
11
  Object.defineProperty(exports, "plotlib", { enumerable: true, get: function () { return plot_1.plotlib; } });
12
- var threed_1 = require("./threed");
13
- Object.defineProperty(exports, "threedlib", { enumerable: true, get: function () { return threed_1.threedlib; } });
14
12
  var std_1 = require("./std");
15
13
  Object.defineProperty(exports, "stdlib", { enumerable: true, get: function () { return std_1.stdlib; } });
16
14
  var lite_1 = require("./lite");
17
15
  Object.defineProperty(exports, "litelib", { enumerable: true, get: function () { return lite_1.litelib; } });
18
- var auto_1 = require("./auto");
19
- Object.defineProperty(exports, "autolib", { enumerable: true, get: function () { return auto_1.autolib; } });
20
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"src/","sources":["lib/index.ts"],"names":[],"mappings":";;;AAAA,+BAAiC;AAAxB,+FAAA,OAAO,OAAA;AAChB,6BAA+B;AAAtB,6FAAA,MAAM,OAAA;AACf,iCAAmC;AAA1B,iGAAA,QAAQ,OAAA;AACjB,+BAAiC;AAAxB,+FAAA,OAAO,OAAA;AAChB,mCAAqC;AAA5B,mGAAA,SAAS,OAAA;AAClB,6BAA+B;AAAtB,6FAAA,MAAM,OAAA;AACf,+BAAiC;AAAxB,+FAAA,OAAO,OAAA;AAChB,+BAAiC;AAAxB,+FAAA,OAAO,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"src/","sources":["lib/index.ts"],"names":[],"mappings":";;;AAAA,+BAAiC;AAAxB,+FAAA,OAAO,OAAA;AAChB,6BAA+B;AAAtB,6FAAA,MAAM,OAAA;AACf,iCAAmC;AAA1B,iGAAA,QAAQ,OAAA;AACjB,+BAAiC;AAAxB,+FAAA,OAAO,OAAA;AAChB,6BAA+B;AAAtB,6FAAA,MAAM,OAAA;AACf,+BAAiC;AAAxB,+FAAA,OAAO,OAAA"}
package/lib/lib/lite.d.ts CHANGED
@@ -9,8 +9,8 @@ export declare function litelib(): {
9
9
  readonly 'encode.field': import("../runtime").EncodeComponent<import("../encode").FieldOptions>;
10
10
  readonly 'encode.transform': import("../runtime").EncodeComponent<import("../encode").TransformOptions>;
11
11
  readonly 'encode.column': import("../runtime").EncodeComponent<import("../encode").ColumnOptions>;
12
- readonly 'mark.interval': import("../runtime").MarkComponent<import("../mark").IntervalOptions>;
13
- readonly 'shape.label.label': import("../runtime").ShapeComponent<import("../shape").LabelShapeOptions>;
12
+ readonly 'mark.interval': import("..").MarkComponent<import("../mark").IntervalOptions>;
13
+ readonly 'shape.label.label': import("..").ShapeComponent<import("../shape").LabelShapeOptions>;
14
14
  readonly 'palette.category10': import("../runtime").PaletteComponent<import("../palette").Category10Options>;
15
15
  readonly 'palette.category20': import("../runtime").PaletteComponent<import("../palette").Category20Options>;
16
16
  readonly 'scale.linear': import("../runtime").ScaleComponent<import("../scale").LinearOptions>;
@@ -28,22 +28,22 @@ export declare function litelib(): {
28
28
  readonly 'scale.sequential': import("../runtime").ScaleComponent<import("../scale").SequentialOptions>;
29
29
  readonly 'scale.constant': import("../runtime").ScaleComponent<import("../scale").ConstantOptions>;
30
30
  readonly 'theme.classic': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
31
- readonly 'component.axisX': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
32
- readonly 'component.axisY': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
33
- readonly 'component.axisRadar': import("../runtime").GuideComponentComponent<import("../component/axisRadar").AxisRadarOptions>;
34
- readonly 'component.axisLinear': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
35
- readonly 'component.axisArc': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
36
- readonly 'component.legendCategory': import("../runtime").GuideComponentComponent<import("../component").LegendCategoryOptions>;
37
- readonly 'component.legendContinuous': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
38
- readonly 'component.legendContinuousBlock': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
39
- readonly 'component.legendContinuousBlockSize': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
40
- readonly 'component.legendContinuousSize': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
41
- readonly 'component.legends': import("../runtime").GuideComponentComponent<import("../component").LegendsOptions>;
42
- readonly 'component.title': import("../runtime").GuideComponentComponent<import("../runtime").G2Title>;
43
- readonly 'component.sliderX': import("../runtime").GuideComponentComponent<import("../component/slider").SliderOptions>;
44
- readonly 'component.sliderY': import("../runtime").GuideComponentComponent<import("../component/slider").SliderOptions>;
45
- readonly 'component.scrollbarX': import("../runtime").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
46
- readonly 'component.scrollbarY': import("../runtime").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
31
+ readonly 'component.axisX': import("..").GuideComponentComponent<import("..").AxisOptions>;
32
+ readonly 'component.axisY': import("..").GuideComponentComponent<import("..").AxisOptions>;
33
+ readonly 'component.axisRadar': import("..").GuideComponentComponent<import("../component/axisRadar").AxisRadarOptions>;
34
+ readonly 'component.axisLinear': import("..").GuideComponentComponent<import("..").AxisOptions>;
35
+ readonly 'component.axisArc': import("..").GuideComponentComponent<import("..").AxisOptions>;
36
+ readonly 'component.legendCategory': import("..").GuideComponentComponent<import("../component").LegendCategoryOptions>;
37
+ readonly 'component.legendContinuous': import("..").GuideComponentComponent<import("../component").LegendContinuousOptions>;
38
+ readonly 'component.legendContinuousBlock': import("..").GuideComponentComponent<import("../component").LegendContinuousOptions>;
39
+ readonly 'component.legendContinuousBlockSize': import("..").GuideComponentComponent<import("../component").LegendContinuousOptions>;
40
+ readonly 'component.legendContinuousSize': import("..").GuideComponentComponent<import("../component").LegendContinuousOptions>;
41
+ readonly 'component.legends': import("..").GuideComponentComponent<import("../component").LegendsOptions>;
42
+ readonly 'component.title': import("..").GuideComponentComponent<import("../runtime").G2Title>;
43
+ readonly 'component.sliderX': import("..").GuideComponentComponent<import("../component/slider").SliderOptions>;
44
+ readonly 'component.sliderY': import("..").GuideComponentComponent<import("../component/slider").SliderOptions>;
45
+ readonly 'component.scrollbarX': import("..").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
46
+ readonly 'component.scrollbarY': import("..").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
47
47
  readonly 'animation.scaleInX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
48
48
  readonly 'animation.scaleOutX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
49
49
  readonly 'animation.scaleInY': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
package/lib/lib/std.d.ts CHANGED
@@ -13,30 +13,30 @@ export declare function stdlib(): {
13
13
  readonly 'data.join': import("../runtime").DataComponent<import("../data").JoinOptions>;
14
14
  readonly 'data.kde': import("../runtime").DataComponent<import("../data").KDEOptions>;
15
15
  readonly 'data.log': import("../runtime").DataComponent<import("../data").LogDataOptions>;
16
- readonly 'transform.stackY': import("../runtime").TransformComponent<import("../transform").StackYOptions>;
17
- readonly 'transform.binX': import("../runtime").TransformComponent<import("../transform").BinXOptions>;
18
- readonly 'transform.bin': import("../runtime").TransformComponent<import("../transform").BinOptions>;
19
- readonly 'transform.dodgeX': import("../runtime").TransformComponent<import("../transform").DodgeXOptions>;
20
- readonly 'transform.jitter': import("../runtime").TransformComponent<import("../transform").JitterOptions>;
21
- readonly 'transform.jitterX': import("../runtime").TransformComponent<import("../transform").JitterXOptions>;
22
- readonly 'transform.symmetryY': import("../runtime").TransformComponent<import("../transform").SymmetryYOptions>;
23
- readonly 'transform.diffY': import("../runtime").TransformComponent<import("../transform").DiffYOptions>;
24
- readonly 'transform.stackEnter': import("../runtime").TransformComponent<import("../transform").StackEnterOptions>;
25
- readonly 'transform.normalizeY': import("../runtime").TransformComponent<import("../transform").NormalizeYOptions>;
26
- readonly 'transform.select': import("../runtime").TransformComponent<import("../transform").SelectOptions>;
27
- readonly 'transform.selectX': import("../runtime").TransformComponent<import("../transform").SelectXOptions>;
28
- readonly 'transform.selectY': import("../runtime").TransformComponent<import("../transform").SelectYOptions>;
29
- readonly 'transform.groupX': import("../runtime").TransformComponent<import("../transform").GroupXOptions>;
30
- readonly 'transform.groupY': import("../runtime").TransformComponent<import("../transform").GroupYOptions>;
31
- readonly 'transform.groupColor': import("../runtime").TransformComponent<import("../transform").GroupColorOptions>;
32
- readonly 'transform.group': import("../runtime").TransformComponent<import("../transform").GroupOptions>;
33
- readonly 'transform.sortX': import("../runtime").TransformComponent<import("../transform").SortXOptions>;
34
- readonly 'transform.sortY': import("../runtime").TransformComponent<import("../transform").SortYOptions>;
35
- readonly 'transform.sortColor': import("../runtime").TransformComponent<import("../transform").SortColorOptions>;
36
- readonly 'transform.flexX': import("../runtime").TransformComponent<import("../transform").FlexXOptions>;
37
- readonly 'transform.pack': import("../runtime").TransformComponent<import("../transform").PackOptions>;
38
- readonly 'transform.sample': import("../runtime").TransformComponent<import("../transform").SampleOptions>;
39
- readonly 'transform.filter': import("../runtime").TransformComponent<import("../transform").FilterOptions>;
16
+ readonly 'transform.stackY': import("../runtime").TransformComponent<import("..").StackYOptions>;
17
+ readonly 'transform.binX': import("../runtime").TransformComponent<import("..").BinXOptions>;
18
+ readonly 'transform.bin': import("../runtime").TransformComponent<import("..").BinOptions>;
19
+ readonly 'transform.dodgeX': import("../runtime").TransformComponent<import("..").DodgeXOptions>;
20
+ readonly 'transform.jitter': import("../runtime").TransformComponent<import("..").JitterOptions>;
21
+ readonly 'transform.jitterX': import("../runtime").TransformComponent<import("..").JitterXOptions>;
22
+ readonly 'transform.symmetryY': import("../runtime").TransformComponent<import("..").SymmetryYOptions>;
23
+ readonly 'transform.diffY': import("../runtime").TransformComponent<import("..").DiffYOptions>;
24
+ readonly 'transform.stackEnter': import("../runtime").TransformComponent<import("..").StackEnterOptions>;
25
+ readonly 'transform.normalizeY': import("../runtime").TransformComponent<import("..").NormalizeYOptions>;
26
+ readonly 'transform.select': import("../runtime").TransformComponent<import("..").SelectOptions>;
27
+ readonly 'transform.selectX': import("../runtime").TransformComponent<import("..").SelectXOptions>;
28
+ readonly 'transform.selectY': import("../runtime").TransformComponent<import("..").SelectYOptions>;
29
+ readonly 'transform.groupX': import("../runtime").TransformComponent<import("..").GroupXOptions>;
30
+ readonly 'transform.groupY': import("../runtime").TransformComponent<import("..").GroupYOptions>;
31
+ readonly 'transform.groupColor': import("../runtime").TransformComponent<import("..").GroupColorOptions>;
32
+ readonly 'transform.group': import("../runtime").TransformComponent<import("..").GroupOptions>;
33
+ readonly 'transform.sortX': import("../runtime").TransformComponent<import("..").SortXOptions>;
34
+ readonly 'transform.sortY': import("../runtime").TransformComponent<import("..").SortYOptions>;
35
+ readonly 'transform.sortColor': import("../runtime").TransformComponent<import("..").SortColorOptions>;
36
+ readonly 'transform.flexX': import("../runtime").TransformComponent<import("..").FlexXOptions>;
37
+ readonly 'transform.pack': import("../runtime").TransformComponent<import("..").PackOptions>;
38
+ readonly 'transform.sample': import("../runtime").TransformComponent<import("..").SampleOptions>;
39
+ readonly 'transform.filter': import("../runtime").TransformComponent<import("..").FilterOptions>;
40
40
  readonly 'coordinate.cartesian': import("../runtime").CoordinateComponent<import("../coordinate").CartesianOptions>;
41
41
  readonly 'coordinate.polar': import("../runtime").CoordinateComponent<import("../coordinate").PolarOptions>;
42
42
  readonly 'coordinate.transpose': import("../runtime").CoordinateComponent<import("../coordinate").TransposeOptions>;
@@ -49,28 +49,28 @@ export declare function stdlib(): {
49
49
  readonly 'encode.field': import("../runtime").EncodeComponent<import("../encode").FieldOptions>;
50
50
  readonly 'encode.transform': import("../runtime").EncodeComponent<import("../encode").TransformOptions>;
51
51
  readonly 'encode.column': import("../runtime").EncodeComponent<import("../encode").ColumnOptions>;
52
- readonly 'mark.interval': import("../runtime").MarkComponent<import("../mark").IntervalOptions>;
53
- readonly 'mark.rect': import("../runtime").MarkComponent<import("../mark").RectOptions>;
54
- readonly 'mark.line': import("../runtime").MarkComponent<import("../mark").LineOptions>;
55
- readonly 'mark.point': import("../runtime").MarkComponent<import("../mark").PointOptions>;
56
- readonly 'mark.text': import("../runtime").MarkComponent<import("../mark").TextOptions>;
57
- readonly 'mark.cell': import("../runtime").MarkComponent<import("../mark").CellOptions>;
58
- readonly 'mark.area': import("../runtime").MarkComponent<import("../mark").AreaOptions>;
59
- readonly 'mark.link': import("../runtime").MarkComponent<import("../mark").LinkOptions>;
60
- readonly 'mark.image': import("../runtime").MarkComponent<import("../mark").ImageOptions>;
61
- readonly 'mark.polygon': import("../runtime").MarkComponent<import("../mark").PolygonOptions>;
62
- readonly 'mark.box': import("../runtime").MarkComponent<import("../mark").BoxOptions>;
63
- readonly 'mark.vector': import("../runtime").MarkComponent<import("../mark").VectorOptions>;
64
- readonly 'mark.lineX': import("../runtime").MarkComponent<import("../mark").LineXOptions>;
65
- readonly 'mark.lineY': import("../runtime").MarkComponent<import("../mark").LineYOptions>;
66
- readonly 'mark.connector': import("../runtime").MarkComponent<import("../mark").ConnectorOptions>;
67
- readonly 'mark.range': import("../runtime").MarkComponent<import("../mark").RangeOptions>;
68
- readonly 'mark.rangeX': import("../runtime").MarkComponent<import("../mark").RangeXOptions>;
69
- readonly 'mark.rangeY': import("../runtime").MarkComponent<import("../mark").RangeYOptions>;
70
- readonly 'mark.path': import("../runtime").MarkComponent<import("../mark/path").PathOptions>;
71
- readonly 'mark.shape': import("../runtime").MarkComponent<import("../mark").ShapeOptions>;
72
- readonly 'mark.density': import("../runtime").MarkComponent<import("../mark").DensityOptions>;
73
- readonly 'mark.heatmap': import("../runtime").MarkComponent<import("../mark").HeatmapOptions>;
52
+ readonly 'mark.interval': import("..").MarkComponent<import("../mark").IntervalOptions>;
53
+ readonly 'mark.rect': import("..").MarkComponent<import("../mark").RectOptions>;
54
+ readonly 'mark.line': import("..").MarkComponent<import("../mark").LineOptions>;
55
+ readonly 'mark.point': import("..").MarkComponent<import("../mark").PointOptions>;
56
+ readonly 'mark.text': import("..").MarkComponent<import("../mark").TextOptions>;
57
+ readonly 'mark.cell': import("..").MarkComponent<import("../mark").CellOptions>;
58
+ readonly 'mark.area': import("..").MarkComponent<import("../mark").AreaOptions>;
59
+ readonly 'mark.link': import("..").MarkComponent<import("../mark").LinkOptions>;
60
+ readonly 'mark.image': import("..").MarkComponent<import("../mark").ImageOptions>;
61
+ readonly 'mark.polygon': import("..").MarkComponent<import("../mark").PolygonOptions>;
62
+ readonly 'mark.box': import("..").MarkComponent<import("../mark").BoxOptions>;
63
+ readonly 'mark.vector': import("..").MarkComponent<import("../mark").VectorOptions>;
64
+ readonly 'mark.lineX': import("..").MarkComponent<import("../mark").LineXOptions>;
65
+ readonly 'mark.lineY': import("..").MarkComponent<import("../mark").LineYOptions>;
66
+ readonly 'mark.connector': import("..").MarkComponent<import("../mark").ConnectorOptions>;
67
+ readonly 'mark.range': import("..").MarkComponent<import("../mark").RangeOptions>;
68
+ readonly 'mark.rangeX': import("..").MarkComponent<import("../mark").RangeXOptions>;
69
+ readonly 'mark.rangeY': import("..").MarkComponent<import("../mark").RangeYOptions>;
70
+ readonly 'mark.path': import("..").MarkComponent<import("../mark/path").PathOptions>;
71
+ readonly 'mark.shape': import("..").MarkComponent<import("../mark").ShapeOptions>;
72
+ readonly 'mark.density': import("..").MarkComponent<import("../mark").DensityOptions>;
73
+ readonly 'mark.heatmap': import("..").MarkComponent<import("../mark").HeatmapOptions>;
74
74
  readonly 'palette.category10': import("../runtime").PaletteComponent<import("../palette").Category10Options>;
75
75
  readonly 'palette.category20': import("../runtime").PaletteComponent<import("../palette").Category20Options>;
76
76
  readonly 'scale.linear': import("../runtime").ScaleComponent<import("../scale").LinearOptions>;
@@ -92,16 +92,16 @@ export declare function stdlib(): {
92
92
  readonly 'theme.academy': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
93
93
  readonly 'theme.light': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
94
94
  readonly 'theme.dark': import("../runtime").ThemeComponent<import("../runtime").G2Theme>;
95
- readonly 'component.axisX': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
96
- readonly 'component.axisY': import("../runtime").GuideComponentComponent<import("../component/axis").AxisOptions>;
97
- readonly 'component.legendCategory': import("../runtime").GuideComponentComponent<import("../component").LegendCategoryOptions>;
98
- readonly 'component.legendContinuous': import("../runtime").GuideComponentComponent<import("../component").LegendContinuousOptions>;
99
- readonly 'component.legends': import("../runtime").GuideComponentComponent<import("../component").LegendsOptions>;
100
- readonly 'component.title': import("../runtime").GuideComponentComponent<import("../runtime").G2Title>;
101
- readonly 'component.sliderX': import("../runtime").GuideComponentComponent<import("../component/slider").SliderOptions>;
102
- readonly 'component.sliderY': import("../runtime").GuideComponentComponent<import("../component/slider").SliderOptions>;
103
- readonly 'component.scrollbarX': import("../runtime").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
104
- readonly 'component.scrollbarY': import("../runtime").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
95
+ readonly 'component.axisX': import("..").GuideComponentComponent<import("..").AxisOptions>;
96
+ readonly 'component.axisY': import("..").GuideComponentComponent<import("..").AxisOptions>;
97
+ readonly 'component.legendCategory': import("..").GuideComponentComponent<import("../component").LegendCategoryOptions>;
98
+ readonly 'component.legendContinuous': import("..").GuideComponentComponent<import("../component").LegendContinuousOptions>;
99
+ readonly 'component.legends': import("..").GuideComponentComponent<import("../component").LegendsOptions>;
100
+ readonly 'component.title': import("..").GuideComponentComponent<import("../runtime").G2Title>;
101
+ readonly 'component.sliderX': import("..").GuideComponentComponent<import("../component/slider").SliderOptions>;
102
+ readonly 'component.sliderY': import("..").GuideComponentComponent<import("../component/slider").SliderOptions>;
103
+ readonly 'component.scrollbarX': import("..").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
104
+ readonly 'component.scrollbarY': import("..").GuideComponentComponent<import("../component/scrollbar").ScrollbarOptions>;
105
105
  readonly 'animation.scaleInX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
106
106
  readonly 'animation.scaleOutX': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
107
107
  readonly 'animation.scaleInY': import("../runtime").AnimationComponent<import("../animation/types").Animation>;
@@ -1,10 +1,7 @@
1
1
  export { Interval } from './interval';
2
2
  export { Rect } from './rect';
3
3
  export { Line } from './line';
4
- export { Line3D } from './line3D';
5
4
  export { Point } from './point';
6
- export { Point3D } from './point3D';
7
- export { Interval3D } from './interval3D';
8
5
  export { Text } from './text';
9
6
  export { Cell } from './cell';
10
7
  export { Area } from './area';
@@ -32,7 +29,6 @@ export { Gauge } from './gauge';
32
29
  export { Density } from './density';
33
30
  export { Heatmap } from './heatmap';
34
31
  export { Liquid } from './liquid';
35
- export { Auto } from './auto';
36
32
  export type { IntervalOptions } from './interval';
37
33
  export type { RectOptions } from './rect';
38
34
  export type { LineOptions } from './line';
package/lib/mark/index.js CHANGED
@@ -1,20 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Auto = exports.Liquid = exports.Heatmap = exports.Density = exports.Gauge = exports.WordCloud = exports.Tree = exports.ForceGraph = exports.Shape = exports.Boxplot = exports.Pack = exports.Treemap = exports.Path = exports.Sankey = exports.RangeY = exports.RangeX = exports.Range = exports.Connector = exports.LineX = exports.LineY = exports.Vector = exports.Box = exports.Polygon = exports.Image = exports.Link = exports.Area = exports.Cell = exports.Text = exports.Interval3D = exports.Point3D = exports.Point = exports.Line3D = exports.Line = exports.Rect = exports.Interval = void 0;
3
+ exports.Liquid = exports.Heatmap = exports.Density = exports.Gauge = exports.WordCloud = exports.Tree = exports.ForceGraph = exports.Shape = exports.Boxplot = exports.Pack = exports.Treemap = exports.Path = exports.Sankey = exports.RangeY = exports.RangeX = exports.Range = exports.Connector = exports.LineX = exports.LineY = exports.Vector = exports.Box = exports.Polygon = exports.Image = exports.Link = exports.Area = exports.Cell = exports.Text = exports.Point = exports.Line = exports.Rect = exports.Interval = void 0;
4
4
  var interval_1 = require("./interval");
5
5
  Object.defineProperty(exports, "Interval", { enumerable: true, get: function () { return interval_1.Interval; } });
6
6
  var rect_1 = require("./rect");
7
7
  Object.defineProperty(exports, "Rect", { enumerable: true, get: function () { return rect_1.Rect; } });
8
8
  var line_1 = require("./line");
9
9
  Object.defineProperty(exports, "Line", { enumerable: true, get: function () { return line_1.Line; } });
10
- var line3D_1 = require("./line3D");
11
- Object.defineProperty(exports, "Line3D", { enumerable: true, get: function () { return line3D_1.Line3D; } });
12
10
  var point_1 = require("./point");
13
11
  Object.defineProperty(exports, "Point", { enumerable: true, get: function () { return point_1.Point; } });
14
- var point3D_1 = require("./point3D");
15
- Object.defineProperty(exports, "Point3D", { enumerable: true, get: function () { return point3D_1.Point3D; } });
16
- var interval3D_1 = require("./interval3D");
17
- Object.defineProperty(exports, "Interval3D", { enumerable: true, get: function () { return interval3D_1.Interval3D; } });
18
12
  var text_1 = require("./text");
19
13
  Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return text_1.Text; } });
20
14
  var cell_1 = require("./cell");
@@ -69,6 +63,4 @@ var heatmap_1 = require("./heatmap");
69
63
  Object.defineProperty(exports, "Heatmap", { enumerable: true, get: function () { return heatmap_1.Heatmap; } });
70
64
  var liquid_1 = require("./liquid");
71
65
  Object.defineProperty(exports, "Liquid", { enumerable: true, get: function () { return liquid_1.Liquid; } });
72
- var auto_1 = require("./auto");
73
- Object.defineProperty(exports, "Auto", { enumerable: true, get: function () { return auto_1.Auto; } });
74
66
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"src/","sources":["mark/index.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AAA7B,oGAAA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AA;AACb,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,mCAAkC;AAAzB,gGAAA,MAAM,OAAA"}
@@ -14,6 +14,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.Liquid = void 0;
15
15
  const util_1 = require("@antv/util");
16
16
  const helper_1 = require("../utils/helper");
17
+ const number_1 = require("../utils/number");
17
18
  const shape_1 = require("../shape");
18
19
  const DEFAULT_OPTIONS = {
19
20
  axis: {
@@ -77,7 +78,7 @@ const Liquid = (options) => {
77
78
  background }),
78
79
  }, animate }, resOptions)),
79
80
  (0, util_1.deepMix)({}, DEFAULT_TEXT_OPTIONS, {
80
- style: Object.assign({ text: `${percent * 100} %` }, textStyle),
81
+ style: Object.assign({ text: `${(0, number_1.prettyNumber)(percent * 100)} %` }, textStyle),
81
82
  animate,
82
83
  }),
83
84
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"liquid.js","sourceRoot":"src/","sources":["mark/liquid.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAA+C;AAC/C,4CAA4C;AAG5C,oCAAuC;AAEvC,MAAM,eAAe,GAAG;IACtB,IAAI,EAAE;QACJ,CAAC,EAAE,KAAK;QACR,CAAC,EAAE,KAAK;KACT;IACD,MAAM,EAAE,KAAK;IACb,OAAO,EAAE,KAAK;IACd,MAAM,EAAE;QACN,CAAC,EAAE,MAAM;QACT,CAAC,EAAE,SAAS;KACb;IACD,KAAK,EAAE;QACL,CAAC,EAAE;YACD,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;SACf;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE,mBAAW;KACnB;IACD,OAAO,EAAE;QACP,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAA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AK,kBACH,IAAI,EAAE,GAAG,IAAA,qBAAY,EAAC,OAAO,GAAG,GAAG,CAAC,IAAI,IACrC,SAAS,CACb;YACD,OAAO;SACR,CAAC;KACH,CAAC;AACJ,CAAC,CAAC;AAvCW,QAAA,MAAM,UAuCjB;AAEF,cAAM,CAAC,KAAK,GAAG,EAAE,CAAC"}
@@ -18,6 +18,7 @@ const d3_format_1 = require("d3-format");
18
18
  const g_1 = require("@antv/g");
19
19
  const coordinate_1 = require("../coordinate");
20
20
  const array_1 = require("../utils/array");
21
+ const number_1 = require("../utils/number");
21
22
  const helper_1 = require("../utils/helper");
22
23
  const constant_1 = require("../component/constant");
23
24
  const coordinate_2 = require("./coordinate");
@@ -716,7 +717,7 @@ function ticksOf(scale, tickFilter) {
716
717
  }
717
718
  function labelsOf(scale, labelFormatter, tickFilter) {
718
719
  const T = ticksOf(scale, tickFilter);
719
- const ticks = T.map((d) => (typeof d === 'number' ? prettyNumber(d) : d));
720
+ const ticks = T.map((d) => (typeof d === 'number' ? (0, number_1.prettyNumber)(d) : d));
720
721
  const formatter = labelFormatter
721
722
  ? typeof labelFormatter === 'string'
722
723
  ? (0, d3_format_1.format)(labelFormatter)
@@ -778,7 +779,4 @@ function normalizeLabel(d) {
778
779
  return d;
779
780
  return new g_1.Text({ style: { text: `${d}` } });
780
781
  }
781
- function prettyNumber(n) {
782
- return Math.abs(n) < 1e-15 ? n : parseFloat(n.toFixed(15));
783
- }
784
782
  //# sourceMappingURL=component.js.map