CreateShapeOptionsBase<TOverrides>
Options for creating a drawing.
Type parameters
Name | Type |
---|---|
TOverrides | extends object |
Properties
disableSave
OptionalDisable/enable saving the drawing.
Type
boolean
disableSelection
OptionalDisable/enable selecting the drawing.
Type
boolean
disableUndo
OptionalIf true
, users cannot cancel the drawing creation in the UI. However, users can still click the Undo button to cancel previous actions.
Type
boolean
filled
OptionalEnable/disable filling the drawing with color (if the drawing supports filling).
Type
boolean
icon
OptionalSpecify an icon to render. Only icons listed in Shapes and Overrides are supported. Note that the value should be a hex number, not a string.
Type
number
lock
OptionalShould drawing be locked
Type
boolean
overrides
OptionalDrawing properties overrides. Refer to Shapes and Overrides for more information.
Type
TOverrides
ownerStudyId
OptionalThe ID of an indicator that the drawing is attached to. For more information, refer to the Attach drawing to indicator section.
Type
showInObjectsTree
OptionalEnable/disable showing the drawing in the objects tree.
Type
boolean
text
OptionalText for drawing
Type
string
zOrder
OptionalCreate the drawing in front of all other drawings, or behind all other drawings.
Type
"top" | "bottom"