genome_spy.MultiscaleStopsDef

class genome_spy.MultiscaleStopsDef(channel=Undefined, fade=Undefined, metric=Undefined, transition=Undefined, values=Undefined, **kwds)View on GitHub

Bases: GenomeSpySchema

Generated wrapper for MultiscaleStopsDef.

Methods

channel(value)

Return a copy with channel updated.

copy(*[, deep])

Return a copy with optional keyword updates.

fade(value)

Return a copy with fade updated.

metric(value)

Return a copy with metric updated.

resolve_references()

Return this class schema with referenced properties merged in.

to_dict(*[, validate])

Serialize this schema wrapper to a JSON-compatible dictionary.

to_json(*[, validate])

Serialize this schema wrapper to formatted JSON.

transition([value, epsilon, halfLife, type])

Return a copy with transition updated.

validate(instance)

Validate an instance against this wrapper's schema.

values(value)

Return a copy with values updated.

channel(value)View on GitHub

Return a copy with channel updated.

fade(value)View on GitHub

Return a copy with fade updated.

metric(value)View on GitHub

Return a copy with metric updated.

transition(value=Undefined, /, *, epsilon=Undefined, halfLife=Undefined, type=Undefined)View on GitHub

Return a copy with transition updated.

Parameters:
  • epsilon (float) – Distance from the target at which the current value snaps to the target. __Default value:__ 0.01

  • halfLife (float) – Time in milliseconds for the remaining distance to the target to halve. __Default value:__ 80

  • type (Literal['lerp']) – The transition algorithm.

values(value)View on GitHub

Return a copy with values updated.

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.