@visactor/vrender-components 0.16.13 → 0.16.14-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/index.js +14 -7
- package/dist/index.min.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +5 -5
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.16.
|
|
20
|
+
}), exports.version = void 0, exports.version = "0.16.14-alpha.1", __exportStar(require("./core/base"), exports),
|
|
21
21
|
__exportStar(require("./scrollbar"), exports), __exportStar(require("./tag"), exports),
|
|
22
22
|
__exportStar(require("./poptip"), exports), __exportStar(require("./crosshair"), exports),
|
|
23
23
|
__exportStar(require("./label"), exports), __exportStar(require("./axis"), exports),
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACa,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACa,QAAA,OAAO,GAAG,iBAAiB,CAAC;AAEzC,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,8CAA4B;AAC5B,wCAAsB;AACtB,6CAA2B","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"0.16.14-alpha.1\";\n\nexport * from './core/base';\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 './interface';\nexport * from './jsx';\nexport * from './checkbox';\n"]}
|
package/dist/index.js
CHANGED
|
@@ -7463,6 +7463,12 @@
|
|
|
7463
7463
|
}();
|
|
7464
7464
|
RafBasedSTO.TimeOut = 1e3 / 60;
|
|
7465
7465
|
new RafBasedSTO();
|
|
7466
|
+
var calculateLineHeight = function calculateLineHeight(lineHeight, fontSize) {
|
|
7467
|
+
if (vutils.isString(lineHeight) && "%" === lineHeight[lineHeight.length - 1]) {
|
|
7468
|
+
return fontSize * (Number.parseFloat(lineHeight.substring(0, lineHeight.length - 1)) / 100);
|
|
7469
|
+
}
|
|
7470
|
+
return lineHeight;
|
|
7471
|
+
};
|
|
7466
7472
|
|
|
7467
7473
|
var IncreaseCount = /*#__PURE__*/function (_ACustomAnimate) {
|
|
7468
7474
|
_inherits(IncreaseCount, _ACustomAnimate);
|
|
@@ -10056,7 +10062,7 @@
|
|
|
10056
10062
|
_this$attribute$fontS = _this$attribute.fontSize,
|
|
10057
10063
|
fontSize = _this$attribute$fontS === void 0 ? textTheme.fontSize : _this$attribute$fontS,
|
|
10058
10064
|
_this$attribute$lineH = _this$attribute.lineHeight,
|
|
10059
|
-
lineHeight = _this$attribute$lineH === void 0 ? this.attribute.lineHeight || this.attribute.fontSize || textTheme.fontSize : _this$attribute$lineH,
|
|
10065
|
+
lineHeight = _this$attribute$lineH === void 0 ? calculateLineHeight(this.attribute.lineHeight || this.attribute.fontSize || textTheme.fontSize, this.attribute.fontSize || textTheme.fontSize) : _this$attribute$lineH,
|
|
10060
10066
|
_this$attribute$ellip = _this$attribute.ellipsis,
|
|
10061
10067
|
ellipsis = _this$attribute$ellip === void 0 ? textTheme.ellipsis : _this$attribute$ellip,
|
|
10062
10068
|
maxLineWidth = _this$attribute.maxLineWidth,
|
|
@@ -10203,8 +10209,9 @@
|
|
|
10203
10209
|
whiteSpace = _attribute$whiteSpace === void 0 ? textTheme.whiteSpace : _attribute$whiteSpace;
|
|
10204
10210
|
if ("normal" === whiteSpace) return this.updateWrapAABBBounds(text);
|
|
10205
10211
|
var buf = ignoreBuf ? 0 : Math.max(2, .075 * fontSize),
|
|
10212
|
+
textFontSize = attribute.fontSize || textTheme.fontSize,
|
|
10206
10213
|
_attribute$lineHeight = attribute.lineHeight,
|
|
10207
|
-
lineHeight = _attribute$lineHeight === void 0 ? null !== (_a = attribute.lineHeight) && void 0 !== _a ? _a :
|
|
10214
|
+
lineHeight = _attribute$lineHeight === void 0 ? calculateLineHeight(null !== (_a = attribute.lineHeight) && void 0 !== _a ? _a : textFontSize, textFontSize) + buf : _attribute$lineHeight;
|
|
10208
10215
|
if (!this.shouldUpdateShape() && this.cache) {
|
|
10209
10216
|
width = null !== (_b = this.cache.clipedWidth) && void 0 !== _b ? _b : 0;
|
|
10210
10217
|
var _dx = textDrawOffsetX(textAlign, width),
|
|
@@ -10275,7 +10282,7 @@
|
|
|
10275
10282
|
_attribute$stroke2 = attribute.stroke,
|
|
10276
10283
|
stroke = _attribute$stroke2 === void 0 ? textTheme.stroke : _attribute$stroke2,
|
|
10277
10284
|
_attribute$lineHeight2 = attribute.lineHeight,
|
|
10278
|
-
lineHeight = _attribute$lineHeight2 === void 0 ? null !== (_a = attribute.lineHeight) && void 0 !== _a ? _a :
|
|
10285
|
+
lineHeight = _attribute$lineHeight2 === void 0 ? calculateLineHeight(null !== (_a = attribute.lineHeight) && void 0 !== _a ? _a : attribute.fontSize || textTheme.fontSize, attribute.fontSize || textTheme.fontSize) + buf : _attribute$lineHeight2,
|
|
10279
10286
|
_attribute$lineWidth2 = attribute.lineWidth,
|
|
10280
10287
|
lineWidth = _attribute$lineWidth2 === void 0 ? textTheme.lineWidth : _attribute$lineWidth2,
|
|
10281
10288
|
_attribute$verticalMo = attribute.verticalMode,
|
|
@@ -10343,7 +10350,7 @@
|
|
|
10343
10350
|
_attribute$fontWeight3 = attribute.fontWeight,
|
|
10344
10351
|
fontWeight = _attribute$fontWeight3 === void 0 ? textTheme.fontWeight : _attribute$fontWeight3,
|
|
10345
10352
|
_attribute$lineHeight3 = attribute.lineHeight,
|
|
10346
|
-
lineHeight = _attribute$lineHeight3 === void 0 ? attribute.lineHeight || attribute.fontSize || textTheme.fontSize : _attribute$lineHeight3,
|
|
10353
|
+
lineHeight = _attribute$lineHeight3 === void 0 ? calculateLineHeight(attribute.lineHeight || attribute.fontSize || textTheme.fontSize, attribute.fontSize || textTheme.fontSize) : _attribute$lineHeight3,
|
|
10347
10354
|
_attribute$ellipsis3 = attribute.ellipsis,
|
|
10348
10355
|
ellipsis = _attribute$ellipsis3 === void 0 ? textTheme.ellipsis : _attribute$ellipsis3,
|
|
10349
10356
|
maxLineWidth = attribute.maxLineWidth,
|
|
@@ -10391,7 +10398,7 @@
|
|
|
10391
10398
|
_attribute$stroke4 = attribute.stroke,
|
|
10392
10399
|
stroke = _attribute$stroke4 === void 0 ? textTheme.stroke : _attribute$stroke4,
|
|
10393
10400
|
_attribute$lineHeight4 = attribute.lineHeight,
|
|
10394
|
-
lineHeight = _attribute$lineHeight4 === void 0 ? null !== (_a = attribute.lineHeight) && void 0 !== _a ? _a :
|
|
10401
|
+
lineHeight = _attribute$lineHeight4 === void 0 ? calculateLineHeight(null !== (_a = attribute.lineHeight) && void 0 !== _a ? _a : attribute.fontSize || textTheme.fontSize, attribute.fontSize || textTheme.fontSize) + buf : _attribute$lineHeight4,
|
|
10395
10402
|
_attribute$lineWidth4 = attribute.lineWidth,
|
|
10396
10403
|
lineWidth = _attribute$lineWidth4 === void 0 ? textTheme.lineWidth : _attribute$lineWidth4,
|
|
10397
10404
|
_attribute$verticalMo2 = attribute.verticalMode,
|
|
@@ -10540,7 +10547,7 @@
|
|
|
10540
10547
|
_this$attribute$fontS = _this$attribute.fontSize,
|
|
10541
10548
|
fontSize = _this$attribute$fontS === void 0 ? textTheme.fontSize : _this$attribute$fontS,
|
|
10542
10549
|
_this$attribute$lineH = _this$attribute.lineHeight,
|
|
10543
|
-
lineHeight = _this$attribute$lineH === void 0 ? this.attribute.lineHeight || this.attribute.fontSize || textTheme.fontSize : _this$attribute$lineH,
|
|
10550
|
+
lineHeight = _this$attribute$lineH === void 0 ? calculateLineHeight(this.attribute.lineHeight || this.attribute.fontSize || textTheme.fontSize, this.attribute.fontSize || textTheme.fontSize) : _this$attribute$lineH,
|
|
10544
10551
|
_this$attribute$ellip = _this$attribute.ellipsis,
|
|
10545
10552
|
ellipsis = _this$attribute$ellip === void 0 ? textTheme.ellipsis : _this$attribute$ellip,
|
|
10546
10553
|
maxLineWidth = _this$attribute.maxLineWidth,
|
|
@@ -31404,7 +31411,7 @@
|
|
|
31404
31411
|
}
|
|
31405
31412
|
};
|
|
31406
31413
|
|
|
31407
|
-
const version = "0.16.
|
|
31414
|
+
const version = "0.16.14-alpha.1";
|
|
31408
31415
|
|
|
31409
31416
|
exports.AbstractComponent = AbstractComponent;
|
|
31410
31417
|
exports.ArcInfo = ArcInfo;
|