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
fix(sheet): selection aux size and background (#920)
Univer37246e27eaf4
diff --git a/packages/sheets-formula/src/controllers/prompt.controller.ts b/packages/sheets-formula/src/controllers/prompt.controller.tsindex cbee20b6ca..e450935bd5 100644--- a/packages/sheets-formula/src/controllers/prompt.controller.ts+++ b/packages/sheets-formula/src/controllers/prompt.controller.ts@@ -1412,7 +1412,13 @@ export class PromptController extends Disposable {this._syncToEditor(sequenceNodes, node.endIndex + 1);- controlSelection.update(toRange);+ controlSelection.update(+ toRange,+ undefined,+ undefined,+ undefined,+ this._selectionRenderService.convertCellRangeToInfo(primary)+ );}private _refreshFormulaAndCellEditor() {diff --git a/packages/sheets/src/basics/selection.ts b/packages/sheets/src/basics/selection.tsindex 9c9c0b8bed..e40f27482e 100644--- a/packages/sheets/src/basics/selection.ts+++ b/packages/sheets/src/basics/selection.ts@@ -25,7 +25,7 @@ import type {import { ColorKit, makeCellRangeToRangeData } from '@univerjs/core';import { getCellInfoInMergeData } from '@univerjs/engine-render';-export const SELECTION_CONTROL_BORDER_BUFFER_WIDTH = 1; // The draggable range of the selection is too thin, making it easy for users to miss. Therefore, a buffer gap is provided to make it easier for users to select.+export const SELECTION_CONTROL_BORDER_BUFFER_WIDTH = 1.5; // The draggable range of the selection is too thin, making it easy for users to miss. Therefore, a buffer gap is provided to make it easier for users to select.export const SELECTION_CONTROL_BORDER_BUFFER_COLOR = 'rgba(255,255,255, 0.01)';