Update docs for events.condition options

This commit is contained in:
Peter Robins
2014-06-20 14:15:52 -04:00
parent 71da6603cb
commit 68fcba6e35
+39 -27
View File
@@ -1570,8 +1570,9 @@ olx.interaction.DragBoxOptions;
/** /**
* A conditional modifier (i.e. Shift key) that determines if the interaction is * A function that takes an {@link ol.MapBrowserEvent} and returns a boolean
* active or not, default is always. * to indicate whether that event should be handled.
* Default is {@link ol.events.condition.always}.
* @type {ol.events.ConditionType|undefined} * @type {ol.events.ConditionType|undefined}
*/ */
olx.interaction.DragBoxOptions.prototype.condition; olx.interaction.DragBoxOptions.prototype.condition;
@@ -1606,8 +1607,9 @@ olx.interaction.DragRotateAndZoomOptions;
/** /**
* A conditional modifier (i.e. Shift key) that determines if the interaction is * A function that takes an {@link ol.MapBrowserEvent} and returns a boolean
* active or not, default is shify key. * to indicate whether that event should be handled.
* Default is {@link ol.events.condition.shiftKeyOnly}.
* @type {ol.events.ConditionType|undefined} * @type {ol.events.ConditionType|undefined}
*/ */
olx.interaction.DragRotateAndZoomOptions.prototype.condition; olx.interaction.DragRotateAndZoomOptions.prototype.condition;
@@ -1621,8 +1623,9 @@ olx.interaction.DragRotateOptions;
/** /**
* A conditional modifier (i.e. Shift key) that determines if the interaction is * A function that takes an {@link ol.MapBrowserEvent} and returns a boolean
* active or not, default is both shift and alt keys. * to indicate whether that event should be handled.
* Default is {@link ol.events.condition.altShiftKeysOnly}.
* @type {ol.events.ConditionType|undefined} * @type {ol.events.ConditionType|undefined}
*/ */
olx.interaction.DragRotateOptions.prototype.condition; olx.interaction.DragRotateOptions.prototype.condition;
@@ -1637,8 +1640,9 @@ olx.interaction.DragZoomOptions;
/** /**
* A conditional modifier (i.e. Shift key) that determines if the interaction is * A function that takes an {@link ol.MapBrowserEvent} and returns a boolean
* active or not, default is shift key. * to indicate whether that event should be handled.
* Default is {@link ol.events.condition.shiftKeyOnly}.
* @type {ol.events.ConditionType|undefined} * @type {ol.events.ConditionType|undefined}
*/ */
olx.interaction.DragZoomOptions.prototype.condition; olx.interaction.DragZoomOptions.prototype.condition;
@@ -1717,9 +1721,9 @@ olx.interaction.DrawOptions.prototype.geometryName;
/** /**
* A conditional modifier (e.g. shift key) that determines if the interaction is * A function that takes an {@link ol.MapBrowserEvent} and returns a boolean
* active (i.e. a click adds a vertex) or not. By default, a click with no modifier * to indicate whether that event should be handled.
* keys adds a vertex. * By default {@link ol.events.condition.noModifierKeys} adds a vertex.
* @type {ol.events.ConditionType|undefined} * @type {ol.events.ConditionType|undefined}
*/ */
olx.interaction.DrawOptions.prototype.condition; olx.interaction.DrawOptions.prototype.condition;
@@ -1734,8 +1738,10 @@ olx.interaction.KeyboardPanOptions;
/** /**
* A conditional modifier (i.e. Shift key) that determines if the interaction is * A function that takes an {@link ol.MapBrowserEvent} and returns a boolean
* active or not, default is no modifiers. * to indicate whether that event should be handled.
* Default is {@link ol.events.condition.noModifierKeys} and
* {@link ol.events.condition.targetNotEditable}.
* @type {ol.events.ConditionType|undefined} * @type {ol.events.ConditionType|undefined}
*/ */
olx.interaction.KeyboardPanOptions.prototype.condition; olx.interaction.KeyboardPanOptions.prototype.condition;
@@ -1765,8 +1771,9 @@ olx.interaction.KeyboardZoomOptions.prototype.duration;
/** /**
* A conditional modifier (i.e. Shift key) that determines if the interaction is * A function that takes an {@link ol.MapBrowserEvent} and returns a boolean
* active or not, default is no modifiers. * to indicate whether that event should be handled.
* Default is {@link ol.events.condition.targetNotEditable}.
* @type {ol.events.ConditionType|undefined} * @type {ol.events.ConditionType|undefined}
*/ */
olx.interaction.KeyboardZoomOptions.prototype.condition; olx.interaction.KeyboardZoomOptions.prototype.condition;
@@ -1790,8 +1797,10 @@ olx.interaction.ModifyOptions;
/** /**
* Condition that determines which event results in a vertex deletion. Default * A function that takes an {@link ol.MapBrowserEvent} and returns a boolean
* is a `singleclick` event with no modifier keys. * to indicate whether that event should be handled.
* By default, {@link ol.events.condition.singleClick} with
* {@link ol.events.condition.noModifierKeys} results in a vertex deletion.
* @type {ol.events.ConditionType|undefined} * @type {ol.events.ConditionType|undefined}
*/ */
olx.interaction.ModifyOptions.prototype.deleteCondition; olx.interaction.ModifyOptions.prototype.deleteCondition;
@@ -1874,18 +1883,19 @@ olx.interaction.SelectOptions;
/** /**
* A conditional modifier (e.g. alt key) that determines if the feature is added * A function that takes an {@link ol.MapBrowserEvent} and returns a boolean
* to the current selection. By default, this is never. Note that the default * to indicate whether that event should be handled.
* toggle condition allows features to be added. * By default, this is {@link ol.events.condition.never}, though note that the
* default toggle condition allows features to be added.
* @type {ol.events.ConditionType|undefined} * @type {ol.events.ConditionType|undefined}
*/ */
olx.interaction.SelectOptions.prototype.addCondition; olx.interaction.SelectOptions.prototype.addCondition;
/** /**
* A conditional modifier (e.g. shift key) that determines if the interaction is * A function that takes an {@link ol.MapBrowserEvent} and returns a boolean
* active (i.e. selection occurs) or not. By default, a click with no modifier * to indicate whether that event should be handled.
* keys toggles the selection. * By default, {@link ol.events.condition.singleClick} toggles the selection.
* @type {ol.events.ConditionType|undefined} * @type {ol.events.ConditionType|undefined}
*/ */
olx.interaction.SelectOptions.prototype.condition; olx.interaction.SelectOptions.prototype.condition;
@@ -1910,16 +1920,18 @@ olx.interaction.SelectOptions.prototype.style;
/** /**
* A conditional modifier (e.g. alt key) that determines if the feature is * A function that takes an {@link ol.MapBrowserEvent} and returns a boolean
* removed from the current selection. By default, this is never. * to indicate whether that event should be handled.
* By default, this is {@link ol.events.condition.never}.
* @type {ol.events.ConditionType|undefined} * @type {ol.events.ConditionType|undefined}
*/ */
olx.interaction.SelectOptions.prototype.removeCondition; olx.interaction.SelectOptions.prototype.removeCondition;
/** /**
* A conditional modifier (e.g. shift key) that determines if the selection is * A function that takes an {@link ol.MapBrowserEvent} and returns a boolean
* toggled in the current selection. By default, a shift-click toggles the * to indicate whether that event should be handled.
* By default, {@link ol.events.condition.shiftKeyOnly} toggles the
* feature in the current selection. * feature in the current selection.
* @type {ol.events.ConditionType|undefined} * @type {ol.events.ConditionType|undefined}
*/ */