@antv/g2 5.1.4 → 5.1.5

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 (172) hide show
  1. package/CHANGELOG.md +436 -0
  2. package/dist/g2.full.min.js +1 -0
  3. package/dist/g2.lite.min.js +1 -0
  4. package/dist/g2.min.js +1 -1
  5. package/esm/api/chart.d.ts +2 -163
  6. package/esm/api/library.d.ts +1 -162
  7. package/esm/api/library.js +1 -2
  8. package/esm/api/library.js.map +1 -1
  9. package/esm/api/runtime.d.ts +1 -1
  10. package/esm/api/runtime.js +6 -1
  11. package/esm/api/runtime.js.map +1 -1
  12. package/esm/api/utils.d.ts +1 -0
  13. package/esm/api/utils.js +25 -6
  14. package/esm/api/utils.js.map +1 -1
  15. package/esm/composition/repeatMatrix.js +4 -1
  16. package/esm/composition/repeatMatrix.js.map +1 -1
  17. package/esm/exports.d.ts +5 -0
  18. package/esm/exports.js +7 -0
  19. package/esm/exports.js.map +1 -0
  20. package/esm/index.d.ts +338 -7
  21. package/esm/index.js +9 -8
  22. package/esm/index.js.map +1 -1
  23. package/esm/interaction/fisheye.js +3 -1
  24. package/esm/interaction/fisheye.js.map +1 -1
  25. package/esm/interaction/legendFilter.d.ts +1 -1
  26. package/esm/interaction/legendFilter.js +72 -31
  27. package/esm/interaction/legendFilter.js.map +1 -1
  28. package/esm/interaction/tooltip.d.ts +2 -2
  29. package/esm/interaction/tooltip.js +37 -21
  30. package/esm/interaction/tooltip.js.map +1 -1
  31. package/esm/lib/auto.d.ts +3 -0
  32. package/esm/lib/auto.js +7 -0
  33. package/esm/lib/auto.js.map +1 -0
  34. package/esm/lib/core.d.ts +1 -0
  35. package/esm/lib/core.js +2 -1
  36. package/esm/lib/core.js.map +1 -1
  37. package/esm/lib/index.d.ts +1 -0
  38. package/esm/lib/index.js +1 -0
  39. package/esm/lib/index.js.map +1 -1
  40. package/esm/lib/std.d.ts +30 -29
  41. package/esm/mark/auto.d.ts +1 -0
  42. package/esm/mark/auto.js +26 -0
  43. package/esm/mark/auto.js.map +1 -0
  44. package/esm/mark/index.d.ts +1 -0
  45. package/esm/mark/index.js +1 -0
  46. package/esm/mark/index.js.map +1 -1
  47. package/esm/runtime/plot.js +11 -4
  48. package/esm/runtime/plot.js.map +1 -1
  49. package/esm/shape/connector/connector.js +1 -1
  50. package/esm/shape/connector/connector.js.map +1 -1
  51. package/esm/shape/index.d.ts +1 -1
  52. package/esm/spec/index.d.ts +3 -3
  53. package/esm/spec/mark.d.ts +4 -2
  54. package/esm/theme/academy.js +30 -358
  55. package/esm/theme/academy.js.map +1 -1
  56. package/esm/theme/classic.js +4 -433
  57. package/esm/theme/classic.js.map +1 -1
  58. package/esm/theme/classicDark.js +3 -404
  59. package/esm/theme/classicDark.js.map +1 -1
  60. package/esm/theme/create.d.ts +437 -0
  61. package/esm/theme/create.js +421 -0
  62. package/esm/theme/create.js.map +1 -0
  63. package/esm/theme/dark.d.ts +3 -0
  64. package/esm/theme/dark.js +76 -0
  65. package/esm/theme/dark.js.map +1 -0
  66. package/esm/theme/index.d.ts +1 -0
  67. package/esm/theme/index.js +1 -0
  68. package/esm/theme/index.js.map +1 -1
  69. package/esm/theme/light.js +52 -470
  70. package/esm/theme/light.js.map +1 -1
  71. package/esm/utils/event.d.ts +31 -32
  72. package/esm/utils/event.js +2 -12
  73. package/esm/utils/event.js.map +1 -1
  74. package/lib/api/chart.d.ts +2 -163
  75. package/lib/api/library.d.ts +1 -162
  76. package/lib/api/library.js +1 -2
  77. package/lib/api/library.js.map +1 -1
  78. package/lib/api/runtime.d.ts +1 -1
  79. package/lib/api/runtime.js +6 -1
  80. package/lib/api/runtime.js.map +1 -1
  81. package/lib/api/utils.d.ts +1 -0
  82. package/lib/api/utils.js +26 -7
  83. package/lib/api/utils.js.map +1 -1
  84. package/lib/composition/repeatMatrix.js +4 -1
  85. package/lib/composition/repeatMatrix.js.map +1 -1
  86. package/lib/exports.d.ts +5 -0
  87. package/lib/exports.js +39 -0
  88. package/lib/exports.js.map +1 -0
  89. package/lib/index.d.ts +338 -7
  90. package/lib/index.js +11 -28
  91. package/lib/index.js.map +1 -1
  92. package/lib/interaction/fisheye.js +3 -1
  93. package/lib/interaction/fisheye.js.map +1 -1
  94. package/lib/interaction/legendFilter.d.ts +1 -1
  95. package/lib/interaction/legendFilter.js +72 -31
  96. package/lib/interaction/legendFilter.js.map +1 -1
  97. package/lib/interaction/tooltip.d.ts +2 -2
  98. package/lib/interaction/tooltip.js +37 -21
  99. package/lib/interaction/tooltip.js.map +1 -1
  100. package/lib/lib/auto.d.ts +3 -0
  101. package/lib/lib/auto.js +11 -0
  102. package/lib/lib/auto.js.map +1 -0
  103. package/lib/lib/core.d.ts +1 -0
  104. package/lib/lib/core.js +1 -0
  105. package/lib/lib/core.js.map +1 -1
  106. package/lib/lib/index.d.ts +1 -0
  107. package/lib/lib/index.js +3 -1
  108. package/lib/lib/index.js.map +1 -1
  109. package/lib/lib/std.d.ts +30 -29
  110. package/lib/mark/auto.d.ts +1 -0
  111. package/lib/mark/auto.js +30 -0
  112. package/lib/mark/auto.js.map +1 -0
  113. package/lib/mark/index.d.ts +1 -0
  114. package/lib/mark/index.js +3 -1
  115. package/lib/mark/index.js.map +1 -1
  116. package/lib/runtime/plot.js +11 -4
  117. package/lib/runtime/plot.js.map +1 -1
  118. package/lib/shape/connector/connector.js +1 -1
  119. package/lib/shape/connector/connector.js.map +1 -1
  120. package/lib/shape/index.d.ts +1 -1
  121. package/lib/spec/index.d.ts +3 -3
  122. package/lib/spec/mark.d.ts +4 -2
  123. package/lib/theme/academy.js +30 -358
  124. package/lib/theme/academy.js.map +1 -1
  125. package/lib/theme/classic.js +4 -433
  126. package/lib/theme/classic.js.map +1 -1
  127. package/lib/theme/classicDark.js +3 -404
  128. package/lib/theme/classicDark.js.map +1 -1
  129. package/lib/theme/create.d.ts +437 -0
  130. package/lib/theme/create.js +425 -0
  131. package/lib/theme/create.js.map +1 -0
  132. package/lib/theme/dark.d.ts +3 -0
  133. package/lib/theme/dark.js +80 -0
  134. package/lib/theme/dark.js.map +1 -0
  135. package/lib/theme/index.d.ts +1 -0
  136. package/lib/theme/index.js +3 -1
  137. package/lib/theme/index.js.map +1 -1
  138. package/lib/theme/light.js +52 -470
  139. package/lib/theme/light.js.map +1 -1
  140. package/lib/utils/event.d.ts +31 -32
  141. package/lib/utils/event.js +2 -12
  142. package/lib/utils/event.js.map +1 -1
  143. package/package.json +23 -8
  144. package/src/api/chart.ts +1 -1
  145. package/src/api/library.ts +1 -2
  146. package/src/api/runtime.ts +7 -2
  147. package/src/api/utils.ts +22 -6
  148. package/src/composition/repeatMatrix.ts +11 -2
  149. package/src/exports.ts +32 -0
  150. package/src/index.ts +13 -41
  151. package/src/interaction/fisheye.ts +3 -1
  152. package/src/interaction/legendFilter.ts +81 -48
  153. package/src/interaction/tooltip.ts +56 -33
  154. package/src/lib/auto.ts +7 -0
  155. package/src/lib/core.ts +2 -1
  156. package/src/lib/index.ts +1 -0
  157. package/src/mark/auto.ts +22 -0
  158. package/src/mark/index.ts +1 -0
  159. package/src/runtime/plot.ts +34 -7
  160. package/src/shape/connector/connector.ts +1 -1
  161. package/src/shape/index.ts +1 -1
  162. package/src/spec/index.ts +3 -3
  163. package/src/spec/mark.ts +4 -0
  164. package/src/theme/academy.ts +74 -399
  165. package/src/theme/classic.ts +11 -438
  166. package/src/theme/classicDark.ts +10 -409
  167. package/src/theme/create.ts +439 -0
  168. package/src/theme/dark.ts +85 -0
  169. package/src/theme/index.ts +1 -0
  170. package/src/theme/light.ts +53 -473
  171. package/src/utils/event.ts +32 -45
  172. package/dist/g2-lite.min.js +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"repeatMatrix.js","sourceRoot":"src/","sources":["composition/repeatMatrix.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C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,CAAC,WAAW,CAAC;aACjB,IAAI,CAAC,OAAO,CAAC;aACb,IAAI,CAAC,YAAY,CAAC;aAClB,IAAI,CAAC,QAAQ,CAAC;aACd,IAAI,CAAC,QAAQ,CAAC;aACd,KAAK,EAAE,CAAC;QACX,OAAO,CAAC,UAAU,CAAC,CAAC;IACtB,CAAC,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { render, renderToMountedElement, MAIN_LAYER_CLASS_NAME, LABEL_LAYER_CLASS_NAME, ELEMENT_CLASS_NAME, VIEW_CLASS_NAME, PLOT_CLASS_NAME, COMPONENT_CLASS_NAME, LABEL_CLASS_NAME, AREA_CLASS_NAME, MASK_CLASS_NAME, } from './runtime';
2
+ export { type MarkNode, type CompositionNode, register, Runtime, extend, type ChartOptions, } from './api';
3
+ export { ChartEvent } from './utils/event';
4
+ export type { G2Context } from './runtime';
5
+ export * from './spec';
package/esm/exports.js ADDED
@@ -0,0 +1,7 @@
1
+ import { runtime } from '@antv/g';
2
+ runtime.enableCSSParsing = false;
3
+ export { render, renderToMountedElement, MAIN_LAYER_CLASS_NAME, LABEL_LAYER_CLASS_NAME, ELEMENT_CLASS_NAME, VIEW_CLASS_NAME, PLOT_CLASS_NAME, COMPONENT_CLASS_NAME, LABEL_CLASS_NAME, AREA_CLASS_NAME, MASK_CLASS_NAME, } from './runtime';
4
+ export { register, Runtime, extend, } from './api';
5
+ export { ChartEvent } from './utils/event';
6
+ export * from './spec';
7
+ //# sourceMappingURL=exports.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exports.js","sourceRoot":"src/","sources":["exports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,OAAO,CAAC,gBAAgB,GAAG,KAAK,CAAC;AAEjC,OAAO,EACL,MAAM,EACN,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,EACf,eAAe,GAChB,MAAM,WAAW,CAAC;AAEnB,OAAO,EAGL,QAAQ,EACR,OAAO,EACP,MAAM,GAEP,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAI3C,cAAc,QAAQ,CAAC"}
package/esm/index.d.ts CHANGED
@@ -1,7 +1,338 @@
1
- export { render, renderToMountedElement, MAIN_LAYER_CLASS_NAME, LABEL_LAYER_CLASS_NAME, ELEMENT_CLASS_NAME, VIEW_CLASS_NAME, PLOT_CLASS_NAME, COMPONENT_CLASS_NAME, LABEL_CLASS_NAME, AREA_CLASS_NAME, MASK_CLASS_NAME, } from './runtime';
2
- export { corelib, stdlib, litelib, graphlib, plotlib, geolib, threedlib, } from './lib';
3
- export * from './mark';
4
- export { Chart, type MarkNode, type CompositionNode, register, Runtime, extend, type ChartOptions, } from './api';
5
- export { ChartEvent } from './utils/event';
6
- export type { G2Context } from './runtime';
7
- export * from './spec';
1
+ import { corelib, plotlib, graphlib, geolib, stdlib, threedlib } from './lib';
2
+ import { API, CompositionAPI } from './api/extend';
3
+ import { G2Spec } from './spec';
4
+ export { corelib, plotlib, graphlib, geolib, stdlib, threedlib };
5
+ export * from './exports';
6
+ /**
7
+ * G2 standard library initial all the libs except 3D and auto.
8
+ */
9
+ declare const library: {
10
+ 'data.fetch': import("./runtime").DataComponent<import("./data").FetchOptions>;
11
+ 'data.inline': import("./runtime").DataComponent<import("./data").InlineOptions>;
12
+ 'data.sortBy': import("./runtime").DataComponent<import("./data").SortByOptions>;
13
+ 'data.sort': import("./runtime").DataComponent<import("./data").SortOptions>;
14
+ 'data.filter': import("./runtime").DataComponent<import("./data").FilterDataOptions>;
15
+ 'data.pick': import("./runtime").DataComponent<import("./data").PickOptions>;
16
+ 'data.rename': import("./runtime").DataComponent<import("./data").RenameOptions>;
17
+ 'data.fold': import("./runtime").DataComponent<import("./data").FoldOptions>;
18
+ 'data.slice': import("./runtime").DataComponent<import("./data").SliceOptions>;
19
+ 'data.custom': import("./runtime").DataComponent<import("./data").CustomOptions>;
20
+ 'data.map': import("./runtime").DataComponent<import("./data").MapOptions>;
21
+ 'data.join': import("./runtime").DataComponent<import("./data").JoinOptions>;
22
+ 'data.kde': import("./runtime").DataComponent<import("./data").KDEOptions>;
23
+ 'data.log': import("./runtime").DataComponent<import("./data").LogDataOptions>;
24
+ 'transform.stackY': import("./runtime").TransformComponent<import("./transform").StackYOptions>;
25
+ 'transform.binX': import("./runtime").TransformComponent<import("./transform").BinXOptions>;
26
+ 'transform.bin': import("./runtime").TransformComponent<import("./transform").BinOptions>;
27
+ 'transform.dodgeX': import("./runtime").TransformComponent<import("./transform").DodgeXOptions>;
28
+ 'transform.jitter': import("./runtime").TransformComponent<import("./transform").JitterOptions>;
29
+ 'transform.jitterX': import("./runtime").TransformComponent<import("./transform").JitterXOptions>;
30
+ 'transform.symmetryY': import("./runtime").TransformComponent<import("./transform").SymmetryYOptions>;
31
+ 'transform.diffY': import("./runtime").TransformComponent<import("./transform").DiffYOptions>;
32
+ 'transform.stackEnter': import("./runtime").TransformComponent<import("./transform").StackEnterOptions>;
33
+ 'transform.normalizeY': import("./runtime").TransformComponent<import("./transform").NormalizeYOptions>;
34
+ 'transform.select': import("./runtime").TransformComponent<import("./transform").SelectOptions>;
35
+ 'transform.selectX': import("./runtime").TransformComponent<import("./transform").SelectXOptions>;
36
+ 'transform.selectY': import("./runtime").TransformComponent<import("./transform").SelectYOptions>;
37
+ 'transform.groupX': import("./runtime").TransformComponent<import("./transform").GroupXOptions>;
38
+ 'transform.groupY': import("./runtime").TransformComponent<import("./transform").GroupYOptions>;
39
+ 'transform.groupColor': import("./runtime").TransformComponent<import("./transform").GroupColorOptions>;
40
+ 'transform.group': import("./runtime").TransformComponent<import("./transform").GroupOptions>;
41
+ 'transform.sortX': import("./runtime").TransformComponent<import("./transform").SortXOptions>;
42
+ 'transform.sortY': import("./runtime").TransformComponent<import("./transform").SortYOptions>;
43
+ 'transform.sortColor': import("./runtime").TransformComponent<import("./transform").SortColorOptions>;
44
+ 'transform.flexX': import("./runtime").TransformComponent<import("./transform").FlexXOptions>;
45
+ 'transform.pack': import("./runtime").TransformComponent<import("./transform").PackOptions>;
46
+ 'transform.sample': import("./runtime").TransformComponent<import("./transform").SampleOptions>;
47
+ 'transform.filter': import("./runtime").TransformComponent<import("./transform").FilterOptions>;
48
+ 'coordinate.cartesian': import("./runtime").CoordinateComponent<import("./coordinate").CartesianOptions>;
49
+ 'coordinate.polar': import("./runtime").CoordinateComponent<import("./coordinate").PolarOptions>;
50
+ 'coordinate.transpose': import("./runtime").CoordinateComponent<import("./coordinate").TransposeOptions>;
51
+ 'coordinate.theta': import("./runtime").CoordinateComponent<import("./spec").ThetaCoordinate>;
52
+ 'coordinate.parallel': import("./runtime").CoordinateComponent<import("./coordinate").ParallelOptions>;
53
+ 'coordinate.fisheye': import("./runtime").CoordinateComponent<import("./spec").FisheyeCoordinate>;
54
+ 'coordinate.radial': import("./runtime").CoordinateComponent<import("./coordinate").RadialOptions>;
55
+ 'coordinate.radar': import("./runtime").CoordinateComponent<import("./spec").RadarCoordinate>;
56
+ 'encode.constant': import("./runtime").EncodeComponent<import("./encode").ConstantOptions>;
57
+ 'encode.field': import("./runtime").EncodeComponent<import("./encode").FieldOptions>;
58
+ 'encode.transform': import("./runtime").EncodeComponent<import("./encode").TransformOptions>;
59
+ 'encode.column': import("./runtime").EncodeComponent<import("./encode").ColumnOptions>;
60
+ 'mark.interval': import("./runtime").MarkComponent<import("./mark").IntervalOptions>;
61
+ 'mark.rect': import("./runtime").MarkComponent<import("./mark").RectOptions>;
62
+ 'mark.line': import("./runtime").MarkComponent<import("./mark").LineOptions>;
63
+ 'mark.point': import("./runtime").MarkComponent<import("./mark").PointOptions>;
64
+ 'mark.text': import("./runtime").MarkComponent<import("./mark").TextOptions>;
65
+ 'mark.cell': import("./runtime").MarkComponent<import("./mark").CellOptions>;
66
+ 'mark.area': import("./runtime").MarkComponent<import("./mark").AreaOptions>;
67
+ 'mark.link': import("./runtime").MarkComponent<import("./mark").LinkOptions>;
68
+ 'mark.image': import("./runtime").MarkComponent<import("./mark").ImageOptions>;
69
+ 'mark.polygon': import("./runtime").MarkComponent<import("./mark").PolygonOptions>;
70
+ 'mark.box': import("./runtime").MarkComponent<import("./mark").BoxOptions>;
71
+ 'mark.vector': import("./runtime").MarkComponent<import("./mark").VectorOptions>;
72
+ 'mark.lineX': import("./runtime").MarkComponent<import("./mark").LineXOptions>;
73
+ 'mark.lineY': import("./runtime").MarkComponent<import("./mark").LineYOptions>;
74
+ 'mark.connector': import("./runtime").MarkComponent<import("./mark").ConnectorOptions>;
75
+ 'mark.range': import("./runtime").MarkComponent<import("./mark").RangeOptions>;
76
+ 'mark.rangeX': import("./runtime").MarkComponent<import("./mark").RangeXOptions>;
77
+ 'mark.rangeY': import("./runtime").MarkComponent<import("./mark").RangeYOptions>;
78
+ 'mark.path': import("./runtime").MarkComponent<import("./mark/path").PathOptions>;
79
+ 'mark.shape': import("./runtime").MarkComponent<import("./mark").ShapeOptions>;
80
+ 'mark.density': import("./runtime").MarkComponent<import("./mark").DensityOptions>;
81
+ 'mark.heatmap': import("./runtime").MarkComponent<import("./mark").HeatmapOptions>;
82
+ 'palette.category10': import("./runtime").PaletteComponent<import("./palette").Category10Options>;
83
+ 'palette.category20': import("./runtime").PaletteComponent<import("./palette").Category20Options>;
84
+ 'scale.linear': import("./runtime").ScaleComponent<import("./scale").LinearOptions>;
85
+ 'scale.ordinal': import("./runtime").ScaleComponent<import("./scale").OrdinalOptions>;
86
+ 'scale.band': import("./runtime").ScaleComponent<import("./scale").BandOptions>;
87
+ 'scale.identity': import("./runtime").ScaleComponent<import("./scale").IdentityOptions>;
88
+ 'scale.point': import("./runtime").ScaleComponent<import("./scale").PointOptions>;
89
+ 'scale.time': import("./runtime").ScaleComponent<import("./scale").TimeOptions>;
90
+ 'scale.log': import("./runtime").ScaleComponent<import("./scale").LogOptions>;
91
+ 'scale.pow': import("./runtime").ScaleComponent<import("./scale").PowOptions>;
92
+ 'scale.sqrt': import("./runtime").ScaleComponent<import("./scale").SqrtOptions>;
93
+ 'scale.threshold': import("./runtime").ScaleComponent<import("./scale").ThresholdOptions>;
94
+ 'scale.quantile': import("./runtime").ScaleComponent<import("./scale").QuantileOptions>;
95
+ 'scale.quantize': import("./runtime").ScaleComponent<import("./scale").QuantizeOptions>;
96
+ 'scale.sequential': import("./runtime").ScaleComponent<import("./scale").SequentialOptions>;
97
+ 'scale.constant': import("./runtime").ScaleComponent<import("./scale").ConstantOptions>;
98
+ 'theme.classic': import("./runtime").ThemeComponent<import("./runtime").G2Theme>;
99
+ 'theme.classicDark': import("./runtime").ThemeComponent<import("./runtime").G2Theme>;
100
+ 'theme.academy': import("./runtime").ThemeComponent<import("./runtime").G2Theme>;
101
+ 'theme.light': import("./runtime").ThemeComponent<import("./runtime").G2Theme>;
102
+ 'theme.dark': import("./runtime").ThemeComponent<import("./runtime").G2Theme>;
103
+ 'component.axisX': import("./runtime").GuideComponentComponent<import("./component/axis").AxisOptions>;
104
+ 'component.axisY': import("./runtime").GuideComponentComponent<import("./component/axis").AxisOptions>;
105
+ 'component.legendCategory': import("./runtime").GuideComponentComponent<import("./component").LegendCategoryOptions>;
106
+ 'component.legendContinuous': import("./runtime").GuideComponentComponent<import("./component").LegendContinuousOptions>;
107
+ 'component.legends': import("./runtime").GuideComponentComponent<import("./component").LegendsOptions>;
108
+ 'component.title': import("./runtime").GuideComponentComponent<import("./runtime").G2Title>;
109
+ 'component.sliderX': import("./runtime").GuideComponentComponent<import("./component/slider").SliderOptions>;
110
+ 'component.sliderY': import("./runtime").GuideComponentComponent<import("./component/slider").SliderOptions>;
111
+ 'component.scrollbarX': import("./runtime").GuideComponentComponent<import("./component/scrollbar").ScrollbarOptions>;
112
+ 'component.scrollbarY': import("./runtime").GuideComponentComponent<import("./component/scrollbar").ScrollbarOptions>;
113
+ 'animation.scaleInX': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
114
+ 'animation.scaleOutX': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
115
+ 'animation.scaleInY': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
116
+ 'animation.scaleOutY': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
117
+ 'animation.waveIn': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
118
+ 'animation.fadeIn': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
119
+ 'animation.fadeOut': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
120
+ 'animation.zoomIn': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
121
+ 'animation.zoomOut': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
122
+ 'animation.pathIn': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
123
+ 'animation.morphing': import("./runtime").AnimationComponent<import("./animation").MorphingOptions>;
124
+ 'animation.growInX': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
125
+ 'animation.growInY': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
126
+ 'interaction.elementHighlight': typeof import("./interaction").ElementHighlight;
127
+ 'interaction.elementHighlightByX': typeof import("./interaction").ElementHighlightByX;
128
+ 'interaction.elementHighlightByColor': typeof import("./interaction").ElementHighlightByColor;
129
+ 'interaction.elementSelect': typeof import("./interaction").ElementSelect;
130
+ 'interaction.elementSelectByX': typeof import("./interaction").ElementSelectByX;
131
+ 'interaction.elementSelectByColor': typeof import("./interaction").ElementSelectByColor;
132
+ 'interaction.fisheye': typeof import("./interaction").Fisheye;
133
+ 'interaction.chartIndex': typeof import("./interaction").ChartIndex;
134
+ 'interaction.tooltip': typeof import("./interaction").Tooltip;
135
+ 'interaction.legendFilter': typeof import("./interaction").LegendFilter;
136
+ 'interaction.legendHighlight': typeof import("./interaction").LegendHighlight;
137
+ 'interaction.brushHighlight': typeof import("./interaction").BrushHighlight;
138
+ 'interaction.brushXHighlight': typeof import("./interaction").BrushXHighlight;
139
+ 'interaction.brushYHighlight': typeof import("./interaction").BrushYHighlight;
140
+ 'interaction.brushAxisHighlight': typeof import("./interaction").BrushAxisHighlight;
141
+ 'interaction.brushFilter': typeof import("./interaction").BrushFilter;
142
+ 'interaction.brushXFilter': typeof import("./interaction").BrushXFilter;
143
+ 'interaction.brushYFilter': typeof import("./interaction").BrushYFilter;
144
+ 'interaction.sliderFilter': typeof import("./interaction").SliderFilter;
145
+ 'interaction.scrollbarFilter': typeof import("./interaction").ScrollbarFilter;
146
+ 'interaction.poptip': typeof import("./interaction").Poptip;
147
+ 'composition.spaceLayer': import("./runtime").CompositionComponent<import("./composition").SpaceLayerOptions>;
148
+ 'composition.spaceFlex': import("./runtime").CompositionComponent<import("./composition").SpaceFlexOptions>;
149
+ 'composition.facetRect': import("./runtime").CompositionComponent<import("./composition").FacetRectOptions>;
150
+ 'composition.repeatMatrix': import("./runtime").CompositionComponent<import("./spec").RepeatMatrixComposition>;
151
+ 'composition.facetCircle': import("./runtime").CompositionComponent<import("./spec").FacetCircleComposition>;
152
+ 'composition.timingKeyframe': import("./runtime").CompositionComponent<import("./composition").TimingKeyframeOptions>;
153
+ 'labelTransform.overlapHide': import("./runtime").LabelTransformComponent<import("./label-transform").OverlapHideOptions>;
154
+ 'labelTransform.overlapDodgeY': import("./runtime").LabelTransformComponent<import("./label-transform").OverlapDodgeYOptions>;
155
+ 'labelTransform.overflowHide': import("./runtime").LabelTransformComponent<import("./label-transform").OverflowHideOptions>;
156
+ 'labelTransform.contrastReverse': import("./runtime").LabelTransformComponent<import("./label-transform").ContrastReverseOptions>;
157
+ 'data.venn': import("./runtime").DataComponent<import("./data").VennOptions>;
158
+ 'mark.boxplot': import("./runtime").CompositeMarkComponent<import("./mark/boxplot").BoxPlotOptions>;
159
+ 'mark.gauge': import("./runtime").CompositeMarkComponent<import("./mark").GaugeOptions>;
160
+ 'mark.wordCloud': import("./runtime").CompositeMarkComponent<import("./mark").WordCloudOptions>;
161
+ 'mark.liquid': import("./runtime").CompositeMarkComponent<import("./mark").LiquidOptions>;
162
+ 'data.arc': import("./runtime").DataComponent<import("./data").ArcOptions>;
163
+ 'data.cluster': import("./runtime").DataComponent<import("./data").ClusterOptions>;
164
+ 'mark.forceGraph': import("./runtime").CompositeMarkComponent<import("./mark").ForceGraphOptions>;
165
+ 'mark.tree': import("./runtime").CompositeMarkComponent<import("./mark").TreeOptions>;
166
+ 'mark.pack': import("./runtime").CompositionComponent<import("./mark").PackOptions>;
167
+ 'mark.sankey': import("./runtime").CompositeMarkComponent<import("./mark").SankeyOptions>;
168
+ 'mark.treemap': import("./runtime").CompositionComponent<import("./mark").TreemapOptions>;
169
+ 'composition.geoView': import("./runtime").CompositionComponent<import("./composition/geoView").GeoViewOptions>;
170
+ 'composition.geoPath': import("./runtime").CompositionComponent<import("./composition/geoPath").GeoPathOptions>;
171
+ };
172
+ export declare const Chart: new (options?: import("./api/runtime").RuntimeOptions) => API<G2Spec, {
173
+ 'data.fetch': import("./runtime").DataComponent<import("./data").FetchOptions>;
174
+ 'data.inline': import("./runtime").DataComponent<import("./data").InlineOptions>;
175
+ 'data.sortBy': import("./runtime").DataComponent<import("./data").SortByOptions>;
176
+ 'data.sort': import("./runtime").DataComponent<import("./data").SortOptions>;
177
+ 'data.filter': import("./runtime").DataComponent<import("./data").FilterDataOptions>;
178
+ 'data.pick': import("./runtime").DataComponent<import("./data").PickOptions>;
179
+ 'data.rename': import("./runtime").DataComponent<import("./data").RenameOptions>;
180
+ 'data.fold': import("./runtime").DataComponent<import("./data").FoldOptions>;
181
+ 'data.slice': import("./runtime").DataComponent<import("./data").SliceOptions>;
182
+ 'data.custom': import("./runtime").DataComponent<import("./data").CustomOptions>;
183
+ 'data.map': import("./runtime").DataComponent<import("./data").MapOptions>;
184
+ 'data.join': import("./runtime").DataComponent<import("./data").JoinOptions>;
185
+ 'data.kde': import("./runtime").DataComponent<import("./data").KDEOptions>;
186
+ 'data.log': import("./runtime").DataComponent<import("./data").LogDataOptions>;
187
+ 'transform.stackY': import("./runtime").TransformComponent<import("./transform").StackYOptions>;
188
+ 'transform.binX': import("./runtime").TransformComponent<import("./transform").BinXOptions>;
189
+ 'transform.bin': import("./runtime").TransformComponent<import("./transform").BinOptions>;
190
+ 'transform.dodgeX': import("./runtime").TransformComponent<import("./transform").DodgeXOptions>;
191
+ 'transform.jitter': import("./runtime").TransformComponent<import("./transform").JitterOptions>;
192
+ 'transform.jitterX': import("./runtime").TransformComponent<import("./transform").JitterXOptions>;
193
+ 'transform.symmetryY': import("./runtime").TransformComponent<import("./transform").SymmetryYOptions>;
194
+ 'transform.diffY': import("./runtime").TransformComponent<import("./transform").DiffYOptions>;
195
+ 'transform.stackEnter': import("./runtime").TransformComponent<import("./transform").StackEnterOptions>;
196
+ 'transform.normalizeY': import("./runtime").TransformComponent<import("./transform").NormalizeYOptions>;
197
+ 'transform.select': import("./runtime").TransformComponent<import("./transform").SelectOptions>;
198
+ 'transform.selectX': import("./runtime").TransformComponent<import("./transform").SelectXOptions>;
199
+ 'transform.selectY': import("./runtime").TransformComponent<import("./transform").SelectYOptions>;
200
+ 'transform.groupX': import("./runtime").TransformComponent<import("./transform").GroupXOptions>;
201
+ 'transform.groupY': import("./runtime").TransformComponent<import("./transform").GroupYOptions>;
202
+ 'transform.groupColor': import("./runtime").TransformComponent<import("./transform").GroupColorOptions>;
203
+ 'transform.group': import("./runtime").TransformComponent<import("./transform").GroupOptions>;
204
+ 'transform.sortX': import("./runtime").TransformComponent<import("./transform").SortXOptions>;
205
+ 'transform.sortY': import("./runtime").TransformComponent<import("./transform").SortYOptions>;
206
+ 'transform.sortColor': import("./runtime").TransformComponent<import("./transform").SortColorOptions>;
207
+ 'transform.flexX': import("./runtime").TransformComponent<import("./transform").FlexXOptions>;
208
+ 'transform.pack': import("./runtime").TransformComponent<import("./transform").PackOptions>;
209
+ 'transform.sample': import("./runtime").TransformComponent<import("./transform").SampleOptions>;
210
+ 'transform.filter': import("./runtime").TransformComponent<import("./transform").FilterOptions>;
211
+ 'coordinate.cartesian': import("./runtime").CoordinateComponent<import("./coordinate").CartesianOptions>;
212
+ 'coordinate.polar': import("./runtime").CoordinateComponent<import("./coordinate").PolarOptions>;
213
+ 'coordinate.transpose': import("./runtime").CoordinateComponent<import("./coordinate").TransposeOptions>;
214
+ 'coordinate.theta': import("./runtime").CoordinateComponent<import("./spec").ThetaCoordinate>;
215
+ 'coordinate.parallel': import("./runtime").CoordinateComponent<import("./coordinate").ParallelOptions>;
216
+ 'coordinate.fisheye': import("./runtime").CoordinateComponent<import("./spec").FisheyeCoordinate>;
217
+ 'coordinate.radial': import("./runtime").CoordinateComponent<import("./coordinate").RadialOptions>;
218
+ 'coordinate.radar': import("./runtime").CoordinateComponent<import("./spec").RadarCoordinate>;
219
+ 'encode.constant': import("./runtime").EncodeComponent<import("./encode").ConstantOptions>;
220
+ 'encode.field': import("./runtime").EncodeComponent<import("./encode").FieldOptions>;
221
+ 'encode.transform': import("./runtime").EncodeComponent<import("./encode").TransformOptions>;
222
+ 'encode.column': import("./runtime").EncodeComponent<import("./encode").ColumnOptions>;
223
+ 'mark.interval': import("./runtime").MarkComponent<import("./mark").IntervalOptions>;
224
+ 'mark.rect': import("./runtime").MarkComponent<import("./mark").RectOptions>;
225
+ 'mark.line': import("./runtime").MarkComponent<import("./mark").LineOptions>;
226
+ 'mark.point': import("./runtime").MarkComponent<import("./mark").PointOptions>;
227
+ 'mark.text': import("./runtime").MarkComponent<import("./mark").TextOptions>;
228
+ 'mark.cell': import("./runtime").MarkComponent<import("./mark").CellOptions>;
229
+ 'mark.area': import("./runtime").MarkComponent<import("./mark").AreaOptions>;
230
+ 'mark.link': import("./runtime").MarkComponent<import("./mark").LinkOptions>;
231
+ 'mark.image': import("./runtime").MarkComponent<import("./mark").ImageOptions>;
232
+ 'mark.polygon': import("./runtime").MarkComponent<import("./mark").PolygonOptions>;
233
+ 'mark.box': import("./runtime").MarkComponent<import("./mark").BoxOptions>;
234
+ 'mark.vector': import("./runtime").MarkComponent<import("./mark").VectorOptions>;
235
+ 'mark.lineX': import("./runtime").MarkComponent<import("./mark").LineXOptions>;
236
+ 'mark.lineY': import("./runtime").MarkComponent<import("./mark").LineYOptions>;
237
+ 'mark.connector': import("./runtime").MarkComponent<import("./mark").ConnectorOptions>;
238
+ 'mark.range': import("./runtime").MarkComponent<import("./mark").RangeOptions>;
239
+ 'mark.rangeX': import("./runtime").MarkComponent<import("./mark").RangeXOptions>;
240
+ 'mark.rangeY': import("./runtime").MarkComponent<import("./mark").RangeYOptions>;
241
+ 'mark.path': import("./runtime").MarkComponent<import("./mark/path").PathOptions>;
242
+ 'mark.shape': import("./runtime").MarkComponent<import("./mark").ShapeOptions>;
243
+ 'mark.density': import("./runtime").MarkComponent<import("./mark").DensityOptions>;
244
+ 'mark.heatmap': import("./runtime").MarkComponent<import("./mark").HeatmapOptions>;
245
+ 'palette.category10': import("./runtime").PaletteComponent<import("./palette").Category10Options>;
246
+ 'palette.category20': import("./runtime").PaletteComponent<import("./palette").Category20Options>;
247
+ 'scale.linear': import("./runtime").ScaleComponent<import("./scale").LinearOptions>;
248
+ 'scale.ordinal': import("./runtime").ScaleComponent<import("./scale").OrdinalOptions>;
249
+ 'scale.band': import("./runtime").ScaleComponent<import("./scale").BandOptions>;
250
+ 'scale.identity': import("./runtime").ScaleComponent<import("./scale").IdentityOptions>;
251
+ 'scale.point': import("./runtime").ScaleComponent<import("./scale").PointOptions>;
252
+ 'scale.time': import("./runtime").ScaleComponent<import("./scale").TimeOptions>;
253
+ 'scale.log': import("./runtime").ScaleComponent<import("./scale").LogOptions>;
254
+ 'scale.pow': import("./runtime").ScaleComponent<import("./scale").PowOptions>;
255
+ 'scale.sqrt': import("./runtime").ScaleComponent<import("./scale").SqrtOptions>;
256
+ 'scale.threshold': import("./runtime").ScaleComponent<import("./scale").ThresholdOptions>;
257
+ 'scale.quantile': import("./runtime").ScaleComponent<import("./scale").QuantileOptions>;
258
+ 'scale.quantize': import("./runtime").ScaleComponent<import("./scale").QuantizeOptions>;
259
+ 'scale.sequential': import("./runtime").ScaleComponent<import("./scale").SequentialOptions>;
260
+ 'scale.constant': import("./runtime").ScaleComponent<import("./scale").ConstantOptions>;
261
+ 'theme.classic': import("./runtime").ThemeComponent<import("./runtime").G2Theme>;
262
+ 'theme.classicDark': import("./runtime").ThemeComponent<import("./runtime").G2Theme>;
263
+ 'theme.academy': import("./runtime").ThemeComponent<import("./runtime").G2Theme>;
264
+ 'theme.light': import("./runtime").ThemeComponent<import("./runtime").G2Theme>;
265
+ 'theme.dark': import("./runtime").ThemeComponent<import("./runtime").G2Theme>;
266
+ 'component.axisX': import("./runtime").GuideComponentComponent<import("./component/axis").AxisOptions>;
267
+ 'component.axisY': import("./runtime").GuideComponentComponent<import("./component/axis").AxisOptions>;
268
+ 'component.legendCategory': import("./runtime").GuideComponentComponent<import("./component").LegendCategoryOptions>;
269
+ 'component.legendContinuous': import("./runtime").GuideComponentComponent<import("./component").LegendContinuousOptions>;
270
+ 'component.legends': import("./runtime").GuideComponentComponent<import("./component").LegendsOptions>;
271
+ 'component.title': import("./runtime").GuideComponentComponent<import("./runtime").G2Title>;
272
+ 'component.sliderX': import("./runtime").GuideComponentComponent<import("./component/slider").SliderOptions>;
273
+ 'component.sliderY': import("./runtime").GuideComponentComponent<import("./component/slider").SliderOptions>;
274
+ 'component.scrollbarX': import("./runtime").GuideComponentComponent<import("./component/scrollbar").ScrollbarOptions>;
275
+ 'component.scrollbarY': import("./runtime").GuideComponentComponent<import("./component/scrollbar").ScrollbarOptions>;
276
+ 'animation.scaleInX': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
277
+ 'animation.scaleOutX': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
278
+ 'animation.scaleInY': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
279
+ 'animation.scaleOutY': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
280
+ 'animation.waveIn': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
281
+ 'animation.fadeIn': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
282
+ 'animation.fadeOut': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
283
+ 'animation.zoomIn': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
284
+ 'animation.zoomOut': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
285
+ 'animation.pathIn': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
286
+ 'animation.morphing': import("./runtime").AnimationComponent<import("./animation").MorphingOptions>;
287
+ 'animation.growInX': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
288
+ 'animation.growInY': import("./runtime").AnimationComponent<import("./animation/types").Animation>;
289
+ 'interaction.elementHighlight': typeof import("./interaction").ElementHighlight;
290
+ 'interaction.elementHighlightByX': typeof import("./interaction").ElementHighlightByX;
291
+ 'interaction.elementHighlightByColor': typeof import("./interaction").ElementHighlightByColor;
292
+ 'interaction.elementSelect': typeof import("./interaction").ElementSelect;
293
+ 'interaction.elementSelectByX': typeof import("./interaction").ElementSelectByX;
294
+ 'interaction.elementSelectByColor': typeof import("./interaction").ElementSelectByColor;
295
+ 'interaction.fisheye': typeof import("./interaction").Fisheye;
296
+ 'interaction.chartIndex': typeof import("./interaction").ChartIndex;
297
+ 'interaction.tooltip': typeof import("./interaction").Tooltip;
298
+ 'interaction.legendFilter': typeof import("./interaction").LegendFilter;
299
+ 'interaction.legendHighlight': typeof import("./interaction").LegendHighlight;
300
+ 'interaction.brushHighlight': typeof import("./interaction").BrushHighlight;
301
+ 'interaction.brushXHighlight': typeof import("./interaction").BrushXHighlight;
302
+ 'interaction.brushYHighlight': typeof import("./interaction").BrushYHighlight;
303
+ 'interaction.brushAxisHighlight': typeof import("./interaction").BrushAxisHighlight;
304
+ 'interaction.brushFilter': typeof import("./interaction").BrushFilter;
305
+ 'interaction.brushXFilter': typeof import("./interaction").BrushXFilter;
306
+ 'interaction.brushYFilter': typeof import("./interaction").BrushYFilter;
307
+ 'interaction.sliderFilter': typeof import("./interaction").SliderFilter;
308
+ 'interaction.scrollbarFilter': typeof import("./interaction").ScrollbarFilter;
309
+ 'interaction.poptip': typeof import("./interaction").Poptip;
310
+ 'composition.spaceLayer': import("./runtime").CompositionComponent<import("./composition").SpaceLayerOptions>;
311
+ 'composition.spaceFlex': import("./runtime").CompositionComponent<import("./composition").SpaceFlexOptions>;
312
+ 'composition.facetRect': import("./runtime").CompositionComponent<import("./composition").FacetRectOptions>;
313
+ 'composition.repeatMatrix': import("./runtime").CompositionComponent<import("./spec").RepeatMatrixComposition>;
314
+ 'composition.facetCircle': import("./runtime").CompositionComponent<import("./spec").FacetCircleComposition>;
315
+ 'composition.timingKeyframe': import("./runtime").CompositionComponent<import("./composition").TimingKeyframeOptions>;
316
+ 'labelTransform.overlapHide': import("./runtime").LabelTransformComponent<import("./label-transform").OverlapHideOptions>;
317
+ 'labelTransform.overlapDodgeY': import("./runtime").LabelTransformComponent<import("./label-transform").OverlapDodgeYOptions>;
318
+ 'labelTransform.overflowHide': import("./runtime").LabelTransformComponent<import("./label-transform").OverflowHideOptions>;
319
+ 'labelTransform.contrastReverse': import("./runtime").LabelTransformComponent<import("./label-transform").ContrastReverseOptions>;
320
+ 'data.venn': import("./runtime").DataComponent<import("./data").VennOptions>;
321
+ 'mark.boxplot': import("./runtime").CompositeMarkComponent<import("./mark/boxplot").BoxPlotOptions>;
322
+ 'mark.gauge': import("./runtime").CompositeMarkComponent<import("./mark").GaugeOptions>;
323
+ 'mark.wordCloud': import("./runtime").CompositeMarkComponent<import("./mark").WordCloudOptions>;
324
+ 'mark.liquid': import("./runtime").CompositeMarkComponent<import("./mark").LiquidOptions>;
325
+ 'data.arc': import("./runtime").DataComponent<import("./data").ArcOptions>;
326
+ 'data.cluster': import("./runtime").DataComponent<import("./data").ClusterOptions>;
327
+ 'mark.forceGraph': import("./runtime").CompositeMarkComponent<import("./mark").ForceGraphOptions>;
328
+ 'mark.tree': import("./runtime").CompositeMarkComponent<import("./mark").TreeOptions>;
329
+ 'mark.pack': import("./runtime").CompositionComponent<import("./mark").PackOptions>;
330
+ 'mark.sankey': import("./runtime").CompositeMarkComponent<import("./mark").SankeyOptions>;
331
+ 'mark.treemap': import("./runtime").CompositionComponent<import("./mark").TreemapOptions>;
332
+ 'composition.geoView': import("./runtime").CompositionComponent<import("./composition/geoView").GeoViewOptions>;
333
+ 'composition.geoPath': import("./runtime").CompositionComponent<import("./composition/geoPath").GeoPathOptions>;
334
+ }>;
335
+ export interface Chart extends API<G2Spec, typeof library> {
336
+ }
337
+ export interface CompositionNode extends CompositionAPI<typeof library> {
338
+ }
package/esm/index.js CHANGED
@@ -1,9 +1,10 @@
1
- import { runtime } from '@antv/g';
2
- runtime.enableCSSParsing = false;
3
- export { render, renderToMountedElement, MAIN_LAYER_CLASS_NAME, LABEL_LAYER_CLASS_NAME, ELEMENT_CLASS_NAME, VIEW_CLASS_NAME, PLOT_CLASS_NAME, COMPONENT_CLASS_NAME, LABEL_CLASS_NAME, AREA_CLASS_NAME, MASK_CLASS_NAME, } from './runtime';
4
- export { corelib, stdlib, litelib, graphlib, plotlib, geolib, threedlib, } from './lib';
5
- export * from './mark';
6
- export { Chart, register, Runtime, extend, } from './api';
7
- export { ChartEvent } from './utils/event';
8
- export * from './spec';
1
+ import { corelib, plotlib, graphlib, geolib, stdlib, threedlib } from './lib';
2
+ import { extend, Runtime } from './api';
3
+ export { corelib, plotlib, graphlib, geolib, stdlib, threedlib };
4
+ export * from './exports';
5
+ /**
6
+ * G2 standard library initial all the libs except 3D and auto.
7
+ */
8
+ const library = Object.assign({}, stdlib());
9
+ export const Chart = extend(Runtime, library);
9
10
  //# sourceMappingURL=index.js.map
package/esm/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"src/","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,OAAO,CAAC,gBAAgB,GAAG,KAAK,CAAC;AAEjC,OAAO,EACL,MAAM,EACN,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,EACf,eAAe,GAChB,MAAM,WAAW,CAAC;AAEnB,OAAO,EACL,OAAO,EACP,MAAM,EACN,OAAO,EACP,QAAQ,EACR,OAAO,EACP,MAAM,EACN,SAAS,GACV,MAAM,OAAO,CAAC;AAEf,cAAc,QAAQ,CAAC;AAEvB,OAAO,EACL,KAAK,EAGL,QAAQ,EACR,OAAO,EACP,MAAM,GAEP,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAI3C,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"src/","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAIxC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;AAEjE,cAAc,WAAW,CAAC;AAE1B;;GAEG;AACH,MAAM,OAAO,qBAAQ,MAAM,EAAE,CAAE,CAAC;AAEhC,MAAM,CAAC,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC"}
@@ -29,7 +29,9 @@ export function Fisheye({ wait = 30, leading, trailing = false, }) {
29
29
  setState('fisheye', (options) => {
30
30
  // Clone options and mutate it.
31
31
  // Disable animation.
32
- const clonedOptions = deepMix({}, options);
32
+ const clonedOptions = deepMix({}, options, {
33
+ interaction: { tooltip: { preserve: true } },
34
+ });
33
35
  for (const mark of clonedOptions.marks)
34
36
  mark.animate = false;
35
37
  const [x, y] = focus;
@@ -1 +1 @@
1
- {"version":3,"file":"fisheye.js","sourceRoot":"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B,MAAM,aAAa,GAAG,OAAO,CAAC,EAAE,EAAE,OAAO,EAAE;oBACzC,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE;iBAC7C,CAAC,CAAC;gBACH,KAAK,MAAM,IAAI,IAAI,aAAa,CAAC,KAAK;oBAAE,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;gBAC7D,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC;gBACrB,MAAM,OAAO,GAAG,eAAe,CAAC,aAAa,CAAC,CAAC;gBAC/C,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;gBACnB,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;gBACnB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;gBACtB,OAAO,aAAa,CAAC;YACvB,CAAC,CAAC,CAAC;YACH,MAAM,EAAE,CAAC;QACX,CAAC,EACD,IAAI,EACJ,EAAE,OAAO,EAAE,QAAQ,EAAE,CACM,CAAC;QAE9B,eAAe;QACf,QAAQ,CAAC,gBAAgB,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;QACvD,QAAQ,CAAC,gBAAgB,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;QACtD,QAAQ,CAAC,gBAAgB,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;QAEvD,OAAO,GAAG,EAAE;YACV,QAAQ,CAAC,mBAAmB,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;YAC1D,QAAQ,CAAC,mBAAmB,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;YACzD,QAAQ,CAAC,mBAAmB,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;QAC5D,CAAC,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
@@ -10,4 +10,4 @@ export declare function legendsOf(root: any): any;
10
10
  export declare function legendsContinuousOf(root: any): any;
11
11
  export declare function dataOf(root: any): any;
12
12
  export declare function attributesOf(root: any): any;
13
- export declare function LegendFilter(): (context: any, _: any, emitter: any) => () => void;
13
+ export declare function LegendFilter(): (context: any, contexts: any, emitter: any) => () => void;