genome_spy.view_config

genome_spy.view_config(*, 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)View on GitHub

Create a top-level view config object.

Parameters:
  • continuousHeight (float) – The default height when the view has a continuous y scale. __Default value:__ "container"

  • continuousWidth (float) – The default width when the view has a continuous x scale. __Default value:__ "container"

  • discreteHeight (float | Step | StepKwds) – The default height when the view has a discrete y scale or no y scale. This may be a fixed height or a step size for each discrete domain value. __Default value:__ "container"

  • discreteWidth (float | Step | StepKwds) – The default width when the view has a discrete x scale or no x scale. This may be a fixed width or a step size for each discrete domain value. __Default value:__ "container"

  • fill (str) – Fill color of the view background.

  • fillOpacity (float) – Opacity of the view background fill.

  • shadowBlur (float | ExprRef | dict[str, Any]) – The blur radius of the drop shadow in pixels. Higher values produce a more diffuse shadow. Default value: 0

  • shadowColor (str | ExprRef | dict[str, Any]) – The color of the drop shadow. Any valid CSS color string is allowed. Default value: "black"

  • shadowOffsetX (float | ExprRef | dict[str, Any]) – The horizontal offset of the drop shadow in pixels. Positive values move the shadow to the right. Default value: 0

  • shadowOffsetY (float | ExprRef | dict[str, Any]) – The vertical offset of the drop shadow in pixels. Positive values move the shadow downward. Default value: 0

  • shadowOpacity (float | ExprRef | dict[str, Any]) – The opacity of the drop shadow. Value between 0 (fully transparent) and 1 (fully opaque). Default value: 0 (disabled)

  • step (float | ExprRef | dict[str, Any]) – Default step size for discrete view sizes. __Default value:__ none

  • stroke (str) – Stroke color of the view background.

  • strokeOpacity (float) – Opacity of the view background stroke.

  • strokeWidth (float) – Stroke width of the view background border.

  • strokeZindex (float) – Z-order of the stroke relative to the view content. Values greater than 0 render the stroke after the view marks. Values less than or equal to 0 render before the marks. The default value depends on the element type.

  • zindex (float) – Z-order relative to the view content. Values greater than 0 render after the view marks. Values less than or equal to 0 render before the marks. The default value depends on the element type.