UNPKG

@antv/f2

Version:

Charts for mobile visualization.

11 lines 259 B
export default (function (layout) { var height = layout.height, left = layout.left, top = layout.top; return { x: left, y: top + height / 2, // 通过middle + top 才能比较好的实现文本对齐 textBaseline: 'middle' }; });