fix: 优化栅格化命令,支持父图层及其子图层的栅格化,并改进加载提示的管理
This commit is contained in:
@@ -45,6 +45,13 @@ export class RasterizeLayerCommand extends Command {
|
||||
);
|
||||
this.layer = layer;
|
||||
this.parentLayer = parent;
|
||||
|
||||
// 新增:如果有父图层,则栅格化父图层及其所有子图层
|
||||
if (this.parentLayer) {
|
||||
this.layer = this.parentLayer;
|
||||
this.layerId = this.parentLayer.id;
|
||||
}
|
||||
|
||||
this.isGroupLayer = this.layer?.children && this.layer.children.length > 0;
|
||||
|
||||
if (!this.layer) {
|
||||
|
||||
Reference in New Issue
Block a user