Interface: FrameElement
Represents an element on the SVG canvas. This may comprise of multiple SVG elements when output such as path elements, defs, etc. All concrete elements must implement this interface.
Extends
Properties
_renderingConfiguration?
optional_renderingConfiguration?:RenderingConfiguration
Injected by the LayoutsProvider if required. Shouldn't be used by the user. This is a simple way to pass global rendering configuration to individual elements without having to set up a react context.
Inherited from
LayoutElement._renderingConfiguration
dataHeight?
optionaldataHeight?:number
Assigns the 'data-frame-height' attribute to the frame element. The rasterizer we use has issues with images inside patterns. This is a workaround to ensure that the pattern is correctly sized.
dataWidth?
optionaldataWidth?:number
Assigns the 'data-frame-width' attribute to the frame element. The rasterizer we use has issues with images inside patterns. This is a workaround to ensure that the pattern is correctly sized.
disablePlaceholder?
optionaldisablePlaceholder?:boolean
excludeFromExport?
optionalexcludeFromExport?:boolean
When true, this element will be removed from SVGString output when the removeExcludedElements flag is set to true.
Inherited from
LayoutElement.excludeFromExport
focalBlur?
optionalfocalBlur?:boolean
focalBlurRadius?
optionalfocalBlurRadius?:number
focalBlurStrength?
optionalfocalBlurStrength?:number
forceImageContain?
optionalforceImageContain?:boolean
forceImageCover?
optionalforceImageCover?:boolean
height
height:
number
The height in pixels of the element.
Inherited from
id
id:
string
The unique identifier for this element.
Inherited from
immutable?
optionalimmutable?:boolean
The element is considered immutable and shouldn't be modifiable by the user.
Inherited from
invertThreshold?
optionalinvertThreshold?:boolean
layer?
optionallayer?:number
The layer that this element exists on. Elements on a higher layer can never be below an element on a lower layer. 0 by default.
Inherited from
layerIndex?
optionallayerIndex?:number
The index of this element on the current layer, if no layer is present it is assumed to be 0. For the index 0 is lower, > 0 is higher
Inherited from
mask?
optionalmask?:string
Value to use as the mask attribute if the element does not correspond to a step.
Inherited from
opacity?
optionalopacity?:number
path
path:
string
pattern?
optionalpattern?:Pattern
productOverlay?
optionalproductOverlay?:boolean
When true this element should be rendered on top of all other elements always.
Inherited from
rotation
rotation:
number
The rotation in degrees.
Inherited from
scaleX
scaleX:
number
scaleY
scaleY:
number
stepName?
optionalstepName?:string
If the element was made from a workflow step, this is its step name.
Inherited from
stepRegion?
optionalstepRegion?:Region
If the element was made from a workflow step, this is its region.
Inherited from
stepRegionIndex?
optionalstepRegionIndex?:number
If the element was made from a workflow step, this the index of the region.
Inherited from
threshold?
optionalthreshold?:number
thresholdSaturation?
optionalthresholdSaturation?:number
type
type:
LayoutElementType
The type of this element
Inherited from
useThreshold?
optionaluseThreshold?:boolean
width
width:
number
The height in pixels of the element.
Inherited from
x
x:
number
Horizontal offset from top left origin point.
Inherited from
y
y:
number
Vertical offset from top left origin point.