Skip to content

Commit d6e4f8f

Browse files
committed
fix(edgeless): polygon menu button activated display and color selection with polygone fixed
1 parent 1f70675 commit d6e4f8f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/affine/gfx/shape/src/draggable/shape-menu.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { css, html, LitElement } from 'lit';
2424
import { property } from 'lit/decorators.js';
2525
import { when } from 'lit/directives/when.js';
2626

27+
import { PolygonTool } from '../polygon-tool';
2728
import { ShapeTool } from '../shape-tool';
2829
import { ShapeComponentConfig } from '../toolbar';
2930

@@ -125,6 +126,8 @@ export class EdgelessShapeMenu extends SignalWatcher(
125126
if (shapeName) {
126127
this._shapeName$.value = shapeName;
127128
}
129+
} else if (value && value.toolType === PolygonTool) {
130+
this._shapeName$.value = ShapeType.Polygon;
128131
}
129132
})
130133
);

0 commit comments

Comments
 (0)