@visactor/vrender-components 0.22.0-vstory.15 → 0.22.0-vstory.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/axis/util.js +2 -1
- package/cjs/brush/type.js +1 -2
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/index.es.js +79 -62
- package/es/axis/util.js +2 -1
- package/es/brush/type.js +1 -2
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +3 -3
package/cjs/axis/util.js
CHANGED
|
@@ -104,4 +104,5 @@ exports.getAxisBreakSymbolAttrs = getAxisBreakSymbolAttrs, exports.getElMap = ge
|
|
|
104
104
|
exports.getVerticalCoord = getVerticalCoord, exports.getCircleVerticalVector = getCircleVerticalVector,
|
|
105
105
|
exports.angleLabelOrientAttribute = angleLabelOrientAttribute, exports.getPolarAngleLabelPosition = getPolarAngleLabelPosition,
|
|
106
106
|
exports.getCirclePoints = getCirclePoints, exports.getPolygonPath = getPolygonPath,
|
|
107
|
-
exports.textIntersect = textIntersect, exports.hasOverlap = hasOverlap;
|
|
107
|
+
exports.textIntersect = textIntersect, exports.hasOverlap = hasOverlap;
|
|
108
|
+
//# sourceMappingURL=util.js.map
|
package/cjs/brush/type.js
CHANGED
|
@@ -8,5 +8,4 @@ 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 = {}));
|
|
12
|
-
//# sourceMappingURL=type.js.map
|
|
11
|
+
}(IOperateType = exports.IOperateType || (exports.IOperateType = {}));
|
package/cjs/index.d.ts
CHANGED
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.22.0-vstory.
|
|
20
|
+
}), exports.version = void 0, exports.version = "0.22.0-vstory.16", __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,kBAAkB,CAAC;AAE1C,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","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"0.22.0-vstory.
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACa,QAAA,OAAO,GAAG,kBAAkB,CAAC;AAE1C,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","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"0.22.0-vstory.16\";\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';\n"]}
|
package/dist/index.es.js
CHANGED
|
@@ -2037,10 +2037,10 @@ class CustomPath2D extends CurvePath {
|
|
|
2037
2037
|
x = current[5], y = current[6], controlX = current[3], controlY = current[4], this.bezierCurveTo(current[1] + l, current[2] + t, controlX + l, controlY + t, x + l, y + t);
|
|
2038
2038
|
break;
|
|
2039
2039
|
case "s":
|
|
2040
|
-
tempX = x + current[3], tempY = y + current[4], controlX = 2 * x - controlX, controlY = 2 * y - controlY, this.bezierCurveTo(controlX + l, controlY + t,
|
|
2040
|
+
tempX = x + current[3], tempY = y + current[4], null === previous[0].match(/[CcSs]/) ? (controlX = x, controlY = y) : (controlX = 2 * x - controlX, controlY = 2 * y - controlY), tempControlX = x + current[1], tempControlY = y + current[2], this.bezierCurveTo(controlX + l, controlY + t, tempControlX + l, tempControlY + t, tempX + l, tempY + t), controlX = tempControlX, controlY = tempControlY, x = tempX, y = tempY;
|
|
2041
2041
|
break;
|
|
2042
2042
|
case "S":
|
|
2043
|
-
tempX = current[3], tempY = current[4], controlX = 2 * x - controlX, controlY = 2 * y - controlY, this.bezierCurveTo(controlX + l, controlY + t,
|
|
2043
|
+
tempX = current[3], tempY = current[4], null === previous[0].match(/[CcSs]/) ? (controlX = x, controlY = y) : (controlX = 2 * x - controlX, controlY = 2 * y - controlY), tempControlX = current[1], tempControlY = current[2], this.bezierCurveTo(controlX + l, controlY + t, tempControlX + l, tempControlY + t, tempX + l, tempY + t), controlX = tempControlX, controlY = tempControlY, x = tempX, y = tempY;
|
|
2044
2044
|
break;
|
|
2045
2045
|
case "q":
|
|
2046
2046
|
tempX = x + current[3], tempY = y + current[4], controlX = x + current[1], controlY = y + current[2], this.quadraticCurveTo(controlX + l, controlY + t, tempX + l, tempY + t), x = tempX, y = tempY;
|
|
@@ -2423,6 +2423,7 @@ const DefaultTextAttribute = Object.assign(Object.assign(Object.assign({}, Defau
|
|
|
2423
2423
|
keepDirIn3d: !0
|
|
2424
2424
|
});
|
|
2425
2425
|
const DefaultRichTextAttribute = Object.assign(Object.assign(Object.assign({}, DefaultAttribute), DefaultTextStyle), {
|
|
2426
|
+
upgradeAttrs: null,
|
|
2426
2427
|
editable: !1,
|
|
2427
2428
|
editOptions: null,
|
|
2428
2429
|
ascentDescentMode: "actual",
|
|
@@ -5466,7 +5467,7 @@ class Graphic extends Node {
|
|
|
5466
5467
|
null != onStart && animate.onStart(onStart), null != onFrame && animate.onFrame(onFrame), null != onEnd && animate.onEnd(onEnd), null != onRemove && animate.onRemove(onRemove), animate.interpolateFunc = params.interpolate;
|
|
5467
5468
|
}
|
|
5468
5469
|
return this.animates.set(animate.id, animate), animate.onRemove(() => {
|
|
5469
|
-
this.animates.delete(animate.id);
|
|
5470
|
+
animate.stop(), this.animates.delete(animate.id);
|
|
5470
5471
|
}), animate;
|
|
5471
5472
|
}
|
|
5472
5473
|
onAttributeUpdate(context) {
|
|
@@ -5670,7 +5671,7 @@ class Graphic extends Node {
|
|
|
5670
5671
|
if (this.stage = stage, this.layer = layer, this.setStageToShadowRoot(stage, layer), this.animates && this.animates.size) {
|
|
5671
5672
|
const timeline = stage.getTimeline();
|
|
5672
5673
|
this.animates.forEach(a => {
|
|
5673
|
-
a.setTimeline(timeline);
|
|
5674
|
+
a.timeline === defaultTimeline && a.setTimeline(timeline);
|
|
5674
5675
|
});
|
|
5675
5676
|
}
|
|
5676
5677
|
this._onSetStage && this._onSetStage(this, stage, layer), application.graphicService.onSetStage(this, stage);
|
|
@@ -5774,7 +5775,7 @@ class Graphic extends Node {
|
|
|
5774
5775
|
return shadowRoot && (shadowRoot.shadowHost = this), this.shadowRoot = null != shadowRoot ? shadowRoot : application.graphicService.creator.shadowRoot(this), this.addUpdateBoundTag(), this.shadowRoot.setStage(this.stage, this.layer), this.shadowRoot;
|
|
5775
5776
|
}
|
|
5776
5777
|
detachShadow() {
|
|
5777
|
-
this.shadowRoot && (this.addUpdateBoundTag(), this.shadowRoot = null);
|
|
5778
|
+
this.shadowRoot && (this.addUpdateBoundTag(), this.shadowRoot.release(!0), this.shadowRoot = null);
|
|
5778
5779
|
}
|
|
5779
5780
|
toJson() {
|
|
5780
5781
|
return {
|
|
@@ -5826,7 +5827,7 @@ class Graphic extends Node {
|
|
|
5826
5827
|
});
|
|
5827
5828
|
}
|
|
5828
5829
|
release() {
|
|
5829
|
-
this.releaseStatus = "released", application.graphicService.onRelease(this);
|
|
5830
|
+
this.releaseStatus = "released", this.stopAnimates(), application.graphicService.onRelease(this);
|
|
5830
5831
|
}
|
|
5831
5832
|
_emitCustomEvent(type, context) {
|
|
5832
5833
|
var _a, _b;
|
|
@@ -6320,6 +6321,11 @@ class Group extends Graphic {
|
|
|
6320
6321
|
getNoWorkAnimateAttr() {
|
|
6321
6322
|
return Group.NOWORK_ANIMATE_ATTR;
|
|
6322
6323
|
}
|
|
6324
|
+
release(all) {
|
|
6325
|
+
all && this.forEachChildren(g => {
|
|
6326
|
+
g.release(all);
|
|
6327
|
+
}), super.release();
|
|
6328
|
+
}
|
|
6323
6329
|
}
|
|
6324
6330
|
Group.NOWORK_ANIMATE_ATTR = NOWORK_ANIMATE_ATTR;
|
|
6325
6331
|
function createGroup(attributes) {
|
|
@@ -8805,7 +8811,7 @@ class Paragraph {
|
|
|
8805
8811
|
this.width = width, "vertical" === this.direction && (this.widthOrigin = this.width, this.width = this.heightOrigin, this.height = this.widthOrigin);
|
|
8806
8812
|
}
|
|
8807
8813
|
drawBackground(ctx, top, ascent, deltaLeft, isLineFirst, textAlign, lineHeight) {
|
|
8808
|
-
if (!this.character.background || this.character.backgroundOpacity && !(this.character.backgroundOpacity > 0)) return;
|
|
8814
|
+
if ("" === this.text || "\n" === this.text || !this.character.background || this.character.backgroundOpacity && !(this.character.backgroundOpacity > 0)) return;
|
|
8809
8815
|
let baseline = top + ascent,
|
|
8810
8816
|
text = this.text,
|
|
8811
8817
|
left = this.left + deltaLeft;
|
|
@@ -8823,19 +8829,11 @@ class Paragraph {
|
|
|
8823
8829
|
}
|
|
8824
8830
|
}
|
|
8825
8831
|
}
|
|
8826
|
-
switch (this.character.script) {
|
|
8827
|
-
case "super":
|
|
8828
|
-
baseline -= this.ascent * (1 / 3);
|
|
8829
|
-
break;
|
|
8830
|
-
case "sub":
|
|
8831
|
-
baseline += this.descent / 2;
|
|
8832
|
-
}
|
|
8833
|
-
"vertical" === direction && (ctx.save(), ctx.rotateAbout(Math.PI / 2, left, baseline), ctx.translate(-this.heightOrigin || -this.lineHeight / 2, -this.descent / 2), ctx.translate(left, baseline), left = 0, baseline = 0);
|
|
8834
|
-
const fillStyle = ctx.fillStyle,
|
|
8835
|
-
globalAlpha = ctx.globalAlpha;
|
|
8836
|
-
ctx.fillStyle = this.character.background, void 0 !== this.character.backgroundOpacity && (ctx.globalAlpha = this.character.backgroundOpacity);
|
|
8837
8832
|
const lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + lineHeight);
|
|
8838
|
-
|
|
8833
|
+
return Object.assign(Object.assign({}, lrtb), {
|
|
8834
|
+
fillStyle: this.character.background,
|
|
8835
|
+
globalAlpha: this.character.backgroundOpacity
|
|
8836
|
+
});
|
|
8839
8837
|
}
|
|
8840
8838
|
draw(ctx, top, ascent, deltaLeft, isLineFirst, textAlign, lineHeight) {
|
|
8841
8839
|
let baseline = top + ascent,
|
|
@@ -9109,8 +9107,19 @@ class Line {
|
|
|
9109
9107
|
paragraph.ellipsis = "hide", otherParagraphWidth += paragraph.width;
|
|
9110
9108
|
}
|
|
9111
9109
|
}
|
|
9110
|
+
let fillStyle = "",
|
|
9111
|
+
globalAlpha = -1,
|
|
9112
|
+
currBgList = [];
|
|
9113
|
+
const bgList = [currBgList];
|
|
9112
9114
|
this.paragraphs.forEach((paragraph, index) => {
|
|
9113
|
-
paragraph instanceof RichTextIcon
|
|
9115
|
+
if (paragraph instanceof RichTextIcon) return;
|
|
9116
|
+
const data = paragraph.drawBackground(ctx, y, this.ascent, x, 0 === index, this.textAlign, this.height);
|
|
9117
|
+
data && (fillStyle === data.fillStyle && globalAlpha === data.globalAlpha || (currBgList = [], bgList.push(currBgList), fillStyle = data.fillStyle, globalAlpha = data.globalAlpha), currBgList.push(data));
|
|
9118
|
+
}), bgList.forEach(bg => {
|
|
9119
|
+
if (0 === bg.length) return;
|
|
9120
|
+
const data = bg[0],
|
|
9121
|
+
end = bg[bg.length - 1];
|
|
9122
|
+
ctx.fillStyle = data.fillStyle, ctx.globalAlpha = data.globalAlpha, ctx.fillRect(data.left, data.top, end.right - data.left, end.bottom - data.top);
|
|
9114
9123
|
}), this.paragraphs.forEach((paragraph, index) => {
|
|
9115
9124
|
if (paragraph instanceof RichTextIcon) return paragraph.setAttributes({
|
|
9116
9125
|
x: x + paragraph._x,
|
|
@@ -9376,48 +9385,53 @@ class RichText extends Graphic {
|
|
|
9376
9385
|
}
|
|
9377
9386
|
combinedStyleToCharacter(config) {
|
|
9378
9387
|
const {
|
|
9379
|
-
|
|
9380
|
-
|
|
9381
|
-
|
|
9382
|
-
|
|
9383
|
-
|
|
9384
|
-
|
|
9385
|
-
|
|
9386
|
-
|
|
9387
|
-
|
|
9388
|
-
|
|
9389
|
-
|
|
9390
|
-
|
|
9391
|
-
|
|
9392
|
-
|
|
9393
|
-
|
|
9394
|
-
|
|
9395
|
-
|
|
9396
|
-
|
|
9397
|
-
|
|
9398
|
-
|
|
9399
|
-
|
|
9400
|
-
|
|
9401
|
-
|
|
9388
|
+
fill: fill,
|
|
9389
|
+
stroke: stroke,
|
|
9390
|
+
fontSize: fontSize,
|
|
9391
|
+
fontFamily: fontFamily,
|
|
9392
|
+
fontStyle: fontStyle,
|
|
9393
|
+
fontWeight: fontWeight,
|
|
9394
|
+
lineWidth: lineWidth,
|
|
9395
|
+
opacity: opacity,
|
|
9396
|
+
fillOpacity: fillOpacity,
|
|
9397
|
+
lineHeight: lineHeight,
|
|
9398
|
+
strokeOpacity: strokeOpacity,
|
|
9399
|
+
upgradeAttrs: upgradeAttrs
|
|
9400
|
+
} = this.attribute,
|
|
9401
|
+
out = Object.assign({
|
|
9402
|
+
fill: fill,
|
|
9403
|
+
stroke: stroke,
|
|
9404
|
+
fontSize: fontSize,
|
|
9405
|
+
fontFamily: fontFamily,
|
|
9406
|
+
fontStyle: fontStyle,
|
|
9407
|
+
fontWeight: fontWeight,
|
|
9408
|
+
lineWidth: lineWidth,
|
|
9409
|
+
opacity: opacity,
|
|
9410
|
+
fillOpacity: fillOpacity,
|
|
9411
|
+
strokeOpacity: strokeOpacity
|
|
9412
|
+
}, config);
|
|
9413
|
+
return (null == upgradeAttrs ? void 0 : upgradeAttrs.lineHeight) && (out.lineHeight = lineHeight), out;
|
|
9402
9414
|
}
|
|
9403
9415
|
doUpdateFrameCache(tc) {
|
|
9404
9416
|
var _a;
|
|
9405
9417
|
const {
|
|
9406
|
-
|
|
9407
|
-
|
|
9408
|
-
|
|
9409
|
-
|
|
9410
|
-
|
|
9411
|
-
|
|
9412
|
-
|
|
9413
|
-
|
|
9414
|
-
|
|
9415
|
-
|
|
9416
|
-
|
|
9417
|
-
|
|
9418
|
-
|
|
9419
|
-
|
|
9420
|
-
|
|
9418
|
+
maxWidth: maxWidth,
|
|
9419
|
+
maxHeight: maxHeight,
|
|
9420
|
+
width: width,
|
|
9421
|
+
height: height,
|
|
9422
|
+
ellipsis: ellipsis,
|
|
9423
|
+
wordBreak: wordBreak,
|
|
9424
|
+
verticalDirection: verticalDirection,
|
|
9425
|
+
textAlign: textAlign,
|
|
9426
|
+
textBaseline: textBaseline,
|
|
9427
|
+
layoutDirection: layoutDirection,
|
|
9428
|
+
singleLine: singleLine,
|
|
9429
|
+
disableAutoWrapLine: disableAutoWrapLine,
|
|
9430
|
+
editable: editable,
|
|
9431
|
+
ascentDescentMode: ascentDescentMode,
|
|
9432
|
+
upgradeAttrs: upgradeAttrs
|
|
9433
|
+
} = this.attribute,
|
|
9434
|
+
enableMultiBreakLine = upgradeAttrs && upgradeAttrs.multiBreakLine;
|
|
9421
9435
|
let {
|
|
9422
9436
|
textConfig: _tc = []
|
|
9423
9437
|
} = this.attribute;
|
|
@@ -9439,7 +9453,10 @@ class RichText extends Graphic {
|
|
|
9439
9453
|
const richTextConfig = this.combinedStyleToCharacter(textConfig[i]);
|
|
9440
9454
|
if (isNumber(richTextConfig.text) && (richTextConfig.text = `${richTextConfig.text}`), richTextConfig.text && richTextConfig.text.includes("\n")) {
|
|
9441
9455
|
const textParts = richTextConfig.text.split("\n");
|
|
9442
|
-
for (let j = 0; j < textParts.length; j++) paragraphs.push(new Paragraph(textParts[j],
|
|
9456
|
+
for (let j = 0; j < textParts.length; j++) if (0 === j) paragraphs.push(new Paragraph(textParts[j], !1, richTextConfig, ascentDescentMode));else if (textParts[j] || i === textConfig.length - 1) paragraphs.push(new Paragraph(textParts[j], !0, richTextConfig, ascentDescentMode));else {
|
|
9457
|
+
const nextRichTextConfig = this.combinedStyleToCharacter(textConfig[i + 1]);
|
|
9458
|
+
paragraphs.push(new Paragraph(textParts[j], !0, nextRichTextConfig, ascentDescentMode));
|
|
9459
|
+
}
|
|
9443
9460
|
} else richTextConfig.text && paragraphs.push(new Paragraph(richTextConfig.text, !1, richTextConfig, ascentDescentMode));
|
|
9444
9461
|
}
|
|
9445
9462
|
const maxWidthFinite = "number" == typeof maxWidth && Number.isFinite(maxWidth) && maxWidth > 0,
|
|
@@ -9448,7 +9465,7 @@ class RichText extends Graphic {
|
|
|
9448
9465
|
richTextHeightEnable = "number" == typeof height && Number.isFinite(height) && height > 0 && (!maxHeightFinite || height <= maxHeight),
|
|
9449
9466
|
frame = new Frame(0, 0, (richTextWidthEnable ? width : maxWidthFinite ? maxWidth : 0) || 0, (richTextHeightEnable ? height : maxHeightFinite ? maxHeight : 0) || 0, ellipsis, wordBreak, verticalDirection, textAlign, textBaseline, layoutDirection || "horizontal", !richTextWidthEnable && maxWidthFinite, !richTextHeightEnable && maxHeightFinite, singleLine || !1, null === (_a = this._frameCache) || void 0 === _a ? void 0 : _a.icons),
|
|
9450
9467
|
wrapper = new Wrapper(frame);
|
|
9451
|
-
if (wrapper.newLine =
|
|
9468
|
+
if (wrapper.newLine = enableMultiBreakLine, disableAutoWrapLine) {
|
|
9452
9469
|
let lineCount = 0,
|
|
9453
9470
|
skip = !1;
|
|
9454
9471
|
for (let i = 0; i < paragraphs.length; i++) {
|
|
@@ -9464,7 +9481,7 @@ class RichText extends Graphic {
|
|
|
9464
9481
|
l.calcOffset(offsetSize, !1);
|
|
9465
9482
|
});
|
|
9466
9483
|
}
|
|
9467
|
-
|
|
9484
|
+
enableMultiBreakLine && frame.lines.forEach(item => {
|
|
9468
9485
|
const lastParagraphs = item.paragraphs;
|
|
9469
9486
|
item.paragraphs = item.paragraphs.filter(p => "" !== p.text), 0 === item.paragraphs.length && lastParagraphs.length && (lastParagraphs[0].text = "\n", item.paragraphs.push(lastParagraphs[0]));
|
|
9470
9487
|
}), this._frameCache = frame;
|
|
@@ -31255,6 +31272,6 @@ StoryLabelItem.defaultAttributes = {
|
|
|
31255
31272
|
theme: 'default'
|
|
31256
31273
|
};
|
|
31257
31274
|
|
|
31258
|
-
const version = "0.22.0-vstory.
|
|
31275
|
+
const version = "0.22.0-vstory.16";
|
|
31259
31276
|
|
|
31260
31277
|
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, PolygonSectorCrosshair, PopTip, Radio, RectCrosshair, RectLabel, SLIDER_ELEMENT_NAME, ScrollBar, SectorCrosshair, Segment, SizeContinuousLegend, Slider, StoryLabelItem, Switch, SymbolLabel, 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/util.js
CHANGED
package/es/brush/type.js
CHANGED
|
@@ -4,5 +4,4 @@ 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 = {}));
|
|
8
|
-
//# sourceMappingURL=type.js.map
|
|
7
|
+
}(IOperateType || (IOperateType = {}));
|
package/es/index.d.ts
CHANGED
package/es/index.js
CHANGED
package/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,OAAO,GAAG,kBAAkB,CAAC;AAE1C,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","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"0.22.0-vstory.
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,OAAO,GAAG,kBAAkB,CAAC;AAE1C,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","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"0.22.0-vstory.16\";\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';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visactor/vrender-components",
|
|
3
|
-
"version": "0.22.0-vstory.
|
|
3
|
+
"version": "0.22.0-vstory.16",
|
|
4
4
|
"description": "components library for dp visualization",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "cjs/index.js",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@visactor/vutils": "~0.19.4",
|
|
16
16
|
"@visactor/vscale": "~0.19.4",
|
|
17
|
-
"@visactor/vrender-core": "0.22.0-vstory.
|
|
18
|
-
"@visactor/vrender-kits": "0.22.0-vstory.
|
|
17
|
+
"@visactor/vrender-core": "0.22.0-vstory.16",
|
|
18
|
+
"@visactor/vrender-kits": "0.22.0-vstory.16"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@rushstack/eslint-patch": "~1.1.4",
|