+ [task#127424] add getRegionInfo function of think3c widget.
This commit is contained in:
@@ -79,3 +79,23 @@ function getCanvasSize(width = 0, height = 0)
|
||||
|
||||
return {width, height};
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取区域信息。
|
||||
* Get region info.
|
||||
*
|
||||
* @param object pixels
|
||||
* @param boolean visited
|
||||
* @param number x
|
||||
* @param number y
|
||||
* @param number width
|
||||
* @param number height
|
||||
* @access public
|
||||
* @return object
|
||||
*/
|
||||
function getRegionInfo(pixels, visited, x, y, width, height)
|
||||
{
|
||||
const region = {area: 0, rows: []};
|
||||
|
||||
return region;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user