@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.esm.js
CHANGED
|
@@ -13731,6 +13731,7 @@ var Text = /** @class */ (function (_super) {
|
|
|
13731
13731
|
*/
|
|
13732
13732
|
Text.prototype.getComputedTextLength = function () {
|
|
13733
13733
|
var _a;
|
|
13734
|
+
this.getGeometryBounds();
|
|
13734
13735
|
return ((_a = this.parsedStyle.metrics) === null || _a === void 0 ? void 0 : _a.maxLineWidth) || 0;
|
|
13735
13736
|
};
|
|
13736
13737
|
// getEndPositionOfChar(charnum: number): DOMPoint {
|
|
@@ -13756,9 +13757,11 @@ var Text = /** @class */ (function (_super) {
|
|
|
13756
13757
|
// }
|
|
13757
13758
|
Text.prototype.getLineBoundingRects = function () {
|
|
13758
13759
|
var _a;
|
|
13760
|
+
this.getGeometryBounds();
|
|
13759
13761
|
return ((_a = this.parsedStyle.metrics) === null || _a === void 0 ? void 0 : _a.lineMetrics) || [];
|
|
13760
13762
|
};
|
|
13761
13763
|
Text.prototype.isOverflowing = function () {
|
|
13764
|
+
this.getGeometryBounds();
|
|
13762
13765
|
return !!this.parsedStyle.isOverflowing;
|
|
13763
13766
|
};
|
|
13764
13767
|
return Text;
|