m4m.framework.slideArea

@meta4d/engine / Exports / m4m / framework / slideArea

Class: slideArea

m4m.framework.slideArea

language zh_CN

classdesc 滑动区域

version m4m 1.0

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new slideArea()

Properties

horizontal

horizontal: boolean = false

language zh_CN

classdesc 水平滑动开启

version m4m 1.0

Defined in

framework/2d/component/slideArea.ts:23


onDownFun

onDownFun: (x: number, y: number) => {}

Type declaration

▸ (x, y): Object

Parameters

Name
Type

x

number

y

number

Returns

Object

Defined in

framework/2d/component/slideArea.ts:99


onMoveFun

onMoveFun: (x: number, y: number) => {}

Type declaration

▸ (x, y): Object

Parameters

Name
Type

x

number

y

number

Returns

Object

Defined in

framework/2d/component/slideArea.ts:98


onUpFun

onUpFun: () => {}

Type declaration

▸ (): Object

Returns

Object

Defined in

framework/2d/component/slideArea.ts:100


transform

transform: transform2D

Implementation of

I2DComponent.transform

Defined in

framework/2d/component/slideArea.ts:43


vertical

vertical: boolean = false

language zh_CN

classdesc 垂直滑动开启

version m4m 1.0

Defined in

framework/2d/component/slideArea.ts:33


ClassName

Static Readonly ClassName: string = "slideArea"

Defined in

framework/2d/component/slideArea.ts:11

Methods

onPlay

onPlay(): void

Returns

void

Implementation of

I2DComponent.onPlay

Defined in

framework/2d/component/slideArea.ts:38


onPointEvent

onPointEvent(canvas, ev, oncap): void

Parameters

Name
Type

canvas

ev

PointEvent

oncap

boolean

Returns

void

Implementation of

I2DPointListener.onPointEvent

Defined in

framework/2d/component/slideArea.ts:44


remove

remove(): void

Returns

void

Implementation of

I2DComponent.remove

Defined in

framework/2d/component/slideArea.ts:104


start

start(): void

Returns

void

Implementation of

I2DComponent.start

Defined in

framework/2d/component/slideArea.ts:35


update

update(delta): void

Parameters

Name
Type

delta

number

Returns

void

Implementation of

I2DComponent.update

Defined in

framework/2d/component/slideArea.ts:41

Last updated