Skip to content

Commit 8c1828f

Browse files
committed
多个玩家显示重叠范围不空心了
1 parent d89e6ca commit 8c1828f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/core/mapProjection.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export function createMapProjection(deps: MapProjectionDeps) {
6363
opacity: number;
6464
fillColor: string;
6565
fillOpacity: number;
66+
fillRule?: 'evenodd' | 'nonzero';
6667
interactive: false;
6768
smoothFactor?: number;
6869
};
@@ -896,6 +897,7 @@ export function createMapProjection(deps: MapProjectionDeps) {
896897
style.opacity,
897898
style.fillColor,
898899
style.fillOpacity,
900+
style.fillRule ?? '',
899901
style.smoothFactor ?? '',
900902
].join('|');
901903
}
@@ -1158,6 +1160,7 @@ export function createMapProjection(deps: MapProjectionDeps) {
11581160
opacity: visionLineOpacity,
11591161
fillColor: visionColor,
11601162
fillOpacity: visionFillOpacity,
1163+
fillRule: 'nonzero' as const,
11611164
interactive: false as const,
11621165
smoothFactor: 0.5,
11631166
};
@@ -1183,6 +1186,7 @@ export function createMapProjection(deps: MapProjectionDeps) {
11831186
opacity: chunkLineOpacity,
11841187
fillColor: chunkColor,
11851188
fillOpacity: chunkFillOpacity,
1189+
fillRule: 'nonzero' as const,
11861190
interactive: false as const,
11871191
};
11881192
existing.chunkArea = {

0 commit comments

Comments
 (0)