跳转到内容

Spring

Constructors

new Spring()

new Spring(currentPosition): Spring

Parameters

currentPosition: number = 0

Returns

Spring

Defined in

packages/react-full/src/utils/spring.ts:29

Methods

arrived()

arrived(): boolean

Returns

boolean

Defined in

packages/react-full/src/utils/spring.ts:47


getCurrentPosition()

getCurrentPosition(): number

Returns

number

Defined in

packages/react-full/src/utils/spring.ts:108


setPosition()

setPosition(targetPosition): void

Parameters

targetPosition: number

Returns

void

Defined in

packages/react-full/src/utils/spring.ts:55


setTargetPosition()

setTargetPosition(targetPosition, delay): void

Parameters

targetPosition: number

delay: number = 0

Returns

void

Defined in

packages/react-full/src/utils/spring.ts:96


update()

update(delta): void

Parameters

delta: number = 0

Returns

void

Defined in

packages/react-full/src/utils/spring.ts:61


updateParams()

updateParams(params, delay): void

Parameters

params: Partial<SpringParams>

delay: number = 0

Returns

void

Defined in

packages/react-full/src/utils/spring.ts:82