arthub-table 0.2.4-next.0 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arthub-table.common.js +1 -1
- package/dist/arthub-table.common.js.map +1 -1
- package/dist/arthub-table.umd.js +1 -1
- package/dist/arthub-table.umd.js.map +1 -1
- package/dist/arthub-table.umd.min.js +1 -1
- package/dist/arthub-table.umd.min.js.map +1 -1
- package/dist/types/core/viewers/RelatedTaskViewer.d.ts +31 -0
- package/package.json +1 -1
|
@@ -83,10 +83,41 @@ declare class RelatedTaskViewer implements CellViewer<RelatedTaskViewerData> {
|
|
|
83
83
|
* Draw a dashed rectangle placeholder for unloaded/missing images
|
|
84
84
|
*/
|
|
85
85
|
private drawDashedPlaceholder;
|
|
86
|
+
/**
|
|
87
|
+
* Draw the trailing overflow-indicator ellipsis with a cell-colored background block.
|
|
88
|
+
*
|
|
89
|
+
* The background uses `context.fillColor` so it always matches the cell's actual
|
|
90
|
+
* fill (hover, selection, highlight row/cell, upstream/match colors, etc.) — there
|
|
91
|
+
* is no hard-coded color and no need for hover-only logic. The block extends to the
|
|
92
|
+
* full cell height (top..bottom) so it visually "belongs" to the cell, and is wider
|
|
93
|
+
* than the ellipsis text by `bgPadX` on the left so it can occlude the trailing edge
|
|
94
|
+
* of any thumbnail/text drawn earlier.
|
|
95
|
+
*
|
|
96
|
+
* Drawn after thumbnails/text but before any post-decorations, this guarantees the
|
|
97
|
+
* ellipsis is never visually mixed with overflowing image content.
|
|
98
|
+
*/
|
|
99
|
+
private drawOverflowEllipsisWithBg;
|
|
86
100
|
/**
|
|
87
101
|
* Truncate text to fit within maxWidth, appending ellipsis if needed
|
|
88
102
|
*/
|
|
89
103
|
private truncateText;
|
|
104
|
+
/**
|
|
105
|
+
* Truncate text to fit within maxWidth WITHOUT appending an ellipsis.
|
|
106
|
+
* Used when the caller intends to draw a separate trailing overflow indicator.
|
|
107
|
+
* Returns the longest prefix whose rendered width ≤ maxWidth.
|
|
108
|
+
* Returns '' if maxWidth ≤ 0 or even one character cannot fit.
|
|
109
|
+
*/
|
|
110
|
+
private truncateTextNoEllipsis;
|
|
111
|
+
/**
|
|
112
|
+
* Draw a label that is character-truncated to fit `availableWidth` and never lets
|
|
113
|
+
* the cell go visually empty: if not even one character fits, the caller should
|
|
114
|
+
* still rely on the trailing overflow ellipsis to indicate "there is content here".
|
|
115
|
+
*
|
|
116
|
+
* Returns the X position right after the drawn (possibly truncated) label.
|
|
117
|
+
* Sets `wasTruncated` via the return tuple so caller can decide whether to draw a
|
|
118
|
+
* trailing overflow ellipsis.
|
|
119
|
+
*/
|
|
120
|
+
private drawTruncatedLabel;
|
|
90
121
|
/**
|
|
91
122
|
* Handle click events on the cell.
|
|
92
123
|
* Detects clicks on file thumbnails and triggers onFileGoToDetail callback.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arthub-table",
|
|
3
|
-
"version": "0.2.4
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "High-performance canvas-based table/grid component for Vue 3 with TypeScript support, featuring virtual scrolling, cell viewers, grouped rows, and nested grids.",
|
|
5
5
|
"main": "dist/arthub-table.common.js",
|
|
6
6
|
"module": "dist/arthub-table.umd.min.js",
|