@shijiu/jsview-vue-samples 2.2.373 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BakeViewDemo/AnimatePic.vue +1 -1
- package/Basic/components/text/TextDirection.vue +7 -2
- package/BasicFocusControl/components/BaseBlock.vue +65 -18
- package/BreakRender/assets/imageList.json +235 -235
- package/ColorSpace/App.vue +4 -4
- package/CoupletsTest/App.vue +1 -1
- package/CoupletsTest/widget/Banger/Banger.vue +3 -3
- package/CoupletsTest/widget/Banger/MaroonLoader.vue +5 -5
- package/CoupletsTest/widget/Couplets/Couplets.vue +4 -4
- package/CoupletsTest/widget/Fireworks/Fireworks.vue +13 -13
- package/CssPreprocessor/Stylus/components/stylus-group1/StylusOperations.vue +0 -1
- package/CssPreprocessor/utils/ContentBlock.vue +3 -3
- package/CssPreprocessor/utils/{FontStyle.css → FontConfig.css} +3 -3
- package/CssPreprocessor/utils/TitleBar.vue +2 -2
- package/CustomShader/App.vue +6 -6
- package/CustomShader/gaussianBlur.glsl +1 -1
- package/DashPath/App.vue +79 -0
- package/DashPath/AppForOperator.vue +35 -0
- package/DashPath/DashPath.vue +118 -0
- package/DemoForOperator/AnimPic/AnimPic.vue +47 -0
- package/DemoForOperator/AnimPic/App.vue +28 -0
- package/DemoForOperator/Banger/App.vue +26 -0
- package/DemoForOperator/Banger/Banger/Banger.vue +252 -0
- package/DemoForOperator/Banger/Banger/Maroon.vue +123 -0
- package/DemoForOperator/Banger/Banger/MaroonLoader.vue +78 -0
- package/DemoForOperator/Banger/Banger/SpriteDeal.js +30 -0
- package/DemoForOperator/Bounce/App.vue +43 -0
- package/DemoForOperator/Bounce/Bounce.vue +49 -0
- package/DemoForOperator/Bounce/FreeMoveBuilder.js +139 -0
- package/DemoForOperator/ChunLian/App.vue +47 -0
- package/DemoForOperator/ChunLian/Couplets.vue +248 -0
- package/DemoForOperator/EpisodeList/App.vue +80 -0
- package/DemoForOperator/EpisodeList/EpisodeList/Controller.vue +113 -0
- package/DemoForOperator/EpisodeList/EpisodeList/EpisodeList.vue +176 -0
- package/DemoForOperator/EpisodeList/GroupItem.vue +65 -0
- package/DemoForOperator/EpisodeList/ListItem.vue +48 -0
- package/DemoForOperator/Firework1/App.vue +25 -0
- package/DemoForOperator/Firework1/Fireworks.vue +358 -0
- package/DemoForOperator/Firework1/SpriteDeal.js +30 -0
- package/DemoForOperator/FlipPage/App.vue +75 -0
- package/DemoForOperator/FlipPage/FlipPage/FlipPage.vue +150 -0
- package/DemoForOperator/FlipPage/FlipPage/flipIn.glsl +41 -0
- package/DemoForOperator/FlipPage/FlipPage/flipOut.glsl +41 -0
- package/DemoForOperator/Focus/Alpha/AlphaFocusBox.vue +70 -0
- package/DemoForOperator/Focus/Alpha/AlphaPage.vue +40 -0
- package/DemoForOperator/Focus/Alpha/Item.vue +64 -0
- package/DemoForOperator/Focus/App.vue +124 -0
- package/DemoForOperator/Focus/CommonPageSetting.js +30 -0
- package/DemoForOperator/Focus/Item.vue +46 -0
- package/DemoForOperator/Focus/Light/Item.vue +67 -0
- package/DemoForOperator/Focus/Light/LightFocusBox.vue +46 -0
- package/DemoForOperator/Focus/Light/LightPage.vue +43 -0
- package/DemoForOperator/Focus/Light/utils/FrameCanvasStore.ts +68 -0
- package/DemoForOperator/Focus/Light/utils/RotateFrame.vue +146 -0
- package/DemoForOperator/Focus/Light/utils/circleHaloMask.png +0 -0
- package/DemoForOperator/Focus/Normal/Item.vue +64 -0
- package/DemoForOperator/Focus/Normal/NormalFocusBox.vue +53 -0
- package/DemoForOperator/Focus/Normal/NormalPage.vue +41 -0
- package/DemoForOperator/Focus/SwipeLight/Item.vue +73 -0
- package/DemoForOperator/Focus/SwipeLight/SwipeLightBox.vue +62 -0
- package/DemoForOperator/Focus/SwipeLight/SwipeLightPage.vue +44 -0
- package/DemoForOperator/FullscreenIn/App.vue +105 -0
- package/DemoForOperator/FullscreenIn/FullscreenPoster.vue +41 -0
- package/DemoForOperator/FullscreenIn/Item.vue +50 -0
- package/DemoForOperator/Genie/App.vue +78 -0
- package/DemoForOperator/Genie/geniePakcer/Genie.vue +699 -0
- package/DemoForOperator/Genie/geniePakcer/genieBottom.glsl +49 -0
- package/DemoForOperator/Genie/geniePakcer/genieLeft.glsl +50 -0
- package/DemoForOperator/Genie/geniePakcer/genieRight.glsl +57 -0
- package/DemoForOperator/Genie/geniePakcer/genieTop.glsl +50 -0
- package/DemoForOperator/GrayFilter/App.vue +51 -0
- package/DemoForOperator/GrayFilter/GrayFilter.vue +38 -0
- package/DemoForOperator/Jigsaw/App.vue +45 -0
- package/DemoForOperator/Jigsaw/JigsawFull.vue +100 -0
- package/DemoForOperator/Jigsaw/JigsawSingle.vue +86 -0
- package/DemoForOperator/Particle/App.vue +69 -0
- package/DemoForOperator/Particle/Drop/DropParticle.vue +176 -0
- package/DemoForOperator/Particle/Explode/ExplodeParticle.vue +99 -0
- package/DemoForOperator/PosterAnim/App.vue +125 -0
- package/DemoForOperator/PosterAnim/Bounce/BouncePage.vue +54 -0
- package/DemoForOperator/PosterAnim/Bounce/Item.vue +85 -0
- package/DemoForOperator/PosterAnim/Breath/BreathPage.vue +47 -0
- package/DemoForOperator/PosterAnim/Breath/Item.vue +58 -0
- package/DemoForOperator/PosterAnim/CommonPageSetting.js +30 -0
- package/DemoForOperator/PosterAnim/Item.vue +46 -0
- package/DemoForOperator/PosterAnim/PosterAnim.js +58 -0
- package/DemoForOperator/PosterAnim/Scale/Item.vue +72 -0
- package/DemoForOperator/PosterAnim/Scale/ScalePage.vue +48 -0
- package/DemoForOperator/PosterAnim/Shake/Item.vue +85 -0
- package/DemoForOperator/PosterAnim/Shake/ShakePage.vue +53 -0
- package/DemoForOperator/PosterOverflow/App.vue +116 -0
- package/DemoForOperator/PosterOverflow/Item.vue +67 -0
- package/DemoForOperator/PosterOverflow/PosterOverflow.vue +23 -0
- package/DemoForOperator/Ripple/App.vue +54 -0
- package/DemoForOperator/Ripple/Ripple.vue +50 -0
- package/DemoForOperator/ScalePoster/App.vue +4 -0
- package/DemoForOperator/ScalePoster/ScalePoster.vue +0 -0
- package/DemoForOperator/Sprite/App.vue +33 -0
- package/DemoForOperator/Sprite/Sprite.vue +90 -0
- package/DemoForOperator/Stretch/App.vue +103 -0
- package/DemoForOperator/Stretch/Stretch/Item.vue +192 -0
- package/DemoForOperator/Stretch/Stretch/Stretch.vue +168 -0
- package/DemoForOperator/TabContent/App.vue +89 -0
- package/DemoForOperator/TabContent/ContentPage.vue +66 -0
- package/DemoForOperator/TabContent/Item.vue +85 -0
- package/DemoForOperator/TabContent/PageItem.vue +40 -0
- package/DemoForOperator/TabContent/TabContent/CreepFocus.vue +160 -0
- package/DemoForOperator/TabContent/TabContent/Item.vue +63 -0
- package/DemoForOperator/TabContent/TabContent/TabContent.vue +146 -0
- package/DemoForOperator/TabContent/TabContent/TabItem.vue +368 -0
- package/DemoForOperator/TabContent/TabContent/TabWidget.vue +243 -0
- package/DemoForOperator/TabContent/TabContent/Util.js +3 -0
- package/DemoForOperator/TabContent/TabContent/ViewSwiper.vue +110 -0
- package/DemoForOperator/TabContent/testData.js +241 -0
- package/DemoForOperator/Vortex/App.vue +78 -0
- package/DemoForOperator/Vortex/Vortex/Vortex.vue +154 -0
- package/DemoForOperator/Vortex/Vortex/vortexIn.glsl +38 -0
- package/DemoForOperator/Vortex/Vortex/vortexOut.glsl +38 -0
- package/DemoForOperator/index.js +6 -0
- package/DemoForOperator/routeList.js +142 -0
- package/DemoHomepage/App.vue +50 -30
- package/DemoHomepage/components/Dialog.vue +1 -0
- package/DemoHomepage/components/TabFrame.vue +7 -0
- package/DemoHomepage/router.js +104 -81
- package/DemoHomepage/views/Homepage.vue +7 -6
- package/DivMetroPerformance/components/ContentItem.vue +0 -1
- package/DivMetroPerformance/data.js +3 -3
- package/DriftScopeTest/App.vue +1 -1
- package/FilterDemo/AnimatePic.vue +1 -1
- package/FilterDemo/VideoLayer.vue +2 -2
- package/FlexCellDemo/TestFrame1.vue +0 -4
- package/FullScreenFlex/TestFrame2.vue +1 -1
- package/GiftRain/App.vue +12 -15
- package/HashParams/App.vue +0 -1
- package/JsvPreDownloader/App.vue +4 -6
- package/Marquee/App.vue +2 -2
- package/MediaDemo/components/frames/AudioFrame.vue +1 -1
- package/MediaDemo/components/frames/VideoFrame.vue +1 -1
- package/MetroWidgetDemos/MassiveItems/ContentItem.vue +1 -2
- package/MetroWidgetDemos/MassiveItems/data.js +1 -1
- package/MetroWidgetDemos/PerformanceTest/components/ContentItem.vue +0 -1
- package/MetroWidgetDemos/PerformanceTest/components/MyTab.vue +18 -17
- package/MetroWidgetDemos/PerformanceTest/data.js +3 -3
- package/MetroWidgetDemos/RefreshDemo/assets/imageList.json +235 -235
- package/MetroWidgetDemos/SkeletonDiagram/assets/imageList.json +235 -235
- package/MetroWidgetDemos/focusableItemMetroWidget/WidgetItem.vue +3 -1
- package/MetroWidgetDemos/routeList.js +17 -17
- package/Poster3d/App.vue +69 -0
- package/Poster3d/Poster3d.vue +92 -0
- package/PosterPacker/App.vue +5 -5
- package/PosterPacker/tools/geniePakcer/Genie.vue +2 -2
- package/PosterPacker/tools/vortexPacker/Vortex.vue +15 -15
- package/QrcodeDemo/App.vue +1 -1
- package/Ripple/App.vue +1 -1
- package/ScaleDownNeon/App.vue +13 -10
- package/SceneTransition/App.vue +7 -6
- package/SceneTransition/maskConfig/config2.js +12 -12
- package/SceneTransition/maskConfig/config3.js +14 -14
- package/SprayView/App.vue +96 -51
- package/SpringFestival/App.vue +73 -0
- package/SpringFestival/SpringFestivalScene/ChunLian.vue +211 -0
- package/SpringFestival/SpringFestivalScene/FreeMoveBuilder.js +139 -0
- package/SpringFestival/SpringFestivalScene/LanternAnim.js +60 -0
- package/SpringFestival/SpringFestivalScene/Rain.vue +137 -0
- package/SpringFestival/SpringFestivalScene/Scene.vue +218 -0
- package/SpringFestival/SpringFestivalScene/imageConfig.js +87 -0
- package/SpringFestival/SpringFestivalScene/index.js +1 -0
- package/Swiper/App.vue +28 -29
- package/Swiper/Item.vue +19 -0
- package/SwiperTest/App.vue +9 -9
- package/TestNativeSharedView/AckEventDefine.ts +82 -0
- package/TestNativeSharedView/App.vue +4 -6
- package/TestNativeSharedView/JsvDemoTester.js +131 -0
- package/TextureAnimation/App3.vue +100 -0
- package/TextureAnimation/utils/FrameCanvasStore.ts +68 -0
- package/TextureAnimation/utils/RotateFrame.vue +146 -0
- package/TextureAnimation/utils/circleHaloMask.png +0 -0
- package/TextureSize/App.vue +5 -6
- package/TombSweepingDayTest/Raining/RainScene.vue +4 -4
- package/ViewOpacity/App.vue +6 -7
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import { getDataUrl } from "../CommonUtils/ResourceData";
|
|
|
5
5
|
const DemoResourceBase = getDataUrl();
|
|
6
6
|
const item_url = DemoResourceBase
|
|
7
7
|
? `${DemoResourceBase}/27bda620942566673ab449a3ef765321.png`
|
|
8
|
-
: "
|
|
8
|
+
: "https://cdn.release.qcast.cn/JsViewFrameworkTester/JsViewVueSampleResources/BakeViewDemo/AnimatePic/27bda620942566673ab449a3ef765321.png";
|
|
9
9
|
|
|
10
10
|
const staticLeftPos = shallowRef(0);
|
|
11
11
|
let moveLeftTimer = -1;
|
|
@@ -8,6 +8,8 @@ const unitHeight = 20 + 35;
|
|
|
8
8
|
|
|
9
9
|
const ltrText = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
10
10
|
const rtlText = "شلؤيثبلاهتنمةىخحضقسفعررصءغئا";
|
|
11
|
+
|
|
12
|
+
const showReverseEllipsis = window.JsvCoreApi?.Platform == "android";
|
|
11
13
|
</script>
|
|
12
14
|
|
|
13
15
|
<template>
|
|
@@ -35,6 +37,7 @@ const rtlText = "شلؤيثبلاهتنمةىخحضقسفعررصءغئا";
|
|
|
35
37
|
>
|
|
36
38
|
<div class="explain">ltr文字省略头部</div>
|
|
37
39
|
<div
|
|
40
|
+
v-if="showReverseEllipsis"
|
|
38
41
|
class="content-font base"
|
|
39
42
|
:style="{
|
|
40
43
|
direction: 'rtl',
|
|
@@ -42,6 +45,7 @@ const rtlText = "شلؤيثبلاهتنمةىخحضقسفعررصءغئا";
|
|
|
42
45
|
>
|
|
43
46
|
{{ ltrText }}
|
|
44
47
|
</div>
|
|
48
|
+
<div v-else class="explain" :style="{top: 25}">此平台不测试</div>
|
|
45
49
|
</div>
|
|
46
50
|
|
|
47
51
|
<div
|
|
@@ -67,6 +71,7 @@ const rtlText = "شلؤيثبلاهتنمةىخحضقسفعررصءغئا";
|
|
|
67
71
|
>
|
|
68
72
|
<div class="explain">rtl文字省略头部</div>
|
|
69
73
|
<div
|
|
74
|
+
v-if="showReverseEllipsis"
|
|
70
75
|
class="content-font base"
|
|
71
76
|
:style="{
|
|
72
77
|
direction: 'ltr',
|
|
@@ -74,6 +79,7 @@ const rtlText = "شلؤيثبلاهتنمةىخحضقسفعررصءغئا";
|
|
|
74
79
|
>
|
|
75
80
|
{{ rtlText }}
|
|
76
81
|
</div>
|
|
82
|
+
<div v-else class="explain" :style="{top: 25}">此平台不测试</div>
|
|
77
83
|
</div>
|
|
78
84
|
</div>
|
|
79
85
|
</template>
|
|
@@ -91,7 +97,6 @@ const rtlText = "شلؤيثبلاهتنمةىخحضقسفعررصءغئا";
|
|
|
91
97
|
font-size: 25;
|
|
92
98
|
white-space: nowrap;
|
|
93
99
|
text-overflow: ellipsis;
|
|
94
|
-
overflow: hidden;
|
|
95
100
|
}
|
|
96
101
|
|
|
97
102
|
.explain {
|
|
@@ -101,4 +106,4 @@ const rtlText = "شلؤيثبلاهتنمةىخحضقسفعررصءغئا";
|
|
|
101
106
|
font-size: 15;
|
|
102
107
|
color: #000000;
|
|
103
108
|
}
|
|
104
|
-
</style>
|
|
109
|
+
</style>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { shallowRef, onMounted, inject } from "vue";
|
|
3
|
-
import { CONST_FILL_NAME_FUNC, CONST_COLUMN_MARK } from "./constants.js"
|
|
4
|
-
import { useFocusHub } from "jsview"
|
|
3
|
+
import { CONST_FILL_NAME_FUNC, CONST_COLUMN_MARK } from "./constants.js";
|
|
4
|
+
import { useFocusHub } from "jsview";
|
|
5
5
|
const props = defineProps({
|
|
6
6
|
focusBlockName: String,
|
|
7
7
|
style: {
|
|
@@ -11,7 +11,7 @@ const props = defineProps({
|
|
|
11
11
|
},
|
|
12
12
|
},
|
|
13
13
|
defineColumn: Number,
|
|
14
|
-
defineLine: Number
|
|
14
|
+
defineLine: Number,
|
|
15
15
|
});
|
|
16
16
|
|
|
17
17
|
const fbName = props.focusBlockName; // 以列号作为自己的JsvfocusBlock的name
|
|
@@ -26,40 +26,87 @@ const funcFullFilled = inject(CONST_FILL_NAME_FUNC);
|
|
|
26
26
|
const columnMark = inject(CONST_COLUMN_MARK); // 全局行记录器,用于纵向移动时保持列
|
|
27
27
|
|
|
28
28
|
onMounted(() => {
|
|
29
|
-
const syncName = async ()=> {
|
|
29
|
+
const syncName = async () => {
|
|
30
30
|
// 由于vue的mount回调从子到父节点传递,而FocusBlock焦点树要在根节点mount完成后才建立完。所以getFullName是一个异步函数。
|
|
31
31
|
fullName.value = await blockRef.value.getFullName(); // 用名字更新方块内的名称
|
|
32
32
|
funcFullFilled(props.defineLine, props.defineColumn, fullName.value); // 将全名同步给最外层app, 以便于全局跳转
|
|
33
|
-
console.log(`name taken success name=${fullName.value}`)
|
|
34
|
-
}
|
|
33
|
+
console.log(`name taken success name=${fullName.value}`);
|
|
34
|
+
};
|
|
35
35
|
syncName();
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
const onFocus = () => {
|
|
39
|
-
const nameSpace = focusHub.getNameSpace()
|
|
40
|
-
console.log(`${nameSpace}.${fbName} focused`)
|
|
39
|
+
const nameSpace = focusHub.getNameSpace(); // 注意: 如果nameSpace为根节点时,获得的NameSpace的String为空字符串
|
|
40
|
+
console.log(`${nameSpace}.${fbName} focused`);
|
|
41
41
|
hasFocused.value = true;
|
|
42
42
|
columnMark.value = props.defineColumn;
|
|
43
|
+
|
|
44
|
+
// 用于测试焦点深入处理
|
|
45
|
+
focusHub.setFocus(fbName + "_dep1");
|
|
43
46
|
};
|
|
44
47
|
|
|
45
48
|
const onBlur = () => {
|
|
46
|
-
console.log(`${focusHub.getNameSpace()}.${fbName} blured`)
|
|
49
|
+
console.log(`${focusHub.getNameSpace()}.${fbName} blured`);
|
|
47
50
|
hasFocused.value = false;
|
|
48
51
|
};
|
|
49
52
|
|
|
53
|
+
const onSubDep1Focus = () => {
|
|
54
|
+
const nameSpace = focusHub.getNameSpace();
|
|
55
|
+
console.log(`${nameSpace}.${fbName}_dep1 focused`);
|
|
56
|
+
|
|
57
|
+
// 用于测试焦点深入处理(第二层)
|
|
58
|
+
focusHub.setFocus(fbName + "_dep2");
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
const onSubDep1Blur = () => {
|
|
62
|
+
const nameSpace = focusHub.getNameSpace();
|
|
63
|
+
console.log(`${nameSpace}.${fbName}_dep1 blured`);
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
const onSubDep2Focus = () => {
|
|
67
|
+
const nameSpace = focusHub.getNameSpace();
|
|
68
|
+
console.log(`${nameSpace}.${fbName}_dep2 focused`);
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
const onSubDep2Blur = () => {
|
|
72
|
+
const nameSpace = focusHub.getNameSpace();
|
|
73
|
+
console.log(`${nameSpace}.${fbName}_dep2 blured`);
|
|
74
|
+
};
|
|
50
75
|
</script>
|
|
51
76
|
|
|
52
77
|
<template>
|
|
53
|
-
<jsv-focus-block
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
78
|
+
<jsv-focus-block
|
|
79
|
+
ref="blockRef"
|
|
80
|
+
:name="fbName"
|
|
81
|
+
:onAction="{
|
|
82
|
+
onFocus,
|
|
83
|
+
onBlur,
|
|
84
|
+
}"
|
|
85
|
+
>
|
|
86
|
+
<div
|
|
87
|
+
class="title"
|
|
88
|
+
:style="{
|
|
89
|
+
left: props.style.left,
|
|
90
|
+
backgroundColor: hasFocused ? 'rgba(255,0,0,1)' : 'rgba(0,255,0,1)',
|
|
91
|
+
}"
|
|
92
|
+
>
|
|
61
93
|
{{ fullName }}
|
|
62
94
|
</div>
|
|
95
|
+
<jsv-focus-block
|
|
96
|
+
:name="fbName + '_dep1'"
|
|
97
|
+
:onAction="{
|
|
98
|
+
onFocus: onSubDep1Focus,
|
|
99
|
+
onBlur: onSubDep1Blur,
|
|
100
|
+
}"
|
|
101
|
+
>
|
|
102
|
+
<jsv-focus-block
|
|
103
|
+
:name="fbName + '_dep2'"
|
|
104
|
+
:onAction="{
|
|
105
|
+
onFocus: onSubDep2Focus,
|
|
106
|
+
onBlur: onSubDep2Blur,
|
|
107
|
+
}"
|
|
108
|
+
/>
|
|
109
|
+
</jsv-focus-block>
|
|
63
110
|
</jsv-focus-block>
|
|
64
111
|
</template>
|
|
65
112
|
|
|
@@ -72,4 +119,4 @@ const onBlur = () => {
|
|
|
72
119
|
width: 155;
|
|
73
120
|
height: 50;
|
|
74
121
|
}
|
|
75
|
-
</style>
|
|
122
|
+
</style>
|