Editor Extension SDK Reference
The Editor Extension SDK is a TypeScript library that provides access to Lucid's core application for editor extensions built using the Extension API.
Classes
BaseFieldTypeArray<Type>
core/data/fieldtypedefinition/fieldtypearray.BaseFieldTypeArray
Type parameters
Name |
---|
|
Hierarchy
-
BaseFieldTypeArray
Constructors
constructor
• new BaseFieldTypeArray<
Type parameters
Name |
---|
|
Parameters
Name | Type |
---|---|
|
|
Properties
validTypesArray
•
Methods
getInnerNonArrayTypes
▸ getInnerNonArrayTypes():
Returns
getInnerTypes
▸ getInnerTypes():
Returns
serializeType
▸
Parameters
Name | Type |
---|---|
|
|
Returns
toJSON
▸ toJSON():
Returns
BlockProxy
document/blockproxy.BlockProxy
A block is a single shape on the document. A BlockProxy provides an interface to read and write the content of an existing block, and is typically accessed through PageProxy.blocks or another similar mechanism.
Hierarchy
-
↳
BlockProxy
Constructors
constructor
• new BlockProxy(
Parameters
Name | Type | Description |
---|---|---|
|
|
ID of this item |
|
|
Inherited from
Properties
allShapeData
•
All shape data accessible on this element, including shape data inherited from the page or a containing group. This collection is read-only.
Inherited from
client
•
Inherited from
id
•
Inherited from
properties
•
All properties available on this element, organized by name. Not all properties are writeable (e.g. "ClassName" on a block). To move or resize elements, use setLocation() or setBoundingBox() or offset() instead.
Inherited from
referenceKeys
•
The set of reference keys, organized by their ID, which can be either a string or number.
For more information, see the Developer Guide.
Inherited from
shapeData
•
The shape data set directly on this element (not including any shape data inherited from the page or a containing group).
Inherited from
textAreas
•
The plain text in each of the text areas on this item, organized by text area name.
Inherited from
textStyles
•
The text style in each of the text areas on this item, organized by text area name.
Inherited from
Methods
applyRule
▸ applyRule(
Parameters
Name | Type | Description |
---|---|---|
|
|
Rule to apply to this item |
Returns
Inherited from
changeZOrder
▸ changeZOrder(
Parameters
Name | Type | Description |
---|---|---|
|
|
How to adjust the Z order of this item relative to the other items it overlaps on the page |
Returns
Inherited from
delete
▸ delete():
Delete this item from the document
Returns
Inherited from
executeFormula
▸ executeFormula(
Execute a formula in the context of this element
Parameters
Name | Type | Description |
---|---|---|
|
|
The formula text, e.g. "@a + @b" to add together the shape data values a and b. |
Returns
The result of the formula, or an error.
Inherited from
exists
▸ exists():
Returns
Inherited from
getBoundingBox
▸ getBoundingBox():
Returns
The bounding box of this item relative to its containing page. As pages may change size to fit the content on them, note that these coordinates may be negative or very large.
If this is a rotated block, the bounding box returned here is where the block would be if it were unrotated.
Inherited from
getClassName
▸ getClassName():
Returns
The class name of this block. This name is not necessarily human-readable, and will remain consistent over time, e.g. "ProcessBlock"..
getConnectedLines
▸ getConnectedLines():
Returns
An array of lines that have one or both endpoints connected to this block.
getContainers
▸ getContainers():
Returns
An array of blocks whose bounding boxes contain this item's upper-left corner
Inherited from
getLineWidth
▸ getLineWidth():
Returns
The line width used by most kinds of blocks to render their outline.
getLocation
▸ getLocation():
Returns
The x/y location of this item
Name | Type |
---|---|
|
|
|
|
Inherited from
getPage
▸ getPage():
Returns
The page containing this item
Inherited from
getPageId
▸ getPageId():
Returns
The ID of the page containing this item
Inherited from
getRotatedBoundingBox
▸ getRotatedBoundingBox():
Returns
An axis-aligned bounding box containing this full item after any rotation it might have
getRotation
▸ getRotation():
Returns
The amount this block is rotated around its own center, in radians.
getShadow
▸ getShadow():
Returns
The current drop shadow on this block, or undefined if no shadow is set
getSimpleStaticDataGraphic
▸ getSimpleStaticDataGraphic():
Returns
Settings for the simple static data graphic currently set on this block, or undefined if no simple data graphic is currently set. Note that if a data graphic exists that is not an icon, this will return undefined. This function will not consider data graphics set via conditional formatting rules.
linkText
▸ linkText(
Link a text area to a data field, so that editing the text area will also update the associated data, and vice versa.
To use this, first establish a reference key on this block with setReferenceKey.
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
Returns
lockAspectRatio
▸ lockAspectRatio():
Lock this block's aspect ratio to its current value. This can be reversed with unlockAspectRatio.
Returns
measureText
▸ measureText(
Measure the amount of space necessary to render the text in the given text area, given a width to measure that text within.
Parameters
Name | Type | Description |
---|---|---|
|
|
Name of the text area whose content we should measure |
|
|
Width of the area in which to measure this text. The result will usually be no wider than this, but if a single word is long enough to go beyond this maxWidth, the width of that word will be returned. |
Returns
The size of rectangle necessary to render this text area's content.
Inherited from
offset
▸ offset(
Offset this item in the given direction by the given amount.
Parameters
Name | Type | Description |
---|---|---|
|
|
The type of offset to apply to this item |
|
|
The amount to offset |
Returns
Inherited from
removeReferenceKey
▸ removeReferenceKey(
Remove the specified reference key from this element.
Parameters
Name | Type |
---|---|
|
|
Returns
Inherited from
setBoundingBox
▸ setBoundingBox(
Attempts to move and resize this item to fit into the given bounding box. If this item (or another item it contains) has size or aspect ratio restrictions, it may not be possible to fit the requested location exactly.
This is done by moving this item to the requested location, then attempting to resize it from the bottom-right corner to the requested size.
Parameters
Name | Type | Description |
---|---|---|
|
|
The bounding box to attempt to make this item fill |
Returns
Inherited from
setDataSyncStateIconPosition
▸ setDataSyncStateIconPosition(
Parameters
Name | Type | Description |
---|---|---|
|
|
The postion where the data sync state icon should be displayed on the block. If this position is set to undefined then the state icon position will fallback to the default position for the block. |
Returns
setFillStyle
▸ setFillStyle(
Set the fill style used (by most kinds of blocks) to fill in their main opaque areas. This can be a string color (e.g.
Parameters
Name | Type |
---|---|
|
|
Returns
setLineWidth
▸ setLineWidth(
Parameters
Name | Type | Description |
---|---|---|
|
|
The line width to be used (by most kinds of blocks) to render this block's outline |
Returns
setLocation
▸ setLocation(
Moves this item so that its upper-left corner is positioned at the given location (prior to any rotation)
Parameters
Name | Type | Description |
---|---|---|
|
|
The target location |
Returns
Inherited from
setReferenceKey
▸ setReferenceKey(
Set a reference key on this element, replacing any existing reference at the specified key.
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
Inherited from
setRotation
▸ setRotation(
Parameters
Name | Type | Description |
---|---|---|
|
|
Angle the block should be rotated |
Returns
setShadow
▸ setShadow(
Parameters
Name | Type | Description |
---|---|---|
|
|
The drop shadow to set on the block, or undefined to clear the drop shadow |
Returns
setSimpleStaticDataGraphic
▸ setSimpleStaticDataGraphic(
Parameters
Name | Type | Description |
---|---|---|
|
|
Information about the static data graphic icon to set on this block. |
Returns
unapplyRule
▸ unapplyRule(
Parameters
Name | Type | Description |
---|---|---|
|
|
Rule to remove from this item |
Returns
Inherited from
unlockAspectRatio
▸ unlockAspectRatio():
Unlock the aspect ratio of this block, allowing it to be stretched vertically or horizontally independently.
Returns
CardBlockProxy
document/blockclasses/cardblockproxy.CardBlockProxy
A generic lucid card block. This shape has all of the base functionality as a BlockProxy, as well as additional card specific properties.
Hierarchy
-
↳
CardBlockProxy
Constructors
constructor
• new CardBlockProxy(
Parameters
Name | Type | Description |
---|---|---|
|
|
ID of this item |
|
|
Inherited from
Properties
allShapeData
•
All shape data accessible on this element, including shape data inherited from the page or a containing group. This collection is read-only.
Inherited from
client
•
Inherited from
id
•
Inherited from
properties
•
All properties available on this element, organized by name. Not all properties are writeable (e.g. "ClassName" on a block). To move or resize elements, use setLocation() or setBoundingBox() or offset() instead.
Inherited from
referenceKeys
•
The set of reference keys, organized by their ID, which can be either a string or number.
For more information, see the Developer Guide.
Inherited from
shapeData
•
The shape data set directly on this element (not including any shape data inherited from the page or a containing group).
Inherited from
textAreas
•
The plain text in each of the text areas on this item, organized by text area name.
Inherited from
textStyles
•
The text style in each of the text areas on this item, organized by text area name.
Inherited from
classNameRegex
▪
Methods
applyRule
▸ applyRule(
Parameters
Name | Type | Description |
---|---|---|
|
|
Rule to apply to this item |
Returns
Inherited from
changeZOrder
▸ changeZOrder(
Parameters
Name | Type | Description |
---|---|---|
|
|
How to adjust the Z order of this item relative to the other items it overlaps on the page |
Returns
Inherited from
delete
▸ delete():
Delete this item from the document
Returns
Inherited from
executeFormula
▸ executeFormula(
Execute a formula in the context of this element
Parameters
Name | Type | Description |
---|---|---|
|
|
The formula text, e.g. "@a + @b" to add together the shape data values a and b. |
Returns
The result of the formula, or an error.
Inherited from
exists
▸ exists():
Returns
Inherited from
getAssignee
▸ getAssignee():
Returns
getBoundingBox
▸ getBoundingBox():
Returns
The bounding box of this item relative to its containing page. As pages may change size to fit the content on them, note that these coordinates may be negative or very large.
If this is a rotated block, the bounding box returned here is where the block would be if it were unrotated.
Inherited from
getClassName
▸ getClassName():
Returns
The class name of this block. This name is not necessarily human-readable, and will remain consistent over time, e.g. "ProcessBlock"..
Inherited from
getConnectedLines
▸ getConnectedLines():
Returns
An array of lines that have one or both endpoints connected to this block.
Inherited from
getContainers
▸ getContainers():
Returns
An array of blocks whose bounding boxes contain this item's upper-left corner
Inherited from
getDescription
▸ getDescription():
Returns
getEndTime
▸ getEndTime():
Returns
getEstimate
▸ getEstimate():
Returns
getLineWidth
▸ getLineWidth():
Returns
The line width used by most kinds of blocks to render their outline.
Inherited from
getLocation
▸ getLocation():
Returns
The x/y location of this item
Name | Type |
---|---|
|
|
|
|
Inherited from
getPage
▸ getPage():
Returns
The page containing this item
Inherited from
getPageId
▸ getPageId():
Returns
The ID of the page containing this item
Inherited from
getRotatedBoundingBox
▸ getRotatedBoundingBox():
Returns
An axis-aligned bounding box containing this full item after any rotation it might have
Inherited from
BlockProxy.getRotatedBoundingBox
getRotation
▸ getRotation():
Returns
The amount this block is rotated around its own center, in radians.
Inherited from
getShadow
▸ getShadow():
Returns
The current drop shadow on this block, or undefined if no shadow is set
Inherited from
getSimpleStaticDataGraphic
▸ getSimpleStaticDataGraphic():
Returns
Settings for the simple static data graphic currently set on this block, or undefined if no simple data graphic is currently set. Note that if a data graphic exists that is not an icon, this will return undefined. This function will not consider data graphics set via conditional formatting rules.
Inherited from
BlockProxy.getSimpleStaticDataGraphic
getStartTime
▸ getStartTime():
Returns
getStatus
▸ getStatus():
Returns
getTitle
▸ getTitle():
Returns
linkText
▸ linkText(
Link a text area to a data field, so that editing the text area will also update the associated data, and vice versa.
To use this, first establish a reference key on this block with setReferenceKey.
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
Returns
Inherited from
lockAspectRatio
▸ lockAspectRatio():
Lock this block's aspect ratio to its current value. This can be reversed with unlockAspectRatio.
Returns
Inherited from
measureText
▸ measureText(
Measure the amount of space necessary to render the text in the given text area, given a width to measure that text within.
Parameters
Name | Type | Description |
---|---|---|
|
|
Name of the text area whose content we should measure |
|
|
Width of the area in which to measure this text. The result will usually be no wider than this, but if a single word is long enough to go beyond this maxWidth, the width of that word will be returned. |
Returns
The size of rectangle necessary to render this text area's content.
Inherited from
offset
▸ offset(
Offset this item in the given direction by the given amount.
Parameters
Name | Type | Description |
---|---|---|
|
|
The type of offset to apply to this item |
|
|
The amount to offset |
Returns
Inherited from
removeReferenceKey
▸ removeReferenceKey(
Remove the specified reference key from this element.
Parameters
Name | Type |
---|---|
|
|
Returns
Inherited from
setAssignee
▸ setAssignee(
Parameters
Name | Type | Description |
---|---|---|
|
|
The assignee that you want to set for this card. |
Returns
setBoundingBox
▸ setBoundingBox(
Attempts to move and resize this item to fit into the given bounding box. If this item (or another item it contains) has size or aspect ratio restrictions, it may not be possible to fit the requested location exactly.
This is done by moving this item to the requested location, then attempting to resize it from the bottom-right corner to the requested size.
Parameters
Name | Type | Description |
---|---|---|
|
|
The bounding box to attempt to make this item fill |
Returns
Inherited from
setDataSyncStateIconPosition
▸ setDataSyncStateIconPosition(
Parameters
Name | Type | Description |
---|---|---|
|
|
The postion where the data sync state icon should be displayed on the block. If this position is set to undefined then the state icon position will fallback to the default position for the block. |
Returns
Inherited from
BlockProxy.setDataSyncStateIconPosition
setDescription
▸ setDescription(
Parameters
Name | Type | Description |
---|---|---|
|
|
The description that you want to set for this card. |
Returns
setEndTime
▸ setEndTime(
Parameters
Name | Type | Description |
---|---|---|
|
|
The end time that you want to set for this card. |
Returns
setEstimate
▸ setEstimate(
Parameters
Name | Type | Description |
---|---|---|
|
|
The estimate that you want to set for this card. |
Returns
setFillStyle
▸ setFillStyle(
Set the fill style used (by most kinds of blocks) to fill in their main opaque areas. This can be a string color (e.g.
Parameters
Name | Type |
---|---|
|
|
Returns
Inherited from
setLineWidth
▸ setLineWidth(
Parameters
Name | Type | Description |
---|---|---|
|
|
The line width to be used (by most kinds of blocks) to render this block's outline |
Returns
Inherited from
setLocation
▸ setLocation(
Moves this item so that its upper-left corner is positioned at the given location (prior to any rotation)
Parameters
Name | Type | Description |
---|---|---|
|
|
The target location |
Returns
Inherited from
setReferenceKey
▸ setReferenceKey(
Set a reference key on this element, replacing any existing reference at the specified key.
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
Inherited from
setRotation
▸ setRotation(
Parameters
Name | Type | Description |
---|---|---|
|
|
Angle the block should be rotated |
Returns
Inherited from
setShadow
▸ setShadow(
Parameters
Name | Type | Description |
---|---|---|
|
|
The drop shadow to set on the block, or undefined to clear the drop shadow |
Returns
Inherited from
setSimpleStaticDataGraphic
▸ setSimpleStaticDataGraphic(
Parameters
Name | Type | Description |
---|---|---|
|
|
Information about the static data graphic icon to set on this block. |
Returns
Inherited from
BlockProxy.setSimpleStaticDataGraphic
setStartTime
▸ setStartTime(
Parameters
Name | Type | Description |
---|---|---|
|
|
The start time that you want to set for this card. |
Returns
setStatus
▸ setStatus(
Parameters
Name | Type | Description |
---|---|---|
|
|
The status that you want to set for this card. |
Returns
setTitle
▸ setTitle(
Parameters
Name | Type | Description |
---|---|---|
|
|
The title that you want to set for this card. |
Returns
unapplyRule
▸ unapplyRule(
Parameters
Name | Type | Description |
---|---|---|
|
|
Rule to remove from this item |
Returns
Inherited from
unlockAspectRatio
▸ unlockAspectRatio():
Unlock the aspect ratio of this block, allowing it to be stretched vertically or horizontally independently.
Returns
Inherited from
CardConfigProxy
document/documentelement/cardconfigproxy.CardConfigProxy
Base class for anything on a Lucid document that has an ID and properties.
Hierarchy
-
↳
CardConfigProxy
Constructors
constructor
• new CardConfigProxy(
Parameters
Name | Type | Description |
---|---|---|
|
|
The ID of this card config element |
|
|
Overrides
DocumentElementProxy.constructor
Properties
client
•
Inherited from
id
•
Inherited from
properties
•
All properties available on this element, organized by name. Not all properties are writeable (e.g. "ClassName" on a block). To move or resize elements, use setLocation() or setBoundingBox() or offset() instead.
Inherited from
DocumentElementProxy.properties
CollectionEnumFieldType
core/data/fieldtypedefinition/collectionenumfieldtype.CollectionEnumFieldType
Constructors
constructor
• new CollectionEnumFieldType(
Parameters
Name | Type |
---|---|
|
|
Properties
collectionId
•
PRIMARY_KEY
▪
Specifies which groovy field name is used as the primary key.
This should be kept in sync with GroovyFieldNames in FieldType.scala
Methods
toJSON
▸ toJSON():
Returns
CollectionProxy
data/collectionproxy.CollectionProxy
A collection is a set of data items, each with the same set of fields (though some data items may not have all fields defined).
Hierarchy
-
↳
CollectionProxy
Constructors
constructor
• new CollectionProxy(
Parameters
Name | Type | Description |
---|---|---|
|
|
ID of this collection on the current document |
|
|
Overrides
PropertyStoreProxy.constructor
Properties
client
•
Inherited from
id
•
Inherited from
items
•
The data items in this collection, organized by their primary key. The primary key is usually calculated from the content of the data item, but may differ from the expected value in some circumstances, e.g. if there are two data items that would have the same primary key.
properties
•
All properties available on this element, organized by name. Not all properties are writeable (e.g. "ClassName" on a block). To move or resize elements, use setLocation() or setBoundingBox() or offset() instead.
Inherited from
Methods
getBranchedFrom
▸ getBranchedFrom():
Some data collections may have local branches on the document, to store the set of changes that have been made by the user since the time the data was last refreshed from its source. For those collections, you can use this method to get the original data collection as it was last imported or refreshed.
Returns
the original collection from which this collection was branched, or undefined if this collection is not a branch
getFields
▸ getFields():
Returns
an array of field names that are accessible on the items in this collection
getLocalChanges
▸ getLocalChanges():
Returns
information about any changes made locally to the collection that have not been synchronized with the external data source.
getName
▸ getName():
Returns
a human-readable name for this collection
getSchema
▸ getSchema():
Returns
getSyncCollectionId
▸ getSyncCollectionId():
Returns
patchItems
▸ patchItems(
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
|
|
Returns
ColorLegendEntryProxy
document/blockclasses/legendblockproxy.ColorLegendEntryProxy
Hierarchy
-
↳
ColorLegendEntryProxy
Constructors
constructor
• new ColorLegendEntryProxy(
Parameters
Name | Type |
---|---|
|
|
|
|
Overrides
Properties
index
•
Inherited from
legend
•
Inherited from
type
•
Inherited from
Methods
getColor
▸ getColor():
Returns
getText
▸ getText():
Returns
Inherited from
setText
▸ setText(
Parameters
Name | Type |
---|---|
|
|
Returns
Inherited from
CustomBlockProxy
document/blockclasses/customblockproxy.CustomBlockProxy
Custom shapes defined in extension packages (or other stencil-providing means like Visio stencil imports) are represented by a CustomBlockProxy.
Hierarchy
-
↳
CustomBlockProxy
Constructors
constructor
• new CustomBlockProxy(
Parameters
Name | Type | Description |
---|---|---|
|
|
ID of this item |
|
|
Inherited from
Properties
allShapeData
•
All shape data accessible on this element, including shape data inherited from the page or a containing group. This collection is read-only.
Inherited from
client
•
Inherited from
id
•
Inherited from
properties
•
All properties available on this element, organized by name. Not all properties are writeable (e.g. "ClassName" on a block). To move or resize elements, use setLocation() or setBoundingBox() or offset() instead.
Inherited from
referenceKeys
•
The set of reference keys, organized by their ID, which can be either a string or number.
For more information, see the Developer Guide.
Inherited from
shapeData
•
The shape data set directly on this element (not including any shape data inherited from the page or a containing group).
Inherited from
textAreas
•
The plain text in each of the text areas on this item, organized by text area name.
Inherited from
textStyles
•
The text style in each of the text areas on this item, organized by text area name.
Inherited from
classNameRegex
▪
Methods
applyRule
▸ applyRule(
Parameters
Name | Type | Description |
---|---|---|
|
|
Rule to apply to this item |
Returns
Inherited from
changeZOrder
▸ changeZOrder(
Parameters
Name | Type | Description |
---|---|---|
|
|
How to adjust the Z order of this item relative to the other items it overlaps on the page |
Returns
Inherited from
delete
▸ delete():
Delete this item from the document
Returns
Inherited from
executeFormula
▸ executeFormula(
Execute a formula in the context of this element
Parameters
Name | Type | Description |
---|---|---|
|
|
The formula text, e.g. "@a + @b" to add together the shape data values a and b. |
Returns
The result of the formula, or an error.
Inherited from
exists
▸ exists():
Returns
Inherited from
getBoundingBox
▸ getBoundingBox():
Returns
The bounding box of this item relative to its containing page. As pages may change size to fit the content on them, note that these coordinates may be negative or very large.
If this is a rotated block, the bounding box returned here is where the block would be if it were unrotated.
Inherited from
getClassName
▸ getClassName():
Returns
The class name of this block. This name is not necessarily human-readable, and will remain consistent over time, e.g. "ProcessBlock"..
Inherited from
getConnectedLines
▸ getConnectedLines():
Returns
An array of lines that have one or both endpoints connected to this block.
Inherited from
getContainers
▸ getContainers():
Returns
An array of blocks whose bounding boxes contain this item's upper-left corner
Inherited from
getLineWidth
▸ getLineWidth():
Returns
The line width used by most kinds of blocks to render their outline.
Inherited from
getLocation
▸ getLocation():
Returns
The x/y location of this item
Name | Type |
---|---|
|
|
|
|
Inherited from
getPage
▸ getPage():
Returns
The page containing this item
Inherited from
getPageId
▸ getPageId():
Returns
The ID of the page containing this item
Inherited from
getRotatedBoundingBox
▸ getRotatedBoundingBox():
Returns
An axis-aligned bounding box containing this full item after any rotation it might have
Inherited from
BlockProxy.getRotatedBoundingBox
getRotation
▸ getRotation():
Returns
The amount this block is rotated around its own center, in radians.
Inherited from
getShadow
▸ getShadow():
Returns
The current drop shadow on this block, or undefined if no shadow is set
Inherited from
getSimpleStaticDataGraphic
▸ getSimpleStaticDataGraphic():
Returns
Settings for the simple static data graphic currently set on this block, or undefined if no simple data graphic is currently set. Note that if a data graphic exists that is not an icon, this will return undefined. This function will not consider data graphics set via conditional formatting rules.
Inherited from
BlockProxy.getSimpleStaticDataGraphic
getStencilTextAreaName
▸ getStencilTextAreaName(
Parameters
Name | Type |
---|---|
|
|
Returns
isFromStencil
▸ isFromStencil(
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
linkText
▸ linkText(
Link a text area to a data field, so that editing the text area will also update the associated data, and vice versa.
To use this, first establish a reference key on this block with setReferenceKey.
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
Returns
Inherited from
lockAspectRatio
▸ lockAspectRatio():
Lock this block's aspect ratio to its current value. This can be reversed with unlockAspectRatio.
Returns
Inherited from
measureText
▸ measureText(
Measure the amount of space necessary to render the text in the given text area, given a width to measure that text within.
Parameters
Name | Type | Description |
---|---|---|
|
|
Name of the text area whose content we should measure |
|
|
Width of the area in which to measure this text. The result will usually be no wider than this, but if a single word is long enough to go beyond this maxWidth, the width of that word will be returned. |
Returns
The size of rectangle necessary to render this text area's content.
Inherited from
offset
▸ offset(
Offset this item in the given direction by the given amount.
Parameters
Name | Type | Description |
---|---|---|
|
|
The type of offset to apply to this item |
|
|
The amount to offset |
Returns
Inherited from
removeReferenceKey
▸ removeReferenceKey(
Remove the specified reference key from this element.
Parameters
Name | Type |
---|---|
|
|
Returns
Inherited from
setBoundingBox
▸ setBoundingBox(
Attempts to move and resize this item to fit into the given bounding box. If this item (or another item it contains) has size or aspect ratio restrictions, it may not be possible to fit the requested location exactly.
This is done by moving this item to the requested location, then attempting to resize it from the bottom-right corner to the requested size.
Parameters
Name | Type | Description |
---|---|---|
|
|
The bounding box to attempt to make this item fill |
Returns
Inherited from
setDataSyncStateIconPosition
▸ setDataSyncStateIconPosition(
Parameters
Name | Type | Description |
---|---|---|
|
|
The postion where the data sync state icon should be displayed on the block. If this position is set to undefined then the state icon position will fallback to the default position for the block. |
Returns
Inherited from
BlockProxy.setDataSyncStateIconPosition
setFillStyle
▸ setFillStyle(
Set the fill style used (by most kinds of blocks) to fill in their main opaque areas. This can be a string color (e.g.
Parameters
Name | Type |
---|---|
|
|
Returns
Inherited from
setLineWidth
▸ setLineWidth(
Parameters
Name | Type | Description |
---|---|---|
|
|
The line width to be used (by most kinds of blocks) to render this block's outline |
Returns
Inherited from
setLocation
▸ setLocation(
Moves this item so that its upper-left corner is positioned at the given location (prior to any rotation)
Parameters
Name | Type | Description |
---|---|---|
|
|
The target location |
Returns
Inherited from
setReferenceKey
▸ setReferenceKey(
Set a reference key on this element, replacing any existing reference at the specified key.
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
Inherited from
setRotation
▸ setRotation(
Parameters
Name | Type | Description |
---|---|---|
|
|
Angle the block should be rotated |
Returns
Inherited from
setShadow
▸ setShadow(
Parameters
Name | Type | Description |
---|---|---|
|
|
The drop shadow to set on the block, or undefined to clear the drop shadow |
Returns
Inherited from
setSimpleStaticDataGraphic
▸ setSimpleStaticDataGraphic(
Parameters
Name | Type | Description |
---|---|---|
|
|
Information about the static data graphic icon to set on this block. |
Returns
Inherited from
BlockProxy.setSimpleStaticDataGraphic
unapplyRule
▸ unapplyRule(
Parameters
Name | Type | Description |
---|---|---|
|
|
Rule to remove from this item |
Returns
Inherited from
unlockAspectRatio
▸ unlockAspectRatio():
Unlock the aspect ratio of this block, allowing it to be stretched vertically or horizontally independently.
Returns
Inherited from
registerCustomBlockClass
▸
Parameters
Name | Type |
---|---|
|
|
Returns
DataConnector
dataconnector/dataconnector.DataConnector
Factory class to define a bunch of action handlers.
Constructors
constructor
• new DataConnector(
Parameters
Name | Type |
---|---|
|
|
Properties
actions
• actions:
routes
• routes:
Methods
defineAction
▸ defineAction<
Factory to define an action request handler
Type parameters
Name | Type |
---|---|
|
extends |
Parameters
Name | Type | Default value |
---|---|---|
|
|
|
|
|
|
|
|
|
Returns
defineAsynchronousAction
▸ defineAsynchronousAction<
Factory to define an asynchronous action request handler
Type parameters
Name | Type |
---|---|
|
extends |
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
defineRoute
▸ defineRoute(
Factory to define a route handler
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
routeDebugServer
▸ routeDebugServer(
Add a route to the given express app (or generate a new app) to serve this data connector
Parameters
Name | Type |
---|---|
|
|
Returns
runAction
▸ runAction(
Call a defined action handler and gather its serialized response
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
Returns
runDebugServer
▸ runDebugServer(
Serve this data connector as a simple express app for debugging purposes
Parameters
Name | Type |
---|---|
|
|
Returns
DataConnectorAction
dataconnector/actions/action.DataConnectorAction
Base class for actions to be performed by data connectors
Hierarchy
-
DataConnectorAction ↳
DataConnectorAsynchronousAction
Constructors
constructor
• new DataConnectorAction(
Parameters
Name | Type |
---|---|
|
|
|
|
Properties
context
• context:
name
• name:
DataConnectorActionContext
dataconnector/actions/action.DataConnectorActionContext
This holds all the contextual information about a give data action.
Constructors
constructor
• new DataConnectorActionContext(
Parameters
Name | Type | Description |
---|---|---|
|
|
The package ID of the extension that triggered this action |
|
|
The version of the extension that triggered this action |
|
|
The authorized OAuth2 credential that Lucid has for the 3rd party this extension works with |
|
|
The data connector name from manifest.json that triggered this action |
|
|
The installation id of the extension/user that triggered this action |
|
|
Set of items this document is tracking as a |
|
|
Update filter type for this document |
Properties
dataConnectorName
• dataConnectorName:
The data connector name from manifest.json that triggered this action
documentCollections
• documentCollections:
Set of items this document is tracking as a
Index signature
▪ [collectionId:
installationId
• installationId:
The installation id of the extension/user that triggered this action
packageId
•
The package ID of the extension that triggered this action
packageVersion
• packageVersion:
The version of the extension that triggered this action
updateFilterType
• updateFilterType:
Update filter type for this document
userCredential
• userCredential:
The authorized OAuth2 credential that Lucid has for the 3rd party this extension works with
DataConnectorAsynchronousAction
dataconnector/actions/action.DataConnectorAsynchronousAction
A generic "asynchronous" action to be performed by the data connector. This is an action that reports back to Lucid by calling back in the DataSourceClient rather than returning a meaningful value.
Hierarchy
-
↳
DataConnectorAsynchronousAction
Constructors
constructor
• new DataConnectorAsynchronousAction(
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
|
|
Overrides
DataConnectorAction.constructor
Properties
client
• client:
context
• context:
Inherited from
data
• data:
name
• name:
Inherited from
DataConnectorClient
dataconnector/dataconnectorclient.DataConnectorClient
Client for requests to and from Lucid
Hierarchy
-
DataConnectorClient
Constructors
constructor
• new DataConnectorClient(
Parameters
Name | Type | Default value |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Properties
urls
• urls:
Type declaration
Name | Type |
---|---|
|
|
|
|
Methods
getDataSourceClient
▸ getDataSourceClient(
Get a client for DataSource related requests to Lucid
Parameters
Name | Type |
---|---|
|
|
Returns
getPublicKey
▸ getPublicKey():
Get Lucid's public key to verify requests came from Lucid if you don't want to use the SignatureValidator. Maybe you're not running in a NodeJS environment
Returns
getSignatureValidator
▸ getSignatureValidator():
Get a validator to prove a given request came from Lucid
Returns
parseActions
▸ parseActions(
Validate and parse an action request from Lucid
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
Returns
DataConnectorManageWebhookAction
dataconnector/actions/action.DataConnectorManageWebhookAction
A "synchronous" style action indicating that Lucid would like to setup a webhook in the third party.
Hierarchy
-
↳
DataConnectorManageWebhookAction
Constructors
constructor
• new DataConnectorManageWebhookAction(
Parameters
Name | Type | Description |
---|---|---|
|
|
- |
|
|
Token to be added to the newly created webhook so that when it fires it will have permissions to make changes to Lucid documents. |
|
|
A list of existing webhooks so you can be more granular about what you track. You may also find it useful to delete some of the existing webhooks. The response back to Lucid should include all existing webhooks (newly created or any of these that were not deleted). |
Overrides
DataConnectorAction.constructor
Properties
context
• context:
Inherited from
name
• name:
Inherited from
webhookToken
• webhookToken:
Token to be added to the newly created webhook so that when it fires it will have permissions to make changes to Lucid documents.
webhooks
• webhooks:
A list of existing webhooks so you can be more granular about what you track. You may also find it useful to delete some of the existing webhooks. The response back to Lucid should include all existing webhooks (newly created or any of these that were not deleted).
DataConnectorPatchAction
dataconnector/actions/action.DataConnectorPatchAction
A patch action is a kind of synchronous style action. It occurs when data is changed in the Lucid editor. All the changes are collected in the patches field.
Hierarchy
-
↳
DataConnectorPatchAction
Constructors
constructor
• new DataConnectorPatchAction(
Parameters
Name | Type | Default value | Description |
---|---|---|---|
|
|
|
- |
|
|
|
changes applied by Lucid |
|
|
|
- |
|
|
|
- |
Overrides
DataConnectorAction.constructor
Properties
client
• client:
context
• context:
Inherited from
name
• name:
Inherited from
patches
• patches:
changes applied by Lucid
DataConnectorRequestError
dataconnector/dataconnector.DataConnectorRequestError
Thrown by any failable http APIs
Hierarchy
-
Error ↳
DataConnectorRequestError
Constructors
constructor
• new DataConnectorRequestError(
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
|
|
Overrides
Error.constructor
Properties
message
• message:
Inherited from
Error.message
name
• name:
Inherited from
Error.name
response
• response:
stack
•
Inherited from
Error.stack
status
• status:
statusText
•
Methods
toString
▸ toString():
Returns
DataConnectorRequestState
dataconnector/dataconnector.DataConnectorRequestState
Constructors
constructor
• new DataConnectorRequestState(
Parameters
Name | Type |
---|---|
|
|
Properties
itemRekeyer
• itemRekeyer:
DataConnectorResponseError
dataconnector/dataconnector.DataConnectorResponseError
Thrown by any APIs the client didn't recognize when parsing
Hierarchy
-
Error ↳
DataConnectorResponseError
Constructors
constructor
• new DataConnectorResponseError(
Parameters
Name | Type |
---|---|
|
|
|
|
Overrides
Error.constructor
Properties
message
• message:
Inherited from
Error.message
name
• name:
Inherited from
Error.name
response
• response:
stack
•
Inherited from
Error.stack
DataConnectorRunError
dataconnector/dataconnector.DataConnectorRunError
Throw this from an action request handler to produce a non-200 response code and not have to return the expected result type
Hierarchy
-
Error ↳
DataConnectorRunError
Constructors
constructor
• new DataConnectorRunError(
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
Overrides
Error.constructor
Properties
body
• body:
message
• message:
Inherited from
Error.message
name
• name:
Inherited from
Error.name
stack
•
Inherited from
Error.stack
status
• status:
Methods
withMessage
▸
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
DataConnectorSynchronousAction
dataconnector/actions/action.DataConnectorSynchronousAction
A generic "synchronous" action to be performed by the data connector.
Hierarchy
-
↳
DataConnectorSynchronousAction
Constructors
constructor
• new DataConnectorSynchronousAction(
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
Overrides
DataConnectorAction.constructor
Properties
context
• context:
Inherited from
data
• data:
name
• name:
Inherited from
DataError
data/dataerror.DataError
The requested data or formula result couldn't be calculated.
Constructors
constructor
• new DataError(
Parameters
Name | Type | Description |
---|---|---|
|
|
A human-readable description of the reason why the error occurred |
|
|
The kind of error that occurred |
Properties
error
•
type
•
DataItemProxy
data/dataitemproxy.DataItemProxy
One data item in a collection, consisting of key-value pairs
Hierarchy
-
DataItemProxy
Constructors
constructor
• new DataItemProxy(
Parameters
Name | Type | Description |
---|---|---|
|
|
The current primary key of the data item. This may change if the fields on the data item change, rendering this proxy inoperable. |
|
|
The collection that contains this data item. |
|
|
Properties
collection
•
fields
•
The fields on this data item, organized by their name.
primaryKey
•
Methods
exists
▸ exists():
Returns
True if a data item exists in this collection at this primary key
DataProxy
data/dataproxy.DataProxy
The DataProxy class gives access to the tabular and graph data on the current Lucid document.
Data collections are organized into data sources. One data sources is typically produced for each data import, and may contain multiple collections.
Constructors
constructor
• new DataProxy(
Parameters
Name | Type |
---|---|
|
|
Properties
dataSources
•
Data sources on the current document, organized by their ID on this document. The ID will remain stable for as long as the data source exists on this document, but will vary from the data source ID on other documents if the same data is imported there.
Methods
addDataSource
▸ addDataSource(
Creates a new empty data source, which you can then add collections of data to.
Parameters
Name | Type | Description |
---|---|---|
|
|
Human-readable name of the new data source |
|
|
Any configuration values that might be useful to reference later, such as the upstream origin of this data source |
Returns
the newly created data source
DataSourceClient
dataconnector/datasourceclient.DataSourceClient
Authenticated client for DataSource related requests to Lucid.
Hierarchy
-
DataSourceClient
Constructors
constructor
• new DataSourceClient(
Parameters
Name | Type | Default value |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Methods
update
▸ update(
Create or update a datasource. If you create a new collection it must be fully specified in terms of schema and and items. If it's just an update then the schema can be omitted (if unchanged) and items that already exist can be partial.
Parameters
Name | Type |
---|---|
|
|
Returns
DataSourceProxy
data/datasourceproxy.DataSourceProxy
A data source represents a set of related data collections on a document. Typically one data source is produced for each data import.
Hierarchy
-
↳
DataSourceProxy
Constructors
constructor
• new DataSourceProxy(
Parameters
Name | Type | Description |
---|---|---|
|
|
ID of the dataSource on the current document |
|
|
Overrides
PropertyStoreProxy.constructor
Properties
client
•
Inherited from
collections
•
The set of data collections in this data source, organized by ID on this document. The IDs will remain stable for as long as the collection exists on this document, but will vary from the collection ID on other documents if the same data is imported there.
id
•
Inherited from
properties
•
All properties available on this element, organized by name. Not all properties are writeable (e.g. "ClassName" on a block). To move or resize elements, use setLocation() or setBoundingBox() or offset() instead.
Inherited from
Methods
addCollection
▸ addCollection(
Create a new collection as part of this data source.
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
The newly created collection
getName
▸ getName():
Returns
A human-readable name for this data source
getSourceConfig
▸ getSourceConfig():
Returns
The source configuration values set when this data source was created
DocumentElementProxy
document/documentelement/documentelementproxy.DocumentElementProxy
Base class for anything on a Lucid document that has an ID and properties.
Hierarchy
-
↳
DocumentElementProxy ↳↳
RuleProxy
Constructors
constructor
• new DocumentElementProxy(
Parameters
Name | Type | Description |
---|---|---|
|
|
The ID of this document element |
|
|
Overrides
PropertyStoreProxy.constructor
Properties
client
•
Inherited from
id
•
Inherited from
properties
•
All properties available on this element, organized by name. Not all properties are writeable (e.g. "ClassName" on a block). To move or resize elements, use setLocation() or setBoundingBox() or offset() instead.
Inherited from
DocumentProxy
document/documentproxy.DocumentProxy
The currently-open Lucid document
Hierarchy
-
↳
DocumentProxy
Constructors
constructor
• new DocumentProxy(
Parameters
Name | Type |
---|---|
|
|
Overrides
Properties
allShapeData
•
All shape data accessible on this element, including shape data inherited from the page or a containing group. This collection is read-only.
Inherited from
cardIntegrationConfigs
•
client
•
Inherited from
id
•
Inherited from
pages
•
The set of pages on this document, organized by ID
properties
•
All properties available on this element, organized by name. Not all properties are writeable (e.g. "ClassName" on a block). To move or resize elements, use setLocation() or setBoundingBox() or offset() instead.
Inherited from
referenceKeys
•
The set of reference keys, organized by their ID, which can be either a string or number.
For more information, see the Developer Guide.
Inherited from
rules
•
shapeData
•
The shape data set directly on this element (not including any shape data inherited from the page or a containing group).
Inherited from
Methods
addPage
▸ addPage(
Add a new page to the current document
Parameters
Name | Type | Description |
---|---|---|
|
|
Definition of the page to add |
Returns
The created page
addRule
▸ addRule(
Parameters
Name | Type |
---|---|
|
|
Returns
allBlocks
▸ allBlocks():
An iterator over all blocks on all pages of the document
Returns
allLines
▸ allLines():
An iterator over all lines on all pages of the document
Returns
duplicateItems
▸ duplicateItems(
Parameters
Name | Type |
---|---|
|
|
Returns
executeFormula
▸ executeFormula(
Execute a formula in the context of this element
Parameters
Name | Type | Description |
---|---|---|
|
|
The formula text, e.g. "@a + @b" to add together the shape data values a and b. |
Returns
The result of the formula, or an error.
Inherited from
exists
▸ exists():
Returns
Inherited from
getTitle
▸ getTitle():
Returns
The title of this document
hookAllChanges
▸ hookAllChanges(
Infrequently, you may need to watch for any changes to the document. These changes may be the local user adding content, or a data integration sending updated records to a data collection, or a remote user hitting undo, or any user entering or exiting an intra-document mutex.
Because these changes may happen rapidly, the callback you provide here will only be called on a heavily-debounced schedule. The callback will happen between 1-10 seconds after changes are made to the document, depending on the frequency with which changes are happening.
Parameters
Name | Type |
---|---|
|
() => |
Returns
A handle that can be passed into
hookCreateItems
▸ hookCreateItems(
Watch for new blocks, lines, or groups added to this document. The callback will be called with new items created by the current user, but will not be called with items created
- As part of a generated diagram, e.g. org chart
- By another user on the same document
Parameters
Name | Type |
---|---|
|
( |
Returns
A handle that can be passed to
hookDeleteItems
▸ hookDeleteItems(
Watch for new blocks, lines, or groups deleted from this document. The callback will be called with items deleted by the current user, but will not be called with items deleted
- As part of a generated diagram, e.g. org chart
- By another user on the same document
Parameters
Name | Type |
---|---|
|
( |
Returns
A handle that can be passed to
removeReferenceKey
▸ removeReferenceKey(
Remove the specified reference key from this element.
Parameters
Name | Type |
---|---|
|
|
Returns
Inherited from
ElementProxy.removeReferenceKey
setReferenceKey
▸ setReferenceKey(
Set a reference key on this element, replacing any existing reference at the specified key.
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
Inherited from
setTitle
▸ setTitle(
Updates the title of this document
Parameters
Name | Type | Description |
---|---|---|
|
|
The new title for this document |
Returns
unhookAllChanges
▸ unhookAllChanges(
Parameters
Name | Type | Description |
---|---|---|
|
|
Return value from |
Returns
unhookCreateItems
▸ unhookCreateItems(
Parameters
Name | Type | Description |
---|---|---|
|
|
Return value from |
Returns
unhookDeleteItems
▸ unhookDeleteItems(
Parameters
Name | Type | Description |
---|---|---|
|
|
Return value from |
Returns
EditorClient
editorclient.EditorClient
Constructors
constructor
• new EditorClient()
Methods
actionExists
▸ actionExists(
Parameters
Name | Type | Description |
---|---|---|
|
|
name of the action to check |
Returns
true if a callback has been registered for this action; false otherwise
alert
▸ alert(
Display an alert modal to the user
Parameters
Name | Type | Description |
---|---|---|
|
|
Body text to display in the alert modal |
|
|
Title of the alert modal; defaults to the extension title specified in manifest.json |
|
|
Text for the OK button; defaults to "OK" (or a translation) |
Returns
a Promise that resolves true if the user clicks OK, false if they otherwise dismiss the modal
asyncOAuthXhr
▸ asyncOAuthXhr(
Make an asyncronous OAuth network request. The request is enqueued to eventually execute. The request may be attempted multiple times with an overall timeout of 120 seconds.
Parameters
Name | Type | Description |
---|---|---|
|
|
Name of the OAuth provider |
|
|
Settings for the request |
Returns
A promise that will either resolve or reject with an XHRResponse. If the HTTP status code is not 2xx, the promise will reject.
▸ asyncOAuthXhr(
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
▸ asyncOAuthXhr(
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
awaitDataImport
▸ awaitDataImport(
Parameters
Name | Type | Default value |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns
canEditPackageSettings
▸ canEditPackageSettings():
Returns
True if the current user is allowed to edit package settings on this installation of this extension (if any settings exist), or false otherwise.
confirm
▸ confirm(
Display a confirm modal to the user
Parameters
Name | Type | Description |
---|---|---|
|
|
Body text to display in the alert modal |
|
|
Title of the alert modal; defaults to the extension title specified in manifest.json |
|
|
Text for the OK button; defaults to "OK" (or a translation) |
|
|
Text for the Cancel button; defaults to "Cancel" (or a translation) |
Returns
a Promise that resolves true if the user clicks OK, false if they click Cancel or otherwise dismiss the modal
createUserImage
▸ createUserImage(
Upload an image and return a URL that can be used for displaying that image on the canvas. Note: the URL is public - anyone with the URL can access the image.
Parameters
Name | Type | Description |
---|---|---|
|
|
The media type, e.g. 'image/png' |
|
|
The binary image contents, or a base64-encoded string |
Returns
A promise that resolves with the URL of the created image.
deleteAction
▸ deleteAction(
Remove the callback for a given action. If the action is later invoked, nothing will happen.
Parameters
Name | Type | Description |
---|---|---|
|
|
name of the action to unregister |
Returns
download
▸ download(
Initiate a browser file download of custom content
Parameters
Name | Type | Description |
---|---|---|
|
|
Filename of the downloaded file |
|
|
The content to put into the file, either in plain text or as base64-encoded binary data |
|
|
The MIME type to tell the browser it is downloading |
|
|
If true, base64 decode the data before downloading it |
Returns
duplicatePages
▸ duplicatePages(
Duplicates one or more pages of the current document as new pages.
Parameters
Name | Type | Description |
---|---|---|
|
|
An array of zero-indexed page indices to duplicate from the current document |
Returns
a promise that resolves to void when the pages have been duplicated or the the duplication failed
getBlockProxy
▸ getBlockProxy(
Create and return a proxy for accessing a block with the given ID. If the block is of a type that has a specific proxy implementation (e.g. an ERD block) then a specialized subclass of BlockProxy may be returned.
Parameters
Name | Type | Description |
---|---|---|
|
|
ID of the block to create a proxy for |
Returns
the given block
getCustomShapeDefinition
▸ getCustomShapeDefinition(
Load the requested shape library's content, and if it was found, return a block definition ready to be created.
Example usage:
const client = new EditorClient();
const viewport = new Viewport(client);
const page = viewport.getCurrentPage();
if (page) {
const def = await page.getCustomShapeDefinition('libraryName', 'shapeName');
if (def) {
//Customize the shape about to be created
def.boundingBox.x = 500;
def.boundingBox.y = 500;
//Create the shape itself
const block = page.addBlock(def);
//Set any data fields on the shape as needed
block.shapeData.set('Value', 50);
}
}
Parameters
Name | Type | Description |
---|---|---|
|
|
Name of the shape library in this extension to search for |
|
|
Name of the shape within that library to search for |
Returns
getElementProxy
▸ getElementProxy(
Parameters
Name | Type | Description |
---|---|---|
|
|
ID of the element to create a proxy for |
Returns
the given element
getItemProxy
▸ getItemProxy(
Parameters
Name | Type | Description |
---|---|---|
|
|
ID of the item to create a proxy for |
Returns
the given item
getLineProxy
▸ getLineProxy(
Parameters
Name | Type | Description |
---|---|---|
|
|
ID of the line to create a proxy for |
Returns
the given line
getOAuthClientId
▸ getOAuthClientId(
Fetch the OAuth Client Id if there is one
Parameters
Name | Type | Description |
---|---|---|
|
|
Name of the OAuth provider |
Returns
A oauth client id or undefined if it doesn't exist
getOAuthToken
▸ getOAuthToken(
Returns an OAuth token for the given provider, prompting the user to grant access if necessary
Parameters
Name | Type | Description |
---|---|---|
|
|
Name of the OAuth provider |
Returns
An oauth token, or undefined if a valid token cannot be obtained
getPackageSettings
▸ getPackageSettings():
If the extension package containing this editor extension has configurable settings, fetch the current values of those settings for this installation of this extension.
Only settings that have been set by the installing user will have a value in the map, other settings will be missing.
Returns
A promise that resolves to a map of setting names to current setting values
getPageProxy
▸ getPageProxy(
Parameters
Name | Type | Description |
---|---|---|
|
|
ID of the page to create a proxy for |
Returns
the given page
getProduct
▸ getProduct():
Get which Lucid product this editor extension has been loaded in.
Returns
importPage
▸ importPage(
Import one or pages of the specified document or template into the current document as new pages. NOTE: The indices of the pages to import will change if the pages are rearranged on the source document or template.
Parameters
Name | Type | Description |
---|---|---|
|
|
The ID of the document or template to import |
|
|
An array of zero-indexed page indices to import from the document or template |
Returns
a promise that resolves to void when the pages have been imported or the the import failed
killExtension
▸ killExtension():
Unload this extension immediately, removing any custom menu items etc., until the user refreshes the browser tab.
Returns
loadBlockClasses
▸ loadBlockClasses(
Because code for block classes are loaded incrementally, you MUST call loadBlockClasses with the given block class name (and wait for it to resolve) before attempting to create a block. If you don't, an error will be thrown.
Parameters
Name | Type | Description |
---|---|---|
|
|
the block classes to load |
Returns
a promise that resolves when the block classes can be used to create new blocks on the document
oauthXhr
▸ oauthXhr(
Make an OAuth network request. Make the request immediately and only once with a 10 second timeout.
Parameters
Name | Type | Description |
---|---|---|
|
|
Name of the OAuth provider |
|
|
Settings for the request |
Returns
A promise that will either resolve or reject with an XHRResponse. If the HTTP status code is not 2xx, the promise will reject.
▸ oauthXhr(
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
▸ oauthXhr(
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
performDataAction
▸ performDataAction(
Parameters
Name | Type |
---|---|
|
|
Returns
permanentTokenXhr
▸ permanentTokenXhr(
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
▸ permanentTokenXhr(
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
processAndClearBootstrapData
▸ processAndClearBootstrapData(
Parameters
Name | Type | Description |
---|---|---|
|
( |
A callback that processes the bootstrap data, if any, stored on the document and associated with this editor extension. If this callback is async (returns a promise), then the bootstrap data is not cleared off of the document until that promise resolves. |
|
|
If bootstrap data is available for this editor extension, this will mark the document as requiring the extension. Once marked, if the extension is not installed the user will be notified about the extension being required on document load. The minimum extension version required by the document is the version provided in the request body when creating the document. |
Returns
a promise that resolves immediately if there is no available bootstrap data, or else after the callback successfully completes. This promise will reject/throw if the callback throws or returns a promise that rejects, or if there is another editor session processing the same bootstrap data at the same time.
prompt
▸ prompt(
Display a prompt modal to the user
Parameters
Name | Type | Description |
---|---|---|
|
|
Body text to display in the alert modal |
|
|
Title of the alert modal; defaults to the extension title specified in manifest.json |
Returns
a Promise that resolves to a string if a user enters one, or undefined if they cancel
registerAction
▸ registerAction(
Register a named action. These actions can be triggered from custom UI, for example as the action of a custom menu item.
Some actions may return a value that is used by the core application, e.g. a
Throws an error if the same action name is registered multiple times.
Parameters
Name | Type | Description |
---|---|---|
|
|
name of the action |
|
( |
function to execute when this action is invoked |
Returns
registerFileUploadAction
▸ registerFileUploadAction(
Register a named action that receives file upload data. These callbacks can be used in Menu.addMenuItem as the file action.
Parameters
Name | Type | Description |
---|---|---|
|
|
The name of the action |
|
( |
Function to execute when this action is invoked |
Returns
registerUnfurlHandler
▸ registerUnfurlHandler(
Registers a handler for link unfurling.
Parameters
Name | Type | Description |
---|---|---|
|
|
The domain |
|
|
The callbacks to call when a link matching the domain is pasted. |
Returns
reloadExtension
▸ reloadExtension():
Unload this extension, and then re-execute it.
Returns
sendCommand
▸ sendCommand<
Execute an API command. This is the low-level API that most of this SDK wraps. It is not expected that you should ever need to use this directly.
Type parameters
Name | Type |
---|---|
|
extends
|
Parameters
Name | Type | Description |
---|---|---|
|
|
name of the API command to execute |
|
|
data to pass to the API command |
Returns
the output of the given API command
setPackageSettings
▸ setPackageSettings(
If the extension package containing this editor extension has configurable settings, set the value of those settings for this installation of this extension. A subset of setting values can be provided to update those values while leaving others unchanged.
If the user does not have permission to change settings on this installation of this extension, or if no settings exist, an error is thrown.
Parameters
Name | Type |
---|---|
|
|
Returns
showPackageSettingsModal
▸ showPackageSettingsModal():
If the extension package containing this editor extension has configurable settings, show a standard modal allowing the user to view or change those settings.
If the user does not have permission to change settings on this installation of this extension, or if no settings exist, an error is thrown.
Returns
A promise that resolves when the user closes the settings modal.
triggerAuthFlow
▸ triggerAuthFlow(
Parameters
Name | Type |
---|---|
|
|
Returns
tryGetItemProxy
▸ tryGetItemProxy(
Parameters
Name | Type | Description |
---|---|---|
|
|
ID of the item to create a proxy for |
Returns
the given item, or undefined if the item does not exist or an error occurs
withIntraDocumentMutex
▸ withIntraDocumentMutex(
Executes the given callback within a mutex scoped to the current document, extension, and the given name. If another editor session currently has the given mutex name locked within the same extension package ID on this same document, this function's returned promise will resolve to false. Otherwise, the mutex will be locked for the duration of the callback and the returned promise will resolve to true.
Parameters
Name | Type | Description |
---|---|---|
|
|
Name of the intra-document mutex to attempt to lock |
|
() => |
Code to execute while the mutex is locked, if it is successfully locked |
Returns
A promise resolving to a boolean indicating whether the mutex was successfully locked
withSilentActions
▸ withSilentActions(
Parameters
Name | Type | Description |
---|---|---|
|
() => |
Callback that will be executed with the user's local undo/redo history suppressed. This is useful when you want to make changes to a document that will not be erased if the user uses undo or redo, for example adding shape data onto shapes as a result of a background process that collects data from a remote API. |
Returns
xhr
▸ xhr(
Make a network request
Parameters
Name | Type | Description |
---|---|---|
|
|
Settings for the network request |
Returns
A promise that will either resolve or reject with an XHRResponse. If the HTTP status code is not 2xx, the promise will reject.
▸ xhr(
Parameters
Name | Type |
---|---|
|
|
Returns
▸ xhr(
Parameters
Name | Type |
---|---|
|
|
Returns
ElementProxy
document/elementproxy.ElementProxy
An element is anything on a Lucid document that can have properties and shape data:
Hierarchy
Constructors
constructor
• new ElementProxy(
Parameters
Name | Type | Description |
---|---|---|
|
|
ID of this element |
|
|
Overrides
PropertyStoreProxy.constructor
Properties
allShapeData
•
All shape data accessible on this element, including shape data inherited from the page or a containing group. This collection is read-only.
client
•
Inherited from
id
•
Inherited from
properties
•
All properties available on this element, organized by name. Not all properties are writeable (e.g. "ClassName" on a block). To move or resize elements, use setLocation() or setBoundingBox() or offset() instead.
Inherited from
referenceKeys
•
The set of reference keys, organized by their ID, which can be either a string or number.
For more information, see the Developer Guide.
shapeData
•
The shape data set directly on this element (not including any shape data inherited from the page or a containing group).
Methods
executeFormula
▸ executeFormula(
Execute a formula in the context of this element
Parameters
Name | Type | Description |
---|---|---|
|
|
The formula text, e.g. "@a + @b" to add together the shape data values a and b. |
Returns
The result of the formula, or an error.
exists
▸ exists():
Returns
removeReferenceKey
▸ removeReferenceKey(
Remove the specified reference key from this element.
Parameters
Name | Type |
---|---|
|
|
Returns
setReferenceKey
▸ setReferenceKey(
Set a reference key on this element, replacing any existing reference at the specified key.
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
ERDBlockProxy
document/blockclasses/erdblockproxy.ERDBlockProxy
A block is a single shape on the document. A BlockProxy provides an interface to read and write the content of an existing block, and is typically accessed through PageProxy.blocks or another similar mechanism.
Hierarchy
-
↳
ERDBlockProxy
Constructors
constructor
• new ERDBlockProxy(
Parameters
Name | Type | Description |
---|---|---|
|
|
ID of this item |
|
|
Inherited from
Properties
allShapeData
•
All shape data accessible on this element, including shape data inherited from the page or a containing group. This collection is read-only.
Inherited from
client
•
Inherited from
id
•
Inherited from
properties
•
All properties available on this element, organized by name. Not all properties are writeable (e.g. "ClassName" on a block). To move or resize elements, use setLocation() or setBoundingBox() or offset() instead.
Inherited from
referenceKeys
•
The set of reference keys, organized by their ID, which can be either a string or number.
For more information, see the Developer Guide.
Inherited from
shapeData
•
The shape data set directly on this element (not including any shape data inherited from the page or a containing group).
Inherited from
textAreas
•
The plain text in each of the text areas on this item, organized by text area name.
Inherited from
textStyles
•
The text style in each of the text areas on this item, organized by text area name.
Inherited from
classNameRegex
▪
Methods
applyRule
▸ applyRule(
Parameters
Name | Type | Description |
---|---|---|
|
|
Rule to apply to this item |
Returns
Inherited from
changeZOrder
▸ changeZOrder(
Parameters
Name | Type | Description |
---|---|---|
|
|
How to adjust the Z order of this item relative to the other items it overlaps on the page |
Returns
Inherited from
delete
▸ delete():
Delete this item from the document
Returns
Inherited from
executeFormula
▸ executeFormula(
Execute a formula in the context of this element
Parameters
Name | Type | Description |
---|---|---|
|
|
The formula text, e.g. "@a + @b" to add together the shape data values a and b. |
Returns
The result of the formula, or an error.
Inherited from
exists
▸ exists():
Returns
Inherited from
getBoundingBox
▸ getBoundingBox():
Returns
The bounding box of this item relative to its containing page. As pages may change size to fit the content on them, note that these coordinates may be negative or very large.
If this is a rotated block, the bounding box returned here is where the block would be if it were unrotated.
Inherited from
getClassName
▸ getClassName():
Returns
The class name of this block. This name is not necessarily human-readable, and will remain consistent over time, e.g. "ProcessBlock"..
Inherited from
getConnectedLines
▸ getConnectedLines():
Returns
An array of lines that have one or both endpoints connected to this block.
Inherited from
getContainers
▸ getContainers():
Returns
An array of blocks whose bounding boxes contain this item's upper-left corner
Inherited from
getFieldCount
▸ getFieldCount():
Returns
getFields
▸ getFields():
Returns
getLineWidth
▸ getLineWidth():
Returns
The line width used by most kinds of blocks to render their outline.
Inherited from
getLocation
▸ getLocation():
Returns
The x/y location of this item
Name | Type |
---|---|
|
|
|
|
Inherited from
getName
▸ getName():
Returns
getPage
▸ getPage():
Returns
The page containing this item
Inherited from
getPageId
▸ getPageId():
Returns
The ID of the page containing this item
Inherited from
getRotatedBoundingBox
▸ getRotatedBoundingBox():
Returns
An axis-aligned bounding box containing this full item after any rotation it might have
Inherited from
BlockProxy.getRotatedBoundingBox
getRotation
▸ getRotation():
Returns
The amount this block is rotated around its own center, in radians.
Inherited from
getShadow
▸ getShadow():
Returns
The current drop shadow on this block, or undefined if no shadow is set
Inherited from
getSimpleStaticDataGraphic
▸ getSimpleStaticDataGraphic():
Returns
Settings for the simple static data graphic currently set on this block, or undefined if no simple data graphic is currently set. Note that if a data graphic exists that is not an icon, this will return undefined. This function will not consider data graphics set via conditional formatting rules.
Inherited from
BlockProxy.getSimpleStaticDataGraphic
linkText
▸ linkText(
Link a text area to a data field, so that editing the text area will also update the associated data, and vice versa.
To use this, first establish a reference key on this block with setReferenceKey.
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
Returns
Inherited from
lockAspectRatio
▸ lockAspectRatio():
Lock this block's aspect ratio to its current value. This can be reversed with unlockAspectRatio.
Returns
Inherited from
measureText
▸ measureText(
Measure the amount of space necessary to render the text in the given text area, given a width to measure that text within.
Parameters
Name | Type | Description |
---|---|---|
|
|
Name of the text area whose content we should measure |
|
|
Width of the area in which to measure this text. The result will usually be no wider than this, but if a single word is long enough to go beyond this maxWidth, the width of that word will be returned. |
Returns
The size of rectangle necessary to render this text area's content.
Inherited from
offset
▸ offset(
Offset this item in the given direction by the given amount.
Parameters
Name | Type | Description |
---|---|---|
|
|
The type of offset to apply to this item |
|
|
The amount to offset |
Returns
Inherited from
removeReferenceKey
▸ removeReferenceKey(
Remove the specified reference key from this element.
Parameters
Name | Type |
---|---|
|
|
Returns
Inherited from
setBoundingBox
▸ setBoundingBox(
Attempts to move and resize this item to fit into the given bounding box. If this item (or another item it contains) has size or aspect ratio restrictions, it may not be possible to fit the requested location exactly.
This is done by moving this item to the requested location, then attempting to resize it from the bottom-right corner to the requested size.
Parameters
Name | Type | Description |
---|---|---|
|
|
The bounding box to attempt to make this item fill |
Returns
Inherited from
setDataSyncStateIconPosition
▸ setDataSyncStateIconPosition(
Parameters
Name | Type | Description |
---|---|---|
|
|
The postion where the data sync state icon should be displayed on the block. If this position is set to undefined then the state icon position will fallback to the default position for the block. |
Returns
Inherited from
BlockProxy.setDataSyncStateIconPosition
setFillStyle
▸ setFillStyle(
Set the fill style used (by most kinds of blocks) to fill in their main opaque areas. This can be a string color (e.g.
Parameters
Name | Type |
---|---|
|
|
Returns
Inherited from
setLineWidth
▸ setLineWidth(
Parameters
Name | Type | Description |
---|---|---|
|
|
The line width to be used (by most kinds of blocks) to render this block's outline |
Returns
Inherited from
setLocation
▸ setLocation(
Moves this item so that its upper-left corner is positioned at the given location (prior to any rotation)
Parameters
Name | Type | Description |
---|---|---|
|
|
The target location |
Returns
Inherited from
setReferenceKey
▸ setReferenceKey(
Set a reference key on this element, replacing any existing reference at the specified key.
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
Inherited from
setRotation
▸ setRotation(
Parameters
Name | Type | Description |
---|---|---|
|
|
Angle the block should be rotated |
Returns
Inherited from
setShadow
▸ setShadow(
Parameters
Name | Type | Description |
---|---|---|
|
|
The drop shadow to set on the block, or undefined to clear the drop shadow |
Returns
Inherited from
setSimpleStaticDataGraphic
▸ setSimpleStaticDataGraphic(
Parameters
Name | Type | Description |
---|---|---|
|
|
Information about the static data graphic icon to set on this block. |
Returns
Inherited from
BlockProxy.setSimpleStaticDataGraphic
unapplyRule
▸ unapplyRule(
Parameters
Name | Type | Description |
---|---|---|
|
|
Rule to remove from this item |
Returns
Inherited from
unlockAspectRatio
▸ unlockAspectRatio():
Unlock the aspect ratio of this block, allowing it to be stretched vertically or horizontally independently.
Returns
Inherited from
ERDFieldProxy
document/blockclasses/erdblockproxy.ERDFieldProxy
Constructors
constructor
• new ERDFieldProxy(
Parameters
Name | Type |
---|---|
|
|
|
|
Methods
getKey
▸ getKey():
Returns
getName
▸ getName():
Returns
getType
▸ getType():
Returns
FieldTypeArray<SubTypes>
core/data/fieldtypedefinition/fieldtypearray.FieldTypeArray
Type parameters
Name | Type |
---|---|
|
extends
|
Hierarchy
-
BaseFieldTypeArray <SubTypes >↳
FieldTypeArray
Constructors
constructor
• new FieldTypeArray<
Type parameters
Name | Type |
---|---|
|
extends
|
Parameters
Name | Type |
---|---|
|
|
Inherited from
BaseFieldTypeArray.constructor
Properties
validTypesArray
•
Inherited from
BaseFieldTypeArray.validTypesArray
Methods
getInnerNonArrayTypes
▸ getInnerNonArrayTypes():
Returns
Inherited from
BaseFieldTypeArray.getInnerNonArrayTypes
getInnerTypes
▸ getInnerTypes():
Returns
Inherited from
BaseFieldTypeArray.getInnerTypes
serializeType
▸
Parameters
Name | Type |
---|---|
|
|
Returns
Overrides
BaseFieldTypeArray.serializeType
toJSON
▸ toJSON():
Returns
Inherited from
FormattedPrimaryKey<Fields, PrimaryKey>
core/data/fieldspecification.FormattedPrimaryKey
Generates a mapper that, given a primary key definition is able to produce the primary key for that item.
Type parameters
Name | Type |
---|---|
|
extends |
|
extends keyof |
Constructors
constructor
• new FormattedPrimaryKey<
Type parameters
Name | Type |
---|---|
|
extends |
|
extends |
Parameters
Name | Type |
---|---|
|
|
Properties
elements
•
Methods
forItem
▸ forItem(
Generate the serialized form of the item's primary key.
For single value primary keys, the encoded values are just the json representation of the primary key. For example, if the primary key is ['id'] the following table shows encodings:
type | value | encoded |
---|---|---|
number |
|
|
boolean |
|
|
string |
|
|
Take note of the extra quotes in the string case.
For primary keys with multiple values, first sort the array of primary keys then join the json encoded values from of the keys with commas. For example:
primary key = ["lastName", "firstName"]
sorted key = ["firstName", "lastName"]
row = {"lastName": "Smith", "firstName": "John", "age": 42}
row key = '"John","Smith"'
items = new Map([['"John","Smith"', {"lastName": "Smith", "firstName": "John", "age": 42}]])
Parameters
Name | Type |
---|---|
|
|
Returns
serializeList
▸
Parameters
Name | Type |
---|---|
|
|
Returns
GroupProxy
document/groupproxy.GroupProxy
A group of items on a page.
Hierarchy
-
↳
GroupProxy
Constructors
constructor
• new GroupProxy(
Parameters
Name | Type | Description |
---|---|---|
|
|
ID of this item |
|
|
Inherited from
Properties
allBlocks
•
The blocks that are contained in this group, including those nested in deeper groups, organized by ID.
allGroups
•
The groups that are contained in this group, including those nested in deeper groups, organized by ID.
allLines
•
The lines that are contained in this group, including those nested in deeper groups, organized by ID.
allShapeData
•
All shape data accessible on this element, including shape data inherited from the page or a containing group. This collection is read-only.
Inherited from
blocks
•
The blocks that are directly contained in this group, organized by ID.
client
•
Inherited from
groups
•
The groups that are directly contained in this group, organized by ID.
id
•
Inherited from
lines
•
The lines that are directly contained in this group, organized by ID.
properties
•
All properties available on this element, organized by name. Not all properties are writeable (e.g. "ClassName" on a block). To move or resize elements, use setLocation() or setBoundingBox() or offset() instead.
Inherited from
referenceKeys
•
The set of reference keys, organized by their ID, which can be either a string or number.
For more information, see the Developer Guide.
Inherited from
shapeData
•
The shape data set directly on this element (not including any shape data inherited from the page or a containing group).
Inherited from
textAreas
•
The plain text in each of the text areas on this item, organized by text area name.
Inherited from
textStyles
•
The text style in each of the text areas on this item, organized by text area name.
Inherited from
Methods
applyRule
▸ applyRule(
Parameters
Name | Type | Description |
---|---|---|
|
|
Rule to apply to this item |
Returns
Inherited from
changeZOrder
▸ changeZOrder(
Parameters
Name | Type | Description |
---|---|---|
|
|
How to adjust the Z order of this item relative to the other items it overlaps on the page |
Returns
Inherited from
delete
▸ delete():
Delete this item from the document
Returns
Inherited from
executeFormula
▸ executeFormula(
Execute a formula in the context of this element
Parameters
Name | Type | Description |
---|---|---|
|
|
The formula text, e.g. "@a + @b" to add together the shape data values a and b. |
Returns
The result of the formula, or an error.
Inherited from
exists
▸ exists():
Returns
Inherited from
getBoundingBox
▸ getBoundingBox():
Returns
The bounding box of this item relative to its containing page. As pages may change size to fit the content on them, note that these coordinates may be negative or very large.
If this is a rotated block, the bounding box returned here is where the block would be if it were unrotated.
Inherited from
getContainers
▸ getContainers():
Returns
An array of blocks whose bounding boxes contain this item's upper-left corner
Inherited from
getLocation
▸ getLocation():
Returns
The x/y location of this item
Name | Type |
---|---|
|
|
|
|
Inherited from
getPage
▸ getPage():
Returns
The page containing this item
Inherited from
getPageId
▸ getPageId():
Returns
The ID of the page containing this item
Inherited from
measureText
▸ measureText(
Measure the amount of space necessary to render the text in the given text area, given a width to measure that text within.
Parameters
Name | Type | Description |
---|---|---|
|
|
Name of the text area whose content we should measure |
|
|
Width of the area in which to measure this text. The result will usually be no wider than this, but if a single word is long enough to go beyond this maxWidth, the width of that word will be returned. |
Returns
The size of rectangle necessary to render this text area's content.
Inherited from
offset
▸ offset(
Offset this item in the given direction by the given amount.
Parameters
Name | Type | Description |
---|---|---|
|
|
The type of offset to apply to this item |
|
|
The amount to offset |
Returns
Inherited from
removeReferenceKey
▸ removeReferenceKey(
Remove the specified reference key from this element.
Parameters
Name | Type |
---|---|
|
|
Returns
Inherited from
setBoundingBox
▸ setBoundingBox(
Attempts to move and resize this item to fit into the given bounding box. If this item (or another item it contains) has size or aspect ratio restrictions, it may not be possible to fit the requested location exactly.
This is done by moving this item to the requested location, then attempting to resize it from the bottom-right corner to the requested size.
Parameters
Name | Type | Description |
---|---|---|
|
|
The bounding box to attempt to make this item fill |
Returns
Inherited from
setLocation
▸ setLocation(
Moves this item so that its upper-left corner is positioned at the given location (prior to any rotation)
Parameters
Name | Type | Description |
---|---|---|
|
|
The target location |
Returns
Inherited from
setReferenceKey
▸ setReferenceKey(
Set a reference key on this element, replacing any existing reference at the specified key.
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
Inherited from
unapplyRule
▸ unapplyRule(
Parameters
Name | Type | Description |
---|---|---|
|
|
Rule to remove from this item |
Returns
Inherited from
HumanReadableError
core/humanreadableerror.HumanReadableError
An error carrying a message that is good to be shown directly in the UI. These can be thrown from extensions and caught in core code.
Hierarchy
-
Error ↳
HumanReadableError
Constructors
constructor
• new HumanReadableError(
Parameters
Name | Type |
---|---|
|
|
Inherited from
Error.constructor
Properties
message
• message:
Inherited from
Error.message
name
• name:
Overrides
Error.name
stack
•
Inherited from
Error.stack
I18nFormattedList
interop.I18nFormattedList
Constructors
constructor
• new I18nFormattedList()
I18nFormattedNumber
interop.I18nFormattedNumber
Constructors
constructor
• new I18nFormattedNumber()
I18nSafeString
interop.I18nSafeString
Constructors
constructor
• new I18nSafeString(
Parameters
Name | Type |
---|---|
|
|
Properties
value
• value:
IframeUI
ui/iframeui.IframeUI
Base class for defining and interacting with custom UI elements whose contents are displayed in an iframe.
Hierarchy
Constructors
constructor
• new IframeUI(
Parameters
Name | Type |
---|---|
|
|
Properties
client
•
framePosition
•
The location of this frame within the top-level browser window. This is always updated immediately before
Type declaration
Name | Type |
---|---|
|
|
|
|
|
|
|
|
loaded
•
True after the iframe has fired an onload event (not all scripts are necessarily finished executing)
messageActionName
•
Methods
frameClosed
▸
Called when the iframe has been removed from the DOM
Returns
frameLoaded
▸
Called when the iframe has been constructed, its srcdoc set, and the window loaded event has fired
Returns
hookMessages
▸
Subclasses must call hookMessages some time before the UI is displayed. A Modal will call this when the open() method is called, where a Panel will need to do this in the constructor to watch for the user opening the panel.
Returns
messageFromFrame
▸
Receives messages sent from the iframe via parent.postMessage(, '*')
Parameters
Name | Type | Description |
---|---|---|
|
|
data sent from the iframe |
Returns
sendMessage
▸ sendMessage(
Send a message to this UI component's iframe via window.postMessage.
Parameters
Name | Type | Description |
---|---|---|
|
|
Data to send to the iframe |
Returns
unhookMessages
▸
Subclasses must call unhookMessages to allow them to be garbage collected.
Returns
ItemProxy
document/itemproxy.ItemProxy
A block, line, or group on a page of the current document.
Hierarchy
-
↳
ItemProxy ↳↳
BlockProxy ↳↳
GroupProxy ↳↳
LineProxy
Constructors
constructor
• new ItemProxy(
Parameters
Name | Type | Description |
---|---|---|
|
|
ID of this item |
|
|
Overrides
Properties
allShapeData
•
All shape data accessible on this element, including shape data inherited from the page or a containing group. This collection is read-only.
Inherited from
client
•
Inherited from
id
•
Inherited from
properties
•
All properties available on this element, organized by name. Not all properties are writeable (e.g. "ClassName" on a block). To move or resize elements, use setLocation() or setBoundingBox() or offset() instead.
Inherited from
referenceKeys
•
The set of reference keys, organized by their ID, which can be either a string or number.
For more information, see the Developer Guide.
Inherited from
shapeData
•
The shape data set directly on this element (not including any shape data inherited from the page or a containing group).
Inherited from
textAreas
•
The plain text in each of the text areas on this item, organized by text area name.
textStyles
•
The text style in each of the text areas on this item, organized by text area name.
Methods
applyRule
▸ applyRule(
Parameters
Name | Type | Description |
---|---|---|
|
|
Rule to apply to this item |
Returns
changeZOrder
▸ changeZOrder(
Parameters
Name | Type | Description |
---|---|---|
|
|
How to adjust the Z order of this item relative to the other items it overlaps on the page |
Returns
delete
▸ delete():
Delete this item from the document
Returns
executeFormula
▸ executeFormula(
Execute a formula in the context of this element
Parameters
Name | Type | Description |
---|---|---|
|
|
The formula text, e.g. "@a + @b" to add together the shape data values a and b. |
Returns
The result of the formula, or an error.
Inherited from
exists
▸ exists():
Returns
Inherited from
getBoundingBox
▸ getBoundingBox():
Returns
The bounding box of this item relative to its containing page. As pages may change size to fit the content on them, note that these coordinates may be negative or very large.
If this is a rotated block, the bounding box returned here is where the block would be if it were unrotated.
getContainers
▸ getContainers():
Returns
An array of blocks whose bounding boxes contain this item's upper-left corner
getLocation
▸ getLocation():
Returns
The x/y location of this item
Name | Type |
---|---|
|
|
|
|
getPage
▸ getPage():
Returns
The page containing this item
getPageId
▸ getPageId():
Returns
The ID of the page containing this item
measureText
▸ measureText(
Measure the amount of space necessary to render the text in the given text area, given a width to measure that text within.
Parameters
Name | Type | Description |
---|---|---|
|
|
Name of the text area whose content we should measure |
|
|
Width of the area in which to measure this text. The result will usually be no wider than this, but if a single word is long enough to go beyond this maxWidth, the width of that word will be returned. |
Returns
The size of rectangle necessary to render this text area's content.
offset
▸ offset(
Offset this item in the given direction by the given amount.
Parameters
Name | Type | Description |
---|---|---|
|
|
The type of offset to apply to this item |
|
|
The amount to offset |
Returns
removeReferenceKey
▸ removeReferenceKey(
Remove the specified reference key from this element.
Parameters
Name | Type |
---|---|
|
|
Returns
Inherited from
ElementProxy.removeReferenceKey
setBoundingBox
▸ setBoundingBox(
Attempts to move and resize this item to fit into the given bounding box. If this item (or another item it contains) has size or aspect ratio restrictions, it may not be possible to fit the requested location exactly.
This is done by moving this item to the requested location, then attempting to resize it from the bottom-right corner to the requested size.
Parameters
Name | Type | Description |
---|---|---|
|
|
The bounding box to attempt to make this item fill |
Returns
setLocation
▸ setLocation(
Moves this item so that its upper-left corner is positioned at the given location (prior to any rotation)
Parameters
Name | Type | Description |
---|---|---|
|
|
The target location |
Returns
setReferenceKey
▸ setReferenceKey(
Set a reference key on this element, replacing any existing reference at the specified key.
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
Inherited from
unapplyRule
▸ unapplyRule(
Parameters
Name | Type | Description |
---|---|---|
|
|
Rule to remove from this item |
Returns
ItemRekeyer
dataconnector/itemrekeyer.ItemRekeyer
Constructors
constructor
• new ItemRekeyer()
Methods
addRekeyingsFor
▸ addRekeyingsFor(
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
Returns
getRekeyingMap
▸ getRekeyingMap(
Parameters
Name | Type |
---|---|
|
|
Returns
ItemsPatchExhaustive
dataconnector/datasourceupdatetypes.ItemsPatchExhaustive
Constructors
constructor
• new ItemsPatchExhaustive(
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
Properties
errors
•
items
• items:
rekeyingMap
•
ItemsPatchInexhaustive
dataconnector/datasourceupdatetypes.ItemsPatchInexhaustive
Constructors
constructor
• new ItemsPatchInexhaustive(
Parameters
Name | Type | Description |
---|---|---|
|
|
Items to be added or changed in the collection. Mapping from item serialized primary key to the sparse patch of the item. See FormattedPrimaryKey.forItem. |
|
|
Items to remove from the collection, based on the same primary key algorithm. |
|
|
- |
Properties
errors
•
items
• items:
Items to be added or changed in the collection. Mapping from item serialized primary key to the sparse patch of the item. See FormattedPrimaryKey.forItem.
itemsDeleted
•
Items to remove from the collection, based on the same primary key algorithm.
LegendBlockProxy
document/blockclasses/legendblockproxy.LegendBlockProxy
A block is a single shape on the document. A BlockProxy provides an interface to read and write the content of an existing block, and is typically accessed through PageProxy.blocks or another similar mechanism.
Hierarchy
-
↳
LegendBlockProxy
Constructors
constructor
• new LegendBlockProxy(
Parameters
Name | Type | Description |
---|---|---|
|
|
ID of this item |
|
|
Inherited from
Properties
allShapeData
•
All shape data accessible on this element, including shape data inherited from the page or a containing group. This collection is read-only.
Inherited from
client
•
Inherited from
id
•
Inherited from
properties
•
All properties available on this element, organized by name. Not all properties are writeable (e.g. "ClassName" on a block). To move or resize elements, use setLocation() or setBoundingBox() or offset() instead.
Inherited from
referenceKeys
•
The set of reference keys, organized by their ID, which can be either a string or number.
For more information, see the Developer Guide.
Inherited from
shapeData
•
The shape data set directly on this element (not including any shape data inherited from the page or a containing group).
Inherited from
textAreas
•
The plain text in each of the text areas on this item, organized by text area name.
Inherited from
textStyles
•
The text style in each of the text areas on this item, organized by text area name.
Inherited from
classNameRegex
▪
Methods
applyRule
▸ applyRule(
Parameters
Name | Type | Description |
---|---|---|
|
|
Rule to apply to this item |
Returns
Inherited from
changeZOrder
▸ changeZOrder(
Parameters
Name | Type | Description |
---|---|---|
|
|
How to adjust the Z order of this item relative to the other items it overlaps on the page |
Returns
Inherited from
delete
▸ delete():
Delete this item from the document
Returns
Inherited from
executeFormula
▸ executeFormula(
Execute a formula in the context of this element
Parameters
Name | Type | Description |
---|---|---|
|
|
The formula text, e.g. "@a + @b" to add together the shape data values a and b. |
Returns
The result of the formula, or an error.
Inherited from
exists
▸ exists():
Returns
Inherited from
getBoundingBox
▸ getBoundingBox():
Returns
The bounding box of this item relative to its containing page. As pages may change size to fit the content on them, note that these coordinates may be negative or very large.
If this is a rotated block, the bounding box returned here is where the block would be if it were unrotated.
Inherited from
getClassName
▸ getClassName():
Returns
The class name of this block. This name is not necessarily human-readable, and will remain consistent over time, e.g. "ProcessBlock"..
Inherited from
getConnectedLines
▸ getConnectedLines():
Returns
An array of lines that have one or both endpoints connected to this block.
Inherited from
getContainers
▸ getContainers():
Returns
An array of blocks whose bounding boxes contain this item's upper-left corner
Inherited from
getHeader
▸ getHeader():
Returns
getItems
▸ getItems():
Returns
getLineWidth
▸ getLineWidth():
Returns
The line width used by most kinds of blocks to render their outline.
Inherited from
getLocation
▸ getLocation():
Returns
The x/y location of this item
Name | Type |
---|---|
|
|
|
|
Inherited from
getPage
▸ getPage():
Returns
The page containing this item
Inherited from
getPageId
▸ getPageId():
Returns
The ID of the page containing this item
Inherited from
getRotatedBoundingBox
▸ getRotatedBoundingBox():
Returns
An axis-aligned bounding box containing this full item after any rotation it might have
Inherited from
BlockProxy.getRotatedBoundingBox
getRotation
▸ getRotation():
Returns
The amount this block is rotated around its own center, in radians.
Inherited from
getShadow
▸ getShadow():
Returns
The current drop shadow on this block, or undefined if no shadow is set
Inherited from
getSimpleStaticDataGraphic
▸ getSimpleStaticDataGraphic():
Returns
Settings for the simple static data graphic currently set on this block, or undefined if no simple data graphic is currently set. Note that if a data graphic exists that is not an icon, this will return undefined. This function will not consider data graphics set via conditional formatting rules.
Inherited from
BlockProxy.getSimpleStaticDataGraphic
linkText
▸ linkText(
Link a text area to a data field, so that editing the text area will also update the associated data, and vice versa.
To use this, first establish a reference key on this block with setReferenceKey.
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
Returns
Inherited from
lockAspectRatio
▸ lockAspectRatio():
Lock this block's aspect ratio to its current value. This can be reversed with unlockAspectRatio.
Returns
Inherited from
measureText
▸ measureText(
Measure the amount of space necessary to render the text in the given text area, given a width to measure that text within.
Parameters
Name | Type | Description |
---|---|---|
|
|
Name of the text area whose content we should measure |
|
|
Width of the area in which to measure this text. The result will usually be no wider than this, but if a single word is long enough to go beyond this maxWidth, the width of that word will be returned. |
Returns
The size of rectangle necessary to render this text area's content.
Inherited from
offset
▸ offset(
Offset this item in the given direction by the given amount.
Parameters
Name | Type | Description |
---|---|---|
|
|
The type of offset to apply to this item |
|
|
The amount to offset |
Returns
Inherited from
removeReferenceKey
▸ removeReferenceKey(
Remove the specified reference key from this element.
Parameters
Name | Type |
---|---|
|
|
Returns
Inherited from
setBoundingBox
▸ setBoundingBox(
Attempts to move and resize this item to fit into the given bounding box. If this item (or another item it contains) has size or aspect ratio restrictions, it may not be possible to fit the requested location exactly.
This is done by moving this item to the requested location, then attempting to resize it from the bottom-right corner to the requested size.
Parameters
Name | Type | Description |
---|---|---|
|
|
The bounding box to attempt to make this item fill |
Returns
Inherited from
setDataSyncStateIconPosition
▸ setDataSyncStateIconPosition(
Parameters
Name | Type | Description |
---|---|---|
|
|
The postion where the data sync state icon should be displayed on the block. If this position is set to undefined then the state icon position will fallback to the default position for the block. |
Returns
Inherited from
BlockProxy.setDataSyncStateIconPosition
setFillStyle
▸ setFillStyle(
Set the fill style used (by most kinds of blocks) to fill in their main opaque areas. This can be a string color (e.g.
Parameters
Name | Type |
---|---|
|
|
Returns
Inherited from
setLineWidth
▸ setLineWidth(
Parameters
Name | Type | Description |
---|---|---|
|
|
The line width to be used (by most kinds of blocks) to render this block's outline |
Returns
Inherited from
setLocation
▸ setLocation(
Moves this item so that its upper-left corner is positioned at the given location (prior to any rotation)
Parameters
Name | Type | Description |
---|---|---|
|
|
The target location |
Returns
Inherited from
setReferenceKey
▸ setReferenceKey(
Set a reference key on this element, replacing any existing reference at the specified key.
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
Inherited from
setRotation
▸ setRotation(
Parameters
Name | Type | Description |
---|---|---|
|
|
Angle the block should be rotated |
Returns
Inherited from
setShadow
▸ setShadow(
Parameters
Name | Type | Description |
---|---|---|
|
|
The drop shadow to set on the block, or undefined to clear the drop shadow |
Returns
Inherited from
setSimpleStaticDataGraphic
▸ setSimpleStaticDataGraphic(
Parameters
Name | Type | Description |
---|---|---|
|
|
Information about the static data graphic icon to set on this block. |
Returns
Inherited from
BlockProxy.setSimpleStaticDataGraphic
unapplyRule
▸ unapplyRule(
Parameters
Name | Type | Description |
---|---|---|
|
|
Rule to remove from this item |
Returns
Inherited from
unlockAspectRatio
▸ unlockAspectRatio():
Unlock the aspect ratio of this block, allowing it to be stretched vertically or horizontally independently.
Returns
Inherited from
LegendEntryProxy
document/blockclasses/legendblockproxy.LegendEntryProxy
Hierarchy
-
LegendEntryProxy
Constructors
constructor
• new LegendEntryProxy(
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
Properties
index
•
legend
•
type
•
Methods
getText
▸ getText():
Returns
setText
▸ setText(
Parameters
Name | Type |
---|---|
|
|
Returns
LineProxy
document/lineproxy.LineProxy
A line on the current Lucid document
Hierarchy
-
↳
LineProxy
Constructors
constructor
• new LineProxy(
Parameters
Name | Type | Description |
---|---|---|
|
|
ID of this item |
|
|
Inherited from
Properties
allShapeData
•
All shape data accessible on this element, including shape data inherited from the page or a containing group. This collection is read-only.
Inherited from
client
•
Inherited from
id
•
Inherited from
properties
•
All properties available on this element, organized by name. Not all properties are writeable (e.g. "ClassName" on a block). To move or resize elements, use setLocation() or setBoundingBox() or offset() instead.
Inherited from
referenceKeys
•
The set of reference keys, organized by their ID, which can be either a string or number.
For more information, see the Developer Guide.
Inherited from
shapeData
•
The shape data set directly on this element (not including any shape data inherited from the page or a containing group).
Inherited from
textAreas
•
The plain text in each of the text areas on this item, organized by text area name.
Inherited from
textStyles
•
The text style in each of the text areas on this item, organized by text area name.
Inherited from
Methods
addTextArea
▸ addTextArea(
Adds a new text area to this line at the given location with the given initial plain text. The text will be styled with the document theme, if any.
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
The name of the text area added
applyRule
▸ applyRule(
Parameters
Name | Type | Description |
---|---|---|
|
|
Rule to apply to this item |
Returns
Inherited from
changeZOrder
▸ changeZOrder(
Parameters
Name | Type | Description |
---|---|---|
|
|
How to adjust the Z order of this item relative to the other items it overlaps on the page |
Returns
Inherited from
delete
▸ delete():
Delete this item from the document
Returns
Inherited from
deleteTextArea
▸ deleteTextArea(
Deletes the given text area from the line, if it exists.
Parameters
Name | Type |
---|---|
|
|
Returns
executeFormula
▸ executeFormula(
Execute a formula in the context of this element
Parameters
Name | Type | Description |
---|---|---|
|
|
The formula text, e.g. "@a + @b" to add together the shape data values a and b. |
Returns
The result of the formula, or an error.
Inherited from
exists
▸ exists():
Returns
Inherited from
getBoundingBox
▸ getBoundingBox():
Returns
The bounding box of this item relative to its containing page. As pages may change size to fit the content on them, note that these coordinates may be negative or very large.
If this is a rotated block, the bounding box returned here is where the block would be if it were unrotated.
Inherited from
getConnectedLines
▸ getConnectedLines():
Returns
A list of lines whose endpoints are connected to this line
getContainers
▸ getContainers():
Returns
An array of blocks whose bounding boxes contain this item's upper-left corner
Inherited from
getDownstreamConnection
▸ getDownstreamConnection():
Returns
The block or line connected to the second endpoint of this line, or
getEndpoint1
▸ getEndpoint1():
Returns
The definition of the first endpoint of this line
getEndpoint2
▸ getEndpoint2():
Returns
The definition of the second endpoint of this line
getLocation
▸ getLocation():
Returns
The x/y location of this item
Name | Type |
---|---|
|
|
|
|
Inherited from
getPage
▸ getPage():
Returns
The page containing this item
Inherited from
getPageId
▸ getPageId():
Returns
The ID of the page containing this item
Inherited from
getRelativePosition
▸ getRelativePosition(
Parameters
Name | Type | Description |
---|---|---|
|
|
A distance, between 0 and 1, between the first and second endpoint of this line |
Returns
The coordinate of that relative position, relative to the containing page
getShape
▸ getShape():
Returns
getTextAreaPosition
▸ getTextAreaPosition(
Parameters
Name | Type |
---|---|
|
|
Returns
The position of the given text area on this line, if it exists, or undefined if it does not exist.
getUpstreamConnection
▸ getUpstreamConnection():
Returns
The block or line connected to the first endpoint of this line, or
measureText
▸ measureText(
Measure the amount of space necessary to render the text in the given text area, given a width to measure that text within.
Parameters
Name | Type | Description |
---|---|---|
|
|
Name of the text area whose content we should measure |
|
|
Width of the area in which to measure this text. The result will usually be no wider than this, but if a single word is long enough to go beyond this maxWidth, the width of that word will be returned. |
Returns
The size of rectangle necessary to render this text area's content.
Inherited from
offset
▸ offset(
Offset this item in the given direction by the given amount.
Parameters
Name | Type | Description |
---|---|---|
|
|
The type of offset to apply to this item |
|
|
The amount to offset |
Returns
Inherited from
removeReferenceKey
▸ removeReferenceKey(
Remove the specified reference key from this element.
Parameters
Name | Type |
---|---|
|
|
Returns
Inherited from
setBoundingBox
▸ setBoundingBox(
Attempts to move and resize this item to fit into the given bounding box. If this item (or another item it contains) has size or aspect ratio restrictions, it may not be possible to fit the requested location exactly.
This is done by moving this item to the requested location, then attempting to resize it from the bottom-right corner to the requested size.
Parameters
Name | Type | Description |
---|---|---|
|
|
The bounding box to attempt to make this item fill |
Returns
Inherited from
setEndpoint1
▸ setEndpoint1(
Update the first endpoint of this line
Parameters
Name | Type | Description |
---|---|---|
|
|
Line endpoint definition |
Returns
setEndpoint2
▸ setEndpoint2(
Update the second endpoint of this line
Parameters
Name | Type | Description |
---|---|---|
|
|
Line endpoint definition |
Returns
setLocation
▸ setLocation(
Moves this item so that its upper-left corner is positioned at the given location (prior to any rotation)
Parameters
Name | Type | Description |
---|---|---|
|
|
The target location |
Returns
Inherited from
setReferenceKey
▸ setReferenceKey(
Set a reference key on this element, replacing any existing reference at the specified key.
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
Inherited from
setShape
▸ setShape(
Parameters
Name | Type |
---|---|
|
|
Returns
setTextAreaPosition
▸ setTextAreaPosition(
Updates the position of the given text area, if it exists. If not, an error is thrown.
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
unapplyRule
▸ unapplyRule(
Parameters
Name | Type | Description |
---|---|---|
|
|
Rule to remove from this item |
Returns
Inherited from
LinkUnfurlBlockProxy
document/blockclasses/linkunfurlblockproxy.LinkUnfurlBlockProxy
This is the kind of block that appears when a link is pasted onto the canvas of a Lucid editor.
Hierarchy
-
↳
LinkUnfurlBlockProxy
Constructors
constructor
• new LinkUnfurlBlockProxy(
Parameters
Name | Type | Description |
---|---|---|
|
|
ID of this item |
|
|
Inherited from
Properties
allShapeData
•
All shape data accessible on this element, including shape data inherited from the page or a containing group. This collection is read-only.
Inherited from
client
•
Inherited from
id
•
Inherited from
properties
•
All properties available on this element, organized by name. Not all properties are writeable (e.g. "ClassName" on a block). To move or resize elements, use setLocation() or setBoundingBox() or offset() instead.
Inherited from
referenceKeys
•
The set of reference keys, organized by their ID, which can be either a string or number.
For more information, see the Developer Guide.
Inherited from
shapeData
•
The shape data set directly on this element (not including any shape data inherited from the page or a containing group).
Inherited from
textAreas
•
The plain text in each of the text areas on this item, organized by text area name.
Inherited from
textStyles
•
The text style in each of the text areas on this item, organized by text area name.
Inherited from
classNameRegex
▪
Methods
applyRule
▸ applyRule(
Parameters
Name | Type | Description |
---|---|---|
|
|
Rule to apply to this item |
Returns
Inherited from
changeZOrder
▸ changeZOrder(
Parameters
Name | Type | Description |
---|---|---|
|
|
How to adjust the Z order of this item relative to the other items it overlaps on the page |
Returns
Inherited from
delete
▸ delete():
Delete this item from the document
Returns
Inherited from
executeFormula
▸ executeFormula(
Execute a formula in the context of this element
Parameters
Name | Type | Description |
---|---|---|
|
|
The formula text, e.g. "@a + @b" to add together the shape data values a and b. |
Returns
The result of the formula, or an error.
Inherited from
exists
▸ exists():
Returns
Inherited from
getBoundingBox
▸ getBoundingBox():
Returns
The bounding box of this item relative to its containing page. As pages may change size to fit the content on them, note that these coordinates may be negative or very large.
If this is a rotated block, the bounding box returned here is where the block would be if it were unrotated.
Inherited from
getClassName
▸ getClassName():
Returns
The class name of this block. This name is not necessarily human-readable, and will remain consistent over time, e.g. "ProcessBlock"..
Inherited from
getConnectedLines
▸ getConnectedLines():
Returns
An array of lines that have one or both endpoints connected to this block.
Inherited from
getContainers
▸ getContainers():
Returns
An array of blocks whose bounding boxes contain this item's upper-left corner
Inherited from
getDescription
▸ getDescription():
Returns the description on the block.
Returns
getFaviconUrl
▸ getFaviconUrl():
Gets the url for the favicon on the block
Returns
getLineWidth
▸ getLineWidth():
Returns
The line width used by most kinds of blocks to render their outline.
Inherited from
getLocation
▸ getLocation():
Returns
The x/y location of this item
Name | Type |
---|---|
|
|
|
|
Inherited from
getPage
▸ getPage():
Returns
The page containing this item
Inherited from
getPageId
▸ getPageId():
Returns
The ID of the page containing this item
Inherited from
getPreviewThumbnailUrl
▸ getPreviewThumbnailUrl():
Gets the main thumbnail on the block
Returns
getProviderName
▸ getProviderName():
Returns the name of the service the link belongs to, such as "Lucid" or "Google", as displayed below the title on the block.
Returns
getRotatedBoundingBox
▸ getRotatedBoundingBox():
Returns
An axis-aligned bounding box containing this full item after any rotation it might have
Inherited from
BlockProxy.getRotatedBoundingBox
getRotation
▸ getRotation():
Returns
The amount this block is rotated around its own center, in radians.
Inherited from
getShadow
▸ getShadow():
Returns
The current drop shadow on this block, or undefined if no shadow is set
Inherited from
getSimpleStaticDataGraphic
▸ getSimpleStaticDataGraphic():
Returns
Settings for the simple static data graphic currently set on this block, or undefined if no simple data graphic is currently set. Note that if a data graphic exists that is not an icon, this will return undefined. This function will not consider data graphics set via conditional formatting rules.
Inherited from
BlockProxy.getSimpleStaticDataGraphic
getTitle
▸ getTitle():
Returns the title on the block, which is the main text shown on the block.
Returns
getUrl
▸ getUrl():
Gets the URL the user will be redirected to when the user clicks the "Pop Out" action on the block.
Returns
hasIframe
▸ hasIframe():
Returns true if there is an iframe URL already set for this unfurl block
Returns
linkText
▸ linkText(
Link a text area to a data field, so that editing the text area will also update the associated data, and vice versa.
To use this, first establish a reference key on this block with setReferenceKey.
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
Returns
Inherited from
lockAspectRatio
▸ lockAspectRatio():
Lock this block's aspect ratio to its current value. This can be reversed with unlockAspectRatio.
Returns
Inherited from
measureText
▸ measureText(
Measure the amount of space necessary to render the text in the given text area, given a width to measure that text within.
Parameters
Name | Type | Description |
---|---|---|
|
|
Name of the text area whose content we should measure |
|
|
Width of the area in which to measure this text. The result will usually be no wider than this, but if a single word is long enough to go beyond this maxWidth, the width of that word will be returned. |
Returns
The size of rectangle necessary to render this text area's content.
Inherited from
offset
▸ offset(
Offset this item in the given direction by the given amount.
Parameters
Name | Type | Description |
---|---|---|
|
|
The type of offset to apply to this item |
|
|
The amount to offset |
Returns
Inherited from
removeReferenceKey
▸ removeReferenceKey(
Remove the specified reference key from this element.
Parameters
Name | Type |
---|---|
|
|
Returns
Inherited from
setBoundingBox
▸ setBoundingBox(
Attempts to move and resize this item to fit into the given bounding box. If this item (or another item it contains) has size or aspect ratio restrictions, it may not be possible to fit the requested location exactly.
This is done by moving this item to the requested location, then attempting to resize it from the bottom-right corner to the requested size.
Parameters
Name | Type | Description |
---|---|---|
|
|
The bounding box to attempt to make this item fill |
Returns
Inherited from
setDataSyncStateIconPosition
▸ setDataSyncStateIconPosition(
Parameters
Name | Type | Description |
---|---|---|
|
|
The postion where the data sync state icon should be displayed on the block. If this position is set to undefined then the state icon position will fallback to the default position for the block. |
Returns
Inherited from
BlockProxy.setDataSyncStateIconPosition
setDescription
▸ setDescription(
Sets the description on the block.
Parameters
Name | Type |
---|---|
|
|
Returns
setFaviconUrl
▸ setFaviconUrl(
Sets the favicon on the block
Parameters
Name | Type |
---|---|
|
|
Returns
setFillStyle
▸ setFillStyle(
Set the fill style used (by most kinds of blocks) to fill in their main opaque areas. This can be a string color (e.g.
Parameters
Name | Type |
---|---|
|
|
Returns
Inherited from
setIframe
▸ setIframe(
Sets the URL to be loaded in an iframe when the user clicks the "Expand" action on the block.
Parameters
Name | Type |
---|---|
|
|
Returns
setLineWidth
▸ setLineWidth(
Parameters
Name | Type | Description |
---|---|---|
|
|
The line width to be used (by most kinds of blocks) to render this block's outline |
Returns
Inherited from
setLocation
▸ setLocation(
Moves this item so that its upper-left corner is positioned at the given location (prior to any rotation)
Parameters
Name | Type | Description |
---|---|---|
|
|
The target location |
Returns
Inherited from
setPreviewThumbnailUrl
▸ setPreviewThumbnailUrl(
Sets the main thumbnail on the block
Parameters
Name | Type |
---|---|
|
|
Returns
setReferenceKey
▸ setReferenceKey(
Set a reference key on this element, replacing any existing reference at the specified key.
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
Inherited from
setRotation
▸ setRotation(
Parameters
Name | Type | Description |
---|---|---|
|
|
Angle the block should be rotated |
Returns
Inherited from
setShadow
▸ setShadow(
Parameters
Name | Type | Description |
---|---|---|
|
|
The drop shadow to set on the block, or undefined to clear the drop shadow |
Returns
Inherited from
setSimpleStaticDataGraphic
▸ setSimpleStaticDataGraphic(
Parameters
Name | Type | Description |
---|---|---|
|
|
Information about the static data graphic icon to set on this block. |
Returns
Inherited from
BlockProxy.setSimpleStaticDataGraphic
setThumbnailUrls
▸ setThumbnailUrls(
Sets additional thumbnails on the block
Parameters
Name | Type |
---|---|
|
|
Returns
setTitle
▸ setTitle(
Sets the title on the block, which is the main text shown on the block.
Parameters
Name | Type |
---|---|
|
|
Returns
setUrl
▸ setUrl(
Sets the URL the user will be redirected to when the user clicks the "Pop Out" action on the block.
Parameters
Name | Type |
---|---|
|
|
Returns
unapplyRule
▸ unapplyRule(
Parameters
Name | Type | Description |
---|---|---|
|
|
Rule to remove from this item |
Returns
Inherited from
unlockAspectRatio
▸ unlockAspectRatio():
Unlock the aspect ratio of this block, allowing it to be stretched vertically or horizontally independently.
Returns
Inherited from
LiteralFieldType
core/data/fieldtypedefinition/literalfieldtype.LiteralFieldType
Constructors
constructor
• new LiteralFieldType(
Parameters
Name | Type |
---|---|
|
|
Properties
literalStringPrefix
▪
Methods
getLiteral
▸ getLiteral():
Returns
getScalarFieldType
▸ getScalarFieldType():
Returns
toJSON
▸ toJSON():
Returns
LucidCardIntegration
core/cardintegration/lucidcardintegration.LucidCardIntegration
Constructors
constructor
• new LucidCardIntegration(
Parameters
Name | Type |
---|---|
|
|
Properties
addCard
•
If specified, allow the user to create new cards and convert other shapes to cards
Type declaration
Name | Type |
---|---|
|
( |
|
( |
client
•
dataConnectorName
•
The name of the data connector associated with the card integration.
fieldConfiguration
•
Type declaration
Name | Type | Description |
---|---|---|
|
|
Specify callbacks for searching for legal values for the given fields. For example, a Task collection may have an Assignee field that references a User collection, but you don't import all the users in the entire source data set. Here, you can provide a way to search for legal values for the Assignee field, similar to the |
|
( |
Callback to provide a list of all supported field names for the card integration. |
|
( |
Callback that handled changes in the fields the user wants to be displayed in the card integration. If this callback is not provided then the user will not be shown the modal to configure fields. |
getDefaultConfig
•
Type declaration
▸ (
Provide the default configuration for a new import
Parameters
Name | Type |
---|---|
|
|
Returns
iconUrl
•
URL for an icon to display in toolbars, etc. Should be at least 24x24.
importModal
•
This allows the user to import cards by selecting items from within a modal. You can either create a custom import modal or the standard import modal can be used.
itemLabel
•
Label used to identify one card worth of data, e.g. "Jira task"
itemsLabel
•
Label used to identify multiple cards worth of data, e.g. "Jira tasks"
label
•
Label used to identify the integration, e.g. "Jira", which will be used in menu items, etc. Should be unique within any given extension.
showIntro
•
Type declaration
▸ ():
If specified, and the user hasn't yet authorized the data connector for this extension, this should show the user an intro dialog or take some other action.
Returns
textStyle
•
The default text style to use on cards created as part of this integration. These can be overridden by values in getDefaultConfig().fieldStyles for individual fields that should have different styles.
Methods
showCardImport
▸ showCardImport(
Parameters
Name | Type |
---|---|
|
|
Returns
LucidCardIntegrationCustomImportModal
core/cardintegration/lucidcardintegrationcustomimportmodal.LucidCardIntegrationCustomImportModal
Extending this class lets you create a custom import modal for a Lucid card integration.
Hierarchy
-
↳
LucidCardIntegrationCustomImportModal
Constructors
constructor
• new LucidCardIntegrationCustomImportModal(
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
Overrides
Properties
client
•
Inherited from
framePosition
•
The location of this frame within the top-level browser window. This is always updated immediately before
Type declaration
Name | Type |
---|---|
|
|
|
|
|
|
|
|
Inherited from
loaded
•
True after the iframe has fired an onload event (not all scripts are necessarily finished executing)
Inherited from
messageActionName
•
Inherited from
Methods
createCards
▸
Once the data has been imported, call this function to create Lucid cards on the canvas.
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
frameClosed
▸
Called when the iframe has been removed from the DOM
Returns
Inherited from
frameLoaded
▸
Called when the iframe has been constructed, its srcdoc set, and the window loaded event has fired
Returns
Inherited from
hide
▸ hide():
If this modal is currently visible, close it, destroying the iframe.
Returns
Inherited from
hookMessages
▸
Subclasses must call hookMessages some time before the UI is displayed. A Modal will call this when the open() method is called, where a Panel will need to do this in the constructor to watch for the user opening the panel.
Returns
Inherited from
messageFromFrame
▸
Receives messages sent from the iframe via parent.postMessage(, '*')
Parameters
Name | Type | Description |
---|---|---|
|
|
data sent from the iframe |
Returns
Inherited from
sendMessage
▸ sendMessage(
Send a message to this UI component's iframe via window.postMessage.
Parameters
Name | Type | Description |
---|---|---|
|
|
Data to send to the iframe |
Returns
Inherited from
show
▸ show():
Returns
Inherited from
unhookMessages
▸
Subclasses must call unhookMessages to allow them to be garbage collected.
Returns
Inherited from
LucidCardIntegrationRegistry
core/cardintegration/lucidcardintegrationregistry.LucidCardIntegrationRegistry
Constructors
constructor
• new LucidCardIntegrationRegistry()
Methods
addCardIntegration
▸
Register a card integration.
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
registerFieldOptionsCallback
▸
Parameters
Name | Type |
---|---|
|
|
|
( |
Returns
registerFieldSearchCallback
▸
Parameters
Name | Type |
---|---|
|
|
|
( |
Returns
MapProxy<KEY, VALUE>
document/mapproxy.MapProxy
A data structure similar to a normal Map which accesses its data through API commands to the Lucid app. This structure is iterable with
Type parameters
Name |
---|
|
|
Hierarchy
-
MapProxy
Constructors
constructor
• new MapProxy<
Type parameters
Name |
---|
|
|
Parameters
Name | Type |
---|---|
|
() => |
|
( |
Accessors
size
•
Returns
Methods
filter
▸ filter(
Parameters
Name | Type |
---|---|
|
( |
Returns
find
▸ find(
Parameters
Name | Type |
---|---|
|
( |
Returns
first
▸ first():
Returns
get
▸ get(
Parameters
Name | Type |
---|---|
|
|
Returns
keys
▸ keys():
Returns
map
▸ map<
Type parameters
Name |
---|
|
Parameters
Name | Type |
---|---|
|
( |
Returns
values
▸ values():
Returns
Menu
ui/menu.Menu
Constructors
constructor
• new Menu(
Parameters
Name | Type |
---|---|
|
|
Methods
addContentDockMenuItem
▸ addContentDockMenuItem(
Create an icon tied to an action (required) that appears in the left toolbar in Lucidspark and Teamspaces (not in Lucidchart).
The action must be registered with EditorClient.registerAction prior to using it in the menu.
Parameters
Name | Type | Description |
---|---|---|
|
|
The definition of the new menu item |
Returns
addContextMenuItem
▸ addContextMenuItem(
Create a menu in the right click context menu. Appears in both Lucidspark and Lucidchart.
The action must be registered with EditorClient.registerAction prior to using it in the menu.
Parameters
Name | Type | Description |
---|---|---|
|
|
The definition of the new menu item |
Returns
addDropdownMenuItem
▸ addDropdownMenuItem(
Create a menu in the basic drop down top menus. In Lucidspark this will just be under the generic menu. In Lucidchart you can configure this to be in any of the other drop down menus.
The action must be registered with EditorClient.registerAction prior to using it in the menu.
Parameters
Name | Type | Description |
---|---|---|
|
|
The definition of the new menu item |
Returns
addMenuItem
▸ addMenuItem(
Generic function to create a new menu item to trigger custom code. You can use addDropdownMenuItem, addContextMenuItem, or addContentDockMenuItem for easier to use entrypoints.
The action must be registered with EditorClient.registerAction prior to using it in the menu.
Parameters
Name | Type | Description |
---|---|---|
|
|
The definition of the new menu item |
Returns
MockDataConnectorClient
dataconnector/dataconnectorclient.MockDataConnectorClient
Use this for writing automated tests for your data connector
Hierarchy
-
↳
MockDataConnectorClient
Constructors
constructor
• new MockDataConnectorClient()
Overrides
DataConnectorClient.constructor
Properties
dataSourceClient
•
set properties on this to modify how data source updates are mocked
urls
• urls:
Type declaration
Name | Type |
---|---|
|
|
|
|
Inherited from
Methods
getPublicKey
▸ getPublicKey():
Mocked version returns an empty string
Returns
Overrides
DataConnectorClient.getPublicKey
getSignatureValidator
▸ getSignatureValidator():
Mocked version just always returns successful
Returns
Overrides
DataConnectorClient.getSignatureValidator
parseActions
▸ parseActions(
Validate and parse an action request from Lucid
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
Returns
Inherited from
DataConnectorClient.parseActions
MockDataSourceClient
dataconnector/datasourceclient.MockDataSourceClient
A version of the DataSourceClient that you can use for any automated tests of your data connector. Modify the
Hierarchy
-
↳
MockDataSourceClient
Constructors
constructor
• new MockDataSourceClient()
Overrides
Properties
gotMetadata
• gotMetadata: (
Type declaration
▸ (
Assign this to your mocked update function
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
gotUpdate
• gotUpdate: (
Type declaration
▸ (
Assign this to your mocked update function
Parameters
Name | Type |
---|---|
|
|
Returns
patchedMetadata
• patchedMetadata: (
Type declaration
▸ (
Assign this to your mocked update function
Parameters
Name | Type |
---|---|
|
|
Returns
MockSignatureValidator
dataconnector/signaturevalidator.MockSignatureValidator
Mock signature validator, always returns true.
Constructors
constructor
• new MockSignatureValidator()
Methods
validate
▸ validate():
Returns
Modal
ui/modal.Modal
Extend this class to show a custom modal to the user, whose contents are displayed in a sandboxed iframe controlled by your extension.
To pass a message to a script running in the modal, call sendMessage. The data you pass in will be sent to the iframe with window.postMessage.
To pass messages back from the modal to this class, call parent.postMessage from within the iframe. The data sent will be passed along to the messageFromFrame implementation on your Modal class.
Hierarchy
-
↳
Modal
Constructors
constructor
• new Modal(
Parameters
Name | Type |
---|---|
|
|
|
|
Overrides
Properties
client
•
Inherited from
framePosition
•
The location of this frame within the top-level browser window. This is always updated immediately before
Type declaration
Name | Type |
---|---|
|
|
|
|
|
|
|
|
Inherited from
loaded
•
True after the iframe has fired an onload event (not all scripts are necessarily finished executing)
Inherited from
messageActionName
•
Inherited from
Methods
frameClosed
▸
Called when the iframe has been removed from the DOM
Returns
Overrides
frameLoaded
▸
Called when the iframe has been constructed, its srcdoc set, and the window loaded event has fired
Returns
Inherited from
hide
▸ hide():
If this modal is currently visible, close it, destroying the iframe.
Returns
hookMessages
▸
Subclasses must call hookMessages some time before the UI is displayed. A Modal will call this when the open() method is called, where a Panel will need to do this in the constructor to watch for the user opening the panel.
Returns
Inherited from
messageFromFrame
▸
Receives messages sent from the iframe via parent.postMessage(, '*')
Parameters
Name | Type | Description |
---|---|---|
|
|
data sent from the iframe |
Returns
Inherited from
sendMessage
▸ sendMessage(
Send a message to this UI component's iframe via window.postMessage.
Parameters
Name | Type | Description |
---|---|---|
|
|
Data to send to the iframe |
Returns
Inherited from
show
▸ show():
Returns
unhookMessages
▸
Subclasses must call unhookMessages to allow them to be garbage collected.
Returns
Inherited from
NDimensionalFieldTypeArray
core/data/fieldtypedefinition/ndimensionalfieldtypearray.NDimensionalFieldTypeArray
Constructors
constructor
• new NDimensionalFieldTypeArray(
Parameters
Name | Type |
---|---|
|
(
|
Properties
validTypesArray
•
Methods
getInnerNonArrayTypes
▸ getInnerNonArrayTypes(): (
Returns
(
getInnerTypes
▸ getInnerTypes(): (
Returns
(
toJSON
▸ toJSON():
Returns
PageProxy
document/pageproxy.PageProxy
One page in the current Lucid document
Hierarchy
-
↳
PageProxy
Constructors
constructor
• new PageProxy(
Parameters
Name | Type | Description |
---|---|---|
|
|
The ID of this page |
|
|
Overrides
Properties
allBlocks
•
The blocks contained on this page, including ones inside groups
allGroups
•
The groups contained on this page, including ones inside groups
allItems
•
All blocks, lines, and groups on the page, including ones inside groups
allLines
•
The lines contained on this page, including ones inside groups
allShapeData
•
All shape data accessible on this element, including shape data inherited from the page or a containing group. This collection is read-only.
Inherited from
blocks
•
The blocks contained directly on this page, not including ones inside groups
client
•
Inherited from
groups
•
The groups contained directly on this page, not including ones inside groups
id
•
Inherited from
lines
•
The lines contained directly on this page, not including ones inside groups
properties
•
All properties available on this element, organized by name. Not all properties are writeable (e.g. "ClassName" on a block). To move or resize elements, use setLocation() or setBoundingBox() or offset() instead.
Inherited from
referenceKeys
•
The set of reference keys, organized by their ID, which can be either a string or number.
For more information, see the Developer Guide.
Inherited from
shapeData
•
The shape data set directly on this element (not including any shape data inherited from the page or a containing group).
Inherited from
Methods
addBlock
▸ addBlock(
Add a new block to this page.
IMPORTANT: Because code for block classes are loaded incrementally, you MUST call EditorClient.loadBlockClasses with the given block class name (and wait for it to resolve) before attempting to create a block. If you don't, an error will be thrown.
Parameters
Name | Type | Description |
---|---|---|
|
|
The definition of the new block to add |
Returns
The added block
addDiagramFromMermaid
▸ addDiagramFromMermaid(
Add a diagram described by Mermaid markup to this page.
See https://mermaid.js.org/intro/syntax-reference.html for information on Mermaid markup syntax.
Parameters
Name | Type | Description |
---|---|---|
|
|
The type of the diagram. Note that this is redundant because the Mermaid markup also contains the diagram type. |
|
|
Mermaid markup text describing the diagram to add. |
|
|
Where to place the diagram on the page. If absent some free space within or near the current viewport is automatically chosen. |
|
|
If true and if origin is specified, places the diagram exactly at the specified origin instead of trying to find free space. |
Returns
An array of the proxies for all the objects in the added diagram.
addImage
▸ addImage(
Add a new image to this page.
Parameters
Name | Type | Description |
---|---|---|
|
|
The definition of the new image to add |
Returns
The added image
addLine
▸ addLine(
Add a new line to this page.
Parameters
Name | Type | Description |
---|---|---|
|
|
The definition of the new line to add |
Returns
The added line
applyRuleToAllItems
▸ applyRuleToAllItems(
Parameters
Name | Type | Description |
---|---|---|
|
|
Rule to apply to all items on this page |
Returns
delete
▸ delete():
Delete this page from the document if possible
Returns
duplicate
▸ duplicate():
Duplicates the page represented by the page proxy
Returns
executeFormula
▸ executeFormula(
Execute a formula in the context of this element
Parameters
Name | Type | Description |
---|---|---|
|
|
The formula text, e.g. "@a + @b" to add together the shape data values a and b. |
Returns
The result of the formula, or an error.
Inherited from
exists
▸ exists():
Returns
Inherited from
findAvailableSpace
▸ findAvailableSpace(
Find available space on this page for adding new content.
Parameters
Name | Type | Description |
---|---|---|
|
|
Place to start the search |
|
|
Place to start the search |
|
|
|
|
|
Returns
a reference to the page and origin (upper-left point) of the space you can add new content of the given size to.
Name | Type |
---|---|
|
|
|
|
|
|
findItems
▸ findItems(
Parameters
Name | Type | Description |
---|---|---|
|
|
An area of this page to search for blocks, lines, and groups |
|
|
Returns
(
Items in the given bounding box, based on the search type
getLLMContextForItems
▸ getLLMContextForItems(
Parameters
Name | Type | Default value |
---|---|---|
|
|
|
|
|
|
Returns
A string representing the content of the items provided, including immediate surrounding context if necessary, in a format that is easily understandable by LLMs like ChatGPT. Also a map of IDs, from the shortened IDs provided for the items in the context to the actual Lucid item IDs.
Name | Type |
---|---|
|
|
|
|
getPageNumber
▸ getPageNumber():
Returns
the page number of this page
getRulesAppliedToAllItems
▸ getRulesAppliedToAllItems():
Returns
All conditional formatting rules that are applied to every item on this page
getSvg
▸ getSvg(
Parameters
Name | Type | Default value | Description |
---|---|---|---|
|
|
|
If specified, only include these items in the resulting SVG |
|
|
|
If true, include the background of the page in the SVG. Otherwise the background is transparent. |
|
|
|
If specified, crop the resulting SVG to the specified bounding box in page coordinates |
Returns
A promise resolving to an SVG string
getTitle
▸ getTitle():
Returns
the title of this page
groupBlocks
▸ groupBlocks(
Creates a new group from a list of items.
Parameters
Name | Type | Description |
---|---|---|
|
|
A non-empty array of items to group |
Returns
The added group
importLinks
▸ importLinks(
Import links onto this page as link unfurl blocks
NOTE: links will be unfurled by Lucid based on extensions installed by user
Parameters
Name | Type | Description |
---|---|---|
|
|
links to be imported onto the canvas as link unfurl blocks |
Returns
removeReferenceKey
▸ removeReferenceKey(
Remove the specified reference key from this element.
Parameters
Name | Type |
---|---|
|
|
Returns
Inherited from
ElementProxy.removeReferenceKey
setReferenceKey
▸ setReferenceKey(
Set a reference key on this element, replacing any existing reference at the specified key.
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
Inherited from
setTitle
▸ setTitle(
Updates the page of this page
Parameters
Name | Type | Description |
---|---|---|
|
|
The new title for this page |
Returns
unapplyRuleToAllItems
▸ unapplyRuleToAllItems(
Parameters
Name | Type | Description |
---|---|---|
|
|
Rule to remove from the list applied to all items on this page |
Returns
Panel
ui/panel.Panel
Extend this class to show a custom panel to the user, whose contents are displayed in a sandboxed iframe controlled by your extension.
To pass a message to a script running in the panel, call sendMessage. The data you pass in will be sent to the iframe with window.postMessage.
To pass messages back from the panel to this class, call parent.postMessage from within the iframe. The data sent will be passed along to the messageFromFrame implementation on your Panel class.
Hierarchy
-
↳
Panel
Constructors
constructor
• new Panel(
Parameters
Name | Type |
---|---|
|
|
|
|
Overrides
Properties
client
•
Inherited from
config
•
framePosition
•
The location of this frame within the top-level browser window. This is always updated immediately before
Type declaration
Name | Type |
---|---|
|
|
|
|
|
|
|
|
Inherited from
loaded
•
True after the iframe has fired an onload event (not all scripts are necessarily finished executing)
Inherited from
messageActionName
•
Inherited from
Methods
frameClosed
▸
Called when the iframe has been removed from the DOM
Returns
Inherited from
frameLoaded
▸
Called when the iframe has been constructed, its srcdoc set, and the window loaded event has fired
Returns
Inherited from
hide
▸ hide():
Hide this panel if the panel is in the rightDock and it is currently visible.
Returns
hookMessages
▸
Subclasses must call hookMessages some time before the UI is displayed. A Modal will call this when the open() method is called, where a Panel will need to do this in the constructor to watch for the user opening the panel.
Returns
Inherited from
messageFromFrame
▸
Receives messages sent from the iframe via parent.postMessage(, '*')
Parameters
Name | Type | Description |
---|---|---|
|
|
data sent from the iframe |
Returns
Inherited from
sendMessage
▸ sendMessage(
Send a message to this UI component's iframe via window.postMessage.
Parameters
Name | Type | Description |
---|---|---|
|
|
Data to send to the iframe |
Returns
Inherited from
show
▸ show():
Show this panel if the panel is in the rightDock and it is not already visible.
Returns
unhookMessages
▸
Subclasses must call unhookMessages to allow them to be garbage collected.
Returns
Inherited from
Patch
dataconnector/actions/action.Patch
A patch to be applied against the 3rd party datasource with changes coming from Lucid
Constructors
constructor
• new Patch(
Parameters
Name | Type | Description |
---|---|---|
|
|
The id of the patch |
|
|
Mapping of item primary keys to new items introduced by Lucid |
|
|
Mapping of item primary keys to sparse changesets of pre-existing items changed by Lucid |
|
|
List of item primary keys deleted by Lucid |
|
|
|
|
|
The syncSourceId of the changed data source |
|
|
The syncCollectionId of the changed collection |
Properties
id
• id:
The id of the patch
itemOrderChanged
• itemOrderChanged:
itemsAdded
• itemsAdded:
Mapping of item primary keys to new items introduced by Lucid
itemsChanged
• itemsChanged:
Mapping of item primary keys to sparse changesets of pre-existing items changed by Lucid
itemsDeleted
• itemsDeleted:
List of item primary keys deleted by Lucid
syncCollectionId
• syncCollectionId:
The syncCollectionId of the changed collection
syncSourceId
• syncSourceId:
The syncSourceId of the changed data source
Methods
getChange
▸ getChange(
Parameters
Name | Type | Default value |
---|---|---|
|
|
|
Returns
toJSON
▸ toJSON():
Returns
PatchChange
dataconnector/actions/patchresponsebody.PatchChange
Reports a completed change back to Lucid
Constructors
constructor
• new PatchChange(
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
Properties
collections
• collections:
patchId
• patchId:
syncId
• syncId:
Methods
getErrors
▸ getErrors():
Returns
setError
▸ setError(
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
Returns
setTooltipError
▸ setTooltipError(
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
PatchCollectionProxy
data/patchcollectionproxy.PatchCollectionProxy
Constructors
constructor
• new PatchCollectionProxy(
Use CollectionProxy.getLocalChanges() to get a PatchCollectionProxy rather than constructing one directly.
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
|
|
Methods
getAddedItems
▸ getAddedItems():
Returns
all data items that have been added to this collection locally, but that have not yet been synced back to the external data source.
getChangedItems
▸ getChangedItems():
Returns
all data items that have been changed locally, but that have not yet been synced back to the external data source.
getDeletedItems
▸ getDeletedItems():
Returns
all data items that were deleted from this collection locally, but that have not yet been deleted in the external data source.
PatchedDataItemProxy
data/patchcollectionproxy.PatchedDataItemProxy
One data item in a collection, consisting of key-value pairs
Hierarchy
-
↳
PatchedDataItemProxy
Constructors
constructor
• new PatchedDataItemProxy(
Parameters
Name | Type | Description |
---|---|---|
|
|
- |
|
|
- |
|
|
The names of all fields that have been changed locally on this data item and not yet synced back to the external data source. |
|
|
The original data item, before local changes. You can query the original values for the changedFields from this data item. |
|
|
- |
Overrides
Properties
changedFields
•
The names of all fields that have been changed locally on this data item and not yet synced back to the external data source.
collection
•
Inherited from
fields
•
The fields on this data item, organized by their name.
Inherited from
original
•
The original data item, before local changes. You can query the original values for the changedFields from this data item.
primaryKey
•
Inherited from
Methods
exists
▸ exists():
Returns
True if a data item exists in this collection at this primary key
Inherited from
PropertyStoreProxy
document/propertystoreproxy.PropertyStoreProxy
Base class for anything on a Lucid document that has an ID and properties.
Hierarchy
-
PropertyStoreProxy
Constructors
constructor
• new PropertyStoreProxy(
Parameters
Name | Type | Description |
---|---|---|
|
|
ID of this element |
|
|
Properties
client
•
id
•
properties
•
All properties available on this element, organized by name. Not all properties are writeable (e.g. "ClassName" on a block). To move or resize elements, use setLocation() or setBoundingBox() or offset() instead.
ReferenceKeyProxy
data/referencekeyproxy.ReferenceKeyProxy
Constructors
constructor
• new ReferenceKeyProxy(
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
|
|
Properties
elementId
•
key
•
Accessors
collectionId
•
Returns
definition
•
Returns
primaryKey
•
Returns
Methods
getItem
▸ getItem():
Returns
RekeyingMap
dataconnector/itemrekeyer.RekeyingMap
Constructors
constructor
• new RekeyingMap(
Parameters
Name | Type |
---|---|
|
|
Properties
map
• map:
Methods
getNewKey
▸ getNewKey(
Parameters
Name | Type |
---|---|
|
|
Returns
getRecordWithNewKeys
▸ getRecordWithNewKeys(
Parameters
Name | Type |
---|---|
|
|
Returns
getRekeyedPatch
▸ getRekeyedPatch(
Parameters
Name | Type |
---|---|
|
|
Returns
RuleCondition
document/documentelement/ruleproxy.RuleCondition
Constructors
constructor
• new RuleCondition(
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
Properties
condition
•
If this.type == ConditionType.Text, this is a TextConditions. If this.type == ConditionType.ShapeData, this is a ShapeDataConditions. If this.type == ConditionType.ShapeType, this is a ShapeTypeConditions. If this.type == ConditionType.ConnectedShapes, this is a ConnectedShapesConditions.
field
•
For shape data conditions, the name of the shape data field to test
fieldLabel
•
For shape data conditions, the name to display to the end user to identify the field name
key
•
rule
•
type
•
What kind of condition is this? e.g. a formula evaluation, checking for non-empty text, etc.
value
•
For formula conditions, the formula string.
For other conditions,the value against which the condition is tested. For example, a condition with type = ConditionType.ShapeData condition = ShapeDataConditions.GreaterThan field = 'TheField' value = 14
will trigger when the shape data field "TheField" has a value that is greater than 14.
Methods
update
▸ update(
Update this condition to reflect a new definition
Parameters
Name | Type |
---|---|
|
|
Returns
RuleEffect
document/documentelement/ruleproxy.RuleEffect
Constructors
constructor
• new RuleEffect(
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
Properties
combination
•
How multiple conditions are combined (AND vs OR)
conditions
•
dataGraphic
•
For formatType = RuleFormattingType.DATA_GRAPHICS, a description of which icon appears and where
formatType
•
What kind of effect is displayed? Formatting vs. icons vs. dynamic stencil, etc.
formatting
•
For formatType = RuleFormattingType.FORMATTING, what styles are applied to blocks, lines, and pages?
key
•
rule
•
Methods
update
▸ update(
Update this effect to reflect a new definition
Parameters
Name | Type |
---|---|
|
|
Returns
RuleProxy
document/documentelement/ruleproxy.RuleProxy
Base class for anything on a Lucid document that has an ID and properties.
Hierarchy
-
↳
RuleProxy
Constructors
constructor
• new RuleProxy(
Parameters
Name | Type | Description |
---|---|---|
|
|
The ID of this conditional formatting rule |
|
|
Overrides
DocumentElementProxy.constructor
Properties
client
•
Inherited from
effects
•
id
•
Inherited from
properties
•
All properties available on this element, organized by name. Not all properties are writeable (e.g. "ClassName" on a block). To move or resize elements, use setLocation() or setBoundingBox() or offset() instead.
Inherited from
DocumentElementProxy.properties
Methods
delete
▸ delete():
Delete this conditional formatting rule from the document
Returns
getName
▸ getName():
Returns
getOrder
▸ getOrder():
Returns
setName
▸ setName(
Parameters
Name | Type |
---|---|
|
|
Returns
update
▸ update(
Update this rule to reflect a new definition
Parameters
Name | Type |
---|---|
|
|
Returns
ShapeDataProxy
document/shapedataproxy.ShapeDataProxy
The shape data fields on a single element of the current document
Hierarchy
-
WriteableMapProxy <string ,SerializedFieldType |SerializedDataError ,void >↳
ShapeDataProxy
Constructors
constructor
• new ShapeDataProxy(
Parameters
Name | Type | Description |
---|---|---|
|
|
The ID of the element, or undefined for the document itself |
|
|
Overrides
Properties
client
•
id
•
Accessors
size
•
Returns
Inherited from
WriteableMapProxy.size
Methods
addInheritable
▸ addInheritable(
Add shape data to this element that is inherited by its descendants.
If you add an inheritable shape data to a page, whose formula is "=@Cost * 4", then each item on that page will have a new shape data entry (in
Inheritable shape data on a page affects all items on the page. Inheritable shape data on a group affects all items inside that group.
Parameters
Name | Type | Description |
---|---|---|
|
|
Name of the new shape data |
|
|
Value (or formula, if starting with "=") of the new shape data |
Returns
delete
▸ delete(
Delete the specified shape data from this element
Parameters
Name | Type |
---|---|
|
|
Returns
filter
▸ filter(
Parameters
Name | Type |
---|---|
|
( |
Returns
(
Inherited from
find
▸ find(
Parameters
Name | Type |
---|---|
|
( |
Returns
Inherited from
first
▸ first():
Returns
Inherited from
get
▸ get(
Parameters
Name | Type |
---|---|
|
|
Returns
Inherited from
getString
▸ getString(
Parameters
Name | Type | Description |
---|---|---|
|
|
Name of the shape data to read |
Returns
The value if it is a string, or an empty string if it does not exist or is not a string.
keys
▸ keys():
Returns
Inherited from
map
▸ map<
Type parameters
Name |
---|
|
Parameters
Name | Type |
---|---|
|
( |
Returns
Inherited from
set
▸ set(
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
Returns
Inherited from
values
▸ values():
Returns
Inherited from
ShapeLegendEntryProxy
document/blockclasses/legendblockproxy.ShapeLegendEntryProxy
Hierarchy
-
↳
ShapeLegendEntryProxy
Constructors
constructor
• new ShapeLegendEntryProxy(
Parameters
Name | Type |
---|---|
|
|
|
|
Overrides
Properties
index
•
Inherited from
legend
•
Inherited from
type
•
Inherited from
Methods
getText
▸ getText():
Returns
Inherited from
setText
▸ setText(
Parameters
Name | Type |
---|---|
|
|
Returns
Inherited from
SignatureValidator
dataconnector/signaturevalidator.SignatureValidator
Allows validation that requests originated from Lucid. This class can only be instanciated in a NodeJS environment. Technically any environment that provides NodeJS compatible implementations of
Constructors
constructor
• new SignatureValidator(
Parameters
Name | Type |
---|---|
|
|
|
|
Methods
validate
▸ validate(
Validate a given request came from Lucid.
Parameters
Name | Type | Description |
---|---|---|
|
|
The body of the request as a plain JavaScript object. This should be JSON.parse called on exactly the request body that came from Lucid. |
|
|
The headers that are associated with the request. Only 'x-lucid-rsa-nonce' and 'x-lucid-signature' are required. |
|
|
- |
|
|
- |
|
|
The url of the current endpoint that is being requested. |
Returns
true if the request is valid
SwimLaneBlockProxy
document/blockclasses/swimlaneblockproxy.SwimLaneBlockProxy
A block is a single shape on the document. A BlockProxy provides an interface to read and write the content of an existing block, and is typically accessed through PageProxy.blocks or another similar mechanism.
Hierarchy
-
↳
SwimLaneBlockProxy
Constructors
constructor
• new SwimLaneBlockProxy(
Parameters
Name | Type | Description |
---|---|---|
|
|
ID of this item |
|
|
Inherited from
Properties
allShapeData
•
All shape data accessible on this element, including shape data inherited from the page or a containing group. This collection is read-only.
Inherited from
client
•
Inherited from
id
•
Inherited from
properties
•
All properties available on this element, organized by name. Not all properties are writeable (e.g. "ClassName" on a block). To move or resize elements, use setLocation() or setBoundingBox() or offset() instead.
Inherited from
referenceKeys
•
The set of reference keys, organized by their ID, which can be either a string or number.
For more information, see the Developer Guide.
Inherited from
shapeData
•
The shape data set directly on this element (not including any shape data inherited from the page or a containing group).
Inherited from
textAreas
•
The plain text in each of the text areas on this item, organized by text area name.
Inherited from
textStyles
•
The text style in each of the text areas on this item, organized by text area name.
Inherited from
classNameRegex
▪
Methods
applyRule
▸ applyRule(
Parameters
Name | Type | Description |
---|---|---|
|
|
Rule to apply to this item |
Returns
Inherited from
changeZOrder
▸ changeZOrder(
Parameters
Name | Type | Description |
---|---|---|
|
|
How to adjust the Z order of this item relative to the other items it overlaps on the page |
Returns
Inherited from
delete
▸ delete():
Delete this item from the document
Returns
Inherited from
executeFormula
▸ executeFormula(
Execute a formula in the context of this element
Parameters
Name | Type | Description |
---|---|---|
|
|
The formula text, e.g. "@a + @b" to add together the shape data values a and b. |
Returns
The result of the formula, or an error.
Inherited from
exists
▸ exists():
Returns
Inherited from
getBoundingBox
▸ getBoundingBox():
Returns
The bounding box of this item relative to its containing page. As pages may change size to fit the content on them, note that these coordinates may be negative or very large.
If this is a rotated block, the bounding box returned here is where the block would be if it were unrotated.
Inherited from
getClassName
▸ getClassName():
Returns
The class name of this block. This name is not necessarily human-readable, and will remain consistent over time, e.g. "ProcessBlock"..
Inherited from
getConnectedLines
▸ getConnectedLines():
Returns
An array of lines that have one or both endpoints connected to this block.
Inherited from
getContainers
▸ getContainers():
Returns
An array of blocks whose bounding boxes contain this item's upper-left corner
Inherited from
getLineWidth
▸ getLineWidth():
Returns
The line width used by most kinds of blocks to render their outline.
Inherited from
getLocation
▸ getLocation():
Returns
The x/y location of this item
Name | Type |
---|---|
|
|
|
|
Inherited from
getMagnetized
▸ getMagnetized():
Returns
getPage
▸ getPage():
Returns
The page containing this item
Inherited from
getPageId
▸ getPageId():
Returns
The ID of the page containing this item
Inherited from
getPrimaryLaneSizes
▸ getPrimaryLaneSizes():
Returns
getPrimaryLanes
▸ getPrimaryLanes():
Returns
getPrimaryLanesVertical
▸ getPrimaryLanesVertical():
Returns
getRotatedBoundingBox
▸ getRotatedBoundingBox():
Returns
An axis-aligned bounding box containing this full item after any rotation it might have
Inherited from
BlockProxy.getRotatedBoundingBox
getRotation
▸ getRotation():
Returns
The amount this block is rotated around its own center, in radians.
Inherited from
getShadow
▸ getShadow():
Returns
The current drop shadow on this block, or undefined if no shadow is set
Inherited from
getSimpleStaticDataGraphic
▸ getSimpleStaticDataGraphic():
Returns
Settings for the simple static data graphic currently set on this block, or undefined if no simple data graphic is currently set. Note that if a data graphic exists that is not an icon, this will return undefined. This function will not consider data graphics set via conditional formatting rules.
Inherited from
BlockProxy.getSimpleStaticDataGraphic
linkText
▸ linkText(
Link a text area to a data field, so that editing the text area will also update the associated data, and vice versa.
To use this, first establish a reference key on this block with setReferenceKey.
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
Returns
Inherited from
lockAspectRatio
▸ lockAspectRatio():
Lock this block's aspect ratio to its current value. This can be reversed with unlockAspectRatio.
Returns
Inherited from
measureText
▸ measureText(
Measure the amount of space necessary to render the text in the given text area, given a width to measure that text within.
Parameters
Name | Type | Description |
---|---|---|
|
|
Name of the text area whose content we should measure |
|
|
Width of the area in which to measure this text. The result will usually be no wider than this, but if a single word is long enough to go beyond this maxWidth, the width of that word will be returned. |
Returns
The size of rectangle necessary to render this text area's content.
Inherited from
offset
▸ offset(
Offset this item in the given direction by the given amount.
Parameters
Name | Type | Description |
---|---|---|
|
|
The type of offset to apply to this item |
|
|
The amount to offset |
Returns
Inherited from
removeReferenceKey
▸ removeReferenceKey(
Remove the specified reference key from this element.
Parameters
Name | Type |
---|---|
|
|
Returns
Inherited from
setBoundingBox
▸ setBoundingBox(
Swim lanes only use the normal BoundingBox property for location. For size, it uses the PrimaryLane and SecondaryLane properties.
Parameters
Name | Type |
---|---|
|
|
Returns
Overrides
setDataSyncStateIconPosition
▸ setDataSyncStateIconPosition(
Parameters
Name | Type | Description |
---|---|---|
|
|
The postion where the data sync state icon should be displayed on the block. If this position is set to undefined then the state icon position will fallback to the default position for the block. |
Returns
Inherited from
BlockProxy.setDataSyncStateIconPosition
setFillStyle
▸ setFillStyle(
Set the fill style used (by most kinds of blocks) to fill in their main opaque areas. This can be a string color (e.g.
Parameters
Name | Type |
---|---|
|
|
Returns
Inherited from
setLineWidth
▸ setLineWidth(
Parameters
Name | Type | Description |
---|---|---|
|
|
The line width to be used (by most kinds of blocks) to render this block's outline |
Returns
Inherited from
setLocation
▸ setLocation(
Moves this item so that its upper-left corner is positioned at the given location (prior to any rotation)
Parameters
Name | Type | Description |
---|---|---|
|
|
The target location |
Returns
Inherited from
setMagnetized
▸ setMagnetized(
Parameters
Name | Type |
---|---|
|
|
Returns
setPrimaryLaneSizes
▸ setPrimaryLaneSizes(
Parameters
Name | Type |
---|---|
|
|
Returns
setReferenceKey
▸ setReferenceKey(
Set a reference key on this element, replacing any existing reference at the specified key.
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
Inherited from
setRotation
▸ setRotation(
Parameters
Name | Type | Description |
---|---|---|
|
|
Angle the block should be rotated |
Returns
Inherited from
setShadow
▸ setShadow(
Parameters
Name | Type | Description |
---|---|---|
|
|
The drop shadow to set on the block, or undefined to clear the drop shadow |
Returns
Inherited from
setSimpleStaticDataGraphic
▸ setSimpleStaticDataGraphic(
Parameters
Name | Type | Description |
---|---|---|
|
|
Information about the static data graphic icon to set on this block. |
Returns
Inherited from
BlockProxy.setSimpleStaticDataGraphic
unapplyRule
▸ unapplyRule(
Parameters
Name | Type | Description |
---|---|---|
|
|
Rule to remove from this item |
Returns
Inherited from
unlockAspectRatio
▸ unlockAspectRatio():
Unlock the aspect ratio of this block, allowing it to be stretched vertically or horizontally independently.
Returns
Inherited from
SwimLanePrimaryLaneProxy
document/blockclasses/swimlaneblockproxy.SwimLanePrimaryLaneProxy
Constructors
constructor
• new SwimLanePrimaryLaneProxy(
Parameters
Name | Type |
---|---|
|
|
|
|
Properties
index
•
swimlane
•
Methods
getBoundingBox
▸ getBoundingBox():
Returns
Name | Type |
---|---|
|
|
|
|
|
|
|
|
getSize
▸ getSize():
For horizontal lanes, the lane height. For vertical lanes, the lane width.
Returns
getTitle
▸ getTitle():
Returns
setFill
▸ setFill(
Parameters
Name | Type |
---|---|
|
|
Returns
setTitle
▸ setTitle(
Parameters
Name | Type |
---|---|
|
|
Returns
TableBlockProxy
document/blockclasses/tableblockproxy.TableBlockProxy
A block is a single shape on the document. A BlockProxy provides an interface to read and write the content of an existing block, and is typically accessed through PageProxy.blocks or another similar mechanism.
Hierarchy
-
↳
TableBlockProxy
Constructors
constructor
• new TableBlockProxy(
Parameters
Name | Type | Description |
---|---|---|
|
|
ID of this item |
|
|
Inherited from
Properties
allShapeData
•
All shape data accessible on this element, including shape data inherited from the page or a containing group. This collection is read-only.
Inherited from
client
•
Inherited from
id
•
Inherited from
properties
•
All properties available on this element, organized by name. Not all properties are writeable (e.g. "ClassName" on a block). To move or resize elements, use setLocation() or setBoundingBox() or offset() instead.
Inherited from
referenceKeys
•
The set of reference keys, organized by their ID, which can be either a string or number.
For more information, see the Developer Guide.
Inherited from
shapeData
•
The shape data set directly on this element (not including any shape data inherited from the page or a containing group).
Inherited from
textAreas
•
The plain text in each of the text areas on this item, organized by text area name.
Inherited from
textStyles
•
The text style in each of the text areas on this item, organized by text area name.
Inherited from
classNameRegex
▪
Methods
addColumn
▸ addColumn(
Parameters
Name | Type | Default value | Description |
---|---|---|---|
|
|
|
The cell to add the new column before or after. |
|
|
|
If true, the new column will be added before the reference cell, otherwise it will be added after. |
Returns
The TableColumnProxy for the newly added column.
addRow
▸ addRow(
Parameters
Name | Type | Default value | Description |
---|---|---|---|
|
|
|
The cell to add the new row before or after. |
|
|
|
If true, the new row will be added before the reference cell, otherwise it will be added after. |
Returns
The TableRowProxy for the newly added row.
applyRule
▸ applyRule(
Parameters
Name | Type | Description |
---|---|---|
|
|
Rule to apply to this item |
Returns
Inherited from
changeZOrder
▸ changeZOrder(
Parameters
Name | Type | Description |
---|---|---|
|
|
How to adjust the Z order of this item relative to the other items it overlaps on the page |
Returns
Inherited from
delete
▸ delete():
Delete this item from the document
Returns
Inherited from
deleteColumn
▸ deleteColumn(
Parameters
Name | Type | Description |
---|---|---|
|
|
The index of the column to delete. |
Returns
deleteRow
▸ deleteRow(
Parameters
Name | Type | Description |
---|---|---|
|
|
The index of the row to delete. |
Returns
executeFormula
▸ executeFormula(
Execute a formula in the context of this element
Parameters
Name | Type | Description |
---|---|---|
|
|
The formula text, e.g. "@a + @b" to add together the shape data values a and b. |
Returns
The result of the formula, or an error.
Inherited from
exists
▸ exists():
Returns
Inherited from
getAutoResizeColumns
▸ getAutoResizeColumns():
Returns
getAutoResizeRows
▸ getAutoResizeRows():
Returns
getBoundingBox
▸ getBoundingBox():
Returns
The bounding box of this item relative to its containing page. As pages may change size to fit the content on them, note that these coordinates may be negative or very large.
If this is a rotated block, the bounding box returned here is where the block would be if it were unrotated.
Inherited from
getCellByTextAreaKey
▸ getCellByTextAreaKey(
Parameters
Name | Type | Description |
---|---|---|
|
|
The text area key of a cell in the table |
Returns
The TableCellProxy represented by the text area key, or undefined if the text area key does not exist in the table.
getClassName
▸ getClassName():
Returns
The class name of this block. This name is not necessarily human-readable, and will remain consistent over time, e.g. "ProcessBlock"..
Inherited from
getColumnCount
▸ getColumnCount():
Returns
getColumnWidths
▸ getColumnWidths():
Returns
getConnectedLines
▸ getConnectedLines():
Returns
An array of lines that have one or both endpoints connected to this block.
Inherited from
getContainers
▸ getContainers():
Returns
An array of blocks whose bounding boxes contain this item's upper-left corner
Inherited from
getLineWidth
▸ getLineWidth():
Returns
The line width used by most kinds of blocks to render their outline.
Inherited from
getLocation
▸ getLocation():
Returns
The x/y location of this item
Name | Type |
---|---|
|
|
|
|
Inherited from
getPage
▸ getPage():
Returns
The page containing this item
Inherited from
getPageId
▸ getPageId():
Returns
The ID of the page containing this item
Inherited from
getRotatedBoundingBox
▸ getRotatedBoundingBox():
Returns
An axis-aligned bounding box containing this full item after any rotation it might have
Inherited from
BlockProxy.getRotatedBoundingBox
getRotation
▸ getRotation():
Returns
The amount this block is rotated around its own center, in radians.
Inherited from
getRowCount
▸ getRowCount():
Returns
getRowHeights
▸ getRowHeights():
Returns
getRows
▸ getRows():
Returns
getShadow
▸ getShadow():
Returns
The current drop shadow on this block, or undefined if no shadow is set
Inherited from
getSimpleStaticDataGraphic
▸ getSimpleStaticDataGraphic():
Returns
Settings for the simple static data graphic currently set on this block, or undefined if no simple data graphic is currently set. Note that if a data graphic exists that is not an icon, this will return undefined. This function will not consider data graphics set via conditional formatting rules.
Inherited from
BlockProxy.getSimpleStaticDataGraphic
linkText
▸ linkText(
Link a text area to a data field, so that editing the text area will also update the associated data, and vice versa.
To use this, first establish a reference key on this block with setReferenceKey.
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
Returns
Inherited from
lockAspectRatio
▸ lockAspectRatio():
Lock this block's aspect ratio to its current value. This can be reversed with unlockAspectRatio.
Returns
Inherited from
measureText
▸ measureText(
Measure the amount of space necessary to render the text in the given text area, given a width to measure that text within.
Parameters
Name | Type | Description |
---|---|---|
|
|
Name of the text area whose content we should measure |
|
|
Width of the area in which to measure this text. The result will usually be no wider than this, but if a single word is long enough to go beyond this maxWidth, the width of that word will be returned. |
Returns
The size of rectangle necessary to render this text area's content.
Inherited from
offset
▸ offset(
Offset this item in the given direction by the given amount.
Parameters
Name | Type | Description |
---|---|---|
|
|
The type of offset to apply to this item |
|
|
The amount to offset |
Returns
Inherited from
removeReferenceKey
▸ removeReferenceKey(
Remove the specified reference key from this element.
Parameters
Name | Type |
---|---|
|
|
Returns
Inherited from
setAutoResizeColumns
▸ setAutoResizeColumns(
Parameters
Name | Type |
---|---|
|
|
Returns
setAutoResizeRows
▸ setAutoResizeRows(
Parameters
Name | Type |
---|---|
|
|
Returns
setBoundingBox
▸ setBoundingBox(
Attempts to move and resize this item to fit into the given bounding box. If this item (or another item it contains) has size or aspect ratio restrictions, it may not be possible to fit the requested location exactly.
This is done by moving this item to the requested location, then attempting to resize it from the bottom-right corner to the requested size.
Parameters
Name | Type | Description |
---|---|---|
|
|
The bounding box to attempt to make this item fill |
Returns
Inherited from
setColumnWidths
▸ setColumnWidths(
Parameters
Name | Type |
---|---|
|
|
Returns
setDataSyncStateIconPosition
▸ setDataSyncStateIconPosition(
Parameters
Name | Type | Description |
---|---|---|
|
|
The postion where the data sync state icon should be displayed on the block. If this position is set to undefined then the state icon position will fallback to the default position for the block. |
Returns
Inherited from
BlockProxy.setDataSyncStateIconPosition
setFillStyle
▸ setFillStyle(
Set the fill style used (by most kinds of blocks) to fill in their main opaque areas. This can be a string color (e.g.
Parameters
Name | Type |
---|---|
|
|
Returns
Inherited from
setInsetMargin
▸ setInsetMargin(
Parameters
Name | Type | Description |
---|---|---|
|
|
The inset margin to be used, it control the margin for each table cell. |
Returns
setLineWidth
▸ setLineWidth(
Parameters
Name | Type | Description |
---|---|---|
|
|
The line width to be used (by most kinds of blocks) to render this block's outline |
Returns
Inherited from
setLocation
▸ setLocation(
Moves this item so that its upper-left corner is positioned at the given location (prior to any rotation)
Parameters
Name | Type | Description |
---|---|---|
|
|
The target location |
Returns
Inherited from
setReferenceKey
▸ setReferenceKey(
Set a reference key on this element, replacing any existing reference at the specified key.
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
Inherited from
setRotation
▸ setRotation(
Parameters
Name | Type | Description |
---|---|---|
|
|
Angle the block should be rotated |
Returns
Inherited from
setRowHeights
▸ setRowHeights(
Parameters
Name | Type |
---|---|
|
|
Returns
setShadow
▸ setShadow(
Parameters
Name | Type | Description |
---|---|---|
|
|
The drop shadow to set on the block, or undefined to clear the drop shadow |
Returns
Inherited from
setSimpleStaticDataGraphic
▸ setSimpleStaticDataGraphic(
Parameters
Name | Type | Description |
---|---|---|
|
|
Information about the static data graphic icon to set on this block. |
Returns
Inherited from
BlockProxy.setSimpleStaticDataGraphic
unapplyRule
▸ unapplyRule(
Parameters
Name | Type | Description |
---|---|---|
|
|
Rule to remove from this item |
Returns
Inherited from
unlockAspectRatio
▸ unlockAspectRatio():
Unlock the aspect ratio of this block, allowing it to be stretched vertically or horizontally independently.
Returns
Inherited from
TableCellProxy
document/blockclasses/tableblockproxy.TableCellProxy
Constructors
constructor
• new TableCellProxy(
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
Properties
column
•
row
•
table
•
Methods
getBoundingBox
▸ getBoundingBox():
Returns
getHeight
▸ getHeight():
Returns
the pixel height of the cell, including any cells it is merged with.
getMergedCellSize
▸ getMergedCellSize():
Cells in a table can be merged together with adjacent cells into one larger cell. In this case, the upper- left cell remains visible but is enlarged to cover additional cells, and the other cells are hidden.
Returns
the size of this cell, in how many cells horizontally and vertically have been merged into it. For most cells, this will be {w:1, h:1}, but if it has been merged with the cell to the right of it, it would be {w:2, h:1}.
Name | Type |
---|---|
|
|
|
|
getText
▸ getText():
Returns
getTextStyle
▸ getTextStyle():
Returns
getWidth
▸ getWidth():
Returns
the pixel width of the cell, including any cells it is merged with.
setFill
▸ setFill(
Parameters
Name | Type |
---|---|
|
|
Returns
setMergedCellSize
▸ setMergedCellSize(
/**
- Cells in a table can be merged together with adjacent cells into one larger cell. In this case, the upper-
- left cell remains visible but is enlarged to cover additional cells, and the other cells are hidden.
Parameters
Name | Type | Description |
---|---|---|
|
|
the desired size of this cell, in how many cells horizontally and vertically are merged into it. * This normally {w:1, h:1} for a normal cell, or {w:2, h:1} to merge a cell with the one to the right of it, etc. |
|
|
- |
|
|
- |
Returns
setText
▸ setText(
Parameters
Name | Type |
---|---|
|
|
Returns
setTextStyle
▸ setTextStyle(
Parameters
Name | Type |
---|---|
|
|
Returns
TableColumnProxy
document/blockclasses/tableblockproxy.TableColumnProxy
Constructors
constructor
• new TableColumnProxy(
Parameters
Name | Type |
---|---|
|
|
|
|
Properties
col
•
table
•
Methods
getCells
▸ getCells():
Returns
getWidth
▸ getWidth():
Returns
TableRowProxy
document/blockclasses/tableblockproxy.TableRowProxy
Constructors
constructor
• new TableRowProxy(
Parameters
Name | Type |
---|---|
|
|
|
|
Properties
row
•
table
•
Methods
getCells
▸ getCells():
Returns
getHeight
▸ getHeight():
Returns
UserProxy
user/userproxy.UserProxy
The UserProxy class gives access to the current user on the current Lucid document.
Constructors
constructor
• new UserProxy(
Parameters
Name | Type |
---|---|
|
|
Properties
id
•
Methods
getAccessPermssionOnDocument
▸ getAccessPermssionOnDocument():
Returns
the permission the user has on the current document.
Viewport
ui/viewport.Viewport
Constructors
constructor
• new Viewport(
Parameters
Name | Type |
---|---|
|
|
Methods
cancelDraggingNewBlock
▸ cancelDraggingNewBlock():
If startDraggingNewBlock has been called, and the drag-new-block interaction is still active, cancel that interaction.
Returns
cancelDraggingNewImage
▸ cancelDraggingNewImage():
If startDraggingNewImage has been called, and the drag-new-image interaction is still active, cancel that interaction.
Returns
dragPointerMove
▸ dragPointerMove(
After calling startDraggingNewBlock, call this to simulate the user moving the mouse at the given location within the top-level browser window.
This has no effect if the drag-new-block interaction is not active.
To convert a position in a Panel's iframe to a position in the top-level browser window, add the IframeUI.framePosition.
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
dragPointerUp
▸ dragPointerUp(
After calling startDraggingNewBlock, call this to simulate the user releasing the mouse button at the given location within the top-level browser window.
This has no effect if the drag-new-block interaction is not active.
To convert a position in a Panel's iframe to a position in the top-level browser window, add the IframeUI.framePosition.
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
findAvailableSpace
▸ findAvailableSpace(
Find available space on the current page for adding new content.
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
a reference to the page and origin (upper-left point) of the space you can add new content of the given size to.
Name | Type |
---|---|
|
|
|
|
|
|
focusCameraOnItems
▸ focusCameraOnItems(
Switch to the page containing these items, if necessary, and then animate the viewport to zoom in and focus on these items.
Parameters
Name | Type | Description |
---|---|---|
|
|
The items the camera should zoom to |
Returns
getCurrentPage
▸ getCurrentPage():
Returns
the page currently being viewed
getSelectedItems
▸ getSelectedItems(
Parameters
Name | Type | Description |
---|---|---|
|
|
If true, and groups are selected, include the contents of those groups in the array |
Returns
An array of currently-selected items on the currently-visible page
getVisibleRect
▸ getVisibleRect():
Returns
the box for the current viewport location
hookSelection
▸ hookSelection(
Parameters
Name | Type | Description |
---|---|---|
|
( |
Called when the user changes their selection of items |
Returns
A handle representing this hook, which can be passed to unhookSelection to remove this hook.
hookTextEdit
▸ hookTextEdit(
If callback returns false, text editing is prevented. If callback returns true, text editing continues as normal.
If callback returns a TextEditCompletionCallback(/extension-sdk/#modules_ui_viewport_texteditcompletioncallback), then text editing is allowed, but that completion callback is called.
when the user finishes editing that text. That completion callback may return true or false to allow or deny the edit, or also may return a replacement string to use instead of the text the user actually typed. If replacement text is provided, it will be styled as close to the original as possible, but styles that apply to only parts of the original text will be discarded.
Parameters
Name | Type | Description |
---|---|---|
|
( |
Called just before the user starts editing text. |
|
|
Whether to trigger the callback eagerly during text edit |
Returns
A handle representing this hook, which can be passed to unhookTextEdit to remove this hook.
setCurrentPage
▸ setCurrentPage(
View the given page in the viewport
Parameters
Name | Type | Description |
---|---|---|
|
|
The page to view |
Returns
setSelectedItems
▸ setSelectedItems(
Unselect all currently-selected items, and select the subset of the given items that exist on the currently-visible page.
Parameters
Name | Type |
---|---|
|
|
Returns
startDraggingNewBlock
▸ startDraggingNewBlock(
Start an interaction of the current user dragging a new block onto the current page, exactly as if they started dragging that block out of the normal toolbox. At the time this function is called, the user's primary mouse button should be down (e.g. in a mousedown event handler).
Parameters
Name | Type | Description |
---|---|---|
|
|
Definition of the block to create if and where the user drops it on-canvas |
Returns
A promise resolving to a reference to the created block, if successfully dropped, or undefined if the user cancels the drag interaction.
startDraggingNewImage
▸ startDraggingNewImage(
Start an interaction of the current user dragging a new image onto the current page, exactly as if they started dragging that image out of the normal toolbox. At the time this function is called, the user's primary mouse button should be down (e.g. in a mousedown event handler).
Parameters
Name | Type | Description |
---|---|---|
|
|
Definition of the image to create if and where the user drops it on-canvas |
Returns
A promise resolving to a reference to the created image, if successfully dropped, or undefined if the user cancels the drag interaction.
unhookSelection
▸ unhookSelection(
Remove a hook set by hookSelection.
Parameters
Name | Type | Description |
---|---|---|
|
|
The return value of hookSelection. |
Returns
unhookTextEdit
▸ unhookTextEdit(
Remove a hook set by hookTextEdit.
Parameters
Name | Type | Description |
---|---|---|
|
|
The return value of hookTextEdit. |
Returns
Webhook
dataconnector/actions/action.Webhook
A description of an existing webhook that Lucid is keeping track of.
Constructors
constructor
• new Webhook(
Parameters
Name | Type | Description |
---|---|---|
|
|
Set of items this webhook is tracking as a |
|
|
Arbitrary extra data to allow the data connector to better identitify the webhook. |
Properties
documentCollections
• documentCollections:
Set of items this webhook is tracking as a
Index signature
▪ [collectionId:
webhookData
• webhookData:
Arbitrary extra data to allow the data connector to better identitify the webhook.
WriteableMapProxy<KEY, VALUE, WRITERETURN, WRITEVALUE>
document/mapproxy.WriteableMapProxy
A data structure similar to a normal Map which accesses its data through API commands to the Lucid app. This structure is iterable with
Type parameters
Name | Type |
---|---|
|
|
|
|
|
|
|
|
Hierarchy
-
MapProxy <KEY ,VALUE >↳
WriteableMapProxy
Constructors
constructor
• new WriteableMapProxy<
Type parameters
Name | Type |
---|---|
|
|
|
|
|
|
|
|
Parameters
Name | Type |
---|---|
|
() => |
|
( |
|
( |
Overrides
Accessors
size
•
Returns
Inherited from
MapProxy.size
Methods
filter
▸ filter(
Parameters
Name | Type |
---|---|
|
( |
Returns
Inherited from
find
▸ find(
Parameters
Name | Type |
---|---|
|
( |
Returns
Inherited from
first
▸ first():
Returns
Inherited from
get
▸ get(
Parameters
Name | Type |
---|---|
|
|
Returns
Inherited from
keys
▸ keys():
Returns
Inherited from
map
▸ map<
Type parameters
Name |
---|
|
Parameters
Name | Type |
---|---|
|
( |
Returns
Inherited from
set
▸ set(
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
Returns
values
▸ values():
Returns
Inherited from
Interfaces
Badgeable
core/properties/datagraphic/badgeposition.Badgeable
Properties
position
• position:
BadgeEnumPosition
core/properties/datagraphic/badgeposition.BadgeEnumPosition
Properties
horizontalPos
• horizontalPos:
layer
• layer:
responsive
• responsive:
verticalPos
• verticalPos:
BaseConditionDefinition
document/ruledefinition.BaseConditionDefinition
Hierarchy
-
BaseConditionDefinition
Properties
type
• type:
What kind of condition is this? e.g. a formula evaluation, checking for non-empty text, etc.
BaseEffectDefinition
document/ruledefinition.BaseEffectDefinition
Hierarchy
-
BaseEffectDefinition
Properties
combination
• combination:
How multiple conditions are combined (AND vs OR)
conditions
• conditions:
tooltip
•
BaseXHRResponse
core/xhr.BaseXHRResponse
Hierarchy
-
BaseXHRResponse
Properties
headers
• headers:
Headers sent by the server in the response
Index signature
▪ [key:
status
• status:
HTTP status, e.g. 200 or 404
timeout
•
True if this request failed due to a timeout
url
• url:
URL of the final response, after any redirects
BinaryXHRResponse
core/xhr.BinaryXHRResponse
Hierarchy
-
↳
BinaryXHRResponse
Properties
headers
• headers:
Headers sent by the server in the response
Index signature
▪ [key:
Inherited from
responseData
• responseData:
Contents of the response body
responseFormat
• responseFormat:
status
• status:
HTTP status, e.g. 200 or 404
Inherited from
timeout
•
True if this request failed due to a timeout
Inherited from
url
• url:
URL of the final response, after any redirects
Inherited from
BlockDefinition
document/blockdefinition.BlockDefinition
The information required to create a new block on the current document
Properties
boundingBox
• boundingBox:
The initial location and size of the block on the page.
className
• className:
The type of block to create, e.g. "ProcessBlock".
fillStyle
•
If specified, the initial FillColor property for the block
lineWidth
•
If specified, the initial line width for the block
properties
•
Additional properties to set on the block immediately after creation. This is not typically set directly (it's easier and safer to call
stencil
•
If specified, the stencil to use for a custom shape. This is not typically set directly; use EditorClient.getCustomShapeDefinition.
BlockEndpointDefinition
document/linedefinition.BlockEndpointDefinition
A line endpoint connected to another block
Hierarchy
-
↳
BlockEndpointDefinition
Properties
autoLink
•
If true, this endpoint may move around the target block in order to make the line less complex
connection
• connection:
inside
•
If true, the connection isn't to the edge of the target block, but inside it
linkX
• linkX:
0 to 1, relative X position in target block's bounding box
linkY
• linkY:
0 to 1, relative Y position in target block's bounding box
padding
•
If set, the distance from the connected block this endpoint should be
style
•
Omit to use defaults (theme)
Inherited from
BufferSingleton
dataconnector/cryptodependencies.BufferSingleton
Methods
from
▸ from(
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
CardIntegrationConfig
core/cardintegration/cardintegrationconfig.CardIntegrationConfig
Properties
cardConfig
• cardConfig:
Type declaration
Name | Type | Description |
---|---|---|
|
|
The data fields to be displayed on cards as data graphics |
|
|
The data fields to be displayed on cards, as data-linked text fields |
|
|
The default text style to set on each of the above fields for new cards. Any style not specified will use a default value, and any field name not present will use all defaults. |
cardDetailsPanelConfig
• cardDetailsPanelConfig:
Type declaration
Name | Type | Description |
---|---|---|
|
{ |
The data fields to be displayed in the details panel of a card |
CollectionDefinition
data/collectiondefinition.CollectionDefinition
Properties
items
• items:
schema
• schema:
CollectionPatch
dataconnector/datasourceupdatetypes.CollectionPatch
A patch to a collection or the definition of a new collection to be added. If adding a new collection, a schema must be provided. If modifying an existing collection, a schema may be omitted.
Properties
name
•
The collection's display name
patch
• patch:
The patch to apply to the collection
represents
•
What the collection implicitly represents *
schema
•
If changing an existing schema only the following changes are allowed:
- Adding a nullable field
- Promoting a type of a field to a union of types (
string ->string | number ) - Adding a new variant to a union type (
string | number ->string | number | boolean )
- Removing a field is not allowed (just add
| null and don't provide the field in patches anymore). - Changing a type in a way that any existing legal value is no longer valid for that field is not allowed.
CollectionReferenceKeyDefinition
data/referencekeydefinition.CollectionReferenceKeyDefinition
A reference key that points to a DataItem in a Collection. This is the most common type of reference key to create.
For more information, see the Developer Guide.
Properties
collectionId
• collectionId:
The ID of the collection referenced
fieldWhitelist
•
If specified, only expose this list of fields through this reference key. This can be used to limit namespace pollution in shape data from lots of unnecessary fields, or just to hide information you'd prefer not to be visible in the UI or through formulas.
primaryKey
• primaryKey:
The primary key of the data item referenced
readonly
•
If true, prevent the user from editing the field values of this reference key through the normal UI
Console
interop.Console
Methods
assert
▸ assert(
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
▸ assert(
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
clear
▸ clear():
Returns
▸ clear():
Returns
count
▸ count(
Parameters
Name | Type |
---|---|
|
|
Returns
▸ count(
Parameters
Name | Type |
---|---|
|
|
Returns
countReset
▸ countReset(
Parameters
Name | Type |
---|---|
|
|
Returns
▸ countReset(
Parameters
Name | Type |
---|---|
|
|
Returns
debug
▸ debug(...
Parameters
Name | Type |
---|---|
|
|
Returns
▸ debug(...
Parameters
Name | Type |
---|---|
|
|
Returns
dir
▸ dir(
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
▸ dir(
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
dirxml
▸ dirxml(...
Parameters
Name | Type |
---|---|
|
|
Returns
▸ dirxml(...
Parameters
Name | Type |
---|---|
|
|
Returns
error
▸ error(...
Parameters
Name | Type |
---|---|
|
|
Returns
▸ error(...
Parameters
Name | Type |
---|---|
|
|
Returns
group
▸ group(...
Parameters
Name | Type |
---|---|
|
|
Returns
▸ group(...
Parameters
Name | Type |
---|---|
|
|
Returns
groupCollapsed
▸ groupCollapsed(...
Parameters
Name | Type |
---|---|
|
|
Returns
▸ groupCollapsed(...
Parameters
Name | Type |
---|---|
|
|
Returns
groupEnd
▸ groupEnd():
Returns
▸ groupEnd():
Returns
info
▸ info(...
Parameters
Name | Type |
---|---|
|
|
Returns
▸ info(...
Parameters
Name | Type |
---|---|
|
|
Returns
log
▸ log(...
Parameters
Name | Type |
---|---|
|
|
Returns
▸ log(...
Parameters
Name | Type |
---|---|
|
|
Returns
table
▸ table(
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
▸ table(
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
time
▸ time(
Parameters
Name | Type |
---|---|
|
|
Returns
▸ time(
Parameters
Name | Type |
---|---|
|
|
Returns
timeEnd
▸ timeEnd(
Parameters
Name | Type |
---|---|
|
|
Returns
▸ timeEnd(
Parameters
Name | Type |
---|---|
|
|
Returns
timeLog
▸ timeLog(
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
▸ timeLog(
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
timeStamp
▸ timeStamp(
Parameters
Name | Type |
---|---|
|
|
Returns
▸ timeStamp(
Parameters
Name | Type |
---|---|
|
|
Returns
trace
▸ trace(...
Parameters
Name | Type |
---|---|
|
|
Returns
▸ trace(...
Parameters
Name | Type |
---|---|
|
|
Returns
warn
▸ warn(...
Parameters
Name | Type |
---|---|
|
|
Returns
▸ warn(...
Parameters
Name | Type |
---|---|
|
|
Returns
CryptoModule
dataconnector/cryptodependencies.CryptoModule
Methods
createPublicKey
▸ createPublicKey(
Parameters
Name | Type |
---|---|
|
|
Returns
verify
▸ verify(
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
|
|
Returns
CustomContentDockMenu
ui/menu.CustomContentDockMenu
Data to create a content dock icon in Spark + Teamspaces
Hierarchy
-
↳
CustomContentDockMenu
Properties
action
• action:
The registered action to run when the menu item is clicked
Overrides
disabledAction
•
If specified, what action's return value should determine if this menu item is disabled?
Inherited from
CustomMenuConfig.disabledAction
file
•
If specified, this menu item should launch a file picker
Type declaration
Name | Type | Description |
---|---|---|
|
|
An accept string as specified for HTML file inputs |
|
|
An action registered with EditorClient.registerFileUploadAction |
|
|
If true, send the file contents to the callback action as a Uint8Array as well as a plain text string |
|
|
If true, only allow a single file to be selected for upload |
Inherited from
iconUrl
• iconUrl:
The icon to display on the menu item. A URL (a data URI is fine) pointing to an icon representing the integration. This will be displayed at up to 32x32 CSS pixels in size.
label
• label:
The text to display on the menu item
Inherited from
visibleAction
•
If specified, what action's return value should determine if this menu item is visible?
Inherited from
CustomMenuConfig.visibleAction
CustomDropdownMenu
ui/menu.CustomDropdownMenu
Data to create a dropdown menu in the main top menus.
Hierarchy
-
↳
CustomDropdownMenu
Properties
action
•
The registered action to run when the menu item is clicked.
Inherited from
disabledAction
•
If specified, what action's return value should determine if this menu item is disabled?
Inherited from
CustomMenuConfig.disabledAction
file
•
If specified, this menu item should launch a file picker
Type declaration
Name | Type | Description |
---|---|---|
|
|
An accept string as specified for HTML file inputs |
|
|
An action registered with EditorClient.registerFileUploadAction |
|
|
If true, send the file contents to the callback action as a Uint8Array as well as a plain text string |
|
|
If true, only allow a single file to be selected for upload |
Inherited from
label
• label:
The text to display on the menu item
Inherited from
location
•
Where in that menu to display this item in Lucidchart. Defaults to the extension menu. In Lucidspark the only valid menu is Extension, it will not appear otherwise.
visibleAction
•
If specified, what action's return value should determine if this menu item is visible?
Inherited from
CustomMenuConfig.visibleAction
CustomIconEffectDefinition
document/ruledefinition.CustomIconEffectDefinition
Hierarchy
-
↳
CustomIconEffectDefinition
Properties
combination
• combination:
How multiple conditions are combined (AND vs OR)
Inherited from
BaseEffectDefinition.combination
conditions
• conditions:
Inherited from
BaseEffectDefinition.conditions
dataGraphic
• dataGraphic:
Type declaration
Name | Type |
---|---|
|
{ |
|
|
|
|
|
|
|
|
|
|
formatType
• formatType:
tooltip
•
Inherited from
CustomMenuConfig
ui/menu.CustomMenuConfig
Data to create a menu
Hierarchy
-
CustomMenuConfig
Properties
action
•
The registered action to run when the menu item is clicked.
disabledAction
•
If specified, what action's return value should determine if this menu item is disabled?
file
•
If specified, this menu item should launch a file picker
Type declaration
Name | Type | Description |
---|---|---|
|
|
An accept string as specified for HTML file inputs |
|
|
An action registered with EditorClient.registerFileUploadAction |
|
|
If true, send the file contents to the callback action as a Uint8Array as well as a plain text string |
|
|
If true, only allow a single file to be selected for upload |
label
• label:
The text to display on the menu item
visibleAction
•
If specified, what action's return value should determine if this menu item is visible?
CustomMenuItem
ui/menu.CustomMenuItem
A generic object to contain any information creating a menu might need. It is a little easier to use CustomMenuConfig, CustomDropdownMenu, or CustomContentDockMenu.
Properties
action
•
The registered action to run when the menu item is clicked
disabledAction
•
If specified, what action's return value should determine if this menu item is disabled?
file
•
If specified, this menu item should launch a file picker
Type declaration
Name | Type | Description |
---|---|---|
|
|
An accept string as specified for HTML file inputs |
|
|
An action registered with EditorClient.registerFileUploadAction |
|
|
If true, send the file contents to the callback action as a Uint8Array as well as a plain text string |
|
|
If true, only allow a single file to be selected for upload |
iconUrl
•
The icon to display on the menu item. A URL (a data URI is fine) pointing to an icon representing the integration. This will be displayed at up to 32x32 CSS pixels in size.
NOTE: Not all menuTypes support displaying an icon
label
• label:
The text to display on the menu item
location
•
Where in that menu to display this item
menuType
• menuType:
Which menu to display this item in
visibleAction
•
If specified, what action's return value should determine if this menu item is visible?
DataGraphicEffectDefinition
document/ruledefinition.DataGraphicEffectDefinition
Hierarchy
-
↳
DataGraphicEffectDefinition
Properties
combination
• combination:
How multiple conditions are combined (AND vs OR)
Inherited from
BaseEffectDefinition.combination
conditions
• conditions:
Inherited from
BaseEffectDefinition.conditions
dataGraphic
• dataGraphic:
Type declaration
Name | Type |
---|---|
|
|
|
|
|
|
|
|
formatType
• formatType:
tooltip
•
Inherited from
DeferredPromise<T>
core/defer.DeferredPromise
Type parameters
Name |
---|
|
Hierarchy
-
Promise <T >↳
DeferredPromise
Properties
[interfaces_core_defer-DeferredPromise_-tostringtag-]
•
Inherited from
Promise.__@toStringTag@218
promise
• promise:
reject
• reject: (
Type declaration
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
resolve
• resolve: (
Type declaration
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
Methods
catch
▸ catch<
Attaches a callback for only the rejection of the Promise.
Type parameters
Name | Type |
---|---|
|
|
Parameters
Name | Type | Description |
---|---|---|
|
|
The callback to execute when the Promise is rejected. |
Returns
A Promise for the completion of the callback.
Inherited from
Promise.catch
finally
▸ finally(
Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The resolved value cannot be modified from the callback.
Parameters
Name | Type | Description |
---|---|---|
|
|
The callback to execute when the Promise is settled (fulfilled or rejected). |
Returns
A Promise for the completion of the callback.
Inherited from
Promise.finally
then
▸ then<
Attaches callbacks for the resolution and/or rejection of the Promise.
Type parameters
Name | Type |
---|---|
|
|
|
|
Parameters
Name | Type | Description |
---|---|---|
|
|
The callback to execute when the Promise is resolved. |
|
|
The callback to execute when the Promise is rejected. |
Returns
A Promise for the completion of which ever callback is executed.
Inherited from
Promise.then
EndpointStyle
document/linedefinition.EndpointStyle
Hierarchy
-
EndpointStyle
Properties
style
•
Omit to use defaults (theme)
ExtensionCardFieldDefinition
core/cardintegration/cardintegrationdefinitions.ExtensionCardFieldDefinition
The definition for a field to be included in a SchemaDefinition
Hierarchy
-
↳
ExtensionCardFieldDefinition
Properties
constraints
•
Inherited from
default
•
If defined, the default value for this field
description
•
Additional information we can provide to users, e.g. as a hover tooltip
label
• label:
The label to display in the UI
mapping
•
Inherited from
name
• name:
Inherited from
options
•
If specified, the list of options available to choose from, or the name of a registered action that returns the list of options (either directly or as a Promise).
search
•
If specified, an action that takes the search text and input so far, and returns the list of options that should be displayed. This is useful when there are too many possible options to reasonably use the "options" option for options.
type
• type:
Inherited from
ExtensionCardFieldOption
core/cardintegration/cardintegrationdefinitions.ExtensionCardFieldOption
For fields with Option or ApiOption type, the label and value for each available option
Properties
iconUrl
•
label
• label:
value
• value:
Failure<T>
core/result.Failure
Type parameters
Name |
---|
|
Properties
error
• error:
FieldDefinition
data/schemadefinition.FieldDefinition
The definition for a field to be included in a SchemaDefinition
Hierarchy
-
FieldDefinition
Properties
constraints
•
mapping
•
name
• name:
type
• type:
FileUploadData
ui/menu.FileUploadData
Properties
binary
•
fileName
• fileName:
text
• text:
FlattenedReferenceDefinition
data/referencekeydefinition.FlattenedReferenceDefinition
A reference key that has the field values embedded directly in the reference definition. This can be useful in cases when you want to have a standard schema of data associated with an element but do not for whatever reason want to construct an actual Collection to house that data.
Properties
data
• data:
Field values available at this reference key
name
•
Name to display to the user for the reference key (what would normally be the collection name)
schema
• schema:
Schema of the data stored at this key
FormattingEffectDefinition
document/ruledefinition.FormattingEffectDefinition
Hierarchy
-
↳
FormattingEffectDefinition
Properties
combination
• combination:
How multiple conditions are combined (AND vs OR)
Inherited from
BaseEffectDefinition.combination
conditions
• conditions:
Inherited from
BaseEffectDefinition.conditions
formatType
• formatType:
formatting
• formatting:
Type declaration
Name | Type | Description |
---|---|---|
|
|
If specified, the color to use for affected block borders |
|
|
If specified, the style to use for affected block borders |
|
|
If specified, the width to use for affected block borders |
|
|
If specified, the color to use for affected block fills |
|
|
If specified, the color to use for affected lines |
|
|
If specified, the style to use for affected lines |
|
|
If specified, the width to use for affected lines |
tooltip
•
Inherited from
FormulaConditionDefinition
document/ruledefinition.FormulaConditionDefinition
Hierarchy
-
↳
FormulaConditionDefinition
Properties
formula
• formula:
The formula string
type
• type:
What kind of condition is this? e.g. a formula evaluation, checking for non-empty text, etc.
Overrides
I18nFormattedNumberParams
interop.I18nFormattedNumberParams
Properties
maximumFractionDigits
•
minimumFractionDigits
•
minimumIntegerDigits
•
useGrouping
•
I18nReplacement
interop.I18nReplacement
Indexable
▪ [s:
ImageDefinition
document/imagedefinition.ImageDefinition
The information required to create a new image block on the current document
Properties
boundingBox
• boundingBox:
The initial location and size of the block on the page.
fillStyle
• fillStyle:
Settings for using an image as the fill style of a block.
lineColor
•
the border color for this image (default is black, #000000).
lineWidth
•
The border width in pixels for this image (default is 1).
opacity
•
The opacity (0 - 1) for this image (default is 1).
rotation
•
The rotation for this image (deafult is 0).
rounding
•
The rounding for this image (default is 0).
strokeStyle
•
The stroke style for the border of this image (default is Solid).
ImportResult
core/cardintegration/lucidcardintegrationstandardimportmodal.ImportResult
Result of importing data from the import modal
Properties
collection
• collection:
primaryKeys
• primaryKeys:
JsonObject
core/jsonserializable.JsonObject
Indexable
▪ [key:
LineDefinition
document/linedefinition.LineDefinition
The information required in order to create a new line
Properties
endpoint1
• endpoint1:
endpoint2
• endpoint2:
LineEndpointDefinition
document/linedefinition.LineEndpointDefinition
A line endpoint that is connected to another line at some distance along that other line, where 0 is at that line's endpoint1, and 1 is at that line's endpoint2.
Hierarchy
-
↳
LineEndpointDefinition
Properties
connection
• connection:
position
• position:
0 to 1, distance along the target line
style
•
Omit to use defaults (theme)
Inherited from
LineTextAreaPositioning
document/linetextareapositioning.LineTextAreaPositioning
Properties
allowOverBlock
•
Normally text on a line is not allowed to overlap a block that is connected to either end of the line. If
location
• location:
A number between 0 and 1 representing how far this text lies along the line, where 0 puts the text at the same location as the first endpoint, and 1 puts the text at the same location as the second endpoint.
side
• side:
Which side of the line the text is displayed on. If zero, the text is on top of the line. If -1, the text is to the left of the line as you travel from the first to second endpoints. If 1, the text is to the right of the line as you travel from the first to second endpoints.
LockedFieldConstraintDefinition
data/schemadefinition.LockedFieldConstraintDefinition
Properties
type
• type:
value
•
LucidCardFieldDisplaySettings
core/cardintegration/cardfielddisplaysettings.LucidCardFieldDisplaySettings
Configuration settings for how to display a particular field on the card itself. Currently only used for adding custom data graphics with stencils.
Properties
stencilConfig
•
LucidCardIntegrationStandardImportModal
core/cardintegration/lucidcardintegrationstandardimportmodal.LucidCardIntegrationStandardImportModal
You can use the standard import modal can be used by providing the following data:
getSearchFields: Given the values entered by the user so far into search fields, return the list of all search fields to display in the search form.
search: Given values entered by the user into the search fields so far, return a collection of data to display in the results table. If partialImportMetadata is also returned, it will be used to create the tasks cards before the import is completed—which allows users to interact with the cards while the data is fetched asynchronously. The collectionId needs to match the id that will be returned from the completed import. The syncDataSourceId needs to match the syncDataSourceId that is passed into performDataAction. The last requirement for the partial import to work is that the primary keys in the data also returned in this search need to match the primary keys that will be returned on import.
import: The user checked the boxes beside the given list of items in the collection returned from search(). Import them, and return the collection and primary keys in that final collection that were imported.
onSetup: If specified, it's going to be called everytime the modal is setting up, right after the modal is displayed and before the initial form fields are shown to the user.
The config provided here is only used on the first import from a given source; on subsequent imports, the existing config will remain unchanged to preserve any customizations by the user.
Properties
getSearchFields
• getSearchFields: (
Type declaration
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
import
• import: (
Type declaration
▸ (
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
onSetup
•
Type declaration
▸ ():
Returns
search
• search: (
Type declaration
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
MaxLengthConstraintDefinition
data/schemadefinition.MaxLengthConstraintDefinition
Properties
type
• type:
value
• value:
MaxValueFieldConstraintDefinition
data/schemadefinition.MaxValueFieldConstraintDefinition
Properties
type
• type:
value
• value:
MetadataPatch
dataconnector/datasourcemetadatatypes.MetadataPatch
Properties
key
• key:
newValue
• newValue:
oldValue
• oldValue:
MetadataRecord
dataconnector/datasourcemetadatatypes.MetadataRecord
Properties
key
• key:
value
• value:
MinValueFieldConstraintDefinition
data/schemadefinition.MinValueFieldConstraintDefinition
Properties
type
• type:
value
• value:
NoWhitespaceFieldConstraintDefinition
data/schemadefinition.NoWhitespaceFieldConstraintDefinition
Properties
type
• type:
value
•
OAuthXHRRequest
core/xhr.OAuthXHRRequest
Hierarchy
-
↳
OAuthXHRRequest
Properties
data
•
The data to send as the body of the request
Inherited from
headers
•
Headers to send with the request. If specifying an array, multiple headers with the same name will be sent
Index signature
▪ [key:
Inherited from
method
•
HTTP method, e.g. "POST". If omitted, GET is used
Inherited from
postResultTo
•
When present, forwards the result of this request to the specified destination. Instead, this request returns whether the request will be made and forwarded, and not the actual request.
Note: There is an allow list which limits where the result can be posted. It is currently only to the result of LinkUnfurlBlockProxy#experimentalStartPDFUpload
responseFormat
•
The desired format for the returned response body. Defaults to 'utf8'.
- If 'utf8', the response body will be returned as a string.
- If 'binary', the response body will be returned as a Uint8Array.
Inherited from
streamCallback
•
Type declaration
▸ (
For utf8 responses, you can have the result streamed to you for endpoints that support it.
Parameters
Name | Type |
---|---|
|
|
Returns
Inherited from
timeoutMs
•
If specified, this request should time out after the given number of milliseconds
Inherited from
url
• url:
URL to request
Inherited from
PageDefinition
document/pagedefinition.PageDefinition
The information required to create a new page on the current document
Properties
title
• title:
PositionEndpointDefinition
document/linedefinition.PositionEndpointDefinition
A line endpoint that is free-floating at the given x/y location on the page
Hierarchy
-
↳
PositionEndpointDefinition
Properties
connection
•
style
•
Omit to use defaults (theme)
Inherited from
x
• x:
y
• y:
RequiredFieldConstraintDefinition
data/schemadefinition.RequiredFieldConstraintDefinition
Properties
type
• type:
value
•
RuleDefinition
document/ruledefinition.RuleDefinition
Properties
effects
• effects:
The possible visual effects of this conditional formatting rule, in priority order. The first effect whose conditions are met is used.
name
• name:
User-readable name of this conditional formatting rule
SchemaDefinition
data/schemadefinition.SchemaDefinition
Definition of a schema for creating a Collection
Properties
fieldLabels
•
Maps field names to labels to display in the UI when necessary. If any field name is not present as a key in this label map, the field name itself will be the label.
fields
• fields:
primaryKey
• primaryKey:
Field names that are used to construct primary keys for new data items. Typically this contains only one field name, and that field is usually unique.
SearchResult
core/cardintegration/lucidcardintegrationstandardimportmodal.SearchResult
Result of searching for data in the import modal
Properties
data
• data:
fields
• fields:
partialImportMetadata
•
Type declaration
Name | Type |
---|---|
|
|
|
|
SerializedCollectionPatch
dataconnector/datasourceupdatetypes.SerializedCollectionPatch
Properties
itemsPatch
• itemsPatch:
properties
•
schema
•
SerializedDataItems
core/data/serializedfield/serializeddataitems.SerializedDataItems
Indexable
▪ [primaryKey:
SerializedReferenceKey
core/data/referencekeys/serializedreferencekey.SerializedReferenceKey
Properties
cid
• cid:
f
•
Type declaration
Name | Type |
---|---|
|
|
|
|
|
|
|
|
pk
• pk:
ro
•
wl
•
SerializedSourceConfig
core/data/datasource/upstreamconfig.SerializedSourceConfig
Indexable
▪ [primaryKey:
SetterOptions
document/mapproxy.SetterOptions
Properties
force
•
Shadow
core/properties/shadow.Shadow
Properties
angle
• angle:
blur
• blur:
color
• color:
distance
• distance:
ShapeDataConditionDefinition
document/ruledefinition.ShapeDataConditionDefinition
Hierarchy
-
↳
ShapeDataConditionDefinition
Properties
condition
• condition:
field
• field:
The name of the shape data field to test
fieldLabel
•
The name to display to the end user to identify the field name
type
• type:
What kind of condition is this? e.g. a formula evaluation, checking for non-empty text, etc.
Overrides
value
•
The value against which the condition is tested. For example, a condition with type = ConditionType.ShapeData condition = ShapeDataConditions.GreaterThan field = 'TheField' value = 14
will trigger when the shape data field "TheField" has a value that is greater than 14.
ShapeTypeConditionDefinition
document/ruledefinition.ShapeTypeConditionDefinition
Hierarchy
-
↳
ShapeTypeConditionDefinition
Properties
classNames
• classNames:
condition
• condition:
type
• type:
What kind of condition is this? e.g. a formula evaluation, checking for non-empty text, etc.
Overrides
SingleLineFieldConstraintDefinition
data/schemadefinition.SingleLineFieldConstraintDefinition
Properties
type
• type:
value
•
StencilConfig
core/cardintegration/cardfielddisplaysettings.StencilConfig
Properties
backgroundColor
•
For displayType values that support it, you may provide an override for the background color for this data. If this is not provided, the background color will default to the background color of the card itself, darkened 5%.
This may be provided as a literal color hex, e.g. "#00ff00ff" or as a formula by starting the string with "=", e.g. "=darken("#ffffff", 0.5)"
displayType
• displayType:
How should we generate the stencil/data graphic from the specified field value? These are registered in LucidCardsLibrary.registerStencilDisplayTypes.
foregroundColor
•
For displayType values that support it, you may provide an override for the foreground color for this data. If this is not provided, the foreground color will default to grey.
This may be provided as a literal color hex, e.g. "#00ff00ff" or as a formula by starting the string with "=", e.g. "=darken("#ffffff", 0.5)"
horizontalPosition
•
Each display type has its default location on the card. You can override those default locations by setting these values.
imageBadgeSettings
•
For displayType values that support it, you may provide a height and a width for the image size. Images are 24px by 24px by default.
linkFormula
•
If onClickHandlerKey is OpenBrowserWindow, this formula calculates the URL to open.
onClickHandlerKey
•
If specified, what behavior should happen when the user clicks on the data graphic generated via the above displayType?
textBadgeSettings
•
Allows the same card to have multiple textbadges but have different properties. You can change bold, italic, underline, rounding, minwidth, minheight, maxtextwidth, maxfontsize
tooltipFormula
•
If specified, the result of this formula (executed in the context of the data item associated with this card) will be used as a tooltip when the user hovers the cursor over this data graphic.
valueFormula
•
If specified, the result of this formula (executed in the context of the data item associated with this card) will be used instead of the raw field value when creating the data graphic. This can be useful if, for example, you want to convert an ID into a URL.
verticalPosition
•
Each display type has its default location on the card. You can override those default locations by setting these values.
Success<T>
core/result.Success
Type parameters
Name |
---|
|
Properties
value
• value:
TextConditionDefinition
document/ruledefinition.TextConditionDefinition
Hierarchy
-
↳
TextConditionDefinition
Properties
condition
• condition:
type
• type:
What kind of condition is this? e.g. a formula evaluation, checking for non-empty text, etc.
Overrides
value
•
The value against which the condition is tested. For example, a condition with type = ConditionType.ShapeData condition = ShapeDataConditions.GreaterThan field = 'TheField' value = 14
will trigger when the shape data field "TheField" has a value that is greater than 14.
TextStyle
document/text/textstyle.TextStyle
Properties
align
• align:
bold
• bold:
color
• color:
font
• font:
italic
• italic:
size
• size:
underline
• underline:
TextXHRResponse
core/xhr.TextXHRResponse
Hierarchy
-
↳
TextXHRResponse
Properties
headers
• headers:
Headers sent by the server in the response
Index signature
▪ [key:
Inherited from
responseFormat
• responseFormat:
responseText
• responseText:
Plain text of the response body
status
• status:
HTTP status, e.g. 200 or 404
Inherited from
timeout
•
True if this request failed due to a timeout
Inherited from
url
• url:
URL of the final response, after any redirects
Inherited from
UnfurlCallbacks
core/unfurl/unfurlcallbacks.UnfurlCallbacks
The callbacks that handle unfurls and refreshing.
Properties
afterUnfurlCallback
•
Type declaration
▸ (
Callback after initial unfurl The purpose is to allow unfurlCallback to happen quickly, while afterUnfurlCallback handles longer running process
For example, preview image could be added in unfurlCallback, but multiple thumbnails (or PDF conversion etc.) could be added in afterUnfurlCallback -
This callback is also used for refresh to re-fetch the information
Parameters
Name | Type | Description |
---|---|---|
|
|
The block proxy of the unfurl block |
|
|
- |
Returns
expandCallback
•
Type declaration
▸ (
Callback upon clicking expand button. Occurs before attempting to expand iframe.
Parameters
Name | Type | Description |
---|---|---|
|
|
The block proxy of the unfurl block |
|
|
The url to unfurl |
Returns
unfurlCallback
• unfurlCallback: (
Type declaration
▸ (
Callback upon initial unfurl.
This should return with minimal delay to get a partial unfurl shown to the user as quick as possible. Final configuration of the unfurl should be done in afterUnfurlCallback.
This callback is also used for refresh to re-fetch the information
Parameters
Name | Type | Description |
---|---|---|
|
|
The url to unfurl |
Returns
The details of the unfurl or undefined
UnfurlDetails
core/unfurl/unfurldetails.UnfurlDetails
A definition of the details required to show an unfurl block in the editor.
Properties
iframe
•
If the unfurl supports an expandable iframe, this configuration defines its properties.
previewImageUrl
•
The url to show if there are no thumbnails.
This can be useful to show an initial image while using other mechanisms to add all thumbnails after the unfurl is created.
providerFaviconUrl
• providerFaviconUrl:
The favicon of the provider of this unfurl.
providerName
• providerName:
The name of the extension attributed to the unfurl. This is a user facing name that is used to attribute the unfurl to a specific third party.
thumbnails
•
If the unfurl contains one or more images, this configuration defines those properties.
unfurlTitle
•
The title associated with the link being unfurled. For example, the document or web page title.
UnfurlIframe
core/unfurl/unfurliframe.UnfurlIframe
A definition of the properties needed to expand an iframe for an unfurl
Properties
aspectRatio
•
The size of the iframe requested If not provided, 16:9
iframeTitle
•
The iframe title for accessibility
iframeUrl
• iframeUrl:
The iframe url
UnfurlThumbnail
core/unfurl/unfurlthumbnail.UnfurlThumbnail
A definition of a single unfurl thumbnail
Properties
height
•
The height of the image. This is not the height it will be displayed at, but rather the height the image actually is.
url
• url:
The URL to fetch the image from
width
•
The width of the image. This is not the height it will be displayed at, but rather the width the image actually is.
UniqueEditFieldConstraintDefinition
data/schemadefinition.UniqueEditFieldConstraintDefinition
Properties
type
• type:
value
•
UpstreamConfig
core/data/datasource/upstreamconfig.UpstreamConfig
Properties
dataSourceType
• dataSourceType:
patchType
•
sourceConfig
• sourceConfig:
Index signature
▪ [index:
updateType
• updateType:
XHRRequest
core/xhr.XHRRequest
Hierarchy
-
XHRRequest
Properties
data
•
The data to send as the body of the request
headers
•
Headers to send with the request. If specifying an array, multiple headers with the same name will be sent
Index signature
▪ [key:
method
•
HTTP method, e.g. "POST". If omitted, GET is used
responseFormat
•
The desired format for the returned response body. Defaults to 'utf8'.
- If 'utf8', the response body will be returned as a string.
- If 'binary', the response body will be returned as a Uint8Array.
streamCallback
•
Type declaration
▸ (
For utf8 responses, you can have the result streamed to you for endpoints that support it.
Parameters
Name | Type |
---|---|
|
|
Returns
timeoutMs
•
If specified, this request should time out after the given number of milliseconds
url
• url:
URL to request
Enumerations
BadgeBoxFit
core/rules/badgeboxfit.BadgeBoxFit
Enumeration Members
fitHeight
• fitHeight =
none
• none =
BadgeLayerPos
core/properties/datagraphic/badgeposition.BadgeLayerPos
Enumeration Members
EDGE
• EDGE =
INSIDE
• INSIDE =
OUTSIDE
• OUTSIDE =
BadgeResponsiveness
core/properties/datagraphic/badgeposition.BadgeResponsiveness
Enumeration Members
STACK
• STACK =
STATIC
• STATIC =
CollectionEnumFieldNames
core/data/fieldtypedefinition/collectionenumfieldtype.CollectionEnumFieldNames
Contains the field names of all valid fields for a groovy metadata collection.
This should be kept in sync with GroovyFieldNames in FieldType.scala
Enumeration Members
Color
• Color =
Description
• Description =
IconUrl
• IconUrl =
Id
• Id =
Name
• Name =
CommandName
commandtypes.CommandName
The lucid-extension-sdk library interacts with core Lucid products through this set of possible commands. Typically, an extension author will not need to access any of these commands directly, as they are all exposed through appropriate classes and methods elsewhere in this SDK.
To use these directly, use EditorClient.sendCommand.
FOR DEVELOPERS AT LUCID: Follow this guide to add new commands: https://lucidatlassian.atlassian.net/wiki/x/3AA3Xww Before you add a new command bring it up in #api-committee to get feedback.
Enumeration Members
AddCardIntegration
• AddCardIntegration =
AddDiagramFromMermaid
• AddDiagramFromMermaid =
AddDiagramFromText
• AddDiagramFromText =
AddLineTextArea
• AddLineTextArea =
AddMenuItem
• AddMenuItem =
AddShapeData
• AddShapeData =
AddSpreadsheetIntegration
• AddSpreadsheetIntegration =
AddTableColumn
• AddTableColumn =
AddTableRow
• AddTableRow =
Alert
• Alert =
AnimateViewport
• AnimateViewport =
AwaitDataSourceImport
• AwaitDataSourceImport =
AwaitImport
• AwaitImport =
Bootstrap
• Bootstrap =
CalculateHash
• CalculateHash =
CanEditPackageSettings
• CanEditPackageSettings =
CancelDragBlockToCanvas
• CancelDragBlockToCanvas =
Confirm
• Confirm =
CreateBlock
• CreateBlock =
CreateCards
• CreateCards =
CreateCollection
• CreateCollection =
CreateDataSource
• CreateDataSource =
CreateDocumentElement
• CreateDocumentElement =
CreateGroup
• CreateGroup =
CreateLine
• CreateLine =
CreatePage
• CreatePage =
CreateUserImage
• CreateUserImage =
DataAction
• DataAction =
DataItemExists
• DataItemExists =
DeleteDocumentElement
• DeleteDocumentElement =
DeleteItem
• DeleteItem =
DeletePage
• DeletePage =
DeleteShapeData
• DeleteShapeData =
DeleteTableColumn
• DeleteTableColumn =
DeleteTableRow
• DeleteTableRow =
Download
• Download =
DragPointerMove
• DragPointerMove =
DragPointerUp
• DragPointerUp =
DuplicateItems
• DuplicateItems =
ElementExists
• ElementExists =
ExecuteFormula
• ExecuteFormula =
FindAvailableSpace
• FindAvailableSpace =
FireBeaconEvent
• FireBeaconEvent =
GetConnectedLines
• GetConnectedLines =
GetCurrentPage
• GetCurrentPage =
GetCustomShape
• GetCustomShape =
GetDataItemField
• GetDataItemField =
GetDocumentAccessPermission
• GetDocumentAccessPermission =
GetDocumentChunks
• GetDocumentChunks =
GetDocumentId
• GetDocumentId =
GetElementType
• GetElementType =
GetEnvironmentConfig
• GetEnvironmentConfig =
GetItemPageId
• GetItemPageId =
GetItemsAt
• GetItemsAt =
GetLLMContextFromItems
• GetLLMContextFromItems =
GetOAuthClientId
• GetOAuthClientId =
GetOAuthToken
• GetOAuthToken =
GetPackageSettings
• GetPackageSettings =
GetProduct
• GetProduct =
GetProperty
• GetProperty =
GetReferenceKey
• GetReferenceKey =
GetRelativeLinePosition
• GetRelativeLinePosition =
GetSelection
• GetSelection =
GetShapeData
• GetShapeData =
GetSvg
• GetSvg =
GetTextStyle
• GetTextStyle =
GetUserId
• GetUserId =
GetVisibleRect
• GetVisibleRect =
HideModal
• HideModal =
HidePanel
• HidePanel =
HookAllChanges
• HookAllChanges =
HookCreateItems
• HookCreateItems =
HookDeleteItems
• HookDeleteItems =
HookSelection
• HookSelection =
HookTextEdit
• HookTextEdit =
ImportCards
• ImportCards =
ImportLinks
• ImportLinks =
ImportPage
• ImportPage =
KillExtension
• KillExtension =
ListBlocks
• ListBlocks =
ListCollectionFields
• ListCollectionFields =
ListCollections
• ListCollections =
ListDataItems
• ListDataItems =
ListDataSources
• ListDataSources =
ListDocumentElements
• ListDocumentElements =
ListGroups
• ListGroups =
ListLines
• ListLines =
ListPages
• ListPages =
ListProperties
• ListProperties =
ListReferenceKeys
• ListReferenceKeys =
ListShapeData
• ListShapeData =
ListTextAreas
• ListTextAreas =
LoadBlockClasses
• LoadBlockClasses =
LogForTestCase
• LogForTestCase =
MeasureText
• MeasureText =
OffsetItems
• OffsetItems =
PatchDataItems
• PatchDataItems =
Prompt
• Prompt =
RegisterPanel
• RegisterPanel =
RegisterUnfurl
• RegisterUnfurl =
ReloadExtension
• ReloadExtension =
SendAsyncOAuthRequest
• SendAsyncOAuthRequest =
SendOAuthRequest
• SendOAuthRequest =
SendPermanentTokenRequest
• SendPermanentTokenRequest =
SendUIMessage
• SendUIMessage =
SendXHR
• SendXHR =
SetCurrentPage
• SetCurrentPage =
SetPackageSettings
• SetPackageSettings =
SetProperty
• SetProperty =
SetReferenceKey
• SetReferenceKey =
SetSelection
• SetSelection =
SetShapeData
• SetShapeData =
SetText
• SetText =
SetTextStyle
• SetTextStyle =
ShowModal
• ShowModal =
ShowPackageSettingsModal
• ShowPackageSettingsModal =
ShowPanel
• ShowPanel =
SleepForTestCase
• SleepForTestCase =
StartDragBlockToCanvas
• StartDragBlockToCanvas =
StartPDFUploadRequest
• StartPDFUploadRequest =
ThrowForTestCase
• ThrowForTestCase =
TriggerAuthFlow
• TriggerAuthFlow =
UnhookAllChanges
• UnhookAllChanges =
UnhookCreateItems
• UnhookCreateItems =
UnhookDeleteItems
• UnhookDeleteItems =
UnhookSelection
• UnhookSelection =
UnhookTextEdit
• UnhookTextEdit =
WithMutex
• WithMutex =
WithSilentActions
• WithSilentActions =
ZOrder
• ZOrder =
ConditionCombination
core/rules/conditions.ConditionCombination
Enumeration Members
AND
• AND =
OR
• OR =
ConditionType
core/rules/conditiontype.ConditionType
Enumeration Members
ConnectedShapes
• ConnectedShapes =
Containment
• Containment =
Formula
• Formula =
ShapeData
• ShapeData =
ShapeType
• ShapeType =
Text
• Text =
ConnectedShapesCondition
core/rules/conditions.ConnectedShapesCondition
Enumeration Members
Between
• Between =
Equal
• Equal =
GreaterThan
• GreaterThan =
GreaterThanOrEqual
• GreaterThanOrEqual =
LessThan
• LessThan =
LessThanOrEqual
• LessThanOrEqual =
NotBetween
• NotBetween =
NotEqual
• NotEqual =
ContainmentConditions
core/rules/conditions.ContainmentConditions
Enumeration Members
TextContains
• TextContains =
TextDoesNotContain
• TextDoesNotContain =
DataConnectorActionKeys
dataconnector/actions/dataconnectoractionkeys.DataConnectorActionKeys
List of keys that are special kinds of actions and thus have more specific result types than just unknown
Enumeration Members
ManageWebhook
• ManageWebhook =
Patch
• Patch =
UnbatchedPatch
• UnbatchedPatch =
DataErrorType
core/dataerrortype.DataErrorType
Enumeration Members
AttributeNotFound
• AttributeNotFound =
The formula contains an attribute reference to an entity that does not exist.
Evaluation
• Evaluation =
An error occurred specific to a particular formula feature, e.g. adding together values of two different currencies.
InterfaceNotFound
• InterfaceNotFound =
The formula contains an interface reference that does not exist.
InvalidFunction
• InvalidFunction =
The formula attempts to call a function that does not exist.
InvalidParameter
• InvalidParameter =
The formula passes an invalid parameter to a function.
Loop
• Loop =
The formula directly or indirectly references itself. For example, if you have shape data a =
b =
c =
when trying to evaluate any of those values, they eventually reference themselves, and thus cannot be evaluated.
Parse
• Parse =
A formula syntax error occurred
ReferenceNotFound
• ReferenceNotFound =
The formula contains a reference to an entity that does not exist, e.g. an incorrect shape data name, field name, or object ID.
DataGraphicIconSets
core/properties/datagraphic/datagraphicindexes.DataGraphicIconSets
Enumeration Members
COMPLETION_PIES
• COMPLETION_PIES =
CUSTOM_ICONS
• CUSTOM_ICONS =
STATUS_CHECK_BOXES
• STATUS_CHECK_BOXES =
STATUS_CIRCLES
• STATUS_CIRCLES =
STATUS_ICONS
• STATUS_ICONS =
STOPLIGHTS
• STOPLIGHTS =
TOGGLES
• TOGGLES =
TRENDING_ARROWS
• TRENDING_ARROWS =
TRENDING_ARROWS_FLIPPED
• TRENDING_ARROWS_FLIPPED =
DataUpdateFilterType
data/dataupdatefiltertype.DataUpdateFilterType
Allows Lucid documents to determine what updates they will receive when changes happen in the data source
Enumeration Members
AllUpdates
• AllUpdates =
All updates relevant to the data source will be sent to the document, new items created in the data source will be added to the document. Note that the in the
CurrentCollectionUpdates
• CurrentCollectionUpdates =
All updates relevant to collections already present on the document will be sent to that document, new items added to those collections in the data source will be added to the document. Note that the
CurrentItemUpdates
• CurrentItemUpdates =
All updates to items already present on the document will be sent to the document. New items created in the data source will not be created on the document.
DocumentAccessPermission
document/documentaccesspermission.DocumentAccessPermission
This enumeration represents the access permission a user can have on a document. Note: Additional values may be added to this enumeration.
Enumeration Members
Comment
• Comment =
Can comment but can't share, edit, or change access permissions.
Edit
• Edit =
Can edit but can't share, or change access permissions.
EditAndShare
• EditAndShare =
Can edit, share, and change access permissions.
View
• View =
Can view but can't share, edit, comment, or change access permissions.
DocumentElementType
document/documentelement/documentelementtype.DocumentElementType
An enumeration of document element types. A Document element represents a collection of data that is stored on a document.
Enumeration Members
CommentThreadMetadata
• CommentThreadMetadata =
DataTransformation
• DataTransformation =
DocumentFormula
• DocumentFormula =
FontStylePreset
• FontStylePreset =
GeneratorView
• GeneratorView =
IntraDocumentMutex
• IntraDocumentMutex =
Path
• Path =
Rule
• Rule =
ShapeSpecificDefaultProperties
• ShapeSpecificDefaultProperties =
ShapeStylePreset
• ShapeStylePreset =
Tag
• Tag =
TaskCardFieldsConfig
• TaskCardFieldsConfig =
TrackedFormulaLocation
• TrackedFormulaLocation =
FieldConstraintType
core/data/serializedfield/serializedfielddefinition.FieldConstraintType
Enumeration Members
LOCKED
• LOCKED =
MAX_LENGTH
• MAX_LENGTH =
MAX_VALUE
• MAX_VALUE =
MIN_VALUE
• MIN_VALUE =
NO_WHITESPACE
• NO_WHITESPACE =
REQUIRED
• REQUIRED =
SINGLE_LINE_ONLY
• SINGLE_LINE_ONLY =
UNIQUE_EDIT
• UNIQUE_EDIT =
FieldDisplayType
core/cardintegration/cardfielddisplaysettings.FieldDisplayType
When configuring a field on a LucidCardBlock to be displayed as a data graphic, one of these values specifies the function to convert the field value to the data graphic settings. The definition of these functions is in LucidCardsLibrary.registerStencilDisplayTypes.
Enumeration Members
BasicTextBadge
• BasicTextBadge =
Text badge with the full text of the field. Black text on a light gray background in the upper-right of the card.
DateBadge
• DateBadge =
Given a date, display a small calendar icon alongside a very short version of the date as a string, e.g. "Sep 9"
ImageBadge
• ImageBadge =
Given a URL, display a small image cropped into a circle in the lower-left of the card.
InitializedString
• InitializedString =
Given a name (usually of a user), puts a text badge with their initials (first letter of each name) at the bottom-left of the card, black text on a light gray background.
SquareImageBadge
• SquareImageBadge =
Given a URL, display a small image cropped into a square in the lower-left of the card.
StandardEstimation
• StandardEstimation =
Given a number, display the number in the bottom-left of the card. If the number is higher than 999, display 999.
UserProfile
• UserProfile =
Given an object containing iconUrl (optional) and name (optional), determine whether to display as an ImageBadge or InitializedString (or nothing, if neither is present).
GetDocumentChunksType
commandtypes.GetDocumentChunksType
Enumeration Members
Container
• Container =
Breaks up a document into chunks by finding containing blocks
Geographic
• Geographic =
Breaks up a document into chunks geographically
GetItemsAtSearchType
commandtypes.GetItemsAtSearchType
Enumeration Members
Contained
• Contained =
Overlapping
• Overlapping =
PossiblyOverlapping
• PossiblyOverlapping =
GetLLMContextType
commandtypes.GetLLMContextType
Enumeration Members
PlainText
• PlainText =
Get context containing only plain text displayed on the given items, more suitable for embeddings
Relational
• Relational =
Get context in a format for LLMs where relationships among connected and contained items are preserved. Expand the scope of the selection to include blocks contained by the selection as well as lines connecting items in the selection.
RelationalWithoutExpansion
• RelationalWithoutExpansion =
Get context in a format for LLMs where relationships among connected and contained items are preserved. Do not expand the scope of the selection, other than to ensure relationships are represented. Text on selected items will be included, but text on automatically added items will not.
HashAlgorithmEnum
commandtypes.HashAlgorithmEnum
Enumeration Members
sha256
• sha256 =
Use the SHA 256 hashing algorithm
HorizontalBadgePos
core/properties/datagraphic/badgeposition.HorizontalBadgePos
Enumeration Members
CENTER
• CENTER =
LEFT
• LEFT =
RIGHT
• RIGHT =
LegendItemType
document/blockclasses/legendblockproxy.LegendItemType
Enumeration Members
Color
• Color =
Shape
• Shape =
LineShape
document/lineproxy.LineShape
Enumeration Members
Curve
• Curve =
Diagonal
• Diagonal =
Elbow
• Elbow =
LucidCardFields
core/cardintegration/cardfielddisplaysettings.LucidCardFields
Enumeration Members
Assignee
• Assignee =
Description
• Description =
EndTime
• EndTime =
Estimate
• Estimate =
StartTime
• StartTime =
Status
• Status =
Title
• Title =
LucidProduct
core/lucidproduct.LucidProduct
Lucid products supporting the extension API
Enumeration Members
Chart
• Chart =
Spark
• Spark =
TeamSpaces
• TeamSpaces =
MenuLocation
ui/menu.MenuLocation
Semantic locations to place a new menu item.
Enumeration Members
Edit
• Edit =
Export
• Export =
Extension
• Extension =
Default location: a new top-level menu entry for this extension, or the end of the context menu
Import
• Import =
Share
• Share =
View
• View =
MenuType
ui/menu.MenuType
Type of menu you're adding. Consider using addDropdownMenuItem, addContextMenuItem, or addContentDockMenuItem for easier to use entrypoints and clearer requirements.
Enumeration Members
ContentDock
• ContentDock =
The side dock in Lucidspark and Teamspaces
Context
• Context =
The context menu that appears when the user right-clicks the canvas.
Main
• Main =
The main drop down menus.
MermaidDiagramType
commandtypes.MermaidDiagramType
Enumeration Members
FLOWCHART
• FLOWCHART =
OffsetType
core/offsettype.OffsetType
When adjusting the size or location of items on a page, these are the specific operations that are available.
Enumeration Members
CUSTOM
• CUSTOM =
E
• E =
Resize from the east (right) side of the selection, stretching horizontally.
MOVE
• MOVE =
Move the selection without resizing.
N
• N =
Resize from the north (upper) side of the selection, stretching vertically.
NE
• NE =
Resize from the northeast (upper-right) corner of the selection, anchoring the lower-left corner in place.
NW
• NW =
Resize from the northwest (upper-left) corner of the selection, anchoring the lower-right corner in place.
ROTATE
• ROTATE =
S
• S =
Resize from the south (lower) side of the selection, stretching vertically.
SCALE
• SCALE =
SE
• SE =
Resize from the southeast (lower-right) corner of the selection, anchoring the upper-left corner in place.
SW
• SW =
Resize from the southwest (lower-left) corner of the selection, anchoring the upper-right corner in place.
W
• W =
Resize from the west (left) side of the selection, stretching horizontally.
OnClickHandlerKeys
core/cardintegration/cardfielddisplaysettings.OnClickHandlerKeys
When configuring a field on a LucidCardBlock to be displayed as a data graphic, this click handler value specifies what to do when the user clicks on the data graphic produced.
Enumeration Members
BasicEditPanel
• BasicEditPanel =
Display the UI panel to edit fields on the data associated with the card
CustomEditAction
• CustomEditAction =
Display a custom UI panel to edit non-standard fields on the data associated with the card
OpenBrowserWindow
• OpenBrowserWindow =
Open a new browser window to a URL specified by linkFormula
PanelLocation
ui/panel.PanelLocation
Semantic locations to place a new menu item.
Enumeration Members
ContentDock
• ContentDock =
In Lucidchart, create a sibling to the shape toolbox
ImageSearchTab
• ImageSearchTab =
In Lucidchart & Lucidspark, add to the image dock
RightDock
• RightDock =
In Lucidchart, create a sibling to the Contextual Panel
RuleFormattingType
core/rules/serializedeffect.RuleFormattingType
Enumeration Members
DATA_GRAPHICS
• DATA_GRAPHICS =
FORMATTING
• FORMATTING =
STENCIL
• STENCIL =
ScalarFieldTypeEnum
core/data/fieldtypedefinition/scalarfieldtype.ScalarFieldTypeEnum
Enumeration Members
ANY
• ANY =
BOOLEAN
• BOOLEAN =
COLOR
• COLOR =
CURRENCY
• CURRENCY =
DATE
• DATE =
DATEONLY
• DATEONLY =
DICTIONARY
• DICTIONARY =
NULL
• NULL =
NUMBER
• NUMBER =
STRING
• STRING =
TIMEONLY
• TIMEONLY =
SemanticCollection
core/data/datasource/semanticcollection.SemanticCollection
Used to define what a collection implicitly represents.
SemanticCollection.Items indicates that the collection's contents should be visualized as distinct elements (such as cards) that can be compared.
We currently only have one value in this enum. More will be added in the future.
The values in this enum are purposely generic.
Enumeration Members
Items
• Items =
SemanticFields
core/data/fieldtypedefinition/semanticfields.SemanticFields
Semantic Fields serve as standardized categories that transcend individual data source labels, facilitating a uniform way to access and manipulate data. For instance, regardless of the source, data that pertains to "titles" or "user information" often carries the same kind of information, though it may be labeled differently across systems. Lucid’s Semantic Fields ensure that such data is recognized and treated consistently within the platform, regardless of external labeling conventions.
Semantic Mapping is the process through which Lucid aligns these disparate field names to a set of standardized Semantic Fields. By using Semantic Fields like Title, Description, User, and Project, Lucid simplifies the way users access and interact with data brought in from external sources.
Benefits of Semantic Fields: Uniformity: Ensures that data from diverse sources is referenced consistently within Lucid. Integration Simplicity: Simplifies the process of integrating new data sources into Lucid by mapping to an established set of Semantic Fields. Feature Compatibility: Allows for seamless use of Lucid’s intelligent features across all data, regardless of its origin. Data Organization: Provides a structured approach to organizing and grouping data within the Lucid ecosystem.
Enumeration Members
Description
• Description =
Captures detailed information or a summary about an item.
EndTime
• EndTime =
Pertains to the ending or completion time of an item.
Estimate
• Estimate =
Contains estimations related to items, like time or resource estimates.
ImageUrl
• ImageUrl =
Refers to the URL of the image associated with this item
IssueType
• IssueType =
Classifies the type of issue or item, typically in the context of a ticketing system.
Priority
• Priority =
Indicates the importance or urgency level of an item.
Project
• Project =
Relates to the project with which an item is associated.
Reporter
• Reporter =
Specific to the reporting user, typically in the context of a ticketing system.
SourceItemUrl
• SourceItemUrl =
The unique URL or identifier linking back to the item’s source.
Status
• Status =
Reflects status of an item, typically in the context of a ticketing system.
Time
• Time =
Refers to the time associated with an item.
Title
• Title =
Represents the title or main descriptor of an item.
User
• User =
Refers to the user associated with or assigned to an item.
SemanticKind
core/data/fieldtypedefinition/semantickind.SemanticKind
use SemanticFields instead. SemanticKind has not been removed to ensure backwards compatability.
Enumeration Members
Assignee
• Assignee =
Description
• Description =
EndTime
• EndTime =
Estimate
• Estimate =
GroupByHint
• GroupByHint =
Id
• Id =
Image
• Image =
IssueType
• IssueType =
Name
• Name =
PrimaryKeyReference
• PrimaryKeyReference =
Priority
• Priority =
Project
• Project =
Reporter
• Reporter =
StartTime
• StartTime =
Status
• Status =
Title
• Title =
URL
• URL =
ShapeDataConditions
core/rules/conditions.ShapeDataConditions
Enumeration Members
Between
• Between =
Equal
• Equal =
GreaterThan
• GreaterThan =
GreaterThanOrEqual
• GreaterThanOrEqual =
LessThan
• LessThan =
LessThanOrEqual
• LessThanOrEqual =
NotBetween
• NotBetween =
NotEqual
• NotEqual =
TextContains
• TextContains =
TextDoesNotContain
• TextDoesNotContain =
TextEmpty
• TextEmpty =
TextEndsWith
• TextEndsWith =
TextEquals
• TextEquals =
TextNotEmpty
• TextNotEmpty =
TextNotEqual
• TextNotEqual =
TextStartsWith
• TextStartsWith =
ShapeDataInheritance
core/shapedatainheritance.ShapeDataInheritance
Enumeration Members
NAME
• NAME =
Really just a UI level of inheritance, where the shape data panel should show the ability for you to enter a value under this name, and the name isn't editable. Because the default value for missing data is already empty, there's no need to actually do much down here in the model layer.
NONE
• NONE =
VALUE
• VALUE =
This is true inheritance, where the formula/value of the shape data is available on all descendant elements. i.e. if a page has a VALUE-inheritable shape data entry, that appears on every single Element on the page, including all groups and items inside those groups.
ShapeTypeConditions
core/rules/conditions.ShapeTypeConditions
Enumeration Members
TextContains
• TextContains =
TextDoesNotContain
• TextDoesNotContain =
SimpleImageFillPosition
core/properties/fillcolor.SimpleImageFillPosition
Different ways of laying out the image in the background of the block.
Enumeration Members
Fill
• Fill =
The image retains its original aspect ratio, and is as small as possible while still completely covering the block
Fit
• Fit =
The image retains its original aspect ratio, and is as large as possible while still fitting in the block
Original
• Original =
The image is shown in its original size if possible
Stretch
• Stretch =
The image is stretched to the bounding box of the block
Tile
• Tile =
The image is tiled in its original size vertically and horizontally to fully cover the block
StatusValues
core/cardintegration/cardfielddisplaysettings.StatusValues
These are the six possible values for the status of a basic card block. Must be kept in sync with cake/app/webroot/ts/libraries/lucidcards/lucidcarddefaultstatus.ts
Enumeration Members
Blocked
• Blocked =
Done
• Done =
InProgress
• InProgress =
New
• New =
NotDoing
• NotDoing =
Todo
• Todo =
StrokeStyle
core/properties/strokestyle.StrokeStyle
Enumeration Members
DashDot
• DashDot =
DashDotDot
• DashDotDot =
DashLongDash
• DashLongDash =
Dashed
• Dashed =
Dashed24
• Dashed24 =
Dashed32
• Dashed32 =
Dashed44
• Dashed44 =
DotDotDot
• DotDotDot =
Dotted
• Dotted =
LongDash
• LongDash =
Solid
• Solid =
StripeThickThick
• StripeThickThick =
StripeThickThin
• StripeThickThin =
StripeThickThinThick
• StripeThickThinThick =
StripeThinThick
• StripeThinThick =
StripeThinThickThin
• StripeThinThickThin =
StripeThinThin
• StripeThinThin =
StripeTriple
• StripeTriple =
TextConditions
core/rules/conditions.TextConditions
Enumeration Members
Between
• Between =
Equal
• Equal =
GreaterThan
• GreaterThan =
GreaterThanOrEqual
• GreaterThanOrEqual =
LessThan
• LessThan =
LessThanOrEqual
• LessThanOrEqual =
NotBetween
• NotBetween =
NotEqual
• NotEqual =
TextContains
• TextContains =
TextDoesNotContain
• TextDoesNotContain =
TextEmpty
• TextEmpty =
TextNotEmpty
• TextNotEmpty =
TextMarkupNames
document/text/textstyle.TextMarkupNames
Text styles that can be read and written with ItemProxy.textStyles.
Enumeration Members
Bold
• Bold =
Color
• Color =
Family
• Family =
HAlign
• HAlign =
Italic
• Italic =
Size
• Size =
Underline
• Underline =
UnfurlCallbackType
core/unfurl/unfurlcallbacks.UnfurlCallbackType
Enumeration Members
AfterUnfurl
• AfterUnfurl =
ExpandCallback
• ExpandCallback =
Unfurl
• Unfurl =
UnfurlIframeAspectRatio
core/unfurl/unfurliframe.UnfurlIframeAspectRatio
An enumeration of of the supported unfurl Iframe aspect ratio. The iframe will be maximized to fit the screen responsively
Enumeration Members
FourToThree
• FourToThree =
Aspect ratio 4:3, wider rectangle
NineToSixteen
• NineToSixteen =
Aspect ratio 9:16, taller rectangle
SixteenToNine
• SixteenToNine =
Aspect ratio 16:9, wider rectangle This will be the default setting if not provided
Square
• Square =
Aspect ratio 1:1, square
ThreeToFour
• ThreeToFour =
Aspect ratio 3:4, taller rectangle
UnfurlRefreshErrorType
core/unfurl/unfurlrefresherrortype.UnfurlRefreshErrorType
Enumeration Members
AuthorizationFailure
• AuthorizationFailure =
GenericFailure
• GenericFailure =
VerticalBadgePos
core/properties/datagraphic/badgeposition.VerticalBadgePos
Enumeration Members
BOTTOM
• BOTTOM =
CENTER
• CENTER =
TOP
• TOP =
ZOrderOperation
commandtypes.ZOrderOperation
Enumeration Members
BOTTOM
• BOTTOM =
DOWN
• DOWN =
TOP
• TOP =
UP
• UP =
Modules
commandtypes
Enumerations
- CommandName
- GetDocumentChunksType
- GetItemsAtSearchType
- GetLLMContextType
- HashAlgorithmEnum
- MermaidDiagramType
- ZOrderOperation
Type Aliases
AddCardIntegrationQuery
Ƭ AddCardIntegrationQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
{ |
If specified, add-card settings |
|
|
Create card action |
|
|
Get input fields action |
|
{ |
If specified, custom import modal |
|
|
- |
|
|
Data connector name |
|
{ |
Field configuration |
|
[ |
Field name -> callback name tuples for searching for legal field values in an enum |
|
|
Callback to get field definitions for all fields supported by the card integration |
|
|
Callback to handle a change in the fields the user want to be displayed |
|
|
Get default config action |
|
|
Show intro if user has not yet authorized this integration |
|
|
Item label |
|
{ |
If specified, import modal settings |
|
|
Get search fields action |
|
|
Import action |
|
|
OnSetup action |
|
|
Search action |
|
|
Items label |
|
|
Title/name |
|
|
Text style |
|
|
Icon url |
AddCardIntegrationResult
Ƭ AddCardIntegrationResult:
AddDiagramFromMermaidQuery
Ƭ AddDiagramFromMermaidQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
If true, place the diagram exactly at the point. Otherwise, place it in open space near the point. |
|
|
A mermaid diagram syntax string, e.g., flowchart TD\nA --> B |
|
|
The point on the canvas for placing the diagram |
|
|
Type of diagram as an enum, e.g., flowchart. |
AddDiagramFromMermaidResult
Ƭ AddDiagramFromMermaidResult:
A list of shape ids that represent the mermaid diagram. Empty if the rendering fails.
AddLineTextAreaQuery
Ƭ AddLineTextAreaQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Which line |
|
|
Where to place the text along the line |
|
|
Plain text to put at this location (will be styled with document theme) |
AddLineTextAreaResult
Ƭ AddLineTextAreaResult:
The name of the created text area
AddMenuItemQuery
Ƭ AddMenuItemQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Named action to run when the menu item is clicked |
|
|
Named action that returns whether the menu item should be disabled |
|
{ |
If specified, this menu item should launch a file picker |
|
|
Action to call when files are selected |
|
|
File types to accept |
|
|
Return content in a binary ArrayBuffer instead of as text |
|
|
Single file only |
|
|
Url of the Icon to display on the menu item |
|
|
Label to display on the menu item |
|
|
If specified, where to place the menu item; defaults to MenuLocation.Extension |
|
|
Which menu to put the item in |
|
|
Named action that returns whether the menu item should be visible |
AddMenuItemResult
Ƭ AddMenuItemResult:
AddShapeDataQuery
Ƭ AddShapeDataQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Inheritance setting for the new shape data |
|
|
ID of the element to add this shape data to |
|
|
Name for this shape data |
|
|
Initial value of this shape data; use a string beginning with '=' for a formula |
AddShapeDataResult
Ƭ AddShapeDataResult:
AddTableColumnQuery
Ƭ AddTableColumnQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
True if the column should be added before the reference cell |
|
|
Column of the reference cell that the column should be added next to |
|
|
ID of the table to add this column to |
|
|
Row of the reference cell that the column should be added next to |
AddTableColumnResult
Ƭ AddTableColumnResult:
The index of the newly created column
AddTableRowQuery
Ƭ AddTableRowQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
True if the row should be added before the reference cell |
|
|
Column of the reference cell that the row should be added next to |
|
|
ID of the table to add this row to |
|
|
Row of the reference cell that the row should be added next to |
AddTableRowResult
Ƭ AddTableRowResult:
The index of the newly created row
AlertQuery
Ƭ AlertQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Body text |
|
|
Button text; defaults to i18n'ed "OK" |
|
|
Title; defaults to extension title |
AlertResult
Ƭ AlertResult:
True if they click OK, false otherwise
AnimateViewportQuery
Ƭ AnimateViewportQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Bounding box on that page that will fill as much of the viewport as possible |
|
|
ID of the page to view |
AnimateViewportResult
Ƭ AnimateViewportResult:
AwaitDataSourceImportQuery
Ƭ AwaitDataSourceImportQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Data Connector Name |
|
|
Sync data source ID Nonce |
AwaitDataSourceImportResult
Ƭ AwaitDataSourceImportResult:
Promise resolving to the data source ID where the data arrived
AwaitImportQuery
Ƭ AwaitImportQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Sync collection ID |
|
|
Data Connector Name |
|
|
Keys to await |
|
|
Sync data source ID Nonce |
|
|
Timeout in milliseconds; reject returned promise if no data appears in time |
AwaitImportResult
Ƭ AwaitImportResult:
Promise resolving to the collection ID where the data arrived
BootstrapQuery
Ƭ BootstrapQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Named action that accepts the bootstrap data, and which may return a Promise or void. After awaiting\ the result of the callback, the bootstrap data is cleared. |
|
|
Marks a document as requiring the editor extension. |
BootstrapResult
Ƭ BootstrapResult:
CalculateHashQuery
Ƭ CalculateHashQuery:
Type declaration
Name | Type |
---|---|
|
|
|
|
CalculateHashResult
Ƭ CalculateHashResult:
CanEditPackageSettingsQuery
Ƭ CanEditPackageSettingsQuery:
CanEditPackageSettingsResult
Ƭ CanEditPackageSettingsResult:
CancelDragBlockToCanvasQuery
Ƭ CancelDragBlockToCanvasQuery:
CancelDragBlockToCanvasResult
Ƭ CancelDragBlockToCanvasResult:
CommandArgs
Ƭ CommandArgs:
This is a type declaration whose purpose is to allow TypeScript to enforce the correct parameter and return types from EditorClient.sendCommand based on which command name you pass in as the first parameter.
IMPORTANT - Before you add a new command bring it up in #api-committee to get feedback
Type declaration
ConfirmQuery
Ƭ ConfirmQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Body text |
|
|
Cancel button text; defaults to i18n'ed "Cancel" |
|
|
OK button text; defaults to i18n'ed "OK" |
|
|
Title; defaults to extension title |
ConfirmResult
Ƭ ConfirmResult:
True if they click OK, false otherwise
CreateBlockQuery
Ƭ CreateBlockQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Class name of the block to create |
|
|
By default, we add the block to the current page & currently active group. If specified, the block will instead be created as a direct child of the given page. |
|
|
If specified, the stencil for a custom shape. Only valid if the class name is 'CustomBlock' |
CreateBlockResult
Ƭ CreateBlockResult:
CreateCardsQuery
Ƭ CreateCardsQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Identifier for the cards integration. |
|
|
Identifier for the collection. |
|
|
Primary keys of the items to import. |
CreateCardsResult
Ƭ CreateCardsResult:
CreateCollectionFieldDefinition
Ƭ CreateCollectionFieldDefinition:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Name of the field |
|
|
Type of the values in this field |
CreateCollectionQuery
Ƭ CreateCollectionQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Fields that can be set on data items in this collection |
|
|
- |
|
|
Name of the collection |
|
|
Field(s) to use as the primary key of this collection |
|
|
ID of the data source to add this collection to |
CreateCollectionResult
Ƭ CreateCollectionResult:
CreateDataSourceQuery
Ƭ CreateDataSourceQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Name of the data source |
|
{ |
Source configuration for this data source--information about where it came from, or any metadata that might be useful |
CreateDataSourceResult
Ƭ CreateDataSourceResult:
CreateDocumentElementQuery
Ƭ CreateDocumentElementQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Properties to set on that element |
|
|
Type of element to create |
CreateDocumentElementResult
Ƭ CreateDocumentElementResult:
CreateGroupQuery
Ƭ CreateGroupQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
List of item IDs to group |
|
|
By default, we add the group to the current page & currently active group. If specified, the group will instead be created as a direct child of the given page. |
CreateGroupResult
Ƭ CreateGroupResult:
CreateLineQuery
Ƭ CreateLineQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
By default, we add the line to the current page & currently active group. If specified, the line will instead be created as a direct child of the given page. |
CreateLineResult
Ƭ CreateLineResult:
CreatePageQuery
Ƭ CreatePageQuery:
CreatePageResult
Ƭ CreatePageResult:
CreateUserImageQuery
Ƭ CreateUserImageQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
base64-encoded image data |
|
|
media type |
CreateUserImageResult
Ƭ CreateUserImageResult:
DataActionQuery
Ƭ DataActionQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Is Async |
|
|
Flow Data |
|
|
Flow Name |
|
|
Data Connector Name |
|
|
Sync data source ID Nonce |
DataActionResult
Ƭ DataActionResult:
DataItemExistsQuery
Ƭ DataItemExistsQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Collection ID to check |
|
|
Primary key to check |
DataItemExistsResult
Ƭ DataItemExistsResult:
DeleteDocumentElementQuery
Ƭ DeleteDocumentElementQuery:
DeleteDocumentElementResult
Ƭ DeleteDocumentElementResult:
DeleteItemQuery
Ƭ DeleteItemQuery:
DeleteItemResult
Ƭ DeleteItemResult:
DeletePageQuery
Ƭ DeletePageQuery:
DeletePageResult
Ƭ DeletePageResult:
DeleteShapeDataQuery
Ƭ DeleteShapeDataQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
ID of the element to delete this shape data from |
|
|
Name for this shape data |
DeleteShapeDataResult
Ƭ DeleteShapeDataResult:
DeleteTableColumnQuery
Ƭ DeleteTableColumnQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Index of the column to delete |
|
|
ID of the table to delete this column from |
DeleteTableColumnResult
Ƭ DeleteTableColumnResult:
DeleteTableRowQuery
Ƭ DeleteTableRowQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Index of the row to delete |
|
|
ID of the table to delete this row from |
DeleteTableRowResult
Ƭ DeleteTableRowResult:
DownloadQuery
Ƭ DownloadQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
If true, data is base64-encoded and should be converted to binary for download |
|
|
Data to put in the file |
|
|
Filename of the download |
|
|
MIME type for the download |
DownloadResult
Ƭ DownloadResult:
DragPointerMoveQuery
Ƭ DragPointerMoveQuery:
Type declaration
Name | Type |
---|---|
|
|
|
|
DragPointerMoveResult
Ƭ DragPointerMoveResult:
DragPointerUpQuery
Ƭ DragPointerUpQuery:
Type declaration
Name | Type |
---|---|
|
|
|
|
DragPointerUpResult
Ƭ DragPointerUpResult:
DuplicateItemsQuery
Ƭ DuplicateItemsQuery:
Type declaration
Name | Type |
---|---|
|
|
DuplicateItemsResult
Ƭ DuplicateItemsResult:
ElementExistsQuery
Ƭ ElementExistsQuery:
Type declaration
Name | Type |
---|---|
|
|
ElementExistsResult
Ƭ ElementExistsResult:
ExecuteFormulaQuery
Ƭ ExecuteFormulaQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Formula to execute, e.g. '@a + @b' or 'CONTAINEDBY' |
|
|
ID of the element to execute a formula on |
ExecuteFormulaResult
Ƭ ExecuteFormulaResult:
FindAvailableSpaceQuery
Ƭ FindAvailableSpaceQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Height |
|
|
If specified, the page to find space on. Otherwise use the visible page. |
|
|
Width |
|
|
If specified, the location to search near. Otherwise use the viewport. |
|
|
If specified, the location to search near. Otherwise use the viewport. |
FindAvailableSpaceResult
Ƭ FindAvailableSpaceResult:
Type declaration
Name | Type | Description |
---|---|---|
|
|
ID of the page you should add content to |
|
|
Origin of the rectangle of empty space |
|
|
Origin of the rectangle of empty space |
FireBeaconEventQuery
Ƭ FireBeaconEventQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
the beacon event to be sent |
FireBeaconEventResult
Ƭ FireBeaconEventResult:
GetConnectedLinesQuery
Ƭ GetConnectedLinesQuery:
GetConnectedLinesResult
Ƭ GetConnectedLinesResult:
GetCurrentPageQuery
Ƭ GetCurrentPageQuery:
GetCurrentPageResult
Ƭ GetCurrentPageResult:
GetCustomShapeQuery
Ƭ GetCustomShapeQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Name of the custom shape library in this same extension package |
|
|
Name of the shape in that library to find |
GetCustomShapeResult
Ƭ GetCustomShapeResult:
GetDataItemFieldQuery
Ƭ GetDataItemFieldQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Collection ID to query |
|
|
Name of field to read |
|
|
Primary key of the data item to read |
GetDataItemFieldResult
Ƭ GetDataItemFieldResult:
GetDocumentAccessPermissionQuery
Ƭ GetDocumentAccessPermissionQuery:
GetDocumentAccessPermissionResult
Ƭ GetDocumentAccessPermissionResult:
GetDocumentChunksQuery
Ƭ GetDocumentChunksQuery:
Type declaration
Name | Type |
---|---|
|
|
GetDocumentChunksResult
Ƭ GetDocumentChunksResult:
GetDocumentIdQuery
Ƭ GetDocumentIdQuery:
GetDocumentIdResult
Ƭ GetDocumentIdResult:
GetElementTypeQuery
Ƭ GetElementTypeQuery:
Type declaration
Name | Type |
---|---|
|
|
GetElementTypeResult
Ƭ GetElementTypeResult:
GetEnvironmentConfigQuery
Ƭ GetEnvironmentConfigQuery:
GetEnvironmentConfigResult
Ƭ GetEnvironmentConfigResult:
GetItemPageIdQuery
Ƭ GetItemPageIdQuery:
GetItemPageIdResult
Ƭ GetItemPageIdResult:
GetItemsAtQuery
Ƭ GetItemsAtQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Bounding box to search |
|
|
Page ID to search |
|
|
Search type |
GetItemsAtResult
Ƭ GetItemsAtResult:
IDs of the items found
GetLLMContextFromItemsQuery
Ƭ GetLLMContextFromItemsQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
List of item IDs to return LLM-readable context for |
|
|
Page ID to find closely-related items |
|
|
Type of context to get |
GetLLMContextFromItemsResult
Ƭ GetLLMContextFromItemsResult:
Type declaration
Name | Type | Description |
---|---|---|
|
|
A map from IDs specified in the prompt string to actual Lucid item IDs |
|
|
A string in a format that LLMs like ChatGPT can easily understand, representing the content of the items specified as well as their immediate context if necessary |
GetOAuthClientIdQuery
Ƭ GetOAuthClientIdQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
OAuth provider name as specified in the package manifest |
GetOAuthClientIdResult
Ƭ GetOAuthClientIdResult:
GetOAuthTokenQuery
Ƭ GetOAuthTokenQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
OAuth provider name as specified in the package manifest |
GetOAuthTokenResult
Ƭ GetOAuthTokenResult:
GetPackageSettingsQuery
Ƭ GetPackageSettingsQuery:
GetPackageSettingsResult
Ƭ GetPackageSettingsResult:
GetProductQuery
Ƭ GetProductQuery:
GetProductResult
Ƭ GetProductResult:
GetPropertyQuery
Ƭ GetPropertyQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
ID of the LucidElement to read a property from, or undefined to read from the LucidDocument |
|
|
Name of the property to read |
GetPropertyResult
Ƭ GetPropertyResult:
GetReferenceKeyQuery
Ƭ GetReferenceKeyQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
ID of the LucidElement to read a reference key from, or undefined to read from the LucidDocument |
|
|
Reference key to get |
GetReferenceKeyResult
Ƭ GetReferenceKeyResult:
GetRelativeLinePositionQuery
Ƭ GetRelativeLinePositionQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Block or line ID to check the connections on |
|
|
Relative position in range of [0,1] along the line |
GetRelativeLinePositionResult
Ƭ GetRelativeLinePositionResult:
GetSelectionQuery
Ƭ GetSelectionQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
If set, additionally return all items inside selected groups |
GetSelectionResult
Ƭ GetSelectionResult:
GetShapeDataQuery
Ƭ GetShapeDataQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
ID of the element to query shape data from |
|
|
Name of the shape data to read |
GetShapeDataResult
Ƭ GetShapeDataResult:
GetSvgQuery
Ƭ GetSvgQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
If specified, the bounding box specifying what portion of the page to show |
|
|
True to include the background of the page |
|
|
If specified, only include these item IDs |
|
|
Page ID to get an image of |
GetSvgResult
Ƭ GetSvgResult:
GetTextStyleQuery
Ƭ GetTextStyleQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
ID of the element to get text style from |
|
|
Name of the text area to get text style from |
GetTextStyleResult
Ƭ GetTextStyleResult:
GetUserIdQuery
Ƭ GetUserIdQuery:
GetUserIdResult
Ƭ GetUserIdResult:
GetVisibleRectQuery
Ƭ GetVisibleRectQuery:
GetVisibleRectResult
Ƭ GetVisibleRectResult:
HideModalQuery
Ƭ HideModalQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Name of the modal's action for receiving events, i.e. ShowModalQuery['n'] |
HideModalResult
Ƭ HideModalResult:
HidePanelQuery
Ƭ HidePanelQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Name of the panel's action for receiving events, i.e. RegisterPanelQuery['n'] |
HidePanelResult
Ƭ HidePanelResult:
HookAllChangesQuery
Ƭ HookAllChangesQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Name of the action for receiving events. Will be called with no parameters periodically as changes are made to the document |
HookAllChangesResult
Ƭ HookAllChangesResult:
HookCreateItemsQuery
Ƭ HookCreateItemsQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Name of the action for receiving events. Will be called with an array of strings of all recently created item IDs. |
HookCreateItemsResult
Ƭ HookCreateItemsResult:
HookDeleteItemsQuery
Ƭ HookDeleteItemsQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Name of the action for receiving events. Will be called with an array of strings of all recently deleted item IDs. |
HookDeleteItemsResult
Ƭ HookDeleteItemsResult:
HookSelectionQuery
Ƭ HookSelectionQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Name of the action for receiving events. Will be called with an array of strings of all selected item IDs. |
HookSelectionResult
Ƭ HookSelectionResult:
HookTextEditQuery
Ƭ HookTextEditQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Whether to trigger the text hook callback eagerly during text edit |
|
|
Name of the action for receiving these events |
HookTextEditResult
Ƭ HookTextEditResult:
ImportCardsQuery
Ƭ ImportCardsQuery:
Name of the card integration registered by this extension to show the import dialog for
ImportCardsResult
Ƭ ImportCardsResult:
Resolves when the import dialog is closed
ImportLinksQuery
Ƭ ImportLinksQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Links to be imported onto the canvas as link unfurl blocks |
|
|
By default, we import the links onto the current page. If specified, the links will instead be imported onto the given page. |
ImportLinksResult
Ƭ ImportLinksResult:
ImportPageQuery
Ƭ ImportPageQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
The ID of the document or template to import |
|
|
Page numbers of specified document or template to import (zero-indexed) |
ImportPageResult
Ƭ ImportPageResult:
Resolves when the import succeeds or fails
KillExtensionQuery
Ƭ KillExtensionQuery:
KillExtensionResult
Ƭ KillExtensionResult:
ListChildrenQuery
Ƭ ListChildrenQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
"deep" - If true, get all children at any level of group nesting; otherwise only immediate children |
|
|
Parent ID to search inside |
ListChildrenResult
Ƭ ListChildrenResult:
ListCollectionFieldsQuery
Ƭ ListCollectionFieldsQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Collection ID to query |
ListCollectionFieldsResult
Ƭ ListCollectionFieldsResult:
ListCollectionsQuery
Ƭ ListCollectionsQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
ID of the data source to list collections for |
ListCollectionsResult
Ƭ ListCollectionsResult:
ListDataItemsQuery
Ƭ ListDataItemsQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Collection ID to list items from |
ListDataItemsResult
Ƭ ListDataItemsResult:
ListDataSourcesQuery
Ƭ ListDataSourcesQuery:
ListDataSourcesResult
Ƭ ListDataSourcesResult:
ListDocumentElementsQuery
Ƭ ListDocumentElementsQuery:
Type declaration
Name | Type |
---|---|
|
|
ListDocumentElementsResult
Ƭ ListDocumentElementsResult:
ListPagesQuery
Ƭ ListPagesQuery:
ListPagesResult
Ƭ ListPagesResult:
ListPropertiesQuery
Ƭ ListPropertiesQuery:
Type declaration
Name | Type |
---|---|
|
|
ListPropertiesResult
Ƭ ListPropertiesResult:
ListReferenceKeysQuery
Ƭ ListReferenceKeysQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
ID of the element to list reference keys for, or undefined for the document |
ListReferenceKeysResult
Ƭ ListReferenceKeysResult: (
Reference key IDs
ListShapeDataQuery
Ƭ ListShapeDataQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
True to include inherited shape data from containing groups and/or page |
|
|
- |
ListShapeDataResult
Ƭ ListShapeDataResult:
ListTextAreasQuery
Ƭ ListTextAreasQuery:
ListTextAreasResult
Ƭ ListTextAreasResult:
LoadBlockClassesQuery
Ƭ LoadBlockClassesQuery:
LoadBlockClassesResult
Ƭ LoadBlockClassesResult:
MeasureTextQuery
Ƭ MeasureTextQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
ID of the element to measure text area |
|
|
Name of the text area to measure |
|
|
Max width for giving text area |
MeasureTextResult
Ƭ MeasureTextResult:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Text area height |
|
|
Text area width |
OffsetItemsQuery
Ƭ OffsetItemsQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
IDs of the items (blocks, lines, groups) to move |
|
|
How far to offset |
|
|
What kind of offset to perform |
OffsetItemsResult
Ƭ OffsetItemsResult:
PatchDataItemsQuery
Ƭ PatchDataItemsQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Data items to add to the collection |
|
|
Data items to change field values on, keyed by primary key |
|
|
Primary keys of items to delete |
|
|
ID of the data collection to patch |
PatchDataItemsResult
Ƭ PatchDataItemsResult:
Primary keys inserted, if any
PromptQuery
Ƭ PromptQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Body text |
|
|
Title; defaults to extension title |
PromptResult
Ƭ PromptResult:
RawCreateUserImageResult
Ƭ RawCreateUserImageResult:
Type declaration
Name | Type | Description |
---|---|---|
|
|
The resulting image URL |
RawDataActionResult
Ƭ RawDataActionResult: {
RawSendXHRResponse
Ƭ RawSendXHRResponse:
Type declaration
Name | Type | Description |
---|---|---|
|
{ |
Headers sent with the response |
|
|
Status code of the response |
|
|
Plain-text or base64-encoded response body |
|
|
true if the request timed out |
|
|
URL of the response after any redirects |
RawTriggerAuthFlowResult
Ƭ RawTriggerAuthFlowResult:
Type declaration
Name | Type |
---|---|
|
|
RegisterPanelQuery
Ƭ RegisterPanelQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Content to display in the panel; full HTML page preferred |
|
|
Desired panel height |
|
|
Icon URL, preferably a base64-encoded URL |
|
|
Where to display the panel |
|
|
Name of the panel's action for receiving events; generated automatically by Panel base class |
|
|
If true, we will persist the panel's iframe |
|
|
Title to show on the panel |
|
|
tooltip |
|
|
URL to display in the panel (this or c is required). Can be relative to /public directory in the package |
|
|
Named action that returns whether the button to open the panel should be visible |
|
|
Desired panel width |
RegisterPanelResult
Ƭ RegisterPanelResult:
RegisterUnfurlQuery
Ƭ RegisterUnfurlQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
For backwards compatility |
|
|
After Unfurl Action name for the unfurl handler |
|
|
Domain to unfurl, e.g. www.google.com |
|
|
Expand Callback Action name for the unfurl handler |
|
|
Unfurl Action name for the unfurl handler |
RegisterUnfurlResult
Ƭ RegisterUnfurlResult:
ReloadExtensionQuery
Ƭ ReloadExtensionQuery:
ReloadExtensionResult
Ƭ ReloadExtensionResult:
SendAsyncOAuthRequestQuery
Ƭ SendAsyncOAuthRequestQuery:
SendOAuthRequestQuery
Ƭ SendOAuthRequestQuery:
SendOAuthRequestResponse
Ƭ SendOAuthRequestResponse:
SendPermanentTokenRequestQuery
Ƭ SendPermanentTokenRequestQuery:
SendPermanentTokenRequestResponse
Ƭ SendPermanentTokenRequestResponse:
SendUIMessageQuery
Ƭ SendUIMessageQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Content of the message to send to the custom UI component |
|
|
Name of the UI component's action for receiving events, e.g. ShowModalQuery['n'] |
SendUIMessageResult
Ƭ SendUIMessageResult:
SendXHRQuery
Ƭ SendXHRQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
The data to send with the request. For GET requests, this specifies the query string. For non-GET requests, this is sent as the body of the request. If this is specified, and no 'Content-Type' header is specified, a 'text/plain; charset=utf-8' content type is sent. |
|
|
The desired format for the returned response body. Defaults to 'utf8'. - If 'utf8', the response body will be returned as a string. - If 'binary', the response body will be returned as a Uint8Array. |
|
{ |
Headers to send with the request |
|
|
HTTP method, e.g. 'GET', 'FETCH', etc. Defaults to GET |
|
|
Timeout in milliseconds, if specified |
|
|
If set, a callback to call with chunks of the response as they arrive. Only valid for utf8 (text) requests, and only called on successful responses. The full final response will still be returned as normal. |
|
|
- |
SendXHRResponse
Ƭ SendXHRResponse:
SendXHRResponseFormat
Ƭ SendXHRResponseFormat:
SetCurrentPageQuery
Ƭ SetCurrentPageQuery:
SetCurrentPageResult
Ƭ SetCurrentPageResult:
SetPackageSettingsQuery
Ƭ SetPackageSettingsQuery:
SetPackageSettingsResult
Ƭ SetPackageSettingsResult:
SetPropertyQuery
Ƭ SetPropertyQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
ID of the element to change |
|
|
Name of the property to change |
|
|
New value of the property |
SetPropertyResult
Ƭ SetPropertyResult:
SetReferenceKeyQuery
Ƭ SetReferenceKeyQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
ID of the element to set the reference key on |
|
|
ID of the reference key to set |
|
|
New reference key settings, or undefined to remove the reference key |
SetReferenceKeyResult
Ƭ SetReferenceKeyResult:
SetSelectionQuery
Ƭ SetSelectionQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
IDs of the elements to select |
SetSelectionResult
Ƭ SetSelectionResult:
SetShapeDataQuery
Ƭ SetShapeDataQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
ID of the element to set this shape data on |
|
|
Name for the already-existing shape data to update |
|
|
Value to set; use a string beginning with '=' for a formula |
SetShapeDataResult
Ƭ SetShapeDataResult:
SetTextQuery
Ƭ SetTextQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Optional force boolean for extension to update uneditable items |
|
|
ID of the element to change text on |
|
|
Name of the text area to update |
|
|
Plain text to put in the text area |
SetTextResult
Ƭ SetTextResult:
SetTextStyleQuery
Ƭ SetTextStyleQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
ID of the element to set text style on |
|
|
Name of the text area to set text style on |
|
|
Text styles to set |
SetTextStyleResult
Ƭ SetTextStyleResult:
ShowModalQuery
Ƭ ShowModalQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Content to display in the modal; full HTML page preferred |
|
|
Chromeless (without a header and borders) or not |
|
|
FullScreen or not |
|
|
Desired modal height |
|
|
Name of the modal's action for receiving events; generated automatically by Modal base class |
|
|
Title to show on the modal |
|
|
TransparentBackground or not |
|
|
URL to display in the modal (this or c is required). Can be relative to /public directory in the package |
|
|
Desired modal width |
ShowModalResult
Ƭ ShowModalResult:
ShowPackageSettingsModalQuery
Ƭ ShowPackageSettingsModalQuery:
ShowPackageSettingsModalResult
Ƭ ShowPackageSettingsModalResult:
ShowPanelQuery
Ƭ ShowPanelQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Name of the panel's action for receiving events, i.e. RegisterPanelQuery['n'] |
ShowPanelResult
Ƭ ShowPanelResult:
SleepForTestCaseQuery
Ƭ SleepForTestCaseQuery:
SleepForTestCaseResult
Ƭ SleepForTestCaseResult:
StartDragBlockToCanvasQuery
Ƭ StartDragBlockToCanvasQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Class name of the block to create |
|
{ |
Additional properties to set on the block being dragged |
|
|
If specified, the stencil for a custom shape. Only valid if the class name is 'CustomBlock' |
|
{ |
Size of the block to create |
|
|
- |
|
|
- |
StartDragBlockToCanvasResult
Ƭ StartDragBlockToCanvasResult:
StartPDFUploadRequestQuery
Ƭ StartPDFUploadRequestQuery:
ThrowForTestCaseQuery
Ƭ ThrowForTestCaseQuery:
ThrowForTestCaseResult
Ƭ ThrowForTestCaseResult:
TriggerAuthFlowQuery
Ƭ TriggerAuthFlowQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
OAuth or merge provider name as specified in the package manifest |
TriggerAuthFlowResult
Ƭ TriggerAuthFlowResult:
UnhookAllChangesQuery
Ƭ UnhookAllChangesQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Name of the action passed to HookAllChanges |
UnhookAllChangesResult
Ƭ UnhookAllChangesResult:
UnhookCreateItemsQuery
Ƭ UnhookCreateItemsQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Name of the action passed to HookCreateItems |
UnhookCreateItemsResult
Ƭ UnhookCreateItemsResult:
UnhookDeleteItemsQuery
Ƭ UnhookDeleteItemsQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Name of the action passed to HookDeleteItems |
UnhookDeleteItemsResult
Ƭ UnhookDeleteItemsResult:
UnhookSelectionQuery
Ƭ UnhookSelectionQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Name of the action for receiving these events |
UnhookSelectionResult
Ƭ UnhookSelectionResult:
UnhookTextEditQuery
Ƭ UnhookTextEditQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Name of the action for receiving these events |
UnhookTextEditResult
Ƭ UnhookTextEditResult:
WithMutexQuery
Ƭ WithMutexQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Name of the action to run within the given mutex |
|
|
Name of the intra-document mutex to hold for the duration of this action |
WithMutexResult
Ƭ WithMutexResult:
Resolves true if operation succeeded, or false if the mutex was held by someone else
WithSilentActionsQuery
Ƭ WithSilentActionsQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
Name of the synchronous action to run with undo/redo history suppressed |
WithSilentActionsResult
Ƭ WithSilentActionsResult:
ZOrderQuery
Ƭ ZOrderQuery:
Type declaration
Name | Type | Description |
---|---|---|
|
|
IDs of the items to adjust Z order |
|
|
Operation to perform on these items |
ZOrderResult
Ƭ ZOrderResult:
Functions
isRawSendXHRResponse
▸ isRawSendXHRResponse(
Parameters
Name | Type |
---|---|
|
|
Returns
val is RawSendXHRResponse
core/base64
Functions
decodeBase64
▸ decodeBase64(
Parameters
Name | Type |
---|---|
|
|
Returns
encodeBase64
▸ encodeBase64(
Parameters
Name | Type |
---|---|
|
|
Returns
core/cardintegration/cardfielddisplaysettings
Enumerations
Interfaces
Type Aliases
ImageBadgeSettings
Ƭ ImageBadgeSettings:
Type declaration
Name | Type |
---|---|
|
|
|
|
TextBadgeSettings
Ƭ TextBadgeSettings:
Type declaration
Name | Type |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Functions
isFieldDisplayType
▸ isFieldDisplayType(
Parameters
Name | Type |
---|---|
|
|
Returns
x is FieldDisplayType
isOnClickHandlerKey
▸ isOnClickHandlerKey(
Parameters
Name | Type |
---|---|
|
|
Returns
x is OnClickHandlerKeys
core/cardintegration/cardintegrationconfig
Interfaces
core/cardintegration/cardintegrationdefinitions
Interfaces
Functions
isSerializedFieldOption
▸ isSerializedFieldOption(
Parameters
Name | Type |
---|---|
|
|
Returns
subject is DestructureGuardedTypeObj<Object>
isSerializedFieldOptions
▸ isSerializedFieldOptions(
Creates a validator which tests if the target is an array and if all elements of the array satisfy the given sub-validator.
Parameters
Name | Type |
---|---|
|
|
Returns
p1 is DestructureGuardedTypeObj<Object>[]
A validator for the array type
core/cardintegration/lucidcardintegration
Classes
References
ImportResult
Re-exports ImportResult
SearchResult
Re-exports SearchResult
core/cardintegration/lucidcardintegrationcustomimportmodal
Classes
core/cardintegration/lucidcardintegrationdefinitions
core/cardintegration/lucidcardintegrationregistry
Classes
core/cardintegration/lucidcardintegrationstandardimportmodal
Interfaces
core/checks
Type Aliases
Tuple
Ƭ Tuple<
Type parameters
Name | Type |
---|---|
|
|
|
extends |
Functions
isAny
▸ isAny(
Prefer isUnknown
Parameters
Name | Type |
---|---|
|
|
Returns
val is any
isArray
▸ isArray(
Returns true if the specified value is an array.
This is safer than using Array.isArray directly because it doesn't introduce an
Parameters
Name | Type | Description |
---|---|---|
|
|
Variable to test. |
Returns
val is unknown[]
Whether variable is an array.
isAtLeastLength
▸ isAtLeastLength<
Type parameters
Name | Type |
---|---|
|
|
|
extends |
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
arr is [...Tuple<T, N>[], ...T[]]
isBoolean
▸ isBoolean(
Returns true if the specified value is a boolean.
Parameters
Name | Type | Description |
---|---|---|
|
|
Variable to test. |
Returns
val is boolean
Whether variable is boolean.
isDef
▸ isDef<
Returns true if the specified value is not undefined.
Type parameters
Name |
---|
|
Parameters
Name | Type | Description |
---|---|---|
|
|
Variable to test. |
Returns
val is F
Whether variable is defined.
isDefAndNotNull
▸ isDefAndNotNull<
Returns true if the specified value is defined and not null.
Type parameters
Name |
---|
|
Parameters
Name | Type | Description |
---|---|---|
|
|
Variable to test. |
Returns
val is F
Whether variable is defined and not null.
isEmptyOrNullishObject
▸ isEmptyOrNullishObject(
Returns true if the specified object is either empty or all existing keys map to a nullish value
Parameters
Name | Type | Description |
---|---|---|
|
|
Variable to test |
Returns
val is Object
Whether variable is empty or maps exclusively to nullish values
isExactLength
▸ isExactLength<
Type parameters
Name | Type |
---|---|
|
|
|
extends |
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
arr is Tuple<T, N>
isFunction
▸ isFunction(
Parameters
Name | Type |
---|---|
|
|
Returns
val is Function
isInfinite
▸ isInfinite(
Returns true if the specified value is either positive or negative infinity.
Parameters
Name | Type | Description |
---|---|---|
|
|
Variable to test. |
Returns
val is number
Whether variable is positive or negative infinity.
isInstanceOf
▸ isInstanceOf<
Since
A valid use case is for native types, like Uint8Array.
Type parameters
Name |
---|
|
Parameters
Name | Type |
---|---|
|
|
Returns
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
x is T
isInt
▸ isInt(
Returns true if the specified value is an integer.
Parameters
Name | Type | Description |
---|---|---|
|
|
Variable to test. |
Returns
val is number
Whether variable is an integer.
isLiteral
▸ isLiteral<
Type parameters
Name | Type |
---|---|
|
extends |
Parameters
Name | Type |
---|---|
|
|
Returns
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
x is T
isNull
▸ isNull(
Returns true if the specified value is null.
Parameters
Name | Type | Description |
---|---|---|
|
|
Variable to test. |
Returns
val is null
Whether variable is null.
isNullish
▸ isNullish(
Returns true if the specified value is null or undefined.
Parameters
Name | Type | Description |
---|---|---|
|
|
Variable to test |
Returns
val is undefined | null
Whether the variable is null or undefined.
isNumber
▸ isNumber(
Returns true if the specified value is a number.
Parameters
Name | Type | Description |
---|---|---|
|
|
Variable to test. |
Returns
val is number
Whether variable is a number.
isObject
▸ isObject(
Returns true if the specified value is an object (including arrays and functions) (i.e. it's safe to do property accesses on it).
Parameters
Name | Type | Description |
---|---|---|
|
|
Variable to test. |
Returns
val is object
Whether variable is an object.
isObjectUnsafe
▸ isObjectUnsafe(
Returns true for objects, includings arrays and functions. Matches the behavior of goog.isObject, with a more permissive type.
Parameters
Name | Type | Description |
---|---|---|
|
|
Variable to test. |
Returns
val is Object
Whether variable is an object.
isObjectUnsafer
▸ isObjectUnsafer(
Returns true for objects, includings arrays and functions. Matches the behavior of goog.isObject, with an extremely permissive type.
Parameters
Name | Type | Description |
---|---|---|
|
|
Variable to test. |
Returns
val is Object
Whether variable is an object.
isPromise
▸ isPromise(
Parameters
Name | Type |
---|---|
|
|
Returns
val is Promise<unknown>
isRecord
▸ isRecord<
Returns true if the specified value is an object (i.e. it's safe to do property accesses on it), and every value matches the record type.
Type parameters
Name |
---|
|
Parameters
Name | Type |
---|---|
|
( |
Returns
Whether variable is an object.
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
val is Record<string, T>
isString
▸ isString(
Returns true if the specified value is a string.
Parameters
Name | Type | Description |
---|---|---|
|
|
Variable to test. |
Returns
val is string
Whether variable is a string.
isTypedArray
▸ isTypedArray<
Returns true if the specified value is an array and every element passes the type guard function.
Type parameters
Name |
---|
|
Parameters
Name | Type | Description |
---|---|---|
|
( |
the type guard function to test every element in the array. |
Returns
Whether variable is an array of the given type.
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
val is T[]
isUndefined
▸ isUndefined(
Returns true if the specified value is undefined.
Parameters
Name | Type | Description |
---|---|---|
|
|
Variable to test. |
Returns
val is undefined
Whether variable is undefined.
isUnknown
▸ isUnknown(
Parameters
Name | Type |
---|---|
|
|
Returns
val is unknown
isVoid
▸ isVoid(
Returns true if the specified value is undefined.
Parameters
Name | Type |
---|---|
|
|
Returns
x is void
Whether variable is undefined.
core/data/datasource/alphabet
Variables
alphabet
•
core/data/datasource/datasourcetype
core/data/datasource/datasourceutils
core/data/datasource/metadatatypes
core/data/datasource/previewdatatypes
core/data/datasource/semanticcollection
Enumerations
Functions
isSemanticCollection
▸ isSemanticCollection(
Parameters
Name | Type |
---|---|
|
|
Returns
x is Items
core/data/datasource/serializeddatasourceproperties
Type Aliases
SerializedSourceForeignKey
Ƭ SerializedSourceForeignKey:
Type declaration
Name | Type |
---|---|
|
|
|
|
|
|
|
|
Functions
isSerializedSourceForeignKey
▸ isSerializedSourceForeignKey(
Parameters
Name | Type |
---|---|
|
|
Returns
subject is DestructureGuardedTypeObj<Object>
core/data/datasource/serializedimporteddatasource
core/data/datasource/serializedupstreamconfig
core/data/datasource/spreadsheetpossibledatatypes
Variables
SpreadSheetPossibleDataTypes
•
core/data/datasource/upstreamconfig
Interfaces
Functions
deserializeUpstreamConfig
▸ deserializeUpstreamConfig(
Parameters
Name | Type |
---|---|
|
|
Returns
isSerializedSourceConfig
▸ isSerializedSourceConfig(
Parameters
Name | Type |
---|---|
|
|
Returns
x is SerializedSourceConfig
serializeUpstreamConfig
▸ serializeUpstreamConfig(
Parameters
Name | Type |
---|---|
|
|
Returns
core/data/datasource/upstreampatchtype
core/data/datasource/upstreamupdatetype
core/data/fieldspecification
Classes
Type Aliases
ItemType
Ƭ ItemType<
The type of a item in the FieldsStructure, that is if the FieldsStructure represents
[{Name: "id", Type: ScalarFieldTypeEnum.STRING}]
then ItemType for that would be:
{'id': string}
Type parameters
Name | Type |
---|---|
|
extends |
PartialItemType
Ƭ PartialItemType<
Just like ItemType
Type parameters
Name | Type |
---|---|
|
extends |
|
extends keyof |
Functions
declareSchema
▸ declareSchema<
Specifies all the fields that this itegration will be sending to the data-sync service. Give you well typed methods to convert from
There is fromItems which does the above will full type information, and fromItems sparse which allows all the fields not part of the primaryKey to be undefined. The former should be used with initial imports, and the latter can be used for updates.
Type parameters
Name | Type |
---|---|
|
extends |
|
extends |
|
extends
|
|
extends { [Name in string]: Object } |
|
extends |
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
Returns
Name | Type |
---|---|
|
{ |
|
|
|
( |
|
( |
|
|
core/data/fieldtypedefinition/basefieldtypedefinition
Type Aliases
AnyFieldTypeArrayDefinition
Ƭ AnyFieldTypeArrayDefinition:
BaseFieldTypeDefinition
Ƭ BaseFieldTypeDefinition:
SerializedBaseFieldTypeDefinition
Ƭ SerializedBaseFieldTypeDefinition:
Functions
deserializeBaseFieldTypeDefinition
▸ deserializeBaseFieldTypeDefinition(
Parameters
Name | Type |
---|---|
|
|
Returns
isBaseFieldTypeDefinition
▸ isBaseFieldTypeDefinition(
Parameters
Name | Type |
---|---|
|
|
Returns
fieldType is BaseFieldTypeDefinition
isSerializedBaseFieldTypeDefinition
▸ isSerializedBaseFieldTypeDefinition(
Parameters
Name | Type |
---|---|
|
|
Returns
definition is SerializedBaseFieldTypeDefinition
serializeBaseFieldTypeDefinition
▸ serializeBaseFieldTypeDefinition(
Parameters
Name | Type |
---|---|
|
|
Returns
core/data/fieldtypedefinition/collectionenumfieldtype
Enumerations
Classes
Type Aliases
SerializedCollectionEnumFieldType
Ƭ SerializedCollectionEnumFieldType:
Type declaration
Name | Type |
---|---|
|
|
Variables
CollectionEnumFieldTypeKey
•
Functions
deserializeCollectionEnumFieldType
▸ deserializeCollectionEnumFieldType(
Parameters
Name | Type |
---|---|
|
|
Returns
isCollectionEnumFieldNames
▸ isCollectionEnumFieldNames(
Parameters
Name | Type |
---|---|
|
|
Returns
x is CollectionEnumFieldNames
isCollectionEnumFieldType
▸ isCollectionEnumFieldType(
Parameters
Name | Type |
---|---|
|
|
Returns
fieldType is CollectionEnumFieldType
isSerializedCollectionEnumFieldType
▸ isSerializedCollectionEnumFieldType(
Parameters
Name | Type |
---|---|
|
|
Returns
fieldType is SerializedCollectionEnumFieldType
core/data/fieldtypedefinition/fieldtypearray
Classes
Type Aliases
FieldTypeArraySubTypes
Ƭ FieldTypeArraySubTypes:
SerializedFieldTypeArray
Ƭ SerializedFieldTypeArray:
Type declaration
Name | Type |
---|---|
|
|
|
|
SerializedFieldTypeArraySubTypes
Ƭ SerializedFieldTypeArraySubTypes:
Functions
deserializeFieldTypeArray
▸ deserializeFieldTypeArray(
Parameters
Name | Type |
---|---|
|
|
Returns
isSerializedFieldTypeArray
▸ isSerializedFieldTypeArray(
Parameters
Name | Type |
---|---|
|
|
|
( |
Returns
fieldType is SerializedFieldTypeArray
core/data/fieldtypedefinition/fieldtypedefinition
Type Aliases
FieldTypeDefinition
Ƭ FieldTypeDefinition:
SerializedFieldTypeDefinition
Ƭ SerializedFieldTypeDefinition:
Functions
deserializeFieldTypeDefinition
▸ deserializeFieldTypeDefinition(
Parameters
Name | Type |
---|---|
|
|
Returns
▸ deserializeFieldTypeDefinition(
Parameters
Name | Type |
---|---|
|
|
Returns
fieldTypesEqual
▸ fieldTypesEqual(
Parameters
Name | Type | Default value |
---|---|---|
|
|
|
|
|
|
|
|
|
Returns
isSerializedFieldTypeDefinition
▸ isSerializedFieldTypeDefinition(
Parameters
Name | Type |
---|---|
|
|
Returns
definition is SerializedFieldTypeDefinition
serializeFieldTypeDefinition
▸ serializeFieldTypeDefinition(
Parameters
Name | Type |
---|---|
|
|
Returns
▸ serializeFieldTypeDefinition(
Parameters
Name | Type |
---|---|
|
|
Returns
core/data/fieldtypedefinition/literalfieldtype
Classes
Type Aliases
SerializedLiteralFieldType
Ƭ SerializedLiteralFieldType:
Functions
deserializeLiteralFieldType
▸ deserializeLiteralFieldType(
String literals without the literalStringPrefix will return the boolean literal false
Parameters
Name | Type |
---|---|
|
|
Returns
isLiteralFieldType
▸ isLiteralFieldType(
Parameters
Name | Type |
---|---|
|
|
Returns
fieldType is LiteralFieldType
isSerializedLiteralFieldType
▸ isSerializedLiteralFieldType(
Parameters
Name | Type |
---|---|
|
|
Returns
definition is string
core/data/fieldtypedefinition/ndimensionalfieldtypearray
Classes
Type Aliases
SerializedNDimensionalFieldTypeArray
Ƭ SerializedNDimensionalFieldTypeArray:
Type declaration
Name | Type |
---|---|
|
|
|
(
|
Functions
deserializeNDimensionalFieldTypeArray
▸ deserializeNDimensionalFieldTypeArray(
Parameters
Name | Type |
---|---|
|
|
Returns
isNDimensionalFieldTypeArray
▸ isNDimensionalFieldTypeArray(
Parameters
Name | Type |
---|---|
|
|
Returns
fieldType is NDimensionalFieldTypeArray
isSerializedNDimensionalFieldTypeArray
▸ isSerializedNDimensionalFieldTypeArray(
Parameters
Name | Type |
---|---|
|
|
Returns
fieldType is SerializedNDimensionalFieldTypeArray
isValidTypeForNDimensionalFieldTypeArray
▸ isValidTypeForNDimensionalFieldTypeArray(
Parameters
Name | Type |
---|---|
|
|
Returns
fieldType is ScalarFieldTypeEnum | LiteralFieldType
core/data/fieldtypedefinition/scalarfieldtype
Enumerations
Variables
AnyScalarFieldType
•
Functions
isScalarFieldTypeEnum
▸ isScalarFieldTypeEnum(
Parameters
Name | Type |
---|---|
|
|
Returns
fieldType is ScalarFieldTypeEnum
core/data/fieldtypedefinition/semanticfields
Enumerations
Functions
isSemanticFields
▸ isSemanticFields(
Parameters
Name | Type |
---|---|
|
|
Returns
x is SemanticFields
core/data/fieldtypedefinition/semantickind
Enumerations
Functions
isSemanticKind
▸ isSemanticKind(
Parameters
Name | Type |
---|---|
|
|
Returns
x is SemanticKind
semanticKindToSemanticFields
▸ semanticKindToSemanticFields(
Parameters
Name | Type |
---|---|
|
|
Returns
core/data/fieldtypedefinition/utils
Functions
isDateFieldTypeDefinition
▸ isDateFieldTypeDefinition(
Parameters
Name | Type |
---|---|
|
|
Returns
fieldType is DATE | DATEONLY | (DATE | DATEONLY)[]
isDateScalarFieldTypeEnum
▸ isDateScalarFieldTypeEnum(
Parameters
Name | Type |
---|---|
|
|
Returns
fieldType is DATE | DATEONLY
core/data/formulastring
Functions
serializeFormulaString
▸ serializeFormulaString(
Escape single quotes (') as ('') and surround the given string with single quotes.
Parameters
Name | Type |
---|---|
|
|
Returns
core/data/referencekeys/serializedreferencekey
Interfaces
Type Aliases
SerializedFlattenedReference
Ƭ SerializedFlattenedReference:
SerializedReferenceKeyType
Ƭ SerializedReferenceKeyType:
TypedSerializedFlattenedReference
Ƭ TypedSerializedFlattenedReference:
Type declaration
Name | Type |
---|---|
|
{ |
|
|
|
|
UnTypedSerializedFlattenedReference
Ƭ UnTypedSerializedFlattenedReference:
Index signature
▪ [index:
Type declaration
Name | Type |
---|---|
|
|
|
|
Variables
FlattenedReferenceKeyId
•
FlattenedReferenceKeyName
•
core/data/serializedfield/serializeddataitems
Interfaces
Functions
isSerializedDataItems
▸ isSerializedDataItems(
Parameters
Name | Type |
---|---|
|
|
Returns
x is Record<any, Record<any, SerializedFieldType>>
core/data/serializedfield/serializedfielddefinition
Enumerations
Type Aliases
SerializedFieldConstraint
Ƭ SerializedFieldConstraint:
Type declaration
Name | Type |
---|---|
|
|
|
|
SerializedFieldDefinition
Ƭ SerializedFieldDefinition:
Type declaration
Name | Type |
---|---|
|
|
|
readonly
|
|
|
|
|
|
|
Functions
isFieldConstraintType
▸ isFieldConstraintType(
Parameters
Name | Type |
---|---|
|
|
Returns
x is FieldConstraintType
isSerializedFieldConstraint
▸ isSerializedFieldConstraint(
Parameters
Name | Type |
---|---|
|
|
Returns
subject is DestructureGuardedTypeObj<Object>
isSerializedFieldDefinition
▸ isSerializedFieldDefinition(
Parameters
Name | Type |
---|---|
|
|
Returns
subject is DestructureGuardedTypeObj<Object>
core/data/serializedfield/serializedfields
Type Aliases
JSONSerializedLucidDictionary
Ƭ JSONSerializedLucidDictionary:
Type declaration
Name | Type |
---|---|
|
{ |
NestedSerializedLucidDictionary
Ƭ NestedSerializedLucidDictionary:
Type declaration
Name | Type |
---|---|
|
{ |
SerializedCMYKColor
Ƭ SerializedCMYKColor:
Type declaration
Name | Type |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SerializedColorObject
Ƭ SerializedColorObject:
SerializedColorObjectFieldType
Ƭ SerializedColorObjectFieldType:
Type declaration
Name | Type |
---|---|
|
|
SerializedCorrectedColor
Ƭ SerializedCorrectedColor:
Type declaration
Name | Type |
---|---|
|
|
|
|
|
|
SerializedFieldType
Ƭ SerializedFieldType:
SerializedFields
Ƭ SerializedFields:
Index signature
▪ [fieldName:
SerializedIsoDateObject
Ƭ SerializedIsoDateObject:
Type declaration
Name | Type |
---|---|
|
|
|
|
SerializedJsonFieldType
Ƭ SerializedJsonFieldType:
SerializedLucidCurrency
Ƭ SerializedLucidCurrency:
Type declaration
Name | Type |
---|---|
|
|
|
|
SerializedLucidDateObject
Ƭ SerializedLucidDateObject:
SerializedLucidDictionary
Ƭ SerializedLucidDictionary:
SerializedMillisecondsDateObject
Ƭ SerializedMillisecondsDateObject:
Type declaration
Name | Type |
---|---|
|
|
|
|
SerializedRGBColor
Ƭ SerializedRGBColor:
Type declaration
Name | Type |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SerializedTimeObject
Ƭ SerializedTimeObject:
Type declaration
Name | Type |
---|---|
|
|
|
|
|
|
|
|
Functions
isJsonSerializedLucidDictionary
▸ isJsonSerializedLucidDictionary(
a dictionary type that only supports raw js, primarily used when external data could be arbritrary js
Parameters
Name | Type |
---|---|
|
|
Returns
subject is DestructureGuardedTypeObj<Object>
isNestedSerializedLucidDictionary
▸ isNestedSerializedLucidDictionary(
a dictionary type that has full type support
Parameters
Name | Type |
---|---|
|
|
Returns
subject is DestructureGuardedTypeObj<Object>
isSerializedColorObjectFieldType
▸ isSerializedColorObjectFieldType(
Parameters
Name | Type |
---|---|
|
|
Returns
value is SerializedColorObjectFieldType
isSerializedFieldType
▸ isSerializedFieldType(
Parameters
Name | Type |
---|---|
|
|
Returns
value is SerializedFieldType
isSerializedFields
▸ isSerializedFields(
Parameters
Name | Type |
---|---|
|
|
Returns
x is Record<any, SerializedFieldType>
isSerializedJsonFieldType
▸ isSerializedJsonFieldType(
Parameters
Name | Type |
---|---|
|
|
Returns
value is SerializedJsonFieldType
isSerializedLucidCurrency
▸ isSerializedLucidCurrency(
Parameters
Name | Type |
---|---|
|
|
Returns
subject is DestructureGuardedTypeObj<Object>
isSerializedLucidDateObject
▸ isSerializedLucidDateObject(
Parameters
Name | Type |
---|---|
|
|
Returns
x is DestructureGuardedTypeObj<Object> | DestructureGuardedTypeObj<Object>
isSerializedLucidDictionary
▸ isSerializedLucidDictionary(
Parameters
Name | Type |
---|---|
|
|
Returns
x is DestructureGuardedTypeObj<Object> | DestructureGuardedTypeObj<Object>
isSerializedMillisecondsDateObject
▸ isSerializedMillisecondsDateObject(
Parameters
Name | Type |
---|---|
|
|
Returns
subject is DestructureGuardedTypeObj<Object>
isSerializedTimeObject
▸ isSerializedTimeObject(
Parameters
Name | Type |
---|---|
|
|
Returns
subject is DestructureGuardedTypeObj<Object>
core/data/serializedfield/serializedschema
Type Aliases
SerializedLabelOverrides
Ƭ SerializedLabelOverrides:
Index signature
▪ [key:
SerializedSchema
Ƭ SerializedSchema:
Type declaration
Name | Type |
---|---|
|
|
|
|
|
|
Functions
isSerializedSchema
▸ isSerializedSchema(
Parameters
Name | Type |
---|---|
|
|
Returns
schema is SerializedSchema
core/dataerrortype
Enumerations
core/defer
Interfaces
Functions
defer
▸ defer<
Type parameters
Name | Type |
---|---|
|
|
Returns
core/guards
Type Aliases
DestructureGuardedTypeObj
Ƭ DestructureGuardedTypeObj<
Type parameters
Name | Type |
---|---|
|
extends |
GuardToType
Ƭ GuardToType<
Type parameters
Name |
---|
|
Validator
Ƭ Validator<
Type parameters
Name | Type |
---|---|
|
extends |
|
|
Type declaration
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
p1 is TO
core/humanreadableerror
Classes
core/iframe/iframeutils
Variables
DEFAULT_IFRAME_HEIGHT
•
DEFAULT_IFRAME_WIDTH
•
Aspect ratio 16:9, wider rectangle This will be the default setting if not provided
The values are small since we only use width and height value to calculate aspect ratio So in this case, it will be width/height, which will be 16:9 It's the same result as 1600 and 900 as default width and height
core/jsonserializable
Interfaces
Type Aliases
JsonArray
Ƭ JsonArray:
JsonSerializable
Ƭ JsonSerializable:
Any type that can be natively converted to a string with JSON.stringify.
Functions
isJsonObject
▸ isJsonObject(
Parameters
Name | Type |
---|---|
|
|
Returns
x is JsonObject
isJsonSerializable
▸ isJsonSerializable(
Parameters
Name | Type |
---|---|
|
|
Returns
x is JsonSerializable
core/lucidproduct
Enumerations
core/object
Functions
flatten
▸ flatten<
Type parameters
Name |
---|
|
Parameters
Name | Type |
---|---|
|
|
Returns
fromEntries
▸ fromEntries<
Type parameters
Name | Type |
---|---|
|
extends |
|
|
Parameters
Name | Type |
---|---|
|
|
Returns
{ [key in K]: T }
objectEvery
▸ objectEvery<
Type parameters
Name | Type |
---|---|
|
|
|
extends |
Parameters
Name | Type |
---|---|
|
|
|
( |
|
|
Returns
core/offsettype
Enumerations
Type Aliases
LinearOffsetType
Ƭ LinearOffsetType:
Functions
isLinearOffsetType
▸ isLinearOffsetType(
Parameters
Name | Type |
---|---|
|
|
Returns
offsetType is LinearOffsetType
core/optionalkey
Type Aliases
WithUndefinedAsOptional
Ƭ WithUndefinedAsOptional<
WithUndefinedAsOptional<{a: number|undefined, b: number, c: any}> => {a?: number|undefined, b:number, c?: any}
Type parameters
Name | Type |
---|---|
|
extends |
WithUndefinedAsOptionalRecursive
Ƭ WithUndefinedAsOptionalRecursive<
Type parameters
Name |
---|
|
core/properties/datagraphic/badgeposition
Enumerations
Interfaces
Type Aliases
SerializedBadgeEnumPosition
Ƭ SerializedBadgeEnumPosition:
Type declaration
Name | Type |
---|---|
|
|
|
|
|
|
|
|
Variables
BadgePositionsClockwise
•
defaultBadgePosition
•
Type declaration
Name | Type |
---|---|
|
|
|
|
|
|
|
|
defaultBadgePositionSerialized
•
Type declaration
Name | Type |
---|---|
|
|
|
|
|
|
|
|
Functions
badgePositionsEqual
▸ badgePositionsEqual(
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
deserializeBadgeEnumPosition
▸ deserializeBadgeEnumPosition(
Parameters
Name | Type |
---|---|
|
|
Returns
▸ deserializeBadgeEnumPosition(
Parameters
Name | Type |
---|---|
|
|
Returns
isHorizontalPos
▸ isHorizontalPos(
Parameters
Name | Type |
---|---|
|
|
Returns
maybePos is HorizontalBadgePos
isLayerPos
▸ isLayerPos(
Parameters
Name | Type |
---|---|
|
|
Returns
maybePos is BadgeLayerPos
isValidSerializedBadgeEnumPosition
▸ isValidSerializedBadgeEnumPosition(
Parameters
Name | Type |
---|---|
|
|
Returns
val is SerializedBadgeEnumPosition
isVerticalPos
▸ isVerticalPos(
Parameters
Name | Type |
---|---|
|
|
Returns
maybePos is VerticalBadgePos
serializeBadgeEnumPosition
▸ serializeBadgeEnumPosition(
Parameters
Name | Type |
---|---|
|
|
Returns
serializeBadgeEnumPositionAsKey
▸ serializeBadgeEnumPositionAsKey(
Parameters
Name | Type |
---|---|
|
|
Returns
core/properties/datagraphic/datagraphicindexes
Enumerations
Type Aliases
DataGraphicIconIndexes
Ƭ DataGraphicIconIndexes:
Type declaration
Name | Type |
---|---|
|
|
|
|
|
|
DataGraphicIconLibrarySets
Ƭ DataGraphicIconLibrarySets:
DataGraphicImage
Ƭ DataGraphicImage:
Type declaration
Name | Type |
---|---|
|
|
|
|
|
|
Functions
areDataGraphicIconIndexesEqual
▸ areDataGraphicIconIndexesEqual(
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
areDataGraphicImagesEqual
▸ areDataGraphicImagesEqual(
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
core/properties/datagraphic/staticdatagraphicsettings
Type Aliases
SerializedSimpleStaticDataGraphicSettings
Ƭ SerializedSimpleStaticDataGraphicSettings:
Type declaration
Name | Type |
---|---|
|
|
|
|
|
|
SimpleStaticDataGraphicSettings
Ƭ SimpleStaticDataGraphicSettings:
Type declaration
Name | Type |
---|---|
|
|
|
|
|
|
Functions
deserializeSimpleStaticDataGraphicSettings
▸ deserializeSimpleStaticDataGraphicSettings(
Parameters
Name | Type |
---|---|
|
|
Returns
isSerializedSimpleStaticDataGraphicSettings
▸ isSerializedSimpleStaticDataGraphicSettings(
Parameters
Name | Type |
---|---|
|
|
Returns
settings is SerializedSimpleStaticDataGraphicSettings
serializeSimpleStaticDataGraphicSettings
▸ serializeSimpleStaticDataGraphicSettings(
Parameters
Name | Type |
---|---|
|
|
Returns
core/properties/fillcolor
Enumerations
Type Aliases
SimpleFillStyle
Ƭ SimpleFillStyle:
Settings for the fill style of a block.
If a string is provided, it must be a hex color string, e.g.
SimpleImageFill
Ƭ SimpleImageFill:
Settings for using an image as the fill style of a block.
Type declaration
Name | Type | Description |
---|---|---|
|
|
Different ways of laying out the image in the background of the block. |
|
|
URL of the image to display. If a data URL is provided, the image will be uploaded to the current user's Lucid account and the URL replaced with a Lucid-provided one. |
core/properties/shadow
Interfaces
Type Aliases
SerializedShadow
Ƭ SerializedShadow:
Type declaration
Name | Type |
---|---|
|
|
|
|
|
|
|
|
|
|
Functions
deserializeShadow
▸ deserializeShadow(
Parameters
Name | Type |
---|---|
|
|
Returns
serializeShadow
▸ serializeShadow(
Parameters
Name | Type |
---|---|
|
|
Returns
core/properties/strokestyle
Enumerations
Functions
convertStrokeStyleToBorder
▸ convertStrokeStyleToBorder(
Parameters
Name | Type |
---|---|
|
|
Returns
isStrokeStyle
▸ isStrokeStyle(
Parameters
Name | Type |
---|---|
|
|
Returns
value is StrokeStyle
core/result
Interfaces
Type Aliases
Result
Ƭ Result<
Type parameters
Name |
---|
|
|
Functions
groupByResultType
▸ groupByResultType<
Type parameters
Name |
---|
|
|
Parameters
Name | Type |
---|---|
|
|
Returns
[
isEqual
▸ isEqual<
Type parameters
Name |
---|
|
|
Parameters
Name | Type |
---|---|
|
|
|
|
|
( |
|
( |
Returns
isFailure
▸ isFailure<
Type parameters
Name |
---|
|
|
Parameters
Name | Type |
---|---|
|
|
Returns
res is Failure<F>
isSuccess
▸ isSuccess<
Type parameters
Name |
---|
|
|
Parameters
Name | Type |
---|---|
|
|
Returns
res is Success<S>
core/rules/badgeboxfit
Enumerations
core/rules/conditions
Enumerations
- ConditionCombination
- ConnectedShapesCondition
- ContainmentConditions
- ShapeDataConditions
- ShapeTypeConditions
- TextConditions
Type Aliases
Conditions
Ƭ Conditions:
core/rules/conditiontype
Enumerations
core/rules/serializedcondition
Type Aliases
Between
Ƭ Between:
Type declaration
Name | Type |
---|---|
|
|
|
|
ConditionValueType
Ƭ ConditionValueType:
SerializedCondition
Ƭ SerializedCondition:
See lucid-extension-sdk/document/documentelement/ruleproxy.ts for a description of each of these fields
Type declaration
Name | Type |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
core/rules/serializeddatagraphic
Type Aliases
SerializedDataGraphic
Ƭ SerializedDataGraphic:
Type declaration
Name | Type |
---|---|
|
|
|
|
|
|
|
|
|
|
SerializedDataGraphicImage
Ƭ SerializedDataGraphicImage:
Type declaration
Name | Type |
---|---|
|
|
|
|
|
|
core/rules/serializedeffect
Enumerations
Type Aliases
FormattingInterface
Ƭ FormattingInterface:
Index signature
▪ [index:
SerializedEffect
Ƭ SerializedEffect:
Type declaration
Name | Type |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SerializedFormatting
Ƭ SerializedFormatting:
Type declaration
Name | Type |
---|---|
|
|
|
|
|
|
core/rules/serializedstencilgraphic
Type Aliases
SerializedStencilGraphic
Ƭ SerializedStencilGraphic:
Type declaration
Name | Type | Description |
---|---|---|
|
|
AutoHide used to be an undefined property that should default to true. Either continue handling undefined case when deserializing, or write a BCU that changes undefined to true. |
|
|
- |
|
|
- |
|
{ |
- |
|
|
- |
Functions
isSerializedStencilGraphic
▸ isSerializedStencilGraphic(
Parameters
Name | Type |
---|---|
|
|
Returns
v is SerializedStencilGraphic
core/serializeddataerror
Type Aliases
SerializedDataError
Ƭ SerializedDataError:
Type declaration
Name | Type |
---|---|
|
|
|
|
Functions
isSerializedDataError
▸ isSerializedDataError(
Parameters
Name | Type |
---|---|
|
|
Returns
raw is SerializedDataError
core/shapedatainheritance
Enumerations
core/spreadsheetintegration/lucidspreadsheetintegration
Functions
isImportedResults
▸ isImportedResults(
Parameters
Name | Type |
---|---|
|
|
Returns
x is ImportedResults
core/spreadsheetintegration/lucidspreadsheetintegrationregistry
core/unfurl/unfurlcallbacks
Enumerations
Interfaces
core/unfurl/unfurldetails
Interfaces
core/unfurl/unfurliframe
Enumerations
Interfaces
Functions
generateIframeAttributes
▸ generateIframeAttributes(
Parameters
Name | Type |
---|---|
|
|
Returns
core/unfurl/unfurlrefresherrortype
Enumerations
Functions
unfurlRefreshErrorTypeValidator
▸ unfurlRefreshErrorTypeValidator(
Parameters
Name | Type |
---|---|
|
|
Returns
x is UnfurlRefreshErrorType
core/unfurl/unfurlthumbnail
Interfaces
core/validators/validators
Type Aliases
ValidatorWithMessage
Ƭ ValidatorWithMessage: (
Type declaration
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
Functions
arrayValidator
▸ arrayValidator<
Creates a validator which tests if the target is an array and if all elements of the array satisfy the given sub-validator.
Type parameters
Name |
---|
|
Parameters
Name | Type |
---|---|
|
( |
Returns
A validator for the array type
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
p1 is T[]
asAssertion
▸ asAssertion<
Type parameters
Name |
---|
|
|
Parameters
Name | Type |
---|---|
|
|
Returns
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
asserts val is TO
both
▸ both<
Create a validator that combines two validators. This is useful for validating properties that have been composed of a generic and more specific values.
Type parameters
Name |
---|
|
|
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
x is A & B
either
▸ either<
Create a validator that merges two validators. This is useful for validating properties that have 2 disjoint sets of possible values. e.g. {someObject: string}|false
Type parameters
Name |
---|
|
|
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
x is A | B
enumValidator
▸ enumValidator<
Creates a validator which tests if the target is a value in the specified enum. Note that numbers in enums are reverse-mapped by the TS transpiler, so the specified keys are also values.
Type parameters
Name |
---|
|
Parameters
Name | Type |
---|---|
|
|
Returns
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
x is Object extends T ? never : T[keyof T]
exclude
▸ exclude<
Create a validator that allows types excluding those that satisfy an excludeValidator.
Type parameters
Name |
---|
|
|
Parameters
Name | Type |
---|---|
|
( |
|
( |
Returns
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
x is Exclude<U, T>
isBooleanOrEmptyString
▸ isBooleanOrEmptyString(
This validator validates that value is either boolean or empty string
Parameters
Name | Type |
---|---|
|
|
Returns
x is boolean | ""
isBoundingBox
▸ isBoundingBox(
Tests if the given target is a bounding box.
Parameters
Name | Type |
---|---|
|
|
Returns
subject is DestructureGuardedTypeObj<Object>
isDate
▸ isDate(
Parameters
Name | Type |
---|---|
|
|
Returns
x is Date
isFalse
▸ isFalse(
Parameters
Name | Type |
---|---|
|
|
Returns
x is false
isFlag
▸ isFlag(
Returns true if the target is equal to either zero or one or is a boolean.
Parameters
Name | Type |
---|---|
|
|
Returns
x is boolean | 0 | 1
isNullOption
▸ isNullOption(
Parameters
Name | Type |
---|---|
|
|
Returns
value is undefined | null
isNumberOrEmptyString
▸ isNumberOrEmptyString(
This validator validates that value is either number or empty string
Parameters
Name | Type |
---|---|
|
|
Returns
x is number | ""
isOpacity
▸ isOpacity(
Returns if an object is a number between 0 and 100.
Parameters
Name | Type |
---|---|
|
|
Returns
x is number
isPanelSize
▸ isPanelSize(
Tests if the given target is a panel size.
Parameters
Name | Type |
---|---|
|
|
Returns
subject is DestructureGuardedTypeObj<Object>
isPointLike
▸ isPointLike(
Tests if the given target satisfies the PointLike interface.
Parameters
Name | Type |
---|---|
|
|
Returns
subject is DestructureGuardedTypeObj<Object>
isPositiveNumber
▸ isPositiveNumber(
Parameters
Name | Type |
---|---|
|
|
Returns
x is number
isRestrictions
▸ isRestrictions(
This validator validates model of lucid.model.restrictions
Parameters
Name | Type |
---|---|
|
|
Returns
subject is DestructureGuardedTypeObj<Object>
isSet
▸ isSet(
This validator only allows objects whose values are all booleans set to true.
Parameters
Name | Type |
---|---|
|
|
Returns
x is Object
A validator for the map
isSize
▸ isSize(
Parameters
Name | Type |
---|---|
|
|
Returns
subject is DestructureGuardedTypeObj<Object>
isStringOrNegativeOne
▸ isStringOrNegativeOne(
This validator validates that value is either string or -1
Parameters
Name | Type |
---|---|
|
|
Returns
x is string | -1
isTrue
▸ isTrue(
Parameters
Name | Type |
---|---|
|
|
Returns
x is true
mapValidator
▸ mapValidator<
Creates a validator which tests if the target is an object and if all values in the object satisfy the given sub-validator. This does not perform any tests on the object keys, which are allowed to be arbitrary strings.
Type parameters
Name |
---|
|
Parameters
Name | Type |
---|---|
|
( |
Returns
A validator for the map Note that unlike objectValidator, this performs no validation on the names or number of the keys and treats all values equally
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
x is Object
maxLengthValidator
▸ maxLengthValidator(
Parameters
Name | Type |
---|---|
|
|
Returns
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
x is string
minLengthValidator
▸ minLengthValidator(
Parameters
Name | Type |
---|---|
|
|
Returns
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
x is string
nullable
▸ nullable<
Create a validator which allows the target to be either null or satisfy the sub-validator.
Type parameters
Name |
---|
|
Parameters
Name | Type |
---|---|
|
( |
Returns
A validator for the array type
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
x is null | T
nullableOption
▸ nullableOption<
Create a validator which allows the target to be undefined, null, or satisfy the sub-validator.
Type parameters
Name |
---|
|
Parameters
Name | Type |
---|---|
|
( |
Returns
A validator for the array type
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
x is undefined | null | T
objectOfValidator
▸ objectOfValidator<
Type parameters
Name |
---|
|
Parameters
Name | Type |
---|---|
|
|
Returns
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
x is Record<any, T>
objectValidator
▸ objectValidator<
Creates a validator which tests if the target is an object and if the structure of the object matches the structure of the passed-in validator object. The values in the validator object are in turn validators. This means that if the validator object has a (key,value) pair of the form ('key', keyValidator), then in order for the target object (x) to match, keyValidator(x['key']) must return true for all keys in the validatorStructure.
Note that you can use
Type parameters
Name | Type |
---|---|
|
extends |
Parameters
Name | Type |
---|---|
|
|
Returns
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
subject is DestructureGuardedTypeObj<T>
option
▸ option<
Create a validator which allows the target to be undefined or satisfy the sub-validator.
Type parameters
Name |
---|
|
Parameters
Name | Type |
---|---|
|
( |
Returns
A validator for the array type
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
x is undefined | T
partialObjectValidator
▸ partialObjectValidator<
Creates a validator which tests if the target is an object and if the structure of the object matches the structure of the passed-in validator object, but with every entry being optional.
Type parameters
Name | Type |
---|---|
|
extends |
Parameters
Name | Type |
---|---|
|
|
Returns
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
subject is Partial<DestructureGuardedTypeObj<T>>
propertyValidator
▸ propertyValidator<
Get a validator which returns whether the property calculation structure is correct.
Type parameters
Name |
---|
|
Parameters
Name | Type |
---|---|
|
( |
|
( |
Returns
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
subject is DestructureGuardedTypeObj<Object>
rangeValidator
▸ rangeValidator(
Creates a validator which tests if the target is a number and is equal to or between the min and max values.
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
x is number
recordValidator
▸ recordValidator<
Type parameters
Name | Type |
---|---|
|
extends |
|
|
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
x is Record<K, V>
someValidator
▸ someValidator<
Creates a validator that the given unknown matches at least one of the given validators
Type parameters
Name | Type |
---|---|
|
|
|
extends ( |
Parameters
Name | Type |
---|---|
|
|
Returns
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
x is GuardToType<A[number]>
someValue
▸ someValue<
Creates a validator that the given unknown is one of the supplied values
Type parameters
Name | Type |
---|---|
|
extends ( |
Parameters
Name | Type |
---|---|
|
|
Returns
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
x is T[number]
strictObjectValidator
▸ strictObjectValidator<
Similar to objectValidator, but if the object has any non-undefined keys, they must also be present in the validator structure. This is useful for things where extra data is unwanted, like Property serialization. the loose version is often prefered because this one makes backwards compatible changes to the data harder, because it requires an additional PR when the data transfers between services:
- A PR that adds the option() to this validator; 2. A PR that sends the new data; 3. A PR to remove the option(); compared to the (non-strict)objectValidator steps:
- A PR that adds the option() to this validator and sends the new data; 2. A PR to remove the option();
Type parameters
Name | Type |
---|---|
|
extends |
Parameters
Name | Type |
---|---|
|
|
Returns
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
subject is DestructureGuardedTypeObj<T>
stringEnumValidator
▸ stringEnumValidator<
Creates a validator which tests if the target is a string and is one of the values in the specified enum (object).
Type parameters
Name |
---|
|
Parameters
Name | Type |
---|---|
|
|
Returns
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
x is Object extends T ? never : T[keyof T]
tupleValidator
▸ tupleValidator<
Creates a validator for a fixed width array where each entry in the array can have a separate validator
Type parameters
Name | Type |
---|---|
|
extends ( |
Parameters
Name | Type |
---|---|
|
|
Returns
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
x is { [key in string | number | symbol]: GuardToType<V[key]> }
typedRecordValidator
▸ typedRecordValidator<
Type parameters
Name | Type |
---|---|
|
extends |
|
|
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
x is Record<K, V>
validatorWithMessage
▸ validatorWithMessage<
Type parameters
Name |
---|
|
Parameters
Name | Type |
---|---|
|
( |
|
|
|
|
Returns
core/xhr
Interfaces
Type Aliases
XHRResponse
Ƭ XHRResponse:
Functions
isBinaryXHRResponse
▸ isBinaryXHRResponse(
Parameters
Name | Type |
---|---|
|
|
Returns
p1 is BinaryXHRResponse
isTextXHRResponse
▸ isTextXHRResponse(
Parameters
Name | Type |
---|---|
|
|
Returns
p1 is TextXHRResponse
isXHRResponse
▸ isXHRResponse(
Parameters
Name | Type |
---|---|
|
|
Returns
p1 is XHRResponse
data/branchedcollectionid
data/collectiondefinition
Interfaces
data/collectionerrortypes
Variables
CollectionUpstreamSchemaStatus
•
data/collectionproxy
Classes
data/dataerror
Classes
data/dataitemproxy
Classes
data/dataproxy
Classes
data/datasourceproxy
Classes
data/dataupdatefiltertype
Enumerations
data/patchcollectionproxy
Classes
data/referencekeydefinition
Interfaces
Type Aliases
ReferenceKeyDefinition
Ƭ ReferenceKeyDefinition:
data/referencekeyproxy
Classes
data/schemadefinition
Interfaces
- FieldDefinition
- LockedFieldConstraintDefinition
- MaxLengthConstraintDefinition
- MaxValueFieldConstraintDefinition
- MinValueFieldConstraintDefinition
- NoWhitespaceFieldConstraintDefinition
- RequiredFieldConstraintDefinition
- SchemaDefinition
- SingleLineFieldConstraintDefinition
- UniqueEditFieldConstraintDefinition
Type Aliases
FieldConstraintDefinition
Ƭ FieldConstraintDefinition:
Functions
isFieldConstraintDefinition
▸ isFieldConstraintDefinition(
Parameters
Name | Type |
---|---|
|
|
Returns
x is Object
minMaxFieldConstraintValidator
▸ minMaxFieldConstraintValidator(
Parameters
Name | Type |
---|---|
|
|
Returns
val is MIN_VALUE | MAX_VALUE | MAX_LENGTH
dataconnector/actions/action
Classes
- DataConnectorAction
- DataConnectorActionContext
- DataConnectorAsynchronousAction
- DataConnectorManageWebhookAction
- DataConnectorPatchAction
- DataConnectorSynchronousAction
- Patch
- Webhook
Type Aliases
CollectionId
Ƭ CollectionId:
ItemPrimaryKey
Ƭ ItemPrimaryKey:
PatchItems
Ƭ PatchItems:
Index signature
▪ [primaryKey:
dataconnector/actions/dataconnectoractionkeys
Enumerations
dataconnector/actions/managewebhookresponsebody
Type Aliases
SerializedManageWebhookResponseBody
Ƭ SerializedManageWebhookResponseBody:
Wire format for ManageWebhookResponses
Type declaration
Name | Type |
---|---|
|
|
|
|
Functions
serializeManageWebhookResponse
▸ serializeManageWebhookResponse(
Convert the ManageWebhookResponse to Lucid's wire format
Parameters
Name | Type |
---|---|
|
|
Returns
dataconnector/actions/patchresponsebody
Classes
Type Aliases
PatchChangeCollection
Ƭ PatchChangeCollection:
Type declaration
Name | Type |
---|---|
|
|
|
|
SerializedPatchChange
Ƭ SerializedPatchChange:
Wire format for changes parts of a patch response
Type declaration
Name | Type |
---|---|
|
{ |
|
|
SerializedPatchResponseBody
Ƭ SerializedPatchResponseBody:
Wire format for "Patch" Action responses
Type declaration
Name | Type |
---|---|
|
|
|
|
Variables
PatchErrorTooltipField
•
Placeholder field name for tool tip errors
Functions
serializePatchChanges
▸ serializePatchChanges(
Parameters
Name | Type |
---|---|
|
|
Returns
serializePatchResponse
▸ serializePatchResponse(
Convert a Patch change to our wire format
Parameters
Name | Type |
---|---|
|
|
Returns
dataconnector/actions/serializedactions
Functions
actionsHeaderValidator
▸ actionsHeaderValidator(
Parameters
Name | Type |
---|---|
|
|
Returns
subject is DestructureGuardedTypeObj<Object>
deserializeActions
▸ deserializeActions(
Function to convert the lucid action wire format into a clean list of actions
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
dataconnector/cryptodependencies
Interfaces
Type Aliases
CryptoDependencies
Ƭ CryptoDependencies:
Type declaration
Name | Type |
---|---|
|
|
|
|
dataconnector/dataconnector
Classes
- DataConnector
- DataConnectorRequestError
- DataConnectorRequestState
- DataConnectorResponseError
- DataConnectorRunError
Type Aliases
DataConnectorRoute
Ƭ DataConnectorRoute: (
Type declaration
▸ (
Type to define an arbitrary non-action request to this server. Useful for handling webhook responses in the same lambda that handles data actions
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
|
|
Returns
dataconnector/dataconnectorclient
Classes
dataconnector/datasourceclient
Classes
dataconnector/datasourcemetadatatypes
Interfaces
Type Aliases
MetadataPatchResponse
Ƭ MetadataPatchResponse:
Functions
isSerializedMetadataRecord
▸ isSerializedMetadataRecord(
Parameters
Name | Type |
---|---|
|
|
Returns
subject is DestructureGuardedTypeObj<Object>
dataconnector/datasourceupdatetypes
Classes
Interfaces
Type Aliases
DataSourceRequest
Ƭ DataSourceRequest:
Container for an update to a data source
Type declaration
Name | Type | Description |
---|---|---|
|
|
Collections to add or update to the data source |
|
{ |
Configuration for the data source to be added or modified |
|
|
Configures how changes made to the data are pushed to the external source |
|
|
The name of the data source to be added or modified |
|
|
The current update filter type associated with this request |
ItemsPatch
Ƭ ItemsPatch: {
SerializedItemsPatch
Ƭ SerializedItemsPatch: {
Functions
schemaOKStatus
▸ schemaOKStatus(): [
For the moment, when the upstream Google Sheet is changed in such a way that the schema has changed, we simply stop updates from happening. We do need to alert the user that this has happened, though. We also need to know when the updates are happening properly so we can clear the error once the user has resolved the problem. Since the only way to delete errors is to overwrite them, we simply overwrite the error to be OK on every successful import.
Returns
[
The error map entry which alerts the document that this problem has been resolved.
schemaOutOfSyncStatus
▸ schemaOutOfSyncStatus(
For the moment, when the upstream Google Sheet is changed in such a way that the schema has changed, we simply stop updates from happening. We do need to alert the user that this has happened, though. This is a utility function for creating the appropriate entry in the errors map so that the user can be alerted that updates have stopped and what they need to do to fix it.
The eventual, proposed fix is to allow schemas to have version numbers so that changes to the schema from Google can simply be folded in to the on-document copies of the data and all following edits.
Parameters
Name | Type | Description |
---|---|---|
|
|
The primary key stored in the data sync service and which currently is used to interpret patches. |
|
|
The primary key as it has been changed in the real Google Sheets. |
Returns
[
The error map entry which alerts the document that this problem has happened.
serializeCollectionPatch
▸ serializeCollectionPatch(
Parameters
Name | Type |
---|---|
|
|
Returns
serializeItemsPatch
▸ serializeItemsPatch(
Parameters
Name | Type |
---|---|
|
|
Returns
dataconnector/debugserver
Type Aliases
RunDebugServerOptions
Ƭ RunDebugServerOptions:
Options for how to run the debug server
Type declaration
Name | Type | Description |
---|---|---|
|
|
The app you want to route your debug server on. If you leave this undefined, we'll create one |
|
|
We don't want to have the lucid-extension-sdk depend on express. You can pass the imported express modules here |
|
|
The port to listen on |
|
|
prefix for the debug server routes. Useful if you want to distinguish different data connectors |
dataconnector/defaultfetchfunction
dataconnector/itemrekeyer
Classes
dataconnector/signaturevalidator
Classes
dataconnector/throwunsuccessful
document/blockclasses/blockproxyregistry
Type Aliases
BlockProxyConstructor
Ƭ BlockProxyConstructor: typeof
The base BlockProxy class provides no special functionality for any specific type of block.
To provide direct type-safe support for specific block types, extend BlockProxy and add a classNameRegex, then include your new block proxy in the allProxyClasses list. Then, whenever we construct a proxy to represent a block on the document, we will check each available proxy class and use one of these if available.
Functions
findProxyClass
▸ findProxyClass(
Parameters
Name | Type |
---|---|
|
|
Returns
document/blockclasses/cardblockproxy
Classes
document/blockclasses/customblockproxy
Classes
Type Aliases
CustomBlockProxyConstructor
Ƭ CustomBlockProxyConstructor: typeof
document/blockclasses/erdblockproxy
Classes
document/blockclasses/legendblockproxy
Enumerations
Classes
document/blockclasses/linkunfurlblockproxy
Classes
document/blockclasses/swimlaneblockproxy
Classes
document/blockclasses/tableblockproxy
Classes
document/blockdefinition
Interfaces
document/blockproxy
Classes
document/documentaccesspermission
Enumerations
document/documentchunk
document/documentelement/cardconfigproxy
Classes
document/documentelement/documentelementproxy
Classes
document/documentelement/documentelementtype
Enumerations
document/documentelement/ruleproxy
Classes
document/documentproxy
Classes
document/elementproxy
Classes
document/groupproxy
Classes
document/imagedefinition
Interfaces
Functions
imageToBlockDefinition
▸ imageToBlockDefinition(
Turns an image definition into a block definition.
Parameters
Name | Type |
---|---|
|
|
Returns
document/itemproxy
Classes
document/linedefinition
Interfaces
- BlockEndpointDefinition
- EndpointStyle
- LineDefinition
- LineEndpointDefinition
- PositionEndpointDefinition
Type Aliases
EndpointDefinition
Ƭ EndpointDefinition:
The definition of one line endpoint, which may be free-floating at a given location, or attached to another block or line
Functions
isBlockEndpointDefinition
▸ isBlockEndpointDefinition(
Checks if the endpoint is a BlockEndpointDefinition.
Parameters
Name | Type |
---|---|
|
|
Returns
endpoint is BlockEndpointDefinition
isLineEndpointDefinition
▸ isLineEndpointDefinition(
Checks if the endpoint is a LineEndpointDefinition.
Parameters
Name | Type |
---|---|
|
|
Returns
endpoint is LineEndpointDefinition
isPositionEndpointDefinition
▸ isPositionEndpointDefinition(
Checks if the endpoint is a PositionEndpointDefinition.
Parameters
Name | Type |
---|---|
|
|
Returns
endpoint is PositionEndpointDefinition
document/lineproxy
Enumerations
Classes
document/linetextareapositioning
Interfaces
document/mapproxy
Classes
Interfaces
document/pagedefinition
Interfaces
document/pageproxy
Classes
document/propertystoreproxy
Classes
document/ruledefinition
Interfaces
- BaseConditionDefinition
- BaseEffectDefinition
- CustomIconEffectDefinition
- DataGraphicEffectDefinition
- FormattingEffectDefinition
- FormulaConditionDefinition
- RuleDefinition
- ShapeDataConditionDefinition
- ShapeTypeConditionDefinition
- TextConditionDefinition
Type Aliases
ConditionDefinition
Ƭ ConditionDefinition:
EffectDefinition
Ƭ EffectDefinition:
document/shapedataproxy
Classes
document/text/textstyle
Enumerations
Interfaces
Functions
isPartialTextStyle
▸ isPartialTextStyle(
Parameters
Name | Type |
---|---|
|
|
Returns
subject is Partial<DestructureGuardedTypeObj<Object>>
editorclient
Classes
Type Aliases
DataActionOptions
Ƭ DataActionOptions:
Type declaration
Name | Type |
---|---|
|
|
|
|
|
|
|
|
|
|
DataActionResponse
Ƭ DataActionResponse: {
interop
Namespaces
Classes
Interfaces
math
Type Aliases
Box
Ƭ Box:
Type declaration
Name | Type |
---|---|
|
|
|
|
|
|
|
|
Point
Ƭ Point:
Type declaration
Name | Type |
---|---|
|
|
|
|
Functions
boxCenter
▸ boxCenter(
Parameters
Name | Type |
---|---|
|
|
Returns
Name | Type |
---|---|
|
|
|
|
boxFrom4Points
▸ boxFrom4Points(
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
|
|
Returns
boxesOverlap
▸ boxesOverlap(
Do two boxes overlap?
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
clip
▸ clip(
Gets the intersection of two boxes
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
a clipped to b
combinedBoundingBox
▸ combinedBoundingBox(
Parameters
Name | Type |
---|---|
|
[
|
Returns
▸ combinedBoundingBox(
Parameters
Name | Type |
---|---|
|
|
Returns
isBoxWithin
▸ isBoxWithin(
Is box a completely within box b?
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
padBox
▸ padBox(
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
percentBoxesOverlap
▸ percentBoxesOverlap(
return the percentage of a that overlaps with b. if a is entirely within b, it returns 1 (or a number a little less than 1 (e.g., 0.99999999999) due to numerical inaccuracy); if a is entirely outside b, it returns 0.
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
rotateAroundFn
▸ rotateAroundFn(
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
▸ (
Parameters
Name | Type |
---|---|
|
|
Returns
rotateBox
▸ rotateBox(
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
Returns
[
rotatedBoundingBox
▸ rotatedBoundingBox(
Returns the bounding box that would surround the given box when rotated the given amount.
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
Returns
toCornersAsArray
▸ toCornersAsArray(
Parameters
Name | Type |
---|---|
|
|
Returns
[
message/unfurleventmessage
Namespace: i18n
interop.i18n
Functions
formatList
▸ formatList(
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
formatNumber
▸ formatNumber(
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
get
▸ get(
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
|
|
Returns
getInLocale
▸ getInLocale(
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
|
|
Returns
getLanguage
▸ getLanguage():
Returns
setData
▸ setData(
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
ui/alertmodal
ui/iframeui
Classes
ui/menu
Enumerations
Classes
Interfaces
ui/modal
Classes
Type Aliases
ModalConfig
Ƭ ModalConfig: {
Configuration required to display a Modal.
ui/panel
Enumerations
Classes
Type Aliases
PanelConfig
Ƭ PanelConfig: {
ui/viewport
Classes
Type Aliases
TextEditCompletionCallback
Ƭ TextEditCompletionCallback: (
Type declaration
▸ (
A text editing hook provided to Viewport.hookTextEdit may return a TextEditCompletionCallback to specify what behavior should happen when the user finishes editing text.
If this callback returns false, the edit is reverted.
If this callback returns a string, the typed value is replaced with that string.
Parameters
Name | Type |
---|---|
|
|
Returns