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