app用plus.nativeObj.View做水印,文字怎么旋转啊,现在这里不能旋转弄得我只能引用图片了
//水印排列行数
let row = Math.floor(systemInfo.windowHeight / 50);
let tarArr = [];
for(let i = 0; i < row; i++) {
for(let j = 0; j < 3; j++){
tarArr.push({
tag: 'font',
text: watermarkText,
position: {
left: (100 j) + 'px',
top: (50 i) + 'px',
width: 100 + 'px',
height:50 + 'px',
}
});
}
}
var watermarkView = new plus.nativeObj.View(id, {
top: '0px',
left:'0px',
right: '0px',
bottom: '0px',
backgroundColor: 'transparent',
opacity: 0.06,
}, tarArr);
//拦截View控件的触屏事件,将事件穿透给下一层view
watermarkView.interceptTouchEvent(false);
watermarkView.show();
0 个回复