@univerjs/sheets v0.4.2 • Docs
Interface: ISelectionStyle
Properties
Property | Type | Description | Defined in |
---|---|---|---|
AutofillSize? | number | - | packages/sheets/src/basics/selection.ts:109 (opens in a new tab) |
AutofillStroke? | string | - | packages/sheets/src/basics/selection.ts:111 (opens in a new tab) |
AutofillStrokeWidth? | number | - | packages/sheets/src/basics/selection.ts:110 (opens in a new tab) |
columnHeaderFill? | string | - | packages/sheets/src/basics/selection.ts:135 (opens in a new tab) |
columnHeaderStroke? | string | - | packages/sheets/src/basics/selection.ts:136 (opens in a new tab) |
columnHeaderStrokeWidth? | number | - | packages/sheets/src/basics/selection.ts:137 (opens in a new tab) |
expandCornerSize? | number | - | packages/sheets/src/basics/selection.ts:139 (opens in a new tab) |
fill | string | The 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. | packages/sheets/src/basics/selection.ts:83 (opens in a new tab) |
hasAutoFill | boolean | https://support.microsoft.com/en-us/office/copy-a-formula-by-dragging-the-fill-handle-in-excel-for-mac-dd928259-622b-473f-9a33-83aa1a63e218 (opens in a new tab) Whether to show the drop-down fill button at the bottom right corner of the selection. | packages/sheets/src/basics/selection.ts:108 (opens in a new tab) |
hasColumnHeader? | boolean | The setting of column title highlight is similar to that of row title. | packages/sheets/src/basics/selection.ts:134 (opens in a new tab) |
hasRowHeader? | boolean | Whether to synchronize the display of row title highlights, the highlighting range is consistent with the horizontal range of the selection. | packages/sheets/src/basics/selection.ts:116 (opens in a new tab) |
id? | string | Assign an ID to a selection area. The current scenario is to identify the formula string corresponding to the selection area | packages/sheets/src/basics/selection.ts:61 (opens in a new tab) |
isAnimationDash? | boolean | Enable 'marching ants' animation | packages/sheets/src/basics/selection.ts:78 (opens in a new tab) |
rowHeaderFill? | string | The color of the row title highlight. A level of transparency should be set to avoid covering the row title content. | packages/sheets/src/basics/selection.ts:121 (opens in a new tab) |
rowHeaderStroke? | string | The color of the bottom border of the row title. | packages/sheets/src/basics/selection.ts:125 (opens in a new tab) |
rowHeaderStrokeWidth? | number | The color of the bottom border of the row title. | packages/sheets/src/basics/selection.ts:129 (opens in a new tab) |
stroke | string | The color of the selection border. | packages/sheets/src/basics/selection.ts:69 (opens in a new tab) |
strokeDash? | number | The 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. | packages/sheets/src/basics/selection.ts:73 (opens in a new tab) |
strokeWidth | number | The volume of the selection border determines the thickness of the selection border | packages/sheets/src/basics/selection.ts:65 (opens in a new tab) |
widgetSize? | number | The volume of the touch points. | packages/sheets/src/basics/selection.ts:94 (opens in a new tab) |
widgetStroke? | string | The color of the touch points. | packages/sheets/src/basics/selection.ts:102 (opens in a new tab) |
widgetStrokeWidth? | number | The thickness of the border of the touch points | packages/sheets/src/basics/selection.ts:98 (opens in a new tab) |
widgets | ISelectionWidgetConfig | The 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-631085113862 (opens in a new tab) | packages/sheets/src/basics/selection.ts:90 (opens in a new tab) |