feat(shell): 状态栏内存显示 + 修外观网格设置(v3.25.74)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 30s

This commit is contained in:
qiqi committed 2026-11-21 07:05:24 +08:00
1 parent 94680fd127
commit f6d104fd95
15 files changed
+139 -27

No files matched your search

+2 -1
View File
@@ -9,6 +9,7 @@ const grid = fs.readFileSync(path.join(__dirname, '..', 'src', 'canvas-grid.js')
assert.ok(source.includes('gridStyleOf('), '网格样式必须经 gridStyleOf 计算')
assert.ok(source.includes('IWBCanvasGrid'), '必须接入 canvas-grid 模块')
assert.ok(grid.includes('function styleOf') && grid.includes('function applyTo'), '模块需提供 styleOf/applyTo')
assert.ok(source.includes("backgroundSize: (28 * scale) + 'px ' + (28 * scale) + 'px'"), 'jsdom/无模块时需回落到渐变公式')
assert.ok(source.includes("--iwb-grid-gap"), '网格必须读取外观设置变量(v3.25.74)')
assert.ok(source.includes("backgroundSize: (o.base * scale)"), 'jsdom/无模块时需回落到渐变公式')
assert.ok(!source.includes("backgroundPosition: viewport.x + 'px ' + viewport.y + 'px'"), '渲染期不得再按帧写 backgroundPosition')
console.log('canvas dot zoom checks passed')
+1 -1
View File
@@ -149,7 +149,7 @@ const MAX_SRC_COMPONENT_LINES = 531
// ② 同时守「app.js 占总源码 ≤ 40%」(2026-11-12 实测 38.4%)—— app.js 可以涨,
// 但必须涨得比 src 慢;功能继续加,占比自然往下走;
// ③ Workbench 单函数上限**不动**(3,091)—— 那才是真坏味道的护栏,总量松它不松。
const MAX_APP_JS_LINES = 8985 // 2026-11-21 v3.25.73:缩略图按需切原图 + 稳定 key 装配(规则本体已抽到 src/image-thumb-pick.js,这里只留薄封装)
const MAX_APP_JS_LINES = 9020 // 2026-11-21 v3.25.74:状态栏内存轮询 + 网格读取外观变量(缩略图规则仍在 src/image-thumb-pick.js)
const MAX_APP_JS_SHARE = 0.40
// ── 历史记账(供回溯,逐条保留)──────────────────────────────────────────────