@visactor/vrender 0.16.14-alpha.1 → 0.16.14-alpha.2
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 +7 -15
- 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 +4 -4
package/cjs/index.d.ts
CHANGED
package/cjs/index.js
CHANGED
|
@@ -21,5 +21,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
21
21
|
|
|
22
22
|
const vrender_core_1 = require("@visactor/vrender-core"), vrender_kits_1 = require("@visactor/vrender-kits");
|
|
23
23
|
|
|
24
|
-
exports.version = "0.16.14-alpha.
|
|
24
|
+
exports.version = "0.16.14-alpha.2", (0, vrender_kits_1.loadAllModule)(vrender_core_1.container),
|
|
25
25
|
__exportStar(require("@visactor/vrender-core"), exports), __exportStar(require("@visactor/vrender-kits"), exports);
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,yDAAmD;AACnD,yDAAuD;AAG1C,QAAA,OAAO,GAAG,iBAAiB,CAAC;AAEzC,IAAA,4BAAa,EAAC,wBAAS,CAAC,CAAC;AAEzB,yDAAuC;AACvC,yDAAuC","file":"index.js","sourcesContent":["import { container } from '@visactor/vrender-core';\nimport { loadAllModule } from '@visactor/vrender-kits';\n\n// 导出版本号\nexport const version = \"0.16.14-alpha.
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,yDAAmD;AACnD,yDAAuD;AAG1C,QAAA,OAAO,GAAG,iBAAiB,CAAC;AAEzC,IAAA,4BAAa,EAAC,wBAAS,CAAC,CAAC;AAEzB,yDAAuC;AACvC,yDAAuC","file":"index.js","sourcesContent":["import { container } from '@visactor/vrender-core';\nimport { loadAllModule } from '@visactor/vrender-kits';\n\n// 导出版本号\nexport const version = \"0.16.14-alpha.2\";\n\nloadAllModule(container);\n\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\n"]}
|
package/dist/index.js
CHANGED
|
@@ -9948,12 +9948,6 @@
|
|
|
9948
9948
|
}();
|
|
9949
9949
|
RafBasedSTO.TimeOut = 1e3 / 60;
|
|
9950
9950
|
var rafBasedSto = new RafBasedSTO();
|
|
9951
|
-
var calculateLineHeight = function calculateLineHeight(lineHeight, fontSize) {
|
|
9952
|
-
if (isString$1(lineHeight) && "%" === lineHeight[lineHeight.length - 1]) {
|
|
9953
|
-
return fontSize * (Number.parseFloat(lineHeight.substring(0, lineHeight.length - 1)) / 100);
|
|
9954
|
-
}
|
|
9955
|
-
return lineHeight;
|
|
9956
|
-
};
|
|
9957
9951
|
|
|
9958
9952
|
var IncreaseCount = /*#__PURE__*/function (_ACustomAnimate) {
|
|
9959
9953
|
_inherits(IncreaseCount, _ACustomAnimate);
|
|
@@ -14580,7 +14574,7 @@
|
|
|
14580
14574
|
_this$attribute$fontS = _this$attribute.fontSize,
|
|
14581
14575
|
fontSize = _this$attribute$fontS === void 0 ? textTheme.fontSize : _this$attribute$fontS,
|
|
14582
14576
|
_this$attribute$lineH = _this$attribute.lineHeight,
|
|
14583
|
-
lineHeight = _this$attribute$lineH === void 0 ?
|
|
14577
|
+
lineHeight = _this$attribute$lineH === void 0 ? this.attribute.lineHeight || this.attribute.fontSize || textTheme.fontSize : _this$attribute$lineH,
|
|
14584
14578
|
_this$attribute$ellip = _this$attribute.ellipsis,
|
|
14585
14579
|
ellipsis = _this$attribute$ellip === void 0 ? textTheme.ellipsis : _this$attribute$ellip,
|
|
14586
14580
|
maxLineWidth = _this$attribute.maxLineWidth,
|
|
@@ -14727,9 +14721,8 @@
|
|
|
14727
14721
|
whiteSpace = _attribute$whiteSpace === void 0 ? textTheme.whiteSpace : _attribute$whiteSpace;
|
|
14728
14722
|
if ("normal" === whiteSpace) return this.updateWrapAABBBounds(text);
|
|
14729
14723
|
var buf = ignoreBuf ? 0 : Math.max(2, .075 * fontSize),
|
|
14730
|
-
textFontSize = attribute.fontSize || textTheme.fontSize,
|
|
14731
14724
|
_attribute$lineHeight = attribute.lineHeight,
|
|
14732
|
-
lineHeight = _attribute$lineHeight === void 0 ?
|
|
14725
|
+
lineHeight = _attribute$lineHeight === void 0 ? null !== (_a = attribute.lineHeight) && void 0 !== _a ? _a : (attribute.fontSize || textTheme.fontSize) + buf : _attribute$lineHeight;
|
|
14733
14726
|
if (!this.shouldUpdateShape() && this.cache) {
|
|
14734
14727
|
width = null !== (_b = this.cache.clipedWidth) && void 0 !== _b ? _b : 0;
|
|
14735
14728
|
var _dx = textDrawOffsetX(textAlign, width),
|
|
@@ -14800,7 +14793,7 @@
|
|
|
14800
14793
|
_attribute$stroke2 = attribute.stroke,
|
|
14801
14794
|
stroke = _attribute$stroke2 === void 0 ? textTheme.stroke : _attribute$stroke2,
|
|
14802
14795
|
_attribute$lineHeight2 = attribute.lineHeight,
|
|
14803
|
-
lineHeight = _attribute$lineHeight2 === void 0 ?
|
|
14796
|
+
lineHeight = _attribute$lineHeight2 === void 0 ? null !== (_a = attribute.lineHeight) && void 0 !== _a ? _a : (attribute.fontSize || textTheme.fontSize) + buf : _attribute$lineHeight2,
|
|
14804
14797
|
_attribute$lineWidth2 = attribute.lineWidth,
|
|
14805
14798
|
lineWidth = _attribute$lineWidth2 === void 0 ? textTheme.lineWidth : _attribute$lineWidth2,
|
|
14806
14799
|
_attribute$verticalMo = attribute.verticalMode,
|
|
@@ -14868,7 +14861,7 @@
|
|
|
14868
14861
|
_attribute$fontWeight3 = attribute.fontWeight,
|
|
14869
14862
|
fontWeight = _attribute$fontWeight3 === void 0 ? textTheme.fontWeight : _attribute$fontWeight3,
|
|
14870
14863
|
_attribute$lineHeight3 = attribute.lineHeight,
|
|
14871
|
-
lineHeight = _attribute$lineHeight3 === void 0 ?
|
|
14864
|
+
lineHeight = _attribute$lineHeight3 === void 0 ? attribute.lineHeight || attribute.fontSize || textTheme.fontSize : _attribute$lineHeight3,
|
|
14872
14865
|
_attribute$ellipsis3 = attribute.ellipsis,
|
|
14873
14866
|
ellipsis = _attribute$ellipsis3 === void 0 ? textTheme.ellipsis : _attribute$ellipsis3,
|
|
14874
14867
|
maxLineWidth = attribute.maxLineWidth,
|
|
@@ -14916,7 +14909,7 @@
|
|
|
14916
14909
|
_attribute$stroke4 = attribute.stroke,
|
|
14917
14910
|
stroke = _attribute$stroke4 === void 0 ? textTheme.stroke : _attribute$stroke4,
|
|
14918
14911
|
_attribute$lineHeight4 = attribute.lineHeight,
|
|
14919
|
-
lineHeight = _attribute$lineHeight4 === void 0 ?
|
|
14912
|
+
lineHeight = _attribute$lineHeight4 === void 0 ? null !== (_a = attribute.lineHeight) && void 0 !== _a ? _a : (attribute.fontSize || textTheme.fontSize) + buf : _attribute$lineHeight4,
|
|
14920
14913
|
_attribute$lineWidth4 = attribute.lineWidth,
|
|
14921
14914
|
lineWidth = _attribute$lineWidth4 === void 0 ? textTheme.lineWidth : _attribute$lineWidth4,
|
|
14922
14915
|
_attribute$verticalMo2 = attribute.verticalMode,
|
|
@@ -15065,7 +15058,7 @@
|
|
|
15065
15058
|
_this$attribute$fontS = _this$attribute.fontSize,
|
|
15066
15059
|
fontSize = _this$attribute$fontS === void 0 ? textTheme.fontSize : _this$attribute$fontS,
|
|
15067
15060
|
_this$attribute$lineH = _this$attribute.lineHeight,
|
|
15068
|
-
lineHeight = _this$attribute$lineH === void 0 ?
|
|
15061
|
+
lineHeight = _this$attribute$lineH === void 0 ? this.attribute.lineHeight || this.attribute.fontSize || textTheme.fontSize : _this$attribute$lineH,
|
|
15069
15062
|
_this$attribute$ellip = _this$attribute.ellipsis,
|
|
15070
15063
|
ellipsis = _this$attribute$ellip === void 0 ? textTheme.ellipsis : _this$attribute$ellip,
|
|
15071
15064
|
maxLineWidth = _this$attribute.maxLineWidth,
|
|
@@ -34633,7 +34626,7 @@
|
|
|
34633
34626
|
|
|
34634
34627
|
var roughModule = _roughModule;
|
|
34635
34628
|
|
|
34636
|
-
const version = "0.16.14-alpha.
|
|
34629
|
+
const version = "0.16.14-alpha.2";
|
|
34637
34630
|
loadAllModule(container);
|
|
34638
34631
|
|
|
34639
34632
|
exports.ACustomAnimate = ACustomAnimate;
|
|
@@ -34866,7 +34859,6 @@
|
|
|
34866
34859
|
exports.builtinSymbols = builtinSymbols;
|
|
34867
34860
|
exports.builtinSymbolsMap = builtinSymbolsMap;
|
|
34868
34861
|
exports.calcLineCache = calcLineCache$1;
|
|
34869
|
-
exports.calculateLineHeight = calculateLineHeight;
|
|
34870
34862
|
exports.centroidOfSubpath = centroidOfSubpath;
|
|
34871
34863
|
exports.circleBounds = circleBounds;
|
|
34872
34864
|
exports.clock = clock;
|