feat(docs): migrate bs docs

This commit is contained in:
DarkSky committed 2026-04-29 17:23:23 +08:00
1 parent bf6fc66943
commit 0ccfacbc29
105 files changed
+5537 -243

No files matched your search

@@ -0,0 +1,13 @@
# Surface Block
This is a container used to render graphical content.
- In documents opened with the [edgeless editor](../editors/edgeless-editor), this block is required.
- Its `elements` field can contain a large number of `CanvasElement`s. These elements use HTML5 canvas for rendering and can be interleaved with note blocks, with automatically flattening to use the fewest canvas contexts.
![context-interleaving](../../images/context-interleaving.png)
## Reference
- [`SurfaceBlockSchema`](/api/@blocksuite/blocks/variables/SurfaceBlockSchema.html)
- [`SurfaceBlockService`](/api/@blocksuite/blocks/classes/SurfaceBlockService.html)