@antv/g 5.16.7 → 5.16.8
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.umd.js +2 -2
- package/dist/index.umd.min.js +1 -1
- package/package.json +3 -3
package/dist/index.umd.js
CHANGED
|
@@ -8723,7 +8723,7 @@
|
|
|
8723
8723
|
// }
|
|
8724
8724
|
/**
|
|
8725
8725
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement
|
|
8726
|
-
*/var _proto=Text.prototype;_proto.getComputedTextLength=function getComputedTextLength(){var _this$parsedStyle$met;return ((_this$parsedStyle$met=this.parsedStyle.metrics)===null||_this$parsedStyle$met===void 0?void 0:_this$parsedStyle$met.maxLineWidth)||0;}// getEndPositionOfChar(charnum: number): DOMPoint {
|
|
8726
|
+
*/var _proto=Text.prototype;_proto.getComputedTextLength=function getComputedTextLength(){var _this$parsedStyle$met;this.forceUpdateGeometry();return ((_this$parsedStyle$met=this.parsedStyle.metrics)===null||_this$parsedStyle$met===void 0?void 0:_this$parsedStyle$met.maxLineWidth)||0;}// getEndPositionOfChar(charnum: number): DOMPoint {
|
|
8727
8727
|
// throw new Error('Method not implemented.');
|
|
8728
8728
|
// }
|
|
8729
8729
|
// getExtentOfChar(charnum: number): DOMRect {
|
|
@@ -8744,7 +8744,7 @@
|
|
|
8744
8744
|
// selectSubString(charnum: number, nchars: number): void {
|
|
8745
8745
|
// throw new Error('Method not implemented.');
|
|
8746
8746
|
// }
|
|
8747
|
-
;_proto.getLineBoundingRects=function getLineBoundingRects(){var _this$parsedStyle$met2;return ((_this$parsedStyle$met2=this.parsedStyle.metrics)===null||_this$parsedStyle$met2===void 0?void 0:_this$parsedStyle$met2.lineMetrics)||[];};_proto.isOverflowing=function isOverflowing(){return !!this.parsedStyle.isOverflowing;};return Text;}(DisplayObject);/**
|
|
8747
|
+
;_proto.getLineBoundingRects=function getLineBoundingRects(){var _this$parsedStyle$met2;this.forceUpdateGeometry();return ((_this$parsedStyle$met2=this.parsedStyle.metrics)===null||_this$parsedStyle$met2===void 0?void 0:_this$parsedStyle$met2.lineMetrics)||[];};_proto.isOverflowing=function isOverflowing(){this.forceUpdateGeometry();return !!this.parsedStyle.isOverflowing;};_proto.forceUpdateGeometry=function forceUpdateGeometry(){if(!this.parsedStyle.metrics){runtime.styleValueRegistry.updateGeometry(this);}};return Text;}(DisplayObject);/**
|
|
8748
8748
|
* Blink used them in code generation(css_properties.json5)
|
|
8749
8749
|
*/var BUILT_IN_PROPERTIES=[{/**
|
|
8750
8750
|
* used in CSS Layout API
|