API reference
Design
addAudioTrackaddElementAtCursoraddElementAtPointaddNativeElementaddPagecreateRichtextRangeeditContentgetCurrentPageContextgetDefaultPageDimensionsgetDesignTokeninitAppElementopenDesignoverlay.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
ReadableList
API reference for the ReadableList type.
A list that cannot be changed.
Type Parameters
• M
Methods
count
function
RequiredGets the number of items in the list.
Returns
The number of items.
number
toArray
function
RequiredConverts the list to an array.
Returns
An array containing all items. The items are the same as in the list.
readonly M
[]
forEach
function
RequiredExecutes a function for each item in the list.
Parameters
callback
ForEachCallback<M>
RequiredThe function to run for each item.
Parameters
item
M
RequiredThe current item in the list.
index
number
RequiredThe index of the current item.
Returns
void
Returns
void
filter
function
RequiredCreates a new array with items that pass a test.
Parameters
filter
FilterPredicate<M>
RequiredA function that tests each item. Returns true
to keep the item.
Parameters
item
M
RequiredThe item to test.
Returns
true
if the item should be included, otherwise false
.
boolean
Returns
An array of items that passed the test.
readonly M
[]