<commit_before>#TimelineJS3 API

### Events

```javascript

// Create new Timeline object
var timeline = new VCO.Timeline(...);

// Set event handlers
// event_name = string, name of the event, e.g. "change"
// data = JavaScript object containing event-specific properties listed below
timeline.on(event_name, function(data) {
    // handle event
});
```

 `back_to_start`

* uniqueid: string, id of the new current slide

Event is fired when the user clicks the control to return to the beginning of the timeline.  

`change`

* uniqueid: string, id of the new current slide

Event is fired when the current slide changes.

`color_change`

* uniqueid: string, id of the new current slide

Event is fired when the background of the current slide changes?

`dataloaded`

Event is fired after data has been loaded.

`hash_updated`

* uniqueid:  string, id of the new current slide
* hashbookmark: string, the hash

Event is fired when the hashbookmark in the url bar is updated.

`loaded`

* scale: "javascript" or "cosmological", the type of date scale
* slides: array, the processed slide data

Event is fired after story slider and time navigator have loaded.

`zoom_in`

* zoom_level: integer, current zoom level

Event is fired when user zooms in the time navigator.

`zoom_out`

* zoom_level: integer, current zoom level

Fired when user zooms out the time navigator.


### Control

`Timeline.goTo(<int index>)`

`Timeline.goToId(<string id>)`

Go to slide.

`Timeline.goToNext()`

`Timeline.goToPrev()`<commit_msg>Reformat API doc<commit_after>#TimelineJS3 API

### Events

```javascript

// Create new Timeline object
var timeline = new VCO.Timeline(...);

// Set event handlers
// event_name = string, name of the event, e.g. "change"
// data = JavaScript object containing event-specific properties listed below
timeline.on(event_name, function(data) {
    // handle event
});
```

 `back_to_start` _when user clicks control to return to beginning of timeline_
 
 `change` _when the current slide changes_

* uniqueid: string, id of the new current slide

`color_change` _when background of current slide changes_

* uniqueid: string, id of the new current slide

`dataloaded` _after data has been loaded_

`hash_updated` _when the hashbookmack in the url bar is updated_

* uniqueid:  string, id of the new current slide
* hashbookmark: string, the hash

`loaded` _after story sldie and time navigator have been loaded_

* scale: "javascript" or "cosmological", the type of date scale
* slides: array, the processed slide data

`zoom_in` _when user zooms in the time navigator_

`zoom_out` _when user zooms out the time navigator_

* zoom_level: integer, current zoom level


### Navigation

`Timeline.goTo(<int index>)`

`Timeline.goToId(<string id>)`

Go to slide.

`Timeline.goToNext()`

`Timeline.goToPrev()`
{'fraction_non_alphanumeric': 0.08862105636299185, 'fraction_numerical': 0.0007089684509039348, 'mean_word_length': 4.34469696969697, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5223590', 'n_tokens_mistral': 881, 'n_tokens_neox': 852, 'n_words': 359}