InputConfig
Defined in: types.ts:21
Configuration for the InputPlugin.
Properties
Section titled “Properties”actions?
Section titled “actions?”
optionalactions?:ActionMapDefinition
Defined in: types.ts:25
Action map: action name -> array of physical key codes.
groups?
Section titled “groups?”
optionalgroups?:Record<string,string[]>
Defined in: types.ts:27
Input groups: group name -> array of action names belonging to it.
preventDefaultKeys?
Section titled “preventDefaultKeys?”
optionalpreventDefaultKeys?:string[]
Defined in: types.ts:29
Key codes to call preventDefault() on (default: none).
rendererKey?
Section titled “rendererKey?”
optionalrendererKey?:ServiceKey<RendererAdapter>
Defined in: types.ts:38
Optional override for the renderer service key. When omitted, InputPlugin
auto-resolves RendererAdapterKey — the canonical @yagejs/renderer
plugin registers itself under that key, so pointer events target its
canvas and coordinates route through canvasToVirtual out of the box.
Set this only if you ship a custom renderer registered under a different
key.
target?
Section titled “target?”
optionaltarget?:HTMLElement
Defined in: types.ts:23
Target element for pointer events (default: canvas from renderer, or document).