genome_spy.TransitionedExprParameter

class genome_spy.TransitionedExprParameter(description=Undefined, expr=Undefined, name=Undefined, persist=Undefined, push=Undefined, transition=Undefined, **kwds)View on GitHub

Bases: GenomeSpySchema

Generated wrapper for TransitionedExprParameter.

Methods

copy(*[, deep])

Return a copy with optional keyword updates.

description(value)

Return a copy with description updated.

expr(value)

Return a copy with expr updated.

name(value)

Return a copy with name updated.

persist(value)

Return a copy with persist updated.

push(value)

Return a copy with push 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.

description(value)View on GitHub

Return a copy with description updated.

expr(value)View on GitHub

Return a copy with expr updated.

name(value)View on GitHub

Return a copy with name updated.

persist(value)View on GitHub

Return a copy with persist updated.

push(value)View on GitHub

Return a copy with push 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.

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.