Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Interfaces

Type aliases

Type aliases

LengthAdjustPropType

LengthAdjustPropType: "spacing" | "spacingAndGlyphs"

PreserveAspectAlignKeyword

PreserveAspectAlignKeyword: "none" | "xMinYMin" | "xMidYMin" | "xMaxYMin" | "xMinYMid" | "xMidYMid" | "xMaxYMid" | "xMinYMax" | "xMidYMax" | "xMaxYMax"

PreserveAspectRatioMeetOrSliceKeyword

PreserveAspectRatioMeetOrSliceKeyword: "meet" | "slice"

PreserveAspectRatioPropType

SvgAngle

SvgAngle: number | `${number}${AngleUnits}`

Type for presentation attributes of the <length> SVG type. Values of this type can be specifed as:

  • strings that have a number followed by one of the length units, like "100deg" or "1rad"
  • a number

SvgClock

SvgClock: number | `${number}${SvgClockUnits}` | `${number}:${number}` | `${number}:${number}:${number}`

SvgClockUnits

SvgClockUnits: "h" | "min" | "s" | "ms"

Defines units used in the SVG `' type

SvgInPropType

SvgInPropType: string | "SourceGraphic" | "SourceAlpha" | "BackgroundImage" | "BackgroundAlpha" | "FillPaint" | "StrokePaint"

SvgLength

SvgLength: SvgPercent | `${number}${LengthUnits}`

Type for presentation attributes of the <length> SVG type. Values of this type can be specifed as:

  • strings that have a number followed by one of the length units, like "100vh" or "1em"
  • a number

SvgPaint

SvgPaint: "none" | CssColor | "context-fill" | "context-stroke"

Type used for presentaion properties fill (fillColor) and stroke

SvgPercent

SvgPercent: number | `${number}${PercentUnits}`

Type for presentation attributes of the <percentage> SVG type. Values of this type can be specifed as:

  • strings that have a number followed by the percent sign, like "83%"
  • a number:
    • if the number is an integer, it is taken as is and a percent sign is appended to it
    • if the number is a floating point, it is multiplied by 100 and a percent sign is appended to it

SvgUnitsPropType

SvgUnitsPropType: "userSpaceOnUse" | "objectBoundingBox"

SvgViewBox

SvgViewBox: number | [number, number?, number?, number?]