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: change variable naming (#2937)
ybzkyca866c18eb14
diff --git a/packages/sheets-ui/src/controllers/utils/selections-tools.ts b/packages/sheets-ui/src/controllers/utils/selections-tools.tsindex ab9b0bc0a2..f6d3b52c64 100644--- a/packages/sheets-ui/src/controllers/utils/selections-tools.ts+++ b/packages/sheets-ui/src/controllers/utils/selections-tools.ts@@ -38,9 +38,9 @@ export function getSheetSelectionsDisabled$(accessor: IAccessor) {const subUnitId = sheet.getSheetId();const selectionRanges = selection.map((sel) => sel.range);- const withPivot = mergeCellController.interceptor.fetchThroughInterceptors(MERGE_CELL_INTERCEPTOR_CHECK)(false, selectionRanges);+ const disableResByInterceptor = mergeCellController.interceptor.fetchThroughInterceptors(MERGE_CELL_INTERCEPTOR_CHECK)(false, selectionRanges);- if (withPivot) {+ if (disableResByInterceptor) {return true;}@@ -49,10 +49,10 @@ export function getSheetSelectionsDisabled$(accessor: IAccessor) {if (selection.length < 2) {const range = selection[0].range;- const hasLap = subUnitRuleRange.some((ruleRange) => {+ const rangeIsOverlap = subUnitRuleRange.some((ruleRange) => {return Rectangle.intersects(ruleRange, range) && !Rectangle.contains(ruleRange, range);});- return hasLap;+ return rangeIsOverlap;}for (let i = 0; i < selection.length; i++) {