+ [task#128767] init drawRegionTitle function.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user