@univerjs/sheets v0.5.0-beta.1Docs


Interface: ISelectionStyle

https://support.microsoft.com/en-us/office/select-cell-contents-in-excel-23f64223-2b6b-453a-8688-248355f10fa9

Properties

PropertyTypeDescriptionDefined in
autofillSize?numberhttps://support.microsoft.com/en-us/office/copy-a-formula-by-dragging-the-fill-handle-in-excel-for-mac-dd928259-622b-473f-9a33-83aa1a63e218 Whether to show the drop-down fill button at the bottom right corner of the selection.submodules/univer/packages/sheets/src/basics/selection.ts:109
autofillStroke?string-submodules/univer/packages/sheets/src/basics/selection.ts:111
autofillStrokeWidth?number-submodules/univer/packages/sheets/src/basics/selection.ts:110
columnHeaderFill?string-submodules/univer/packages/sheets/src/basics/selection.ts:127
columnHeaderStroke?string-submodules/univer/packages/sheets/src/basics/selection.ts:128
columnHeaderStrokeWidth?number-submodules/univer/packages/sheets/src/basics/selection.ts:129
expandCornerSize?number-submodules/univer/packages/sheets/src/basics/selection.ts:131
fillstringThe fill color inside the selection. It needs to have a level of transparency, otherwise content in the covered area of the selection will be obscured.submodules/univer/packages/sheets/src/basics/selection.ts:83
id?stringAssign an ID to a selection area. The current scenario is to identify the formula string corresponding to the selection areasubmodules/univer/packages/sheets/src/basics/selection.ts:61
isAnimationDash?booleanEnable ‘marching ants’ animationsubmodules/univer/packages/sheets/src/basics/selection.ts:78
rowHeaderFill?stringThe color of the row title highlight. A level of transparency should be set to avoid covering the row title content.submodules/univer/packages/sheets/src/basics/selection.ts:117
rowHeaderStroke?stringThe color of the bottom border of the row title.submodules/univer/packages/sheets/src/basics/selection.ts:121
rowHeaderStrokeWidth?numberThe color of the bottom border of the row title.submodules/univer/packages/sheets/src/basics/selection.ts:125
strokestringThe color of the selection border.submodules/univer/packages/sheets/src/basics/selection.ts:69
strokeDash?numberThe dashed line of the selection border. Here, the dashed line is a numerical value, different from the canvas dashed line setting. It is implemented internally as [0, strokeDash]. Setting it to 8 will look more aesthetically pleasing.submodules/univer/packages/sheets/src/basics/selection.ts:73
strokeWidthnumberThe volume of the selection border determines the thickness of the selection bordersubmodules/univer/packages/sheets/src/basics/selection.ts:65
widgetsISelectionWidgetConfigThe eight touch points of the selection. You can refer to Excel’s formula and chart selections, which allow you to manually adjust the size of the selection. Univer has four more touch points (up, down, left, and right) than Excel. https://support.microsoft.com/en-us/office/select-data-for-a-chart-5fca57b7-8c52-4e09-979a-631085113862submodules/univer/packages/sheets/src/basics/selection.ts:90
widgetSizenumberThe volume of the touch points.submodules/univer/packages/sheets/src/basics/selection.ts:94
widgetStroke?stringThe color of the touch points.submodules/univer/packages/sheets/src/basics/selection.ts:102
widgetStrokeWidth?numberThe thickness of the border of the touch pointssubmodules/univer/packages/sheets/src/basics/selection.ts:98