# 介面:RenderTextOpts
# 屬性
# backdrop
• 可選
backdrop: BackdropOptions
繪製標籤背景的尺寸
# 定義於
types/index.d.ts:1459 (在新視窗開啟)
# color
• 可選
color: Color
文字的填充顏色。如果未設定,畫布現有的 fillStyle 屬性將保持不變。
# 定義於
types/index.d.ts:1398 (在新視窗開啟)
# decorationWidth
• 可選
decorationWidth: number
刪除線/底線的寬度
預設值
2
# 定義於
types/index.d.ts:1404 (在新視窗開啟)
# maxWidth
• 可選
maxWidth: number
文字的最大寬度(以像素為單位)
# 定義於
types/index.d.ts:1409 (在新視窗開啟)
# rotation
• 可選
rotation: number
要套用於畫布的旋轉。此旋轉是在套用平移後才套用
# 定義於
types/index.d.ts:1415 (在新視窗開啟)
# strikethrough
• 可選
strikethrough: boolean
將刪除線效果套用於文字
# 定義於
types/index.d.ts:1420 (在新視窗開啟)
# strokeColor
• 可選
strokeColor: Color
文字筆劃的顏色。如果未設定,畫布現有的 strokeStyle 屬性將保持不變
# 定義於
types/index.d.ts:1426 (在新視窗開啟)
# strokeWidth
• 可選
strokeWidth: number
文字筆劃寬度。如果未設定,畫布現有的 lineWidth 屬性將保持不變
# 定義於
types/index.d.ts:1432 (在新視窗開啟)
# textAlign
• 可選
textAlign: CanvasTextAlign
要使用的文字對齊方式。如果未設定,畫布現有的 textAlign 屬性將保持不變
# 定義於
types/index.d.ts:1438 (在新視窗開啟)
# textBaseline
• 可選
textBaseline: CanvasTextBaseline
要使用的文字基準線。如果未設定,畫布現有的 textBaseline 屬性將保持不變
# 定義於
types/index.d.ts:1444 (在新視窗開啟)
# translation
• 可選
translation: [number
, number
]
如果指定,要套用於畫布的平移
# 定義於
types/index.d.ts:1449 (在新視窗中開啟)
# underline
• Optional
underline: boolean
為文字加上底線