未验证 提交 d27994a5 编写于 作者: C chenhaiying 提交者: Gitee

修改窗口错误示例代码

Signed-off-by: Nchenhaiying <chenhaiying3@huawei.com>
上级 2392722a
......@@ -3329,11 +3329,12 @@ scale(scaleOptions: ScaleOptions): void
**示例:**
```js
var obj : window.ScaleOptions;
obj.x = 2.0;
obj.y = 1.0;
obj.pivotX = 0.5;
obj.pivotY = 0.5;
var obj : window.ScaleOptions = {
x : 2.0,
y : 1.0,
pivotX = 0.5;
pivotY = 0.5;
}
windowClass.scale(obj);
```
......@@ -3356,12 +3357,13 @@ rotate(rotateOptions: RotateOptions): void
**示例:**
```js
var obj : window.RotateOptions;
obj.x = 1.0;
obj.y = 1.0;
obj.z = 45.0;
obj.pivotX = 0.5;
obj.pivotY = 0.5;
var obj : window.RotateOptions = {
x : 1.0,
y : 1.0,
z : 45.0,
pivotX = 0.5;
pivotY = 0.5;
}
windowClass.rotate(obj);
```
......@@ -3384,10 +3386,11 @@ translate(translateOptions: TranslateOptions): void
**示例:**
```js
var obj : window.TranslateOptions;
obj.x = 100.0;
obj.y = 0.0;
obj.z = 0.0;
var obj : window.TranslateOptions = {
x : 100.0,
y : 0.0,
z : 0.0
}
windowClass.translate(obj);
```
......@@ -3421,10 +3424,11 @@ controller.animationForHidden = (context : window.TransitionContext) => {
iterations: 1, // 播放次数
playMode: PlayMode.Normal, // 动画模式
}, () => {
var obj : window.TranslateOptions;
obj.x = 100.0;
obj.y = 0.0;
obj.z = 0.0;
var obj : window.TranslateOptions = {
x : 100.0,
y : 0.0,
z : 0.0
}
toWindow.translate(obj); // 设置动画过程中的属性转换
console.info('toWindow translate end');
}
......@@ -3951,10 +3955,11 @@ controller.animationForShown = (context : window.TransitionContext) => {
iterations: 1, // 播放次数
playMode: PlayMode.Normal, // 动画模式
}, () => {
var obj : window.TranslateOptions;
obj.x = 100.0;
obj.y = 0.0;
obj.z = 0.0;
var obj : window.TranslateOptions = {
x : 100.0,
y : 0.0,
z : 0.0
}
toWindow.translate(obj);
console.info('toWindow translate end');
}
......@@ -3998,10 +4003,11 @@ controller.animationForShown = (context : window.TransitionContext) => {
iterations: 1, // 播放次数
playMode: PlayMode.Normal, // 动画模式
}, () => {
var obj : window.TranslateOptions;
obj.x = 100.0;
obj.y = 0.0;
obj.z = 0.0;
var obj : window.TranslateOptions = {
x : 100.0,
y : 0.0,
z : 0.0
}
toWindow.translate(obj);
console.info('toWindow translate end');
}
......@@ -4039,10 +4045,11 @@ controller.animationForHidden = (context : window.TransitionContext) => {
iterations: 1, // 播放次数
playMode: PlayMode.Normal, // 动画模式
}, () => {
var obj : window.TranslateOptions;
obj.x = 100.0;
obj.y = 0.0;
obj.z = 0.0;
var obj : window.TranslateOptions = {
x : 100.0,
y : 0.0,
z : 0.0
}
toWindow.translate(obj);
console.info('toWindow translate end');
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册