genome_spy.ViewConfig

class genome_spy.ViewConfig(continuousHeight=Undefined, continuousWidth=Undefined, discreteHeight=Undefined, discreteWidth=Undefined, fill=Undefined, fillOpacity=Undefined, shadowBlur=Undefined, shadowColor=Undefined, shadowOffsetX=Undefined, shadowOffsetY=Undefined, shadowOpacity=Undefined, step=Undefined, stroke=Undefined, strokeOpacity=Undefined, strokeWidth=Undefined, strokeZindex=Undefined, zindex=Undefined, **kwds)View on GitHub

Bases: GenomeSpySchema

Generated wrapper for ViewConfig.

Methods

continuousHeight(value)

Return a copy with continuousHeight updated.

continuousWidth(value)

Return a copy with continuousWidth updated.

copy(*[, deep])

Return a copy with optional keyword updates.

discreteHeight([value, for_, step])

Return a copy with a Step discreteHeight.

discreteWidth([value, for_, step])

Return a copy with a Step discreteWidth.

fill([value, expr])

Return a copy with a ExprRef fill.

fillOpacity(value)

Return a copy with fillOpacity updated.

resolve_references()

Return this class schema with referenced properties merged in.

shadowBlur([value, expr])

Return a copy with a ExprRef shadowBlur.

shadowColor([value, expr])

Return a copy with a ExprRef shadowColor.

shadowOffsetX([value, expr])

Return a copy with a ExprRef shadowOffsetX.

shadowOffsetY([value, expr])

Return a copy with a ExprRef shadowOffsetY.

shadowOpacity([value, expr])

Return a copy with a ExprRef shadowOpacity.

step([value, expr])

Return a copy with a ExprRef step.

stroke([value, expr])

Return a copy with a ExprRef stroke.

strokeOpacity(value)

Return a copy with strokeOpacity updated.

strokeWidth(value)

Return a copy with strokeWidth updated.

strokeZindex(value)

Return a copy with strokeZindex updated.

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.

zindex(value)

Return a copy with zindex updated.

continuousHeight(value)View on GitHub

Return a copy with continuousHeight updated.

continuousWidth(value)View on GitHub

Return a copy with continuousWidth updated.

discreteHeight(value=Undefined, /, *, for_=Undefined, step=Undefined)View on GitHub

Return a copy with a Step discreteHeight.

Parameters:
  • for_ (Literal['position', 'offset']) – Selects which discrete scale the step describes when a positional scale has a nested offset scale. "offset" sizes each subgroup step; "position" sizes each primary category step. Offset-step sizing requires nonzero primary bandwidth. For a primary point scale, use "position". __Default value:__ "offset" when a discrete nested offset scale is present, otherwise "position".

  • step (float | ExprRef | dict[str, Any]) – Base step size in CSS pixels. Scale padding determines the cell width within a step. Grouping gaps add their pixel widths to the plot size without reducing the base step. Point steps separate point centers.

discreteWidth(value=Undefined, /, *, for_=Undefined, step=Undefined)View on GitHub

Return a copy with a Step discreteWidth.

Parameters:
  • for_ (Literal['position', 'offset']) – Selects which discrete scale the step describes when a positional scale has a nested offset scale. "offset" sizes each subgroup step; "position" sizes each primary category step. Offset-step sizing requires nonzero primary bandwidth. For a primary point scale, use "position". __Default value:__ "offset" when a discrete nested offset scale is present, otherwise "position".

  • step (float | ExprRef | dict[str, Any]) – Base step size in CSS pixels. Scale padding determines the cell width within a step. Grouping gaps add their pixel widths to the plot size without reducing the base step. Point steps separate point centers.

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

Return a copy with a ExprRef fill.

Parameters:

expr (str) – The expression string.

fillOpacity(value)View on GitHub

Return a copy with fillOpacity updated.

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

Return a copy with a ExprRef shadowBlur.

Parameters:

expr (str) – The expression string.

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

Return a copy with a ExprRef shadowColor.

Parameters:

expr (str) – The expression string.

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

Return a copy with a ExprRef shadowOffsetX.

Parameters:

expr (str) – The expression string.

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

Return a copy with a ExprRef shadowOffsetY.

Parameters:

expr (str) – The expression string.

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

Return a copy with a ExprRef shadowOpacity.

Parameters:

expr (str) – The expression string.

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

Return a copy with a ExprRef step.

Parameters:

expr (str) – The expression string.

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

Return a copy with a ExprRef stroke.

Parameters:

expr (str) – The expression string.

strokeOpacity(value)View on GitHub

Return a copy with strokeOpacity updated.

strokeWidth(value)View on GitHub

Return a copy with strokeWidth updated.

strokeZindex(value)View on GitHub

Return a copy with strokeZindex updated.

zindex(value)View on GitHub

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