@chili-publish/studio-sdk 0.123.0 → 0.133.2
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/README.md +1 -1
- package/_bundles/main.js +1 -1
- package/_bundles/main.js.map +1 -1
- package/_bundles/report.html +2 -2
- package/lib/editor-engine.json +1 -1
- package/lib/package.json +1 -1
- package/lib/src/controllers/ActionController.d.ts +33 -25
- package/lib/src/controllers/ActionController.js +42 -31
- package/lib/src/controllers/ActionController.js.map +1 -1
- package/lib/src/controllers/AnimationController.d.ts +24 -24
- package/lib/src/controllers/AnimationController.js +28 -28
- package/lib/src/controllers/AnimationController.js.map +1 -1
- package/lib/src/controllers/CanvasController.d.ts +3 -2
- package/lib/src/controllers/CanvasController.js +4 -3
- package/lib/src/controllers/CanvasController.js.map +1 -1
- package/lib/src/controllers/CharacterStyleController.d.ts +23 -23
- package/lib/src/controllers/CharacterStyleController.js +26 -26
- package/lib/src/controllers/CharacterStyleController.js.map +1 -1
- package/lib/src/controllers/ColorStyleController.d.ts +22 -22
- package/lib/src/controllers/ColorStyleController.js +27 -27
- package/lib/src/controllers/ColorStyleController.js.map +1 -1
- package/lib/src/controllers/ConfigurationController.d.ts +1 -1
- package/lib/src/controllers/ConfigurationController.js +1 -1
- package/lib/src/controllers/ConnectorController.d.ts +21 -12
- package/lib/src/controllers/ConnectorController.js +28 -19
- package/lib/src/controllers/ConnectorController.js.map +1 -1
- package/lib/src/controllers/DebugController.d.ts +2 -2
- package/lib/src/controllers/DebugController.js +2 -2
- package/lib/src/controllers/DebugController.js.map +1 -1
- package/lib/src/controllers/DocumentController.d.ts +6 -6
- package/lib/src/controllers/DocumentController.js +7 -7
- package/lib/src/controllers/DocumentController.js.map +1 -1
- package/lib/src/controllers/ExperimentController.d.ts +32 -7
- package/lib/src/controllers/ExperimentController.js +42 -9
- package/lib/src/controllers/ExperimentController.js.map +1 -1
- package/lib/src/controllers/FontConnectorController.d.ts +36 -28
- package/lib/src/controllers/FontConnectorController.js +45 -37
- package/lib/src/controllers/FontConnectorController.js.map +1 -1
- package/lib/src/controllers/FontController.d.ts +15 -15
- package/lib/src/controllers/FontController.js +18 -18
- package/lib/src/controllers/FontController.js.map +1 -1
- package/lib/src/controllers/FrameController.d.ts +127 -127
- package/lib/src/controllers/FrameController.js +173 -173
- package/lib/src/controllers/FrameController.js.map +1 -1
- package/lib/src/controllers/LayoutController.d.ts +37 -37
- package/lib/src/controllers/LayoutController.js +48 -48
- package/lib/src/controllers/LayoutController.js.map +1 -1
- package/lib/src/controllers/MediaConnectorController.d.ts +33 -23
- package/lib/src/controllers/MediaConnectorController.js +41 -31
- package/lib/src/controllers/MediaConnectorController.js.map +1 -1
- package/lib/src/controllers/PageController.d.ts +11 -11
- package/lib/src/controllers/PageController.js +16 -16
- package/lib/src/controllers/PageController.js.map +1 -1
- package/lib/src/controllers/ParagraphStyleController.d.ts +20 -20
- package/lib/src/controllers/ParagraphStyleController.js +23 -23
- package/lib/src/controllers/ParagraphStyleController.js.map +1 -1
- package/lib/src/controllers/ShapeController.d.ts +28 -28
- package/lib/src/controllers/ShapeController.js +43 -43
- package/lib/src/controllers/ShapeController.js.map +1 -1
- package/lib/src/controllers/SubscriberController.d.ts +18 -18
- package/lib/src/controllers/SubscriberController.js +24 -24
- package/lib/src/controllers/SubscriberController.js.map +1 -1
- package/lib/src/controllers/TextStyleController.d.ts +7 -7
- package/lib/src/controllers/TextStyleController.js +7 -7
- package/lib/src/controllers/TextStyleController.js.map +1 -1
- package/lib/src/controllers/ToolController.d.ts +10 -10
- package/lib/src/controllers/ToolController.js +9 -9
- package/lib/src/controllers/ToolController.js.map +1 -1
- package/lib/src/controllers/UtilsController.d.ts +10 -4
- package/lib/src/controllers/UtilsController.js +10 -4
- package/lib/src/controllers/UtilsController.js.map +1 -1
- package/lib/src/controllers/VariableController.d.ts +78 -34
- package/lib/src/controllers/VariableController.js +106 -53
- package/lib/src/controllers/VariableController.js.map +1 -1
- package/lib/src/index.d.ts +4 -3
- package/lib/src/index.js +5 -4
- package/lib/src/index.js.map +1 -1
- package/lib/src/interactions/connector.d.ts +4 -3
- package/lib/src/interactions/connector.js +7 -3
- package/lib/src/interactions/connector.js.map +1 -1
- package/lib/src/tests/__mocks__/FrameProperties.d.ts +2 -2
- package/lib/src/tests/__mocks__/FrameProperties.js +2 -2
- package/lib/src/tests/__mocks__/FrameProperties.js.map +1 -1
- package/lib/src/tests/__mocks__/MockImageFrameSource.js +5 -5
- package/lib/src/tests/__mocks__/MockImageFrameSource.js.map +1 -1
- package/lib/src/tests/__mocks__/animations.js +1 -1
- package/lib/src/tests/__mocks__/animations.js.map +1 -1
- package/lib/src/tests/__mocks__/mockDocument.d.ts +1 -1
- package/lib/src/tests/__mocks__/mockDocument.js +1 -1
- package/lib/src/tests/__mocks__/mockDocument.js.map +1 -1
- package/lib/src/tests/controllers/ActionController.test.js +18 -9
- package/lib/src/tests/controllers/ActionController.test.js.map +1 -1
- package/lib/src/tests/controllers/AnimationController.test.js +14 -14
- package/lib/src/tests/controllers/AnimationController.test.js.map +1 -1
- package/lib/src/tests/controllers/CharacterStyleController.test.js +11 -11
- package/lib/src/tests/controllers/CharacterStyleController.test.js.map +1 -1
- package/lib/src/tests/controllers/ColorStyleController.test.js +17 -17
- package/lib/src/tests/controllers/ColorStyleController.test.js.map +1 -1
- package/lib/src/tests/controllers/ConnectorController.test.js +6 -6
- package/lib/src/tests/controllers/ConnectorController.test.js.map +1 -1
- package/lib/src/tests/controllers/DebugController.test.js +1 -1
- package/lib/src/tests/controllers/DebugController.test.js.map +1 -1
- package/lib/src/tests/controllers/DocumentController.test.js +6 -6
- package/lib/src/tests/controllers/DocumentController.test.js.map +1 -1
- package/lib/src/tests/controllers/ExperimentController.test.js +29 -1
- package/lib/src/tests/controllers/ExperimentController.test.js.map +1 -1
- package/lib/src/tests/controllers/FontConnectorController.test.js +11 -11
- package/lib/src/tests/controllers/FontController.test.js +11 -11
- package/lib/src/tests/controllers/FontController.test.js.map +1 -1
- package/lib/src/tests/controllers/FrameController.test.js +113 -113
- package/lib/src/tests/controllers/FrameController.test.js.map +1 -1
- package/lib/src/tests/controllers/LayoutController.test.js +25 -27
- package/lib/src/tests/controllers/LayoutController.test.js.map +1 -1
- package/lib/src/tests/controllers/MediaConnectorController.test.js +1 -1
- package/lib/src/tests/controllers/PageController.test.js +11 -11
- package/lib/src/tests/controllers/PageController.test.js.map +1 -1
- package/lib/src/tests/controllers/ParagraphStyleController.test.js +12 -12
- package/lib/src/tests/controllers/ParagraphStyleController.test.js.map +1 -1
- package/lib/src/tests/controllers/ShapeController.test.js +26 -26
- package/lib/src/tests/controllers/ShapeController.test.js.map +1 -1
- package/lib/src/tests/controllers/SubscriberContoller.test.js +7 -7
- package/lib/src/tests/controllers/SubscriberContoller.test.js.map +1 -1
- package/lib/src/tests/controllers/TextStyleController.test.js +6 -6
- package/lib/src/tests/controllers/TextStyleController.test.js.map +1 -1
- package/lib/src/tests/controllers/ToolController.test.js +9 -9
- package/lib/src/tests/controllers/ToolController.test.js.map +1 -1
- package/lib/src/tests/controllers/UtilsController.test.js +20 -0
- package/lib/src/tests/controllers/UtilsController.test.js.map +1 -1
- package/lib/src/tests/controllers/VariableController.test.js +62 -31
- package/lib/src/tests/controllers/VariableController.test.js.map +1 -1
- package/lib/src/tests/interactions/connector.test.js +14 -0
- package/lib/src/tests/interactions/connector.test.js.map +1 -1
- package/lib/src/tests/utils/getClaculatedValue.test.js +2 -2
- package/lib/src/tests/utils/getClaculatedValue.test.js.map +1 -1
- package/lib/src/types/ActionTypes.d.ts +3 -3
- package/lib/src/types/AnimationTypes.d.ts +3 -3
- package/lib/src/types/CharacterStyleTypes.d.ts +2 -1
- package/lib/src/types/ColorStyleTypes.d.ts +8 -7
- package/lib/src/types/ColorStyleTypes.js +1 -1
- package/lib/src/types/ColorStyleTypes.js.map +1 -1
- package/lib/src/types/CommonTypes.d.ts +7 -5
- package/lib/src/types/ConfigurationTypes.d.ts +3 -0
- package/lib/src/types/ConnectorTypes.d.ts +5 -4
- package/lib/src/types/ConnectorTypes.js.map +1 -1
- package/lib/src/types/DocumentTypes.d.ts +23 -25
- package/lib/src/types/DocumentTypes.js.map +1 -1
- package/lib/src/types/FontConnectorTypes.d.ts +2 -1
- package/lib/src/types/FontConnectorTypes.js.map +1 -1
- package/lib/src/types/FontTypes.d.ts +5 -4
- package/lib/src/types/FrameTypes.d.ts +20 -20
- package/lib/src/types/LayoutTypes.d.ts +14 -14
- package/lib/src/types/LayoutTypes.js.map +1 -1
- package/lib/src/types/MediaConnectorTypes.d.ts +2 -1
- package/lib/src/types/MediaConnectorTypes.js.map +1 -1
- package/lib/src/types/PageTypes.d.ts +3 -3
- package/lib/src/types/ParagraphStyleTypes.d.ts +6 -5
- package/lib/src/types/TextStyleTypes.d.ts +5 -5
- package/lib/src/types/TextStyleTypes.js +1 -1
- package/lib/src/types/TextStyleTypes.js.map +1 -1
- package/lib/src/types/TextTypes.d.ts +4 -0
- package/lib/src/types/TextTypes.js +6 -0
- package/lib/src/types/TextTypes.js.map +1 -0
- package/lib/src/types/VariableTypes.d.ts +12 -11
- package/lib/src/types/VariableTypes.js +3 -2
- package/lib/src/types/VariableTypes.js.map +1 -1
- package/lib/src/utils/enums.d.ts +8 -3
- package/lib/src/utils/enums.js +19 -13
- package/lib/src/utils/enums.js.map +1 -1
- package/lib/src/utils/getCalculatedValue.js +2 -2
- package/package.json +1 -1
|
@@ -19,337 +19,337 @@ export declare class FrameController {
|
|
|
19
19
|
private shapeController;
|
|
20
20
|
/**
|
|
21
21
|
* This method returns the list of frames
|
|
22
|
-
* @returns
|
|
22
|
+
* @returns list of all frames
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
getAll: () => Promise<import("../types/CommonTypes").EditorResponse<FrameType[]>>;
|
|
25
25
|
/**
|
|
26
26
|
* This method returns the list of selected frames
|
|
27
|
-
* @returns
|
|
27
|
+
* @returns list of all selected frames
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
getSelected: () => Promise<import("../types/CommonTypes").EditorResponse<FrameType[]>>;
|
|
30
30
|
/**
|
|
31
|
-
* This method returns the list of frames by
|
|
32
|
-
* @param
|
|
33
|
-
* @returns
|
|
31
|
+
* This method returns the list of frames by id
|
|
32
|
+
* @param id the id of a specific page
|
|
33
|
+
* @returns list of all frames by id
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
getAllByPageId: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<FrameType[]>>;
|
|
36
36
|
/**
|
|
37
37
|
* This method returns a frame by its name
|
|
38
|
-
* @param name
|
|
39
|
-
* @returns
|
|
38
|
+
* @param name the name of a specific frame
|
|
39
|
+
* @returns frame properties
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
getByName: (name: string) => Promise<import("../types/CommonTypes").EditorResponse<FrameType>>;
|
|
42
42
|
/**
|
|
43
43
|
* This method returns a frame by its id
|
|
44
|
-
* @param id
|
|
45
|
-
* @returns
|
|
44
|
+
* @param id the id of a specific frame
|
|
45
|
+
* @returns frame properties
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
getById: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<FrameType>>;
|
|
48
48
|
/**
|
|
49
49
|
* This method returns all frame properties on current layout
|
|
50
|
-
* @returns
|
|
50
|
+
* @returns all frame properties on current layout
|
|
51
51
|
*/
|
|
52
|
-
|
|
52
|
+
getPropertiesOnSelectedLayout: () => Promise<import("../types/CommonTypes").EditorResponse<FrameLayoutType[]>>;
|
|
53
53
|
/**
|
|
54
|
-
* This method returns frame properties for a given frame and layout
|
|
55
|
-
* @param
|
|
56
|
-
* @param layoutId
|
|
57
|
-
* @returns
|
|
54
|
+
* This method returns frame layout properties for a given frame and layout
|
|
55
|
+
* @param id the id of a specific frame
|
|
56
|
+
* @param layoutId the id of a specific layout
|
|
57
|
+
* @returns frame layout properties
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
getLayoutProperties: (id: Id, layoutId?: Id) => Promise<import("../types/CommonTypes").EditorResponse<FrameLayoutType>>;
|
|
60
60
|
/**
|
|
61
|
-
* This method returns frame properties for a given layout
|
|
62
|
-
* @param
|
|
63
|
-
* @returns
|
|
61
|
+
* This method returns a list of frame properties for a given layout
|
|
62
|
+
* @param id the id of a specific layout
|
|
63
|
+
* @returns list of frame layout properties
|
|
64
64
|
*/
|
|
65
|
-
|
|
65
|
+
getAllLayoutProperties: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<FrameLayoutType[]>>;
|
|
66
66
|
/**
|
|
67
67
|
* This method will reset the frame size (width and height) to the frame's original value
|
|
68
|
-
* @param
|
|
68
|
+
* @param id the id of a specific frame
|
|
69
69
|
* @returns
|
|
70
70
|
*/
|
|
71
|
-
|
|
71
|
+
resetSize: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
72
72
|
/**
|
|
73
73
|
* This method will select a specific frame
|
|
74
|
-
* @param
|
|
74
|
+
* @param id the id of a specific frame
|
|
75
75
|
* @returns
|
|
76
76
|
*/
|
|
77
|
-
|
|
77
|
+
select: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
78
78
|
/**
|
|
79
79
|
* This method will select multipleFrames
|
|
80
|
-
* @param
|
|
80
|
+
* @param ids An array of all ids you want to select
|
|
81
81
|
* @returns
|
|
82
82
|
*/
|
|
83
|
-
|
|
83
|
+
selectMultiple: (ids: Id[]) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
84
84
|
/**
|
|
85
85
|
* This method changes the order of frames in the z-index list.
|
|
86
|
-
* @param
|
|
87
|
-
* @param
|
|
86
|
+
* @param order the index in the list to move to
|
|
87
|
+
* @param ids An array of all IDs you want to move to the given index
|
|
88
88
|
* @returns
|
|
89
89
|
*/
|
|
90
|
-
reorderFrames: (
|
|
90
|
+
reorderFrames: (order: number, ids: Id[]) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
91
91
|
/**
|
|
92
92
|
* This method will update the z-index of a frame.
|
|
93
|
-
* @param
|
|
94
|
-
* @param method
|
|
93
|
+
* @param id the id of the frame you want to change the z-index of
|
|
94
|
+
* @param method the z-index update method to perform
|
|
95
95
|
* @returns
|
|
96
96
|
*/
|
|
97
|
-
|
|
97
|
+
setZIndex: (id: Id, method: UpdateZIndexMethod) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
98
98
|
/**
|
|
99
99
|
* This method will set the height of a specific frame
|
|
100
|
-
* @param
|
|
101
|
-
* @param
|
|
100
|
+
* @param id the id of a specific frame
|
|
101
|
+
* @param height the string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
|
|
102
102
|
* @returns
|
|
103
103
|
*/
|
|
104
|
-
|
|
104
|
+
setHeight: (id: Id, height: string) => Promise<import("../types/CommonTypes").EditorResponse<null> | null>;
|
|
105
105
|
/**
|
|
106
106
|
* This method will set the rotation angle of a specific frame
|
|
107
|
-
* @param
|
|
108
|
-
* @param
|
|
107
|
+
* @param id the id of a specific frame
|
|
108
|
+
* @param rotation the string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
|
|
109
109
|
* @returns
|
|
110
110
|
*/
|
|
111
|
-
|
|
111
|
+
setRotation: (id: Id, rotation: string) => Promise<import("../types/CommonTypes").EditorResponse<null> | null>;
|
|
112
112
|
/**
|
|
113
113
|
* This method will set the width of a specific frame
|
|
114
|
-
* @param
|
|
115
|
-
* @param
|
|
114
|
+
* @param id the id of a specific frame
|
|
115
|
+
* @param width the string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
|
|
116
116
|
* @returns
|
|
117
117
|
*/
|
|
118
|
-
|
|
118
|
+
setWidth: (id: Id, width: string) => Promise<import("../types/CommonTypes").EditorResponse<null> | null>;
|
|
119
119
|
/**
|
|
120
120
|
* This method will set the x value of a specific frame
|
|
121
|
-
* @param
|
|
122
|
-
* @param
|
|
121
|
+
* @param id the id of a specific frame
|
|
122
|
+
* @param XValue the string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
|
|
123
123
|
* @returns
|
|
124
124
|
*/
|
|
125
|
-
|
|
125
|
+
setX: (id: Id, XValue: string) => Promise<import("../types/CommonTypes").EditorResponse<null> | null>;
|
|
126
126
|
/**
|
|
127
127
|
* This method will set the y value of a specific frame
|
|
128
|
-
* @param
|
|
129
|
-
* @param
|
|
128
|
+
* @param id the id of a specific frame
|
|
129
|
+
* @param YValue the string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
|
|
130
130
|
* @returns
|
|
131
131
|
*/
|
|
132
|
-
|
|
132
|
+
setY: (id: Id, YValue: string) => Promise<import("../types/CommonTypes").EditorResponse<null> | null>;
|
|
133
133
|
/**
|
|
134
134
|
* This method will update the name of a specific frame
|
|
135
|
-
* @param
|
|
136
|
-
* @param
|
|
135
|
+
* @param id the id of a specific frame
|
|
136
|
+
* @param name the new name that the frame should receive
|
|
137
137
|
* @returns
|
|
138
138
|
*/
|
|
139
|
-
|
|
139
|
+
rename: (id: Id, name: string) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
140
140
|
/**
|
|
141
141
|
* This method will reset properties of a specific frame to their original values
|
|
142
|
-
* @param
|
|
142
|
+
* @param id the id of the frame that needs to get reset
|
|
143
143
|
* @returns
|
|
144
144
|
*/
|
|
145
|
-
|
|
145
|
+
reset: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
146
146
|
/**
|
|
147
147
|
* This method will reset the x value of a specific frame to its original value
|
|
148
|
-
* @param
|
|
148
|
+
* @param id the id of the frame that needs to get reset
|
|
149
149
|
* @returns
|
|
150
150
|
*/
|
|
151
|
-
|
|
151
|
+
resetX: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
152
152
|
/**
|
|
153
153
|
* This method will reset the y value of a specific frame to its original value
|
|
154
|
-
* @param
|
|
154
|
+
* @param id the id of the frame that needs to get reset
|
|
155
155
|
* @returns
|
|
156
156
|
*/
|
|
157
|
-
|
|
157
|
+
resetY: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
158
158
|
/**
|
|
159
159
|
* This method will reset the rotation value of a specific frame to its original value
|
|
160
|
-
* @param
|
|
160
|
+
* @param id the id of the frame that needs to get reset
|
|
161
161
|
* @returns
|
|
162
162
|
*/
|
|
163
|
-
|
|
163
|
+
resetRotation: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
164
164
|
/**
|
|
165
165
|
* This method will reset the width of a specific frame to its original value
|
|
166
|
-
* @param
|
|
166
|
+
* @param id the id of the frame that needs to get reset
|
|
167
167
|
* @returns
|
|
168
168
|
*/
|
|
169
|
-
|
|
169
|
+
resetWidth: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
170
170
|
/**
|
|
171
171
|
* This method will reset the height of a specific frame to its original value
|
|
172
|
-
* @param
|
|
172
|
+
* @param id the id of the frame that needs to get reset
|
|
173
173
|
* @returns
|
|
174
174
|
*/
|
|
175
|
-
|
|
175
|
+
resetHeight: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
176
176
|
/**
|
|
177
177
|
* This method will reset the fitMode property of a specific frame to its original value
|
|
178
|
-
* @param
|
|
178
|
+
* @param id the id of the frame that needs to get reset
|
|
179
179
|
* @returns
|
|
180
180
|
*/
|
|
181
|
-
resetImageFrameFitMode: (
|
|
181
|
+
resetImageFrameFitMode: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
182
182
|
/**
|
|
183
183
|
* This method will set the visibility property of a specified frame. If set to false the frame will be invisible and vice versa.
|
|
184
|
-
* @param
|
|
184
|
+
* @param id the id of the frame that needs to get updated
|
|
185
185
|
* @param value True means the frame gets visible, false means the frame gets invisible
|
|
186
186
|
* @returns
|
|
187
187
|
*/
|
|
188
|
-
|
|
188
|
+
setVisibility: (id: Id, value: boolean) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
189
189
|
/**
|
|
190
190
|
* This method will remove a specific frame using the Id.
|
|
191
|
-
* @param
|
|
191
|
+
* @param id the id of the frame that needs to be deleted
|
|
192
192
|
* @returns
|
|
193
193
|
*/
|
|
194
|
-
|
|
194
|
+
remove: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
195
195
|
/**
|
|
196
|
-
* This method will
|
|
196
|
+
* This method will create a new frame of 'type' to the template positioned on the requested
|
|
197
197
|
* coordinates.
|
|
198
|
-
* @param
|
|
198
|
+
* @param type the type of frame to create
|
|
199
199
|
* @param x X coordinate of the new frame within the template
|
|
200
200
|
* @param y Y coordinate of the new frame within the template
|
|
201
201
|
* @param width Width of the new frame within the template
|
|
202
202
|
* @param height Height of the new frame within the template
|
|
203
|
-
* @returns
|
|
203
|
+
* @returns the newly created frame's id
|
|
204
204
|
*/
|
|
205
|
-
|
|
205
|
+
create: (type: FrameTypeEnum, x: number, y: number, width: number, height: number) => Promise<import("../types/CommonTypes").EditorResponse<string>>;
|
|
206
206
|
/**
|
|
207
|
-
* This method will
|
|
207
|
+
* This method will create a new frame of 'type' type to the template positioned on the requested
|
|
208
208
|
* coordinates.
|
|
209
|
-
* @param
|
|
209
|
+
* @param type the type of frame to create
|
|
210
210
|
* @param x X coordinate of the new frame within the template
|
|
211
211
|
* @param y Y coordinate of the new frame within the template
|
|
212
212
|
* @param width Width of the new frame within the template
|
|
213
213
|
* @param height Height of the new frame within the template
|
|
214
|
-
* @returns
|
|
214
|
+
* @returns the newly created shape frame's id
|
|
215
215
|
*/
|
|
216
|
-
|
|
216
|
+
createShapeFrame: (type: ShapeType, x: number, y: number, width: number, height: number) => Promise<import("../types/CommonTypes").EditorResponse<string>>;
|
|
217
217
|
/**
|
|
218
218
|
* This method sets or removes the image source to the ImageFrame
|
|
219
|
-
* @param imageFrameId
|
|
220
|
-
* @param
|
|
219
|
+
* @param imageFrameId the id of the imageFrame where an image needs to be assigned to
|
|
220
|
+
* @param newImageSource A new image source
|
|
221
221
|
* @returns
|
|
222
222
|
*/
|
|
223
223
|
private updateImageSource;
|
|
224
224
|
/**
|
|
225
225
|
* This method removes the image source from the ImageFrame
|
|
226
|
-
* @param imageFrameId
|
|
226
|
+
* @param imageFrameId the id of the imageFrame where an image needs to be removed from
|
|
227
227
|
*/
|
|
228
228
|
removeImageSource: (imageFrameId: string) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
229
229
|
/**
|
|
230
230
|
* This method will assign an image from a mediaConnector to the correct ImageFrame
|
|
231
|
-
* @param
|
|
232
|
-
* @param
|
|
233
|
-
* @param
|
|
231
|
+
* @param id Unique Id of the media connector
|
|
232
|
+
* @param imageFrameId the id of the imageFrame where an image needs to be assigned to
|
|
233
|
+
* @param assetId Unique id of the asset that you want to assign to the imageFrame
|
|
234
234
|
* @returns
|
|
235
235
|
*/
|
|
236
|
-
setImageFromConnector: (imageFrameId: Id, connectorId:
|
|
236
|
+
setImageFromConnector: (imageFrameId: Id, connectorId: Id, assetId: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
237
237
|
/**
|
|
238
238
|
* This method will assign an image from url to the correct ImageFrame
|
|
239
239
|
* Make sure the url can be accessed by the editor.
|
|
240
|
-
* @param imageFrameId
|
|
240
|
+
* @param imageFrameId the id of the imageFrame where an image needs to be assigned to
|
|
241
241
|
* @param url A valid image uri
|
|
242
242
|
* @returns
|
|
243
243
|
*/
|
|
244
244
|
setImageFromUrl: (imageFrameId: Id, url: string) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
245
245
|
/**
|
|
246
246
|
* This method will set the fitMode property of a specified image frame.
|
|
247
|
-
* @param imageFrameId
|
|
248
|
-
* @param fitMode
|
|
247
|
+
* @param imageFrameId the id of the imageFrame that needs to get updated.
|
|
248
|
+
* @param fitMode the new fitMode that you want to set to the imageFrame.
|
|
249
249
|
* @returns
|
|
250
250
|
*/
|
|
251
251
|
setImageFrameFitMode: (imageFrameId: Id, fitMode: FitMode) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
252
252
|
/**
|
|
253
253
|
* This method will set the constrainProportions property of a specified frame.
|
|
254
|
-
* @param
|
|
254
|
+
* @param id the id of the frame that needs to get updated.
|
|
255
255
|
* @param constrainProportions The new constraint that you want to set to the frame.
|
|
256
256
|
* @returns
|
|
257
257
|
*/
|
|
258
|
-
setFrameConstrainProportions: (
|
|
258
|
+
setFrameConstrainProportions: (id: Id, constrainProportions: boolean) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
259
259
|
/**
|
|
260
260
|
* This method will set the vertical alignment property of a specified frame.
|
|
261
|
-
* @param
|
|
262
|
-
* @param verticalAlign
|
|
261
|
+
* @param id the id of the frame that needs to get updated
|
|
262
|
+
* @param verticalAlign the new vertical alignment to be set to the frame.
|
|
263
263
|
* @returns
|
|
264
264
|
*/
|
|
265
|
-
|
|
265
|
+
setVerticalAlign: (id: Id, verticalAlign: VerticalAlign) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
266
266
|
/**
|
|
267
267
|
* This method will set the min copyFitting property of a specified frame.
|
|
268
|
-
* @param
|
|
269
|
-
* @param value
|
|
268
|
+
* @param id the id of the frame that needs to get updated
|
|
269
|
+
* @param value the new min copyFitting value to be set to the frame.
|
|
270
270
|
* @returns
|
|
271
271
|
*/
|
|
272
|
-
setMinCopyfitting: (
|
|
272
|
+
setMinCopyfitting: (id: Id, value: string) => Promise<import("../types/CommonTypes").EditorResponse<null> | null>;
|
|
273
273
|
/**
|
|
274
274
|
* This method will set the max copyFitting property of a specified frame.
|
|
275
|
-
* @param
|
|
276
|
-
* @param value
|
|
275
|
+
* @param id the id of the frame that needs to get updated
|
|
276
|
+
* @param value the new max copyFitting value to be set to the frame.
|
|
277
277
|
* @returns
|
|
278
278
|
*/
|
|
279
|
-
setMaxCopyfitting: (
|
|
279
|
+
setMaxCopyfitting: (id: Id, value: string) => Promise<import("../types/CommonTypes").EditorResponse<null> | null>;
|
|
280
280
|
/**
|
|
281
281
|
* This method will enable copyFitting on a specified frame.
|
|
282
|
-
* @param
|
|
283
|
-
* @param value
|
|
282
|
+
* @param id the id of the frame that needs to get updated
|
|
283
|
+
* @param value the new value to be set to the frame.
|
|
284
284
|
* @returns
|
|
285
285
|
*/
|
|
286
|
-
setEnableCopyfitting: (
|
|
286
|
+
setEnableCopyfitting: (id: Id, value: boolean) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
287
287
|
/**
|
|
288
288
|
* This method will reset the frame minCopyfitting to the frame's original value
|
|
289
|
-
* @param
|
|
289
|
+
* @param id the id of a specific frame
|
|
290
290
|
* @returns
|
|
291
291
|
*/
|
|
292
|
-
resetMinCopyfitting: (
|
|
292
|
+
resetMinCopyfitting: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
293
293
|
/**
|
|
294
294
|
* This method will reset the frame maxCopyfitting to the frame's original value
|
|
295
|
-
* @param
|
|
295
|
+
* @param id the id of a specific frame
|
|
296
296
|
* @returns
|
|
297
297
|
*/
|
|
298
|
-
resetMaxCopyfitting: (
|
|
298
|
+
resetMaxCopyfitting: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
299
299
|
/**
|
|
300
300
|
* This method will reset the frame enableCopyfitting to the frame's original value
|
|
301
|
-
* @param
|
|
301
|
+
* @param id the id of a specific frame
|
|
302
302
|
* @returns
|
|
303
303
|
*/
|
|
304
|
-
resetEnableCopyfitting: (
|
|
304
|
+
resetEnableCopyfitting: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
305
305
|
/**
|
|
306
306
|
* This method will set the visibility of the shape fill.
|
|
307
|
-
* @param shapeFrameId
|
|
307
|
+
* @param shapeFrameId the id of the shapeFrame that needs to get updated.
|
|
308
308
|
* @param enableFill Whether the shape fill is visible.
|
|
309
309
|
* @returns
|
|
310
310
|
*/
|
|
311
311
|
setShapeFrameEnableFill: (shapeFrameId: Id, enableFill: boolean) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
312
312
|
/**
|
|
313
313
|
* This method will set the shape fill color of a specified shape frame.
|
|
314
|
-
* @param shapeFrameId
|
|
315
|
-
* @param fillColor
|
|
314
|
+
* @param shapeFrameId the id of the shapeFrame that needs to get updated.
|
|
315
|
+
* @param fillColor the new shape fill color that you want to set to the shapeFrame.
|
|
316
316
|
* @returns
|
|
317
317
|
*/
|
|
318
318
|
setShapeFrameFillColor: (shapeFrameId: Id, fillColor: ColorUsage) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
319
319
|
/**
|
|
320
320
|
* This method will set the visibility of the shape stroke.
|
|
321
|
-
* @param shapeFrameId
|
|
321
|
+
* @param shapeFrameId the id of the shapeFrame that needs to get updated.
|
|
322
322
|
* @param enableStroke Whether the shape stroke is visible.
|
|
323
323
|
* @returns
|
|
324
324
|
*/
|
|
325
325
|
setShapeFrameEnableStroke: (shapeFrameId: Id, enableStroke: boolean) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
326
326
|
/**
|
|
327
327
|
* This method will set the shape stroke color of a specified shape frame.
|
|
328
|
-
* @param shapeFrameId
|
|
329
|
-
* @param strokeColor
|
|
328
|
+
* @param shapeFrameId the id of the shapeFrame that needs to get updated.
|
|
329
|
+
* @param strokeColor the new shape stroke color that you want to set to the shapeFrame.
|
|
330
330
|
* @returns
|
|
331
331
|
*/
|
|
332
332
|
setShapeFrameStrokeColor: (shapeFrameId: Id, strokeColor: ColorUsage) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
333
333
|
/**
|
|
334
334
|
* This method will set the shape stroke weight of a specified shape frame.
|
|
335
|
-
* @param shapeFrameId
|
|
336
|
-
* @param strokeWeight
|
|
335
|
+
* @param shapeFrameId the id of the shapeFrame that needs to get updated.
|
|
336
|
+
* @param strokeWeight the new shape stroke weight that you want to set to the shapeFrame.
|
|
337
337
|
* @returns
|
|
338
338
|
*/
|
|
339
339
|
setShapeFrameStrokeWeight: (shapeFrameId: Id, strokeWeight: number) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
340
340
|
/**
|
|
341
341
|
* This method will set the blend mode of a specified shape frame
|
|
342
|
-
* @param
|
|
343
|
-
* @param blendMode
|
|
342
|
+
* @param id the id of a specific frame
|
|
343
|
+
* @param blendMode the blend mode
|
|
344
344
|
* @returns
|
|
345
345
|
*/
|
|
346
|
-
|
|
346
|
+
setBlendMode: (id: Id, blendMode: BlendMode) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
347
347
|
/**
|
|
348
348
|
* This method will make the specified image frame go into cropping mode.
|
|
349
|
-
* @param
|
|
349
|
+
* @param id the id of a specific image frame
|
|
350
350
|
* @returns
|
|
351
351
|
*/
|
|
352
|
-
enterCropMode: (
|
|
352
|
+
enterCropMode: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
353
353
|
/**
|
|
354
354
|
* This method will exit cropping mode while saving the applied crop.
|
|
355
355
|
* @returns
|
|
@@ -357,13 +357,13 @@ export declare class FrameController {
|
|
|
357
357
|
applyCropMode: () => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
358
358
|
/**
|
|
359
359
|
* This method will reset the currently applied crop mode and apply the last selected fit mode again.
|
|
360
|
-
* @param
|
|
360
|
+
* @param id the id of a specific image frame
|
|
361
361
|
* @returns
|
|
362
362
|
*/
|
|
363
|
-
resetCropMode: (
|
|
363
|
+
resetCropMode: (id: Id) => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
364
364
|
/**
|
|
365
365
|
* This method will exit cropping mode without saving the applied crop.
|
|
366
366
|
* @returns
|
|
367
367
|
*/
|
|
368
|
-
|
|
368
|
+
exitCropMode: () => Promise<import("../types/CommonTypes").EditorResponse<null>>;
|
|
369
369
|
}
|