@visactor/vrender-components 0.21.0-alpha.5 → 0.21.0-alpha.7

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.
@@ -188,5 +188,4 @@ class Brush extends base_1.AbstractComponent {
188
188
  }
189
189
  }
190
190
 
191
- exports.Brush = Brush, Brush.defaultAttributes = config_1.DEFAULT_BRUSH_ATTRIBUTES;
192
- //# sourceMappingURL=brush.js.map
191
+ exports.Brush = Brush, Brush.defaultAttributes = config_1.DEFAULT_BRUSH_ATTRIBUTES;
package/cjs/brush/type.js CHANGED
@@ -8,4 +8,5 @@ Object.defineProperty(exports, "__esModule", {
8
8
  IOperateType.drawStart = "drawStart", IOperateType.drawEnd = "drawEnd", IOperateType.drawing = "drawing",
9
9
  IOperateType.moving = "moving", IOperateType.moveStart = "moveStart", IOperateType.moveEnd = "moveEnd",
10
10
  IOperateType.brushClear = "brushClear";
11
- }(IOperateType = exports.IOperateType || (exports.IOperateType = {}));
11
+ }(IOperateType = exports.IOperateType || (exports.IOperateType = {}));
12
+ //# sourceMappingURL=type.js.map
@@ -36,5 +36,4 @@ exports.PolygonCrosshair = PolygonCrosshair, PolygonCrosshair.defaultAttributes
36
36
  lineWidth: 1,
37
37
  lineDash: [ 2 ]
38
38
  }
39
- };
40
- //# sourceMappingURL=polygon.js.map
39
+ };
@@ -117,4 +117,5 @@ exports.DEFAULT_DATA_ZOOM_ATTRIBUTES = {
117
117
  pickMode: "imprecise",
118
118
  strokeBoundsBuffer: 0
119
119
  }
120
- };
120
+ };
121
+ //# sourceMappingURL=config.js.map
package/cjs/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const version = "0.21.0-alpha.5";
1
+ export declare const version = "0.21.0-alpha.7";
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 = "0.21.0-alpha.5", __exportStar(require("./core/base"), exports),
20
+ }), exports.version = void 0, exports.version = "0.21.0-alpha.7", __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,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,yCAAuB","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"0.21.0-alpha.5\";\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 './util';\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,yCAAuB","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"0.21.0-alpha.7\";\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 './util';\n"]}
package/dist/index.es.js CHANGED
@@ -745,6 +745,11 @@ let DefaultGlobal = class {
745
745
  };
746
746
  DefaultGlobal = __decorate$P([injectable(), __param$z(0, inject(ContributionProvider)), __param$z(0, named(EnvContribution)), __metadata$E("design:paramtypes", [Object])], DefaultGlobal);
747
747
 
748
+ var MeasureModeEnum;
749
+ !function (MeasureModeEnum) {
750
+ MeasureModeEnum[MeasureModeEnum.estimate = 0] = "estimate", MeasureModeEnum[MeasureModeEnum.actualBounding = 1] = "actualBounding", MeasureModeEnum[MeasureModeEnum.fontBounding = 2] = "fontBounding";
751
+ }(MeasureModeEnum || (MeasureModeEnum = {}));
752
+
748
753
  const circleThreshold = tau - 1e-8;
749
754
  class BoundsContext {
750
755
  constructor(bounds) {
@@ -2033,7 +2038,8 @@ const DefaultTextStyle = {
2033
2038
  suffixPosition: "end",
2034
2039
  underlineDash: [],
2035
2040
  underlineOffset: 0,
2036
- disableAutoClipedPoptip: void 0
2041
+ disableAutoClipedPoptip: void 0,
2042
+ measureMode: MeasureModeEnum.fontBounding
2037
2043
  };
2038
2044
  const DefaultPickStyle = {
2039
2045
  pickStrokeBuffer: 0
@@ -2428,22 +2434,10 @@ let ATextMeasure = class {
2428
2434
  }
2429
2435
  measureTextBoundADscentEstimate(options) {
2430
2436
  var _a;
2431
- const fontSize = null !== (_a = options.fontSize) && void 0 !== _a ? _a : DefaultTextStyle.fontSize,
2432
- {
2433
- textBaseline: textBaseline
2434
- } = options;
2435
- return "bottom" === textBaseline ? {
2436
- ascent: fontSize,
2437
- descent: 0
2438
- } : "middle" === textBaseline ? {
2439
- ascent: fontSize / 2,
2440
- descent: fontSize / 2
2441
- } : "alphabetic" === textBaseline ? {
2437
+ const fontSize = null !== (_a = options.fontSize) && void 0 !== _a ? _a : DefaultTextStyle.fontSize;
2438
+ return {
2442
2439
  ascent: .79 * fontSize,
2443
2440
  descent: .21 * fontSize
2444
- } : {
2445
- ascent: 0,
2446
- descent: fontSize
2447
2441
  };
2448
2442
  }
2449
2443
  measureTextBoundLeftRightEstimate(options) {
@@ -2463,11 +2457,42 @@ let ATextMeasure = class {
2463
2457
  right: fontSize
2464
2458
  };
2465
2459
  }
2466
- measureTextPixelADscentAndWidth(text, options) {
2460
+ measureTextPixelADscentAndWidth(text, options, mode) {
2467
2461
  if (!this.context) return Object.assign(Object.assign({}, this.measureTextBoundADscentEstimate(options)), {
2468
2462
  width: this.estimate(text, options).width
2469
2463
  });
2470
2464
  const out = this._measureTextWithoutAlignBaseline(text, options, !0);
2465
+ if (mode === MeasureModeEnum.actualBounding) return {
2466
+ ascent: out.actualBoundingBoxAscent,
2467
+ descent: out.actualBoundingBoxDescent,
2468
+ width: out.width
2469
+ };
2470
+ if (mode === MeasureModeEnum.estimate) return Object.assign(Object.assign({}, this.measureTextBoundADscentEstimate(options)), {
2471
+ width: out.width
2472
+ });
2473
+ if (mode === MeasureModeEnum.fontBounding) {
2474
+ const {
2475
+ lineHeight = options.fontSize
2476
+ } = options;
2477
+ let ratio = 1;
2478
+ if (lineHeight) {
2479
+ ratio = lineHeight / (out.fontBoundingBoxAscent + out.fontBoundingBoxDescent);
2480
+ }
2481
+ let ascent = out.fontBoundingBoxAscent * ratio,
2482
+ descent = out.fontBoundingBoxDescent * ratio;
2483
+ if (out.actualBoundingBoxDescent && descent < out.actualBoundingBoxDescent) {
2484
+ const delta = out.actualBoundingBoxDescent - descent;
2485
+ descent += delta, ascent -= delta;
2486
+ } else if (out.actualBoundingBoxAscent && ascent < out.actualBoundingBoxAscent) {
2487
+ const delta = out.actualBoundingBoxAscent - ascent;
2488
+ ascent += delta, descent -= delta;
2489
+ }
2490
+ return {
2491
+ ascent: ascent,
2492
+ descent: descent,
2493
+ width: out.width
2494
+ };
2495
+ }
2471
2496
  return {
2472
2497
  ascent: out.actualBoundingBoxAscent,
2473
2498
  descent: out.actualBoundingBoxDescent,
@@ -9542,15 +9567,19 @@ class CanvasTextLayout {
9542
9567
  GetLayoutByLines(lines, textAlign, textBaseline, lineHeight) {
9543
9568
  let suffix = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : "";
9544
9569
  let wordBreak = arguments.length > 5 ? arguments[5] : undefined;
9545
- let lineWidth = arguments.length > 6 ? arguments[6] : undefined;
9546
- let suffixPosition = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : "end";
9570
+ let params = arguments.length > 6 ? arguments[6] : undefined;
9571
+ const {
9572
+ lineWidth: lineWidth,
9573
+ suffixPosition = "end",
9574
+ measureMode = MeasureModeEnum.actualBounding
9575
+ } = null != params ? params : {};
9547
9576
  lines = lines.map(l => l.toString());
9548
9577
  const linesLayout = [],
9549
9578
  bboxWH = [0, 0];
9550
9579
  if ("number" == typeof lineWidth && lineWidth !== 1 / 0) {
9551
9580
  let width;
9552
9581
  for (let i = 0, len = lines.length; i < len; i++) {
9553
- const metrics = this.textMeasure.measureTextPixelADscentAndWidth(lines[i], this.textOptions);
9582
+ const metrics = this.textMeasure.measureTextPixelADscentAndWidth(lines[i], this.textOptions, measureMode);
9554
9583
  width = Math.min(metrics.width, lineWidth), linesLayout.push({
9555
9584
  str: metrics.width <= lineWidth ? lines[i].toString() : this.textMeasure.clipTextWithSuffix(lines[i], this.textOptions, width, suffix, wordBreak, suffixPosition).str,
9556
9585
  width: width,
@@ -9560,19 +9589,20 @@ class CanvasTextLayout {
9560
9589
  }
9561
9590
  bboxWH[0] = lineWidth;
9562
9591
  } else {
9563
- let width, text;
9564
- lineWidth = 0;
9592
+ let width,
9593
+ text,
9594
+ _lineWidth = 0;
9565
9595
  for (let i = 0, len = lines.length; i < len; i++) {
9566
9596
  text = lines[i];
9567
- const metrics = this.textMeasure.measureTextPixelADscentAndWidth(lines[i], this.textOptions);
9568
- width = metrics.width, lineWidth = Math.max(lineWidth, width), linesLayout.push({
9597
+ const metrics = this.textMeasure.measureTextPixelADscentAndWidth(lines[i], this.textOptions, measureMode);
9598
+ width = metrics.width, _lineWidth = Math.max(_lineWidth, width), linesLayout.push({
9569
9599
  str: text,
9570
9600
  width: width,
9571
9601
  ascent: metrics.ascent,
9572
9602
  descent: metrics.descent
9573
9603
  });
9574
9604
  }
9575
- bboxWH[0] = lineWidth;
9605
+ bboxWH[0] = _lineWidth;
9576
9606
  }
9577
9607
  bboxWH[1] = linesLayout.length * lineHeight, bboxWH[0] = linesLayout.reduce((a, b) => Math.max(a, b.width), 0);
9578
9608
  const bbox = {
@@ -9730,6 +9760,9 @@ class Text extends Graphic {
9730
9760
  b = "horizontal" === direction ? this.updateHorizontalMultilineAABBBounds(text) : this.updateVerticalMultilineAABBBounds(text);
9731
9761
  return "horizontal" === direction && underlineOffset && this._AABBBounds.add(this._AABBBounds.x1, this._AABBBounds.y2 + underlineOffset), b;
9732
9762
  }
9763
+ guessLineHeightBuf(fontSize) {
9764
+ return fontSize ? .1 * fontSize : 0;
9765
+ }
9733
9766
  updateHorizontalMultilineAABBBounds(text) {
9734
9767
  var _a;
9735
9768
  const textTheme = this.getGraphicTheme(),
@@ -9744,12 +9777,14 @@ class Text extends Graphic {
9744
9777
  maxLineWidth: maxLineWidth,
9745
9778
  stroke = textTheme.stroke,
9746
9779
  wrap = textTheme.wrap,
9747
- ignoreBuf = textTheme.ignoreBuf,
9780
+ measureMode = textTheme.measureMode,
9748
9781
  lineWidth = textTheme.lineWidth,
9749
9782
  whiteSpace = textTheme.whiteSpace,
9750
- suffixPosition = textTheme.suffixPosition
9783
+ suffixPosition = textTheme.suffixPosition,
9784
+ ignoreBuf = textTheme.ignoreBuf
9751
9785
  } = attribute,
9752
- lineHeight = this.getLineHeight(attribute, textTheme);
9786
+ buf = ignoreBuf ? 0 : this.guessLineHeightBuf(fontSize),
9787
+ lineHeight = this.getLineHeight(attribute, textTheme) + buf;
9753
9788
  if ("normal" === whiteSpace || wrap) return this.updateWrapAABBBounds(text);
9754
9789
  if (!this.shouldUpdateShape() && (null === (_a = this.cache) || void 0 === _a ? void 0 : _a.layoutData)) {
9755
9790
  const bbox = this.cache.layoutData.bbox;
@@ -9759,8 +9794,13 @@ class Text extends Graphic {
9759
9794
  layoutData = new CanvasTextLayout(fontFamily, {
9760
9795
  fontSize: fontSize,
9761
9796
  fontWeight: fontWeight,
9762
- fontFamily: fontFamily
9763
- }, textMeasure).GetLayoutByLines(text, textAlign, textBaseline, lineHeight, !0 === ellipsis ? textTheme.ellipsis : ellipsis || void 0, !1, maxLineWidth, suffixPosition),
9797
+ fontFamily: fontFamily,
9798
+ lineHeight: lineHeight
9799
+ }, textMeasure).GetLayoutByLines(text, textAlign, textBaseline, lineHeight, !0 === ellipsis ? textTheme.ellipsis : ellipsis || void 0, !1, {
9800
+ lineWidth: maxLineWidth,
9801
+ suffixPosition: suffixPosition,
9802
+ measureMode: measureMode
9803
+ }),
9764
9804
  {
9765
9805
  bbox: bbox
9766
9806
  } = layoutData;
@@ -9781,11 +9821,13 @@ class Text extends Graphic {
9781
9821
  wordBreak = textTheme.wordBreak,
9782
9822
  fontWeight = textTheme.fontWeight,
9783
9823
  ignoreBuf = textTheme.ignoreBuf,
9824
+ measureMode = textTheme.measureMode,
9784
9825
  suffixPosition = textTheme.suffixPosition,
9785
9826
  heightLimit = 0,
9786
9827
  lineClamp: lineClamp
9787
9828
  } = this.attribute,
9788
- lineHeight = this.getLineHeight(this.attribute, textTheme);
9829
+ buf = ignoreBuf ? 0 : this.guessLineHeightBuf(fontSize),
9830
+ lineHeight = this.getLineHeight(this.attribute, textTheme) + buf;
9789
9831
  if (!this.shouldUpdateShape() && (null === (_a = this.cache) || void 0 === _a ? void 0 : _a.layoutData)) {
9790
9832
  const bbox = this.cache.layoutData.bbox;
9791
9833
  return this._AABBBounds.set(bbox.xOffset, bbox.yOffset, bbox.xOffset + bbox.width, bbox.yOffset + bbox.height), stroke && this._AABBBounds.expand(lineWidth / 2), this._AABBBounds;
@@ -9794,7 +9836,8 @@ class Text extends Graphic {
9794
9836
  textOptions = {
9795
9837
  fontSize: fontSize,
9796
9838
  fontWeight: fontWeight,
9797
- fontFamily: fontFamily
9839
+ fontFamily: fontFamily,
9840
+ lineHeight: lineHeight
9798
9841
  },
9799
9842
  layoutObj = new CanvasTextLayout(fontFamily, textOptions, textMeasure),
9800
9843
  lines = isArray(text) ? text.map(l => l.toString()) : [text.toString()],
@@ -9807,7 +9850,7 @@ class Text extends Graphic {
9807
9850
  let needCut = !0;
9808
9851
  if (i === lineCountLimit - 1) {
9809
9852
  const clip = textMeasure.clipTextWithSuffix(str, textOptions, maxLineWidth, ellipsis, !1, suffixPosition, i !== lines.length - 1),
9810
- matrics = textMeasure.measureTextPixelADscentAndWidth(clip.str, textOptions);
9853
+ matrics = textMeasure.measureTextPixelADscentAndWidth(clip.str, textOptions, measureMode);
9811
9854
  linesLayout.push({
9812
9855
  str: clip.str,
9813
9856
  width: clip.width,
@@ -9824,7 +9867,7 @@ class Text extends Graphic {
9824
9867
  } else clip.str = "", clip.width = 0;
9825
9868
  needCut = !1;
9826
9869
  }
9827
- const matrics = textMeasure.measureTextPixelADscentAndWidth(clip.str, textOptions);
9870
+ const matrics = textMeasure.measureTextPixelADscentAndWidth(clip.str, textOptions, measureMode);
9828
9871
  linesLayout.push({
9829
9872
  str: clip.str,
9830
9873
  width: clip.width,
@@ -9848,7 +9891,7 @@ class Text extends Graphic {
9848
9891
  for (let i = 0, len = lines.length; i < len; i++) {
9849
9892
  if (i === lineCountLimit - 1) {
9850
9893
  const clip = textMeasure.clipTextWithSuffix(lines[i], textOptions, maxLineWidth, ellipsis, !1, suffixPosition),
9851
- matrics = textMeasure.measureTextPixelADscentAndWidth(clip.str, textOptions);
9894
+ matrics = textMeasure.measureTextPixelADscentAndWidth(clip.str, textOptions, measureMode);
9852
9895
  linesLayout.push({
9853
9896
  str: clip.str,
9854
9897
  width: clip.width,
@@ -9858,7 +9901,7 @@ class Text extends Graphic {
9858
9901
  break;
9859
9902
  }
9860
9903
  text = lines[i], width = textMeasure.measureTextWidth(text, textOptions), lineWidth = Math.max(lineWidth, width);
9861
- const matrics = textMeasure.measureTextPixelADscentAndWidth(text, textOptions);
9904
+ const matrics = textMeasure.measureTextPixelADscentAndWidth(text, textOptions, measureMode);
9862
9905
  linesLayout.push({
9863
9906
  str: text,
9864
9907
  width: width,
@@ -29874,6 +29917,6 @@ EmptyTip.defaultAttributes = {
29874
29917
  }
29875
29918
  };
29876
29919
 
29877
- const version = "0.21.0-alpha.5";
29920
+ const version = "0.21.0-alpha.7";
29878
29921
 
29879
29922
  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, 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, PopTip, Radio, RectCrosshair, RectLabel, SLIDER_ELEMENT_NAME, ScrollBar, SectorCrosshair, Segment, SizeContinuousLegend, Slider, SymbolLabel, Tag, Timeline, Title, Tooltip, TopZIndex, VTag, 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/brush/brush.js CHANGED
@@ -194,5 +194,4 @@ export class Brush extends AbstractComponent {
194
194
  }
195
195
  }
196
196
 
197
- Brush.defaultAttributes = DEFAULT_BRUSH_ATTRIBUTES;
198
- //# sourceMappingURL=brush.js.map
197
+ Brush.defaultAttributes = DEFAULT_BRUSH_ATTRIBUTES;
package/es/brush/type.js CHANGED
@@ -4,4 +4,5 @@ export var IOperateType;
4
4
  IOperateType.drawStart = "drawStart", IOperateType.drawEnd = "drawEnd", IOperateType.drawing = "drawing",
5
5
  IOperateType.moving = "moving", IOperateType.moveStart = "moveStart", IOperateType.moveEnd = "moveEnd",
6
6
  IOperateType.brushClear = "brushClear";
7
- }(IOperateType || (IOperateType = {}));
7
+ }(IOperateType || (IOperateType = {}));
8
+ //# sourceMappingURL=type.js.map
@@ -34,5 +34,4 @@ PolygonCrosshair.defaultAttributes = {
34
34
  lineWidth: 1,
35
35
  lineDash: [ 2 ]
36
36
  }
37
- };
38
- //# sourceMappingURL=polygon.js.map
37
+ };
@@ -115,4 +115,5 @@ export const DEFAULT_HANDLER_ATTR_MAP = {
115
115
  pickMode: "imprecise",
116
116
  strokeBoundsBuffer: 0
117
117
  }
118
- };
118
+ };
119
+ //# sourceMappingURL=config.js.map
package/es/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const version = "0.21.0-alpha.5";
1
+ export declare const version = "0.21.0-alpha.7";
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 = "0.21.0-alpha.5";
1
+ export const version = "0.21.0-alpha.7";
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,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,QAAQ,CAAC","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"0.21.0-alpha.5\";\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 './util';\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,QAAQ,CAAC","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"0.21.0-alpha.7\";\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 './util';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/vrender-components",
3
- "version": "0.21.0-alpha.5",
3
+ "version": "0.21.0-alpha.7",
4
4
  "description": "components library for dp visualization",
5
5
  "sideEffects": false,
6
6
  "main": "cjs/index.js",
@@ -12,14 +12,14 @@
12
12
  "dist"
13
13
  ],
14
14
  "dependencies": {
15
- "@visactor/vutils": "~0.19.0",
16
- "@visactor/vscale": "~0.19.0",
17
- "@visactor/vrender-core": "0.21.0-alpha.5",
18
- "@visactor/vrender-kits": "0.21.0-alpha.5"
15
+ "@visactor/vutils": "~0.19.1",
16
+ "@visactor/vscale": "~0.19.1",
17
+ "@visactor/vrender-core": "0.21.0-alpha.7",
18
+ "@visactor/vrender-kits": "0.21.0-alpha.7"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@rushstack/eslint-patch": "~1.1.4",
22
- "@visactor/vscale": "~0.19.0",
22
+ "@visactor/vscale": "~0.19.1",
23
23
  "@types/jest": "^26.0.0",
24
24
  "jest": "^26.0.0",
25
25
  "jest-electron": "^0.1.12",
@@ -30,8 +30,8 @@
30
30
  "typescript": "4.9.5",
31
31
  "cross-env": "^7.0.3",
32
32
  "@internal/bundler": "0.0.1",
33
- "@internal/eslint-config": "0.0.1",
34
- "@internal/ts-config": "0.0.1"
33
+ "@internal/ts-config": "0.0.1",
34
+ "@internal/eslint-config": "0.0.1"
35
35
  },
36
36
  "keywords": [
37
37
  "VisActor",