Preparing search index...
The search index is not available
@rendley/sdk - v1.7.2
@rendley/sdk
ShapeStyle
Class ShapeStyle
Hierarchy (
View Summary
)
ClipStyle
<
ShapeSprite
>
ShapeStyle
Index
Constructors
constructor
Methods
destroy
get
Alpha
get
Animation
Alpha
Multiplier
get
Animation
Position
Offset
get
Animation
Rotation
Offset
get
Animation
Scale
Multiplier
get
Corner
Radius
get
Corner
Radius
Relative
get
Fill
Color
get
Has
Fill
get
Height
get
Position
get
Raw
Height
get
Raw
Width
get
Rotation
get
Scale
get
Stroke
Alpha
get
Stroke
Color
get
Stroke
Width
get
Width
getZIndex
load
position
To
Center
replace
Media
Data
Id
scale
Down
To
Fit
serialize
set
Alpha
set
Animation
Alpha
Multiplier
set
Animation
Position
Offset
set
Animation
Rotation
Offset
set
Animation
Scale
Multiplier
set
Corner
Radius
set
Fill
Color
set
Has
Fill
set
Position
set
Rotation
set
Scale
set
Stroke
Alpha
set
Stroke
Color
set
Stroke
Width
setZIndex
update
deserialize
Constructors
constructor
new
ShapeStyle
(
options
:
ShapeClipStyleOptions
)
:
ShapeStyle
Parameters
options
:
ShapeClipStyleOptions
Returns
ShapeStyle
Methods
destroy
destroy
()
:
void
Returns
void
get
Alpha
getAlpha
()
:
number
Returns
number
get
Animation
Alpha
Multiplier
getAnimationAlphaMultiplier
()
:
number
Returns
number
get
Animation
Position
Offset
getAnimationPositionOffset
()
:
[
number
,
number
]
Returns
[
number
,
number
]
get
Animation
Rotation
Offset
getAnimationRotationOffset
()
:
number
Returns
number
get
Animation
Scale
Multiplier
getAnimationScaleMultiplier
()
:
[
number
,
number
]
Returns
[
number
,
number
]
get
Corner
Radius
getCornerRadius
()
:
number
[]
Returns
number
[]
get
Corner
Radius
Relative
getCornerRadiusRelative
()
:
boolean
Returns
boolean
get
Fill
Color
getFillColor
()
:
string
Returns
string
get
Has
Fill
getHasFill
()
:
boolean
Returns
boolean
get
Height
getHeight
()
:
number
Returns
number
get
Position
getPosition
()
:
[
number
,
number
]
Returns
[
number
,
number
]
get
Raw
Height
getRawHeight
()
:
number
Returns
number
get
Raw
Width
getRawWidth
()
:
number
Returns
number
get
Rotation
getRotation
()
:
number
Returns
number
get
Scale
getScale
()
:
[
number
,
number
]
Returns
[
number
,
number
]
get
Stroke
Alpha
getStrokeAlpha
()
:
number
Returns
number
get
Stroke
Color
getStrokeColor
()
:
string
Returns
string
get
Stroke
Width
getStrokeWidth
()
:
number
Returns
number
get
Width
getWidth
()
:
number
Returns
number
getZIndex
getZIndex
()
:
number
Returns
number
load
load
(
sprite
:
ShapeSprite
)
:
void
Parameters
sprite
:
ShapeSprite
Returns
void
position
To
Center
positionToCenter
()
:
void
Returns
void
replace
Media
Data
Id
replaceMediaDataId
(
mediaDataId
:
string
)
:
void
Parameters
mediaDataId
:
string
Returns
void
scale
Down
To
Fit
scaleDownToFit
()
:
void
Returns
void
serialize
serialize
()
:
{
alpha
:
number
;
clipId
:
string
;
cornerRadius
?:
[
number
,
number
,
number
,
number
]
;
fillColor
?:
string
;
hasFill
:
boolean
;
height
?:
number
;
mediaDataId
?:
string
;
position
:
[
number
,
number
]
;
relativeCornerRadius
:
boolean
;
rotation
:
number
;
scale
:
[
number
,
number
]
;
strokeAlpha
?:
number
;
strokeColor
?:
string
;
strokeWidth
?:
number
;
width
?:
number
;
zIndex
:
number
;
}
Returns
{
alpha
:
number
;
clipId
:
string
;
cornerRadius
?:
[
number
,
number
,
number
,
number
]
;
fillColor
?:
string
;
hasFill
:
boolean
;
height
?:
number
;
mediaDataId
?:
string
;
position
:
[
number
,
number
]
;
relativeCornerRadius
:
boolean
;
rotation
:
number
;
scale
:
[
number
,
number
]
;
strokeAlpha
?:
number
;
strokeColor
?:
string
;
strokeWidth
?:
number
;
width
?:
number
;
zIndex
:
number
;
}
set
Alpha
setAlpha
(
alpha
:
number
)
:
void
Parameters
alpha
:
number
Returns
void
set
Animation
Alpha
Multiplier
setAnimationAlphaMultiplier
(
alpha
:
number
)
:
void
Parameters
alpha
:
number
Returns
void
set
Animation
Position
Offset
setAnimationPositionOffset
(
x
:
number
,
y
:
number
)
:
void
Parameters
x
:
number
y
:
number
Returns
void
set
Animation
Rotation
Offset
setAnimationRotationOffset
(
rotation
:
number
)
:
void
Parameters
rotation
:
number
Returns
void
set
Animation
Scale
Multiplier
setAnimationScaleMultiplier
(
multiplierX
:
number
,
multiplierY
:
number
)
:
void
Parameters
multiplierX
:
number
multiplierY
:
number
Returns
void
set
Corner
Radius
setCornerRadius
(
radii
:
number
|
[
number
,
number
,
number
,
number
]
,
relative
?:
boolean
,
)
:
void
Parameters
radii
:
number
|
[
number
,
number
,
number
,
number
]
relative
:
boolean
= false
Returns
void
set
Fill
Color
setFillColor
(
fillColor
:
string
)
:
void
Parameters
fillColor
:
string
Returns
void
set
Has
Fill
setHasFill
(
hasFill
:
boolean
)
:
void
Parameters
hasFill
:
boolean
Returns
void
set
Position
setPosition
(
x
:
number
,
y
:
number
)
:
void
Parameters
x
:
number
y
:
number
Returns
void
set
Rotation
setRotation
(
rotation
:
number
)
:
void
Parameters
rotation
:
number
Returns
void
set
Scale
setScale
(
scaleX
:
number
,
scaleY
:
number
)
:
void
Parameters
scaleX
:
number
scaleY
:
number
Returns
void
set
Stroke
Alpha
setStrokeAlpha
(
strokeAlpha
:
number
)
:
void
Parameters
strokeAlpha
:
number
Returns
void
set
Stroke
Color
setStrokeColor
(
strokeColor
:
string
)
:
void
Parameters
strokeColor
:
string
Returns
void
set
Stroke
Width
setStrokeWidth
(
strokeWidth
:
number
)
:
void
Parameters
strokeWidth
:
number
Returns
void
setZIndex
setZIndex
(
zIndex
:
number
)
:
void
Parameters
zIndex
:
number
Returns
void
update
update
(
container
:
ShapeSprite
)
:
void
Parameters
container
:
ShapeSprite
Returns
void
Static
deserialize
deserialize
(
payload
:
object
)
:
ShapeStyle
Parameters
payload
:
object
Returns
ShapeStyle
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
destroy
get
Alpha
get
Animation
Alpha
Multiplier
get
Animation
Position
Offset
get
Animation
Rotation
Offset
get
Animation
Scale
Multiplier
get
Corner
Radius
get
Corner
Radius
Relative
get
Fill
Color
get
Has
Fill
get
Height
get
Position
get
Raw
Height
get
Raw
Width
get
Rotation
get
Scale
get
Stroke
Alpha
get
Stroke
Color
get
Stroke
Width
get
Width
getZIndex
load
position
To
Center
replace
Media
Data
Id
scale
Down
To
Fit
serialize
set
Alpha
set
Animation
Alpha
Multiplier
set
Animation
Position
Offset
set
Animation
Rotation
Offset
set
Animation
Scale
Multiplier
set
Corner
Radius
set
Fill
Color
set
Has
Fill
set
Position
set
Rotation
set
Scale
set
Stroke
Alpha
set
Stroke
Color
set
Stroke
Width
setZIndex
update
deserialize
@rendley/sdk - v1.7.2
Loading...