chore: 通过ID 移除图层&fillimage 镜像问题 - #2736
Merged
Merged
Conversation
- 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 detectedLatest commit: 808dff4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 12 packages
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 |
概述此PR通过ID移除图层,修改了 变更
|
| // Tip: layer.layerChildren 当 layer 存在子图层的情况 | ||
| if (parentLayer) { | ||
| parentLayer.layerChildren = parentLayer.layerChildren.filter((item) => item !== layer); | ||
| if (!parentLayer.layerChildren) { |
There was a problem hiding this comment.
确保parentLayer.layerChildren存在以避免潜在的undefined错误。
| } | ||
| } else { | ||
| this.layers = this.layers.filter((item) => item !== layer); | ||
| const index = this.layers.findIndex((item) => item.id === layer.id); |
There was a problem hiding this comment.
确保this.layers中存在要移除的图层以避免潜在的undefined错误。
- 在着色器中对UV坐标进行X和Y轴翻转 - 解决图片绘制时的镜像翻转问题
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.
[English Template / 英文模板]
🤔 这个变动的性质是?
🔗 相关 Issue
💡 需求背景和解决方案
📝 更新日志
☑️ 请求合并前的自查清单