@shijiu/jsview-vue 0.9.631 → 0.9.684
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/dom/bin/jsview-browser-debug-dom.min.js +1 -1
- package/dom/bin/jsview-dom.min.js +1 -1
- package/dom/bin/jsview-engine-js-browser.min.js +1 -0
- package/dom/target_core_revision.js +4 -4
- package/package.json +1 -1
- package/samples/Basic/components/text/TextOverflow.vue +8 -3
- package/samples/DemoHomepage/router.js +5 -0
- package/samples/Marquee/App.vue +176 -40
- package/samples/Marquee/longText.js +14 -0
- package/samples/MetroWidgetDemos/Advanced/App.vue +5 -6
- package/samples/MetroWidgetDemos/Advanced/ButtonItem.vue +1 -1
- package/samples/MetroWidgetDemos/Advanced/Buttons.vue +5 -5
- package/samples/MetroWidgetDemos/Advanced/Mixed.vue +4 -4
- package/samples/MetroWidgetDemos/Advanced/widgets/Item.vue +83 -0
- package/samples/MetroWidgetDemos/Advanced/widgets/WidgetItem.vue +89 -0
- package/samples/MetroWidgetDemos/Advanced/{Widgets.vue → widgets/Widgets.vue} +56 -11
- package/samples/MetroWidgetDemos/Advanced/widgets/focus1.png +0 -0
- package/samples/MetroWidgetDemos/Item.vue +20 -2
- package/samples/MetroWidgetDemos/Simple/AbsoluteTemplate.vue +2 -2
- package/samples/MetroWidgetDemos/Simple/App.vue +2 -2
- package/samples/MetroWidgetDemos/Simple/RelativeTemplate.vue +4 -4
- package/samples/MetroWidgetDemos/data.js +2 -1
- package/samples/ScaleDownNeon/App.vue +107 -0
- package/samples/TextBox/App.vue +7 -81
- package/samples/TextBox/RenderCenter.vue +40 -16
- package/samples/TextBox/RenderLeft.vue +48 -19
- package/samples/TextBox/RenderOneLine.vue +30 -49
- package/samples/TextBox/RenderRight.vue +40 -16
- package/samples/TextShadowDemo/App.vue +11 -17
- package/samples/TextureSize/App.vue +3 -3
- package/utils/JsViewEngineWidget/MetroWidget/Const.js +11 -0
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +188 -80
- package/utils/JsViewEngineWidget/TemplateParser.js +89 -32
- package/utils/JsViewEngineWidget/WidgetCommon.js +3 -4
- package/utils/JsViewEngineWidget/index.js +3 -2
- package/utils/JsViewPlugin/JsvPlayer/JsvMedia.js +61 -12
- package/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue +8 -1
- package/utils/JsViewPlugin/JsvPlayer/index.js +14 -0
- package/utils/JsViewPlugin/JsvPlayer/version.js +4 -4
- package/utils/JsViewVueWidget/JsvMarquee.vue +178 -205
- package/utils/JsViewVueWidget/JsvNativeSharedDiv.vue +35 -27
- package/utils/JsViewVueWidget/JsvNinePatch.vue +1 -2
- package/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue +18 -2
- package/utils/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue +22 -2
- package/utils/JsViewVueWidget/JsvTextBox.vue +35 -72
- package/utils/JsViewVueWidget/JsvTouchContainer.vue +3 -4
- package/utils/JsViewVueWidget/utils/index.js +8 -0
- package/utils/JsViewVueWidget/utils/text.js +19 -0
- package/utils/JsViewEngineWidget/MetroPage.js +0 -2128
- package/utils/JsViewEngineWidget/SimpleWidget/ContentView.vue +0 -51
- package/utils/JsViewEngineWidget/SimpleWidget/Dispatcher.js +0 -19
- package/utils/JsViewEngineWidget/SimpleWidget/DivWrapper.vue +0 -53
- package/utils/JsViewEngineWidget/SimpleWidget/ItemView.vue +0 -142
- package/utils/JsViewEngineWidget/SimpleWidget/RootView.vue +0 -140
- package/utils/JsViewEngineWidget/SimpleWidget/SimpleWidget.vue +0 -1629
|
@@ -3,7 +3,6 @@ import { JsvTextBox } from "jsview";
|
|
|
3
3
|
export default {
|
|
4
4
|
props: {
|
|
5
5
|
text: String,
|
|
6
|
-
sStyleToken: String,
|
|
7
6
|
},
|
|
8
7
|
components: { JsvTextBox },
|
|
9
8
|
};
|
|
@@ -27,22 +26,16 @@ export default {
|
|
|
27
26
|
</div>
|
|
28
27
|
<JsvTextBox
|
|
29
28
|
:verticalAlign="'top'"
|
|
30
|
-
:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
backgroundColor: 'rgba(255,255,0,0.5)',
|
|
41
|
-
fontSize: '30px',
|
|
42
|
-
textAlign: 'left',
|
|
43
|
-
lineHeight: '80px',
|
|
44
|
-
},
|
|
45
|
-
]"
|
|
29
|
+
:style="{
|
|
30
|
+
left: 0,
|
|
31
|
+
top: 0,
|
|
32
|
+
width: 400,
|
|
33
|
+
height: 80,
|
|
34
|
+
backgroundColor: 'rgba(255,255,0,0.5)',
|
|
35
|
+
fontSize: '30px',
|
|
36
|
+
textAlign: 'left',
|
|
37
|
+
lineHeight: '80px',
|
|
38
|
+
}"
|
|
46
39
|
>
|
|
47
40
|
{{ text }}
|
|
48
41
|
</JsvTextBox>
|
|
@@ -62,22 +55,16 @@ export default {
|
|
|
62
55
|
</div>
|
|
63
56
|
<JsvTextBox
|
|
64
57
|
:verticalAlign="'middle'"
|
|
65
|
-
:
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
backgroundColor: 'rgba(255,255,0,0.5)',
|
|
76
|
-
fontSize: '30px',
|
|
77
|
-
textAlign: 'center',
|
|
78
|
-
lineHeight: '80px',
|
|
79
|
-
},
|
|
80
|
-
]"
|
|
58
|
+
:style="{
|
|
59
|
+
left: 410,
|
|
60
|
+
top: 0,
|
|
61
|
+
width: 400,
|
|
62
|
+
height: 80,
|
|
63
|
+
backgroundColor: 'rgba(255,255,0,0.5)',
|
|
64
|
+
fontSize: '30px',
|
|
65
|
+
textAlign: 'center',
|
|
66
|
+
lineHeight: '80px',
|
|
67
|
+
}"
|
|
81
68
|
>
|
|
82
69
|
{{ text }}
|
|
83
70
|
</JsvTextBox>
|
|
@@ -97,22 +84,16 @@ export default {
|
|
|
97
84
|
</div>
|
|
98
85
|
<JsvTextBox
|
|
99
86
|
:verticalAlign="'bottom'"
|
|
100
|
-
:
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
backgroundColor: 'rgba(255,255,0,0.5)',
|
|
111
|
-
fontSize: '30px',
|
|
112
|
-
textAlign: 'right',
|
|
113
|
-
lineHeight: '80px',
|
|
114
|
-
},
|
|
115
|
-
]"
|
|
87
|
+
:style="{
|
|
88
|
+
left: 820,
|
|
89
|
+
top: 0,
|
|
90
|
+
width: 400,
|
|
91
|
+
height: 80,
|
|
92
|
+
backgroundColor: 'rgba(255,255,0,0.5)',
|
|
93
|
+
fontSize: '30px',
|
|
94
|
+
textAlign: 'right',
|
|
95
|
+
lineHeight: '80px',
|
|
96
|
+
}"
|
|
116
97
|
>
|
|
117
98
|
{{ text }}
|
|
118
99
|
</JsvTextBox>
|
|
@@ -3,10 +3,6 @@ import { JsvTextBox } from "jsview";
|
|
|
3
3
|
export default {
|
|
4
4
|
props: {
|
|
5
5
|
text: String,
|
|
6
|
-
sStyleToken: String,
|
|
7
|
-
sLayoutSet: Object,
|
|
8
|
-
sFontSetRight40: Object,
|
|
9
|
-
sFontSetRight80: Object,
|
|
10
6
|
},
|
|
11
7
|
components: { JsvTextBox },
|
|
12
8
|
};
|
|
@@ -30,8 +26,16 @@ export default {
|
|
|
30
26
|
</div>
|
|
31
27
|
<JsvTextBox
|
|
32
28
|
:verticalAlign="'top'"
|
|
33
|
-
:
|
|
34
|
-
|
|
29
|
+
:style="{
|
|
30
|
+
left: 0,
|
|
31
|
+
top: 0,
|
|
32
|
+
width: 400,
|
|
33
|
+
height: 300,
|
|
34
|
+
backgroundColor: 'rgba(255,255,0,0.5)',
|
|
35
|
+
fontSize: '30px',
|
|
36
|
+
textAlign: 'right',
|
|
37
|
+
lineHeight: '40px',
|
|
38
|
+
}"
|
|
35
39
|
>
|
|
36
40
|
{{ `[TR]${text}` }}
|
|
37
41
|
</JsvTextBox>
|
|
@@ -51,8 +55,16 @@ export default {
|
|
|
51
55
|
</div>
|
|
52
56
|
<JsvTextBox
|
|
53
57
|
:verticalAlign="'middle'"
|
|
54
|
-
:
|
|
55
|
-
|
|
58
|
+
:style="{
|
|
59
|
+
left: 410,
|
|
60
|
+
top: 0,
|
|
61
|
+
width: 400,
|
|
62
|
+
height: 300,
|
|
63
|
+
backgroundColor: 'rgba(255,255,0,0.5)',
|
|
64
|
+
fontSize: '30px',
|
|
65
|
+
textAlign: 'right',
|
|
66
|
+
lineHeight: '40px',
|
|
67
|
+
}"
|
|
56
68
|
>
|
|
57
69
|
{{ `[MR]${text}` }}
|
|
58
70
|
</JsvTextBox>
|
|
@@ -72,8 +84,16 @@ export default {
|
|
|
72
84
|
</div>
|
|
73
85
|
<JsvTextBox
|
|
74
86
|
:verticalAlign="'bottom'"
|
|
75
|
-
:
|
|
76
|
-
|
|
87
|
+
:style="{
|
|
88
|
+
left: 820,
|
|
89
|
+
top: 0,
|
|
90
|
+
width: 400,
|
|
91
|
+
height: 300,
|
|
92
|
+
backgroundColor: 'rgba(255,255,0,0.5)',
|
|
93
|
+
fontSize: '30px',
|
|
94
|
+
textAlign: 'right',
|
|
95
|
+
lineHeight: '40px',
|
|
96
|
+
}"
|
|
77
97
|
>
|
|
78
98
|
{{ `[BR]${text}` }}
|
|
79
99
|
</JsvTextBox>
|
|
@@ -94,12 +114,16 @@ export default {
|
|
|
94
114
|
</div>
|
|
95
115
|
<JsvTextBox
|
|
96
116
|
:verticalAlign="'bottom'"
|
|
97
|
-
:
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
117
|
+
:style="{
|
|
118
|
+
left: 1240,
|
|
119
|
+
top: 0,
|
|
120
|
+
width: 500,
|
|
121
|
+
height: 300,
|
|
122
|
+
backgroundColor: 'rgba(255,255,0,0.5)',
|
|
123
|
+
fontSize: '30px',
|
|
124
|
+
textAlign: 'right',
|
|
125
|
+
lineHeight: '80px',
|
|
126
|
+
}"
|
|
103
127
|
>
|
|
104
128
|
{{ `[BR]${text}` }}
|
|
105
129
|
</JsvTextBox>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* 当TextData数据中有blur为0(不显示阴影)时,为了测试会报“StyleFormatCheck.js?058c:447 textShadow: blur shadow above 0(now=2 2 0 #00FF00)”错误
|
|
3
3
|
-->
|
|
4
4
|
<script>
|
|
5
|
-
import {
|
|
5
|
+
import { JsvTextBox } from "jsview";
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
components: {
|
|
@@ -32,11 +32,6 @@ export default {
|
|
|
32
32
|
textShadow: "4 4 0.5 #0000EF",
|
|
33
33
|
},
|
|
34
34
|
],
|
|
35
|
-
font_style: new JsvTextStyleClass({
|
|
36
|
-
fontSize: "35px",
|
|
37
|
-
textAlign: "center",
|
|
38
|
-
lineHeight: "40px",
|
|
39
|
-
}),
|
|
40
35
|
};
|
|
41
36
|
},
|
|
42
37
|
methods: {
|
|
@@ -77,17 +72,16 @@ export default {
|
|
|
77
72
|
</div>
|
|
78
73
|
<JsvTextBox
|
|
79
74
|
:verticalAlign="'middle'"
|
|
80
|
-
:
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
]"
|
|
75
|
+
:style="{
|
|
76
|
+
top: 50,
|
|
77
|
+
width: 320,
|
|
78
|
+
height: 70,
|
|
79
|
+
textShadow: item.textShadow,
|
|
80
|
+
backgroundColor: item.id % 2 == 0 ? '#ffffee' : '#ffff10',
|
|
81
|
+
fontSize: '35px',
|
|
82
|
+
textAlign: 'center',
|
|
83
|
+
lineHeight: '40px',
|
|
84
|
+
}"
|
|
91
85
|
>
|
|
92
86
|
文字阴影
|
|
93
87
|
</JsvTextBox>
|
|
@@ -32,7 +32,7 @@ const onKeyDown = (ev) => {
|
|
|
32
32
|
</div>
|
|
33
33
|
<div class="leftFont top250">
|
|
34
34
|
{{
|
|
35
|
-
`指定尺寸加载\n
|
|
35
|
+
`指定尺寸加载\n内存占用由给定尺寸决定,图片质量基本没变,但更省内存`
|
|
36
36
|
}}
|
|
37
37
|
</div>
|
|
38
38
|
</div>
|
|
@@ -67,9 +67,9 @@ const onKeyDown = (ev) => {
|
|
|
67
67
|
<img alt="" class="graphSize top0" :src="pngDemo" />
|
|
68
68
|
<img
|
|
69
69
|
alt=""
|
|
70
|
+
:src="pngDemo"
|
|
70
71
|
class="graphSize top250"
|
|
71
72
|
jsvImgScaledownTex
|
|
72
|
-
:src="pngDemo"
|
|
73
73
|
/>
|
|
74
74
|
<div class="underFont">
|
|
75
75
|
{{ `png有透明图片\n指定尺寸有明显锯齿` }}
|
|
@@ -80,9 +80,9 @@ const onKeyDown = (ev) => {
|
|
|
80
80
|
<img alt="" class="graphSize top0" :src="pngNoAlphaDemo" />
|
|
81
81
|
<img
|
|
82
82
|
alt=""
|
|
83
|
+
:src="pngNoAlphaDemo"
|
|
83
84
|
class="graphSize top250"
|
|
84
85
|
jsvImgScaledownTex
|
|
85
|
-
:src="pngNoAlphaDemo"
|
|
86
86
|
/>
|
|
87
87
|
<div class="underFont">
|
|
88
88
|
{{ `png无透明图片` }}
|