Skip to content

stepping in the Component/ViewModel architecture #1754

@rickmcgeer

Description

@rickmcgeer

What would you like to achieve?
Lively Morphic had a very nice overlay on the native JavaScript timing functions -- stepping. In order to run a script on a Morph every n milliseconds, the call was simple: morph.startStepping(<scriptName>, <time in milliseconds) (the order may be wrong, I'm doing this from memory.). morph.stopStepping() stopped the stepping (of all stepping scripts).
It could have been improved (basically, UI/methods to view and control individual stepping scripts) but it was a huge improvement over the native JS calls.
The problem is that it was tied to Morph, and, in a Component/ViewModel architecture it's not clear if this is available or how to use it. So guidance is appreciated.

How are you trying to achieve that
I assume the simplest way to do this is just to attach the stepping methods to ViewModel

Alternative solutions
If applicable, what other solutions have you tried?

Additional Resources
Please provide links to any custom code that might be necessary to grasp your problem. Screenshots of custom component, etc. are also appreciated.

Version: Please paste the lively.next commit on which the problem occurred here (use the copy button of the Version Checker in the bottom left corner).

Metadata

Metadata

Assignees

No one assigned

    Labels

    📟 support inquiryQuestions that can be answered without changing code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions