Commit 23ab492
authored
multiple inside guide box with different position (#6210)
* multiple inside guide box with different position
* merge guide legends depend on `legend.position.inside` only
* fix inside legend justification
* no inside guide box if no inside guide legends
* add `guide-box-index` when there is no inside legends
* fix inside guide box area
* manage position in `Guides$assemble()`
* revert
* revert
* revert
* fix inside legend coordinates
* fix test error
* no need to prepare inside legends when empty
* allow set the inside justification for each legend
* test multiple inside legends with different positions
* fix R CMD check error
* code notes
* Update R/guides-.R
Co-authored-by: Teun van den Brand <[email protected]>
* apply suggestion
Co-authored-by: Teun van den Brand <[email protected]>
* avoid modify package_box
* accept snapshot
* Update R/guides-.R
Co-authored-by: Teun van den Brand <[email protected]>
* accept the suggestion
* new bullet
* try to linearise logic
* tweak formatting1 parent 73b4119 commit 23ab492
File tree
4 files changed
+187
-25
lines changed- R
- tests/testthat
- _snaps/guides
4 files changed
+187
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
4 | 8 | | |
5 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
474 | | - | |
| 474 | + | |
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
| |||
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
488 | 495 | | |
489 | 496 | | |
490 | 497 | | |
491 | 498 | | |
492 | | - | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
493 | 502 | | |
494 | 503 | | |
495 | 504 | | |
496 | | - | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
497 | 535 | | |
498 | 536 | | |
499 | 537 | | |
500 | 538 | | |
501 | 539 | | |
502 | 540 | | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
509 | 571 | | |
510 | 572 | | |
511 | 573 | | |
512 | | - | |
513 | | - | |
514 | | - | |
| 574 | + | |
515 | 575 | | |
516 | 576 | | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | 577 | | |
525 | 578 | | |
526 | 579 | | |
| |||
529 | 582 | | |
530 | 583 | | |
531 | 584 | | |
532 | | - | |
| 585 | + | |
533 | 586 | | |
534 | 587 | | |
535 | 588 | | |
536 | | - | |
537 | | - | |
| 589 | + | |
538 | 590 | | |
539 | 591 | | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
540 | 595 | | |
541 | 596 | | |
542 | 597 | | |
| |||
699 | 754 | | |
700 | 755 | | |
701 | 756 | | |
702 | | - | |
703 | 757 | | |
704 | 758 | | |
705 | 759 | | |
| |||
Lines changed: 85 additions & 0 deletions
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
285 | 304 | | |
286 | 305 | | |
287 | 306 | | |
| |||
0 commit comments