Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
bccc974
chore: 添加skills 定义
lzxue Jan 23, 2026
9d7916f
feat: add workflow to sync skills to chart-visualization-skills
lzxue Jan 23, 2026
ab76ccc
chore: 目录更新
lzxue Jan 23, 2026
826b425
chore: 修复一下文档引用错误
lzxue Jan 26, 2026
4ebed9d
chore: 优化引用
lzxue Jan 26, 2026
cef3de5
docs: update skills documentation and add new reference files
lzxue Jan 27, 2026
d48dea2
fix: 修复冲突
lzxue Jan 27, 2026
346ca9a
chore: 更新readme
lzxue Jan 27, 2026
2dafefe
chore: remove baidu map demos and update gitignore
lzxue Feb 3, 2026
c6bda28
chore: 移除dev demo
lzxue Feb 3, 2026
6a13777
chore: 移除 skill async workflow
lzxue Feb 3, 2026
e8ced4b
chore: 移除 skill async workflow
lzxue Feb 3, 2026
c864d1d
chore: 更新skill
lzxue Feb 10, 2026
956c295
chore: 修复cdn错误
lzxue Feb 11, 2026
6898c22
fix: 修复蜂窝和网格热力图闭合问题
lzxue Feb 13, 2026
4ecfcfe
perf: 优化瓦片图层性能
lzxue Feb 13, 2026
33b74e5
perf: 优化瓦片数据解析性能
lzxue Feb 13, 2026
da6886b
fix: 修复 device 模式下 enableRelativeCoordinates 不生效的问题
lzxue Feb 14, 2026
8d8501a
refactor: 优化依赖和修复拼写错误
lzxue Feb 14, 2026
930485d
refactor: 用自定义实现替代 d3-dsv 依赖
lzxue Feb 14, 2026
34ebd74
refactor: 用自定义实现替代 d3-array 依赖
lzxue Feb 14, 2026
34a48d8
refactor: 用自定义实现替代 d3-color 依赖
lzxue Feb 14, 2026
57e3138
refactor: 用自定义实现替代 d3-interpolate 依赖
lzxue Feb 14, 2026
f8846f2
refactor: 用自定义实现替代 d3-hexbin 依赖
lzxue Feb 14, 2026
ef32086
fix: 修复 hexbin 六边形方向问题
lzxue Feb 14, 2026
38af118
refactor: 用自定义实现替代 d3-scale 依赖
lzxue Feb 14, 2026
aa4ef66
fix: 修复 scale 比例尺处理无效 domain 的问题
lzxue Feb 14, 2026
41efdbb
fix: restore heatmap model and color mapping
lzxue Feb 21, 2026
e2ab23b
refactor: 移除未使用的第三方依赖,减少包体积
lzxue Feb 22, 2026
b8b089e
refactor: 用原生 ResizeObserver 替换 element-resize-detector
lzxue Feb 22, 2026
6ff3046
fix: 修复 ResizeObserver 回调类型兼容性问题
lzxue Feb 22, 2026
59cc48f
fix: 在 ILayer 接口中添加 shapeOption 属性定义
lzxue Feb 22, 2026
698dc8b
refactor: 移除未使用的依赖 web-worker-helper 和 ajv
lzxue Feb 22, 2026
431d58f
refactor: 用原生 Pointer Events API 替换 hammerjs
lzxue Feb 22, 2026
b963faa
refactor: 优化事件系统架构
lzxue Feb 22, 2026
d6059b6
feat: 添加重构验证测试Demo
lzxue Feb 22, 2026
77db97e
fix: 修复 resize demo 中不存在 getCanvas 方法的问题
lzxue Feb 22, 2026
8329780
fix: 修复 InteractionService 与 l7-draw 的兼容性问题
lzxue Feb 23, 2026
7876fde
chore: 添加 l7-draw 依赖并格式化代码
lzxue Feb 23, 2026
00a3b4b
fix: 修复 Marker 缩放时不跟随地图移动的问题
lzxue Feb 23, 2026
944d41f
refactor(component): 优化 packages/component 代码质量
lzxue Feb 23, 2026
75cf719
chore: 修复冲突
lzxue Feb 23, 2026
43a10a5
feat(component): layerpopup trigger 参数改为可选,默认 hover
lzxue Feb 23, 2026
0e7dc6e
fix(component): 修复 layerpopup 默认 trigger 不生效的问题
lzxue Feb 23, 2026
1c9d828
fix(component): 修复 getActualTriggerEvent 返回类型错误
lzxue Feb 23, 2026
b424a5a
chore: 更新 Claude 配置权限设置
lzxue Feb 24, 2026
be901b5
chore: 优化lint 错误
lzxue Feb 24, 2026
691c1ea
test: 修复单元测试环境问题
lzxue Feb 24, 2026
e9fbe66
chore: 更新 Claude 配置权限及测试快照
lzxue Feb 24, 2026
6f264dd
build(l7): umd 构建将 css 内联到 js 中
lzxue Feb 24, 2026
98f90b6
fix: 允许跨平台集成测试的像素差异
lzxue Feb 25, 2026
5ca6d0a
fix: 增加像素差异阈值到150以解决heatmap_grid的跨平台差异
lzxue Feb 25, 2026
577ad00
fix: 设置bail为0确保测试失败后继续执行
lzxue Feb 25, 2026
4001d11
fix: 增加页面加载超时时间到60秒,避免CI超时
lzxue Feb 25, 2026
50aa671
ci: 临时禁用集成测试,待跨平台渲染差异问题解决后再启用
lzxue Feb 25, 2026
7d60f8b
chore: 添加 changeset 记录重构三方依赖变更,更新 gitignore
lzxue Feb 25, 2026
c014ac9
chore: 添加 beta 预发布 changeset 记录
lzxue Feb 25, 2026
8248e26
chore: 更新 changeset 为 patch 版本
lzxue Feb 25, 2026
c8940d9
chore: version (beta) (#2821)
github-actions[bot] Feb 25, 2026
9f37712
Revert "chore: version (beta) (#2821)" (#2822)
lzxue Feb 25, 2026
8635887
chore: version (beta) (#2823)
github-actions[bot] Feb 26, 2026
616fd10
fix: 移除 symbol-es6 polyfill 避免 Iterator 协议冲突
lzxue Feb 27, 2026
57d621b
chore: 更新 VSCode 配置
lzxue Feb 27, 2026
8aace58
chore: 更新 demo 示例使用 GaodeMap
lzxue Feb 27, 2026
68ed1c1
chore: 更新构建配置和高德地图 Key
lzxue Feb 27, 2026
3cdaa32
fix: 修复事件系统与 l7-draw 兼容性问题
lzxue Feb 27, 2026
1bab207
chore: 版本变更
lzxue Feb 27, 2026
718d268
Merge branch 'beta' of https://github.com/antvis/L7 into beta
lzxue Feb 27, 2026
634ee64
chore: bump version to 2.23.3-beta.1
lzxue Feb 27, 2026
801e22d
chore: bump version to 2.23.3-beta.2
lzxue Mar 9, 2026
92fd8ca
revert: 回滚事件系统到 hammerjs 实现,重新添加 hammerjs 依赖
lzxue Mar 9, 2026
946317a
chore: bump version to 2.23.3-beta.3
lzxue Mar 9, 2026
a43985a
fix(citybuilding): 修复 CityBuildingLayer 扫描效果动画和着色器编译问题
lzxue Mar 10, 2026
9a72763
fix: 修复高德地图主题 URL 和 Three.js demo 中的 GLTFLoader 引入问题
lzxue Mar 10, 2026
798de74
Merge branch and resolve conflicts
lzxue Mar 10, 2026
afe73c0
fix: 修复 scene.md 中的合并冲突标记
lzxue Mar 10, 2026
fa5d430
chore: release version 2.24.0
lzxue Mar 10, 2026
61456b7
fix: remove hardcoded Mapbox tokens from demo files and gitignore bui…
lzxue Mar 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .changeset/cool-pants-hide.md

This file was deleted.

20 changes: 0 additions & 20 deletions .changeset/pre.json

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/sweet-cats-check.md

This file was deleted.

8 changes: 7 additions & 1 deletion .claude/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@
"Bash(npx jest:*)",
"Bash(git checkout:*)",
"Bash(yarn run test:unit:*)",
"Bash(yarn run test:integration:*)"
"Bash(yarn run test:integration:*)",
"Bash(pnpm list:*)",
"Bash(pnpm ls webpack style-loader css-loader less-loader postcss-loader)",
"Bash(ls:*)",
"Bash(cat:*)",
"Bash(NODE_ENV=production pnpm:*)",
"Read(//tmp/**)"
]
}
}
11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,16 @@
},
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},

// Python configuration for terminal
"terminal.integrated.env.osx": {
"PYTHON": "/usr/local/bin/python3"
},
"chat.tools.terminal.autoApprove": {
"/^git add packages/core/package\\.json packages/core/src/services/interaction/InteractionService\\.ts packages/core/src/services/scene/SceneService\\.ts && git commit -m \"revert: 回滚事件系统到 hammerjs 实现,重新添加 hammerjs 依赖\"$/": {
"approve": true,
"matchCommandLine": true
}
}
}
8 changes: 4 additions & 4 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
</style>
<script>
window.forceWebGL = true
window._AMapSecurityConfig = {
securityJsCode: '290ddc4b0d33be7bc9b354bc6a4ca614',
};
// window._AMapSecurityConfig = {
// securityJsCode: '290ddc4b0d33be7bc9b354bc6a4ca614',
// };
</script>
<script src="https://webapi.amap.com/maps?v=2.0.5&key=6f025e700cbacbb0bb866712d20bb35c"></script>
<!-- <script src="https://webapi.amap.com/maps?v=2.0.5&key=6f025e700cbacbb0bb866712d20bb35c"></script> -->
<script type="module" src="./index.tsx"></script>
<div id="root"></div>
</html>
2 changes: 1 addition & 1 deletion examples/utils/scene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const CaseScene = (options: CaseSceneOptions) => {
...options,
map,
shaderCompilerPath: '/glsl_wgsl_compiler_bg.wasm',
logoVisible: false,
// logoVisible: false,
});

return new Promise<Scene>((resolve) => {
Expand Down
40 changes: 40 additions & 0 deletions packages/component/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,45 @@
# Change Log

## 2.23.3-beta.3

### Patch Changes

- Updated dependencies []:
- @antv/l7-core@2.23.3-beta.3
- @antv/l7-layers@2.23.3-beta.3
- @antv/l7-utils@2.23.3-beta.3

## 2.23.3-beta.2

### Patch Changes

- Updated dependencies []:
- @antv/l7-core@2.23.3-beta.2
- @antv/l7-layers@2.23.3-beta.2
- @antv/l7-utils@2.23.3-beta.2

## 2.23.3-beta.1

### Patch Changes

- 版本更新

- Updated dependencies []:
- @antv/l7-layers@2.23.3-beta.1
- @antv/l7-utils@2.23.3-beta.1
- @antv/l7-core@2.23.3-beta.1

## 2.23.3-beta.0

### Patch Changes

- [`8248e26`](https://github.com/antvis/L7/commit/8248e264c6cad611547c7f9730540ab0729115ac) Thanks [@lzxue](https://github.com/lzxue)! - patch 版本

- Updated dependencies [[`8248e26`](https://github.com/antvis/L7/commit/8248e264c6cad611547c7f9730540ab0729115ac)]:
- @antv/l7-layers@2.23.3-beta.0
- @antv/l7-utils@2.23.3-beta.0
- @antv/l7-core@2.23.3-beta.0

## 2.23.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/component/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/l7-component",
"version": "2.23.2",
"version": "2.24.0",
"description": "Component for L7",
"license": "MIT",
"author": "https://github.com/orgs/antvis/people",
Expand Down
39 changes: 39 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,44 @@
# Change Log

## 2.23.3-beta.3

### Patch Changes

- revert: 回滚事件系统到 hammerjs 实现,修复移除 hammerjs 后的兼容性问题

- Updated dependencies []:
- @antv/l7-utils@2.23.3-beta.3

## 2.23.3-beta.2

### Patch Changes

- fix: 修复移除 hammerjs 后的事件系统兼容性问题
- 修复 triggerHover 方法签名与接口不符,补全 lngLat 和 type 参数,解决 layer.pick() 拾取失效问题
- SceneService 补充 Press 事件监听,保持长按事件向后兼容
- amap-next: 修复 wrapper 容器定位上下文和高度初始化问题

- Updated dependencies []:
- @antv/l7-utils@2.23.3-beta.2

## 2.23.3-beta.1

### Patch Changes

- 版本更新

- Updated dependencies []:
- @antv/l7-utils@2.23.3-beta.1

## 2.23.3-beta.0

### Patch Changes

- [`8248e26`](https://github.com/antvis/L7/commit/8248e264c6cad611547c7f9730540ab0729115ac) Thanks [@lzxue](https://github.com/lzxue)! - patch 版本

- Updated dependencies [[`8248e26`](https://github.com/antvis/L7/commit/8248e264c6cad611547c7f9730540ab0729115ac)]:
- @antv/l7-utils@2.23.3-beta.0

## 2.23.2

### Patch Changes
Expand Down
3 changes: 2 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/l7-core",
"version": "2.23.2",
"version": "2.24.0",
"description": "",
"license": "MIT",
"author": "https://github.com/orgs/antvis/people",
Expand Down Expand Up @@ -31,6 +31,7 @@
},
"devDependencies": {
"@types/gl-matrix": "^2.4.5",
"@types/hammerjs": "^2.0.46",
"@types/viewport-mercator-project": "^6.1.0"
},
"publishConfig": {
Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/services/interaction/IInteractionService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export enum InteractionEvent {
export interface IInteractionTarget {
x: number;
y: number;
/** pixel 兼容 l7-draw 等库的事件格式 */
pixel?: { x: number; y: number };
lngLat: ILngLat;
type: string;
featureId?: number;
Expand Down
3 changes: 3 additions & 0 deletions packages/core/src/services/scene/SceneService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ export default class Scene extends EventEmitter implements ISceneService {
// 地图初始化之后 才能初始化 container 上的交互
this.interactionService.init();
this.interactionService.on(InteractionEvent.Drag, this.addSceneEvent.bind(this));
this.interactionService.on(InteractionEvent.Hover, this.addSceneEvent.bind(this));
this.interactionService.on(InteractionEvent.Click, this.addSceneEvent.bind(this));
this.interactionService.on(InteractionEvent.DblClick, this.addSceneEvent.bind(this));
Comment on lines +164 to +166

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

为了提升代码性能和可读性,建议避免在多处重复调用 .bind(this)。一个更好的做法是将 addSceneEvent 方法定义为箭头函数属性,这样它会自动绑定 this 上下文。

// 在 SceneService 类中,将方法定义改为箭头函数属性:
private addSceneEvent = (target: IInteractionTarget) => {
  this.emit(target.type, target);
}

// ... 然后在 init 方法中,可以直接引用,无需 .bind:
this.interactionService.on(InteractionEvent.Drag, this.addSceneEvent);
this.interactionService.on(InteractionEvent.Hover, this.addSceneEvent);
this.interactionService.on(InteractionEvent.Click, this.addSceneEvent);
this.interactionService.on(InteractionEvent.DblClick, this.addSceneEvent);

这样做可以确保只创建一个函数实例,并在所有事件监听器中复用,使代码更简洁高效。

});

/**
Expand Down
3 changes: 2 additions & 1 deletion packages/core/src/utils/shader-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ export function extractUniforms(content: string): {
export function removeDuplicateUniforms(content: string) {
const uniforms: Record<string, boolean> = {};
return content.replace(uniformRegExp, (_, type, uniformName) => {
const name = uniformName.trim();
// Strip default value syntax (e.g. "u_opacity: 1.0" -> "u_opacity")
const name = uniformName.split(':')[0].trim();
if (!uniforms[name]) {
uniforms[name] = true;
return `uniform ${type} ${name};\n`;
Expand Down
2 changes: 2 additions & 0 deletions packages/l7/.fatherrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ const umdConfig: IFatherConfig['umd'] = {
},
platform: 'browser',
targets: { ie: 11 },
// CSS 内联到 JS 中,不提取为单独文件
extractCSS: false,
externals: {
'mapbox-gl': {
root: 'mapboxgl',
Expand Down
54 changes: 54 additions & 0 deletions packages/l7/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,59 @@
# Change Log

## 2.23.3-beta.3

### Patch Changes

- Updated dependencies []:
- @antv/l7-core@2.23.3-beta.3
- @antv/l7-component@2.23.3-beta.3
- @antv/l7-layers@2.23.3-beta.3
- @antv/l7-maps@2.23.3-beta.3
- @antv/l7-scene@2.23.3-beta.3
- @antv/l7-source@2.23.3-beta.3
- @antv/l7-utils@2.23.3-beta.3

## 2.23.3-beta.2

### Patch Changes

- Updated dependencies []:
- @antv/l7-core@2.23.3-beta.2
- @antv/l7-maps@2.23.3-beta.2
- @antv/l7-component@2.23.3-beta.2
- @antv/l7-layers@2.23.3-beta.2
- @antv/l7-scene@2.23.3-beta.2
- @antv/l7-source@2.23.3-beta.2
- @antv/l7-utils@2.23.3-beta.2

## 2.23.3-beta.1

### Patch Changes

- 版本更新

- Updated dependencies []:
- @antv/l7-component@2.23.3-beta.1
- @antv/l7-layers@2.23.3-beta.1
- @antv/l7-source@2.23.3-beta.1
- @antv/l7-scene@2.23.3-beta.1
- @antv/l7-utils@2.23.3-beta.1
- @antv/l7-core@2.23.3-beta.1
- @antv/l7-maps@2.23.3-beta.1

## 2.23.3-beta.0

### Patch Changes

- Updated dependencies [[`8248e26`](https://github.com/antvis/L7/commit/8248e264c6cad611547c7f9730540ab0729115ac)]:
- @antv/l7-component@2.23.3-beta.0
- @antv/l7-layers@2.23.3-beta.0
- @antv/l7-source@2.23.3-beta.0
- @antv/l7-scene@2.23.3-beta.0
- @antv/l7-utils@2.23.3-beta.0
- @antv/l7-core@2.23.3-beta.0
- @antv/l7-maps@2.23.3-beta.0

## 2.23.2

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/l7/demo/circle.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
console.log('L7', L7);
var scene = new L7.Scene({
id: 'map',
// map: new L7.Map({
// map: new L7.GaodeMap({
// style: "dark", // 样式URL
// center: [108.6167, 19.1000],
// pitch: 0,
// zoom: 6
// })
map: new L7.Map({
map: new L7.GaodeMap({
style: 'dark', // 样式URL
center: [108.6167, 19.1],
pitch: 0,
Expand Down
4 changes: 2 additions & 2 deletions packages/l7/demo/cylinder.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<body>
<div id="map"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/7.8.3/polyfill.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/symbol-es6@0.1.2/symbol-es6.min.js"></script>
<!-- <script src="https://cdn.jsdelivr.net/npm/symbol-es6@0.1.2/symbol-es6.min.js"></script> -->

<script>
// window.forceWebGLBaseRender = true;
Expand All @@ -31,7 +31,7 @@
console.log(L7);
const scene = new L7.Scene({
id: 'map',
map: new L7.Map({
map: new L7.GaodeMap({
style: 'dark', // 样式URL
center: [108.6167, 19.1],
pitch: 0,
Expand Down
2 changes: 1 addition & 1 deletion packages/l7/demo/dot.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
console.log(L7);
const scene = new L7.Scene({
id: 'map',
map: new L7.Map({
map: new L7.GaodeMap({
style: 'dark', // 样式URL
center: [110, 19.1],
pitch: 0,
Expand Down
4 changes: 2 additions & 2 deletions packages/l7/demo/heatmap.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
console.log('L7', L7);
const scene = new L7.Scene({
id: 'map',
// map: new L7.Map({
// map: new L7.GaodeMap({
// style: "dark", // 样式URL
// center: [108.6167, 19.1000],
// pitch: 0,
// zoom: 6
// })
map: new L7.Map({
map: new L7.GaodeMap({
style: 'dark', // 样式URL
center: [108.6167, 19.1],
pitch: 0,
Expand Down
2 changes: 1 addition & 1 deletion packages/l7/demo/heatmap3d.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
console.log('L7', L7);
const scene = new L7.Scene({
id: 'map',
// map: new L7.Map({
// map: new L7.GaodeMap({
// style: "dark", // 样式URL
// center: [108.6167, 19.1000],
// pitch: 0,
Expand Down
2 changes: 1 addition & 1 deletion packages/l7/demo/image.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
console.log(L7);
const scene = new L7.Scene({
id: 'map',
map: new L7.Map({
map: new L7.GaodeMap({
style: 'dark', // 样式URL
center: [108.6167, 19.1],
pitch: 0,
Expand Down
Loading
Loading