/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/functions/ |
H A D | js_swiper_function.cpp | 91 auto mainAxisLength = 0.0f; in GetMainAxisLength() local 93 mainAxisLength = proxy_->GetMainAxisLength(); in GetMainAxisLength() 95 auto toRef = JSRef<JSVal>::Make(JSVal(ToJSValue(mainAxisLength))); in GetMainAxisLength() 184 …SwiperFunction::Execute(int32_t selectedIndex, int32_t index, float position, float mainAxisLength) in Execute() argument 189 JSRef<JSVal> mainAxisLengthValue = JSRef<JSVal>::Make(ToJSValue(mainAxisLength)); in Execute()
|
H A D | js_swiper_function.h | 44 void Execute(int32_t selectedIndex, int32_t index, float position, float mainAxisLength);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/ |
H A D | swiper_content_transition_proxy.h | 67 void SetMainAxisLength(float mainAxisLength) in SetMainAxisLength() argument 69 mainAxisLength_ = mainAxisLength; in SetMainAxisLength()
|
H A D | swiper_model.h | 93 std::function<void(int32_t selectedIndex, int32_t index, float position, float mainAxisLength)>;
|
H A D | swiper_pattern.cpp | 1486 …auto mainAxisLength = Dimension(item.second.endPos - item.second.startPos, DimensionUnit::PX).Conv… in FireSwiperCustomAnimationEvent() local 1487 if (NonPositive(mainAxisLength)) { in FireSwiperCustomAnimationEvent() 1490 auto position = offset / mainAxisLength; in FireSwiperCustomAnimationEvent() 1495 proxy->SetMainAxisLength(mainAxisLength); in FireSwiperCustomAnimationEvent() 1524 …auto mainAxisLength = Dimension(item.second.endPos - item.second.startPos, DimensionUnit::PX).Conv… in FireContentDidScrollEvent() local 1525 if (NonPositive(mainAxisLength)) { in FireContentDidScrollEvent() 1528 auto position = offset / mainAxisLength; in FireContentDidScrollEvent() 1529 event(selectedIndex, item.first, position, mainAxisLength); in FireContentDidScrollEvent()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/swiper/ |
H A D | swiper_animation_test_ng.cpp | 58 …ntentDidScroll = [](int32_t selectedIndex, int32_t index, float position, float mainAxisLength) {}; in CreateWithCustomAnimation() argument 824 auto mainAxisLength = SWIPER_WIDTH - prevMargin - nextMargin - itemSpace * 2; variable 828 swiperItemInfo1.startPos = -mainAxisLength - itemSpace; 831 swiperItemInfo2.endPos = mainAxisLength; 832 swiperItemInfo3.startPos = mainAxisLength + itemSpace; 833 swiperItemInfo3.endPos = mainAxisLength * 2 + itemSpace; 846 …EXPECT_EQ(pattern_->itemPositionInAnimation_[2].startPos, mainAxisLength * 2 + itemSpace * 2 + off… 847 …EXPECT_EQ(pattern_->itemPositionInAnimation_[2].endPos, mainAxisLength * 3 + itemSpace * 2 + offse… 856 …pattern_->itemPositionInAnimation_.find(3)->second.startPos, -itemSpace - mainAxisLength + offset1… 868 …Scroll = [&isTrigger](int32_t selectedIndex, int32_t index, float position, float mainAxisLength) { in __anonc24bf7482302() argument
|
/ohos5.0/docs/zh-cn/application-dev/ui/ |
H A D | arkts-layout-development-create-looping.md | 350 …proxy.index] = - proxy.position * proxy.mainAxisLength + (1 - this.scaleList[proxy.index]) * proxy… 354 …index] = - (proxy.position - 1) * proxy.mainAxisLength - (1 - this.scaleList[proxy.index]) * proxy…
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-container-swiper.md | 1188 …设置第0页的translate属性在x轴上的值为-position * mainAxisLength来抵消第0页的位移,设置第1页的translate属性在x轴上的值为-(position - 1… 1262 | mainAxisLength | number | 否 | 否 | index对应页面在主轴方向上的长度。 | 1266 …为当前帧第0页相对于动画开始前第0页的移动比例,mainAxisLength为主轴方向上第0页的长度。第二次回调的selectedIndex仍为0、index为1、position为当前帧第1页相… 1283 …lCallback = (selectedIndex: number, index: number, position: number, mainAxisLength: number) => vo… 1296 | mainAxisLength | number | 是 | index对应页面在主轴方向上的长度。 | 1647 …proxy.index] = - proxy.position * proxy.mainAxisLength + (1 - this.scaleList[proxy.index]) * proxy… 1651 …index] = - (proxy.position - 1) * proxy.mainAxisLength - (1 - this.scaleList[proxy.index]) * proxy… 1657 ….onContentDidScroll((selectedIndex: number, index: number, position: number, mainAxisLength: numbe… 1659 …tedIndex + ", index: " + index + ", position: " + position + ", mainAxisLength: " + mainAxisLength)
|
/ohos5.0/docs/en/application-dev/ui/ |
H A D | arkts-layout-development-create-looping.md | 350 …proxy.index] = - proxy.position * proxy.mainAxisLength + (1 - this.scaleList[proxy.index]) * proxy… 354 …index] = - (proxy.position - 1) * proxy.mainAxisLength - (1 - this.scaleList[proxy.index]) * proxy…
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-container-swiper.md | 1191 …e** for page 0 = **-position** x **mainAxisLength**; **translate** for page 1 = **-(position - 1)*… 1267 | mainAxisLength | number | No| No| Length of the page specified by **index** along the main axis.| 1271 …mainAxisLength** as the length of page 0 on the main axis. The second callback has **selectedIndex… 1288 …lCallback = (selectedIndex: number, index: number, position: number, mainAxisLength: number) => vo… 1301 | mainAxisLength | number | Yes| Length of the page specified by **index** along the main axis.| 1652 …proxy.index] = - proxy.position * proxy.mainAxisLength + (1 - this.scaleList[proxy.index]) * proxy… 1656 …index] = - (proxy.position - 1) * proxy.mainAxisLength - (1 - this.scaleList[proxy.index]) * proxy… 1662 ….onContentDidScroll((selectedIndex: number, index: number, position: number, mainAxisLength: numbe… 1664 …tedIndex + ", index: " + index + ", position: " + position + ", mainAxisLength: " + mainAxisLength)
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_component/src/ |
H A D | ArkSwiper.ts | 792 position: number, mainAxisLength: number) => void> { 793 …constructor(value: (selectedIndex: number, index: number, position: number, mainAxisLength: number…
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_swiper.cpp | 1265 … int32_t selectedIndex, int32_t index, float position, float mainAxisLength) { in SetOnContentDidScroll() argument 1268 func->Execute(selectedIndex, index, position, mainAxisLength); in SetOnContentDidScroll()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | node_swiper_modifier.cpp | 1274 … = [node, extraParam](int32_t selectedIndex, int32_t index, float position, float mainAxisLength) { in SetSwiperOnContentDidScroll() argument 1284 event.componentAsyncEvent.data[NUM_3].f32 = mainAxisLength / density; in SetSwiperOnContentDidScroll()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_native_swiper_bridge.cpp | 1030 float position, float mainAxisLength) { in SetOnContentDidScroll() argument 1037 … panda::Local<panda::NumberRef> mainAxisLengthParam = panda::NumberRef::New(vm, mainAxisLength); in SetOnContentDidScroll()
|