refactor(editor): add gfx turbo renderer package (#10745)

The `ViewportTurboRendererExtension` is now extracted from `@blocksuite/affine-shared` to `@blocksuite/affine-gfx-turbo-renderer` with minimal dependencies, mirroring the gfx text package in #10378.
This commit is contained in:
doodlewind
2025-03-11 03:21:52 +00:00
parent 77e4b9aa8e
commit ad36a9de35
21 changed files with 80 additions and 11 deletions

View File

@@ -37,6 +37,7 @@
"@blocksuite/affine-fragment-frame-panel": "workspace:*",
"@blocksuite/affine-fragment-outline": "workspace:*",
"@blocksuite/affine-gfx-text": "workspace:*",
"@blocksuite/affine-gfx-turbo-renderer": "workspace:*",
"@blocksuite/affine-model": "workspace:*",
"@blocksuite/affine-rich-text": "workspace:*",
"@blocksuite/affine-shared": "workspace:*",
@@ -106,6 +107,7 @@
"./fragments/frame-panel": "./src/fragments/frame-panel.ts",
"./fragments/outline": "./src/fragments/outline.ts",
"./gfx/text": "./src/gfx/text.ts",
"./gfx/turbo-renderer": "./src/gfx/turbo-renderer.ts",
"./components/block-selection": "./src/components/block-selection.ts",
"./components/block-zero-width": "./src/components/block-zero-width.ts",
"./components/caption": "./src/components/caption.ts",

View File

@@ -0,0 +1 @@
export * from '@blocksuite/affine-gfx-turbo-renderer';

View File

@@ -1 +0,0 @@
export * from '@blocksuite/affine-shared/viewport-renderer';

View File

@@ -31,6 +31,7 @@
{ "path": "../fragments/fragment-frame-panel" },
{ "path": "../fragments/fragment-outline" },
{ "path": "../gfx/text" },
{ "path": "../gfx/turbo-renderer" },
{ "path": "../model" },
{ "path": "../rich-text" },
{ "path": "../shared" },