|
@@ -113,14 +113,13 @@ const drawBottom = (imgWidth, imgHeight, weather) => {
|
|
|
ctx.textAlign = "left"; // 设置为左对齐
|
|
|
let imgRect = { x: 0, y: 0, width: imgWidth, height: imgHeight}
|
|
|
// 绘制头部黑色半透明遮罩
|
|
|
- let topRect = drawRectInRect(ctx,imgRect, 0, 0, 80, 15,"rgba(0, 0, 0, 0.6)")
|
|
|
+ let topRect = drawRectInRect(ctx,imgRect, 0, 0, 40, 15,"rgba(0, 0, 0, 0.6)")
|
|
|
// 绘制黑色半透明遮罩
|
|
|
let bottomRect = drawRectInRect(ctx,imgRect, 0, 5/6 * 100, 100, 1/6 * 100,"rgba(0, 0, 0, 0.6)")
|
|
|
|
|
|
- drawHorizontalTextList(ctx, topRect, '#ffffff',[data.treeCode, "蓬径:5m", "高度:3m", "高产树",data.pingzhong],
|
|
|
- 40/1.5, 0,
|
|
|
- 65/1.5 , 0,"|",0,
|
|
|
- 30/1.5,"#ffffff",1,2)
|
|
|
+ // drawHorizontalTextList(ctx, topRect, '#ffffff',[data.treeCode, "蓬径:5m", "高度:3m", "高产树",data.pingzhong],
|
|
|
+ drawHorizontalTextList(ctx, topRect, '#ffffff',[data.treeCode],
|
|
|
+ 40/1.5, 0,)
|
|
|
if(props.temp){
|
|
|
drawHorizontalTextList(ctx, topRect, '#ffffff',["高温控梢", props.temp, "新梢萌动5级"],
|
|
|
40/1.5, -18,
|