Home
last modified time | relevance | path

Searched refs:FULL_SCALE (Results 1 - 1 of 1) sorted by relevance

/foundation/arkui/ui_lite/frameworks/components/
H A Dui_button.cpp298 constexpr float FULL_SCALE = 1.0f; member
309 float targetScale = isReverse ? SHRINK_SCALE : FULL_SCALE; in Start()
321 float x = isReverseAnimation_ ? (FULL_SCALE - scale_) : (scale_ - SHRINK_SCALE); in Start()
322 float y = x / (FULL_SCALE - SHRINK_SCALE); in Start()
323 x = Interpolation::GetBezierY(FULL_SCALE - y, 0, BEZIER_CONTROL, FULL_SCALE, BEZIER_CONTROL); in Start()
348 float offset = Interpolation::GetBezierY(x, BEZIER_CONTROL, 0, BEZIER_CONTROL, FULL_SCALE); in Callback()
349 float scale = (FULL_SCALE - SHRINK_SCALE) * offset; in Callback()
351 scale_ = isReverseAnimation_ ? (FULL_SCALE - scale) : (scale + SHRINK_SCALE); in Callback()
361 scale_ = FULL_SCALE; in OnStop()
[all...]

Completed in 1 milliseconds