Back to Website
Show / Hide Table of Contents

Interface IDefaultItemsConfig

The configuration of new design elements that the user will add to the product.

Package: @aurigma/design-editor-iframe
Remarks

For details, see the Toolbox topic.

Examples
var configuration = {
   defaultItemsConfig: {
       text: {
           font: {
               postScriptName: "Impact",
               size: 33,
               fauxBold: true,
               fauxItalic: true
           },
           color: "rgb(0,255,255)",
           verticalAlignment: "center",
           isVertical: true,
           tracking: 27,
           leading: 125
       },
       line: {
           width: 3,
           color: "rgb(255,0,0)",
           linePermissions: {
               allowChangeLineWidth: false
           }
       },
       image: {
           manipulationPermissions: {
               allowMoveHorizontal: false,
               allowMoveVertical: false,
               resizeGrips: {
                   edge: true,
                   corner: ["Arbitrary"]
               }
           },
           themeBinding: {
               img: "main"
           }
       }
   }
};

var editor = await CustomersCanvas.IframeApi.loadEditor(iframe, productDefinition, configuration);

Properties

archedText

Default parameters of arched text elements, which users add to the canvas.

Declaration
archedText?: IArchedTextItemData;
Property Value
Type Description
IArchedTextItemData

Default parameters of arched text elements, which users add to the canvas.

barcode

Default parameters of barcodes, which users add to the canvas.

Declaration
barcode?: IBarcodeItemData;
Property Value
Type Description
IBarcodeItemData

Default parameters of barcodes, which users add to the canvas.

clipart

Default parameters of clipart, which users add to the canvas.

Declaration
clipart?: IClipartItemData;
Property Value
Type Description
IClipartItemData

Default parameters of clipart, which users add to the canvas.

ellipse

Default parameters of ellipses, which users add to the canvas.

Declaration
ellipse?: IEllipseItemData;
Property Value
Type Description
IEllipseItemData

Default parameters of ellipses, which users add to the canvas.

group

Default parameters of groups, which users add to the canvas.

Declaration
group?: IGroupItemData;
Property Value
Type Description
IGroupItemData

Default parameters of groups, which users add to the canvas.

image

Default parameters of images, which users add to the canvas.

Declaration
image?: IGalleryItemConfig;
Property Value
Type Description
IGalleryItemConfig

Default parameters of images, which users add to the canvas.

line

Default parameters of lines, which users add to the canvas.

Declaration
line?: ILineItemData;
Property Value
Type Description
ILineItemData

Default parameters of lines, which users add to the canvas.

placeholder

Default parameters of image placeholders, which users add to the canvas.

Declaration
placeholder?: IPlaceholderItemData;
Property Value
Type Description
IPlaceholderItemData

Default parameters of image placeholders, which users add to the canvas.

rectangle

Default parameters of rectangles, which users add to the canvas.

Declaration
rectangle?: IRectangleItemData;
Property Value
Type Description
IRectangleItemData

Default parameters of rectangles, which users add to the canvas.

richText

Default parameters of rich formatted text elements, which users add to the canvas.

Declaration
richText?: IRichTextData;
Property Value
Type Description
IRichTextData

Default parameters of rich formatted text elements, which users add to the canvas.

shape

Default parameters of custom shapes, which users add to the canvas.

Declaration
shape?: IShapeItemData;
Property Value
Type Description
IShapeItemData

Default parameters of custom shapes, which users add to the canvas.

text

Default parameters of text, which users add to the canvas.

Declaration
text?: ITextItemData;
Property Value
Type Description
ITextItemData

Default parameters of text, which users add to the canvas.

Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback