fix: connector should remain the same when its target or source switch to other

shape type (#11369)

Fixes [BS-1431](https://linear.app/affine-design/issue/BS-1431/改变-shape-形状后,connector-丢失)
This commit is contained in:
doouding
2025-04-02 05:10:30 +00:00
parent c20514f269
commit ef76c83184
4 changed files with 118 additions and 19 deletions

View File

@@ -141,7 +141,7 @@ export const shapeToolbarConfig = {
return renderMenu({
icon: ShapeIcon(),
label: 'Switch type',
label: 'Switch shape type',
items: ShapeComponentConfig.map(item => ({
key: item.tooltip,
value: item.name,