Home
last modified time | relevance | path

Searched refs:edgeLength (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/indicator_common/
H A Dswiper_indicator_utils.h107 …float edgeLength = edge.Unit() == DimensionUnit::PERCENT ? swiperLength * edge.Value() : edge.Conv… in GetValidEdgeLength() local
108 if (!NearZero(edgeLength) && edgeLength > (swiperLength - indicatorLength)) { in GetValidEdgeLength()
109 edgeLength = swiperLength - indicatorLength; in GetValidEdgeLength()
111 if (edgeLength < 0.0) { in GetValidEdgeLength()
112 edgeLength = 0.0; in GetValidEdgeLength()
114 return edgeLength; in GetValidEdgeLength()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/swiper/
H A Drender_swiper.cpp1852 …double edgeLength = edge.Unit() == DimensionUnit::PERCENT ? swiperLength * edge.Value() : Normaliz… in GetValidEdgeLength() local
1853 if (!NearZero(edgeLength) && edgeLength > swiperLength - indicatorLength) { in GetValidEdgeLength()
1854 edgeLength = swiperLength - indicatorLength; in GetValidEdgeLength()
1856 if (edgeLength < 0.0) { in GetValidEdgeLength()
1857 edgeLength = 0.0; in GetValidEdgeLength()
1859 return edgeLength; in GetValidEdgeLength()