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

修改窗口错误示例代码

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