| 69 | } |
| 70 | |
| 71 | DisplayOffset SessionManager::sourceDisplayOffset(DatasetId dataset_id) const { |
| 72 | // The per-source ALIGNMENT shift only (display_time = raw_time - offset): the |
| 73 | // dataset's TimeDomain offset, which is exactly what the Source Timeline edits. |
| 74 | // The global "Use time offset" reference is NOT folded in here (see |
| 75 | // displayOffset), so a Timeline drag round-trips without double-counting and |
| 76 | // the bars stay put when the global frame is toggled. |
| 77 | return DisplayOffset{Duration{datasetDomainDisplayOffset(dataset_id)}}; |
| 78 | } |
| 79 | |
| 80 | DisplayOffset SessionManager::displayOffset(DatasetId dataset_id) const { |
| 81 | // Total display shift for the display axis = per-source alignment + the global |
no outgoing calls