UNPKG
xys-watermark
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
xys-watermark:一个支持TS的前端水印SDK,可以自由的在前端页面中添加各种形式和内容的水印(或暗水印)!
xys-watermark
/
dist
/
types
/
utils
/
getTextSize.d.ts
11 lines
(10 loc)
•
300 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
/** *
@description
根据文字和字号,计算该文字在网页上的宽度和高度 *
@param
text 文字内容 *
@param
fontSize 字号 *
@returns
文字的宽高 */
export
declare
const
getTextSize
:
(
text
:
string
,
fontSize
:
number
) =>
{
width
:
number
;
height
:
number
; };