Repository navigation
Commit a171cd5
committed
fix: render shapes unannotated by the table with na_color instead of dropping them (#710)
render_shapes joined the element to its table with how="inner", silently dropping shapes whose
instance had no table row. Points (how="left" merge) and labels (raster + na_color) keep unannotated
elements, so shapes were the inconsistent outlier (and it broke the labels<->shapes interchangeability).
Switch _join_table_for_element to how="left": all shapes survive, and the per-shape color lookup
(_extract_color_column, reindexed to the element) yields NaN -> na_color for the unannotated ones, via
the existing NaN-handling path. Fully-annotated data is unaffected (verified pixel-identical: inner == left
when nothing is dropped), so only partial-annotation output changes.
Adds a regression test (fails on the old drop behavior: 12/20 rendered; passes now: 20/20 with 8 na_color).1 parent 8d74219 commit a171cd5
2 files changed
Lines changed: 36 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
447 | | - | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
448 | 453 | | |
449 | 454 | | |
450 | 455 | | |
| |||
470 | 475 | | |
471 | 476 | | |
472 | 477 | | |
473 | | - | |
| 478 | + | |
474 | 479 | | |
475 | 480 | | |
476 | 481 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
442 | 471 | | |
443 | 472 | | |
444 | 473 | | |
| |||
0 commit comments