mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-21 20:16:26 +08:00
680f3b3006
#### PR Dependency Tree
* **PR #13464**
* **PR #13465**
* **PR #13471** 👈
* **PR #13472**
* **PR #13473**
This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* DOM rendering added for groups, mind maps and connectors so group
titles/outlines and mindmap connectors are visible on canvas.
* Shapes now support right-to-left text with proper vertical alignment.
* **Improvements**
* Connector labels scale with viewport zoom for crisper display.
* Group-related selections (including nested groups) now update visuals
consistently.
* **Performance**
* Reduced DOM churn and fewer redraws during rendering and selection
changes.
* **Refactor**
* Renderer import/export surfaces consolidated with no user-facing
behavior changes.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
import {
|
|
type ViewExtensionContext,
|
|
ViewExtensionProvider,
|
|
} from '@blocksuite/affine-ext-loader';
|
|
|
|
import { effects } from './effects';
|
|
import { MindMapIndicatorOverlay } from './indicator-overlay';
|
|
import { MindMapDragExtension } from './interactivity';
|
|
import {
|
|
MindmapDomRendererExtension,
|
|
MindmapElementRendererExtension,
|
|
} from './renderer';
|
|
import {
|
|
mindmapToolbarExtension,
|
|
shapeMindmapToolbarExtension,
|
|
} from './toolbar/config';
|
|
import { mindMapSeniorTool } from './toolbar/senior-tool';
|
|
import { MindMapInteraction, MindMapView } from './view/view';
|
|
|
|
export class MindmapViewExtension extends ViewExtensionProvider {
|
|
override name = 'affine-mindmap-gfx';
|
|
|
|
override effect(): void {
|
|
super.effect();
|
|
effects();
|
|
}
|
|
|
|
override setup(context: ViewExtensionContext) {
|
|
super.setup(context);
|
|
context.register(MindmapElementRendererExtension);
|
|
context.register(MindmapDomRendererExtension);
|
|
context.register(mindMapSeniorTool);
|
|
context.register(mindmapToolbarExtension);
|
|
context.register(shapeMindmapToolbarExtension);
|
|
context.register(MindMapView);
|
|
context.register(MindMapDragExtension);
|
|
context.register(MindMapIndicatorOverlay);
|
|
context.register(MindMapInteraction);
|
|
}
|
|
}
|