@@ -142,14 +142,14 @@ export function adjustTextY(y, height, textVerticalAlign) {
142
142
}
143
143
144
144
/**
145
- * Follow same interface to `Displayable.prototype.interpretTextPosition `.
145
+ * Follow same interface to `Displayable.prototype.calculateTextPosition `.
146
146
* @public
147
147
* @param {Obejct } [out] Prepared out object. If not input, auto created in the method.
148
148
* @param {module:zrender/graphic/Style } style where `textPosition` and `textDistance` are visited.
149
149
* @param {Object } rect {x, y, width, height} Rect of the host elment, according to which the text positioned.
150
150
* @return {Object } The input `out`. Set: {x, y, textAlign, textVerticalAlign}
151
151
*/
152
- export function interpretTextPosition ( out , style , rect ) {
152
+ export function calculateTextPosition ( out , style , rect ) {
153
153
var textPosition = style . textPosition ;
154
154
var distance = style . textDistance ;
155
155
@@ -256,7 +256,7 @@ export function interpretTextPosition(out, style, rect) {
256
256
*/
257
257
export function adjustTextPositionOnRect ( textPosition , rect , distance ) {
258
258
var dummyStyle = { textPosition : textPosition , textDistance : distance } ;
259
- return interpretTextPosition ( { } , dummyStyle , rect ) ;
259
+ return calculateTextPosition ( { } , dummyStyle , rect ) ;
260
260
}
261
261
262
262
/**
0 commit comments