Skip to main content

RectProps

                            
                              
                                interface 
                                RectProps
                                extends 
                                
                                  
                                    
                                      ShapeProps
                                    
                                  
                                
                              
                              

Extended by

  • ImgProps
  • VideoProps

Properties

alignContent

Inherited from ShapeProps.alignContent

alignItems

Inherited from ShapeProps.alignItems

alignSelf

Inherited from ShapeProps.alignSelf

antialiased

Inherited from ShapeProps.antialiased

basis

Inherited from ShapeProps.basis

cache

                            
                              
                                cache
                                ?: 
                                SignalValue
                                
                                  
                                    
                                      boolean
                                    
                                  
                                
                              
                              
Inherited from ShapeProps.cache

children

Inherited from ShapeProps.children

clip

                            
                              
                                clip
                                ?: 
                                SignalValue
                                
                                  
                                    
                                      boolean
                                    
                                  
                                
                              
                              
Inherited from ShapeProps.clip

columnGap

Inherited from ShapeProps.columnGap

composite

                            
                              
                                composite
                                ?: 
                                SignalValue
                                
                                  
                                    
                                      boolean
                                    
                                  
                                
                              
                              
Inherited from ShapeProps.composite

compositeOperation

                            
                              
                                compositeOperation
                                ?: 
                                SignalValue
                                
                                  
                                    
                                      GlobalCompositeOperation
                                    
                                  
                                
                              
                              
Inherited from ShapeProps.compositeOperation

cornerSharpness

Controls the sharpness of the corners. smoothCorners mustbe set to true .

By default the cornerSharpness is set to 0.6 which represents smooth,circle-like rounding. At 0 the edges are squared off.


direction

Inherited from ShapeProps.direction

fill

Inherited from ShapeProps.fill

filters

                            
                              
                                filters
                                ?: 
                                SignalValue
                                
                                  
                                    
                                      Filter
                                      []
                                    
                                  
                                
                              
                              
Inherited from ShapeProps.filters

fontFamily

Inherited from ShapeProps.fontFamily

fontSize

                            
                              
                                fontSize
                                ?: 
                                SignalValue
                                
                                  
                                    
                                      number
                                    
                                  
                                
                              
                              
Inherited from ShapeProps.fontSize

fontStyle

Inherited from ShapeProps.fontStyle

fontWeight

Inherited from ShapeProps.fontWeight

gap

Inherited from ShapeProps.gap

grow

                            
                              
                                grow
                                ?: 
                                SignalValue
                                
                                  
                                    
                                      number
                                    
                                  
                                
                              
                              
Inherited from ShapeProps.grow

height

Inherited from ShapeProps.height

justifyContent

Inherited from ShapeProps.justifyContent

key

                            
                              
                                key
                                ?: 
                                string
                              
                              
Inherited from ShapeProps.key

layout

Inherited from ShapeProps.layout

letterSpacing

Inherited from ShapeProps.letterSpacing

lineCap

                            
                              
                                lineCap
                                ?: 
                                SignalValue
                                
                                  
                                    
                                      CanvasLineCap
                                    
                                  
                                
                              
                              
Inherited from ShapeProps.lineCap

lineDash

                            
                              
                                lineDash
                                ?: 
                                SignalValue
                                
                                  
                                    
                                      number
                                    
                                  
                                
                                []
                              
                              
Inherited from ShapeProps.lineDash

lineDashOffset

Inherited from ShapeProps.lineDashOffset

lineHeight

Inherited from ShapeProps.lineHeight

lineJoin

                            
                              
                                lineJoin
                                ?: 
                                SignalValue
                                
                                  
                                    
                                      CanvasLineJoin
                                    
                                  
                                
                              
                              
Inherited from ShapeProps.lineJoin

lineWidth

Inherited from ShapeProps.lineWidth

margin

Inherited from ShapeProps.margin

marginBottom

Inherited from ShapeProps.marginBottom

marginLeft

Inherited from ShapeProps.marginLeft

marginRight

Inherited from ShapeProps.marginRight

marginTop

Inherited from ShapeProps.marginTop

maxHeight

Inherited from ShapeProps.maxHeight

maxWidth

Inherited from ShapeProps.maxWidth

minHeight

Inherited from ShapeProps.minHeight

minWidth

Inherited from ShapeProps.minWidth

offset

Inherited from ShapeProps.offset

offsetX

                            
                              
                                offsetX
                                ?: 
                                SignalValue
                                
                                  
                                    
                                      number
                                    
                                  
                                
                              
                              
Inherited from ShapeProps.offsetX

offsetY

                            
                              
                                offsetY
                                ?: 
                                SignalValue
                                
                                  
                                    
                                      number
                                    
                                  
                                
                              
                              
Inherited from ShapeProps.offsetY

opacity

                            
                              
                                opacity
                                ?: 
                                SignalValue
                                
                                  
                                    
                                      number
                                    
                                  
                                
                              
                              
Inherited from ShapeProps.opacity

padding

Inherited from ShapeProps.padding

paddingBottom

Inherited from ShapeProps.paddingBottom

paddingLeft

Inherited from ShapeProps.paddingLeft

paddingRight

Inherited from ShapeProps.paddingRight

paddingTop

Inherited from ShapeProps.paddingTop

position

Inherited from ShapeProps.position

radius


ratio

                            
                              
                                ratio
                                ?: 
                                SignalValue
                                
                                  
                                    
                                      number
                                    
                                  
                                
                              
                              
Inherited from ShapeProps.ratio

ref

                            
                              
                                ref
                                ?: 
                                ReferenceReceiver
                                
                                  
                                    
                                      any
                                    
                                  
                                
                              
                              
Inherited from ShapeProps.ref

rotation

                            
                              
                                rotation
                                ?: 
                                SignalValue
                                
                                  
                                    
                                      number
                                    
                                  
                                
                              
                              
Inherited from ShapeProps.rotation

rowGap

Inherited from ShapeProps.rowGap

scale

Inherited from ShapeProps.scale

scaleX

                            
                              
                                scaleX
                                ?: 
                                SignalValue
                                
                                  
                                    
                                      number
                                    
                                  
                                
                              
                              
Inherited from ShapeProps.scaleX

scaleY

                            
                              
                                scaleY
                                ?: 
                                SignalValue
                                
                                  
                                    
                                      number
                                    
                                  
                                
                              
                              
Inherited from ShapeProps.scaleY

shadowBlur

Inherited from ShapeProps.shadowBlur

shadowColor

Inherited from ShapeProps.shadowColor

shadowOffset

Inherited from ShapeProps.shadowOffset

shadowOffsetX

Inherited from ShapeProps.shadowOffsetX

shadowOffsetY

Inherited from ShapeProps.shadowOffsetY

shrink

                            
                              
                                shrink
                                ?: 
                                SignalValue
                                
                                  
                                    
                                      number
                                    
                                  
                                
                              
                              
Inherited from ShapeProps.shrink

size

Inherited from ShapeProps.size

smoothCorners

Will set the corner drawing method to smooth corners.

Smooth corners are drawn continuously by a bezìer curves, rather than by aquarter circle.

When smoothCorners is set to true , the sharpness of the curve can becontrolled by the cornerSharpness .


spawner

                            
                              
                                spawner
                                ?: 
                                SignalValue
                                
                                  
                                    
                                      Node
                                      []
                                    
                                  
                                
                              
                              
Inherited from ShapeProps.spawner

stroke

Inherited from ShapeProps.stroke

strokeFirst

Inherited from ShapeProps.strokeFirst

tagName

                            
                              
                                tagName
                                ?: 
                                keyof 
                                HTMLElementTagNameMap
                              
                              
Inherited from ShapeProps.tagName

textAlign

                            
                              
                                textAlign
                                ?: 
                                SignalValue
                                
                                  
                                    
                                      CanvasTextAlign
                                    
                                  
                                
                              
                              
Inherited from ShapeProps.textAlign

textDirection

                            
                              
                                textDirection
                                ?: 
                                SignalValue
                                
                                  
                                    
                                      CanvasDirection
                                    
                                  
                                
                              
                              
Inherited from ShapeProps.textDirection

textWrap

Inherited from ShapeProps.textWrap

width

Inherited from ShapeProps.width

wrap

Inherited from ShapeProps.wrap

x

                            
                              
                                x
                                ?: 
                                SignalValue
                                
                                  
                                    
                                      number
                                    
                                  
                                
                              
                              
Inherited from ShapeProps.x

y

                            
                              
                                y
                                ?: 
                                SignalValue
                                
                                  
                                    
                                      number
                                    
                                  
                                
                              
                              
Inherited from ShapeProps.y

zIndex

                            
                              
                                zIndex
                                ?: 
                                SignalValue
                                
                                  
                                    
                                      number
                                    
                                  
                                
                              
                              
Inherited from ShapeProps.zIndex