Skip to content

Ties are cut off on raster graphics #688

@Danielku15

Description

@Danielku15

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

A late change has shown that we cut off some ties and slurs likely when rendering to raster graphics:
image

Expected Behavior

Ties and slurs should not be cut.
image

Steps To Reproduce

  1. Run test NotationLegend > repeat-bar-default
  2. Run test NotationLegend > repeat-bar-songbook

Link to jsFiddle, CodePen, Project

No response

Found in Version

1.3-alpha

Platform

Web

Environment

- **OS**: Windows 10 Pro
- **Browser**: Chrome 96

Anything else?

We currently do not consider ties as part of the layout process. This was somehow on purpose due to the nature of ties connecting two notes. The position of notes can change quite significantly, changing the space needed for ties/slurs also significantly. Ties even might be cut into two when there is a line break.

We might need to add the ties into the normal layout process to get correctly considered. At least we need to "ask" the ties how much overflow they need to be correctly displayed.

image
image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions