Skip to main content

Interface: VirtualKeyboardOptions

Extends​

  • CompositeOptions

Properties​

alpha?​

optional alpha: number

Opacity of the node. 0 is fully transparent, 1 is fully opaque. Default is 1.0. Alpha has multiplicative inheritance. For example, if the node's parent is alpha .5 and this node's is alpha .4, then the node will appear with alpha .2.

Inherited from​

CompositeOptions.alpha

Defined in​

node_modules/@m2c2kit/core/dist/index.d.ts:98


anchorPoint?​

optional anchorPoint: Point

Point within the node that determines its position. Default is { x: 0.5, y: 0.5 }, which centers the node on its position

Inherited from​

CompositeOptions.anchorPoint

Defined in​

node_modules/@m2c2kit/core/dist/index.d.ts:38


backgroundColor?​

optional backgroundColor: RgbaColor

Background color of keyboard.

Defined in​

m2c2kit/packages/addons/src/composites/virtual-keyboard.ts:98


capitalLettersOnly?​

optional capitalLettersOnly: boolean

If true, only capital letters will be shown.

Defined in​

m2c2kit/packages/addons/src/composites/virtual-keyboard.ts:90


draggable?​

optional draggable: boolean

Can the node be dragged?

Inherited from​

CompositeOptions.draggable

Defined in​

node_modules/@m2c2kit/core/dist/index.d.ts:104


fontNames?​

optional fontNames: string[]

The fonts for the key labels, if not the default font.

Defined in​

m2c2kit/packages/addons/src/composites/virtual-keyboard.ts:86


fontSize?​

optional fontSize: number

Size of font for keys.

Defined in​

m2c2kit/packages/addons/src/composites/virtual-keyboard.ts:84


hidden?​

optional hidden: boolean

Is the node, and its children, hidden? (not displayed). Default is false

Inherited from​

CompositeOptions.hidden

Defined in​

node_modules/@m2c2kit/core/dist/index.d.ts:106


hiddenKeys?​

optional hiddenKeys: string

Comma-separated list of keys to hide.

Defined in​

m2c2kit/packages/addons/src/composites/virtual-keyboard.ts:88


isPartOfComposite?​

optional isPartOfComposite: boolean

Is the node part of a composite? Default is false.

Remarks​

This property is for use by authors of Composite nodes. It is not intended for general use.

Inherited from​

CompositeOptions.isPartOfComposite

Defined in​

node_modules/@m2c2kit/core/dist/index.d.ts:113


isUserInteractionEnabled?​

optional isUserInteractionEnabled: boolean

Does the node respond to user events, such as taps? Default is false

Inherited from​

CompositeOptions.isUserInteractionEnabled

Defined in​

node_modules/@m2c2kit/core/dist/index.d.ts:102


keyboardHorizontalPaddingPercent?​

optional keyboardHorizontalPaddingPercent: number

Percent of the keyboard width that should be used for padding on the left and right sides. Default is .02

Defined in​

m2c2kit/packages/addons/src/composites/virtual-keyboard.ts:72


keyboardVerticalPaddingPercent?​

optional keyboardVerticalPaddingPercent: number

Percent of the keyboard height that should be used for padding on the top and bottom sides. Default is .025

Defined in​

m2c2kit/packages/addons/src/composites/virtual-keyboard.ts:74


keyColor?​

optional keyColor: RgbaColor

Color of keys.

Defined in​

m2c2kit/packages/addons/src/composites/virtual-keyboard.ts:92


keyDownColor?​

optional keyDownColor: RgbaColor

Color of keys when pressed.

Defined in​

m2c2kit/packages/addons/src/composites/virtual-keyboard.ts:94


keyHorizontalPaddingPercent?​

optional keyHorizontalPaddingPercent: number

Percent of each key's width that should be used for padding on the left and right sides. Default is .10

Defined in​

m2c2kit/packages/addons/src/composites/virtual-keyboard.ts:76


keysPerRow?​

optional keysPerRow: number

How many regular-sized keys should fit in a row? This is used for scaling purposes. If not provided, it will be inferred from the row configuration.

Defined in​

m2c2kit/packages/addons/src/composites/virtual-keyboard.ts:82


keyVerticalPaddingPercent?​

optional keyVerticalPaddingPercent: number

Percent of each key's height that should be used for padding on the top and bottom sides. Default is .10

Defined in​

m2c2kit/packages/addons/src/composites/virtual-keyboard.ts:78


layout?​

optional layout: Layout

FOR INTERNAL USE ONLY

Inherited from​

CompositeOptions.layout

Defined in​

node_modules/@m2c2kit/core/dist/index.d.ts:108


name?​

optional name: string

Name of the node. Only needed if the node will be referred to by name in a later function

Inherited from​

CompositeOptions.name

Defined in​

node_modules/@m2c2kit/core/dist/index.d.ts:92


position?​

optional position: Point

Position of the node within its parent coordinate system. Default is (0, 0)

Inherited from​

CompositeOptions.position

Defined in​

node_modules/@m2c2kit/core/dist/index.d.ts:94


rows?​

optional rows: VirtualKeyboardRow[]

Configuration of keyboard rows. Order is from top to bottom rows.

Defined in​

m2c2kit/packages/addons/src/composites/virtual-keyboard.ts:80


scale?​

optional scale: number

Scale of the node. Default is 1.0

Inherited from​

CompositeOptions.scale

Defined in​

node_modules/@m2c2kit/core/dist/index.d.ts:96


showKeyDownPreview?​

optional showKeyDownPreview: boolean

If true, a preview of the key that will be pressed will be shown.

Defined in​

m2c2kit/packages/addons/src/composites/virtual-keyboard.ts:100


size​

size: Size

Defined in​

m2c2kit/packages/addons/src/composites/virtual-keyboard.ts:70


specialKeyDownColor?​

optional specialKeyDownColor: RgbaColor

Color of special keys when pressed.

Defined in​

m2c2kit/packages/addons/src/composites/virtual-keyboard.ts:96


uuid?​

optional uuid: string

Internal

Unique identifier (UUID). Will be generated automatically. For m2c2kit library use only

Inherited from​

CompositeOptions.uuid

Defined in​

node_modules/@m2c2kit/core/dist/index.d.ts:110


zPosition?​

optional zPosition: number

Value along the z-axis to determine drawing and tap order. Larger values are on top.

Inherited from​

CompositeOptions.zPosition

Defined in​

node_modules/@m2c2kit/core/dist/index.d.ts:40


zRotation?​

optional zRotation: number

Rotation of the node around the Z axis. Unit is radians. Default is 0 (no rotation). zRotation has inheritance. In addition to this node's zRotation, all ancestors' zRotations will be applied.

Inherited from​

CompositeOptions.zRotation

Defined in​

node_modules/@m2c2kit/core/dist/index.d.ts:100