Repository navigation
perf(journey-map): reuse static map pixels and bound drawing work - #54
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更说明
JourneyMap 的选点曾重新绘制地形、边界与路线,放大后也提交大量屏外笔触。新增可组合的
rendering配置:屏外边界笔触剔除、保守地形行范围、画布缓冲复用,以及单实例有界底图缓存。切换策略保留地图实例与视角;数据、主题、视图、尺寸/DPR 与上下文恢复会使对应缓存失效,卸载释放像素。调整尺寸时先释放旧缓存,保留 6 Mi 像素合计预算。auto启用四项策略,legacy关闭策略,自定义对象逐项覆盖。已有同机 Chrome/WebKit 测量均有收益,当前不引入浏览器识别或分流。真实 Safari 尚未验收;不新增 Safari CI。详细指标与限制见docs/journey-map-performance.md。文档控件与 API 说明在配套 docs PR 中更新。Validation
node --test packages/inkra/test/travel.test.mjs packages/inkra/test/journey-map-rendering.test.mjs,20 项通过,0 失败/跳过。其中 travel 组 13 项、渲染专项 7 项。npm run check:installed的实际归档安装、SSR/import/types 检查通过。首次消费验证遇到本机共享 npm 缓存权限问题;改用独立临时缓存后通过,未修改共享缓存。git diff --check通过。配套文档使用真实候选归档构建通过。