mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-19 02:51:47 +08:00
refactor(editor): remove global types in edgeless (#10092)
Closes: [BS-2553](https://linear.app/affine-design/issue/BS-2553/remove-global-types-in-edgeless)
This commit is contained in:
@@ -7,7 +7,11 @@ import {
|
||||
type LocalConnectorElementModel,
|
||||
} from '@blocksuite/affine-model';
|
||||
import { ThemeProvider } from '@blocksuite/affine-shared/services';
|
||||
import type { GfxController, GfxModel } from '@blocksuite/block-std/gfx';
|
||||
import type {
|
||||
GfxController,
|
||||
GfxLocalElementModel,
|
||||
GfxModel,
|
||||
} from '@blocksuite/block-std/gfx';
|
||||
import type { IBound, IVec, IVec3 } from '@blocksuite/global/utils';
|
||||
import {
|
||||
almostEqual,
|
||||
@@ -70,9 +74,7 @@ export const ConnectorEndpointLocationsOnTriangle: IVec[] = [
|
||||
[0.25, 0.5],
|
||||
];
|
||||
|
||||
export function isConnectorWithLabel(
|
||||
model: GfxModel | BlockSuite.SurfaceLocalModel
|
||||
) {
|
||||
export function isConnectorWithLabel(model: GfxModel | GfxLocalElementModel) {
|
||||
return model instanceof ConnectorElementModel && model.hasLabel();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user