Skip to content

Conversation

@lzxue
Copy link
Contributor

@lzxue lzxue commented Jul 8, 2025

[English Template / 英文模板]

🤔 这个变动的性质是?

  • 新特性提交
  • 日常 bug 修复
  • 站点、文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • TypeScript 定义更新
  • 包体积优化
  • 性能优化
  • 功能增强
  • 国际化改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 工作流程
  • 版本更新
  • 其他改动(是关于什么的改动?)

🔗 相关 Issue

💡 需求背景和解决方案

📝 更新日志

语言 更新描述
🇺🇸 英文
🇨🇳 中文

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

lzxue added 18 commits July 1, 2025 11:43
- Rebuild gl package native bindings to fix webgl.node missing error
- Configure Jest to run tests serially (maxWorkers: 1) to avoid GL context conflicts
- Add memory limits and Node.js heap size increase to prevent SIGABRT crashes
- Add missing @eslint/js dependency for ESLint configuration
- All 87 test suites now pass including citybuliding layer tests

Fixes GL context creation issues in Jest environment that were causing
worker processes to crash with SIGABRT errors due to memory limitations
and concurrent GL context creation.
- Remove -actual suffix from snapshot files
- Update existing snapshot files to match current rendering output
- Clean up unused snapshot files
- Add changeset for layer relative coordinate system feature
- Mark all L7 packages as minor version bump
- Update changeset description
@changeset-bot
Copy link

changeset-bot bot commented Jul 8, 2025

🦋 Changeset detected

Latest commit: 808dff4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 12 packages
Name Type
@antv/l7-component Patch
@antv/l7-layers Patch
@antv/l7-source Patch
@antv/l7-core Patch
@antv/l7-maps Patch
@antv/l7-map Patch
@antv/l7 Patch
@antv/l7-scene Patch
@antv/l7-renderer Patch
@antv/l7-test-utils Patch
@antv/l7-three Patch
@antv/l7-utils Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@petercat-assistant
Copy link

概述

此PR通过ID移除图层,修改了LayerService.ts中的remove方法,确保在移除子图层时检查其存在性,并使用splice方法进行移除。此外,更新了多个包的版本。

变更

文件 概要
.changeset/true-lamps-repair.md 更新了多个包的版本信息。
packages/core/src/services/layer/LayerService.ts 修改了remove方法,通过ID移除图层,确保子图层存在性检查。
packages/test-utils/package.json 更新了依赖项。

// Tip: layer.layerChildren 当 layer 存在子图层的情况
if (parentLayer) {
parentLayer.layerChildren = parentLayer.layerChildren.filter((item) => item !== layer);
if (!parentLayer.layerChildren) {

Choose a reason for hiding this comment

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

确保parentLayer.layerChildren存在以避免潜在的undefined错误。

}
} else {
this.layers = this.layers.filter((item) => item !== layer);
const index = this.layers.findIndex((item) => item.id === layer.id);

Choose a reason for hiding this comment

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

确保this.layers中存在要移除的图层以避免潜在的undefined错误。

- 在着色器中对UV坐标进行X和Y轴翻转
- 解决图片绘制时的镜像翻转问题
@lzxue lzxue linked an issue Jul 10, 2025 that may be closed by this pull request
@lzxue lzxue changed the title chore: 通过ID 移除图层 chore: 通过ID 移除图层&fillimage 镜像问题 Jul 10, 2025
@lzxue lzxue merged commit 8e80487 into master Jul 10, 2025
7 checks passed
@lzxue lzxue deleted the feat_zoom_22 branch July 10, 2025 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PointLayer设置layerType:‘fillImage’图片会被镜像

2 participants