@aurigma/design-atoms-interfaces 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CommandManager/HistoryUpdateMode.d.ts +5 -0
- package/CommandManager/HistoryUpdateMode.js +6 -0
- package/CommandManager/ICommandManager.d.ts +69 -0
- package/CommandManager/ICommandManager.js +1 -0
- package/CommandManager/ItemsCommand/IAddContentCommandArgs.d.ts +4 -0
- package/CommandManager/ItemsCommand/IAddContentCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/IAlignItemsCommandArgs.d.ts +9 -0
- package/CommandManager/ItemsCommand/IAlignItemsCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/IApplyParams.d.ts +6 -0
- package/CommandManager/ItemsCommand/IApplyParams.js +1 -0
- package/CommandManager/ItemsCommand/IBringItemsCommandArgs.d.ts +5 -0
- package/CommandManager/ItemsCommand/IBringItemsCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/IChangeBarcodeFormatCommandArgs.d.ts +6 -0
- package/CommandManager/ItemsCommand/IChangeBarcodeFormatCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/IChangeColumnCountCommandArgs.d.ts +5 -0
- package/CommandManager/ItemsCommand/IChangeColumnCountCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/IChangeLayoutCommandArgs.d.ts +6 -0
- package/CommandManager/ItemsCommand/IChangeLayoutCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/ICloneItemsCommandArgs.d.ts +4 -0
- package/CommandManager/ItemsCommand/ICloneItemsCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/IConvertGroupIntoLayoutArgs.d.ts +4 -0
- package/CommandManager/ItemsCommand/IConvertGroupIntoLayoutArgs.js +1 -0
- package/CommandManager/ItemsCommand/IConvertItemToPlaceholderCommandArgs.d.ts +3 -0
- package/CommandManager/ItemsCommand/IConvertItemToPlaceholderCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/IConvertLayoutIntoGroupArgs.d.ts +4 -0
- package/CommandManager/ItemsCommand/IConvertLayoutIntoGroupArgs.js +1 -0
- package/CommandManager/ItemsCommand/IConvertPlaceholderToItemCommandArgs.d.ts +3 -0
- package/CommandManager/ItemsCommand/IConvertPlaceholderToItemCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/IConvertTextItemCommandArgs.d.ts +5 -0
- package/CommandManager/ItemsCommand/IConvertTextItemCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/ICreateItemCommandArgs.d.ts +6 -0
- package/CommandManager/ItemsCommand/ICreateItemCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/IDeleteItemsCommandArgs.d.ts +7 -0
- package/CommandManager/ItemsCommand/IDeleteItemsCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/IDistributeItemsCommandArgs.d.ts +6 -0
- package/CommandManager/ItemsCommand/IDistributeItemsCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/IEditItemsCommandArgs.d.ts +11 -0
- package/CommandManager/ItemsCommand/IEditItemsCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/IEditPlaceholderCommandArgs.d.ts +4 -0
- package/CommandManager/ItemsCommand/IEditPlaceholderCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/IFixUnsupportedTextCommandArgs.d.ts +3 -0
- package/CommandManager/ItemsCommand/IFixUnsupportedTextCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/IGroupAlignCommandArgs.d.ts +4 -0
- package/CommandManager/ItemsCommand/IGroupAlignCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/IGroupItemsCommandArgs.d.ts +6 -0
- package/CommandManager/ItemsCommand/IGroupItemsCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/IInsertItemsIntoAreaCommandArgs.d.ts +6 -0
- package/CommandManager/ItemsCommand/IInsertItemsIntoAreaCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/IMoveItemCommandArgs.d.ts +5 -0
- package/CommandManager/ItemsCommand/IMoveItemCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/INewTranslateItemsCommandArgs.d.ts +6 -0
- package/CommandManager/ItemsCommand/INewTranslateItemsCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/IPlaceItemsToAreaCommandArgs.d.ts +6 -0
- package/CommandManager/ItemsCommand/IPlaceItemsToAreaCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/IPlaceholderContentResetCommandArgs.d.ts +4 -0
- package/CommandManager/ItemsCommand/IPlaceholderContentResetCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/IPlaceholderContentRotateCommandArgs.d.ts +5 -0
- package/CommandManager/ItemsCommand/IPlaceholderContentRotateCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/IPlaceholderContentScaleCommandArgs.d.ts +6 -0
- package/CommandManager/ItemsCommand/IPlaceholderContentScaleCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/IReplaceGroupItemContentCommandArgs.d.ts +4 -0
- package/CommandManager/ItemsCommand/IReplaceGroupItemContentCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/IReplaceItemCommandArgs.d.ts +4 -0
- package/CommandManager/ItemsCommand/IReplaceItemCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/IResizeItemsCommandArgs.d.ts +9 -0
- package/CommandManager/ItemsCommand/IResizeItemsCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/IRotateItemsCommandArgs.d.ts +7 -0
- package/CommandManager/ItemsCommand/IRotateItemsCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/ISetImageItemCommandArgs.d.ts +6 -0
- package/CommandManager/ItemsCommand/ISetImageItemCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/ISetImageMetadataCommandArgs.d.ts +6 -0
- package/CommandManager/ItemsCommand/ISetImageMetadataCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/ISetMetadataListItem.d.ts +6 -0
- package/CommandManager/ItemsCommand/ISetMetadataListItem.js +1 -0
- package/CommandManager/ItemsCommand/ITransformItemsCommandArgs.d.ts +7 -0
- package/CommandManager/ItemsCommand/ITransformItemsCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/ITranslateItemCommandArgs.d.ts +6 -0
- package/CommandManager/ItemsCommand/ITranslateItemCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/IUngroupItemsCommandArgs.d.ts +5 -0
- package/CommandManager/ItemsCommand/IUngroupItemsCommandArgs.js +1 -0
- package/CommandManager/ItemsCommand/ItemsCommand.d.ts +39 -0
- package/CommandManager/ItemsCommand/ItemsCommand.js +40 -0
- package/CommandManager/ItemsCommand/index.d.ts +39 -0
- package/CommandManager/ItemsCommand/index.js +39 -0
- package/CommandManager/ProductCommand/IApplyProductThemeCmdArgs.d.ts +3 -0
- package/CommandManager/ProductCommand/IApplyProductThemeCmdArgs.js +1 -0
- package/CommandManager/ProductCommand/IChangeBgArgs.d.ts +4 -0
- package/CommandManager/ProductCommand/IChangeBgArgs.js +1 -0
- package/CommandManager/ProductCommand/IContainerResizeOptions.d.ts +7 -0
- package/CommandManager/ProductCommand/IContainerResizeOptions.js +1 -0
- package/CommandManager/ProductCommand/IResizeArgs.d.ts +10 -0
- package/CommandManager/ProductCommand/IResizeArgs.js +1 -0
- package/CommandManager/ProductCommand/IRotateProductCmdArgs.d.ts +4 -0
- package/CommandManager/ProductCommand/IRotateProductCmdArgs.js +1 -0
- package/CommandManager/ProductCommand/ProductCommand.d.ts +8 -0
- package/CommandManager/ProductCommand/ProductCommand.js +9 -0
- package/CommandManager/ProductCommand/index.d.ts +5 -0
- package/CommandManager/ProductCommand/index.js +5 -0
- package/CommandManager/SelectionCommand/ISelectItemsByRectArgs.d.ts +5 -0
- package/CommandManager/SelectionCommand/ISelectItemsByRectArgs.js +1 -0
- package/CommandManager/SelectionCommand/ISelectItemsCommandArgs.d.ts +6 -0
- package/CommandManager/SelectionCommand/ISelectItemsCommandArgs.js +1 -0
- package/CommandManager/SelectionCommand/MultiSelectMode.d.ts +5 -0
- package/CommandManager/SelectionCommand/MultiSelectMode.js +6 -0
- package/CommandManager/SelectionCommand/SelectionCommand.d.ts +7 -0
- package/CommandManager/SelectionCommand/SelectionCommand.js +8 -0
- package/CommandManager/SelectionCommand/index.d.ts +4 -0
- package/CommandManager/SelectionCommand/index.js +4 -0
- package/CommandManager/SurfaceCommand/IAddItemsCommandArgs.d.ts +12 -0
- package/CommandManager/SurfaceCommand/IAddItemsCommandArgs.js +1 -0
- package/CommandManager/SurfaceCommand/IGetNextSurfaceCmdName.d.ts +3 -0
- package/CommandManager/SurfaceCommand/IGetNextSurfaceCmdName.js +1 -0
- package/CommandManager/SurfaceCommand/ISetBleedCommandArgs.d.ts +4 -0
- package/CommandManager/SurfaceCommand/ISetBleedCommandArgs.js +1 -0
- package/CommandManager/SurfaceCommand/ISetSlugCommandArgs.d.ts +4 -0
- package/CommandManager/SurfaceCommand/ISetSlugCommandArgs.js +1 -0
- package/CommandManager/SurfaceCommand/ISwitchToSurfaceParams.d.ts +3 -0
- package/CommandManager/SurfaceCommand/ISwitchToSurfaceParams.js +1 -0
- package/CommandManager/SurfaceCommand/SurfaceCommand.d.ts +5 -0
- package/CommandManager/SurfaceCommand/SurfaceCommand.js +6 -0
- package/CommandManager/SurfaceCommand/SurfaceSwitchCommand.d.ts +7 -0
- package/CommandManager/SurfaceCommand/SurfaceSwitchCommand.js +8 -0
- package/CommandManager/SurfaceCommand/index.d.ts +7 -0
- package/CommandManager/SurfaceCommand/index.js +7 -0
- package/CommandManager/ViewerCommand/IMoveViewportCommandArgs.d.ts +3 -0
- package/CommandManager/ViewerCommand/IMoveViewportCommandArgs.js +1 -0
- package/CommandManager/ViewerCommand/ViewerCommand.d.ts +3 -0
- package/CommandManager/ViewerCommand/ViewerCommand.js +4 -0
- package/CommandManager/ViewerCommand/index.d.ts +2 -0
- package/CommandManager/ViewerCommand/index.js +2 -0
- package/CommandManager/ZoomCommand/ISetZoomCommandArgs.d.ts +5 -0
- package/CommandManager/ZoomCommand/ISetZoomCommandArgs.js +1 -0
- package/CommandManager/ZoomCommand/IZoomToItemsCommandArgs.d.ts +4 -0
- package/CommandManager/ZoomCommand/IZoomToItemsCommandArgs.js +1 -0
- package/CommandManager/ZoomCommand/IZoomToSafetyLineCommandArgs.d.ts +3 -0
- package/CommandManager/ZoomCommand/IZoomToSafetyLineCommandArgs.js +1 -0
- package/CommandManager/ZoomCommand/ZoomCommand.d.ts +6 -0
- package/CommandManager/ZoomCommand/ZoomCommand.js +7 -0
- package/CommandManager/ZoomCommand/index.d.ts +4 -0
- package/CommandManager/ZoomCommand/index.js +4 -0
- package/CommandManager/index.d.ts +8 -0
- package/CommandManager/index.js +8 -0
- package/Types/AlignTargetType.d.ts +1 -0
- package/Types/AlignTargetType.js +1 -0
- package/Types/AlignType.d.ts +1 -0
- package/Types/AlignType.js +1 -0
- package/Types/DistributeType.d.ts +4 -0
- package/Types/DistributeType.js +5 -0
- package/Types/IQueryOptions.d.ts +7 -0
- package/Types/IQueryOptions.js +1 -0
- package/Types/ItemData/BarcodeContentType.d.ts +92 -0
- package/Types/ItemData/BarcodeContentType.js +1 -0
- package/Types/ItemData/BlendMode.d.ts +15 -0
- package/Types/ItemData/BlendMode.js +16 -0
- package/Types/ItemData/ContentResizeMode.d.ts +1 -0
- package/Types/ItemData/ContentResizeMode.js +1 -0
- package/Types/ItemData/IArchedTextItemData.d.ts +32 -0
- package/Types/ItemData/IArchedTextItemData.js +1 -0
- package/Types/ItemData/IBarcodeItemData.d.ts +60 -0
- package/Types/ItemData/IBarcodeItemData.js +1 -0
- package/Types/ItemData/IBarcodeOptions.d.ts +35 -0
- package/Types/ItemData/IBarcodeOptions.js +1 -0
- package/Types/ItemData/IBarcodePermissionsData.d.ts +27 -0
- package/Types/ItemData/IBarcodePermissionsData.js +1 -0
- package/Types/ItemData/IBaseTextItemData.d.ts +71 -0
- package/Types/ItemData/IBaseTextItemData.js +1 -0
- package/Types/ItemData/IBoundedTextItemData.d.ts +44 -0
- package/Types/ItemData/IBoundedTextItemData.js +1 -0
- package/Types/ItemData/IClipartItemData.d.ts +21 -0
- package/Types/ItemData/IClipartItemData.js +1 -0
- package/Types/ItemData/IContentItemData.d.ts +10 -0
- package/Types/ItemData/IContentItemData.js +1 -0
- package/Types/ItemData/IContentPermissionsData.d.ts +35 -0
- package/Types/ItemData/IContentPermissionsData.js +1 -0
- package/Types/ItemData/IEllipseItemData.d.ts +28 -0
- package/Types/ItemData/IEllipseItemData.js +1 -0
- package/Types/ItemData/IFontSettingsData.d.ts +33 -0
- package/Types/ItemData/IFontSettingsData.js +1 -0
- package/Types/ItemData/IGroupItemData.d.ts +21 -0
- package/Types/ItemData/IGroupItemData.js +1 -0
- package/Types/ItemData/IImageItemData.d.ts +37 -0
- package/Types/ItemData/IImageItemData.js +1 -0
- package/Types/ItemData/IImagePermissionsData.d.ts +25 -0
- package/Types/ItemData/IImagePermissionsData.js +1 -0
- package/Types/ItemData/IItemData.d.ts +65 -0
- package/Types/ItemData/IItemData.js +1 -0
- package/Types/ItemData/IItemPermissionsData.d.ts +28 -0
- package/Types/ItemData/IItemPermissionsData.js +1 -0
- package/Types/ItemData/IItemToolbarPermissionsData.d.ts +34 -0
- package/Types/ItemData/IItemToolbarPermissionsData.js +1 -0
- package/Types/ItemData/ILineItemData.d.ts +39 -0
- package/Types/ItemData/ILineItemData.js +1 -0
- package/Types/ItemData/ILinePermissionsData.d.ts +23 -0
- package/Types/ItemData/ILinePermissionsData.js +1 -0
- package/Types/ItemData/ILocationData.d.ts +43 -0
- package/Types/ItemData/ILocationData.js +1 -0
- package/Types/ItemData/IManipulationPermissionsData.d.ts +35 -0
- package/Types/ItemData/IManipulationPermissionsData.js +1 -0
- package/Types/ItemData/IParagraphSettingsData.d.ts +32 -0
- package/Types/ItemData/IParagraphSettingsData.js +1 -0
- package/Types/ItemData/IPlaceholderItemData.d.ts +50 -0
- package/Types/ItemData/IPlaceholderItemData.js +1 -0
- package/Types/ItemData/IPlaceholderPermissionsData.d.ts +24 -0
- package/Types/ItemData/IPlaceholderPermissionsData.js +1 -0
- package/Types/ItemData/IPlainTextItemData.d.ts +27 -0
- package/Types/ItemData/IPlainTextItemData.js +1 -0
- package/Types/ItemData/IPointF.d.ts +9 -0
- package/Types/ItemData/IPointF.js +1 -0
- package/Types/ItemData/IRectangleItemData.d.ts +29 -0
- package/Types/ItemData/IRectangleItemData.js +1 -0
- package/Types/ItemData/IResizeGripsPermissions.d.ts +26 -0
- package/Types/ItemData/IResizeGripsPermissions.js +1 -0
- package/Types/ItemData/IRichTextData.d.ts +26 -0
- package/Types/ItemData/IRichTextData.js +1 -0
- package/Types/ItemData/IShapeItemData.d.ts +37 -0
- package/Types/ItemData/IShapeItemData.js +1 -0
- package/Types/ItemData/IShapePermissionsData.d.ts +25 -0
- package/Types/ItemData/IShapePermissionsData.js +1 -0
- package/Types/ItemData/ITextItemData.d.ts +30 -0
- package/Types/ItemData/ITextItemData.js +1 -0
- package/Types/ItemData/ITextPermissionsData.d.ts +40 -0
- package/Types/ItemData/ITextPermissionsData.js +1 -0
- package/Types/ItemData/IThemeBindingData.d.ts +43 -0
- package/Types/ItemData/IThemeBindingData.js +1 -0
- package/Types/ItemData/IViolationSettings.d.ts +29 -0
- package/Types/ItemData/IViolationSettings.js +1 -0
- package/Types/ItemData/IVisualizationPermissionsData.d.ts +22 -0
- package/Types/ItemData/IVisualizationPermissionsData.js +1 -0
- package/Types/ItemData/ImageEffect.d.ts +1 -0
- package/Types/ItemData/ImageEffect.js +1 -0
- package/Types/ItemData/OverflowStrategy.d.ts +4 -0
- package/Types/ItemData/OverflowStrategy.js +1 -0
- package/Types/ItemData/ResizeGripsCorner.d.ts +3 -0
- package/Types/ItemData/ResizeGripsCorner.js +1 -0
- package/Types/ItemData/ShrinkMode.d.ts +4 -0
- package/Types/ItemData/ShrinkMode.js +1 -0
- package/Types/ItemData/VerticalAlignmentType.d.ts +4 -0
- package/Types/ItemData/VerticalAlignmentType.js +1 -0
- package/Types/ItemData/WrappingMode.d.ts +1 -0
- package/Types/ItemData/WrappingMode.js +1 -0
- package/Types/ItemData/index.d.ts +45 -0
- package/Types/ItemData/index.js +45 -0
- package/Types/ItemType.d.ts +18 -0
- package/Types/ItemType.js +19 -0
- package/Types/OriginPointType.d.ts +19 -0
- package/Types/OriginPointType.js +18 -0
- package/Types/ResizeRectangleType.d.ts +6 -0
- package/Types/ResizeRectangleType.js +7 -0
- package/Types/RotationType.d.ts +7 -0
- package/Types/RotationType.js +8 -0
- package/Types/index.d.ts +9 -0
- package/Types/index.js +9 -0
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/license.md +10 -0
- package/package.json +1 -0
- package/readme.md +1 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IBaseTextItemData } from "./IBaseTextItemData";
|
|
2
|
+
/**
|
|
3
|
+
* A structure defining the default parameters of arched text.
|
|
4
|
+
* @remarks You can apply these parameters to the `archedText` object through either **clientConfig.json** or {@link https://customerscanvas.com/dev/editors/iframe-api/reference/design-editor-iframe/iconfiguration.html|IConfiguration}.
|
|
5
|
+
* @example
|
|
6
|
+
* ```json
|
|
7
|
+
* {
|
|
8
|
+
* "defaultItemsConfig": {
|
|
9
|
+
* "archedText": {
|
|
10
|
+
* "font": {
|
|
11
|
+
* "postScriptName": "Roboto-Regular",
|
|
12
|
+
* "size": 24
|
|
13
|
+
* },
|
|
14
|
+
* "text": "Arched text",
|
|
15
|
+
* "color": "cmyk(0%, 0%, 0%, 100%, 100%)",
|
|
16
|
+
* "bend": 0.7,
|
|
17
|
+
* "location": {
|
|
18
|
+
* "x": "50%",
|
|
19
|
+
* "y": "50%",
|
|
20
|
+
* "originX": "center",
|
|
21
|
+
* "originY": "center"
|
|
22
|
+
* }
|
|
23
|
+
* }
|
|
24
|
+
* }
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
export interface IArchedTextItemData<TTextAlignment, TStrokeSettings, TShadowSettings> extends IBaseTextItemData<TTextAlignment, TStrokeSettings, TShadowSettings> {
|
|
30
|
+
bend?: number;
|
|
31
|
+
warp?: boolean;
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { BarcodeContentType } from "./BarcodeContentType";
|
|
2
|
+
import { IBarcodeOptions } from "./IBarcodeOptions";
|
|
3
|
+
import { IBarcodePermissionsData } from "./IBarcodePermissionsData";
|
|
4
|
+
import { IImageItemData } from "./IImageItemData";
|
|
5
|
+
/**
|
|
6
|
+
* A structure defining the default parameters of barcodes.
|
|
7
|
+
* @example The following example illustrates how you can enable two buttons in the Toolbox: the first one opens the standard **QrCode** dialog box, while the second custom button adds a predefined QR code to the canvas.
|
|
8
|
+
* ```json
|
|
9
|
+
* {
|
|
10
|
+
* "widgets": {
|
|
11
|
+
* "Toolbox": {
|
|
12
|
+
* "buttons": [
|
|
13
|
+
* "QrCode",
|
|
14
|
+
* {
|
|
15
|
+
* "action": "CustomBarcode",
|
|
16
|
+
* "iconClass": "cc-icon-qr-code",
|
|
17
|
+
* "itemConfig": {
|
|
18
|
+
* "barcodeContent": {
|
|
19
|
+
* "barcodeFormat": "QrUrl",
|
|
20
|
+
* "url": "example.com"
|
|
21
|
+
* },
|
|
22
|
+
* "name": "Custom barcode",
|
|
23
|
+
* "color": "rgb(255,0,0)",
|
|
24
|
+
* "width": "100",
|
|
25
|
+
* "location": {
|
|
26
|
+
* "originX": "left",
|
|
27
|
+
* "originY": "bottom",
|
|
28
|
+
* "x": "0%",
|
|
29
|
+
* "y": "100%"
|
|
30
|
+
* },
|
|
31
|
+
* "barcodeOptions": {
|
|
32
|
+
* "margin": 0
|
|
33
|
+
* },
|
|
34
|
+
* "manipulationPermissions": {
|
|
35
|
+
* "allowMoveHorizontal": false,
|
|
36
|
+
* "allowMoveVertical": false,
|
|
37
|
+
* "resizeGrips": {
|
|
38
|
+
* "edge": false,
|
|
39
|
+
* "corner": []
|
|
40
|
+
* }
|
|
41
|
+
* }
|
|
42
|
+
* }
|
|
43
|
+
* }
|
|
44
|
+
* ]
|
|
45
|
+
* }
|
|
46
|
+
* }
|
|
47
|
+
* }
|
|
48
|
+
* ```
|
|
49
|
+
* @public
|
|
50
|
+
*/
|
|
51
|
+
export interface IBarcodeItemData<TOverlayEffect, TBarcodeFormat, TBarcodeSubType> extends IImageItemData<TOverlayEffect> {
|
|
52
|
+
/** The content of barcodes. */
|
|
53
|
+
barcodeContent?: BarcodeContentType<TBarcodeFormat, TBarcodeSubType>;
|
|
54
|
+
/** Defines permissions for barcodes. */
|
|
55
|
+
barcodePermissions?: IBarcodePermissionsData;
|
|
56
|
+
/** Defines the barcode color. The default value is `"rgb(0, 0, 0)"`. */
|
|
57
|
+
color?: string;
|
|
58
|
+
/** Defines encoding options. */
|
|
59
|
+
barcodeOptions?: IBarcodeOptions;
|
|
60
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A structure defining the barcode options.
|
|
3
|
+
* @example
|
|
4
|
+
* ```json
|
|
5
|
+
* {
|
|
6
|
+
* "defaultItemsConfig": {
|
|
7
|
+
* "barcode": {
|
|
8
|
+
* "barcodeOptions": {
|
|
9
|
+
* "margin": 0
|
|
10
|
+
* }
|
|
11
|
+
* }
|
|
12
|
+
* }
|
|
13
|
+
* }
|
|
14
|
+
* ```
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
export interface IBarcodeOptions {
|
|
18
|
+
/** Specifies a margin, in pixels. This margin differs for barcode formats, for example, it controls the space before and after the barcode horizontally for linear formats. */
|
|
19
|
+
margin?: number;
|
|
20
|
+
/** If `true`, the image is a pure monochrome image of a barcode. */
|
|
21
|
+
pureBarcode?: boolean;
|
|
22
|
+
errorCorrection?: string;
|
|
23
|
+
/** Specifies what character encoding to use when decoding. */
|
|
24
|
+
characterSet?: string;
|
|
25
|
+
pdf417Compact?: boolean;
|
|
26
|
+
pdf417Compaction?: string;
|
|
27
|
+
pdf417Dimensions?: {};
|
|
28
|
+
disableEci?: boolean;
|
|
29
|
+
code128ForceCodesetB?: boolean;
|
|
30
|
+
aztecLayers?: number;
|
|
31
|
+
/** The version of QR code to be encoded, in the range [1, 40]. */
|
|
32
|
+
qrVersion?: number;
|
|
33
|
+
xDimension?: number;
|
|
34
|
+
databarExpandedSegments?: number;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A structure defining the barcode permissions.
|
|
3
|
+
* @example
|
|
4
|
+
* ```json
|
|
5
|
+
* {
|
|
6
|
+
* "defaultItemsConfig": {
|
|
7
|
+
* "placeholder": {
|
|
8
|
+
* "contentPermissions": {
|
|
9
|
+
* "barcodePermissions": {
|
|
10
|
+
* "allowChangeBarcodeContent": false,
|
|
11
|
+
* "allowChangeBarcodeType": false
|
|
12
|
+
* }
|
|
13
|
+
* }
|
|
14
|
+
* }
|
|
15
|
+
* }
|
|
16
|
+
* }
|
|
17
|
+
* ```
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
export interface IBarcodePermissionsData {
|
|
21
|
+
/** Allows your users to change the barcode type in a placeholder. The default value is `false`. */
|
|
22
|
+
allowChangeBarcodeType?: boolean;
|
|
23
|
+
/** Allows your users to change the barcode content. The default value is `true`. */
|
|
24
|
+
allowChangeBarcodeContent?: boolean;
|
|
25
|
+
/** Allows your users to change the barcode color. The default value is `true`. */
|
|
26
|
+
allowChangeBarcodeColor?: boolean;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { IContentItemData } from "./IContentItemData";
|
|
2
|
+
import { IFontSettingsData } from "./IFontSettingsData";
|
|
3
|
+
import { ITextPermissionsData } from "./ITextPermissionsData";
|
|
4
|
+
/**
|
|
5
|
+
* A structure defining the basic text parameters.
|
|
6
|
+
* @example
|
|
7
|
+
* ```json
|
|
8
|
+
* {
|
|
9
|
+
* "defaultItemsConfig": {
|
|
10
|
+
* "text": {
|
|
11
|
+
* "font": {
|
|
12
|
+
* "postScriptName": "Impact",
|
|
13
|
+
* "size": 33,
|
|
14
|
+
* "fauxBold": true,
|
|
15
|
+
* "fauxItalic": true
|
|
16
|
+
* },
|
|
17
|
+
* "color": "rgb(30,30,30)",
|
|
18
|
+
* "shadow": {
|
|
19
|
+
* "color": "rgb(255,0,0)",
|
|
20
|
+
* "size": 0.4,
|
|
21
|
+
* "angle": 45,
|
|
22
|
+
* "distance": 2
|
|
23
|
+
* },
|
|
24
|
+
* "stroke": {
|
|
25
|
+
* "size": 0.3
|
|
26
|
+
* },
|
|
27
|
+
* "overflowStrategy": "FitToWidth",
|
|
28
|
+
* "textPermissions": {
|
|
29
|
+
* "allowChangeFontColor": false,
|
|
30
|
+
* "allowChangeShadow": false,
|
|
31
|
+
* "allowChangeStroke": false
|
|
32
|
+
* }
|
|
33
|
+
* }
|
|
34
|
+
* }
|
|
35
|
+
* }
|
|
36
|
+
* ```
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
export interface IBaseTextItemData<TTextAlignment, TStrokeSettings, TShadowSettings> extends IContentItemData {
|
|
40
|
+
/** The default content for new text elements. It is an empty string for text with rich formatting and `"Text"` for plain text. */
|
|
41
|
+
text?: string;
|
|
42
|
+
/** The font parameters. */
|
|
43
|
+
font?: IFontSettingsData;
|
|
44
|
+
/** The text alignment. */
|
|
45
|
+
alignment?: TTextAlignment;
|
|
46
|
+
/** Enables the underline. The default value is `false`. */
|
|
47
|
+
underline?: boolean;
|
|
48
|
+
/** The text color. The default value is `"rgba(0,0,0,1)"`. */
|
|
49
|
+
color?: string;
|
|
50
|
+
/** The spacing between characters, in points. The default value is `0`. */
|
|
51
|
+
tracking?: number;
|
|
52
|
+
/** The spacing between base lines, in points. */
|
|
53
|
+
leading?: number;
|
|
54
|
+
/** The spacing between base lines on proof images, in points. */
|
|
55
|
+
previewLeading?: number;
|
|
56
|
+
/** Allows you to scale text horizontally. The default value is `1`. */
|
|
57
|
+
horizontalScale?: number;
|
|
58
|
+
/** Allows you to scale text vertically. The default value is `1`. */
|
|
59
|
+
verticalScale?: number;
|
|
60
|
+
/** The text scaling on proof images. */
|
|
61
|
+
previewScale?: number;
|
|
62
|
+
/** The stroke parameters. */
|
|
63
|
+
stroke?: TStrokeSettings;
|
|
64
|
+
/** The shadow parameters. */
|
|
65
|
+
shadow?: TShadowSettings;
|
|
66
|
+
/** Defines permissions for new text elements. */
|
|
67
|
+
textPermissions?: ITextPermissionsData;
|
|
68
|
+
overlapLinesEnabled?: boolean;
|
|
69
|
+
checkTextCrop?: boolean;
|
|
70
|
+
overprintText?: boolean;
|
|
71
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { IBaseTextItemData } from "./IBaseTextItemData";
|
|
2
|
+
import { IParagraphSettingsData } from "./IParagraphSettingsData";
|
|
3
|
+
import { OverflowStrategy } from "./OverflowStrategy";
|
|
4
|
+
import { ShrinkMode } from "./ShrinkMode";
|
|
5
|
+
import { VerticalAlignmentType } from "./VerticalAlignmentType";
|
|
6
|
+
/**
|
|
7
|
+
* A structure defining the basic parameters of bounded text.
|
|
8
|
+
* @example
|
|
9
|
+
* ```json
|
|
10
|
+
* {
|
|
11
|
+
* "defaultItemsConfig": {
|
|
12
|
+
* "boundedText": {
|
|
13
|
+
* "isVertical": true,
|
|
14
|
+
* "verticalAlignment": "center",
|
|
15
|
+
* "overflowStrategy": "fitToWidth",
|
|
16
|
+
* "tracking": 12,
|
|
17
|
+
* "maxLineCount": 2,
|
|
18
|
+
* "maxLineLength": 20
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export interface IBoundedTextItemData<TTextAlignment, TStrokeSettings, TShadowSettings> extends IBaseTextItemData<TTextAlignment, TStrokeSettings, TShadowSettings> {
|
|
26
|
+
/** The spacing between an item and wrapping text, in points. The default value is `7`. */
|
|
27
|
+
wrappingMargin?: number;
|
|
28
|
+
/** The default parameters of paragraphs. */
|
|
29
|
+
paragraphSettings?: IParagraphSettingsData;
|
|
30
|
+
/** Defines how the vertical bounded text is aligned. The default value is `"top"`. */
|
|
31
|
+
verticalAlignment?: VerticalAlignmentType;
|
|
32
|
+
/** Limits the number of characters that the user can enter in the Rich text editor. By default, this number is not limited. */
|
|
33
|
+
characterLimit?: number;
|
|
34
|
+
/** Enables the vertical orientation of bounded text. The default value is `false`. */
|
|
35
|
+
isVertical?: boolean;
|
|
36
|
+
/** 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. */
|
|
37
|
+
maxLineLength?: number;
|
|
38
|
+
/** 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. */
|
|
39
|
+
maxLineCount?: number;
|
|
40
|
+
/** The copyfitting strategy applied to a bounded text element when it overflows. By default, this property is `"clip"`. */
|
|
41
|
+
overflowStrategy?: OverflowStrategy;
|
|
42
|
+
/** A mode defining how a bounded text element shrinks to its bounds when it overflows. By default, this property is `"size"`. */
|
|
43
|
+
textShrinkMode?: ShrinkMode;
|
|
44
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IGroupItemData } from "./IGroupItemData";
|
|
2
|
+
/**
|
|
3
|
+
* A structure containing parameters of clipart.
|
|
4
|
+
* @remarks For details, you can refer to the {@link https://customerscanvas.com/help/designers-manual/design-anatomy/groups.html|Group elements} topic.
|
|
5
|
+
* @example
|
|
6
|
+
* ```json
|
|
7
|
+
* {
|
|
8
|
+
* "defaultItemsConfig": {
|
|
9
|
+
* "clipart": {
|
|
10
|
+
* "manipulationPermissions": {
|
|
11
|
+
* "allowMoveHorizontal": false
|
|
12
|
+
* },
|
|
13
|
+
* "angle": 20
|
|
14
|
+
* }
|
|
15
|
+
* }
|
|
16
|
+
* }
|
|
17
|
+
* ```
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
export interface IClipartItemData extends IGroupItemData {
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IRectangleItemData } from "./IRectangleItemData";
|
|
2
|
+
/**
|
|
3
|
+
* A structure defining the common parameters of text elements and images.
|
|
4
|
+
*/
|
|
5
|
+
export interface IContentItemData extends IRectangleItemData {
|
|
6
|
+
/** The mask opacity of an item. The default value is `0.45`. */
|
|
7
|
+
maskOpacity?: number;
|
|
8
|
+
/** The fill color. The default value is `"rgba(0, 0, 0, 0)"`. */
|
|
9
|
+
fillColor?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { IBarcodePermissionsData } from "./IBarcodePermissionsData";
|
|
2
|
+
import { IImagePermissionsData } from "./IImagePermissionsData";
|
|
3
|
+
/**
|
|
4
|
+
* A structure defining permissions for the placeholder's content.
|
|
5
|
+
* @example
|
|
6
|
+
* ```json
|
|
7
|
+
* {
|
|
8
|
+
* "defaultItemsConfig": {
|
|
9
|
+
* "placeholder": {
|
|
10
|
+
* "placeholderPermissions": {
|
|
11
|
+
* "allowEditContent": true,
|
|
12
|
+
* "showSelectButton": true,
|
|
13
|
+
* "showHandleButton": true
|
|
14
|
+
* },
|
|
15
|
+
* "contentPermissions": {
|
|
16
|
+
* "imagePermissions": {
|
|
17
|
+
* "allowChangeImage": true,
|
|
18
|
+
* "allowEditImage": true
|
|
19
|
+
* },
|
|
20
|
+
* "barcodePermissions": {
|
|
21
|
+
* "allowChangeBarcodeType": true
|
|
22
|
+
* }
|
|
23
|
+
* }
|
|
24
|
+
* }
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
* ```
|
|
28
|
+
* @public
|
|
29
|
+
*/
|
|
30
|
+
export interface IContentPermissionsData {
|
|
31
|
+
/** Defines permissions for the content of image placeholders. */
|
|
32
|
+
imagePermissions?: IImagePermissionsData;
|
|
33
|
+
/** Defines permissions for the content of barcode placeholders. */
|
|
34
|
+
barcodePermissions?: IBarcodePermissionsData;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IShapeItemData } from "./IShapeItemData";
|
|
2
|
+
/**
|
|
3
|
+
* A structure defining the default parameters of ellipses.
|
|
4
|
+
* @remarks You can apply these parameters to the `ellipse` object through either **clientConfig.json** or {@link https://customerscanvas.com/dev/editors/iframe-api/reference/design-editor-iframe/iconfiguration.html|IConfiguration}.
|
|
5
|
+
* @example
|
|
6
|
+
* ```json
|
|
7
|
+
* {
|
|
8
|
+
* "defaultItemsConfig": {
|
|
9
|
+
* "ellipse": {
|
|
10
|
+
* "borderWidth": 2,
|
|
11
|
+
* "borderColor": "rgba(155,0,0,0.55)",
|
|
12
|
+
* "textWrappingMode": "tight",
|
|
13
|
+
* "shapePermissions": {
|
|
14
|
+
* "allowChangeBorderWidth": false
|
|
15
|
+
* },
|
|
16
|
+
* "location": {
|
|
17
|
+
* "x": "50%", "y": "0%",
|
|
18
|
+
* "originX": "right",
|
|
19
|
+
* "originY": "top"
|
|
20
|
+
* }
|
|
21
|
+
* }
|
|
22
|
+
* }
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
export interface IEllipseItemData extends IShapeItemData {
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A configuration of font settings.
|
|
3
|
+
* @example
|
|
4
|
+
* ```json
|
|
5
|
+
* {
|
|
6
|
+
* "defaultItemsConfig": {
|
|
7
|
+
* "text": {
|
|
8
|
+
* "font": {
|
|
9
|
+
* "postScriptName": "Impact",
|
|
10
|
+
* "size": 33,
|
|
11
|
+
* "fauxBold": true,
|
|
12
|
+
* "fauxItalic": true
|
|
13
|
+
* },
|
|
14
|
+
* "color": "rgb(30,30,30)"
|
|
15
|
+
* }
|
|
16
|
+
* }
|
|
17
|
+
* }
|
|
18
|
+
* ```
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export interface IFontSettingsData {
|
|
22
|
+
previewSize?: number | string;
|
|
23
|
+
/** The font name. The default value is `"Roboto-Regular"`. */
|
|
24
|
+
postScriptName?: string;
|
|
25
|
+
/** The font size in points (for example, `8`) or as a percentage of the height of the print area (for example, `"15%"`). The default value is `10` pt. */
|
|
26
|
+
size?: number | string;
|
|
27
|
+
/** Enables the faux bold style for text. The default value is `false`. */
|
|
28
|
+
fauxBold?: boolean;
|
|
29
|
+
/** Enables the faux italic style for text. The default value is `false`. */
|
|
30
|
+
fauxItalic?: boolean;
|
|
31
|
+
/** Enables the all caps style for text. The default value is `false`. */
|
|
32
|
+
allCaps?: boolean;
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IItemData } from "./IItemData";
|
|
2
|
+
/**
|
|
3
|
+
* A structure containing parameters of groups.
|
|
4
|
+
* @remarks For details, you can refer to the {@link https://customerscanvas.com/help/designers-manual/design-anatomy/groups.html|Group elements} topic.
|
|
5
|
+
* @example
|
|
6
|
+
* ```json
|
|
7
|
+
* {
|
|
8
|
+
* "defaultItemsConfig": {
|
|
9
|
+
* "group": {
|
|
10
|
+
* "manipulationPermissions": {
|
|
11
|
+
* "allowMoveHorizontal": false
|
|
12
|
+
* },
|
|
13
|
+
* "width": "100"
|
|
14
|
+
* }
|
|
15
|
+
* }
|
|
16
|
+
* }
|
|
17
|
+
* ```
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
export interface IGroupItemData extends IItemData {
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { IContentItemData } from "./IContentItemData";
|
|
2
|
+
import { IImagePermissionsData } from "./IImagePermissionsData";
|
|
3
|
+
import { ImageEffect } from "./ImageEffect";
|
|
4
|
+
/**
|
|
5
|
+
* A structure containing default parameters of images.
|
|
6
|
+
* @remarks You can apply these parameters to the `image` object through either **clientConfig.json** or {@link https://customerscanvas.com/dev/editors/iframe-api/reference/design-editor-iframe/iconfiguration.html|IConfiguration}.
|
|
7
|
+
* @example The following example shows how you can add image placeholders to the canvas and disallow changing of the z-order for them.
|
|
8
|
+
* ```json
|
|
9
|
+
* {
|
|
10
|
+
* "defaultItemsConfig": {
|
|
11
|
+
* "image": {
|
|
12
|
+
* "name": "placeholder",
|
|
13
|
+
* "addImageAsPlaceholder": true,
|
|
14
|
+
* "overlayColor": "rgb(0,255,0)",
|
|
15
|
+
* "itemPermissions": {
|
|
16
|
+
* "allowZOrderChange": false
|
|
17
|
+
* }
|
|
18
|
+
* }
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
export interface IImageItemData<TOverlayEffect> extends IContentItemData {
|
|
25
|
+
/** Defines permissions for images being added to the canvas. */
|
|
26
|
+
imagePermissions?: IImagePermissionsData;
|
|
27
|
+
/** Allows adding images to the canvas as placeholders. The default value is `false`. */
|
|
28
|
+
addImageAsPlaceholder?: boolean;
|
|
29
|
+
/** _Deprecated, use `overlayEffect` instead_. */
|
|
30
|
+
overlayColor?: string;
|
|
31
|
+
/** Defines an overlay color for images being added to the canvas. */
|
|
32
|
+
overlayEffect?: TOverlayEffect;
|
|
33
|
+
/** A link to the default image. */
|
|
34
|
+
imageUrl?: string;
|
|
35
|
+
/** Defines an effect for images being added to the canvas. */
|
|
36
|
+
effect?: ImageEffect;
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A structure defining the image permissions.
|
|
3
|
+
* @example The following example shows how you can disallow for editing and selecting other images after adding an image to the canvas.
|
|
4
|
+
* ```json
|
|
5
|
+
* {
|
|
6
|
+
* "defaultItemsConfig": {
|
|
7
|
+
* "image": {
|
|
8
|
+
* "imagePermissions": {
|
|
9
|
+
* "allowChangeImage": false,
|
|
10
|
+
* "allowEditImage": false
|
|
11
|
+
* }
|
|
12
|
+
* }
|
|
13
|
+
* }
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
export interface IImagePermissionsData {
|
|
19
|
+
/** Allows your users to change images. This property enables the **Select image** command in menus. Also, if it is `false`, your users cannot change images by double-clicking. The default value is `true`. */
|
|
20
|
+
allowChangeImage?: boolean;
|
|
21
|
+
/** Allows your users to open the Image Editor. This property enables the **Edit** command. The default value is `true`. */
|
|
22
|
+
allowEditImage?: boolean;
|
|
23
|
+
/** Allows your users to keep theoverlay color. The default value is `true`. */
|
|
24
|
+
allowKeepOverlayColor?: boolean;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { BlendMode } from "./BlendMode";
|
|
2
|
+
import { IItemPermissionsData } from "./IItemPermissionsData";
|
|
3
|
+
import { ILocationData } from "./ILocationData";
|
|
4
|
+
import { IManipulationPermissionsData } from "./IManipulationPermissionsData";
|
|
5
|
+
import { IThemeBindingData } from "./IThemeBindingData";
|
|
6
|
+
import { IViolationSettings } from "./IViolationSettings";
|
|
7
|
+
import { IVisualizationPermissionsData } from "./IVisualizationPermissionsData";
|
|
8
|
+
import { WrappingMode } from "./WrappingMode";
|
|
9
|
+
/**
|
|
10
|
+
* A structure containing parameters of custom design elements.
|
|
11
|
+
* @remarks For details, you can refer to the {@link https://customerscanvas.com/dev/editors/iframe-api/editor-configuration/toolbox.html|Toolbox} topic.
|
|
12
|
+
* @example
|
|
13
|
+
* ```js
|
|
14
|
+
* var configuration = {
|
|
15
|
+
* angle: 90,
|
|
16
|
+
* opacity: 0.5,
|
|
17
|
+
* textWrappingMode: "tight",
|
|
18
|
+
* themeBinding: {
|
|
19
|
+
* styles: [ "DimImages" ]
|
|
20
|
+
* },
|
|
21
|
+
* manipulationPermissions: {
|
|
22
|
+
* allowMoveHorizontal: false,
|
|
23
|
+
* allowMoveVertical: false
|
|
24
|
+
* },
|
|
25
|
+
* itemPermissions: {
|
|
26
|
+
* allowZOrderChange: false,
|
|
27
|
+
* allowOpacityChange: true
|
|
28
|
+
* }
|
|
29
|
+
* };
|
|
30
|
+
*
|
|
31
|
+
* CustomersCanvas.IframeApi.loadEditor(iframe, productDefinition, configuration);
|
|
32
|
+
* ```
|
|
33
|
+
* @public
|
|
34
|
+
*/
|
|
35
|
+
export interface IItemData {
|
|
36
|
+
/** A structure defining the manipulation permissions for design elements. */
|
|
37
|
+
manipulationPermissions?: IManipulationPermissionsData;
|
|
38
|
+
/** A structure defining the visualization permissions for design elements. */
|
|
39
|
+
visualizationPermissions?: IVisualizationPermissionsData;
|
|
40
|
+
/** A structure defining the Item Menu and the Floating item toolbar for design elements. */
|
|
41
|
+
itemPermissions?: IItemPermissionsData;
|
|
42
|
+
/** A structure defining the design validation parameters and warnings. */
|
|
43
|
+
violationSettings?: IViolationSettings;
|
|
44
|
+
/** An angle, which design elements are rotated to. By default, this value is `0`. */
|
|
45
|
+
angle?: number;
|
|
46
|
+
/** A wrapping mode that applies to wrap text around design elements, one of `"none"`, `"square"`, or `"tight"`. By default, it is `"none"`. */
|
|
47
|
+
textWrappingMode?: WrappingMode;
|
|
48
|
+
/** An opacity that applies to design elements. This value can be from `0` to `1`. By default, it is `1`. */
|
|
49
|
+
opacity?: number;
|
|
50
|
+
/** The coordinates of design elements being added to the canvas. By default, you can add them to the center of your product. */
|
|
51
|
+
location?: ILocationData;
|
|
52
|
+
/** A style or a color that applies to new design elements. */
|
|
53
|
+
themeBinding?: IThemeBindingData;
|
|
54
|
+
/** The name of design elements being added to the canvas. */
|
|
55
|
+
name?: string;
|
|
56
|
+
/** Marks a design element as a variable item. The default value is `false`. */
|
|
57
|
+
isVariable?: boolean;
|
|
58
|
+
/** The width of design elements being added to the canvas, in points or percent. */
|
|
59
|
+
width?: string | number;
|
|
60
|
+
/** 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`. */
|
|
61
|
+
height?: string | number;
|
|
62
|
+
/** A blend mode that applies to design elements being added to the canvas. */
|
|
63
|
+
blendMode?: BlendMode;
|
|
64
|
+
adjustSize?: boolean;
|
|
65
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IItemToolbarPermissionsData } from "./IItemToolbarPermissionsData";
|
|
2
|
+
/**
|
|
3
|
+
* A structure defining common permissions for design elements.
|
|
4
|
+
* @example
|
|
5
|
+
* ```json
|
|
6
|
+
* {
|
|
7
|
+
* "defaultItemsConfig": {
|
|
8
|
+
* "image": {
|
|
9
|
+
* "itemPermissions": {
|
|
10
|
+
* "allowZOrderChange": false,
|
|
11
|
+
* "allowOpacityChange": false
|
|
12
|
+
* }
|
|
13
|
+
* }
|
|
14
|
+
* }
|
|
15
|
+
* }
|
|
16
|
+
* ```
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export interface IItemPermissionsData {
|
|
20
|
+
/** Enables buttons for changing the z-order of design elements. */
|
|
21
|
+
allowZOrderChange?: boolean;
|
|
22
|
+
/** Enables buttons for changing the opacity of design elements. */
|
|
23
|
+
allowOpacityChange?: boolean;
|
|
24
|
+
/** Allows for removing and keeping design elements when changing layouts. */
|
|
25
|
+
allowRemoveOnLayoutChange?: boolean;
|
|
26
|
+
/** Configures the **Floating item toolbar** for design elements. You can enable the **Select Image**, **Edit**, and **Delete** buttons. */
|
|
27
|
+
itemToolbarPermissions?: IItemToolbarPermissionsData;
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|