Skip to content

Commit

Permalink
chore: deprecated 注释调整
Browse files Browse the repository at this point in the history
  • Loading branch information
lcx-seima committed Aug 9, 2022
1 parent 3627212 commit c89d41e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/s2-core/src/utils/text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { renderMiniChart } from './g-mini-charts';

/**
* 计算文本在画布中的宽度
* @deprecated 已废弃,该方法计算宽度不准确,请使用 spreadsheet 实例上的同名方法
* @deprecated 已废弃,1.30.0 版本后移除。该方法计算宽度不准确,请使用 spreadsheet 实例上的同名方法
*/
export const measureTextWidth = memoize(
(text: number | string = '', font: unknown): number => {
Expand Down Expand Up @@ -151,7 +151,7 @@ export const getEllipsisTextInner = (
* 然后分别乘以中文、符号的宽度
* @param text
* @param font
* @deprecated 已废弃,该方法计算宽度不准确,请使用 spreadsheet 实例上的同名方法
* @deprecated 已废弃,1.30.0 版本后移除。该方法计算宽度不准确,请使用 spreadsheet 实例上的同名方法
*/
export const measureTextWidthRoughly = (text: any, font: any = {}): number => {
const alphaWidth = measureTextWidth('a', font);
Expand Down

0 comments on commit c89d41e

Please sign in to comment.