Skip to content
导览

Interface: CellStyle

Details

最小单元样式

Properties

background

Optional background: Object

Details

背景 (选填)

Type declaration

NameTypeDescription
color?stringDetails 背景颜色 argb "0xffffffff" (选填)
image?stringDetails 背景图片 (选填)
colorScope?"image" | "frame"Details 颜色作用域 (选填) image使颜色效果作用于图片 frame使颜色作用于整体背景

font

Optional font: Object

Details

字体风格 (选填)

Type declaration

NameTypeDescription
family?stringDetails 字体类型 (选填)
size?numberDetails 字体大小(文字高度) (选填)
color?stringDetails 字体颜色 argb "0xffffffff" (选填)
outline?{ color?: string ; width?: number }Details 字体轮廓 (选填)
outline.color?stringDetails 字体轮廓颜色 argb "0xffffffff" (选填)
outline.width?numberDetails 字体轮廓宽度 (选填)

border

Optional border: Object

Details

字体边框 (选填)

Type declaration

NameTypeDescription
color?stringDetails 字体边框颜色 argb "0xffffffff" (选填)

width

Optional width: number

Details

单元样式宽度 (选填)


height

Optional height: number

Details

单元样式高度 (选填)


textAlign

Optional textAlign: "left" | "right" | "center"

Details

单元样式文字排列方式(居左,居右,居中) (选填)


offset

Optional offset: Object

Details

最小单元偏移量(自定义标牌使用) (选填)

Type declaration

NameTypeDescription
xnumberDetails 最小单元x方向偏移量 (必填)
ynumberDetails 最小单元y方向偏移量 (必填)

zIndex

Optional zIndex: number

Details

最小单元显示优先级 值越大显示优先级越高 (自定义标牌使用) (选填)