# OverlayUnit

`OverlayUnit`

  Enumerates the unit types that an overlay viewport value may be.

  ## Index

  Enumeration Members

  - `MinimumProportionOfCanvas`
  - `Pixels`
  - `ProportionOfCanvas`
  - `ProportionOfOtherDimension`

## Enumeration Members

`OverlayUnit.``MinimumProportionOfCanvas`
  MinimumProportionOfCanvas: 2

  The value is specified as a portion of the viewing canvas’ minimum dimension. If the canvas is resized, the viewport’s dimensions will be recalculated based on the minimum of the X and Y proportions. This prevents the overlay from becoming oversized on very wide or very tall canvass.

`OverlayUnit.``Pixels`
  Pixels: 0

  The value is specified in CSS pixels.

`OverlayUnit.``ProportionOfCanvas`
  ProportionOfCanvas: 1

  The value is specified as a proportion of the viewing canvas. If the canvas is resized, the viewport’s dimensions will be recalculated accordingly. In this case the value should be specified in a range of 0.0 to 1.0.

`OverlayUnit.``ProportionOfOtherDimension`
  ProportionOfOtherDimension: 3

  The value is specified as a proportion its corresponding parameters calculated value. For example, given a viewport specified with width of 0.25 and unit type of ProportionOfCanvas, specifying height with value of 1.0 and type of ProportionOfOtherDimension will ensure that the calculated height value will be equal to the calculated width value should the canvas resize. In this case the value should be specified in a range of 0.0 to 1.0.

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Visualize Web or choose a sample question below to start a conversation:

What is HOOPS Visualize Web?
What are the latest release notes for HOOPS Visualize Web?
How do I start evaluating HOOPS Visualize Web?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...