@visactor/vrender-components 1.0.44 → 1.0.46-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/cjs/axis/base.js +1 -1
  2. package/cjs/axis/circle.js +1 -1
  3. package/cjs/axis/config.js +1 -1
  4. package/cjs/axis/constant.js +1 -1
  5. package/cjs/axis/index.js +1 -1
  6. package/cjs/axis/line.js +1 -1
  7. package/cjs/axis/register.js +1 -1
  8. package/cjs/axis/type.js +1 -1
  9. package/cjs/axis/util.js +1 -1
  10. package/cjs/brush/config.js +2 -1
  11. package/cjs/core/type.js +1 -2
  12. package/cjs/crosshair/rect.js +2 -1
  13. package/cjs/data-zoom/config.js.map +1 -1
  14. package/cjs/data-zoom/index.js +1 -1
  15. package/cjs/data-zoom/interaction.js +1 -1
  16. package/cjs/data-zoom/register.js +1 -1
  17. package/cjs/data-zoom/renderer.js +1 -1
  18. package/cjs/data-zoom/type.js +1 -1
  19. package/cjs/data-zoom/utils.js +1 -1
  20. package/cjs/index.d.ts +1 -1
  21. package/cjs/index.js +1 -1
  22. package/cjs/index.js.map +1 -1
  23. package/cjs/indicator/config.js +2 -1
  24. package/cjs/indicator/index.js +1 -2
  25. package/cjs/label/base.js +1 -1
  26. package/cjs/label/data-label-register.js +1 -1
  27. package/cjs/label/dataLabel.js +1 -1
  28. package/cjs/label/index.js +1 -1
  29. package/cjs/label/line.js +1 -1
  30. package/cjs/label/polygon.js +1 -1
  31. package/cjs/label/rect.js +1 -1
  32. package/cjs/label/register.js +1 -1
  33. package/cjs/label/symbol.js +1 -1
  34. package/cjs/label/type.js +1 -2
  35. package/cjs/label/util.js +1 -1
  36. package/cjs/label-item/index.js +1 -1
  37. package/cjs/label-item/label-item.js +1 -1
  38. package/cjs/label-item/register.js +1 -1
  39. package/cjs/label-item/type.js +1 -1
  40. package/dist/index.es.js +50 -31
  41. package/es/axis/base.js +1 -1
  42. package/es/axis/circle.js +1 -1
  43. package/es/axis/config.js +1 -1
  44. package/es/axis/constant.js +1 -1
  45. package/es/axis/index.js +1 -1
  46. package/es/axis/line.js +1 -1
  47. package/es/axis/register.js +1 -1
  48. package/es/axis/type.js +1 -1
  49. package/es/axis/util.js +1 -1
  50. package/es/brush/config.js +2 -1
  51. package/es/core/type.js +1 -2
  52. package/es/crosshair/rect.js +2 -1
  53. package/es/data-zoom/config.js.map +1 -1
  54. package/es/data-zoom/index.js +1 -1
  55. package/es/data-zoom/interaction.js +1 -1
  56. package/es/data-zoom/register.js +1 -1
  57. package/es/data-zoom/renderer.js +1 -1
  58. package/es/data-zoom/type.js +1 -1
  59. package/es/data-zoom/utils.js +1 -1
  60. package/es/index.d.ts +1 -1
  61. package/es/index.js +1 -1
  62. package/es/index.js.map +1 -1
  63. package/es/indicator/config.js +2 -1
  64. package/es/indicator/index.js +1 -2
  65. package/es/label/base.js +1 -1
  66. package/es/label/data-label-register.js +1 -1
  67. package/es/label/dataLabel.js +1 -1
  68. package/es/label/index.js +1 -1
  69. package/es/label/line.js +1 -1
  70. package/es/label/polygon.js +1 -1
  71. package/es/label/rect.js +1 -1
  72. package/es/label/register.js +1 -1
  73. package/es/label/symbol.js +1 -1
  74. package/es/label/type.js +1 -2
  75. package/es/label/util.js +1 -1
  76. package/es/label-item/index.js +1 -1
  77. package/es/label-item/label-item.js +1 -1
  78. package/es/label-item/register.js +1 -1
  79. package/es/label-item/type.js +1 -1
  80. package/package.json +6 -6
package/cjs/axis/base.js CHANGED
@@ -336,4 +336,4 @@ class AxisBase extends animate_component_1.AnimateComponent {
336
336
  }
337
337
 
338
338
  exports.AxisBase = AxisBase;
339
- //# sourceMappingURL=base.js.map
339
+ //# sourceMappingURL=base.js.map
@@ -170,4 +170,4 @@ class CircleAxis extends base_1.AxisBase {
170
170
 
171
171
  exports.CircleAxis = CircleAxis, CircleAxis.defaultAttributes = config_1.DEFAULT_AXIS_THEME,
172
172
  (0, vutils_1.mixin)(CircleAxis, circle_1.CircleAxisMixin);
173
- //# sourceMappingURL=circle.js.map
173
+ //# sourceMappingURL=circle.js.map
@@ -82,4 +82,4 @@ exports.DEFAULT_AXIS_THEME = {
82
82
  lineWidth: 1,
83
83
  zIndex: 1
84
84
  };
85
- //# sourceMappingURL=config.js.map
85
+ //# sourceMappingURL=config.js.map
@@ -25,4 +25,4 @@ function(AxisStateValue) {
25
25
  [AxisStateValue.hover]: {},
26
26
  [AxisStateValue.hoverReverse]: {}
27
27
  }, exports.TopZIndex = 999;
28
- //# sourceMappingURL=constant.js.map
28
+ //# sourceMappingURL=constant.js.map
package/cjs/axis/index.js CHANGED
@@ -21,4 +21,4 @@ Object.defineProperty(exports, "__esModule", {
21
21
  __exportStar(require("./type"), exports), __exportStar(require("./animate"), exports),
22
22
  __exportStar(require("./constant"), exports), __exportStar(require("./util"), exports),
23
23
  __exportStar(require("./tick-data"), exports);
24
- //# sourceMappingURL=index.js.map
24
+ //# sourceMappingURL=index.js.map
package/cjs/axis/line.js CHANGED
@@ -392,4 +392,4 @@ class LineAxis extends base_1.AxisBase {
392
392
 
393
393
  exports.LineAxis = LineAxis, LineAxis.defaultAttributes = config_1.DEFAULT_AXIS_THEME,
394
394
  (0, vutils_1.mixin)(LineAxis, line_1.LineAxisMixin);
395
- //# sourceMappingURL=line.js.map
395
+ //# sourceMappingURL=line.js.map
@@ -29,4 +29,4 @@ function loadCircleAxisGridComponent() {
29
29
 
30
30
  exports.loadLineAxisComponent = loadLineAxisComponent, exports.loadCircleAxisComponent = loadCircleAxisComponent,
31
31
  exports.loadLineAxisGridComponent = loadLineAxisGridComponent, exports.loadCircleAxisGridComponent = loadCircleAxisGridComponent;
32
- //# sourceMappingURL=register.js.map
32
+ //# sourceMappingURL=register.js.map
package/cjs/axis/type.js CHANGED
@@ -3,4 +3,4 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  });
6
- //# sourceMappingURL=type.js.map
6
+ //# sourceMappingURL=type.js.map
package/cjs/axis/util.js CHANGED
@@ -105,4 +105,4 @@ exports.getVerticalCoord = getVerticalCoord, exports.getCircleVerticalVector = g
105
105
  exports.angleLabelOrientAttribute = angleLabelOrientAttribute, exports.getPolarAngleLabelPosition = getPolarAngleLabelPosition,
106
106
  exports.getCirclePoints = getCirclePoints, exports.getPolygonPath = getPolygonPath,
107
107
  exports.textIntersect = textIntersect, exports.hasOverlap = hasOverlap;
108
- //# sourceMappingURL=util.js.map
108
+ //# sourceMappingURL=util.js.map
@@ -27,4 +27,5 @@ exports.DEFAULT_BRUSH_ATTRIBUTES = {
27
27
  minX: -1 / 0,
28
28
  maxX: 1 / 0
29
29
  }
30
- }, exports.DEFAULT_SIZE_THRESHOLD = 5;
30
+ }, exports.DEFAULT_SIZE_THRESHOLD = 5;
31
+ //# sourceMappingURL=config.js.map
package/cjs/core/type.js CHANGED
@@ -2,5 +2,4 @@
2
2
 
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
- });
6
- //# sourceMappingURL=type.js.map
5
+ });
@@ -35,4 +35,5 @@ exports.RectCrosshair = RectCrosshair, RectCrosshair.defaultAttributes = {
35
35
  fill: "#b2bacf",
36
36
  opacity: .2
37
37
  }
38
- };
38
+ };
39
+ //# sourceMappingURL=rect.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/data-zoom/config.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAE/B,yiBAAyiB,CAAC;AAC/hB,QAAA,4BAA4B,GAAG;IAC1C,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,MAAM;IAClB,WAAW,EAAE,IAAI;IACjB,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,CAAC;IACV,OAAO,EAAE,CAAC;IACV,SAAS,EAAE,UAAU;IACrB,SAAS,EAAE,CAAC;IACZ,QAAQ,EAAE,IAAI;IACd,eAAe,EAAE;QACf,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE,CAAC;QACZ,YAAY,EAAE,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OAAO;QACb,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE,GAAG;KACf;IACD,cAAc,EAAE;QACd,OAAO,EAAE,CAAC;QACV,SAAS,EAAE;YACT,QAAQ,EAAE,EAAE;YACZ,IAAI,EAAE,SAAS;SAChB;KACF;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,CAAC;QACV,SAAS,EAAE;YACT,QAAQ,EAAE,EAAE;YACZ,IAAI,EAAE,SAAS;SAChB;KACF;CACF,CAAC;AAEW,QAAA,wBAAwB,GAAG;IACtC,UAAU,EAAE;QACV,KAAK,EAAE,CAAC;QACR,kBAAkB,EAAE,CAAC;QACrB,aAAa,EAAE,CAAC;QAChB,QAAQ,EAAE,WAAW;QACrB,MAAM,EAAE,WAAW;KACpB;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,EAAE,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC;QAC3B,MAAM,EAAE,WAAW;QACnB,aAAa,EAAE,CAAC;QAChB,QAAQ,EAAE,WAAW;QACrB,kBAAkB,EAAE,CAAC;KACtB;CACF,CAAC;AAGW,QAAA,YAAY,GAAG;IAC1B,UAAU,EAAE,CAAC;IACb,OAAO,EAAE,CAAC;IACV,QAAQ,EAAE,CAAC;IACX,kBAAkB,EAAE,CAAC;IACrB,eAAe,EAAE,CAAC;IAClB,OAAO,EAAE,CAAC;IACV,WAAW,EAAE,CAAC;IACd,WAAW,EAAE,GAAG;CACjB,CAAC","file":"config.js","sourcesContent":["export const DEFAULT_HANDLER_PATH =\n // eslint-disable-next-line max-len\n 'M -0.0544 0.25 C -0.0742 0.25 -0.0901 0.234 -0.0901 0.2143 L -0.0901 -0.1786 C -0.0901 -0.1983 -0.0742 -0.2143 -0.0544 -0.2143 L -0.0187 -0.2143 L -0.0187 -0.5 L 0.017 -0.5 L 0.017 -0.2143 L 0.0527 -0.2143 C 0.0724 -0.2143 0.0884 -0.1983 0.0884 -0.1786 L 0.0884 0.2143 C 0.0884 0.234 0.0724 0.25 0.0527 0.25 L 0.017 0.25 L 0.017 0.5 L -0.0187 0.5 L -0.0187 0.25 L -0.0544 0.25 Z M -0.0187 -0.1429 L -0.0544 -0.1429 L -0.0544 0.1786 L -0.0187 0.1786 L -0.0187 -0.1429 Z M 0.0527 -0.1429 L 0.017 -0.1429 L 0.017 0.1786 L 0.0527 0.1786 L 0.0527 -0.1429 Z';\nexport const DEFAULT_DATA_ZOOM_ATTRIBUTES = {\n orient: 'bottom',\n showDetail: 'auto',\n brushSelect: true,\n zoomLock: false,\n minSpan: 0,\n maxSpan: 1,\n delayType: 'throttle',\n delayTime: 0,\n realTime: true,\n backgroundStyle: {\n fill: 'white',\n stroke: '#D1DBEE',\n lineWidth: 1,\n cornerRadius: 2\n },\n dragMaskStyle: {\n fill: '#B0C8F9',\n fillOpacity: 0.2\n },\n backgroundChartStyle: {\n area: {\n visible: true,\n stroke: '#D1DBEE',\n lineWidth: 1,\n fill: '#F6F8FC'\n },\n line: {\n visible: true,\n stroke: '#D1DBEE',\n lineWidth: 1\n }\n },\n selectedBackgroundStyle: {\n fill: '#B0C8F9',\n fillOpacity: 0.5\n },\n selectedBackgroundChartStyle: {\n area: {\n visible: true,\n stroke: '#B0C8F9',\n lineWidth: 1,\n fill: '#fbb934'\n },\n line: {\n visible: true,\n stroke: '#fbb934',\n lineWidth: 1\n }\n },\n middleHandlerStyle: {\n visible: true,\n background: {\n size: 8,\n style: {\n fill: 'white',\n stroke: '#B0C8F9',\n cornerRadius: 2\n }\n },\n icon: {\n size: 6,\n fill: 'white',\n stroke: '#B0C8F9',\n symbolType:\n // eslint-disable-next-line max-len\n 'M 0.3 -0.5 C 0.41 -0.5 0.5 -0.41 0.5 -0.3 C 0.5 -0.3 0.5 0.3 0.5 0.3 C 0.5 0.41 0.41 0.5 0.3 0.5 C 0.3 0.5 -0.3 0.5 -0.3 0.5 C -0.41 0.5 -0.5 0.41 -0.5 0.3 C -0.5 0.3 -0.5 -0.3 -0.5 -0.3 C -0.5 -0.41 -0.41 -0.5 -0.3 -0.5 C -0.3 -0.5 0.3 -0.5 0.3 -0.5 Z',\n lineWidth: 0.5\n }\n },\n startHandlerStyle: {\n visible: true,\n triggerMinSize: 0,\n symbolType: DEFAULT_HANDLER_PATH,\n fill: 'white',\n stroke: '#B0C8F9',\n lineWidth: 0.5\n },\n endHandlerStyle: {\n visible: true,\n triggerMinSize: 0,\n symbolType: DEFAULT_HANDLER_PATH,\n fill: 'white',\n stroke: '#B0C8F9',\n lineWidth: 0.5\n },\n startTextStyle: {\n padding: 4,\n textStyle: {\n fontSize: 10,\n fill: '#6F6F6F'\n }\n },\n endTextStyle: {\n padding: 4,\n textStyle: {\n fontSize: 10,\n fill: '#6F6F6F'\n }\n }\n};\n\nexport const DEFAULT_HANDLER_ATTR_MAP = {\n horizontal: {\n angle: 0,\n strokeBoundsBuffer: 0,\n boundsPadding: 2,\n pickMode: 'imprecise',\n cursor: 'ew-resize'\n },\n vertical: {\n angle: 90 * (Math.PI / 180),\n cursor: 'ns-resize',\n boundsPadding: 2,\n pickMode: 'imprecise',\n strokeBoundsBuffer: 0\n }\n};\n\n// 层级\nexport const LAYOUT_LEVEL = {\n background: 0, // 背景\n preview: 1, // 背景图表\n dragMask: 2, // 背景选框\n selectedBackground: 3, // 选中背景\n selectedPreview: 4, // 选中背景图表\n handler: 5, // 手柄\n handlerText: 5, // 文字\n handlerMask: 999 // 热区\n};\n"]}
1
+ {"version":3,"sources":["../src/data-zoom/config.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAE/B,yiBAAyiB,CAAC;AAC/hB,QAAA,4BAA4B,GAAG;IAC1C,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,MAAM;IAClB,WAAW,EAAE,IAAI;IACjB,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,CAAC;IACV,OAAO,EAAE,CAAC;IACV,SAAS,EAAE,UAAU;IACrB,SAAS,EAAE,CAAC;IACZ,QAAQ,EAAE,IAAI;IACd,eAAe,EA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;QACf,OAAO,EAAE,IAAI;QACb,cAAc,EAAE,CAAC;QACjB,UAAU,EAAE,4BAAoB;QAChC,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE,GAAG;KACf;IACD,cAAc,EAAE;QACd,OAAO,EAAE,CAAC;QACV,SAAS,EAAE;YACT,QAAQ,EAAE,EAAE;YACZ,IAAI,EAAE,SAAS;SAChB;KACF;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,CAAC;QACV,SAAS,EAAE;YACT,QAAQ,EAAE,EAAE;YACZ,IAAI,EAAE,SAAS;SAChB;KACF;CACF,CAAC;AAEW,QAAA,wBAAwB,GAAG;IACtC,UAAU,EAAE;QACV,KAAK,EAAE,CAAC;QACR,kBAAkB,EAAE,CAAC;QACrB,aAAa,EAAE,CAAC;QAChB,QAAQ,EAAE,WAAW;QACrB,MAAM,EAAE,WAAW;KACpB;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,EAAE,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC;QAC3B,MAAM,EAAE,WAAW;QACnB,aAAa,EAAE,CAAC;QAChB,QAAQ,EAAE,WAAW;QACrB,kBAAkB,EAAE,CAAC;KACtB;CACF,CAAC;AAEW,QAAA,YAAY,GAAG;IAC1B,UAAU,EAAE,CAAC;IACb,OAAO,EAAE,CAAC;IACV,QAAQ,EAAE,CAAC;IACX,kBAAkB,EAAE,CAAC;IACrB,eAAe,EAAE,CAAC;IAClB,OAAO,EAAE,CAAC;IACV,WAAW,EAAE,CAAC;IACd,WAAW,EAAE,GAAG;CACjB,CAAC","file":"config.js","sourcesContent":["export const DEFAULT_HANDLER_PATH =\n // eslint-disable-next-line max-len\n 'M -0.0544 0.25 C -0.0742 0.25 -0.0901 0.234 -0.0901 0.2143 L -0.0901 -0.1786 C -0.0901 -0.1983 -0.0742 -0.2143 -0.0544 -0.2143 L -0.0187 -0.2143 L -0.0187 -0.5 L 0.017 -0.5 L 0.017 -0.2143 L 0.0527 -0.2143 C 0.0724 -0.2143 0.0884 -0.1983 0.0884 -0.1786 L 0.0884 0.2143 C 0.0884 0.234 0.0724 0.25 0.0527 0.25 L 0.017 0.25 L 0.017 0.5 L -0.0187 0.5 L -0.0187 0.25 L -0.0544 0.25 Z M -0.0187 -0.1429 L -0.0544 -0.1429 L -0.0544 0.1786 L -0.0187 0.1786 L -0.0187 -0.1429 Z M 0.0527 -0.1429 L 0.017 -0.1429 L 0.017 0.1786 L 0.0527 0.1786 L 0.0527 -0.1429 Z';\nexport const DEFAULT_DATA_ZOOM_ATTRIBUTES = {\n orient: 'bottom',\n showDetail: 'auto',\n brushSelect: true,\n zoomLock: false,\n minSpan: 0,\n maxSpan: 1,\n delayType: 'throttle',\n delayTime: 0,\n realTime: true,\n backgroundStyle: {\n fill: 'white',\n stroke: '#D1DBEE',\n lineWidth: 1,\n cornerRadius: 2\n },\n dragMaskStyle: {\n fill: '#B0C8F9',\n fillOpacity: 0.2\n },\n backgroundChartStyle: {\n area: {\n visible: true,\n stroke: '#D1DBEE',\n lineWidth: 1,\n fill: '#F6F8FC'\n },\n line: {\n visible: true,\n stroke: '#D1DBEE',\n lineWidth: 1\n }\n },\n selectedBackgroundStyle: {\n fill: '#B0C8F9',\n fillOpacity: 0.5\n },\n selectedBackgroundChartStyle: {\n area: {\n visible: true,\n stroke: '#B0C8F9',\n lineWidth: 1,\n fill: '#fbb934'\n },\n line: {\n visible: true,\n stroke: '#fbb934',\n lineWidth: 1\n }\n },\n middleHandlerStyle: {\n visible: true,\n background: {\n size: 8,\n style: {\n fill: 'white',\n stroke: '#B0C8F9',\n cornerRadius: 2\n }\n },\n icon: {\n size: 6,\n fill: 'white',\n stroke: '#B0C8F9',\n symbolType:\n // eslint-disable-next-line max-len\n 'M 0.3 -0.5 C 0.41 -0.5 0.5 -0.41 0.5 -0.3 C 0.5 -0.3 0.5 0.3 0.5 0.3 C 0.5 0.41 0.41 0.5 0.3 0.5 C 0.3 0.5 -0.3 0.5 -0.3 0.5 C -0.41 0.5 -0.5 0.41 -0.5 0.3 C -0.5 0.3 -0.5 -0.3 -0.5 -0.3 C -0.5 -0.41 -0.41 -0.5 -0.3 -0.5 C -0.3 -0.5 0.3 -0.5 0.3 -0.5 Z',\n lineWidth: 0.5\n }\n },\n startHandlerStyle: {\n visible: true,\n triggerMinSize: 0,\n symbolType: DEFAULT_HANDLER_PATH,\n fill: 'white',\n stroke: '#B0C8F9',\n lineWidth: 0.5\n },\n endHandlerStyle: {\n visible: true,\n triggerMinSize: 0,\n symbolType: DEFAULT_HANDLER_PATH,\n fill: 'white',\n stroke: '#B0C8F9',\n lineWidth: 0.5\n },\n startTextStyle: {\n padding: 4,\n textStyle: {\n fontSize: 10,\n fill: '#6F6F6F'\n }\n },\n endTextStyle: {\n padding: 4,\n textStyle: {\n fontSize: 10,\n fill: '#6F6F6F'\n }\n }\n};\n\nexport const DEFAULT_HANDLER_ATTR_MAP = {\n horizontal: {\n angle: 0,\n strokeBoundsBuffer: 0,\n boundsPadding: 2,\n pickMode: 'imprecise',\n cursor: 'ew-resize'\n },\n vertical: {\n angle: 90 * (Math.PI / 180),\n cursor: 'ns-resize',\n boundsPadding: 2,\n pickMode: 'imprecise',\n strokeBoundsBuffer: 0\n }\n};\n\nexport const LAYOUT_LEVEL = {\n background: 0, // 背景\n preview: 1, // 背景图表\n dragMask: 2, // 背景选框\n selectedBackground: 3, // 选中背景\n selectedPreview: 4, // 选中背景图表\n handler: 5, // 手柄\n handlerText: 5, // 文字\n handlerMask: 999 // 热区\n};\n"]}
@@ -18,4 +18,4 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
18
18
  Object.defineProperty(exports, "__esModule", {
19
19
  value: !0
20
20
  }), __exportStar(require("./data-zoom"), exports), __exportStar(require("./type"), exports);
21
- //# sourceMappingURL=index.js.map
21
+ //# sourceMappingURL=index.js.map
@@ -176,4 +176,4 @@ class DataZoomInteraction extends vutils_1.EventEmitter {
176
176
  }
177
177
 
178
178
  exports.DataZoomInteraction = DataZoomInteraction;
179
- //# sourceMappingURL=interaction.js.map
179
+ //# sourceMappingURL=interaction.js.map
@@ -12,4 +12,4 @@ function loadDataZoomComponent() {
12
12
  }
13
13
 
14
14
  exports.loadDataZoomComponent = loadDataZoomComponent;
15
- //# sourceMappingURL=register.js.map
15
+ //# sourceMappingURL=register.js.map
@@ -484,4 +484,4 @@ class DataZoomRenderer {
484
484
  }
485
485
 
486
486
  exports.DataZoomRenderer = DataZoomRenderer;
487
- //# sourceMappingURL=renderer.js.map
487
+ //# sourceMappingURL=renderer.js.map
@@ -16,4 +16,4 @@ function(IDataZoomInteractiveEvent) {
16
16
  function(IDataZoomEvent) {
17
17
  IDataZoomEvent.dataZoomChange = "dataZoomChange";
18
18
  }(IDataZoomEvent = exports.IDataZoomEvent || (exports.IDataZoomEvent = {}));
19
- //# sourceMappingURL=type.js.map
19
+ //# sourceMappingURL=type.js.map
@@ -17,4 +17,4 @@ const isTextOverflow = (componentBoundsLike, textBounds, layout, isHorizontal) =
17
17
  };
18
18
 
19
19
  exports.isTextOverflow = isTextOverflow;
20
- //# sourceMappingURL=utils.js.map
20
+ //# sourceMappingURL=utils.js.map
package/cjs/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const version = "1.0.44";
1
+ export declare const version = "1.0.46-alpha.0";
2
2
  export * from './core/base';
3
3
  export * from './core/type';
4
4
  export * from './scrollbar';
package/cjs/index.js CHANGED
@@ -17,7 +17,7 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
17
17
 
18
18
  Object.defineProperty(exports, "__esModule", {
19
19
  value: !0
20
- }), exports.version = void 0, exports.version = "1.0.44", __exportStar(require("./core/base"), exports),
20
+ }), exports.version = void 0, exports.version = "1.0.46-alpha.0", __exportStar(require("./core/base"), exports),
21
21
  __exportStar(require("./core/type"), exports), __exportStar(require("./scrollbar"), exports),
22
22
  __exportStar(require("./tag"), exports), __exportStar(require("./poptip"), exports),
23
23
  __exportStar(require("./crosshair"), exports), __exportStar(require("./label"), exports),
package/cjs/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACa,QAAA,OAAO,GAAG,QAAQ,CAAC;AAEhC,8CAA4B;AAC5B,8CAA4B;AAC5B,8CAA4B;AAC5B,wCAAsB;AACtB,2CAAyB;AACzB,8CAA4B;AAC5B,0CAAwB;AACxB,yCAAuB;AACvB,8CAA4B;AAC5B,4CAA0B;AAC1B,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,2CAAyB;AACzB,0CAAwB;AACxB,8CAA4B;AAC5B,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,4CAA0B;AAC1B,6CAA2B;AAC3B,8CAA4B;AAC5B,wCAAsB;AACtB,6CAA2B;AAC3B,0CAAwB;AACxB,8CAA4B;AAC5B,4CAA0B;AAC1B,yCAAuB;AACvB,2CAAyB;AACzB,+CAA6B;AAC7B,wDAAsC","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"1.0.44\";\n\nexport * from './core/base';\nexport * from './core/type';\nexport * from './scrollbar';\nexport * from './tag';\nexport * from './poptip';\nexport * from './crosshair';\nexport * from './label';\nexport * from './axis';\nexport * from './axis/grid';\nexport * from './segment';\nexport * from './data-zoom';\nexport * from './marker';\nexport * from './pager';\nexport * from './legend';\nexport * from './title';\nexport * from './indicator';\nexport * from './slider';\nexport * from './link-path';\nexport * from './player';\nexport * from './brush';\nexport * from './tooltip';\nexport * from './timeline';\nexport * from './interface';\nexport * from './jsx';\nexport * from './checkbox';\nexport * from './radio';\nexport * from './empty-tip';\nexport * from './weather';\nexport * from './util';\nexport * from './switch';\nexport * from './label-item';\nexport * from './table-series-number';\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACa,QAAA,OAAO,GAAG,gBAAgB,CAAC;AAExC,8CAA4B;AAC5B,8CAA4B;AAC5B,8CAA4B;AAC5B,wCAAsB;AACtB,2CAAyB;AACzB,8CAA4B;AAC5B,0CAAwB;AACxB,yCAAuB;AACvB,8CAA4B;AAC5B,4CAA0B;AAC1B,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,2CAAyB;AACzB,0CAAwB;AACxB,8CAA4B;AAC5B,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,4CAA0B;AAC1B,6CAA2B;AAC3B,8CAA4B;AAC5B,wCAAsB;AACtB,6CAA2B;AAC3B,0CAAwB;AACxB,8CAA4B;AAC5B,4CAA0B;AAC1B,yCAAuB;AACvB,2CAAyB;AACzB,+CAA6B;AAC7B,wDAAsC","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"1.0.46-alpha.0\";\n\nexport * from './core/base';\nexport * from './core/type';\nexport * from './scrollbar';\nexport * from './tag';\nexport * from './poptip';\nexport * from './crosshair';\nexport * from './label';\nexport * from './axis';\nexport * from './axis/grid';\nexport * from './segment';\nexport * from './data-zoom';\nexport * from './marker';\nexport * from './pager';\nexport * from './legend';\nexport * from './title';\nexport * from './indicator';\nexport * from './slider';\nexport * from './link-path';\nexport * from './player';\nexport * from './brush';\nexport * from './tooltip';\nexport * from './timeline';\nexport * from './interface';\nexport * from './jsx';\nexport * from './checkbox';\nexport * from './radio';\nexport * from './empty-tip';\nexport * from './weather';\nexport * from './util';\nexport * from './switch';\nexport * from './label-item';\nexport * from './table-series-number';\n"]}
@@ -25,4 +25,5 @@ Object.defineProperty(exports, "__esModule", {
25
25
  textAlign: "center"
26
26
  }
27
27
  }
28
- };
28
+ };
29
+ //# sourceMappingURL=config.js.map
@@ -17,5 +17,4 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
17
17
 
18
18
  Object.defineProperty(exports, "__esModule", {
19
19
  value: !0
20
- }), __exportStar(require("./indicator"), exports), __exportStar(require("./type"), exports);
21
- //# sourceMappingURL=index.js.map
20
+ }), __exportStar(require("./indicator"), exports), __exportStar(require("./type"), exports);
package/cjs/label/base.js CHANGED
@@ -559,4 +559,4 @@ exports.LabelBase = LabelBase, LabelBase.defaultAttributes = {
559
559
  offset: 0,
560
560
  pickable: !1
561
561
  };
562
- //# sourceMappingURL=base.js.map
562
+ //# sourceMappingURL=base.js.map
@@ -13,4 +13,4 @@ exports.registerLabelComponent = registerLabelComponent;
13
13
  const getLabelComponent = type => labelComponentMap[type];
14
14
 
15
15
  exports.getLabelComponent = getLabelComponent;
16
- //# sourceMappingURL=data-label-register.js.map
16
+ //# sourceMappingURL=data-label-register.js.map
@@ -65,4 +65,4 @@ class DataLabel extends base_1.AbstractComponent {
65
65
  exports.DataLabel = DataLabel, DataLabel.defaultAttributes = {
66
66
  pickable: !1
67
67
  };
68
- //# sourceMappingURL=dataLabel.js.map
68
+ //# sourceMappingURL=dataLabel.js.map
@@ -21,4 +21,4 @@ Object.defineProperty(exports, "__esModule", {
21
21
  __exportStar(require("./rect"), exports), __exportStar(require("./line"), exports),
22
22
  __exportStar(require("./base"), exports), __exportStar(require("./arc"), exports),
23
23
  __exportStar(require("./dataLabel"), exports);
24
- //# sourceMappingURL=index.js.map
24
+ //# sourceMappingURL=index.js.map
package/cjs/label/line.js CHANGED
@@ -57,4 +57,4 @@ const registerLineDataLabel = () => {
57
57
  };
58
58
 
59
59
  exports.registerLineDataLabel = registerLineDataLabel;
60
- //# sourceMappingURL=line.js.map
60
+ //# sourceMappingURL=line.js.map
@@ -40,4 +40,4 @@ exports.PolygonLabel = PolygonLabel, PolygonLabel.defaultAttributes = {
40
40
  position: "center",
41
41
  offset: 6
42
42
  };
43
- //# sourceMappingURL=polygon.js.map
43
+ //# sourceMappingURL=polygon.js.map
package/cjs/label/rect.js CHANGED
@@ -60,4 +60,4 @@ const registerRectDataLabel = () => {
60
60
  };
61
61
 
62
62
  exports.registerRectDataLabel = registerRectDataLabel;
63
- //# sourceMappingURL=rect.js.map
63
+ //# sourceMappingURL=rect.js.map
@@ -16,4 +16,4 @@ function loadLabelAnimate() {
16
16
  }
17
17
 
18
18
  exports.loadLabelComponent = loadLabelComponent, exports.loadLabelAnimate = loadLabelAnimate;
19
- //# sourceMappingURL=register.js.map
19
+ //# sourceMappingURL=register.js.map
@@ -41,4 +41,4 @@ const registerSymbolDataLabel = () => {
41
41
  };
42
42
 
43
43
  exports.registerSymbolDataLabel = registerSymbolDataLabel;
44
- //# sourceMappingURL=symbol.js.map
44
+ //# sourceMappingURL=symbol.js.map
package/cjs/label/type.js CHANGED
@@ -2,5 +2,4 @@
2
2
 
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
- });
6
- //# sourceMappingURL=type.js.map
5
+ });
package/cjs/label/util.js CHANGED
@@ -175,4 +175,4 @@ function getAlignOffset(align) {
175
175
 
176
176
  exports.getPointsOfLineArea = getPointsOfLineArea, exports.labelingLineOrArea = labelingLineOrArea,
177
177
  exports.connectLineBetweenBounds = connectLineBetweenBounds, exports.getAlignOffset = getAlignOffset;
178
- //# sourceMappingURL=util.js.map
178
+ //# sourceMappingURL=util.js.map
@@ -18,4 +18,4 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
18
18
  Object.defineProperty(exports, "__esModule", {
19
19
  value: !0
20
20
  }), __exportStar(require("./label-item"), exports), __exportStar(require("./type"), exports);
21
- //# sourceMappingURL=index.js.map
21
+ //# sourceMappingURL=index.js.map
@@ -160,4 +160,4 @@ exports.StoryLabelItem = StoryLabelItem, StoryLabelItem.defaultAttributes = {
160
160
  },
161
161
  theme: "default"
162
162
  };
163
- //# sourceMappingURL=label-item.js.map
163
+ //# sourceMappingURL=label-item.js.map
@@ -12,4 +12,4 @@ function loadLabelItemComponent() {
12
12
  }
13
13
 
14
14
  exports.loadLabelItemComponent = loadLabelItemComponent;
15
- //# sourceMappingURL=register.js.map
15
+ //# sourceMappingURL=register.js.map
@@ -3,4 +3,4 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  });
6
- //# sourceMappingURL=type.js.map
6
+ //# sourceMappingURL=type.js.map
package/dist/index.es.js CHANGED
@@ -6310,6 +6310,7 @@ const GRAPHIC_UPDATE_TAG_KEY = ["lineWidth", "scaleX", "scaleY", "angle", "ancho
6310
6310
  const tempConstantXYKey = ["x", "y"],
6311
6311
  tempConstantScaleXYKey = ["scaleX", "scaleY"],
6312
6312
  tempConstantAngleKey = ["angle"],
6313
+ builtinTextureTypes = new Set(["circle", "diamond", "rect", "vertical-line", "horizontal-line", "bias-lr", "bias-rl", "grid", "wave"]),
6313
6314
  point = new Point();
6314
6315
  const NOWORK_ANIMATE_ATTR = {
6315
6316
  strokeSeg: 1,
@@ -6367,7 +6368,7 @@ class Graphic extends Node {
6367
6368
  constructor() {
6368
6369
  let params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
6369
6370
  var _a;
6370
- super(), this._AABBBounds = new AABBBounds(), this._updateTag = UpdateTag.INIT, this.attribute = params, this.valid = this.isValid(), this.updateAABBBoundsStamp = 0, params.background ? this.loadImage(null !== (_a = params.background.background) && void 0 !== _a ? _a : params.background, !0) : params.shadowGraphic && this.setShadowGraphic(params.shadowGraphic);
6371
+ super(), this._AABBBounds = new AABBBounds(), this._updateTag = UpdateTag.INIT, this.attribute = params, this.valid = this.isValid(), this.updateAABBBoundsStamp = 0, params.background && this.loadImage(null !== (_a = params.background.background) && void 0 !== _a ? _a : params.background, !0), isExternalTexture(params.texture) ? this.loadImage(params.texture, !1) : params.shadowGraphic && this.setShadowGraphic(params.shadowGraphic);
6371
6372
  }
6372
6373
  getGraphicService() {
6373
6374
  var _a, _b;
@@ -6563,7 +6564,7 @@ class Graphic extends Node {
6563
6564
  setAttributes(params) {
6564
6565
  let forceUpdateTag = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
6565
6566
  let context = arguments.length > 2 ? arguments[2] : undefined;
6566
- params && ((params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(params, this.attribute, null, context) || params).background ? this.loadImage(params.background, !0) : params.shadowGraphic && this.setShadowGraphic(params.shadowGraphic), this._setAttributes(params, forceUpdateTag, context));
6567
+ params && ((params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(params, this.attribute, null, context) || params).background && this.loadImage(params.background, !0), isExternalTexture(params.texture) ? this.loadImage(params.texture, !1) : params.shadowGraphic && this.setShadowGraphic(params.shadowGraphic), this._setAttributes(params, forceUpdateTag, context));
6567
6568
  }
6568
6569
  _setAttributes(params) {
6569
6570
  let forceUpdateTag = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
@@ -6580,7 +6581,7 @@ class Graphic extends Node {
6580
6581
  const params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate({
6581
6582
  [key]: value
6582
6583
  }, this.attribute, key, context);
6583
- params ? this._setAttributes(params, forceUpdateTag, context) : isNil(null === (_a = this.normalAttrs) || void 0 === _a ? void 0 : _a[key]) ? (this.attribute[key] = value, this.valid = this.isValid(), this.updateShapeAndBoundsTagSetted() || !forceUpdateTag && !this.needUpdateTag(key) ? this.addUpdateBoundTag() : this.addUpdateShapeAndBoundsTag(), this.addUpdatePositionTag(), this.addUpdateLayoutTag(), this.onAttributeUpdate(context)) : this.normalAttrs[key] = value, "background" === key ? this.loadImage(value, !0) : "shadowGraphic" === key && this.setShadowGraphic(value);
6584
+ params ? this._setAttributes(params, forceUpdateTag, context) : isNil(null === (_a = this.normalAttrs) || void 0 === _a ? void 0 : _a[key]) ? (this.attribute[key] = value, this.valid = this.isValid(), this.updateShapeAndBoundsTagSetted() || !forceUpdateTag && !this.needUpdateTag(key) ? this.addUpdateBoundTag() : this.addUpdateShapeAndBoundsTag(), this.addUpdatePositionTag(), this.addUpdateLayoutTag(), this.onAttributeUpdate(context)) : this.normalAttrs[key] = value, "background" === key ? this.loadImage(value, !0) : "texture" === key && isExternalTexture(value) ? this.loadImage(value, !1) : "shadowGraphic" === key && this.setShadowGraphic(value);
6584
6585
  }
6585
6586
  needUpdateTags(keys) {
6586
6587
  let k = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : GRAPHIC_UPDATE_TAG_KEY;
@@ -6601,7 +6602,7 @@ class Graphic extends Node {
6601
6602
  const context = {
6602
6603
  type: AttributeUpdateType.INIT
6603
6604
  };
6604
- params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(params, this.attribute, null, context) || params, this.attribute = params, params.background ? this.loadImage(params.background, !0) : params.shadowGraphic && this.setShadowGraphic(params.shadowGraphic), this._updateTag = UpdateTag.INIT, this.valid = this.isValid(), this.onAttributeUpdate(context);
6605
+ params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(params, this.attribute, null, context) || params, this.attribute = params, params.background && this.loadImage(params.background, !0), isExternalTexture(params.texture) ? this.loadImage(params.texture, !1) : params.shadowGraphic && this.setShadowGraphic(params.shadowGraphic), this._updateTag = UpdateTag.INIT, this.valid = this.isValid(), this.onAttributeUpdate(context);
6605
6606
  }
6606
6607
  translate(x, y) {
6607
6608
  var _a, _b;
@@ -6995,6 +6996,9 @@ class Graphic extends Node {
6995
6996
  function backgroundNotImage(image) {
6996
6997
  return !(!image.fill && !image.stroke);
6997
6998
  }
6999
+ function isExternalTexture(texture) {
7000
+ return !!texture && ("string" == typeof texture ? !builtinTextureTypes.has(texture) && (texture.startsWith("<svg") || isValidUrl(texture) || texture.includes("/") || isBase64(texture)) : isObject(texture));
7001
+ }
6998
7002
  Graphic.userSymbolMap = {}, Graphic.mixin(EventTarget);
6999
7003
 
7000
7004
  var GroupUpdateAABBBoundsMode;
@@ -10485,33 +10489,37 @@ class DefaultBaseTextureRenderContribution {
10485
10489
  textureRatio = graphicAttribute.textureRatio,
10486
10490
  textureOptions = null
10487
10491
  } = graphic.attribute;
10488
- let pattern = this.textureMap.get(texture);
10489
- if (!pattern) switch (texture) {
10490
- case "circle":
10491
- pattern = this.createCirclePattern(textureSize, texturePadding, textureColor, context);
10492
- break;
10493
- case "diamond":
10494
- pattern = this.createDiamondPattern(textureSize, texturePadding, textureColor, context);
10495
- break;
10496
- case "rect":
10497
- pattern = this.createRectPattern(textureSize, texturePadding, textureColor, context);
10498
- break;
10499
- case "vertical-line":
10500
- pattern = this.createVerticalLinePattern(textureSize, texturePadding, textureColor, context);
10501
- break;
10502
- case "horizontal-line":
10503
- pattern = this.createHorizontalLinePattern(textureSize, texturePadding, textureColor, context);
10504
- break;
10505
- case "bias-lr":
10506
- pattern = this.createBiasLRLinePattern(textureSize, texturePadding, textureColor, context);
10507
- break;
10508
- case "bias-rl":
10509
- pattern = this.createBiasRLLinePattern(textureSize, texturePadding, textureColor, context);
10510
- break;
10511
- case "grid":
10512
- pattern = this.createGridPattern(textureSize, texturePadding, textureColor, context);
10492
+ let pattern = null;
10493
+ const patternKey = this.getPatternCacheKey(texture, textureSize, texturePadding, textureColor, context.dpr);
10494
+ if (null !== patternKey && (pattern = this.textureMap.get(patternKey)), !pattern) {
10495
+ if ("string" == typeof texture) switch (texture) {
10496
+ case "circle":
10497
+ pattern = this.createCirclePattern(textureSize, texturePadding, textureColor, context);
10498
+ break;
10499
+ case "diamond":
10500
+ pattern = this.createDiamondPattern(textureSize, texturePadding, textureColor, context);
10501
+ break;
10502
+ case "rect":
10503
+ pattern = this.createRectPattern(textureSize, texturePadding, textureColor, context);
10504
+ break;
10505
+ case "vertical-line":
10506
+ pattern = this.createVerticalLinePattern(textureSize, texturePadding, textureColor, context);
10507
+ break;
10508
+ case "horizontal-line":
10509
+ pattern = this.createHorizontalLinePattern(textureSize, texturePadding, textureColor, context);
10510
+ break;
10511
+ case "bias-lr":
10512
+ pattern = this.createBiasLRLinePattern(textureSize, texturePadding, textureColor, context);
10513
+ break;
10514
+ case "bias-rl":
10515
+ pattern = this.createBiasRLLinePattern(textureSize, texturePadding, textureColor, context);
10516
+ break;
10517
+ case "grid":
10518
+ pattern = this.createGridPattern(textureSize, texturePadding, textureColor, context);
10519
+ }
10520
+ pattern || (pattern = this.createResourcePattern(texture, graphic, context)), pattern && null !== patternKey && this.textureMap.set(patternKey, pattern);
10513
10521
  }
10514
- if (textureOptions && textureOptions.dynamicTexture) {
10522
+ if ("string" == typeof texture && textureOptions && textureOptions.dynamicTexture) {
10515
10523
  const {
10516
10524
  gridConfig = {},
10517
10525
  useNewCanvas: useNewCanvas
@@ -10567,6 +10575,17 @@ class DefaultBaseTextureRenderContribution {
10567
10575
  }), x + b.x1 - x, y + b.y1 - y), context.restore();
10568
10576
  }
10569
10577
  }
10578
+ getPatternCacheKey(texture, textureSize, texturePadding, textureColor, dpr) {
10579
+ return "string" != typeof texture ? texture : "wave" === texture ? null : `${texture}-${textureSize}-${texturePadding}-${textureColor}-${dpr}`;
10580
+ }
10581
+ createResourcePattern(texture, graphic, context) {
10582
+ var _a;
10583
+ const resource = null === (_a = graphic.resources) || void 0 === _a ? void 0 : _a.get(texture),
10584
+ data = "success" === (null == resource ? void 0 : resource.state) ? resource.data : "object" == typeof texture ? texture : null;
10585
+ if (!data) return null;
10586
+ const pattern = context.createPattern(data, "repeat");
10587
+ return (null == pattern ? void 0 : pattern.setTransform) && pattern.setTransform(new DOMMatrix([1 / context.dpr, 0, 0, 1 / context.dpr, 0, 0])), pattern;
10588
+ }
10570
10589
  }
10571
10590
  const defaultBaseTextureRenderContribution = new DefaultBaseTextureRenderContribution();
10572
10591
 
@@ -35011,6 +35030,6 @@ TableSeriesNumber.defaultAttributes = {
35011
35030
  select: true
35012
35031
  };
35013
35032
 
35014
- const version = "1.0.44";
35033
+ const version = "1.0.46-alpha.0";
35015
35034
 
35016
35035
  export { AXIS_ELEMENT_NAME, AbstractComponent, ArcInfo, ArcLabel, ArcSegment, AxisStateValue, BasePlayer, Brush, CheckBox, CircleAxis, CircleAxisGrid, CircleCrosshair, ColorContinuousLegend, ContinuousPlayer, DEFAULT_ITEM_SPACE_COL, DEFAULT_ITEM_SPACE_ROW, DEFAULT_LABEL_SPACE, DEFAULT_PAGER_SPACE, DEFAULT_SHAPE_SIZE, DEFAULT_SHAPE_SPACE, DEFAULT_STATES$1 as DEFAULT_STATES, DEFAULT_TITLE_SPACE, DEFAULT_VALUE_SPACE, DataLabel, DataZoom, DataZoomActiveTag, DirectionEnum, DiscreteLegend, DiscretePlayer, EmptyTip, GroupTransition, IDataZoomEvent, IDataZoomInteractiveEvent, IMarkAreaLabelPosition, IMarkCommonArcLabelPosition, IMarkLineLabelPosition, IMarkPointItemPosition, IOperateType, Indicator, LEGEND_ELEMENT_NAME, LabelBase, LegendEvent, LegendStateValue, LineAxis, LineAxisGrid, LineCrosshair, LineLabel, LinkPath, MarkArcArea, MarkArcLine, MarkArea, MarkLine, MarkPoint, Pager, PlayerEventEnum, PolygonCrosshair, PolygonSectorCrosshair, PopTip, Radio, RectCrosshair, RectLabel, SLIDER_ELEMENT_NAME, ScrollBar, SectorCrosshair, Segment, SeriesNumberCellStateValue, SeriesNumberEvent, SizeContinuousLegend, Slider, StoryLabelItem, Switch, SymbolLabel, TableSeriesNumber, Tag, Timeline, Title, Tooltip, TopZIndex, VTag, WeatherBox, alignTextInLine, angle, angleLabelOrientAttribute, angleTo, cartesianTicks, clampRadian, computeOffsetForlimit, continuousTicks, contrastAccessibilityChecker, convertDomainToTickData, createTextGraphicByType, deltaXYToAngle, fuzzyEqualNumber, getAxisBreakSymbolAttrs, getCircleLabelPosition, getCirclePoints, getCircleVerticalVector, getElMap, getHorizontalPath, getMarksByName, getNoneGroupMarksByName, getPolarAngleLabelPosition, getPolygonPath, getSizeHandlerPath, getTextAlignAttrOfVerticalDir, getTextType, getVerticalCoord, getVerticalPath, hasOverlap, htmlAttributeTransform, initTextMeasure, isInRange, isPostiveXAxis, isRichText, isVisible, labelSmartInvert, length, limitShapeInBounds, linearDiscreteTicks, loadPoptip, loadScrollbar, measureTextSize, normalize, polarAngleAxisDiscreteTicks, polarTicks, reactAttributeTransform, registerArcDataLabel, registerLineDataLabel, registerMarkArcAreaAnimate, registerMarkArcLineAnimate, registerMarkAreaAnimate, registerMarkLineAnimate, registerMarkPointAnimate, registerRectDataLabel, registerSymbolDataLabel, removeRepeatPoint, richTextAttributeTransform, scale, scrollbarModule, setPoptipTheme, smartInvertStrategy, tan2AngleToAngle, textIntersect, ticks, traverseGroup, version };
package/es/axis/base.js CHANGED
@@ -341,4 +341,4 @@ export class AxisBase extends AnimateComponent {
341
341
  super.release(), this._prevInnerView = null, this._innerView = null;
342
342
  }
343
343
  }
344
- //# sourceMappingURL=base.js.map
344
+ //# sourceMappingURL=base.js.map
package/es/axis/circle.js CHANGED
@@ -181,4 +181,4 @@ export class CircleAxis extends AxisBase {
181
181
  }
182
182
 
183
183
  CircleAxis.defaultAttributes = DEFAULT_AXIS_THEME, mixin(CircleAxis, CircleAxisMixin);
184
- //# sourceMappingURL=circle.js.map
184
+ //# sourceMappingURL=circle.js.map
package/es/axis/config.js CHANGED
@@ -79,4 +79,4 @@ export const DEFAULT_AXIS_BREAK_SYMBOL_STYLE = {
79
79
  lineWidth: 1,
80
80
  zIndex: 1
81
81
  };
82
- //# sourceMappingURL=config.js.map
82
+ //# sourceMappingURL=config.js.map
@@ -27,4 +27,4 @@ export const DEFAULT_STATES = {
27
27
  };
28
28
 
29
29
  export const TopZIndex = 999;
30
- //# sourceMappingURL=constant.js.map
30
+ //# sourceMappingURL=constant.js.map
package/es/axis/index.js CHANGED
@@ -11,4 +11,4 @@ export * from "./constant";
11
11
  export * from "./util";
12
12
 
13
13
  export * from "./tick-data";
14
- //# sourceMappingURL=index.js.map
14
+ //# sourceMappingURL=index.js.map
package/es/axis/line.js CHANGED
@@ -414,4 +414,4 @@ export class LineAxis extends AxisBase {
414
414
  }
415
415
 
416
416
  LineAxis.defaultAttributes = DEFAULT_AXIS_THEME, mixin(LineAxis, LineAxisMixin);
417
- //# sourceMappingURL=line.js.map
417
+ //# sourceMappingURL=line.js.map
@@ -21,4 +21,4 @@ export function loadLineAxisGridComponent() {
21
21
  export function loadCircleAxisGridComponent() {
22
22
  registerGroup(), registerPath();
23
23
  }
24
- //# sourceMappingURL=register.js.map
24
+ //# sourceMappingURL=register.js.map
package/es/axis/type.js CHANGED
@@ -1,2 +1,2 @@
1
1
  export { };
2
- //# sourceMappingURL=type.js.map
2
+ //# sourceMappingURL=type.js.map
package/es/axis/util.js CHANGED
@@ -99,4 +99,4 @@ export function hasOverlap(items, pad) {
99
99
  textIntersect(a, b, pad)) return !0;
100
100
  return !1;
101
101
  }
102
- //# sourceMappingURL=util.js.map
102
+ //# sourceMappingURL=util.js.map
@@ -24,4 +24,5 @@ export const DEFAULT_BRUSH_ATTRIBUTES = {
24
24
  }
25
25
  };
26
26
 
27
- export const DEFAULT_SIZE_THRESHOLD = 5;
27
+ export const DEFAULT_SIZE_THRESHOLD = 5;
28
+ //# sourceMappingURL=config.js.map
package/es/core/type.js CHANGED
@@ -1,2 +1 @@
1
- export { };
2
- //# sourceMappingURL=type.js.map
1
+ export { };
@@ -33,4 +33,5 @@ RectCrosshair.defaultAttributes = {
33
33
  fill: "#b2bacf",
34
34
  opacity: .2
35
35
  }
36
- };
36
+ };
37
+ //# sourceMappingURL=rect.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/data-zoom/config.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oBAAoB,GAE/B,yiBAAyiB,CAAC;AAC5iB,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,MAAM;IAClB,WAAW,EAAE,IAAI;IACjB,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,CAAC;IACV,OAAO,EAAE,CAAC;IACV,SAAS,EAAE,UAAU;IACrB,SAAS,EAAE,CAAC;IACZ,QAAQ,EAAE,IAAI;IACd,eAAe,EAAE;QACf,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE,CAAC;QACZ,YAAY,EAAE,CAAC;KAChB;IACD,aAAa,EAAE;QACb,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,GAAG;KACjB;IACD,oBAAoB,EAAE;QACpB,IAAI,EAAE;YACJ,OA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EAAE,EAAE;YACZ,IAAI,EAAE,SAAS;SAChB;KACF;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,CAAC;QACV,SAAS,EAAE;YACT,QAAQ,EAAE,EAAE;YACZ,IAAI,EAAE,SAAS;SAChB;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,UAAU,EAAE;QACV,KAAK,EAAE,CAAC;QACR,kBAAkB,EAAE,CAAC;QACrB,aAAa,EAAE,CAAC;QAChB,QAAQ,EAAE,WAAW;QACrB,MAAM,EAAE,WAAW;KACpB;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,EAAE,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC;QAC3B,MAAM,EAAE,WAAW;QACnB,aAAa,EAAE,CAAC;QAChB,QAAQ,EAAE,WAAW;QACrB,kBAAkB,EAAE,CAAC;KACtB;CACF,CAAC;AAGF,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,UAAU,EAAE,CAAC;IACb,OAAO,EAAE,CAAC;IACV,QAAQ,EAAE,CAAC;IACX,kBAAkB,EAAE,CAAC;IACrB,eAAe,EAAE,CAAC;IAClB,OAAO,EAAE,CAAC;IACV,WAAW,EAAE,CAAC;IACd,WAAW,EAAE,GAAG;CACjB,CAAC","file":"config.js","sourcesContent":["export const DEFAULT_HANDLER_PATH =\n // eslint-disable-next-line max-len\n 'M -0.0544 0.25 C -0.0742 0.25 -0.0901 0.234 -0.0901 0.2143 L -0.0901 -0.1786 C -0.0901 -0.1983 -0.0742 -0.2143 -0.0544 -0.2143 L -0.0187 -0.2143 L -0.0187 -0.5 L 0.017 -0.5 L 0.017 -0.2143 L 0.0527 -0.2143 C 0.0724 -0.2143 0.0884 -0.1983 0.0884 -0.1786 L 0.0884 0.2143 C 0.0884 0.234 0.0724 0.25 0.0527 0.25 L 0.017 0.25 L 0.017 0.5 L -0.0187 0.5 L -0.0187 0.25 L -0.0544 0.25 Z M -0.0187 -0.1429 L -0.0544 -0.1429 L -0.0544 0.1786 L -0.0187 0.1786 L -0.0187 -0.1429 Z M 0.0527 -0.1429 L 0.017 -0.1429 L 0.017 0.1786 L 0.0527 0.1786 L 0.0527 -0.1429 Z';\nexport const DEFAULT_DATA_ZOOM_ATTRIBUTES = {\n orient: 'bottom',\n showDetail: 'auto',\n brushSelect: true,\n zoomLock: false,\n minSpan: 0,\n maxSpan: 1,\n delayType: 'throttle',\n delayTime: 0,\n realTime: true,\n backgroundStyle: {\n fill: 'white',\n stroke: '#D1DBEE',\n lineWidth: 1,\n cornerRadius: 2\n },\n dragMaskStyle: {\n fill: '#B0C8F9',\n fillOpacity: 0.2\n },\n backgroundChartStyle: {\n area: {\n visible: true,\n stroke: '#D1DBEE',\n lineWidth: 1,\n fill: '#F6F8FC'\n },\n line: {\n visible: true,\n stroke: '#D1DBEE',\n lineWidth: 1\n }\n },\n selectedBackgroundStyle: {\n fill: '#B0C8F9',\n fillOpacity: 0.5\n },\n selectedBackgroundChartStyle: {\n area: {\n visible: true,\n stroke: '#B0C8F9',\n lineWidth: 1,\n fill: '#fbb934'\n },\n line: {\n visible: true,\n stroke: '#fbb934',\n lineWidth: 1\n }\n },\n middleHandlerStyle: {\n visible: true,\n background: {\n size: 8,\n style: {\n fill: 'white',\n stroke: '#B0C8F9',\n cornerRadius: 2\n }\n },\n icon: {\n size: 6,\n fill: 'white',\n stroke: '#B0C8F9',\n symbolType:\n // eslint-disable-next-line max-len\n 'M 0.3 -0.5 C 0.41 -0.5 0.5 -0.41 0.5 -0.3 C 0.5 -0.3 0.5 0.3 0.5 0.3 C 0.5 0.41 0.41 0.5 0.3 0.5 C 0.3 0.5 -0.3 0.5 -0.3 0.5 C -0.41 0.5 -0.5 0.41 -0.5 0.3 C -0.5 0.3 -0.5 -0.3 -0.5 -0.3 C -0.5 -0.41 -0.41 -0.5 -0.3 -0.5 C -0.3 -0.5 0.3 -0.5 0.3 -0.5 Z',\n lineWidth: 0.5\n }\n },\n startHandlerStyle: {\n visible: true,\n triggerMinSize: 0,\n symbolType: DEFAULT_HANDLER_PATH,\n fill: 'white',\n stroke: '#B0C8F9',\n lineWidth: 0.5\n },\n endHandlerStyle: {\n visible: true,\n triggerMinSize: 0,\n symbolType: DEFAULT_HANDLER_PATH,\n fill: 'white',\n stroke: '#B0C8F9',\n lineWidth: 0.5\n },\n startTextStyle: {\n padding: 4,\n textStyle: {\n fontSize: 10,\n fill: '#6F6F6F'\n }\n },\n endTextStyle: {\n padding: 4,\n textStyle: {\n fontSize: 10,\n fill: '#6F6F6F'\n }\n }\n};\n\nexport const DEFAULT_HANDLER_ATTR_MAP = {\n horizontal: {\n angle: 0,\n strokeBoundsBuffer: 0,\n boundsPadding: 2,\n pickMode: 'imprecise',\n cursor: 'ew-resize'\n },\n vertical: {\n angle: 90 * (Math.PI / 180),\n cursor: 'ns-resize',\n boundsPadding: 2,\n pickMode: 'imprecise',\n strokeBoundsBuffer: 0\n }\n};\n\n// 层级\nexport const LAYOUT_LEVEL = {\n background: 0, // 背景\n preview: 1, // 背景图表\n dragMask: 2, // 背景选框\n selectedBackground: 3, // 选中背景\n selectedPreview: 4, // 选中背景图表\n handler: 5, // 手柄\n handlerText: 5, // 文字\n handlerMask: 999 // 热区\n};\n"]}
1
+ {"version":3,"sources":["../src/data-zoom/config.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oBAAoB,GAE/B,yiBAAyiB,CAAC;AAC5iB,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,MAAM;IAClB,WAAW,EAAE,IAAI;IACjB,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,CAAC;IACV,OAAO,EAAE,CAAC;IACV,SAAS,EAAE,UAAU;IACrB,SAAS,EAAE,CAAC;IACZ,QAAQ,EAAE,IAAI;IACd,eAAe,EAAE;QACf,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE,CAAC;QACZ,Y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AAI,EAAE,OAAO;QACb,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE,GAAG;KACf;IACD,cAAc,EAAE;QACd,OAAO,EAAE,CAAC;QACV,SAAS,EAAE;YACT,QAAQ,EAAE,EAAE;YACZ,IAAI,EAAE,SAAS;SAChB;KACF;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,CAAC;QACV,SAAS,EAAE;YACT,QAAQ,EAAE,EAAE;YACZ,IAAI,EAAE,SAAS;SAChB;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,UAAU,EAAE;QACV,KAAK,EAAE,CAAC;QACR,kBAAkB,EAAE,CAAC;QACrB,aAAa,EAAE,CAAC;QAChB,QAAQ,EAAE,WAAW;QACrB,MAAM,EAAE,WAAW;KACpB;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,EAAE,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC;QAC3B,MAAM,EAAE,WAAW;QACnB,aAAa,EAAE,CAAC;QAChB,QAAQ,EAAE,WAAW;QACrB,kBAAkB,EAAE,CAAC;KACtB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,UAAU,EAAE,CAAC;IACb,OAAO,EAAE,CAAC;IACV,QAAQ,EAAE,CAAC;IACX,kBAAkB,EAAE,CAAC;IACrB,eAAe,EAAE,CAAC;IAClB,OAAO,EAAE,CAAC;IACV,WAAW,EAAE,CAAC;IACd,WAAW,EAAE,GAAG;CACjB,CAAC","file":"config.js","sourcesContent":["export const DEFAULT_HANDLER_PATH =\n // eslint-disable-next-line max-len\n 'M -0.0544 0.25 C -0.0742 0.25 -0.0901 0.234 -0.0901 0.2143 L -0.0901 -0.1786 C -0.0901 -0.1983 -0.0742 -0.2143 -0.0544 -0.2143 L -0.0187 -0.2143 L -0.0187 -0.5 L 0.017 -0.5 L 0.017 -0.2143 L 0.0527 -0.2143 C 0.0724 -0.2143 0.0884 -0.1983 0.0884 -0.1786 L 0.0884 0.2143 C 0.0884 0.234 0.0724 0.25 0.0527 0.25 L 0.017 0.25 L 0.017 0.5 L -0.0187 0.5 L -0.0187 0.25 L -0.0544 0.25 Z M -0.0187 -0.1429 L -0.0544 -0.1429 L -0.0544 0.1786 L -0.0187 0.1786 L -0.0187 -0.1429 Z M 0.0527 -0.1429 L 0.017 -0.1429 L 0.017 0.1786 L 0.0527 0.1786 L 0.0527 -0.1429 Z';\nexport const DEFAULT_DATA_ZOOM_ATTRIBUTES = {\n orient: 'bottom',\n showDetail: 'auto',\n brushSelect: true,\n zoomLock: false,\n minSpan: 0,\n maxSpan: 1,\n delayType: 'throttle',\n delayTime: 0,\n realTime: true,\n backgroundStyle: {\n fill: 'white',\n stroke: '#D1DBEE',\n lineWidth: 1,\n cornerRadius: 2\n },\n dragMaskStyle: {\n fill: '#B0C8F9',\n fillOpacity: 0.2\n },\n backgroundChartStyle: {\n area: {\n visible: true,\n stroke: '#D1DBEE',\n lineWidth: 1,\n fill: '#F6F8FC'\n },\n line: {\n visible: true,\n stroke: '#D1DBEE',\n lineWidth: 1\n }\n },\n selectedBackgroundStyle: {\n fill: '#B0C8F9',\n fillOpacity: 0.5\n },\n selectedBackgroundChartStyle: {\n area: {\n visible: true,\n stroke: '#B0C8F9',\n lineWidth: 1,\n fill: '#fbb934'\n },\n line: {\n visible: true,\n stroke: '#fbb934',\n lineWidth: 1\n }\n },\n middleHandlerStyle: {\n visible: true,\n background: {\n size: 8,\n style: {\n fill: 'white',\n stroke: '#B0C8F9',\n cornerRadius: 2\n }\n },\n icon: {\n size: 6,\n fill: 'white',\n stroke: '#B0C8F9',\n symbolType:\n // eslint-disable-next-line max-len\n 'M 0.3 -0.5 C 0.41 -0.5 0.5 -0.41 0.5 -0.3 C 0.5 -0.3 0.5 0.3 0.5 0.3 C 0.5 0.41 0.41 0.5 0.3 0.5 C 0.3 0.5 -0.3 0.5 -0.3 0.5 C -0.41 0.5 -0.5 0.41 -0.5 0.3 C -0.5 0.3 -0.5 -0.3 -0.5 -0.3 C -0.5 -0.41 -0.41 -0.5 -0.3 -0.5 C -0.3 -0.5 0.3 -0.5 0.3 -0.5 Z',\n lineWidth: 0.5\n }\n },\n startHandlerStyle: {\n visible: true,\n triggerMinSize: 0,\n symbolType: DEFAULT_HANDLER_PATH,\n fill: 'white',\n stroke: '#B0C8F9',\n lineWidth: 0.5\n },\n endHandlerStyle: {\n visible: true,\n triggerMinSize: 0,\n symbolType: DEFAULT_HANDLER_PATH,\n fill: 'white',\n stroke: '#B0C8F9',\n lineWidth: 0.5\n },\n startTextStyle: {\n padding: 4,\n textStyle: {\n fontSize: 10,\n fill: '#6F6F6F'\n }\n },\n endTextStyle: {\n padding: 4,\n textStyle: {\n fontSize: 10,\n fill: '#6F6F6F'\n }\n }\n};\n\nexport const DEFAULT_HANDLER_ATTR_MAP = {\n horizontal: {\n angle: 0,\n strokeBoundsBuffer: 0,\n boundsPadding: 2,\n pickMode: 'imprecise',\n cursor: 'ew-resize'\n },\n vertical: {\n angle: 90 * (Math.PI / 180),\n cursor: 'ns-resize',\n boundsPadding: 2,\n pickMode: 'imprecise',\n strokeBoundsBuffer: 0\n }\n};\n\nexport const LAYOUT_LEVEL = {\n background: 0, // 背景\n preview: 1, // 背景图表\n dragMask: 2, // 背景选框\n selectedBackground: 3, // 选中背景\n selectedPreview: 4, // 选中背景图表\n handler: 5, // 手柄\n handlerText: 5, // 文字\n handlerMask: 999 // 热区\n};\n"]}
@@ -1,4 +1,4 @@
1
1
  export * from "./data-zoom";
2
2
 
3
3
  export * from "./type";
4
- //# sourceMappingURL=index.js.map
4
+ //# sourceMappingURL=index.js.map
@@ -174,4 +174,4 @@ export class DataZoomInteraction extends EventEmitter {
174
174
  this.emit(eventName, details);
175
175
  }
176
176
  }
177
- //# sourceMappingURL=interaction.js.map
177
+ //# sourceMappingURL=interaction.js.map
@@ -5,4 +5,4 @@ import { loadTagComponent } from "../tag/register";
5
5
  export function loadDataZoomComponent() {
6
6
  loadTagComponent(), registerRect(), registerSymbol(), registerArea(), registerLine();
7
7
  }
8
- //# sourceMappingURL=register.js.map
8
+ //# sourceMappingURL=register.js.map
@@ -481,4 +481,4 @@ export class DataZoomRenderer {
481
481
  labelShape.name = name, container.add(labelShape)), labelShape;
482
482
  }
483
483
  }
484
- //# sourceMappingURL=renderer.js.map
484
+ //# sourceMappingURL=renderer.js.map
@@ -17,4 +17,4 @@ export var IDataZoomEvent;
17
17
  !function(IDataZoomEvent) {
18
18
  IDataZoomEvent.dataZoomChange = "dataZoomChange";
19
19
  }(IDataZoomEvent || (IDataZoomEvent = {}));
20
- //# sourceMappingURL=type.js.map
20
+ //# sourceMappingURL=type.js.map
@@ -9,4 +9,4 @@ export const isTextOverflow = (componentBoundsLike, textBounds, layout, isHorizo
9
9
  } else if (textBounds.y2 > componentBoundsLike.y2) return !0;
10
10
  return !1;
11
11
  };
12
- //# sourceMappingURL=utils.js.map
12
+ //# sourceMappingURL=utils.js.map
package/es/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const version = "1.0.44";
1
+ export declare const version = "1.0.46-alpha.0";
2
2
  export * from './core/base';
3
3
  export * from './core/type';
4
4
  export * from './scrollbar';
package/es/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export const version = "1.0.44";
1
+ export const version = "1.0.46-alpha.0";
2
2
 
3
3
  export * from "./core/base";
4
4
 
package/es/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC;AAEhC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"1.0.44\";\n\nexport * from './core/base';\nexport * from './core/type';\nexport * from './scrollbar';\nexport * from './tag';\nexport * from './poptip';\nexport * from './crosshair';\nexport * from './label';\nexport * from './axis';\nexport * from './axis/grid';\nexport * from './segment';\nexport * from './data-zoom';\nexport * from './marker';\nexport * from './pager';\nexport * from './legend';\nexport * from './title';\nexport * from './indicator';\nexport * from './slider';\nexport * from './link-path';\nexport * from './player';\nexport * from './brush';\nexport * from './tooltip';\nexport * from './timeline';\nexport * from './interface';\nexport * from './jsx';\nexport * from './checkbox';\nexport * from './radio';\nexport * from './empty-tip';\nexport * from './weather';\nexport * from './util';\nexport * from './switch';\nexport * from './label-item';\nexport * from './table-series-number';\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,OAAO,GAAG,gBAAgB,CAAC;AAExC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"1.0.46-alpha.0\";\n\nexport * from './core/base';\nexport * from './core/type';\nexport * from './scrollbar';\nexport * from './tag';\nexport * from './poptip';\nexport * from './crosshair';\nexport * from './label';\nexport * from './axis';\nexport * from './axis/grid';\nexport * from './segment';\nexport * from './data-zoom';\nexport * from './marker';\nexport * from './pager';\nexport * from './legend';\nexport * from './title';\nexport * from './indicator';\nexport * from './slider';\nexport * from './link-path';\nexport * from './player';\nexport * from './brush';\nexport * from './tooltip';\nexport * from './timeline';\nexport * from './interface';\nexport * from './jsx';\nexport * from './checkbox';\nexport * from './radio';\nexport * from './empty-tip';\nexport * from './weather';\nexport * from './util';\nexport * from './switch';\nexport * from './label-item';\nexport * from './table-series-number';\n"]}
@@ -21,4 +21,5 @@ export const DEFAULT_INDICATOR_THEME = {
21
21
  textAlign: "center"
22
22
  }
23
23
  }
24
- };
24
+ };
25
+ //# sourceMappingURL=config.js.map
@@ -1,4 +1,3 @@
1
1
  export * from "./indicator";
2
2
 
3
- export * from "./type";
4
- //# sourceMappingURL=index.js.map
3
+ export * from "./type";
package/es/label/base.js CHANGED
@@ -566,4 +566,4 @@ LabelBase.defaultAttributes = {
566
566
  offset: 0,
567
567
  pickable: !1
568
568
  };
569
- //# sourceMappingURL=base.js.map
569
+ //# sourceMappingURL=base.js.map
@@ -5,4 +5,4 @@ export const registerLabelComponent = (type, LabelClass) => {
5
5
  };
6
6
 
7
7
  export const getLabelComponent = type => labelComponentMap[type];
8
- //# sourceMappingURL=data-label-register.js.map
8
+ //# sourceMappingURL=data-label-register.js.map
@@ -67,4 +67,4 @@ export class DataLabel extends AbstractComponent {
67
67
  DataLabel.defaultAttributes = {
68
68
  pickable: !1
69
69
  };
70
- //# sourceMappingURL=dataLabel.js.map
70
+ //# sourceMappingURL=dataLabel.js.map
package/es/label/index.js CHANGED
@@ -11,4 +11,4 @@ export * from "./base";
11
11
  export * from "./arc";
12
12
 
13
13
  export * from "./dataLabel";
14
- //# sourceMappingURL=index.js.map
14
+ //# sourceMappingURL=index.js.map
package/es/label/line.js CHANGED
@@ -55,4 +55,4 @@ LineLabel.defaultAttributes = {
55
55
  export const registerLineDataLabel = () => {
56
56
  registerLabelComponent("line", LineLabel), registerLabelComponent("area", LineLabel);
57
57
  };
58
- //# sourceMappingURL=line.js.map
58
+ //# sourceMappingURL=line.js.map
@@ -36,4 +36,4 @@ PolygonLabel.defaultAttributes = {
36
36
  position: "center",
37
37
  offset: 6
38
38
  };
39
- //# sourceMappingURL=polygon.js.map
39
+ //# sourceMappingURL=polygon.js.map
package/es/label/rect.js CHANGED
@@ -55,4 +55,4 @@ RectLabel.tag = "rect-label", RectLabel.defaultAttributes = {
55
55
  export const registerRectDataLabel = () => {
56
56
  registerLabelComponent("rect", RectLabel);
57
57
  };
58
- //# sourceMappingURL=rect.js.map
58
+ //# sourceMappingURL=rect.js.map
@@ -9,4 +9,4 @@ export function loadLabelComponent() {
9
9
  export function loadLabelAnimate() {
10
10
  registerLabelAnimate();
11
11
  }
12
- //# sourceMappingURL=register.js.map
12
+ //# sourceMappingURL=register.js.map
@@ -39,4 +39,4 @@ SymbolLabel.defaultAttributes = {
39
39
  export const registerSymbolDataLabel = () => {
40
40
  registerLabelComponent("symbol", SymbolLabel), registerLabelComponent("line-data", SymbolLabel);
41
41
  };
42
- //# sourceMappingURL=symbol.js.map
42
+ //# sourceMappingURL=symbol.js.map
package/es/label/type.js CHANGED
@@ -1,2 +1 @@
1
- export { };
2
- //# sourceMappingURL=type.js.map
1
+ export { };
package/es/label/util.js CHANGED
@@ -158,4 +158,4 @@ function getIntersection(dx, dy, cx, cy, w, h) {
158
158
  export function getAlignOffset(align) {
159
159
  return "left" === align ? 0 : "right" === align ? 1 : .5;
160
160
  }
161
- //# sourceMappingURL=util.js.map
161
+ //# sourceMappingURL=util.js.map
@@ -1,4 +1,4 @@
1
1
  export * from "./label-item";
2
2
 
3
3
  export * from "./type";
4
- //# sourceMappingURL=index.js.map
4
+ //# sourceMappingURL=index.js.map
@@ -156,4 +156,4 @@ StoryLabelItem.defaultAttributes = {
156
156
  },
157
157
  theme: "default"
158
158
  };
159
- //# sourceMappingURL=label-item.js.map
159
+ //# sourceMappingURL=label-item.js.map
@@ -3,4 +3,4 @@ import { registerGroup, registerSymbol, registerLine, registerText } from "@visa
3
3
  export function loadLabelItemComponent() {
4
4
  registerGroup(), registerText(), registerSymbol(), registerLine();
5
5
  }
6
- //# sourceMappingURL=register.js.map
6
+ //# sourceMappingURL=register.js.map
@@ -1,2 +1,2 @@
1
1
  export { };
2
- //# sourceMappingURL=type.js.map
2
+ //# sourceMappingURL=type.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/vrender-components",
3
- "version": "1.0.44",
3
+ "version": "1.0.46-alpha.0",
4
4
  "description": "components library for dp visualization",
5
5
  "sideEffects": false,
6
6
  "main": "cjs/index.js",
@@ -14,9 +14,9 @@
14
14
  "dependencies": {
15
15
  "@visactor/vutils": "~1.0.12",
16
16
  "@visactor/vscale": "~1.0.12",
17
- "@visactor/vrender-core": "1.0.44",
18
- "@visactor/vrender-kits": "1.0.44",
19
- "@visactor/vrender-animate": "1.0.44"
17
+ "@visactor/vrender-core": "1.0.46-alpha.0",
18
+ "@visactor/vrender-kits": "1.0.46-alpha.0",
19
+ "@visactor/vrender-animate": "1.0.46-alpha.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@rushstack/eslint-patch": "~1.1.4",
@@ -30,9 +30,9 @@
30
30
  "vite": "3.2.6",
31
31
  "typescript": "4.9.5",
32
32
  "cross-env": "^7.0.3",
33
- "@internal/ts-config": "0.0.1",
33
+ "@internal/bundler": "0.0.1",
34
34
  "@internal/eslint-config": "0.0.1",
35
- "@internal/bundler": "0.0.1"
35
+ "@internal/ts-config": "0.0.1"
36
36
  },
37
37
  "keywords": [
38
38
  "VisActor",