+ [task#128767] init calculateCardPosition function.

This commit is contained in:
wangzemei
2024-09-24 17:35:50 +08:00
committed by 孙浩
parent bbbfae269a
commit a3ae21f342
+18
View File
@@ -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.