Skip to content

Commit

Permalink
fix: 多区域多边形暂时用位图
Browse files Browse the repository at this point in the history
  • Loading branch information
army8735 committed Jan 2, 2025
1 parent 0e47f32 commit 1610752
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/format/psd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ async function convertItem(layer: Layer, w: number, h: number) {
},
} as JText;
}
else if (layer.vectorOrigination && layer.vectorOrigination.keyDescriptorList.length && !layer.vectorOrigination.keyDescriptorList[0].keyShapeInvalidated) {
else if (layer.vectorOrigination && layer.vectorOrigination.keyDescriptorList.length === 1 && !layer.vectorOrigination.keyDescriptorList[0].keyShapeInvalidated) {
const { vectorFill, vectorStroke, vectorOrigination: { keyDescriptorList } } = layer;
const fill: Array<string | number[]> = [];
const fillEnable: boolean[] = [];
Expand Down Expand Up @@ -684,7 +684,7 @@ async function convertItem(layer: Layer, w: number, h: number) {
}
});
return {
tagName: keyDescriptorList.length > 1 ? TAG_NAME.SHAPE_GROUP : TAG_NAME.POLYLINE,
tagName: TAG_NAME.POLYLINE,
props: {
uuid: uuid.v4(),
name,
Expand Down

0 comments on commit 1610752

Please sign in to comment.