Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor JoeGermuska

    (@joegermuska)

    As it’s written, the TimelineJS WP plugin doesn’t provide a reference to the Timeline which is created. There are a few reasons why this is pretty hard to change, and these are the kinds of reasons that have us working on a rewrite of TimelineJS, known as TimelineJS3 (see https://timeline3.knightlab.com/).

    TimelineJS3 will be in “beta” in a few weeks. We haven’t yet decided how we’re going to introduce the new version of Timeline via the WordPress plugin. We may release a new plugin, to reduce risk of surprise in changing people to the new Timeline. We’ll post something in this forum when we have that sorted out.

    Thread Starter amurray22

    (@amurray22)

    Hi Joe,

    Thanks for the reply. Would this be possible to go this if I was using your code directly? Is this something that will be more possible with the V3 release?

    Thanks
    Andy

    Plugin Contributor JoeGermuska

    (@joegermuska)

    If you use the code directly *and* instantiate the Timeline yourself (instead of using the “createStoryJS” function, it might work, but honestly, I came to TimelineJS after it was mostly written and I have had minimal enthusiasm for tracing all of the code paths.

    In general, we’d like for TimelineJS3 to support this kind of thing. If you have a reference to a timeline object, you can use its ‘current_id’ property to know which is the current slide, so you can do this:

    timeline.getSlideId(timeline.current_id) to get the Slide object for the current slide. Before this all goes into full release, that method name will definitely change to getSlideById, and maybe we’ll add getCurrentSlide()

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Indication of Currently Displayed Event’ is closed to new replies.