diff --git a/HISTORY.md b/HISTORY.md index 343f0f39..cea287db 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -14,6 +14,7 @@ http://visjs.org ### Timeline +- Implemented option `multiselect`, which is false by default. - Added method `setData({groups: groups, items: items})`. - Fixed range items not being displayed smaller than 10 pixels (twice the padding). In order to have overflowing text, one should now apply css style @@ -27,6 +28,10 @@ http://visjs.org - Renamed option `animate` to `animation`, and changed it to be either a boolean or an object `{duration: number, easingFunction: string}`. +### Graph2d + +- Fixed #716: Height of graph `2px` too large when configuring a fixed height. + ### Network - Rebuilt the cluster system diff --git a/docs/timeline.html b/docs/old_timeline.html similarity index 100% rename from docs/timeline.html rename to docs/old_timeline.html diff --git a/docs/timeline/index.html b/docs/timeline/index.html index c97d81ef..2928adcc 100644 --- a/docs/timeline/index.html +++ b/docs/timeline/index.html @@ -447,7 +447,7 @@ var options = { The following options are available.

- +
@@ -485,39 +485,34 @@ var options = { If value is 'all' then each field defined on the timeline item will become a data- attribute. - - - + + - - - + + - - - + + - - - + + - - - + + @@ -611,36 +606,32 @@ var options = { - - + + - - - + + - - - + + - - - + + - - - + + @@ -688,6 +679,16 @@ var options = { + + + + + + + @@ -742,27 +743,26 @@ var options = { - - + + - - - + + - - - + + + @@ -834,8 +834,14 @@ var options = { - - + + + + + + + + - - - + +
Name Type
editable
editable boolean | Object false If true, the items in the timeline can be manipulated. Only applicable when option selectable is true. See also the callbacks onAdd, onUpdate, onMove, and onRemove. When editable is an object, one can enable or disable individual manipulation actions. See section Editing Items for a detailed explanation.
editable.add
editable.remove
editable.updateGroup
editable.updateTime
margin
margin number | Object Object When a number, applies the margin to margin.axis, margin.item.horizontal, and margin.item.vertical.
margin.axis
margin.item
margin.item.horizontal
margin.item.vertical
multiselectbooleanfalse + If true, multiple items can be selected using ctrl+click, shift+click, or by holding items. + Only applicable when option selectable is true. +
onAdd function
orientation
orientation String | Object 'bottom' Orientation of the timelines axis and items. When orientation is a string, the value is applied to both items and axis. Can be 'top', 'bottom' (default), or 'both'.
orientation.axis
orientation.item
selectable booleanA template function used to generate the contents of the items. The function is called by the Timeline with an items data as argument, and must return HTML code as result. When the option template is specified, the items do not need to have a field content. See section Templates for a detailed explanation.
timeAxis.scale
timeAxisObjectObjectSpecify a fixed scale and step size for the time axis.
timeAxis.step