Skip to content

Documentation / @ripl/core / CONTEXT_OPERATIONS

Variable: CONTEXT_OPERATIONS ​

const CONTEXT_OPERATIONS: object

Defined in: packages/core/src/core/constants.ts:34

Maps element state properties to their corresponding context setter functions.

Type Declaration ​

direction() ​

direction: (context, value) => void

Parameters ​

ParameterType
contextContext
valueNonNullable<Direction | undefined>

Returns ​

void

fill() ​

fill: (context, value) => void

Parameters ​

ParameterType
contextContext
valuestring

Returns ​

void

filter() ​

filter: (context, value) => void

Parameters ​

ParameterType
contextContext
valuestring

Returns ​

void

font() ​

font: (context, value) => void

Parameters ​

ParameterType
contextContext
valuestring

Returns ​

void

fontKerning() ​

fontKerning: (context, value) => void

Parameters ​

ParameterType
contextContext
valueNonNullable<FontKerning | undefined>

Returns ​

void

globalCompositeOperation() ​

globalCompositeOperation: (context, value) => void

Parameters ​

ParameterType
contextContext
value{ }

Returns ​

void

lineCap() ​

lineCap: (context, value) => void

Parameters ​

ParameterType
contextContext
valueNonNullable<LineCap | undefined>

Returns ​

void

lineDash() ​

lineDash: (context, value) => void

Parameters ​

ParameterType
contextContext
valuenumber[]

Returns ​

void

lineDashOffset() ​

lineDashOffset: (context, value) => void

Parameters ​

ParameterType
contextContext
valuenumber

Returns ​

void

lineJoin() ​

lineJoin: (context, value) => void

Parameters ​

ParameterType
contextContext
valueNonNullable<LineJoin | undefined>

Returns ​

void

lineWidth() ​

lineWidth: (context, value) => void

Parameters ​

ParameterType
contextContext
valuenumber

Returns ​

void

miterLimit() ​

miterLimit: (context, value) => void

Parameters ​

ParameterType
contextContext
valuenumber

Returns ​

void

opacity() ​

opacity: (context, value) => void

Parameters ​

ParameterType
contextContext
valuenumber

Returns ​

void

rotation() ​

rotation: (context, value) => void

Parameters ​

ParameterType
contextContext
valueNonNullable<Rotation | undefined>

Returns ​

void

shadowBlur() ​

shadowBlur: (context, value) => void

Parameters ​

ParameterType
contextContext
valuenumber

Returns ​

void

shadowColor() ​

shadowColor: (context, value) => void

Parameters ​

ParameterType
contextContext
valuestring

Returns ​

void

shadowOffsetX() ​

shadowOffsetX: (context, value) => void

Parameters ​

ParameterType
contextContext
valuenumber

Returns ​

void

shadowOffsetY() ​

shadowOffsetY: (context, value) => void

Parameters ​

ParameterType
contextContext
valuenumber

Returns ​

void

stroke() ​

stroke: (context, value) => void

Parameters ​

ParameterType
contextContext
valuestring

Returns ​

void

textAlign() ​

textAlign: (context, value) => void

Parameters ​

ParameterType
contextContext
valueNonNullable<TextAlignment | undefined>

Returns ​

void

textBaseline() ​

textBaseline: (context, value) => void

Parameters ​

ParameterType
contextContext
valueNonNullable<TextBaseline | undefined>

Returns ​

void

transformOriginX() ​

transformOriginX: (context, value) => void

Parameters ​

ParameterType
contextContext
valueNonNullable<TransformOrigin | undefined>

Returns ​

void

transformOriginY() ​

transformOriginY: (context, value) => void

Parameters ​

ParameterType
contextContext
valueNonNullable<TransformOrigin | undefined>

Returns ​

void

transformScaleX() ​

transformScaleX: (context, value) => void

Parameters ​

ParameterType
contextContext
valuenumber

Returns ​

void

transformScaleY() ​

transformScaleY: (context, value) => void

Parameters ​

ParameterType
contextContext
valuenumber

Returns ​

void

translateX() ​

translateX: (context, value) => void

Parameters ​

ParameterType
contextContext
valuenumber

Returns ​

void

translateY() ​

translateY: (context, value) => void

Parameters ​

ParameterType
contextContext
valuenumber

Returns ​

void

zIndex() ​

zIndex: (context, value) => void

Parameters ​

ParameterType
contextContext
valuenumber

Returns ​

void