mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 06:16:59 +08:00
refactor(editor): add gfx entry in bs global package (#10612)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Point } from '@blocksuite/global/utils';
|
||||
import { Point } from '@blocksuite/global/gfx';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
describe('Point', () => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { DatabaseBlockModel, ListBlockModel } from '@blocksuite/affine-model';
|
||||
import type { BlockComponent } from '@blocksuite/block-std';
|
||||
import { type Point, Rect } from '@blocksuite/global/utils';
|
||||
import { type Point, Rect } from '@blocksuite/global/gfx';
|
||||
import type { BlockModel } from '@blocksuite/store';
|
||||
|
||||
import { BLOCK_CHILDREN_CONTAINER_PADDING_LEFT } from '../../consts/index.js';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { DatabaseBlockModel } from '@blocksuite/affine-model';
|
||||
import { BLOCK_ID_ATTR } from '@blocksuite/block-std';
|
||||
import type { Point } from '@blocksuite/global/utils';
|
||||
import type { Point } from '@blocksuite/global/gfx';
|
||||
import type { BlockModel } from '@blocksuite/store';
|
||||
|
||||
import { getRectByBlockComponent } from '../dom/index.js';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { BlockComponent } from '@blocksuite/block-std';
|
||||
import type { Rect } from '@blocksuite/global/utils';
|
||||
import type { Rect } from '@blocksuite/global/gfx';
|
||||
import type { BlockModel } from '@blocksuite/store';
|
||||
|
||||
export interface EditingState {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { NoteBlockModel, RootBlockModel } from '@blocksuite/affine-model';
|
||||
import { BLOCK_ID_ATTR, type BlockComponent } from '@blocksuite/block-std';
|
||||
import { SurfaceBlockModel } from '@blocksuite/block-std/gfx';
|
||||
import { clamp, type Point, type Rect } from '@blocksuite/global/utils';
|
||||
import { clamp, type Point, type Rect } from '@blocksuite/global/gfx';
|
||||
import type { BlockModel } from '@blocksuite/store';
|
||||
|
||||
import { BLOCK_CHILDREN_CONTAINER_PADDING_LEFT } from '../../consts/index.js';
|
||||
|
||||
@@ -3,7 +3,7 @@ import type { GfxBlockElementModel, GfxModel } from '@blocksuite/block-std/gfx';
|
||||
import {
|
||||
deserializeXYWH,
|
||||
getQuadBoundWithRotation,
|
||||
} from '@blocksuite/global/utils';
|
||||
} from '@blocksuite/global/gfx';
|
||||
import type { BlockModel } from '@blocksuite/store';
|
||||
|
||||
export function getSelectedRect(selected: GfxModel[]): DOMRect {
|
||||
|
||||
Reference in New Issue
Block a user