@shijiu/jsview-vue-samples 2.2.426-test.0 → 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 -1
- package/BasicFocusControl/components/BaseBlock.vue +65 -18
- package/BreakRender/assets/imageList.json +235 -235
- package/ColorSpace/App.vue +2 -2
- 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/CustomShader/App.vue +4 -4
- 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 -2
- 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/FullScreenFlex/TestFrame2.vue +1 -1
- package/GiftRain/App.vue +12 -12
- package/JsvPreDownloader/App.vue +4 -4
- package/MediaDemo/components/frames/AudioFrame.vue +1 -1
- package/MediaDemo/components/frames/VideoFrame.vue +1 -1
- package/MetroWidgetDemos/MassiveItems/ContentItem.vue +1 -1
- package/MetroWidgetDemos/MassiveItems/data.js +1 -1
- 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 +3 -3
- package/PosterPacker/tools/vortexPacker/Vortex.vue +1 -1
- package/QrcodeDemo/App.vue +1 -1
- package/Ripple/App.vue +1 -1
- package/ScaleDownNeon/App.vue +4 -4
- package/SceneTransition/App.vue +2 -2
- 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/App.vue +16 -6
- 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/TombSweepingDayTest/Raining/RainScene.vue +4 -4
- package/ViewOpacity/App.vue +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
export const testData = [
|
|
2
|
+
{
|
|
3
|
+
"indexId": 0,
|
|
4
|
+
"itemIcon4": "https://oss.image.qcast.cn/epg/resource/apk_site/biz_70204360/biz_89605309/images/biz_89605309_bg_20230610145407.jpg",
|
|
5
|
+
"itemTitle": "更多",
|
|
6
|
+
"itemSubTitle": "",
|
|
7
|
+
"itemType": "biz",
|
|
8
|
+
"itemCode": "biz_89605309",
|
|
9
|
+
"itemIcon": "",
|
|
10
|
+
"hImg": "",
|
|
11
|
+
"vImg": "",
|
|
12
|
+
"opimg1": "",
|
|
13
|
+
"opimg2": "",
|
|
14
|
+
"linkType": "",
|
|
15
|
+
"dataLink": "http://192.168.0.226:8077/src/epg/api/page/biz_89605309.json",
|
|
16
|
+
"title": "更多",
|
|
17
|
+
"icon": "",
|
|
18
|
+
"icon4": "https://oss.image.qcast.cn/epg/resource/apk_site/biz_70204360/biz_89605309/images/biz_89605309_bg_20230610145407.jpg"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"indexId": 1,
|
|
22
|
+
"itemTitle": "短视频",
|
|
23
|
+
"itemSubTitle": "",
|
|
24
|
+
"itemType": "biz",
|
|
25
|
+
"itemCode": "biz_520",
|
|
26
|
+
"itemIcon": "",
|
|
27
|
+
"hImg": "",
|
|
28
|
+
"vImg": "",
|
|
29
|
+
"opimg1": "",
|
|
30
|
+
"opimg2": "",
|
|
31
|
+
"linkType": "",
|
|
32
|
+
"dataLink": "http://192.168.0.226:8077/src/epg/api/page/biz_520.json",
|
|
33
|
+
"title": "短视频",
|
|
34
|
+
"icon": ""
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"indexId": 2,
|
|
38
|
+
"itemIcon4": "https://oss.image.qcast.cn/epg/resource/apk_site/biz_70204360/biz_84518310/images/biz_84518310_bg_20230607114159.jpg",
|
|
39
|
+
"itemTitle": "推荐",
|
|
40
|
+
"itemSubTitle": "",
|
|
41
|
+
"itemType": "biz",
|
|
42
|
+
"itemCode": "biz_84518310",
|
|
43
|
+
"itemIcon": "",
|
|
44
|
+
"hImg": "",
|
|
45
|
+
"vImg": "",
|
|
46
|
+
"opimg1": "",
|
|
47
|
+
"opimg2": "",
|
|
48
|
+
"linkType": "",
|
|
49
|
+
"dataLink": "http://192.168.0.226:8077/src/epg/api/page/biz_84518310.json",
|
|
50
|
+
"title": "推荐",
|
|
51
|
+
"icon": "",
|
|
52
|
+
"icon4": "https://oss.image.qcast.cn/epg/resource/apk_site/biz_70204360/biz_84518310/images/biz_84518310_bg_20230607114159.jpg",
|
|
53
|
+
"subTitle": "default"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"indexId": 3,
|
|
57
|
+
"itemIcon4": "https://oss.image.qcast.cn/epg/resource/apk_site/biz_70204360/biz_36146605/images/biz_36146605_bg_20230607140144.png",
|
|
58
|
+
"itemTitle": "直播",
|
|
59
|
+
"itemSubTitle": "",
|
|
60
|
+
"itemType": "biz",
|
|
61
|
+
"itemCode": "biz_36146605",
|
|
62
|
+
"itemIcon": "",
|
|
63
|
+
"hImg": "",
|
|
64
|
+
"vImg": "",
|
|
65
|
+
"opimg1": "",
|
|
66
|
+
"opimg2": "",
|
|
67
|
+
"linkType": "",
|
|
68
|
+
"dataLink": "http://192.168.0.226:8077/src/epg/api/page/biz_36146605.json",
|
|
69
|
+
"title": "直播",
|
|
70
|
+
"icon": "",
|
|
71
|
+
"icon4": "https://oss.image.qcast.cn/epg/resource/apk_site/biz_70204360/biz_36146605/images/biz_36146605_bg_20230607140144.png"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"indexId": 4,
|
|
75
|
+
"itemIcon4": "https://oss.image.qcast.cn/epg/resource/apk_site/biz_51744660/biz_01028457/images/biz_01028457_bg_20230607140144.jpg",
|
|
76
|
+
"itemTitle": "电影 ",
|
|
77
|
+
"itemSubTitle": "",
|
|
78
|
+
"itemType": "biz",
|
|
79
|
+
"itemCode": "biz_01028457",
|
|
80
|
+
"itemIcon": "",
|
|
81
|
+
"hImg": "",
|
|
82
|
+
"vImg": "",
|
|
83
|
+
"opimg1": "",
|
|
84
|
+
"opimg2": "",
|
|
85
|
+
"linkType": "",
|
|
86
|
+
"dataLink": "http://192.168.0.226:8077/src/epg/api/page/biz_01028457.json",
|
|
87
|
+
"childTab": [
|
|
88
|
+
{
|
|
89
|
+
"indexId": 4,
|
|
90
|
+
"isSubTab": true,
|
|
91
|
+
"itemIcon4": "https://oss.image.qcast.cn/epg/resource/apk_site/biz_51744660/biz_01028457/images/biz_01028457_bg_20230607140144.jpg",
|
|
92
|
+
"itemTitle": "电影 ",
|
|
93
|
+
"itemSubTitle": "",
|
|
94
|
+
"itemType": "biz",
|
|
95
|
+
"itemCode": "biz_01028457",
|
|
96
|
+
"itemIcon": "",
|
|
97
|
+
"hImg": "",
|
|
98
|
+
"vImg": "",
|
|
99
|
+
"opimg1": "",
|
|
100
|
+
"opimg2": "",
|
|
101
|
+
"linkType": "",
|
|
102
|
+
"dataLink": "http://192.168.0.226:8077/src/epg/api/page/biz_01028457.json"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"indexId": 5,
|
|
106
|
+
"isSubTab": true,
|
|
107
|
+
"itemIcon4": "https://oss.image.qcast.cn/epg/resource/apk_site/biz_70204360/biz_25950192/images/biz_25950192_bg_20230607140145.png",
|
|
108
|
+
"itemTitle": "电视剧",
|
|
109
|
+
"itemSubTitle": "",
|
|
110
|
+
"itemType": "biz",
|
|
111
|
+
"itemCode": "biz_25950192",
|
|
112
|
+
"itemIcon": "",
|
|
113
|
+
"hImg": "",
|
|
114
|
+
"vImg": "",
|
|
115
|
+
"opimg1": "",
|
|
116
|
+
"opimg2": "",
|
|
117
|
+
"linkType": "",
|
|
118
|
+
"dataLink": "http://192.168.0.226:8077/src/epg/api/page/biz_25950192.json"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"indexId": 6,
|
|
122
|
+
"isSubTab": true,
|
|
123
|
+
"itemIcon4": "https://oss.image.qcast.cn/epg/resource/apk_site/biz_51744660/biz_91290873/images/biz_91290873_bg_20230608154804.jpg",
|
|
124
|
+
"itemTitle": "综艺",
|
|
125
|
+
"itemSubTitle": "",
|
|
126
|
+
"itemType": "biz",
|
|
127
|
+
"itemCode": "biz_91290873",
|
|
128
|
+
"itemIcon": "",
|
|
129
|
+
"hImg": "",
|
|
130
|
+
"vImg": "",
|
|
131
|
+
"opimg1": "",
|
|
132
|
+
"opimg2": "",
|
|
133
|
+
"linkType": "",
|
|
134
|
+
"dataLink": "http://192.168.0.226:8077/src/epg/api/page/biz_91290873.json"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"indexId": 7,
|
|
138
|
+
"isSubTab": true,
|
|
139
|
+
"itemIcon4": "https://oss.image.qcast.cn/epg/resource/apk_site/biz_71011586/biz_48135919/images/biz_48135919_bg_20230607171837.png",
|
|
140
|
+
"itemTitle": "少儿",
|
|
141
|
+
"itemSubTitle": "",
|
|
142
|
+
"itemType": "biz",
|
|
143
|
+
"itemCode": "biz_48135919",
|
|
144
|
+
"itemIcon": "",
|
|
145
|
+
"hImg": "",
|
|
146
|
+
"vImg": "",
|
|
147
|
+
"opimg1": "",
|
|
148
|
+
"opimg2": "",
|
|
149
|
+
"linkType": "",
|
|
150
|
+
"dataLink": "http://192.168.0.226:8077/src/epg/api/page/biz_48135919.json"
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
"title": "电影 ",
|
|
154
|
+
"icon": "",
|
|
155
|
+
"icon4": "https://oss.image.qcast.cn/epg/resource/apk_site/biz_51744660/biz_01028457/images/biz_01028457_bg_20230607140144.jpg"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"indexId": 8,
|
|
159
|
+
"itemTitle": "动漫",
|
|
160
|
+
"itemSubTitle": "",
|
|
161
|
+
"itemType": "biz",
|
|
162
|
+
"itemCode": "biz_46299945",
|
|
163
|
+
"itemIcon": "",
|
|
164
|
+
"hImg": "",
|
|
165
|
+
"vImg": "",
|
|
166
|
+
"opimg1": "",
|
|
167
|
+
"opimg2": "",
|
|
168
|
+
"linkType": "",
|
|
169
|
+
"dataLink": "http://192.168.0.226:8077/src/epg/api/page/biz_46299945.json",
|
|
170
|
+
"title": "动漫",
|
|
171
|
+
"icon": ""
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"indexId": 9,
|
|
175
|
+
"itemIcon4": "https://oss.image.qcast.cn/epg/resource/apk_site/biz_71011586/biz_80556920/images/biz_80556920_bg_20230608180100.png",
|
|
176
|
+
"itemTitle": "新闻",
|
|
177
|
+
"itemSubTitle": "",
|
|
178
|
+
"itemType": "biz",
|
|
179
|
+
"itemCode": "biz_80556920",
|
|
180
|
+
"itemIcon": "",
|
|
181
|
+
"hImg": "",
|
|
182
|
+
"vImg": "",
|
|
183
|
+
"opimg1": "",
|
|
184
|
+
"opimg2": "",
|
|
185
|
+
"linkType": "",
|
|
186
|
+
"dataLink": "http://192.168.0.226:8077/src/epg/api/page/biz_80556920.json",
|
|
187
|
+
"title": "新闻",
|
|
188
|
+
"icon": "",
|
|
189
|
+
"icon4": "https://oss.image.qcast.cn/epg/resource/apk_site/biz_71011586/biz_80556920/images/biz_80556920_bg_20230608180100.png"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"indexId": 10,
|
|
193
|
+
"itemIcon4": "https://oss.image.qcast.cn/epg/resource/apk_site/biz_70204360/biz_21417580/images/biz_21417580_bg_20230610165411.png",
|
|
194
|
+
"itemTitle": "体育",
|
|
195
|
+
"itemSubTitle": "",
|
|
196
|
+
"itemType": "biz",
|
|
197
|
+
"itemCode": "biz_21417580",
|
|
198
|
+
"itemIcon": "",
|
|
199
|
+
"hImg": "",
|
|
200
|
+
"vImg": "",
|
|
201
|
+
"opimg1": "",
|
|
202
|
+
"opimg2": "",
|
|
203
|
+
"linkType": "",
|
|
204
|
+
"dataLink": "http://192.168.0.226:8077/src/epg/api/page/biz_21417580.json",
|
|
205
|
+
"title": "体育",
|
|
206
|
+
"icon": "",
|
|
207
|
+
"icon4": "https://oss.image.qcast.cn/epg/resource/apk_site/biz_70204360/biz_21417580/images/biz_21417580_bg_20230610165411.png"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"indexId": 11,
|
|
211
|
+
"itemTitle": "电影票",
|
|
212
|
+
"itemSubTitle": "",
|
|
213
|
+
"itemType": "biz",
|
|
214
|
+
"itemCode": "biz_82694109",
|
|
215
|
+
"itemIcon": "",
|
|
216
|
+
"hImg": "",
|
|
217
|
+
"vImg": "",
|
|
218
|
+
"opimg1": "",
|
|
219
|
+
"opimg2": "",
|
|
220
|
+
"linkType": "",
|
|
221
|
+
"dataLink": "http://192.168.0.226:8077/src/epg/api/page/biz_82694109.json",
|
|
222
|
+
"title": "电影票",
|
|
223
|
+
"icon": ""
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"indexId": 12,
|
|
227
|
+
"itemTitle": "放映厅",
|
|
228
|
+
"itemSubTitle": "",
|
|
229
|
+
"itemType": "biz",
|
|
230
|
+
"itemCode": "biz_15167730",
|
|
231
|
+
"itemIcon": "",
|
|
232
|
+
"hImg": "",
|
|
233
|
+
"vImg": "",
|
|
234
|
+
"opimg1": "",
|
|
235
|
+
"opimg2": "",
|
|
236
|
+
"linkType": "",
|
|
237
|
+
"dataLink": "http://192.168.0.226:8077/src/epg/api/page/biz_15167730.json",
|
|
238
|
+
"title": "放映厅",
|
|
239
|
+
"icon": ""
|
|
240
|
+
}
|
|
241
|
+
]
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :style="{ width: 1280, height: 720, backgroundColor: '#f5f57d' }"></div>
|
|
3
|
+
<jsv-focus-block
|
|
4
|
+
autoFocus
|
|
5
|
+
:onAction="{
|
|
6
|
+
onKeyDown,
|
|
7
|
+
}"
|
|
8
|
+
>
|
|
9
|
+
<Vortex
|
|
10
|
+
ref="cGenieRef"
|
|
11
|
+
:layout="{
|
|
12
|
+
left: 120,
|
|
13
|
+
top: 50,
|
|
14
|
+
width: width,
|
|
15
|
+
height: height,
|
|
16
|
+
}"
|
|
17
|
+
:time="1"
|
|
18
|
+
:onAnimEnd="onAnimEnd"
|
|
19
|
+
:initShow="true"
|
|
20
|
+
>
|
|
21
|
+
<img
|
|
22
|
+
:src="`url(${imageUrl})`"
|
|
23
|
+
:style="{
|
|
24
|
+
width: width,
|
|
25
|
+
height: height,
|
|
26
|
+
}"
|
|
27
|
+
@load="onImgLoaded"
|
|
28
|
+
/>
|
|
29
|
+
<div
|
|
30
|
+
:style="{
|
|
31
|
+
width: 1024,
|
|
32
|
+
height: 100,
|
|
33
|
+
backgroundColor: '#ffffff44',
|
|
34
|
+
}"
|
|
35
|
+
></div>
|
|
36
|
+
<div
|
|
37
|
+
:style="{
|
|
38
|
+
width: width,
|
|
39
|
+
height: height,
|
|
40
|
+
fontSize: 50,
|
|
41
|
+
color: '#fff',
|
|
42
|
+
textAlign: 'center',
|
|
43
|
+
}"
|
|
44
|
+
>
|
|
45
|
+
按OK键出场/入场
|
|
46
|
+
</div>
|
|
47
|
+
</Vortex>
|
|
48
|
+
</jsv-focus-block>
|
|
49
|
+
</template>
|
|
50
|
+
<script setup>
|
|
51
|
+
import Vortex from "./Vortex/Vortex.vue";
|
|
52
|
+
import { shallowRef } from "vue";
|
|
53
|
+
|
|
54
|
+
const cGenieRef = shallowRef();
|
|
55
|
+
const position = { x: -80, y: 600 };
|
|
56
|
+
const width = 1024;
|
|
57
|
+
const height = 576;
|
|
58
|
+
const imageUrl =
|
|
59
|
+
"https://cdn.release.qcast.cn/JsViewFrameworkTester/JsViewVueSampleResources/DemoForOperator/Genie/App/element_228542_icon_20230610184253.jpg";
|
|
60
|
+
|
|
61
|
+
let imgLoaded = false;
|
|
62
|
+
function onImgLoaded() {
|
|
63
|
+
imgLoaded = true;
|
|
64
|
+
}
|
|
65
|
+
const onAnimEnd = () => {
|
|
66
|
+
console.log("anim end");
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
function onKeyDown(ev) {
|
|
70
|
+
if (ev.keyCode == 13) {
|
|
71
|
+
if (imgLoaded) {
|
|
72
|
+
cGenieRef.value.switch();
|
|
73
|
+
}
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
</script>
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
:style="{
|
|
4
|
+
left: layout.left,
|
|
5
|
+
top: layout.top,
|
|
6
|
+
}"
|
|
7
|
+
>
|
|
8
|
+
<jsv-frag-shader-view
|
|
9
|
+
v-if="showFbo"
|
|
10
|
+
:key="keyCount"
|
|
11
|
+
ref="shaderViewRef"
|
|
12
|
+
:style="{
|
|
13
|
+
width: layout.width,
|
|
14
|
+
height: layout.height,
|
|
15
|
+
}"
|
|
16
|
+
:duration="shaderSetting.duration"
|
|
17
|
+
:shaderStr="shaderSetting.shader"
|
|
18
|
+
:autoplay="true"
|
|
19
|
+
:textures="shaderSetting.textures"
|
|
20
|
+
:onEnd="onAnimEnd"
|
|
21
|
+
></jsv-frag-shader-view>
|
|
22
|
+
|
|
23
|
+
<div
|
|
24
|
+
v-if="!showOrigin"
|
|
25
|
+
:style="{
|
|
26
|
+
width: 1,
|
|
27
|
+
height: 1,
|
|
28
|
+
overflow: 'hidden',
|
|
29
|
+
}"
|
|
30
|
+
>
|
|
31
|
+
<div
|
|
32
|
+
ref="slotRootRef"
|
|
33
|
+
:style="{
|
|
34
|
+
width: layout.width,
|
|
35
|
+
height: layout.height,
|
|
36
|
+
}"
|
|
37
|
+
>
|
|
38
|
+
<slot></slot>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
<div
|
|
42
|
+
v-else
|
|
43
|
+
ref="slotRootRef"
|
|
44
|
+
:style="{
|
|
45
|
+
width: layout.width,
|
|
46
|
+
height: layout.height,
|
|
47
|
+
}"
|
|
48
|
+
>
|
|
49
|
+
<slot></slot>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
</template>
|
|
53
|
+
|
|
54
|
+
<script setup>
|
|
55
|
+
import vortexOutShader from "./vortexOut.glsl?raw";
|
|
56
|
+
import vortexInShader from "./vortexIn.glsl?raw";
|
|
57
|
+
|
|
58
|
+
import { onMounted, onUnmounted, shallowRef, ref, computed } from "vue";
|
|
59
|
+
import {
|
|
60
|
+
JsvFragShaderView,
|
|
61
|
+
getKeyFramesGroup,
|
|
62
|
+
JsvTextureStoreApi,
|
|
63
|
+
} from "jsview";
|
|
64
|
+
|
|
65
|
+
const props = defineProps({
|
|
66
|
+
layout: {
|
|
67
|
+
type: Object,
|
|
68
|
+
required: true,
|
|
69
|
+
},
|
|
70
|
+
duration: {
|
|
71
|
+
type: Number,
|
|
72
|
+
default: 1,
|
|
73
|
+
},
|
|
74
|
+
initShow: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
default: true,
|
|
77
|
+
},
|
|
78
|
+
onAnimEnd: {
|
|
79
|
+
type: Function,
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
const showOrigin = shallowRef(props.initShow);
|
|
84
|
+
const showFbo = shallowRef(false);
|
|
85
|
+
const slotRootRef = shallowRef();
|
|
86
|
+
const keyCount = ref(0);
|
|
87
|
+
const shaderViewRef = ref();
|
|
88
|
+
let state = props.initShow ? 1 : 0;
|
|
89
|
+
|
|
90
|
+
let shaderSetting = {
|
|
91
|
+
name: "vortex",
|
|
92
|
+
shader: "",
|
|
93
|
+
uniforms: [],
|
|
94
|
+
textures: [
|
|
95
|
+
{
|
|
96
|
+
name: "iChannel0",
|
|
97
|
+
resource: "",
|
|
98
|
+
},
|
|
99
|
+
],
|
|
100
|
+
duration: Math.round(props.duration * 1000),
|
|
101
|
+
};
|
|
102
|
+
let _onEnd = null;
|
|
103
|
+
|
|
104
|
+
function animOut() {
|
|
105
|
+
shaderSetting.shader = vortexOutShader;
|
|
106
|
+
_onEnd = () => {
|
|
107
|
+
showOrigin.value = false;
|
|
108
|
+
};
|
|
109
|
+
capture();
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
function animIn() {
|
|
113
|
+
shaderSetting.shader = vortexInShader;
|
|
114
|
+
_onEnd = () => {
|
|
115
|
+
showOrigin.value = true;
|
|
116
|
+
};
|
|
117
|
+
capture();
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function onAnimEnd() {
|
|
121
|
+
showFbo.value = false;
|
|
122
|
+
_onEnd();
|
|
123
|
+
props.onAnimEnd?.();
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
function capture() {
|
|
127
|
+
JsvTextureStoreApi.capture2Texture(
|
|
128
|
+
slotRootRef.value,
|
|
129
|
+
(textureName, autoRecycle, w, h) => {
|
|
130
|
+
shaderSetting.textures[0].resource = `jsvtexturestore://${textureName}`;
|
|
131
|
+
|
|
132
|
+
if (autoRecycle) {
|
|
133
|
+
// 已经是设置了texture的自动回收,所以不再需要主动调用 JsvTextureStoreApi.deleteTexture 来释放内存
|
|
134
|
+
}
|
|
135
|
+
showOrigin.value = false;
|
|
136
|
+
++keyCount.value;
|
|
137
|
+
showFbo.value = true;
|
|
138
|
+
},
|
|
139
|
+
true // 自动回收, 不填也行,默认为true
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
defineExpose({
|
|
144
|
+
switch() {
|
|
145
|
+
if (state == 0) {
|
|
146
|
+
state = 1;
|
|
147
|
+
animIn();
|
|
148
|
+
} else {
|
|
149
|
+
state = 0;
|
|
150
|
+
animOut();
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
});
|
|
154
|
+
</script>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#define RANGE 6.
|
|
2
|
+
#define SPEED .5
|
|
3
|
+
#define STRENGTH 6.
|
|
4
|
+
|
|
5
|
+
mat2 rotate(float a) {
|
|
6
|
+
float s = sin(a);
|
|
7
|
+
float c = cos(a);
|
|
8
|
+
return mat2(c, -s, s, c);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
void mainImage(out vec4 fragColor, vec2 coord) {
|
|
12
|
+
/** mediump精度10bit, 直接使用0-1的uv, 小值的normalize()会有精度问题, 导致异常大的结果; 但乘1920x1080又会有大值的问题, 所以选取16x9 */
|
|
13
|
+
vec2 aspect = (iResolution.xy / iResolution.y) * 9.;
|
|
14
|
+
vec2 center = 0.5 * aspect;
|
|
15
|
+
|
|
16
|
+
vec2 uv = coord / iResolution.xy * aspect;
|
|
17
|
+
uv -= center;
|
|
18
|
+
|
|
19
|
+
float d = length(uv);
|
|
20
|
+
float progress = 1. - iTime / iDuration;
|
|
21
|
+
|
|
22
|
+
//vortex
|
|
23
|
+
float cTime = STRENGTH * progress;
|
|
24
|
+
d = smoothstep(0., RANGE, RANGE - d) * cTime;
|
|
25
|
+
uv *= rotate(d);
|
|
26
|
+
|
|
27
|
+
//shrink
|
|
28
|
+
float edge = aspect.y * abs(progress);
|
|
29
|
+
uv = uv + normalize(uv) * edge;
|
|
30
|
+
|
|
31
|
+
uv += center;
|
|
32
|
+
uv /= aspect;
|
|
33
|
+
if(uv.x > 1. || uv.y > 1. || uv.x < 0. || uv.y < 0.) {
|
|
34
|
+
fragColor = vec4(0.0);
|
|
35
|
+
} else {
|
|
36
|
+
fragColor = jsvTexture2D(iChannel0, uv);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#define RANGE 6.
|
|
2
|
+
#define SPEED .5
|
|
3
|
+
#define STRENGTH 6.
|
|
4
|
+
|
|
5
|
+
mat2 rotate(float a) {
|
|
6
|
+
float s = sin(a);
|
|
7
|
+
float c = cos(a);
|
|
8
|
+
return mat2(c, -s, s, c);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
void mainImage(out vec4 fragColor, vec2 coord) {
|
|
12
|
+
/** mediump精度10bit, 直接使用0-1的uv, 小值的normalize()会有精度问题, 导致异常大的结果; 但乘1920x1080又会有大值的问题, 所以选取16x9 */
|
|
13
|
+
vec2 aspect = (iResolution.xy / iResolution.y) * 9.;
|
|
14
|
+
vec2 center = 0.5 * aspect;
|
|
15
|
+
|
|
16
|
+
vec2 uv = coord / iResolution.xy * aspect;
|
|
17
|
+
uv -= center;
|
|
18
|
+
|
|
19
|
+
float d = length(uv);
|
|
20
|
+
float progress = iTime / iDuration;
|
|
21
|
+
|
|
22
|
+
//vortex
|
|
23
|
+
float cTime = STRENGTH * progress;
|
|
24
|
+
d = smoothstep(0., RANGE, RANGE - d) * cTime;
|
|
25
|
+
uv *= rotate(d);
|
|
26
|
+
|
|
27
|
+
//shrink
|
|
28
|
+
float edge = aspect.y * abs(progress);
|
|
29
|
+
uv = uv + normalize(uv) * edge;
|
|
30
|
+
|
|
31
|
+
uv += center;
|
|
32
|
+
uv /= aspect;
|
|
33
|
+
if(uv.x > 1. || uv.y > 1. || uv.x < 0. || uv.y < 0.) {
|
|
34
|
+
fragColor = vec4(0.0);
|
|
35
|
+
} else {
|
|
36
|
+
fragColor = jsvTexture2D(iChannel0, uv);
|
|
37
|
+
}
|
|
38
|
+
}
|