tvcharts 0.7.90 → 0.7.91
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.
|
@@ -103,6 +103,9 @@ function changeLabelOffsetBySymbol(symbol, symbolRect, shape, oldOffset) {
|
|
|
103
103
|
}
|
|
104
104
|
// const computedText = new graphic.Text();
|
|
105
105
|
var getTextRect = function (text, font) {
|
|
106
|
+
if (text === void 0) {
|
|
107
|
+
text = '';
|
|
108
|
+
}
|
|
106
109
|
var width = 0;
|
|
107
110
|
var height = 0;
|
|
108
111
|
text.split('\n').forEach(function (item) {
|