Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
chore: remove unused code (#5683)
wpxp123456c33ea1e9e24c
diff --git a/packages/sheets-filter-ui/src/views/render-modules/sheets-filter.render-controller.ts b/packages/sheets-filter-ui/src/views/render-modules/sheets-filter.render-controller.tsindex 198f7ff874..9247ceb7a6 100644--- a/packages/sheets-filter-ui/src/views/render-modules/sheets-filter.render-controller.ts+++ b/packages/sheets-filter-ui/src/views/render-modules/sheets-filter.render-controller.ts@@ -14,13 +14,13 @@* limitations under the License.*/-import type { ICommandInfo, IDisposable, IRange, Workbook } from '@univerjs/core';+import type { IDisposable, IRange, Workbook } from '@univerjs/core';import type { IRenderContext, IRenderModule, SpreadsheetSkeleton } from '@univerjs/engine-render';import type { ISheetCommandSharedParams } from '@univerjs/sheets';import type { FilterModel } from '@univerjs/sheets-filter';import type { ISheetsFilterButtonShapeProps } from '../widgets/filter-button.shape';import { CommandType, fromCallback, ICommandService, Inject, Injector, InterceptorEffectEnum, RxDisposable, ThemeService, VerticalAlign } from '@univerjs/core';-import { INTERCEPTOR_POINT, SetRangeValuesMutation, SetVerticalTextAlignCommand, SheetInterceptorService } from '@univerjs/sheets';+import { INTERCEPTOR_POINT, SetRangeValuesMutation, SheetInterceptorService } from '@univerjs/sheets';import { FILTER_MUTATIONS, SheetsFilterService } from '@univerjs/sheets-filter';import { attachSelectionWithCoord, getCoordByCell, ISheetSelectionRenderService, SelectionControl, SheetSkeletonManagerService } from '@univerjs/sheets-ui';@@ -124,39 +124,6 @@ export class SheetsFilterRenderController extends RxDisposable implements IRende});}- private _initCommandExecuted() {- this.disposeWithMe(- this._commandService.onCommandExecuted((command: ICommandInfo) => {- if (command.id !== SetVerticalTextAlignCommand.id) {- return;- }-- const { unit: workbook, unitId } = this._context;- const worksheetId = workbook.getActiveSheet()?.getSheetId() || '';- const skeleton = this._sheetSkeletonManagerService.getCurrentSkeleton();- const filterModel = this._sheetsFilterService.getFilterModel(unitId, worksheetId) ?? undefined;- if (!skeleton) {- return;- }- const renderParams: ISheetsFilterRenderParams = {- unitId,- worksheetId,- filterModel,- range: filterModel?.getRange(),- skeleton,- };-- this._disposeRendering();- if (!renderParams || !renderParams.range) {- return;- }-- this._renderRange(renderParams.range, renderParams.skeleton);- this._renderButtons(renderParams as Required<ISheetsFilterRenderParams>);- })- );- }-private _renderRange(range: IRange, skeleton: SpreadsheetSkeleton): void {const { scene } = this._context;const { rowHeaderWidth, columnHeaderHeight } = skeleton;