|
[多端开发]
FNImageClip rect中的x y值无效
[复制链接]
FNImageClip.open({
rect: {
x: 0,
y: api.winHeight / 2,//数字也尝试过
w: api.winWidth,
h: 300 //(可选项)数字类型;模块的高度;默认值:所属的 Window 或 Frame 的高度
},
srcPath: this.img,
highDefinition: true,
style: {
mask: 'rgba(33, 6, 0, .1)',
clip: {
w: 200,
h: 200,
x: 10,
y: 200,
borderColor: '#0f0',
borderWidth: 5,
appearance: 'rectangle'
}
},
mode: "clip",
fixedOn: api.frameName,
fixed: false
}, function (ret, err) {
if (ret) {
console.log(JSON.stringify(ret));
} else {
alert(JSON.stringify(err));
}
});
宽高都生效了,但X,Y的值没有生效,数字和winHeight 都尝试过
|
|