Skip to content

Interface: ICanvasAttr

Hierarchy

Table of contents

Properties

Properties

strokeAlign

Optional strokeAlign: string

Inherited from

ICanvasStrokeOptions.strokeAlign

Defined in

leafer/packages/interface/src/canvas/ILeaferCanvas.ts:26


strokeCap

Optional strokeCap: string

Inherited from

ICanvasStrokeOptions.strokeCap

Defined in

leafer/packages/interface/src/canvas/ILeaferCanvas.ts:28


strokeJoin

Optional strokeJoin: string

Inherited from

ICanvasStrokeOptions.strokeJoin

Defined in

leafer/packages/interface/src/canvas/ILeaferCanvas.ts:29


dashPattern

Optional dashPattern: number[]

Inherited from

ICanvasStrokeOptions.dashPattern

Defined in

leafer/packages/interface/src/canvas/ILeaferCanvas.ts:30


dashOffset

Optional dashOffset: number

Inherited from

ICanvasStrokeOptions.dashOffset

Defined in

leafer/packages/interface/src/canvas/ILeaferCanvas.ts:31


miterLimit

Optional miterLimit: number

Inherited from

ICanvasStrokeOptions.miterLimit

Defined in

leafer/packages/interface/src/canvas/ILeaferCanvas.ts:32


smooth

smooth: boolean

Defined in

leafer/packages/interface/src/canvas/ILeaferCanvas.ts:42


smoothLevel

smoothLevel: string

Defined in

leafer/packages/interface/src/canvas/ILeaferCanvas.ts:43


opacity

opacity: number

Defined in

leafer/packages/interface/src/canvas/ILeaferCanvas.ts:44


blendMode

blendMode: string

Defined in

leafer/packages/interface/src/canvas/ILeaferCanvas.ts:45


fillStyle

fillStyle: string | object

Defined in

leafer/packages/interface/src/canvas/ILeaferCanvas.ts:47


strokeStyle

strokeStyle: string | object

Defined in

leafer/packages/interface/src/canvas/ILeaferCanvas.ts:49


strokeWidth

strokeWidth: number

Overrides

ICanvasStrokeOptions.strokeWidth

Defined in

leafer/packages/interface/src/canvas/ILeaferCanvas.ts:50


shadowBlur

shadowBlur: number

Defined in

leafer/packages/interface/src/canvas/ILeaferCanvas.ts:52


shadowColor

shadowColor: string

Defined in

leafer/packages/interface/src/canvas/ILeaferCanvas.ts:53


shadowOffsetX

shadowOffsetX: number

Defined in

leafer/packages/interface/src/canvas/ILeaferCanvas.ts:54


shadowOffsetY

shadowOffsetY: number

Defined in

leafer/packages/interface/src/canvas/ILeaferCanvas.ts:55


filter

filter: string

Defined in

leafer/packages/interface/src/canvas/ILeaferCanvas.ts:57


font

font: string

Defined in

leafer/packages/interface/src/canvas/ILeaferCanvas.ts:59


fontKerning

fontKerning: string

Defined in

leafer/packages/interface/src/canvas/ILeaferCanvas.ts:60


fontStretch

fontStretch: string

Defined in

leafer/packages/interface/src/canvas/ILeaferCanvas.ts:61


fontVariantCaps

fontVariantCaps: string

Defined in

leafer/packages/interface/src/canvas/ILeaferCanvas.ts:62


textAlign

textAlign: string

Defined in

leafer/packages/interface/src/canvas/ILeaferCanvas.ts:64


textBaseline

textBaseline: string

Defined in

leafer/packages/interface/src/canvas/ILeaferCanvas.ts:65


textRendering

textRendering: string

Defined in

leafer/packages/interface/src/canvas/ILeaferCanvas.ts:66


wordSpacing

wordSpacing: string

Defined in

leafer/packages/interface/src/canvas/ILeaferCanvas.ts:67


letterSpacing

letterSpacing: string

Defined in

leafer/packages/interface/src/canvas/ILeaferCanvas.ts:68


direction

direction: string

Defined in

leafer/packages/interface/src/canvas/ILeaferCanvas.ts:70

Released under the MIT License.