API reference
Design
addAudioTrackaddElementAtCursoraddElementAtPointaddNativeElementaddPagecreateRichtextRangeeditContentgetCurrentPageContextgetDefaultPageDimensionsgetDesignMetadatagetDesignTokeninitAppElementopenDesignoverlay.registerOnCanOpenrequestExportselection.registerOnChangesetCurrentPageBackgroundui.startDragToCursorui.startDragToPointui.startDrag
Intents: data
Intents: design
Platform
appProcessappProcess.broadcastMessageappProcess.currentappProcess.current.getInfoappProcess.current.requestCloseappProcess.current.setOnDisposeappProcess.requestCloseappProcess.registerOnMessageappProcess.registerOnStateChangefeatures.isSupportedfeatures.registerOnSupportChangegetPlatformInfonotification.addToastrequestOpenExternalUrl
Stroke
API reference for the Stroke type.
This version of the API is a preview. Preview APIs are unstable and may change without warning. You can't release public apps using this API until it's stable.
Represents an outline, such as the border of an element.
Properties
weight
number
Required
The weight (thickness) of the stroke.
Minimum: 0
Maximum: 100
colorContainer
object
Read-onlyRequired
The color of the stroke.
ref
ColorFill
Required
A solid color that fills an interior.
type
string
Read-onlyRequired
The type of color.
This must be "solid"
.
color
string
Required
The color of the fill.
This must be a valid, six-digit hex code, prefixed with a #
symbol.
- Must be six characters long.
- Must start with a
#
. - Must use lowercase letters.
Example
"#ff0099"
TS
Represents something that's not supported by the Apps SDK.
type
string
Read-onlyRequired
This must be "unsupported"
.
set
function
Required
Parameters
state
SolidFillState
Required
A state that creates a solid color fill.
type
string
Read-onlyRequired
The type of color.
This must be "solid"
.
color
string
Required
The color of the fill.
This must be a valid, six-digit hex code, prefixed with a #
symbol.
- Must be six characters long.
- Must start with a
#
. - Must use lowercase letters.
Example
"#ff0099"
TS
Returns
void