+ [task#128767] init drawRegionTitle function.

This commit is contained in:
wangzemei
2024-09-24 17:35:50 +08:00
committed by 孙浩
parent 46cf488623
commit 2fc6c303ce
+19
View File
@@ -443,6 +443,25 @@ window.drawRegionInput = function(canvas, region, colorIndex, clientLang, blocks
canvas.parentNode.appendChild(input);
}
/**
* 绘制区域标题。
* Draw a region title.
*
* @param object canvas
* @param object region
* @param number colorIndex
* @param array blocks
* @access public
* @return void
*/
window.drawRegionTitle = function(canvas, region, colorIndex, blocks)
{
const centerX = (region.minX + region.maxX) / 2;
const centerY = (region.minY + region.maxY) / 2;
const boxWidth = 120;
const boxHeight = 48;
}
/**
* 渲染区域输入框。
* Render region inputs.