@antv/g-lite 2.0.0 → 2.0.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/dist/index.esm.js +3 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13752,6 +13752,7 @@ var Text = /** @class */ (function (_super) {
|
|
|
13752
13752
|
*/
|
|
13753
13753
|
Text.prototype.getComputedTextLength = function () {
|
|
13754
13754
|
var _a;
|
|
13755
|
+
this.getGeometryBounds();
|
|
13755
13756
|
return ((_a = this.parsedStyle.metrics) === null || _a === void 0 ? void 0 : _a.maxLineWidth) || 0;
|
|
13756
13757
|
};
|
|
13757
13758
|
// getEndPositionOfChar(charnum: number): DOMPoint {
|
|
@@ -13777,9 +13778,11 @@ var Text = /** @class */ (function (_super) {
|
|
|
13777
13778
|
// }
|
|
13778
13779
|
Text.prototype.getLineBoundingRects = function () {
|
|
13779
13780
|
var _a;
|
|
13781
|
+
this.getGeometryBounds();
|
|
13780
13782
|
return ((_a = this.parsedStyle.metrics) === null || _a === void 0 ? void 0 : _a.lineMetrics) || [];
|
|
13781
13783
|
};
|
|
13782
13784
|
Text.prototype.isOverflowing = function () {
|
|
13785
|
+
this.getGeometryBounds();
|
|
13783
13786
|
return !!this.parsedStyle.isOverflowing;
|
|
13784
13787
|
};
|
|
13785
13788
|
return Text;
|