genome_spy.IntervalSelectionParameter¶
- class genome_spy.IntervalSelectionParameter(bind=Undefined, description=Undefined, name=Undefined, persist=Undefined, push=Undefined, select=Undefined, value=Undefined, **kwds)View on GitHub¶
Bases:
GenomeSpySchemaGenerated wrapper for
IntervalSelectionParameter.Methods
bind(value)Return a copy with
bindupdated.copy(*[, deep])Return a copy with optional keyword updates.
description(value)Return a copy with
descriptionupdated.name(value)Return a copy with
nameupdated.persist(value)Return a copy with
persistupdated.push(value)Return a copy with
pushupdated.Return this class schema with referenced properties merged in.
select([value, clear, encodings, mark, on, ...])Return a copy with
selectupdated.to_dict(*[, validate])Serialize this schema wrapper to a JSON-compatible dictionary.
to_json(*[, validate])Serialize this schema wrapper to formatted JSON.
validate(instance)Validate an instance against this wrapper's schema.
value([value, stroke])Return a copy with
valueupdated.- bind(value)View on GitHub¶
Return a copy with
bindupdated.
- description(value)View on GitHub¶
Return a copy with
descriptionupdated.
- name(value)View on GitHub¶
Return a copy with
nameupdated.
- persist(value)View on GitHub¶
Return a copy with
persistupdated.
- push(value)View on GitHub¶
Return a copy with
pushupdated.
- select(value=Undefined, /, *, clear=Undefined, encodings=Undefined, mark=Undefined, on=Undefined, type=Undefined, zoom=Undefined)View on GitHub¶
Return a copy with
selectupdated.- Parameters:
clear (DomEventType_T | EventConfig | EventConfigKwds | str | bool) – A string or object that defines the events that should clear the selection. Set to
falseto disable these events. Legend-bound point selections also reset on unmodified background clicks, independently of this property. __Default value:__"dblclick"; noclearevent for legend-bound point selections.encodings (Sequence[Literal['stroke']]) – Schema-defined
encodingsproperty.mark (BrushConfig | dict[str, Any]) – Interval selections display a rectangle mark to show the selected range. Use the
markproperty to adjust the appearance of this rectangle.on (DomEventType_T | EventConfig | EventConfigKwds | str) – A string or object that defines the events to which the selection should listen. __Default value:__ - point selections:
"click"- interval selections: -"mousedown[event.shiftKey]"when any brushed channel is zoomable -"mousedown"otherwisetype (Literal['interval']) – The selection type. -
"point"– to select multiple discrete data values; the first value is selected onclickand additional values toggled on shift-click. -"interval"– to select a continuous range of data values ondrag.zoom (DomEventType_T | EventConfig | EventConfigKwds | str | bool) – Controls whether an active interval selection can be resized by mouse wheel. The wheel interaction only applies when the cursor is over the interval. Can be: -
true/false- event type string such as"wheel"or"wheel[event.altKey]"- anEventConfigobject Currently, only"wheel"events are supported. __Default value:__ -falsewhen any brushed channel uses a zoomable scale -trueotherwise
- value(value=Undefined, /, *, stroke=Undefined)View on GitHub¶
Return a copy with
valueupdated.- Parameters:
stroke (Sequence[Any] | None) – Schema-defined
strokeproperty.
- copy(*, deep=True, **kwds)View on GitHub¶
Return a copy with optional keyword updates.
- classmethod resolve_references()View on GitHub¶
Return this class schema with referenced properties merged in.
- to_dict(*, validate=True)View on GitHub¶
Serialize this schema wrapper to a JSON-compatible dictionary.
- to_json(*, validate=True)View on GitHub¶
Serialize this schema wrapper to formatted JSON.
- classmethod validate(instance)View on GitHub¶
Validate an instance against this wrapper’s schema.