@plait/draw 0.87.0-next.0 → 0.87.0
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/fesm2022/plait-draw.mjs +1 -1
- package/fesm2022/plait-draw.mjs.map +1 -1
- package/package.json +1 -1
- package/transforms/common.d.ts +1 -1
- package/transforms/index.d.ts +1 -1
- package/utils/geometry.d.ts +16 -16
- package/utils/hit.d.ts +1 -1
- package/utils/shape.d.ts +1 -1
package/fesm2022/plait-draw.mjs
CHANGED
|
@@ -3428,7 +3428,7 @@ const setTableText = (board, path, cellId, text, textHeight) => {
|
|
|
3428
3428
|
else {
|
|
3429
3429
|
const rowIdx = table.rows.findIndex((row) => row.id === cell.rowId);
|
|
3430
3430
|
const tableRow = table.rows[rowIdx];
|
|
3431
|
-
const compareHeight = tableRow.height ?? Math.max(cellHeight,
|
|
3431
|
+
const compareHeight = tableRow.height ?? Math.max(cellHeight, 0);
|
|
3432
3432
|
if (textHeight > compareHeight) {
|
|
3433
3433
|
const newRowHeight = textHeight + defaultSpace * 2;
|
|
3434
3434
|
const offset = newRowHeight - compareHeight;
|