mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-21 20:16:26 +08:00
6052743671
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced the Edgeless Selected Rectangle widget, providing enhanced selection and interaction capabilities in edgeless mode. - Added rotation-aware resize cursors for improved usability when resizing selections. - Integrated new autocomplete panels and selection components for a smoother user experience. - **Refactor** - Modularized the Edgeless Selected Rectangle widget as a standalone package for better maintainability and integration. - Updated internal references and imports to utilize the new widget package. - **Chores** - Updated project and package configurations to include the new widget and ensure proper build and type-checking across the workspace. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
19 lines
535 B
TypeScript
19 lines
535 B
TypeScript
import { EdgelessAutoCompletePanel } from './auto-complete-panel';
|
|
import { EdgelessAutoComplete } from './edgeless-auto-complete';
|
|
import {
|
|
EDGELESS_SELECTED_RECT_WIDGET,
|
|
EdgelessSelectedRectWidget,
|
|
} from './edgeless-selected-rect';
|
|
|
|
export function effects() {
|
|
customElements.define(
|
|
'edgeless-auto-complete-panel',
|
|
EdgelessAutoCompletePanel
|
|
);
|
|
customElements.define('edgeless-auto-complete', EdgelessAutoComplete);
|
|
customElements.define(
|
|
EDGELESS_SELECTED_RECT_WIDGET,
|
|
EdgelessSelectedRectWidget
|
|
);
|
|
}
|