mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
refactor(editor): separate the element renders (#11461)
This commit is contained in:
@@ -1,17 +1,16 @@
|
||||
import {
|
||||
EDGELESS_TEXT_BLOCK_MIN_HEIGHT,
|
||||
EDGELESS_TEXT_BLOCK_MIN_WIDTH,
|
||||
} from '@blocksuite/affine/blocks/edgeless-text';
|
||||
import { addImages } from '@blocksuite/affine/blocks/image';
|
||||
import { fitContent, getSurfaceBlock } from '@blocksuite/affine/blocks/surface';
|
||||
import { getSurfaceBlock } from '@blocksuite/affine/blocks/surface';
|
||||
import { LightLoadingIcon } from '@blocksuite/affine/components/icons';
|
||||
import { addTree } from '@blocksuite/affine/gfx/mindmap';
|
||||
import { fitContent } from '@blocksuite/affine/gfx/shape';
|
||||
import { Bound } from '@blocksuite/affine/global/gfx';
|
||||
import type {
|
||||
MindmapElementModel,
|
||||
ShapeElementModel,
|
||||
} from '@blocksuite/affine/model';
|
||||
import {
|
||||
EDGELESS_TEXT_BLOCK_MIN_HEIGHT,
|
||||
EDGELESS_TEXT_BLOCK_MIN_WIDTH,
|
||||
EdgelessTextBlockModel,
|
||||
ImageBlockModel,
|
||||
NoteDisplayMode,
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { uploadBlobForImage } from '@blocksuite/affine/blocks/image';
|
||||
import {
|
||||
fitContent,
|
||||
getSurfaceBlock,
|
||||
SurfaceBlockModel,
|
||||
} from '@blocksuite/affine/blocks/surface';
|
||||
import { fitContent } from '@blocksuite/affine/gfx/shape';
|
||||
import { Bound, getCommonBound } from '@blocksuite/affine/global/gfx';
|
||||
import type {
|
||||
MindmapElementModel,
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
/* oxlint-disable @typescript-eslint/no-non-null-assertion */
|
||||
import {
|
||||
CanvasRenderer,
|
||||
fitContent,
|
||||
type SurfaceBlockModel,
|
||||
} from '@blocksuite/affine/blocks/surface';
|
||||
import { fitContent } from '@blocksuite/affine/gfx/shape';
|
||||
import type { Bound } from '@blocksuite/affine/global/gfx';
|
||||
import type { Color, ShapeElementModel } from '@blocksuite/affine/model';
|
||||
import { ThemeProvider } from '@blocksuite/affine/shared/services';
|
||||
|
||||
Reference in New Issue
Block a user