genome_spy.MeasureTextParams

class genome_spy.MeasureTextParams(as_=Undefined, description=Undefined, field=Undefined, font=Undefined, fontSize=Undefined, fontStyle=Undefined, fontWeight=Undefined, type=Undefined, **kwds)View on GitHub

Bases: GenomeSpySchema

Generated wrapper for MeasureTextParams.

Methods

as_(value)

Return a copy with as updated.

copy(*[, deep])

Return a copy with optional keyword updates.

description(value)

Return a copy with description updated.

field(value)

Return a copy with field updated.

font(value)

Return a copy with font updated.

fontSize([value, expr])

Return a copy with a ExprRef fontSize.

fontStyle(value)

Return a copy with fontStyle updated.

fontWeight(value)

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

type(value)

Return a copy with type updated.

validate(instance)

Validate an instance against this wrapper's schema.

as_(value)View on GitHub

Return a copy with as updated.

description(value)View on GitHub

Return a copy with description updated.

field(value)View on GitHub

Return a copy with field updated.

font(value)View on GitHub

Return a copy with font updated.

fontSize(value=Undefined, /, *, expr=Undefined)View on GitHub

Return a copy with a ExprRef fontSize.

Parameters:

expr (str) – The expression string.

fontStyle(value)View on GitHub

Return a copy with fontStyle updated.

fontWeight(value)View on GitHub

Return a copy with fontWeight updated.

type(value)View on GitHub

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