,, , ,, , , , image/svg+xml , image/svg+xml , interact.js , image/svg+xml , ,, , ,

@interactjs / modifiers/base

Module: modifiers/base

Table of contents

Functions

Functions

addEventModifiers

▸ addEventModifiers(«destructured»): void

Parameters

NameType
«destructured»Object
› iEventInteractEvent<any, keyof PhaseMap>
› interactionInteraction<any>

Returns

void

Defined in

modifiers/base.ts:81


makeModifier

â–¸ makeModifier<Defaults, State, Name, Result>(module, name?): (_options?: Partial<Defaults>) => Modifier<Defaults, State, Name, Result>

Type parameters

NameType
Defaultsextends Object
Stateextends Object
Nameextends string
ResultResult

Parameters

NameType
moduleModifierModule<Defaults, State, Result>
name?Name

Returns

fn

â–¸ (_options?): Modifier<Defaults, State, Name, Result>

Parameters
NameType
_options?Partial<Defaults>
Returns

Modifier<Defaults, State, Name, Result>

NameType
_defaultsDefaults
_methods{ beforeEnd: (arg: ModifierArg<State>) => void | Point = module.beforeEnd; set: (arg: ModifierArg<State>) => Result = module.set; start: (arg: ModifierArg<State>) => void = module.start; stop: (arg: ModifierArg<State>) => void = module.stop }
_methods.beforeEnd(arg: ModifierArg<State>) => void | Point
_methods.set(arg: ModifierArg<State>) => Result
_methods.start(arg: ModifierArg<State>) => void
_methods.stop(arg: ModifierArg<State>) => void

Defined in

modifiers/base.ts:29