L-Sun
2025-03-19 03:35:05 +00:00
parent a118cbd036
commit 68bc2db560
@@ -1,6 +1,5 @@
import { import {
FrameBlockModel, FrameBlockModel,
GroupElementModel,
ImageBlockModel, ImageBlockModel,
type NoteBlockModel, type NoteBlockModel,
type RootBlockModel, type RootBlockModel,
@@ -26,6 +25,7 @@ import {
type GfxController, type GfxController,
GfxControllerIdentifier, GfxControllerIdentifier,
type GfxPrimitiveElementModel, type GfxPrimitiveElementModel,
isGfxGroupCompatibleModel,
} from '@blocksuite/block-std/gfx'; } from '@blocksuite/block-std/gfx';
import { BlockSuiteError, ErrorCode } from '@blocksuite/global/exceptions'; import { BlockSuiteError, ErrorCode } from '@blocksuite/global/exceptions';
import type { IBound } from '@blocksuite/global/gfx'; import type { IBound } from '@blocksuite/global/gfx';
@@ -525,8 +525,8 @@ export class ExportManager {
if (surfaces?.length) { if (surfaces?.length) {
const surfaceElements = surfaces.flatMap(element => const surfaceElements = surfaces.flatMap(element =>
element instanceof GroupElementModel isGfxGroupCompatibleModel(element)
? (element.childElements.filter( ? (element.descendantElements.filter(
el => el instanceof SurfaceElementModel el => el instanceof SurfaceElementModel
) as SurfaceElementModel[]) ) as SurfaceElementModel[])
: element : element