MediaProps
interface MediaProps extends RectProps
Extended by
Properties
alignContent
Inherited from RectProps.alignContent
alignItems
Inherited from RectProps.alignItems
alignSelf
Inherited from RectProps.alignSelf
allowVolumeAmplificationInPreview
antialiased
antialiased?: SignalValueboolean
RectProps.antialiased
arrowSize
arrowSize?: SignalValuenumber
Controls the size of the end and start arrows.
To make the arrows visible make sure to enable startArrow
and/or
endArrow
.
RectProps.arrowSize
awaitCanPlay
awaitCanPlay?: SignalValueboolean
basis
Inherited from RectProps.basis
bottom
bottom?: SignalValuePossibleVector2number
The position of the bottom edge of this node.
This shortcut property will set the node's position so that the bottom edge
ends up in the given place.
If present, overrides the position
property.
RectProps.bottom
bottomLeft
bottomLeft?: SignalValuePossibleVector2number
The position of the bottom left corner of this node.
This shortcut property will set the node's position so that the bottom left
corner ends up in the given place.
If present, overrides the position
property.
RectProps.bottomLeft
bottomRight
The position of the bottom right corner of this node.
This shortcut property will set the node's position so that the bottom
right corner ends up in the given place.
If present, overrides the position
property.
RectProps.bottomRight
cache
cache?: SignalValueboolean
RectProps.cache
cachePadding
Controls the padding of the cached canvas used by this node.
By default, the size of the cache is determined based on the bounding box
of the node and its children. That includes effects such as stroke or
shadow. This property can be used to expand the cache area further.
Usually used to account for custom effects created by shaders
.
RectProps.cachePadding
cachePaddingBottom
cachePaddingBottom?: SignalValuenumber
Controls the padding of the cached canvas used by this node.
By default, the size of the cache is determined based on the bounding box
of the node and its children. That includes effects such as stroke or
shadow. This property can be used to expand the cache area further.
Usually used to account for custom effects created by shaders
.
RectProps.cachePaddingBottom
cachePaddingLeft
cachePaddingLeft?: SignalValuenumber
Controls the padding of the cached canvas used by this node.
By default, the size of the cache is determined based on the bounding box
of the node and its children. That includes effects such as stroke or
shadow. This property can be used to expand the cache area further.
Usually used to account for custom effects created by shaders
.
RectProps.cachePaddingLeft
cachePaddingRight
cachePaddingRight?: SignalValuenumber
Controls the padding of the cached canvas used by this node.
By default, the size of the cache is determined based on the bounding box
of the node and its children. That includes effects such as stroke or
shadow. This property can be used to expand the cache area further.
Usually used to account for custom effects created by shaders
.
RectProps.cachePaddingRight
cachePaddingTop
cachePaddingTop?: SignalValuenumber
Controls the padding of the cached canvas used by this node.
By default, the size of the cache is determined based on the bounding box
of the node and its children. That includes effects such as stroke or
shadow. This property can be used to expand the cache area further.
Usually used to account for custom effects created by shaders
.
RectProps.cachePaddingTop
children
Inherited from RectProps.children
clip
clip?: SignalValueboolean
RectProps.clip
closed
closed?: SignalValueboolean
Whether the curve should be closed.
Closed curves have their start and end points connected.
Inherited fromRectProps.closed
columnGap
Inherited from RectProps.columnGap
composite
composite?: SignalValueboolean
RectProps.composite
compositeOperation
compositeOperation?: SignalValueGlobalCompositeOperation
RectProps.compositeOperation
cornerSharpness
cornerSharpness?: SignalValuenumber
Controls the sharpness of smoothCorners
.
This property only affects the way rounded corners are drawn. To control
the corner radius use the radius
property.
Requires smoothCorners
to be enabled to have any effect.
By default, corner sharpness is set to 0.6
which represents a smooth,
circle-like rounding. At 0
the edges are squared off.
RectProps.cornerSharpness
direction
Inherited from RectProps.direction
end
end?: SignalValuenumber
A percentage from the start after which the curve should be clipped.
The portion of the curve that comes after the given percentage will be made invisible.
This property is usefully for animating the curve appearing on the screen.
The value of 0
means the very start of the curve (accounting for the
startOffset
) while 1
means the very end (accounting for the
endOffset
).
RectProps.end
endArrow
endArrow?: SignalValueboolean
Whether to display an arrow at the end of the visible curve.
Use arrowSize
to control the size of the arrow.
RectProps.endArrow
endOffset
endOffset?: SignalValuenumber
The offset in pixels from the end of the curve.
This property lets you specify where along the defined curve the actual
visible portion ends. For example, setting it to 20
will make the last
20 pixels of the curve invisible.
This property is useful for trimming the curve using a fixed distance.
If you want to animate the curve appearing on the screen, use end
instead.
RectProps.endOffset
fill
Inherited from RectProps.fill
filters
Inherited from RectProps.filters
fontFamily
fontFamily?: SignalValuestring
RectProps.fontFamily
fontSize
fontSize?: SignalValuenumber
RectProps.fontSize
fontStyle
fontStyle?: SignalValuestring
RectProps.fontStyle
fontWeight
fontWeight?: SignalValuenumber
RectProps.fontWeight
gap
Inherited from RectProps.gap
grow
grow?: SignalValuenumber
RectProps.grow
height
Inherited from RectProps.height
justifyContent
Inherited from RectProps.justifyContent
key
key?: string
RectProps.key
layout
Inherited from RectProps.layout
left
left?: SignalValuePossibleVector2number
The position of the left edge of this node.
This shortcut property will set the node's position so that the left edge
ends up in the given place.
If present, overrides the position
property.
RectProps.left
letterSpacing
letterSpacing?: SignalValuenumber
RectProps.letterSpacing
lineCap
lineCap?: SignalValueCanvasLineCap
RectProps.lineCap
lineDash
lineDash?: SignalValuenumber[]
RectProps.lineDash
lineDashOffset
lineDashOffset?: SignalValuenumber
RectProps.lineDashOffset
lineHeight
Inherited from RectProps.lineHeight
lineJoin
lineJoin?: SignalValueCanvasLineJoin
RectProps.lineJoin
lineWidth
lineWidth?: SignalValuenumber
RectProps.lineWidth
loop
loop?: SignalValueboolean
margin
Inherited from RectProps.margin
marginBottom
marginBottom?: SignalValuenumber
RectProps.marginBottom
marginLeft
marginLeft?: SignalValuenumber
RectProps.marginLeft
marginRight
marginRight?: SignalValuenumber
RectProps.marginRight
marginTop
marginTop?: SignalValuenumber
RectProps.marginTop
maxHeight
Inherited from RectProps.maxHeight
maxWidth
Inherited from RectProps.maxWidth
middle
middle?: SignalValuePossibleVector2number
The position of the center of this node.
This shortcut property will set the node's position so that the center ends
up in the given place.
If present, overrides the position
property.
When offset
is not set, this will be the same as the
position
.
RectProps.middle
minHeight
Inherited from RectProps.minHeight
minWidth
Inherited from RectProps.minWidth
offset
offset?: SignalValuePossibleVector2number
RectProps.offset
offsetX
offsetX?: SignalValuenumber
RectProps.offsetX
offsetY
offsetY?: SignalValuenumber
RectProps.offsetY
opacity
opacity?: SignalValuenumber
RectProps.opacity
padding
Inherited from RectProps.padding
paddingBottom
paddingBottom?: SignalValuenumber
RectProps.paddingBottom
paddingLeft
paddingLeft?: SignalValuenumber
RectProps.paddingLeft
paddingRight
paddingRight?: SignalValuenumber
RectProps.paddingRight
paddingTop
paddingTop?: SignalValuenumber
RectProps.paddingTop
play
play?: boolean
playbackRate
playbackRate?: number
position
position?: SignalValuePossibleVector2number
RectProps.position
radius
Rounds the corners of this rectangle.
The value represents the radius of the quarter circle that is used to round the corners. If the value is a number, the same radius is used for all corners. Passing an array of two to four numbers will set individual radii for each corner. Individual radii correspond to different corners depending on the number of values passed:
// top-left-and-bottom-right | top-right-and-bottom-left
[10, 30]
// top-left | top-right-and-bottom-left | bottom-right
[10, 20, 30]
// top-left | top-right | bottom-right | bottom-left
[10, 20, 30, 40]
RectProps.radius
ratio
ratio?: SignalValuenumber
RectProps.ratio
ref
ref?: ReferenceReceiverany
RectProps.ref
right
right?: SignalValuePossibleVector2number
The position of the right edge of this node.
This shortcut property will set the node's position so that the right edge
ends up in the given place.
If present, overrides the position
property.
RectProps.right
rotation
rotation?: SignalValuenumber
RectProps.rotation
rowGap
Inherited from RectProps.rowGap
scale
scale?: SignalValuePossibleVector2number
RectProps.scale
scaleX
scaleX?: SignalValuenumber
RectProps.scaleX
scaleY
scaleY?: SignalValuenumber
RectProps.scaleY
shaders
shaders?: PossibleShaderConfig
RectProps.shaders
shadowBlur
shadowBlur?: SignalValuenumber
RectProps.shadowBlur
shadowColor
Inherited from RectProps.shadowColor
shadowOffset
Inherited from RectProps.shadowOffset
shadowOffsetX
shadowOffsetX?: SignalValuenumber
RectProps.shadowOffsetX
shadowOffsetY
shadowOffsetY?: SignalValuenumber
RectProps.shadowOffsetY
shrink
shrink?: SignalValuenumber
RectProps.shrink
size
Inherited from RectProps.size
skew
skew?: SignalValuePossibleVector2number
RectProps.skew
skewX
skewX?: SignalValuenumber
RectProps.skewX
skewY
skewY?: SignalValuenumber
RectProps.skewY
smoothCorners
smoothCorners?: SignalValueboolean
Enables corner smoothing.
This property only affects the way rounded corners are drawn. To control
the corner radius use the radius
property.
When enabled, rounded corners are drawn continuously using Bézier curves
rather than quarter circles. The sharpness of the curve can be controlled
with cornerSharpness
.
You can read more about corner smoothing in this article by Nick Lawrence.
Inherited fromRectProps.smoothCorners
spawner
Deprecated
Use children
instead.
RectProps.spawner
src
src?: SignalValuestring
start
start?: SignalValuenumber
A percentage from the start before which the curve should be clipped.
The portion of the curve that comes before the given percentage will be made invisible.
This property is usefully for animating the curve appearing on the screen.
The value of 0
means the very start of the curve (accounting for the
startOffset
) while 1
means the very end (accounting for the
endOffset
).
RectProps.start
startArrow
startArrow?: SignalValueboolean
Whether to display an arrow at the start of the visible curve.
Use arrowSize
to control the size of the arrow.
RectProps.startArrow
startOffset
startOffset?: SignalValuenumber
The offset in pixels from the start of the curve.
This property lets you specify where along the defined curve the actual
visible portion starts. For example, setting it to 20
will make the first
20 pixels of the curve invisible.
This property is useful for trimming the curve using a fixed distance.
If you want to animate the curve appearing on the screen, use start
instead.
RectProps.startOffset
stroke
Inherited from RectProps.stroke
strokeFirst
strokeFirst?: SignalValueboolean
RectProps.strokeFirst
tagName
tagName?: keyof HTMLElementTagNameMap
RectProps.tagName
textAlign
textAlign?: SignalValueCanvasTextAlign
RectProps.textAlign
textDirection
textDirection?: SignalValueCanvasDirection
RectProps.textDirection
textWrap
Inherited from RectProps.textWrap
time
time?: SignalValuenumber
top
top?: SignalValuePossibleVector2number
The position of the top edge of this node.
This shortcut property will set the node's position so that the top edge
ends up in the given place.
If present, overrides the position
property.
RectProps.top
topLeft
topLeft?: SignalValuePossibleVector2number
The position of the top left corner of this node.
This shortcut property will set the node's position so that the top left
corner ends up in the given place.
If present, overrides the position
property.
RectProps.topLeft
topRight
topRight?: SignalValuePossibleVector2number
The position of the top right corner of this node.
This shortcut property will set the node's position so that the top right
corner ends up in the given place.
If present, overrides the position
property.
RectProps.topRight
volume
volume?: number
width
Inherited from RectProps.width
wrap
Inherited from RectProps.wrap
x
x?: SignalValuenumber
RectProps.x
y
y?: SignalValuenumber
RectProps.y
zIndex
zIndex?: SignalValuenumber
RectProps.zIndex