ITextItemData
Interfaces
ITextItemData
A structure defining the parameters of text elements.
Example
{
"defaultItemsConfig": {
"text": {
"font": {
"postScriptName": "Impact",
"size": 33,
"fauxBold": true,
"fauxItalic": true
},
"color": "rgb(30,30,30)",
"textPermissions": {
"allowChangeFontColor": false,
"allowChangeShadow": false,
"allowChangeStroke": false
}
}
}
}
Extends
IBaseTextItemData<TTextAlignment,TStrokeSettings,TShadowSettings>.IBoundedTextItemData<TTextAlignment,TStrokeSettings,TShadowSettings>.IArchedTextItemData<TTextAlignment,TStrokeSettings,TShadowSettings>
Type Parameters
| Type Parameter |
|---|
TTextAlignment |
TStrokeSettings |
TShadowSettings |
Properties
adjustSize?
optional adjustSize?: boolean;
Inherited from
alignment?
optional alignment?: TTextAlignment;
The text alignment.
Inherited from
angle?
optional angle?: number;
An angle, which design elements are rotated to. By default, this value is 0.
Inherited from
bend?
optional bend?: number;
Inherited from
blendMode?
optional blendMode?: BlendMode;
A blend mode that applies to design elements being added to the canvas.
Inherited from
borderColor?
optional borderColor?: string;
The border color. The default value is "rgba(0,0,0,1)".
Inherited from
borderWidth?
optional borderWidth?: number;
The border width, in points. The default value is 1.
Inherited from
characterLimit?
optional characterLimit?: number;
Limits the number of characters that the user can enter in the Rich text editor. By default, this number is not limited.
Inherited from
IBoundedTextItemData.characterLimit
checkTextCrop?
optional checkTextCrop?: boolean;
Inherited from
IBaseTextItemData.checkTextCrop
color?
optional color?: string;
The text color. The default value is "rgba(0,0,0,1)".
Inherited from
fillColor?
optional fillColor?: string;
The fill color. The default value is "rgba(0, 0, 0, 0)".
Inherited from
font?
optional font?: IFontSettingsData;
The font parameters.
Inherited from
height?
optional height?: string | number;
The height of design elements being added to the canvas, in points or percent. For QR codes, the width value is used for both width and height.
Inherited from
horizontalScale?
optional horizontalScale?: number;
Allows you to scale text horizontally. The default value is 1.
Inherited from
IBaseTextItemData.horizontalScale
isVariable?
optional isVariable?: boolean;
Marks a design element as a variable item. The default value is false.
Inherited from
isVertical?
optional isVertical?: boolean;
Enables the vertical orientation of bounded text. The default value is false.
Inherited from
IBoundedTextItemData.isVertical
itemPermissions?
optional itemPermissions?: IItemPermissionsData;
A structure defining the Item Menu and the Floating item toolbar for design elements.
Inherited from
IBaseTextItemData.itemPermissions
leading?
optional leading?: number;
The spacing between base lines, in points.
Inherited from
location?
optional location?: ILocationData;
The coordinates of design elements being added to the canvas. By default, you can add them to the center of your product.
Inherited from
manipulationPermissions?
optional manipulationPermissions?: IManipulationPermissionsData;
A structure defining the manipulation permissions for design elements.
Inherited from
IBaseTextItemData.manipulationPermissions
maskOpacity?
optional maskOpacity?: number;
The mask opacity of an item. The default value is 0.45.
Inherited from
maxLineCount?
optional maxLineCount?: number;
The maximum number of lines which the user is allowed to enter into a specific point text or bounded text element. By default, this number is not limited.
Inherited from
IBoundedTextItemData.maxLineCount
maxLineLength?
optional maxLineLength?: number;
The maximum length of text lines which the user is allowed to enter into a specific point text or bounded text element. By default, this number is not limited.
Inherited from
IBoundedTextItemData.maxLineLength
name?
optional name?: string;
The name of design elements being added to the canvas.
Inherited from
opacity?
optional opacity?: number;
An opacity that applies to design elements. This value can be from 0 to 1. By default, it is 1.
Inherited from
overflowStrategy?
optional overflowStrategy?: OverflowStrategy;
The copyfitting strategy applied to a bounded text element when it overflows. By default, this property is "clip".
Inherited from
IBoundedTextItemData.overflowStrategy