Skip to content

Commit

Permalink
keep styles_action_scale / events_action_scale actions (prevent break…
Browse files Browse the repository at this point in the history
…ing changes)
  • Loading branch information
klementng committed Jul 17, 2024
1 parent 0b2ff0b commit 3883827
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ def styles_action_scale_margins(ssafile: SSAFile, style: SSAStyle, **kwargs):
return style


def styles_action_scale(ssafile: SSAFile, style: SSAStyle, **kwargs):
return styles_action_scale_margins(ssafile, style, **kwargs)


def events_action_scale_position(ssafile: SSAFile, event: SSAEvent, **kwargs):

y_ratio = float(kwargs["y_new"]) / float(kwargs["y_old"])
Expand Down Expand Up @@ -78,6 +82,12 @@ def events_action_scale_margins(ssafile: SSAFile, event: SSAEvent, **kwargs):
return event


def events_action_scale(ssafile: SSAFile, event: SSAEvent, **kwargs):
events_action_scale_margins(ssafile, event, **kwargs)
events_action_scale_position(ssafile, event, **kwargs)
return event


def styles_action_update_properties(ssafile: SSAFile, style: SSAStyle, **kwargs):
style.__dict__.update(kwargs)

Expand Down

0 comments on commit 3883827

Please sign in to comment.