+ [task#128767] init calculateCardPosition function.
This commit is contained in:
@@ -84,6 +84,24 @@ window.initThinkCanvas = function()
|
||||
if(image.complete && image.naturalWidth != 0) image.onload();
|
||||
}
|
||||
|
||||
/**
|
||||
* 计算卡片位置。
|
||||
* Calculate card position.
|
||||
*
|
||||
* @param object region
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function calculateCardPosition(region)
|
||||
{
|
||||
const h = 300; // 卡片高度
|
||||
const minW = 256; // 最小宽度
|
||||
const maxW = 400; // 最大宽度
|
||||
const d = 10; // 间距
|
||||
const rows = flattenData(region.rows);
|
||||
const rowsCount = rows.length;
|
||||
}
|
||||
|
||||
/**
|
||||
* 处理画布点击。
|
||||
* handle canvas click.
|
||||
|
||||
Reference in New Issue
Block a user