structurizr-python icon indicating copy to clipboard operation
structurizr-python copied to clipboard

Support adding animations to static views

Open yt-ms opened this issue 4 years ago • 1 comments

Checklist

Is your feature related to a problem? Please describe it.

Following PR #77, the last remaining part of the API needed to complete the big_bank.py example is being able to add animations to static views.

Describe the solution you would like.

Mirroring the Java implementation,, we should add an add_animation() method to StaticView which accepts a variable number of elements, and copy the logic from Java. The serialisation and deserialisation of animation data has already been done, so it's just about being able to add animations programmatically.

    system_landscape_view.add_animation(internet_banking_system, customer, mainframe_banking_system, emailSystem)
    system_landscape_view.add_animation(atm)
    system_landscape_view.add_animation(customerServiceStaff, back_office_staff)

yt-ms avatar May 12 '21 07:05 yt-ms

Given animations also are supported in the (currently experimental) CustomView in Java which doesn't extend StaticView, then perhaps this should be implemented in Python as a mixin (both View and IO) which can be used by both.

yt-ms avatar May 12 '21 16:05 yt-ms