@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,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A structure containing the configuration of the Floating item toolbar.
|
|
3
|
+
* @example To enable the **Floating item toolbar** on the canvas, set the `floatingItemToolbarEnabled` property to `true`. For details, see the {@link https://customerscanvas.com/dev/editors/iframe-api/editor-configuration/ui-overview.html|UI overview} topic.
|
|
4
|
+
* ```json
|
|
5
|
+
* {
|
|
6
|
+
* "defaultItemsConfig": {
|
|
7
|
+
* "image": {
|
|
8
|
+
* "itemPermissions": {
|
|
9
|
+
* "allowZOrderChange": false,
|
|
10
|
+
* "itemToolbarPermissions": {
|
|
11
|
+
* "showEditButton": true,
|
|
12
|
+
* "showDeleteButton": false,
|
|
13
|
+
* "showSelectButton": false
|
|
14
|
+
* }
|
|
15
|
+
* }
|
|
16
|
+
* }
|
|
17
|
+
* },
|
|
18
|
+
* "canvas": {
|
|
19
|
+
* "floatingItemToolbarEnabled": true
|
|
20
|
+
* }
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export interface IItemToolbarPermissionsData {
|
|
26
|
+
/** Enables the **Delete** button. The default value is `true`. */
|
|
27
|
+
showDeleteButton?: boolean;
|
|
28
|
+
/** Enables the **Edit** button. The default value is `true`. */
|
|
29
|
+
showEditButton?: boolean;
|
|
30
|
+
/** Enables the **Select Image** button. The default value is `true`. */
|
|
31
|
+
showSelectButton?: boolean;
|
|
32
|
+
/** Enables the **Handle** button. The default value is `true`. */
|
|
33
|
+
showHandleButton?: boolean;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { IItemData } from "./IItemData";
|
|
2
|
+
import { ILinePermissionsData } from "./ILinePermissionsData";
|
|
3
|
+
import { IPointF } from "./IPointF";
|
|
4
|
+
/**
|
|
5
|
+
* A structure containing default parameters of lines.
|
|
6
|
+
* @remarks You can apply these parameters to the `line` object through either **clientConfig.json** or {@link https://customerscanvas.com/dev/editors/iframe-api/reference/design-editor-iframe/iconfiguration.html|IConfiguration}.
|
|
7
|
+
* @example
|
|
8
|
+
* ```json
|
|
9
|
+
* {
|
|
10
|
+
* "defaultItemsConfig": {
|
|
11
|
+
* "line": {
|
|
12
|
+
* "width": 8,
|
|
13
|
+
* "color": "rgb(255,0,0)",
|
|
14
|
+
* "point0": { "x": 10, "y": 10 },
|
|
15
|
+
* "point1": { "x": 100, "y": 10 },
|
|
16
|
+
* "linePermissions": {
|
|
17
|
+
* "allowChangeLineWidth": false,
|
|
18
|
+
* "allowChangeLineColor": false
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* }
|
|
22
|
+
* }
|
|
23
|
+
* ```
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
export interface ILineItemData extends IItemData {
|
|
27
|
+
/** A default width of lines, in points. By default, this value is `1`. */
|
|
28
|
+
width?: number;
|
|
29
|
+
/** A default color of lines. By default, this value is `"rgba(0,0,0,1)"`. */
|
|
30
|
+
color?: string;
|
|
31
|
+
fixedWidth?: boolean;
|
|
32
|
+
/** A default start point of lines. */
|
|
33
|
+
point0?: IPointF;
|
|
34
|
+
/** A default end point of lines. */
|
|
35
|
+
point1?: IPointF;
|
|
36
|
+
/** A structure defining line permissions. */
|
|
37
|
+
linePermissions?: ILinePermissionsData;
|
|
38
|
+
overprintStroke?: boolean;
|
|
39
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A structure defining permissions for lines.
|
|
3
|
+
* @example
|
|
4
|
+
* ```json
|
|
5
|
+
* {
|
|
6
|
+
* "defaultItemsConfig": {
|
|
7
|
+
* "line": {
|
|
8
|
+
* "linePermissions": {
|
|
9
|
+
* "allowChangeLineWidth": false,
|
|
10
|
+
* "allowChangeLineColor": false
|
|
11
|
+
* }
|
|
12
|
+
* }
|
|
13
|
+
* }
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
export interface ILinePermissionsData {
|
|
19
|
+
/** Enables the **Line width** button in the Top toolbar. The default value is `true`. */
|
|
20
|
+
allowChangeLineWidth?: boolean;
|
|
21
|
+
/** Enables the **Line color** button in the Top toolbar. The default value is `true`. */
|
|
22
|
+
allowChangeLineColor?: boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { OriginPointType } from "../OriginPointType";
|
|
2
|
+
/**
|
|
3
|
+
* A structure defining the default location of design elements.
|
|
4
|
+
* @example For example, you can add a custom button to the Toolbox as follows:
|
|
5
|
+
* ```json
|
|
6
|
+
* {
|
|
7
|
+
* "widgets": {
|
|
8
|
+
* "Toolbox": {
|
|
9
|
+
* "buttons": [{
|
|
10
|
+
* "action": "CustomText",
|
|
11
|
+
* "iconClass": "cc-icon-add-text",
|
|
12
|
+
* "itemConfig": {
|
|
13
|
+
* "name": "CardID",
|
|
14
|
+
* "text": "1234 ABCD 5678",
|
|
15
|
+
* "color": "rgb(193,0,32)",
|
|
16
|
+
* "isVariable": true,
|
|
17
|
+
* "location": {
|
|
18
|
+
* "originX": "right",
|
|
19
|
+
* "originY": "top",
|
|
20
|
+
* "x": "50%",
|
|
21
|
+
* "y": "0%"
|
|
22
|
+
* },
|
|
23
|
+
* "textPermissions": {
|
|
24
|
+
* "allowChangeText": false
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
* }]
|
|
28
|
+
* }
|
|
29
|
+
* }
|
|
30
|
+
* }
|
|
31
|
+
* ```
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
export interface ILocationData {
|
|
35
|
+
/** The x coordinate, in either points or percent of available width. The default value is `0`, which is equivalent to the left edge. */
|
|
36
|
+
x?: string | number;
|
|
37
|
+
/** The y coordinate, in either points or percent of available height. The default value is `0`, which is equivalent to the bottom edge. */
|
|
38
|
+
y?: string | number;
|
|
39
|
+
/** The origin point for the x coordinate relative to a rectangle bounding this design element. Possible values are `"Left"`, `"Right"`, and `"Center"`. */
|
|
40
|
+
originX?: OriginPointType;
|
|
41
|
+
/** The origin point for the y coordinate relative to a rectangle bounding this design element. Possible values are `"Top"`, `"Bottom"`, and `"Center"`. */
|
|
42
|
+
originY?: OriginPointType;
|
|
43
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { IResizeGripsPermissions } from "./IResizeGripsPermissions";
|
|
2
|
+
/**
|
|
3
|
+
* A structure defining the manipulation permissions.
|
|
4
|
+
* @example You can prevent elements from moving horizontally and enable corner grips with the following config.
|
|
5
|
+
* ```json
|
|
6
|
+
* {
|
|
7
|
+
* "defaultItemsConfig": {
|
|
8
|
+
* "rectangle": {
|
|
9
|
+
* "manipulationPermissions": {
|
|
10
|
+
* "allowMoveHorizontal": false,
|
|
11
|
+
* "resizeGrips": {
|
|
12
|
+
* "edge": false,
|
|
13
|
+
* "corner": ["Proportional"]
|
|
14
|
+
* }
|
|
15
|
+
* }
|
|
16
|
+
* }
|
|
17
|
+
* }
|
|
18
|
+
* }
|
|
19
|
+
* ```
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
export interface IManipulationPermissionsData {
|
|
23
|
+
/** Allows deleting elements. The default value is `true`. */
|
|
24
|
+
allowDelete?: boolean;
|
|
25
|
+
/** Allows moving elements horizontally. The default value is `true`. */
|
|
26
|
+
allowMoveHorizontal?: boolean;
|
|
27
|
+
/** Allows moving elements vertically. The default value is `true`. */
|
|
28
|
+
allowMoveVertical?: boolean;
|
|
29
|
+
/** Allows rotating elements. The default value is `true`. */
|
|
30
|
+
allowRotate?: boolean;
|
|
31
|
+
/** Allows dragging the content of image placeholders when they have the `<PH><MAMH_f><MAMV_f>` markers. The default value is `true`. */
|
|
32
|
+
allowDragAndDrop?: boolean;
|
|
33
|
+
/** Enables the corner and side grips to resize elements. */
|
|
34
|
+
resizeGrips?: IResizeGripsPermissions;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A structure defining the paragraph parameters.
|
|
3
|
+
* @example
|
|
4
|
+
* ```json
|
|
5
|
+
* {
|
|
6
|
+
* "defaultItemsConfig": {
|
|
7
|
+
* "boundedText": {
|
|
8
|
+
* "paragraphSettings": {
|
|
9
|
+
* "rightIndent": 24,
|
|
10
|
+
* "leftIndent": 24,
|
|
11
|
+
* "spaceAfter": 8
|
|
12
|
+
* }
|
|
13
|
+
* }
|
|
14
|
+
* }
|
|
15
|
+
* }
|
|
16
|
+
* ```
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export interface IParagraphSettingsData {
|
|
20
|
+
/** Allows overlapping of lines in paragraphs. The default value is `false`. */
|
|
21
|
+
overlapLines?: boolean;
|
|
22
|
+
/** The right indent, in points. The default value is `0`. */
|
|
23
|
+
rightIndent?: number;
|
|
24
|
+
/** The left indent, in points. The default value is `0`. */
|
|
25
|
+
leftIndent?: number;
|
|
26
|
+
/** The space before paragraphs, in points. The default value is `0`. */
|
|
27
|
+
spaceBefore?: number;
|
|
28
|
+
/** The space after paragraphs, in points. The default value is `0`. */
|
|
29
|
+
spaceAfter?: number;
|
|
30
|
+
/** The distance of a paragraph's first line from the left margin, in points. The default value is `0`. */
|
|
31
|
+
firstLineIndent?: number;
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { BarcodeContentType } from "./BarcodeContentType";
|
|
2
|
+
import { ContentResizeMode } from "./ContentResizeMode";
|
|
3
|
+
import { IBarcodeOptions } from "./IBarcodeOptions";
|
|
4
|
+
import { IContentPermissionsData } from "./IContentPermissionsData";
|
|
5
|
+
import { IPlaceholderPermissionsData } from "./IPlaceholderPermissionsData";
|
|
6
|
+
import { IShapeItemData } from "./IShapeItemData";
|
|
7
|
+
/**
|
|
8
|
+
* A structure defining the default parameters of image placeholders.
|
|
9
|
+
* @remarks You can apply these parameters to the `placeholder` object through either **clientConfig.json** or {@link https://customerscanvas.com/dev/editors/iframe-api/reference/design-editor-iframe/iconfiguration.html|IConfiguration}.
|
|
10
|
+
* @example The following example shows how you can allow your users to select images only from the **europe_photos** subfolder of the public folder and disable the cover mode.
|
|
11
|
+
* ```json
|
|
12
|
+
* {
|
|
13
|
+
* "defaultItemsConfig": {
|
|
14
|
+
* "placeholder": {
|
|
15
|
+
* "allowedSubfolder": "europe_photos",
|
|
16
|
+
* "isCoverMode": false
|
|
17
|
+
* }
|
|
18
|
+
* }
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
export interface IPlaceholderItemData<TBarcodeFormat, TBarcodeSubType, TOverlayEffect> extends IShapeItemData {
|
|
24
|
+
/** Defines permissions for placeholders. */
|
|
25
|
+
placeholderPermissions?: IPlaceholderPermissionsData;
|
|
26
|
+
/** Defines permissions for the content of placeholders. */
|
|
27
|
+
contentPermissions?: IContentPermissionsData;
|
|
28
|
+
/** Defines the resize mode for image placeholders. It can be either `fill`, `fit`, or `original`. The default value is `fill`. */
|
|
29
|
+
contentResizeMode?: ContentResizeMode;
|
|
30
|
+
/** Defines the barcode color. The default value is `"rgb(0, 0, 0)"`. */
|
|
31
|
+
contentBarcodeColor?: string;
|
|
32
|
+
contentBarcodeOptions?: IBarcodeOptions;
|
|
33
|
+
contentOverlayEffect?: TOverlayEffect;
|
|
34
|
+
/** Defines the barcode format. */
|
|
35
|
+
barcodeFormat?: TBarcodeFormat;
|
|
36
|
+
/** Defines the barcode content type. */
|
|
37
|
+
barcodeContent?: BarcodeContentType<TBarcodeFormat, TBarcodeSubType>;
|
|
38
|
+
/** Enables the cover mode for image placeholders. The default value is `true`. */
|
|
39
|
+
isCoverMode?: boolean;
|
|
40
|
+
/** Maintains the size of stub images while resizing image placeholders. The default value is `false`. */
|
|
41
|
+
fixedStubContentSize?: boolean;
|
|
42
|
+
/** Defines a subfolder of `/assets/images/` from which the user can select images for placeholders. When you specify this property, the gallery shows images only from the corresponding public subfolder. By default, your users can select images from any gallery tab or public subfolder. */
|
|
43
|
+
allowedSubfolder?: string;
|
|
44
|
+
/** Defines an array of gallery tab names from which the user can select images for placeholders. For example, to open only the **Public files** and **My files** tabs for image placeholders, set **allowedTabs** to `["Public files", "My files"]`. By default, your users can select images from any gallery tab. */
|
|
45
|
+
allowedTabs?: string[];
|
|
46
|
+
/** Defines a link to an image used as the placeholder's content. You can define URLs, links to private images (`"user:someprivateimage.png"`), and images from the public gallery (`"public:logos/logo.png"`). */
|
|
47
|
+
contentImageUrl?: string;
|
|
48
|
+
/** Defines whether this is a stub placeholder. The default value is `false`. */
|
|
49
|
+
isStubContent?: boolean;
|
|
50
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A structure defining the image placeholder permissions.
|
|
3
|
+
* @example
|
|
4
|
+
* ```json
|
|
5
|
+
* {
|
|
6
|
+
* "defaultItemsConfig": {
|
|
7
|
+
* "placeholder": {
|
|
8
|
+
* "placeholderPermissions": {
|
|
9
|
+
* "allowEditContent": false
|
|
10
|
+
* }
|
|
11
|
+
* }
|
|
12
|
+
* }
|
|
13
|
+
* }
|
|
14
|
+
* ```
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
export interface IPlaceholderPermissionsData {
|
|
18
|
+
/** Allows editing content of image placeholders. If `false`, then the **Placeholder content scale** slider and the handle do not show. The default value is `true`. */
|
|
19
|
+
allowEditContent?: boolean;
|
|
20
|
+
/** Enables the **Select image** button for empty placeholders. The default value is `true`. */
|
|
21
|
+
showSelectButton?: boolean;
|
|
22
|
+
/** Enables the placeholder handle for a focused image placeholder. This handle allows you to manipulate the content of the placeholder. The default value is `true`. */
|
|
23
|
+
showHandleButton?: boolean;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IBaseTextItemData } from "./IBaseTextItemData";
|
|
2
|
+
/**
|
|
3
|
+
* A structure defining the basic parameters of plain text.
|
|
4
|
+
* @remarks You can apply these parameters to the `text` 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
|
+
* "text": {
|
|
10
|
+
* "font": {
|
|
11
|
+
* "postScriptName": "Impact",
|
|
12
|
+
* "size": 33,
|
|
13
|
+
* "fauxBold": true,
|
|
14
|
+
* "fauxItalic": true
|
|
15
|
+
* },
|
|
16
|
+
* "color": "rgb(0,255,255)",
|
|
17
|
+
* "verticalAlignment": "center",
|
|
18
|
+
* "isVertical": true
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export interface IPlainTextItemData<TTextAlignment, TStrokeSettings, TShadowSettings> extends IBaseTextItemData<TTextAlignment, TStrokeSettings, TShadowSettings> {
|
|
26
|
+
isVertical?: boolean;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IShapeItemData } from "./IShapeItemData";
|
|
2
|
+
/**
|
|
3
|
+
* A structure defining the default parameters of rectangles.
|
|
4
|
+
* @remarks You can apply these parameters to the `rectangle` 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
|
+
* "rectangle": {
|
|
10
|
+
* "borderWidth": 2,
|
|
11
|
+
* "borderColor": "rgba(155,0,0,0.55)",
|
|
12
|
+
* "fillColor": "cmyk(0%, 0%, 0%, 100%, 100%)",
|
|
13
|
+
* "shapePermissions": {
|
|
14
|
+
* "allowChangeBorderWidth": false
|
|
15
|
+
* },
|
|
16
|
+
* "location": {
|
|
17
|
+
* "originX": "center",
|
|
18
|
+
* "originY": "center",
|
|
19
|
+
* "x": "5%",
|
|
20
|
+
* "y": "5%"
|
|
21
|
+
* }
|
|
22
|
+
* }
|
|
23
|
+
* }
|
|
24
|
+
* }
|
|
25
|
+
* ```
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
export interface IRectangleItemData extends IShapeItemData {
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ResizeGripsCorner } from "./ResizeGripsCorner";
|
|
2
|
+
/**
|
|
3
|
+
* A structure defining the grips that appear on bounding rectangles.
|
|
4
|
+
* @example You can enable proportional resizing on dragging the corner grips and arbitrarily resizing on dragging the corner griips with holding the `Shift` key as follows:
|
|
5
|
+
* ```json
|
|
6
|
+
* {
|
|
7
|
+
* "defaultItemsConfig": {
|
|
8
|
+
* "image": {
|
|
9
|
+
* "manipulationPermissions": {
|
|
10
|
+
* "resizeGrips": {
|
|
11
|
+
* "corner": ["Proportional", "Arbitrary"],
|
|
12
|
+
* "edge": false
|
|
13
|
+
* }
|
|
14
|
+
* }
|
|
15
|
+
* }
|
|
16
|
+
* }
|
|
17
|
+
* }
|
|
18
|
+
* ```
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export interface IResizeGripsPermissions {
|
|
22
|
+
/** Enables side grips to resize elements arbitrarily. */
|
|
23
|
+
edge?: boolean;
|
|
24
|
+
/** An array of one or two elements enabling corner grips. The array elements are either `"Proportional"` or `"Arbitrary"`. The second element of the `corner` array defines how design elements should be resized when the user drags corner grips while holding down the Shift key. To disallow any rotation, pass an empty array. */
|
|
25
|
+
corner?: ResizeGripsCorner[];
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IBaseTextItemData } from "./IBaseTextItemData";
|
|
2
|
+
import { IBoundedTextItemData } from "./IBoundedTextItemData";
|
|
3
|
+
/**
|
|
4
|
+
* A structure defining the basic parameters of rich-formatted text.
|
|
5
|
+
* @example
|
|
6
|
+
* ```json
|
|
7
|
+
* {
|
|
8
|
+
* "defaultItemsConfig": {
|
|
9
|
+
* "boundedText": {
|
|
10
|
+
* "verticalAlignment": "center",
|
|
11
|
+
* "overflowStrategy": "fitToWidth",
|
|
12
|
+
* "tracking": 12,
|
|
13
|
+
* "maxLineCount": 2,
|
|
14
|
+
* "maxLineLength": 20,
|
|
15
|
+
* "paragraphSettings": {
|
|
16
|
+
* "rightIndent": 24,
|
|
17
|
+
* "leftIndent": 24
|
|
18
|
+
* }
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export interface IRichTextData<TTextAlignment, TStrokeSettings, TShadowSettings> extends IBaseTextItemData<TTextAlignment, TStrokeSettings, TShadowSettings>, IBoundedTextItemData<TTextAlignment, TStrokeSettings, TShadowSettings> {
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { IItemData } from "./IItemData";
|
|
2
|
+
import { IShapePermissionsData } from "./IShapePermissionsData";
|
|
3
|
+
/**
|
|
4
|
+
* A structure defining common shape parameters and parameters of SVG images imported in the Shape mode.
|
|
5
|
+
* @example
|
|
6
|
+
* ```json
|
|
7
|
+
* {
|
|
8
|
+
* "defaultItemsConfig": {
|
|
9
|
+
* "shape": {
|
|
10
|
+
* "borderWidth": 2,
|
|
11
|
+
* "fillColor": "cmyk(0%, 0%, 0%, 25%, 100%)",
|
|
12
|
+
* "shapePermissions": {
|
|
13
|
+
* "allowChangeBorderWidth": false
|
|
14
|
+
* },
|
|
15
|
+
* "location": {
|
|
16
|
+
* "x": "100%", "y": "100%",
|
|
17
|
+
* "originX": "right",
|
|
18
|
+
* "originY": "bottom"
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* }
|
|
22
|
+
* }
|
|
23
|
+
* ```
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
export interface IShapeItemData extends IItemData {
|
|
27
|
+
/** The border width, in points. The default value is `1`. */
|
|
28
|
+
borderWidth?: number;
|
|
29
|
+
/** The border color. The default value is `"rgba(0,0,0,1)"`. */
|
|
30
|
+
borderColor?: string;
|
|
31
|
+
/** The fill color for shapes and placeholders. The default value is `"rgba(112,112,112,1)"` for shapes and is `"rgba(0,0,0,0)"` for image placeholders. */
|
|
32
|
+
fillColor?: string;
|
|
33
|
+
overprintStroke?: boolean;
|
|
34
|
+
overprintFill?: boolean;
|
|
35
|
+
/** Defines permissions for shapes. */
|
|
36
|
+
shapePermissions?: IShapePermissionsData;
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A structure defining permissions for shapes.
|
|
3
|
+
* @example
|
|
4
|
+
* ```json
|
|
5
|
+
* {
|
|
6
|
+
* "defaultItemsConfig": {
|
|
7
|
+
* "rectangle": {
|
|
8
|
+
* "shapePermissions": {
|
|
9
|
+
* "allowChangeBorderColor": false,
|
|
10
|
+
* "allowChangeBorderWidth": false
|
|
11
|
+
* }
|
|
12
|
+
* }
|
|
13
|
+
* }
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
export interface IShapePermissionsData {
|
|
19
|
+
/** Enables the **Border width** button in the Top toolbar. The default value is `true`. */
|
|
20
|
+
allowChangeBorderWidth?: boolean;
|
|
21
|
+
/** Enables the **Fill color** button in the Top toolbar. The default value is `true`. */
|
|
22
|
+
allowChangeFillColor?: boolean;
|
|
23
|
+
/** Enables the **Border color** button in the Top toolbar. The default value is `true`. */
|
|
24
|
+
allowChangeBorderColor?: boolean;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IArchedTextItemData } from "./IArchedTextItemData";
|
|
2
|
+
import { IBaseTextItemData } from "./IBaseTextItemData";
|
|
3
|
+
import { IBoundedTextItemData } from "./IBoundedTextItemData";
|
|
4
|
+
/**
|
|
5
|
+
* A structure defining the parameters of text elements.
|
|
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
|
+
* "textPermissions": {
|
|
19
|
+
* "allowChangeFontColor": false,
|
|
20
|
+
* "allowChangeShadow": false,
|
|
21
|
+
* "allowChangeStroke": false
|
|
22
|
+
* }
|
|
23
|
+
* }
|
|
24
|
+
* }
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
export interface ITextItemData<TTextAlignment, TStrokeSettings, TShadowSettings> extends IBaseTextItemData<TTextAlignment, TStrokeSettings, TShadowSettings>, IBoundedTextItemData<TTextAlignment, TStrokeSettings, TShadowSettings>, IArchedTextItemData<TTextAlignment, TStrokeSettings, TShadowSettings> {
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A structure defining permissions for text elements.
|
|
3
|
+
* @example
|
|
4
|
+
* ```json
|
|
5
|
+
* {
|
|
6
|
+
* "defaultItemsConfig": {
|
|
7
|
+
* "text": {
|
|
8
|
+
* "textPermissions": {
|
|
9
|
+
* "allowChangeText": false,
|
|
10
|
+
* "allowChangeFontColor": false,
|
|
11
|
+
* "allowChangeShadow": false,
|
|
12
|
+
* "allowChangeStroke": false
|
|
13
|
+
* }
|
|
14
|
+
* }
|
|
15
|
+
* }
|
|
16
|
+
* }
|
|
17
|
+
* ```
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
export interface ITextPermissionsData {
|
|
21
|
+
/** Allows for changing the content and enables the **Edit** button in the context menu. The default value is `true`. */
|
|
22
|
+
allowChangeText?: boolean;
|
|
23
|
+
/** Enables the **Font name** and **Font style** lists in the Top Toolbar. The default value is `true`. */
|
|
24
|
+
allowChangeFont?: boolean;
|
|
25
|
+
/** Enables the **Font size** box in the Top Toolbar for plain text. The default value is `true`. */
|
|
26
|
+
allowChangeFontSize?: boolean;
|
|
27
|
+
/** Enables the **Color picker** in the Top Toolbar for plain text. By default, the **Color picker** is enabled. */
|
|
28
|
+
allowChangeFontColor?: boolean;
|
|
29
|
+
/** Enables the horizontal alignment buttons in the Top Toolbar for plain text. These buttons are enabled by default. */
|
|
30
|
+
allowChangeTextAlignment?: boolean;
|
|
31
|
+
/** Enables the **Faux bold**, **Faux italic**, and **Underlined** buttons in the Top Toolbar for plain text. These buttons are enabled by default. */
|
|
32
|
+
allowChangeTextBIU?: boolean;
|
|
33
|
+
/** Enables the **Shadow** button in the Top Toolbar. By default, this button is enabled. */
|
|
34
|
+
allowChangeShadow?: boolean;
|
|
35
|
+
/** Enables the **Stroke** button in the Top Toolbar. By default, this button is enabled. */
|
|
36
|
+
allowChangeStroke?: boolean;
|
|
37
|
+
allowTextFormatting?: boolean;
|
|
38
|
+
/** Enables the **Stroke color** button in the Top Toolbar for plain text. By default, this button is enabled. */
|
|
39
|
+
allowChangeStrokeColor?: boolean;
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A structure defining default colors and styles of design elements.
|
|
3
|
+
* @remarks You can specify `themeBinding` in both {@link IItemData} and {@link https://customerscanvas.com/dev/editors/iframe-api/reference/design-editor-iframe/idefaultitemsconfig.html|IDefaultItemsConfig}.
|
|
4
|
+
* @example
|
|
5
|
+
* ```json
|
|
6
|
+
* {
|
|
7
|
+
* "defaultItemsConfig": {
|
|
8
|
+
* "text": {
|
|
9
|
+
* "themeBinding": {
|
|
10
|
+
* "styles": ["FancyText"]
|
|
11
|
+
* }
|
|
12
|
+
* },
|
|
13
|
+
* "image": {
|
|
14
|
+
* "themeBinding": {
|
|
15
|
+
* "img": "MainColor",
|
|
16
|
+
* "border": "BorderColor"
|
|
17
|
+
* }
|
|
18
|
+
* }
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
export interface IThemeBindingData {
|
|
25
|
+
/** The text color. */
|
|
26
|
+
text?: string;
|
|
27
|
+
/** The text stroke color. */
|
|
28
|
+
stroke?: string;
|
|
29
|
+
/** The text shadow color. */
|
|
30
|
+
shadow?: string;
|
|
31
|
+
/** The color applied with the Hard Light blend mode and 80% opacity to the original image. */
|
|
32
|
+
img?: string;
|
|
33
|
+
/** The border color. */
|
|
34
|
+
border?: string;
|
|
35
|
+
/** The fill color. */
|
|
36
|
+
fill?: string;
|
|
37
|
+
textFill?: string;
|
|
38
|
+
/** The line color. */
|
|
39
|
+
line?: string;
|
|
40
|
+
barcode?: string;
|
|
41
|
+
/** An array of style names. */
|
|
42
|
+
styles?: string[];
|
|
43
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|