Home
last modified time | relevance | path

Searched refs:friction (Results 1 – 25 of 130) sorted by relevance

123456

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/animation/
H A Dfriction_motion.cpp29 FrictionMotion::FrictionMotion(double friction, double initPosition, double initVelocity) in FrictionMotion() argument
31 Reset(friction, initPosition, initVelocity); in FrictionMotion()
34 void FrictionMotion::Reset(double friction, double initPosition, double initVelocity, double thresh… in Reset() argument
36 if (!IsValid(friction)) { in Reset()
39 friction_ = friction * FRICTION_SCALE; in Reset()
57 bool FrictionMotion::IsValid(double friction) const in IsValid()
59 if (friction < 0.0 || NearZero(friction)) { in IsValid()
60 LOGE("Invalid friction:%{public}lf.", friction); in IsValid()
H A Dfriction_motion.h27 FrictionMotion(double friction, double initPosition, double initVelocity);
31 …void Reset(double friction, double initPosition, double initVelocity, double threshold = DEFAULT_M…
51 bool IsValid(double friction) const;
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/scrollable/
H A Dscrollable_fling_test_ng.cpp102 float friction = 0.6f; variable
187 float friction = 0.6f; variable
274 float friction = 0.6f; variable
371 float friction = 0.6f; variable
458 float friction = 0.6f; variable
548 float friction = 0.6f; variable
626 float friction = 0.6f; variable
716 float friction = 0.6f; variable
804 float friction = 0.6f; variable
896 float friction = 0.6f; variable
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_refresh_ffi.cpp31 …ceFrameworkRefreshCreate(bool refreshing, double offsetValue, int32_t offsetUnit, int32_t friction) in FfiOHOSAceFrameworkRefreshCreate() argument
62 RefreshModel::GetInstance()->SetFriction(friction); in FfiOHOSAceFrameworkRefreshCreate()
63 if (friction <= 0) { in FfiOHOSAceFrameworkRefreshCreate()
69 int32_t offsetUnit, int32_t friction, void (*callback)(bool isRefreshing)) in FfiOHOSAceFrameworkRefreshCreateWithChangeEvent() argument
110 RefreshModel::GetInstance()->SetFriction(friction); in FfiOHOSAceFrameworkRefreshCreateWithChangeEvent()
111 if (friction <= 0) { in FfiOHOSAceFrameworkRefreshCreateWithChangeEvent()
H A Dcj_refresh_ffi.h26 bool refreshing, double offsetValue, int32_t offsetUnit, int32_t friction);
28 …bool refreshing, double offsetValue, int32_t offsetUnit, int32_t friction, void (*callback)(bool i…
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/refresh/
H A Drefresh_component.h228 void SetFriction(int32_t friction) in SetFriction() argument
230 if (friction >= MIN_FRICTION_RATIO && friction <= MAX_FRICTION_RATIO) { in SetFriction()
231 friction_ = friction; in SetFriction()
232 } else if (friction < MIN_FRICTION_RATIO) { in SetFriction()
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.1.2.2/
H A Dchangelogs-arkui.md80 3、friction接口变更
82 API 11以前,Refresh下拉使用固定跟手系数,跟手系数可以通过friction接口设置。
83 API 11及以后,Refresh下拉使用动态跟手系数,下拉距离越大,跟手系数越小。通过friction设置的跟手系数不生效。
216 3、friction和offset接口变更
218 API 11及以后,friction和offset设置不生效,按系统默认UX效果实现,无需适配。
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_refresh.cpp157 auto friction = paramObject->GetProperty("friction"); in Create() local
178 ParsFrictionData(friction); in Create()
298 void JSRefresh::ParsFrictionData(const JsiRef<JsiValue>& friction) in ParsFrictionData() argument
301 if (friction->IsString()) { in ParsFrictionData()
302 frictionNumber = StringUtils::StringToInt(friction->ToString()); in ParsFrictionData()
303 if ((frictionNumber == 0 && friction->ToString() != "0") || frictionNumber < 0 || in ParsFrictionData()
307 } else if (friction->IsNumber()) { in ParsFrictionData()
308 frictionNumber = friction->ToNumber<int32_t>(); in ParsFrictionData()
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.31/
H A Dchangelogs-arkui.md381 为了优化功耗,将滚动类组件(List、Grid、WaterFlow、Scroll)friction接口默认值改为0.75。
387 变更前,滚动类组件(List、Grid、WaterFlow、Scroll)的friction接口默认值为0.7。
389 变更后,滚动类组件(List、Grid、WaterFlow、Scroll)的friction接口默认值为0.75。相较变更之前,用同样力度抛滑,抛滑时间更短、抛滑距离更近。
401 滚动类组件(List、Grid、WaterFlow、Scroll)的friction接口。
405 开发者如果需要使用变更之前的抛滑效果,可以将friction接口的参数设置为0.7。
422 .friction(0.7)
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.1.2.2/
H A Dchangelogs-arkui.md80 3. **friction** API
82 …*\<Refresh>** component's sensitivity to the pull-down gesture is set through the **friction** API.
83 …ty to the pull-down gesture decreases with the pull-down gesture. The **friction** API has no effe…
88 …adingProgress>** component to start to display is fixed at 16 vp. The **friction** API has no effe…
216 3. **friction** and **offset** APIs
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-js/
H A Djs-components-common-transition.md22 …hared-transition-timing-function | string | friction | 转场时,目的页配置的样式优先生效。该属性定义了共享元素转场时的差值曲线。若不配置,默认…
229 | transition-timing-function | string | friction | 描述转场动画执行的速度曲线,用于使转场更为平滑。详细参数见[动画样式](js-comp…
291 transition-timing-function: friction;
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/
H A Djs-apis-animator.md72 easing: "friction",
112 easing: "friction",
160 easing: "friction",
170 easing: "friction",
528 …0)。<br>"fast-out-linear-in":加速曲线,cubic-bezier(0.4, 0.0, 1.0, 1.0)。<br/>"friction":阻尼曲线,cubic-bezie…
571 easing: "friction",
589 easing: "friction",
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dlist_modifier.cpp186 void SetListFriction(NodeHandle node, double friction) in SetListFriction() argument
190 ListModelNG::SetListFriction(frameNode, friction); in SetListFriction()
197 double friction = -1.0; in ResetListFriction() local
198 ListModelNG::SetListFriction(frameNode, friction); in ResetListFriction()
H A Dgrid_modifier.cpp334 void SetFriction(ArkUINodeHandle node, ArkUI_Float32 friction) in SetFriction() argument
338 GridModelNG::SetFriction(frameNode, friction); in SetFriction()
345 ArkUI_Float32 friction = -1.0; in ResetFriction() local
346 GridModelNG::SetFriction(frameNode, friction); in ResetFriction()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Drefresh_model_impl.cpp81 void RefreshModelImpl::SetFriction(int32_t friction) in SetFriction() argument
86 component->SetFriction(friction); in SetFriction()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/tab_bar/
H A Drender_tab_content.cpp355 double friction = GetFriction(std::abs(scrollOffset_) / contentHeight_); in GetOffset() local
356 return friction * delta; in GetOffset()
360 double friction = GetFriction(std::abs(scrollOffset_) / contentWidth_); in GetOffset() local
361 return friction * delta; in GetOffset()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/
H A Dscroll_model_ng.h55 void SetFriction(double friction) override;
68 static void SetFriction(FrameNode* frameNode, double friction);
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-js/
H A Djs-components-container-refresh.md30friction | number | 42 | No| Pull-down friction coefficient. The value ranges from 0 to 100. A lar…
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/
H A Dgrid_model_ng.cpp201 void GridModelNG::SetFriction(double friction) in SetFriction() argument
207 pattern->SetFriction(friction); in SetFriction()
505 void GridModelNG::SetFriction(FrameNode* frameNode, double friction) in SetFriction() argument
509 if (LessOrEqual(friction, 0.0)) { in SetFriction()
512 pattern->SetFriction(friction); in SetFriction()
H A Dgrid_model_ng.h57 void SetFriction(double friction) override;
101 static void SetFriction(FrameNode* frameNode, double friction);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scrollable/
H A Dscrollable.cpp514 float friction = sFriction_.value_or(friction_); in StartScrollAnimation() local
516 finalPosition_ = mainPosition + correctVelocity / (friction * -FRICTION_SCALE); in StartScrollAnimation()
549 float response = fabs(2 * M_PI / (FRICTION_SCALE * friction)); in StartScrollAnimation()
661 float Scrollable::GetFrictionVelocityByFinalPosition(float final, float position, float friction, in GetFrictionVelocityByFinalPosition() argument
664 return DEFAULT_THRESHOLD * threshold * signum - (final - position) * friction; in GetFrictionVelocityByFinalPosition()
677 float friction = sFriction_.value_or(friction_); in FixScrollMotion() local
678 … float velocity = GetFrictionVelocityByFinalPosition(finalPosition, position, friction, signum); in FixScrollMotion()
682 … velocity = GetFrictionVelocityByFinalPosition(finalPosition, position, friction, signum, 0.0f); in FixScrollMotion()
685 finalPosition_ = mainPosition + initVelocity_ / (friction * -FRICTION_SCALE); in FixScrollMotion()
H A Dscrollable.h149 void SetUnstaticFriction(double friction) in SetUnstaticFriction() argument
151 friction_ = friction; in SetUnstaticFriction()
490 … float final, float position, float signum, float friction, float threshold = DEFAULT_MULTIPLIER);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/
H A Dwater_flow_model_ng.h56 void SetFriction(double friction) override;
79 static void SetFriction(FrameNode* frameNode, double friction);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/scroll/
H A Drender_scroll.cpp399 double friction = easing ? CalculateFriction((overscrollPast - std::abs(offset)) / viewPortSize) in AdjustOffset() local
402 offset = direction * CalculateOffsetByFriction(overscrollPast, std::abs(offset), friction); in AdjustOffset()
411 double RenderScroll::CalculateOffsetByFriction(double extentOffset, double delta, double friction) in CalculateOffsetByFriction() argument
414 if (extentOffset > 0.0 && !NearZero(friction)) { in CalculateOffsetByFriction()
415 double deltaToLimit = extentOffset / friction; in CalculateOffsetByFriction()
417 return delta * friction; in CalculateOffsetByFriction()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/list/
H A Dlayout_manager.h270 void SetFriction(double friction) in SetFriction() argument
272 friction_ = friction; in SetFriction()

123456