Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
e61400f3
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
大约 1 年 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e61400f3
编写于
2月 19, 2022
作者:
B
bayanxing
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add test cases
Signed-off-by:
N
bayanxing
<
bayanxing@kaihongdigi.com
>
上级
731b0533
变更
25
隐藏空白更改
内联
并排
Showing
25 changed file
with
350 addition
and
369 deletion
+350
-369
ace/ace_standard/src/main/config.json
ace/ace_standard/src/main/config.json
+0
-1
ace/ace_standard/src/main/js/default/pages/animate/index.js
ace/ace_standard/src/main/js/default/pages/animate/index.js
+3
-3
ace/ace_standard/src/main/js/default/pages/animateMotion/index.js
...standard/src/main/js/default/pages/animateMotion/index.js
+15
-0
ace/ace_standard/src/main/js/default/pages/animateTransform/index.js
...ndard/src/main/js/default/pages/animateTransform/index.js
+15
-0
ace/ace_standard/src/main/js/default/pages/gridCol/index.css
ace/ace_standard/src/main/js/default/pages/gridCol/index.css
+2
-2
ace/ace_standard/src/main/js/default/pages/gridCol/index.hml
ace/ace_standard/src/main/js/default/pages/gridCol/index.hml
+2
-2
ace/ace_standard/src/main/js/default/pages/gridCol/index.js
ace/ace_standard/src/main/js/default/pages/gridCol/index.js
+83
-67
ace/ace_standard/src/main/js/default/pages/gridContainer/index.css
...tandard/src/main/js/default/pages/gridContainer/index.css
+2
-2
ace/ace_standard/src/main/js/default/pages/gridContainer/index.hml
...tandard/src/main/js/default/pages/gridContainer/index.hml
+1
-1
ace/ace_standard/src/main/js/default/pages/gridContainer/index.js
...standard/src/main/js/default/pages/gridContainer/index.js
+85
-69
ace/ace_standard/src/main/js/default/pages/gridRow/index.css
ace/ace_standard/src/main/js/default/pages/gridRow/index.css
+2
-2
ace/ace_standard/src/main/js/default/pages/gridRow/index.hml
ace/ace_standard/src/main/js/default/pages/gridRow/index.hml
+2
-2
ace/ace_standard/src/main/js/default/pages/gridRow/index.js
ace/ace_standard/src/main/js/default/pages/gridRow/index.js
+68
-67
ace/ace_standard/src/main/js/default/pages/obj_CanvasGradient/index.css
...rd/src/main/js/default/pages/obj_CanvasGradient/index.css
+0
-9
ace/ace_standard/src/main/js/default/pages/obj_CanvasRenderingContext2D/index.css
...n/js/default/pages/obj_CanvasRenderingContext2D/index.css
+0
-9
ace/ace_standard/src/main/js/default/pages/obj_Image/index.css
...ce_standard/src/main/js/default/pages/obj_Image/index.css
+0
-9
ace/ace_standard/src/main/js/default/pages/obj_ImageBitmap/index.css
...ndard/src/main/js/default/pages/obj_ImageBitmap/index.css
+0
-9
ace/ace_standard/src/main/js/default/pages/obj_ImageData/index.css
...tandard/src/main/js/default/pages/obj_ImageData/index.css
+0
-9
ace/ace_standard/src/main/js/default/pages/obj_OffscreenCanvas/index.css
...d/src/main/js/default/pages/obj_OffscreenCanvas/index.css
+0
-9
ace/ace_standard/src/main/js/default/pages/obj_OffscreenCanvas/index.js
...rd/src/main/js/default/pages/obj_OffscreenCanvas/index.js
+1
-1
ace/ace_standard/src/main/js/default/pages/obj_OffscreenCanvasRenderingContext2D/index.css
...ult/pages/obj_OffscreenCanvasRenderingContext2D/index.css
+0
-9
ace/ace_standard/src/main/js/default/pages/obj_Path2D/index.css
...e_standard/src/main/js/default/pages/obj_Path2D/index.css
+0
-9
ace/ace_standard/src/main/js/default/pages/video/index.css
ace/ace_standard/src/main/js/default/pages/video/index.css
+0
-3
ace/ace_standard/src/main/js/default/pages/video/index.js
ace/ace_standard/src/main/js/default/pages/video/index.js
+0
-75
ace/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js
...ard/src/main/js/default/test/commonComponentJsApi.test.js
+69
-0
未找到文件。
ace/ace_standard/src/main/config.json
浏览文件 @
e61400f3
...
...
@@ -108,7 +108,6 @@
"pages/obj_ImageBitmap/index"
,
"pages/obj_OffscreenCanvas/index"
,
"pages/obj_OffscreenCanvasRenderingContext2D/index"
,
"pages/textPath/index"
,
"pages/svg/index"
,
"pages/rect/index"
,
"pages/circle/index"
,
...
...
ace/ace_standard/src/main/js/default/pages/animate/index.js
浏览文件 @
e61400f3
/*
* Copyright (
C) 2021 Huawei Device
Co., Ltd.
/*
*
* Copyright (
c) 2022 Shenzhen Kaihong Digital Industry Development
Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
ace/ace_standard/src/main/js/default/pages/animateMotion/index.js
浏览文件 @
e61400f3
/**
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export
default
{
data
:
{
title
:
'
World
'
...
...
ace/ace_standard/src/main/js/default/pages/animateTransform/index.js
浏览文件 @
e61400f3
/**
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export
default
{
data
:
{
title
:
'
World
'
...
...
ace/ace_standard/src/main/js/default/pages/gridCol/index.css
浏览文件 @
e61400f3
...
...
@@ -422,11 +422,11 @@
background
:
repeating-linear-gradient
(
to
right
,
rgba
(
255
,
255
,
0
,
1
)
30px
,
rgba
(
0
,
0
,
255
,
.5
)
60px
);
}
.access
ibility
-container
{
.access-container
{
flex-direction
:
column
;
}
.access
ibility
1
{
.access1
{
background-color
:
#321124
;
margin
:
5px
;
width
:
90%
;
...
...
ace/ace_standard/src/main/js/default/pages/gridCol/index.hml
浏览文件 @
e61400f3
...
...
@@ -222,14 +222,14 @@
</div>
<div style="background-color: #000000; width: 100%; height: 2px;">
</div>
<div class="access
ibility
-container">
<div class="access-container">
<text class="title">
无障碍
</text>
<text class="sub-title">
grid-col无障碍1
</text>
<grid-col class="access
ibility
1" accessibilitygroup ="true"
<grid-col class="access1" accessibilitygroup ="true"
accessibilitytext="这是div"
accessibilitydescription="点击此按键会弹出一个对话框"
accessibilityimportance="no-hide-descendants">
...
...
ace/ace_standard/src/main/js/default/pages/gridCol/index.js
浏览文件 @
e61400f3
/**
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
prompt
from
'
@system.prompt
'
;
var
options
=
{
duration
:
1500
,
easing
:
'
friction
'
,
delay
:
100
,
fill
:
'
forwards
'
,
iterations
:
2
,
direction
:
'
normal
'
,
};
var
frames
=
[
{
transform
:
{
translate
:
'
-120px
'
,
rotate
:
'
10deg
'
,
scale
:
0.2
,
skew
:
'
40deg
'
},
opacity
:
0.1
,
offset
:
0.0
,
width
:
'
40%
'
,
height
:
'
20px
'
,
backgroundColor
:
'
#ff0000
'
,
backgroundPosition
:
'
10px 20px
'
,
transformOrigin
:
'
left top
'
},
{
transform
:
{
translateX
:
'
0px
'
,
translateY
:
'
5px
'
,
rotateX
:
'
10deg
'
,
rotateY
:
'
10deg
'
,
scaleX
:
0.5
,
scaleY
:
0.7
,
skewX
:
'
22deg
'
,
skewY
:
'
30deg
'
},
opacity
:
0.6
,
offset
:
2.0
,
width
:
'
60%
'
,
height
:
'
30px
'
,
backgroundColor
:
'
#ff00ff
'
,
backgroundPosition
:
'
15px 25px
'
,
transformOrigin
:
'
center top
'
},
{
transform
:
{
translateX
:
'
100px
'
,
translateY
:
'
0px
'
,
translateZ
:
'
20px
'
,
rotateX
:
'
0deg
'
,
rotateY
:
'
0deg
'
,
rotateZ
:
'
30deg
'
,
scaleX
:
1
,
scaleY
:
1
,
scaleZ
:
2
,
skewX
:
'
0
'
,
skewY
:
'
0
'
,
skewZ
:
'
30deg
'
},
opacity
:
1
,
offset
:
0.0
,
width
:
'
100%
'
,
height
:
'
30px
'
,
backgroundColor
:
'
#ffff00
'
,
backgroundPosition
:
'
0px
'
,
transformOrigin
:
'
center center
'
},
];
export
default
{
...
...
@@ -328,73 +411,6 @@ export default {
functionTest3
(
event
){
var
function3
=
this
.
$element
(
'
function3
'
);
var
options
=
{
duration
:
1500
,
easing
:
'
friction
'
,
delay
:
100
,
fill
:
'
forwards
'
,
iterations
:
2
,
direction
:
'
normal
'
,
};
var
frames
=
[
{
transform
:
{
translate
:
'
-120px
'
,
rotate
:
'
10deg
'
,
scale
:
0.2
,
skew
:
'
40deg
'
},
opacity
:
0.1
,
offset
:
0.0
,
width
:
'
40%
'
,
height
:
'
20px
'
,
backgroundColor
:
'
#ff0000
'
,
backgroundPosition
:
'
10px 20px
'
,
transformOrigin
:
'
left top
'
},
{
transform
:
{
translateX
:
'
0px
'
,
translateY
:
'
5px
'
,
rotateX
:
'
10deg
'
,
rotateY
:
'
10deg
'
,
scaleX
:
0.5
,
scaleY
:
0.7
,
skewX
:
'
22deg
'
,
skewY
:
'
30deg
'
},
opacity
:
0.6
,
offset
:
2.0
,
width
:
'
60%
'
,
height
:
'
30px
'
,
backgroundColor
:
'
#ff00ff
'
,
backgroundPosition
:
'
15px 25px
'
,
transformOrigin
:
'
center top
'
},
{
transform
:
{
translateX
:
'
100px
'
,
translateY
:
'
0px
'
,
translateZ
:
'
20px
'
,
rotateX
:
'
0deg
'
,
rotateY
:
'
0deg
'
,
rotateZ
:
'
30deg
'
,
scaleX
:
1
,
scaleY
:
1
,
scaleZ
:
2
,
skewX
:
'
0
'
,
skewY
:
'
0
'
,
skewZ
:
'
30deg
'
},
opacity
:
1
,
offset
:
0.0
,
width
:
'
100%
'
,
height
:
'
30px
'
,
backgroundColor
:
'
#ffff00
'
,
backgroundPosition
:
'
0px
'
,
transformOrigin
:
'
center center
'
},
];
var
animation
=
function3
.
animate
(
frames
,
options
);
animation
.
play
()
...
...
ace/ace_standard/src/main/js/default/pages/gridContainer/index.css
浏览文件 @
e61400f3
...
...
@@ -413,11 +413,11 @@
background
:
repeating-linear-gradient
(
to
right
,
rgba
(
255
,
255
,
0
,
1
)
30px
,
rgba
(
0
,
0
,
255
,
.5
)
60px
);
}
.access
ibility
-container
{
.access-container
{
flex-direction
:
column
;
}
.access
ibility
1
{
.access1
{
height
:
20px
;
background-color
:
#321124
;
margin
:
5px
;
...
...
ace/ace_standard/src/main/js/default/pages/gridContainer/index.hml
浏览文件 @
e61400f3
...
...
@@ -243,7 +243,7 @@
<text class="sub-title">
div无障碍1
</text>
<grid-container class="access
ibility
1" accessibilitygroup ="true"
<grid-container class="access1" accessibilitygroup ="true"
accessibilitytext="这是div"
accessibilitydescription="点击此按键会弹出一个对话框"
accessibilityimportance="no-hide-descendants">
...
...
ace/ace_standard/src/main/js/default/pages/gridContainer/index.js
浏览文件 @
e61400f3
/**
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
prompt
from
'
@system.prompt
'
;
var
options
=
{
duration
:
1500
,
easing
:
'
friction
'
,
delay
:
100
,
fill
:
'
forwards
'
,
iterations
:
2
,
direction
:
'
normal
'
,
};
var
frames
=
[
{
transform
:
{
translate
:
'
-120px
'
,
rotate
:
'
10deg
'
,
scale
:
0.2
,
skew
:
'
40deg
'
},
opacity
:
0.1
,
offset
:
0.0
,
width
:
'
40%
'
,
height
:
'
20px
'
,
backgroundColor
:
'
#ff0000
'
,
backgroundPosition
:
'
10px 20px
'
,
transformOrigin
:
'
left top
'
},
{
transform
:
{
translateX
:
'
0px
'
,
translateY
:
'
5px
'
,
rotateX
:
'
10deg
'
,
rotateY
:
'
10deg
'
,
scaleX
:
0.5
,
scaleY
:
0.7
,
skewX
:
'
22deg
'
,
skewY
:
'
30deg
'
},
opacity
:
0.6
,
offset
:
2.0
,
width
:
'
60%
'
,
height
:
'
30px
'
,
backgroundColor
:
'
#ff00ff
'
,
backgroundPosition
:
'
15px 25px
'
,
transformOrigin
:
'
center top
'
},
{
transform
:
{
translateX
:
'
100px
'
,
translateY
:
'
0px
'
,
translateZ
:
'
20px
'
,
rotateX
:
'
0deg
'
,
rotateY
:
'
0deg
'
,
rotateZ
:
'
30deg
'
,
scaleX
:
1
,
scaleY
:
1
,
scaleZ
:
2
,
skewX
:
'
0
'
,
skewY
:
'
0
'
,
skewZ
:
'
30deg
'
},
opacity
:
1
,
offset
:
0.0
,
width
:
'
100%
'
,
height
:
'
30px
'
,
backgroundColor
:
'
#ffff00
'
,
backgroundPosition
:
'
0px
'
,
transformOrigin
:
'
center center
'
},
];
export
default
{
onShow
(){
// 通用属性
...
...
@@ -18,7 +102,7 @@ export default {
console
.
info
(
"
getGutterWidth:
"
+
this
.
$element
(
'
function4
'
).
getGutterWidth
())
console
.
info
(
"
getColumnWidth:
"
+
this
.
$element
(
'
function4
'
).
getColumnWidth
())
console
.
info
(
"
getSizeType:
"
+
this
.
$element
(
'
function4
'
).
getSizeType
())
},
4
},
touchStart
(
event
){
var
globalX
=
event
.
touches
[
0
].
globalX
var
globalY
=
event
.
touches
[
0
].
globalY
...
...
@@ -334,74 +418,6 @@ export default {
functionTest3
(
event
){
var
function3
=
this
.
$element
(
'
function3
'
);
var
options
=
{
duration
:
1500
,
easing
:
'
friction
'
,
delay
:
100
,
fill
:
'
forwards
'
,
iterations
:
2
,
direction
:
'
normal
'
,
};
var
frames
=
[
{
transform
:
{
translate
:
'
-120px
'
,
rotate
:
'
10deg
'
,
scale
:
0.2
,
skew
:
'
40deg
'
},
opacity
:
0.1
,
offset
:
0.0
,
width
:
'
40%
'
,
height
:
'
20px
'
,
backgroundColor
:
'
#ff0000
'
,
backgroundPosition
:
'
10px 20px
'
,
transformOrigin
:
'
left top
'
},
{
transform
:
{
translateX
:
'
0px
'
,
translateY
:
'
5px
'
,
rotateX
:
'
10deg
'
,
rotateY
:
'
10deg
'
,
scaleX
:
0.5
,
scaleY
:
0.7
,
skewX
:
'
22deg
'
,
skewY
:
'
30deg
'
},
opacity
:
0.6
,
offset
:
2.0
,
width
:
'
60%
'
,
height
:
'
30px
'
,
backgroundColor
:
'
#ff00ff
'
,
backgroundPosition
:
'
15px 25px
'
,
transformOrigin
:
'
center top
'
},
{
transform
:
{
translateX
:
'
100px
'
,
translateY
:
'
0px
'
,
translateZ
:
'
20px
'
,
rotateX
:
'
0deg
'
,
rotateY
:
'
0deg
'
,
rotateZ
:
'
30deg
'
,
scaleX
:
1
,
scaleY
:
1
,
scaleZ
:
2
,
skewX
:
'
0
'
,
skewY
:
'
0
'
,
skewZ
:
'
30deg
'
},
opacity
:
1
,
offset
:
0.0
,
width
:
'
100%
'
,
height
:
'
30px
'
,
backgroundColor
:
'
#ffff00
'
,
backgroundPosition
:
'
0px
'
,
transformOrigin
:
'
center center
'
},
];
var
animation
=
function3
.
animate
(
frames
,
options
);
animation
.
play
()
animation
.
onfinish
=
function
(){
...
...
ace/ace_standard/src/main/js/default/pages/gridRow/index.css
浏览文件 @
e61400f3
...
...
@@ -422,11 +422,11 @@
background
:
repeating-linear-gradient
(
to
right
,
rgba
(
255
,
255
,
0
,
1
)
30px
,
rgba
(
0
,
0
,
255
,
.5
)
60px
);
}
.access
ibility
-container
{
.access-container
{
flex-direction
:
column
;
}
.access
ibility
1
{
.access1
{
background-color
:
#321124
;
margin
:
5px
;
width
:
90%
;
...
...
ace/ace_standard/src/main/js/default/pages/gridRow/index.hml
浏览文件 @
e61400f3
...
...
@@ -222,14 +222,14 @@
</div>
<div style="background-color: #000000; width: 100%; height: 2px;">
</div>
<div class="access
ibility
-container">
<div class="access-container">
<text class="title">
无障碍
</text>
<text class="sub-title">
div无障碍1
</text>
<grid-row class="access
ibility
1" accessibilitygroup ="true"
<grid-row class="access1" accessibilitygroup ="true"
accessibilitytext="这是div"
accessibilitydescription="点击此按键会弹出一个对话框"
accessibilityimportance="no-hide-descendants">
...
...
ace/ace_standard/src/main/js/default/pages/gridRow/index.js
浏览文件 @
e61400f3
import
prompt
from
'
@system.prompt
'
;
var
options
=
{
duration
:
1500
,
easing
:
'
friction
'
,
delay
:
100
,
fill
:
'
forwards
'
,
iterations
:
2
,
direction
:
'
normal
'
,
};
var
frames
=
[
{
transform
:
{
translate
:
'
-120px
'
,
rotate
:
'
10deg
'
,
scale
:
0.2
,
skew
:
'
40deg
'
},
opacity
:
0.1
,
offset
:
0.0
,
width
:
'
40%
'
,
height
:
'
20px
'
,
backgroundColor
:
'
#ff0000
'
,
backgroundPosition
:
'
10px 20px
'
,
transformOrigin
:
'
left top
'
},
{
transform
:
{
translateX
:
'
0px
'
,
translateY
:
'
5px
'
,
rotateX
:
'
10deg
'
,
rotateY
:
'
10deg
'
,
scaleX
:
0.5
,
scaleY
:
0.7
,
skewX
:
'
22deg
'
,
skewY
:
'
30deg
'
},
opacity
:
0.6
,
offset
:
2.0
,
width
:
'
60%
'
,
height
:
'
30px
'
,
backgroundColor
:
'
#ff00ff
'
,
backgroundPosition
:
'
15px 25px
'
,
transformOrigin
:
'
center top
'
},
{
transform
:
{
translateX
:
'
100px
'
,
translateY
:
'
0px
'
,
translateZ
:
'
20px
'
,
rotateX
:
'
0deg
'
,
rotateY
:
'
0deg
'
,
rotateZ
:
'
30deg
'
,
scaleX
:
1
,
scaleY
:
1
,
scaleZ
:
2
,
skewX
:
'
0
'
,
skewY
:
'
0
'
,
skewZ
:
'
30deg
'
},
opacity
:
1
,
offset
:
0.0
,
width
:
'
100%
'
,
height
:
'
30px
'
,
backgroundColor
:
'
#ffff00
'
,
backgroundPosition
:
'
0px
'
,
transformOrigin
:
'
center center
'
},
];
export
default
{
onShow
(){
...
...
@@ -328,73 +395,7 @@ export default {
functionTest3
(
event
){
var
function3
=
this
.
$element
(
'
function3
'
);
var
options
=
{
duration
:
1500
,
easing
:
'
friction
'
,
delay
:
100
,
fill
:
'
forwards
'
,
iterations
:
2
,
direction
:
'
normal
'
,
};
var
frames
=
[
{
transform
:
{
translate
:
'
-120px
'
,
rotate
:
'
10deg
'
,
scale
:
0.2
,
skew
:
'
40deg
'
},
opacity
:
0.1
,
offset
:
0.0
,
width
:
'
40%
'
,
height
:
'
20px
'
,
backgroundColor
:
'
#ff0000
'
,
backgroundPosition
:
'
10px 20px
'
,
transformOrigin
:
'
left top
'
},
{
transform
:
{
translateX
:
'
0px
'
,
translateY
:
'
5px
'
,
rotateX
:
'
10deg
'
,
rotateY
:
'
10deg
'
,
scaleX
:
0.5
,
scaleY
:
0.7
,
skewX
:
'
22deg
'
,
skewY
:
'
30deg
'
},
opacity
:
0.6
,
offset
:
2.0
,
width
:
'
60%
'
,
height
:
'
30px
'
,
backgroundColor
:
'
#ff00ff
'
,
backgroundPosition
:
'
15px 25px
'
,
transformOrigin
:
'
center top
'
},
{
transform
:
{
translateX
:
'
100px
'
,
translateY
:
'
0px
'
,
translateZ
:
'
20px
'
,
rotateX
:
'
0deg
'
,
rotateY
:
'
0deg
'
,
rotateZ
:
'
30deg
'
,
scaleX
:
1
,
scaleY
:
1
,
scaleZ
:
2
,
skewX
:
'
0
'
,
skewY
:
'
0
'
,
skewZ
:
'
30deg
'
},
opacity
:
1
,
offset
:
0.0
,
width
:
'
100%
'
,
height
:
'
30px
'
,
backgroundColor
:
'
#ffff00
'
,
backgroundPosition
:
'
0px
'
,
transformOrigin
:
'
center center
'
},
];
var
animation
=
function3
.
animate
(
frames
,
options
);
animation
.
play
()
...
...
ace/ace_standard/src/main/js/default/pages/obj_CanvasGradient/index.css
浏览文件 @
e61400f3
...
...
@@ -330,15 +330,6 @@
background
:
repeating-linear-gradient
(
to
right
,
rgba
(
255
,
255
,
0
,
1
)
30px
,
rgba
(
0
,
0
,
255
,
.5
)
60px
);
}
.accessibility-container
{
flex-direction
:
column
;
}
.accessibility1
{
width
:
100%
;
height
:
30px
;
}
.atom-container
{
flex-direction
:
column
;
}
...
...
ace/ace_standard/src/main/js/default/pages/obj_CanvasRenderingContext2D/index.css
浏览文件 @
e61400f3
...
...
@@ -330,15 +330,6 @@
background
:
repeating-linear-gradient
(
to
right
,
rgba
(
255
,
255
,
0
,
1
)
30px
,
rgba
(
0
,
0
,
255
,
.5
)
60px
);
}
.accessibility-container
{
flex-direction
:
column
;
}
.accessibility1
{
width
:
100%
;
height
:
30px
;
}
.atom-container
{
flex-direction
:
column
;
}
...
...
ace/ace_standard/src/main/js/default/pages/obj_Image/index.css
浏览文件 @
e61400f3
...
...
@@ -330,15 +330,6 @@
background
:
repeating-linear-gradient
(
to
right
,
rgba
(
255
,
255
,
0
,
1
)
30px
,
rgba
(
0
,
0
,
255
,
.5
)
60px
);
}
.accessibility-container
{
flex-direction
:
column
;
}
.accessibility1
{
width
:
100%
;
height
:
30px
;
}
.atom-container
{
flex-direction
:
column
;
}
...
...
ace/ace_standard/src/main/js/default/pages/obj_ImageBitmap/index.css
浏览文件 @
e61400f3
...
...
@@ -330,15 +330,6 @@
background
:
repeating-linear-gradient
(
to
right
,
rgba
(
255
,
255
,
0
,
1
)
30px
,
rgba
(
0
,
0
,
255
,
.5
)
60px
);
}
.accessibility-container
{
flex-direction
:
column
;
}
.accessibility1
{
width
:
100%
;
height
:
30px
;
}
.atom-container
{
flex-direction
:
column
;
}
...
...
ace/ace_standard/src/main/js/default/pages/obj_ImageData/index.css
浏览文件 @
e61400f3
...
...
@@ -330,15 +330,6 @@
background
:
repeating-linear-gradient
(
to
right
,
rgba
(
255
,
255
,
0
,
1
)
30px
,
rgba
(
0
,
0
,
255
,
.5
)
60px
);
}
.accessibility-container
{
flex-direction
:
column
;
}
.accessibility1
{
width
:
100%
;
height
:
30px
;
}
.atom-container
{
flex-direction
:
column
;
}
...
...
ace/ace_standard/src/main/js/default/pages/obj_OffscreenCanvas/index.css
浏览文件 @
e61400f3
...
...
@@ -330,15 +330,6 @@
background
:
repeating-linear-gradient
(
to
right
,
rgba
(
255
,
255
,
0
,
1
)
30px
,
rgba
(
0
,
0
,
255
,
.5
)
60px
);
}
.accessibility-container
{
flex-direction
:
column
;
}
.accessibility1
{
width
:
100%
;
height
:
30px
;
}
.atom-container
{
flex-direction
:
column
;
}
...
...
ace/ace_standard/src/main/js/default/pages/obj_OffscreenCanvas/index.js
浏览文件 @
e61400f3
...
...
@@ -55,7 +55,7 @@ export default {
prompt
.
showToast
({
message
:
'
offscreenCanvasCtx=
'
+
offscreenCanvasCtx
+
'
,dataURL=
'
+
dataURL
+
'
,bitmap=
'
+
JSON
.
stringify
(
bitmap
)
});
console
.
log
(
'
offscreenCanvasCtx=
'
+
offscreenCanvasCtx
+
'
,dataURL=
'
+
dataURL
+
'
,bitmap=
'
+
JSON
.
stringify
(
bitmap
));
//data:image/png;base64,xxxxxx
console
.
log
(
'
offscreenCanvasCtx=
'
+
offscreenCanvasCtx
+
'
,dataURL=
'
+
dataURL
+
'
,bitmap=
'
+
JSON
.
stringify
(
bitmap
));
},
...
...
ace/ace_standard/src/main/js/default/pages/obj_OffscreenCanvasRenderingContext2D/index.css
浏览文件 @
e61400f3
...
...
@@ -330,15 +330,6 @@
background
:
repeating-linear-gradient
(
to
right
,
rgba
(
255
,
255
,
0
,
1
)
30px
,
rgba
(
0
,
0
,
255
,
.5
)
60px
);
}
.accessibility-container
{
flex-direction
:
column
;
}
.accessibility1
{
width
:
100%
;
height
:
30px
;
}
.atom-container
{
flex-direction
:
column
;
}
...
...
ace/ace_standard/src/main/js/default/pages/obj_Path2D/index.css
浏览文件 @
e61400f3
...
...
@@ -330,15 +330,6 @@
background
:
repeating-linear-gradient
(
to
right
,
rgba
(
255
,
255
,
0
,
1
)
30px
,
rgba
(
0
,
0
,
255
,
.5
)
60px
);
}
.accessibility-container
{
flex-direction
:
column
;
}
.accessibility1
{
width
:
100%
;
height
:
30px
;
}
.atom-container
{
flex-direction
:
column
;
}
...
...
ace/ace_standard/src/main/js/default/pages/video/index.css
浏览文件 @
e61400f3
...
...
@@ -127,7 +127,6 @@
background-position
:
center
;
flex
:
1
;
flex-grow
:
2
;
/* flex-basis: 10px;*/
flex-shrink
:
1
;
}
...
...
@@ -141,8 +140,6 @@
.contain1
{
width
:
100%
;
/* height: 100px;*/
/* flex-direction: column;*/
}
.style5
{
...
...
ace/ace_standard/src/main/js/default/pages/video/index.js
浏览文件 @
e61400f3
...
...
@@ -608,78 +608,3 @@ export default {
});
}
}
//export default {
// data: {
// title: '',
// time: '',
// controls: false,
// loop: false,
// videoSpeed: 1.0
// },
// prepared(data) {
// this.title = '视频准备完成,时间:' + data.duration + 's';
// },
// startVideo() {
// this.title = "视频播放"
// },
// pauseVideo() {
// this.title = "暂停播放"
// },
// finishVideo() {
// this.title = "播放结束"
// },
// errorVideo() {
// this.title = "播放失败"
// },
// seekingVideo(data) {
// this.title = '操作进度条至:' + data.currenttime + 's';
// },
// seekedVideo(data) {
// this.title = '操作进度条结束,转至:' + data.currenttime + 's';
// },
// timeupdateVideo(data) {
// this.time = '播放进度: ' + data.currenttime + 's';
// },
// stopVideo() {
// this.title = '操作进度条结束,转至:' + data.currenttime + 's';
// },
// play() {
// this.$element('video_1').start();
// },
// suspend() {
// this.$element('video_1').pause();
// },
// stop() {
// this.$element('video_1').stop();
// },
// stopVideo() {
// this.time = '请求停止播放';
// },
// showControls() {
// this.controls = !this.controls;
// },
// isLoop() {
// this.loop = !this.loop;
// },
// speed(flg) {
// if(flg == '0.5'){
// this.videoSpeed = 0.5;
// }else if(flg == '1'){
// this.videoSpeed = 1.0;
// }else if(flg == '2'){
// this.videoSpeed = 2.0;
// }
// },
// setCurrentTime(flg) {
// let data = {
// currenttime: flg
// }
// this.$element('video_1').setCurrentTime(data);
// },
// requestFullscreen() {
// this.$element('video_1').requestFullscreen({screenOrientation : "default"});
// }
//}
ace/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js
浏览文件 @
e61400f3
...
...
@@ -966,4 +966,73 @@ describe('aceJsTest', function () {
expect
(
"
pages/tab-content/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testVideoComponent
* @tc.desc ACE
*/
it
(
'
testVideoComponent
'
,
0
,
async
function
(
done
)
{
let
result
;
let
options
=
{
uri
:
'
pages/video/index
'
}
try
{
result
=
router
.
push
(
options
)
console
.
info
(
"
push video page success
"
+
JSON
.
stringify
(
result
));
}
catch
(
err
)
{
console
.
error
(
"
push video page error
"
+
JSON
.
stringify
(
result
));
}
await
sleep
(
5000
)
let
pages
=
router
.
getState
();
console
.
info
(
"
[router.video] getState
"
+
JSON
.
stringify
(
pages
));
expect
(
"
pages/video/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testSvgTextComponent
* @tc.desc ACE
*/
it
(
'
testSvgTextComponent
'
,
0
,
async
function
(
done
)
{
let
result
;
let
options
=
{
uri
:
'
pages/svg_text/index
'
}
try
{
result
=
router
.
push
(
options
)
console
.
info
(
"
push svg_text page success
"
+
JSON
.
stringify
(
result
));
}
catch
(
err
)
{
console
.
error
(
"
push svg_text page error
"
+
JSON
.
stringify
(
result
));
}
await
sleep
(
5000
)
let
pages
=
router
.
getState
();
console
.
info
(
"
[router.svg_text] getState
"
+
JSON
.
stringify
(
pages
));
expect
(
"
pages/svg_text/
"
).
assertEqual
(
pages
.
path
);
done
();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testGridContainerComponent
* @tc.desc ACE
*/
it
(
'
testGridContainerComponent
'
,
0
,
async
function
(
done
)
{
let
result
;
let
options
=
{
uri
:
'
pages/gridContainer/index
'
}
try
{
result
=
router
.
push
(
options
)
console
.
info
(
"
push gridContainer page success
"
+
JSON
.
stringify
(
result
));
}
catch
(
err
)
{
console
.
error
(
"
push gridContainer page error
"
+
JSON
.
stringify
(
result
));
}
await
sleep
(
5000
)
let
pages
=
router
.
getState
();
console
.
info
(
"
[router.gridContainer] getState
"
+
JSON
.
stringify
(
pages
));
expect
(
"
pages/gridContainer/
"
).
assertEqual
(
pages
.
path
);
done
();
});
});
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录