mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-06 11:59:51 +08:00
@@ -3,7 +3,7 @@ import { getSelectedRect } from '@blocksuite/affine-shared/utils';
|
||||
import { type IVec, Rect } from '@blocksuite/global/gfx';
|
||||
import {
|
||||
GfxControllerIdentifier,
|
||||
type GfxToolsFullOptionValue,
|
||||
type ToolOptionWithType,
|
||||
} from '@blocksuite/std/gfx';
|
||||
import { effect } from '@preact/signals-core';
|
||||
|
||||
@@ -22,10 +22,9 @@ import type { AffineDragHandleWidget } from '../drag-handle.js';
|
||||
*/
|
||||
export class EdgelessWatcher {
|
||||
private readonly _handleEdgelessToolUpdated = (
|
||||
newTool: GfxToolsFullOptionValue
|
||||
newTool: ToolOptionWithType
|
||||
) => {
|
||||
// @ts-expect-error GfxToolsFullOptionValue is extended in other packages
|
||||
if (newTool.type === 'default') {
|
||||
if (newTool.toolType?.toolName === 'default') {
|
||||
this.updateAnchorElement();
|
||||
} else {
|
||||
this.widget.hide();
|
||||
|
||||
Reference in New Issue
Block a user