@chili-publish/studio-sdk 0.121.0

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.
Files changed (264) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +89 -0
  3. package/_bundles/main.js +3 -0
  4. package/_bundles/main.js.LICENSE.txt +14 -0
  5. package/_bundles/main.js.map +1 -0
  6. package/_bundles/report.html +38 -0
  7. package/lib/editor-engine.json +3 -0
  8. package/lib/package.json +89 -0
  9. package/lib/src/controllers/ActionController.d.ts +38 -0
  10. package/lib/src/controllers/ActionController.js +79 -0
  11. package/lib/src/controllers/ActionController.js.map +1 -0
  12. package/lib/src/controllers/AnimationController.d.ts +70 -0
  13. package/lib/src/controllers/AnimationController.js +135 -0
  14. package/lib/src/controllers/AnimationController.js.map +1 -0
  15. package/lib/src/controllers/CanvasController.d.ts +34 -0
  16. package/lib/src/controllers/CanvasController.js +71 -0
  17. package/lib/src/controllers/CanvasController.js.map +1 -0
  18. package/lib/src/controllers/CharacterStyleController.d.ts +55 -0
  19. package/lib/src/controllers/CharacterStyleController.js +107 -0
  20. package/lib/src/controllers/CharacterStyleController.js.map +1 -0
  21. package/lib/src/controllers/ColorStyleController.d.ts +62 -0
  22. package/lib/src/controllers/ColorStyleController.js +113 -0
  23. package/lib/src/controllers/ColorStyleController.js.map +1 -0
  24. package/lib/src/controllers/ConfigurationController.d.ts +27 -0
  25. package/lib/src/controllers/ConfigurationController.js +60 -0
  26. package/lib/src/controllers/ConfigurationController.js.map +1 -0
  27. package/lib/src/controllers/ConnectorController.d.ts +90 -0
  28. package/lib/src/controllers/ConnectorController.js +196 -0
  29. package/lib/src/controllers/ConnectorController.js.map +1 -0
  30. package/lib/src/controllers/DebugController.d.ts +33 -0
  31. package/lib/src/controllers/DebugController.js +72 -0
  32. package/lib/src/controllers/DebugController.js.map +1 -0
  33. package/lib/src/controllers/DocumentController.d.ts +40 -0
  34. package/lib/src/controllers/DocumentController.js +163 -0
  35. package/lib/src/controllers/DocumentController.js.map +1 -0
  36. package/lib/src/controllers/ExperimentController.d.ts +39 -0
  37. package/lib/src/controllers/ExperimentController.js +83 -0
  38. package/lib/src/controllers/ExperimentController.js.map +1 -0
  39. package/lib/src/controllers/FontConnectorController.d.ts +95 -0
  40. package/lib/src/controllers/FontConnectorController.js +168 -0
  41. package/lib/src/controllers/FontConnectorController.js.map +1 -0
  42. package/lib/src/controllers/FontController.d.ts +50 -0
  43. package/lib/src/controllers/FontController.js +95 -0
  44. package/lib/src/controllers/FontController.js.map +1 -0
  45. package/lib/src/controllers/FrameController.d.ts +369 -0
  46. package/lib/src/controllers/FrameController.js +599 -0
  47. package/lib/src/controllers/FrameController.js.map +1 -0
  48. package/lib/src/controllers/LayoutController.d.ts +103 -0
  49. package/lib/src/controllers/LayoutController.js +190 -0
  50. package/lib/src/controllers/LayoutController.js.map +1 -0
  51. package/lib/src/controllers/MediaConnectorController.d.ts +95 -0
  52. package/lib/src/controllers/MediaConnectorController.js +170 -0
  53. package/lib/src/controllers/MediaConnectorController.js.map +1 -0
  54. package/lib/src/controllers/PageController.d.ts +40 -0
  55. package/lib/src/controllers/PageController.js +92 -0
  56. package/lib/src/controllers/PageController.js.map +1 -0
  57. package/lib/src/controllers/ParagraphStyleController.d.ts +62 -0
  58. package/lib/src/controllers/ParagraphStyleController.js +117 -0
  59. package/lib/src/controllers/ParagraphStyleController.js.map +1 -0
  60. package/lib/src/controllers/ShapeController.d.ts +104 -0
  61. package/lib/src/controllers/ShapeController.js +174 -0
  62. package/lib/src/controllers/ShapeController.js.map +1 -0
  63. package/lib/src/controllers/SubscriberController.d.ts +143 -0
  64. package/lib/src/controllers/SubscriberController.js +213 -0
  65. package/lib/src/controllers/SubscriberController.js.map +1 -0
  66. package/lib/src/controllers/TextStyleController.d.ts +31 -0
  67. package/lib/src/controllers/TextStyleController.js +71 -0
  68. package/lib/src/controllers/TextStyleController.js.map +1 -0
  69. package/lib/src/controllers/ToolController.d.ts +54 -0
  70. package/lib/src/controllers/ToolController.js +104 -0
  71. package/lib/src/controllers/ToolController.js.map +1 -0
  72. package/lib/src/controllers/UndoManagerController.d.ts +22 -0
  73. package/lib/src/controllers/UndoManagerController.js +56 -0
  74. package/lib/src/controllers/UndoManagerController.js.map +1 -0
  75. package/lib/src/controllers/UtilsController.d.ts +20 -0
  76. package/lib/src/controllers/UtilsController.js +35 -0
  77. package/lib/src/controllers/UtilsController.js.map +1 -0
  78. package/lib/src/controllers/VariableController.d.ts +117 -0
  79. package/lib/src/controllers/VariableController.js +205 -0
  80. package/lib/src/controllers/VariableController.js.map +1 -0
  81. package/lib/src/index.d.ts +93 -0
  82. package/lib/src/index.js +154 -0
  83. package/lib/src/index.js.map +1 -0
  84. package/lib/src/interactions/connector.d.ts +31 -0
  85. package/lib/src/interactions/connector.js +99 -0
  86. package/lib/src/interactions/connector.js.map +1 -0
  87. package/lib/src/setupTests.d.ts +1 -0
  88. package/lib/src/setupTests.js +2 -0
  89. package/lib/src/setupTests.js.map +1 -0
  90. package/lib/src/tests/__mocks__/FrameProperties.d.ts +52 -0
  91. package/lib/src/tests/__mocks__/FrameProperties.js +20 -0
  92. package/lib/src/tests/__mocks__/FrameProperties.js.map +1 -0
  93. package/lib/src/tests/__mocks__/MockImageFrameSource.d.ts +4 -0
  94. package/lib/src/tests/__mocks__/MockImageFrameSource.js +15 -0
  95. package/lib/src/tests/__mocks__/MockImageFrameSource.js.map +1 -0
  96. package/lib/src/tests/__mocks__/animations.d.ts +2 -0
  97. package/lib/src/tests/__mocks__/animations.js +10 -0
  98. package/lib/src/tests/__mocks__/animations.js.map +1 -0
  99. package/lib/src/tests/__mocks__/config.d.ts +5 -0
  100. package/lib/src/tests/__mocks__/config.js +31 -0
  101. package/lib/src/tests/__mocks__/config.js.map +1 -0
  102. package/lib/src/tests/__mocks__/mockDocument.d.ts +1 -0
  103. package/lib/src/tests/__mocks__/mockDocument.js +2 -0
  104. package/lib/src/tests/__mocks__/mockDocument.js.map +1 -0
  105. package/lib/src/tests/controllers/ActionController.test.d.ts +1 -0
  106. package/lib/src/tests/controllers/ActionController.test.js +61 -0
  107. package/lib/src/tests/controllers/ActionController.test.js.map +1 -0
  108. package/lib/src/tests/controllers/AnimationController.test.d.ts +1 -0
  109. package/lib/src/tests/controllers/AnimationController.test.js +91 -0
  110. package/lib/src/tests/controllers/AnimationController.test.js.map +1 -0
  111. package/lib/src/tests/controllers/CanvasController.test.d.ts +1 -0
  112. package/lib/src/tests/controllers/CanvasController.test.js +50 -0
  113. package/lib/src/tests/controllers/CanvasController.test.js.map +1 -0
  114. package/lib/src/tests/controllers/CharacterStyleController.test.d.ts +1 -0
  115. package/lib/src/tests/controllers/CharacterStyleController.test.js +125 -0
  116. package/lib/src/tests/controllers/CharacterStyleController.test.js.map +1 -0
  117. package/lib/src/tests/controllers/ColorStyleController.test.d.ts +1 -0
  118. package/lib/src/tests/controllers/ColorStyleController.test.js +83 -0
  119. package/lib/src/tests/controllers/ColorStyleController.test.js.map +1 -0
  120. package/lib/src/tests/controllers/ConfigurationConnectorController.test.d.ts +1 -0
  121. package/lib/src/tests/controllers/ConfigurationConnectorController.test.js +39 -0
  122. package/lib/src/tests/controllers/ConfigurationConnectorController.test.js.map +1 -0
  123. package/lib/src/tests/controllers/ConnectorController.test.d.ts +1 -0
  124. package/lib/src/tests/controllers/ConnectorController.test.js +77 -0
  125. package/lib/src/tests/controllers/ConnectorController.test.js.map +1 -0
  126. package/lib/src/tests/controllers/DebugController.test.d.ts +1 -0
  127. package/lib/src/tests/controllers/DebugController.test.js +47 -0
  128. package/lib/src/tests/controllers/DebugController.test.js.map +1 -0
  129. package/lib/src/tests/controllers/DocumentController.test.d.ts +1 -0
  130. package/lib/src/tests/controllers/DocumentController.test.js +170 -0
  131. package/lib/src/tests/controllers/DocumentController.test.js.map +1 -0
  132. package/lib/src/tests/controllers/ExperimentController.test.d.ts +1 -0
  133. package/lib/src/tests/controllers/ExperimentController.test.js +53 -0
  134. package/lib/src/tests/controllers/ExperimentController.test.js.map +1 -0
  135. package/lib/src/tests/controllers/FontConnectorController.test.d.ts +1 -0
  136. package/lib/src/tests/controllers/FontConnectorController.test.js +109 -0
  137. package/lib/src/tests/controllers/FontConnectorController.test.js.map +1 -0
  138. package/lib/src/tests/controllers/FontController.test.d.ts +1 -0
  139. package/lib/src/tests/controllers/FontController.test.js +73 -0
  140. package/lib/src/tests/controllers/FontController.test.js.map +1 -0
  141. package/lib/src/tests/controllers/FrameController.test.d.ts +1 -0
  142. package/lib/src/tests/controllers/FrameController.test.js +408 -0
  143. package/lib/src/tests/controllers/FrameController.test.js.map +1 -0
  144. package/lib/src/tests/controllers/LayoutController.test.d.ts +1 -0
  145. package/lib/src/tests/controllers/LayoutController.test.js +144 -0
  146. package/lib/src/tests/controllers/LayoutController.test.js.map +1 -0
  147. package/lib/src/tests/controllers/MediaConnectorController.test.d.ts +1 -0
  148. package/lib/src/tests/controllers/MediaConnectorController.test.js +109 -0
  149. package/lib/src/tests/controllers/MediaConnectorController.test.js.map +1 -0
  150. package/lib/src/tests/controllers/PageController.test.d.ts +1 -0
  151. package/lib/src/tests/controllers/PageController.test.js +58 -0
  152. package/lib/src/tests/controllers/PageController.test.js.map +1 -0
  153. package/lib/src/tests/controllers/ParagraphStyleController.test.d.ts +1 -0
  154. package/lib/src/tests/controllers/ParagraphStyleController.test.js +139 -0
  155. package/lib/src/tests/controllers/ParagraphStyleController.test.js.map +1 -0
  156. package/lib/src/tests/controllers/ShapeController.test.d.ts +1 -0
  157. package/lib/src/tests/controllers/ShapeController.test.js +102 -0
  158. package/lib/src/tests/controllers/ShapeController.test.js.map +1 -0
  159. package/lib/src/tests/controllers/SubscriberContoller.test.d.ts +1 -0
  160. package/lib/src/tests/controllers/SubscriberContoller.test.js +201 -0
  161. package/lib/src/tests/controllers/SubscriberContoller.test.js.map +1 -0
  162. package/lib/src/tests/controllers/TextStyleController.test.d.ts +1 -0
  163. package/lib/src/tests/controllers/TextStyleController.test.js +43 -0
  164. package/lib/src/tests/controllers/TextStyleController.test.js.map +1 -0
  165. package/lib/src/tests/controllers/ToolController.test.d.ts +1 -0
  166. package/lib/src/tests/controllers/ToolController.test.js +72 -0
  167. package/lib/src/tests/controllers/ToolController.test.js.map +1 -0
  168. package/lib/src/tests/controllers/UndoManagerController.test.d.ts +1 -0
  169. package/lib/src/tests/controllers/UndoManagerController.test.js +35 -0
  170. package/lib/src/tests/controllers/UndoManagerController.test.js.map +1 -0
  171. package/lib/src/tests/controllers/UtilsController.test.d.ts +1 -0
  172. package/lib/src/tests/controllers/UtilsController.test.js +33 -0
  173. package/lib/src/tests/controllers/UtilsController.test.js.map +1 -0
  174. package/lib/src/tests/controllers/VariableController.test.d.ts +1 -0
  175. package/lib/src/tests/controllers/VariableController.test.js +161 -0
  176. package/lib/src/tests/controllers/VariableController.test.js.map +1 -0
  177. package/lib/src/tests/index.test.d.ts +1 -0
  178. package/lib/src/tests/index.test.js +26 -0
  179. package/lib/src/tests/index.test.js.map +1 -0
  180. package/lib/src/tests/interactions/connector.test.d.ts +1 -0
  181. package/lib/src/tests/interactions/connector.test.js +24 -0
  182. package/lib/src/tests/interactions/connector.test.js.map +1 -0
  183. package/lib/src/tests/utils/editorResponseData.test.d.ts +1 -0
  184. package/lib/src/tests/utils/editorResponseData.test.js +48 -0
  185. package/lib/src/tests/utils/editorResponseData.test.js.map +1 -0
  186. package/lib/src/tests/utils/getClaculatedValue.test.d.ts +1 -0
  187. package/lib/src/tests/utils/getClaculatedValue.test.js +78 -0
  188. package/lib/src/tests/utils/getClaculatedValue.test.js.map +1 -0
  189. package/lib/src/tests/utils/getFetchUrls.test.d.ts +1 -0
  190. package/lib/src/tests/utils/getFetchUrls.test.js +10 -0
  191. package/lib/src/tests/utils/getFetchUrls.test.js.map +1 -0
  192. package/lib/src/tests/utils/round.test.d.ts +1 -0
  193. package/lib/src/tests/utils/round.test.js +16 -0
  194. package/lib/src/tests/utils/round.test.js.map +1 -0
  195. package/lib/src/types/ActionTypes.d.ts +63 -0
  196. package/lib/src/types/ActionTypes.js +29 -0
  197. package/lib/src/types/ActionTypes.js.map +1 -0
  198. package/lib/src/types/AnimationTypes.d.ts +111 -0
  199. package/lib/src/types/AnimationTypes.js +49 -0
  200. package/lib/src/types/AnimationTypes.js.map +1 -0
  201. package/lib/src/types/CharacterStyleTypes.d.ts +65 -0
  202. package/lib/src/types/CharacterStyleTypes.js +2 -0
  203. package/lib/src/types/CharacterStyleTypes.js.map +1 -0
  204. package/lib/src/types/ColorStyleTypes.d.ts +73 -0
  205. package/lib/src/types/ColorStyleTypes.js +24 -0
  206. package/lib/src/types/ColorStyleTypes.js.map +1 -0
  207. package/lib/src/types/CommonTypes.d.ts +92 -0
  208. package/lib/src/types/CommonTypes.js +2 -0
  209. package/lib/src/types/CommonTypes.js.map +1 -0
  210. package/lib/src/types/ConfigurationTypes.d.ts +6 -0
  211. package/lib/src/types/ConfigurationTypes.js +8 -0
  212. package/lib/src/types/ConfigurationTypes.js.map +1 -0
  213. package/lib/src/types/ConnectorTypes.d.ts +115 -0
  214. package/lib/src/types/ConnectorTypes.js +94 -0
  215. package/lib/src/types/ConnectorTypes.js.map +1 -0
  216. package/lib/src/types/DebugTypes.d.ts +25 -0
  217. package/lib/src/types/DebugTypes.js +8 -0
  218. package/lib/src/types/DebugTypes.js.map +1 -0
  219. package/lib/src/types/DocumentTypes.d.ts +180 -0
  220. package/lib/src/types/DocumentTypes.js +17 -0
  221. package/lib/src/types/DocumentTypes.js.map +1 -0
  222. package/lib/src/types/FontConnectorTypes.d.ts +20 -0
  223. package/lib/src/types/FontConnectorTypes.js +6 -0
  224. package/lib/src/types/FontConnectorTypes.js.map +1 -0
  225. package/lib/src/types/FontTypes.d.ts +15 -0
  226. package/lib/src/types/FontTypes.js +2 -0
  227. package/lib/src/types/FontTypes.js.map +1 -0
  228. package/lib/src/types/FrameTypes.d.ts +156 -0
  229. package/lib/src/types/FrameTypes.js +63 -0
  230. package/lib/src/types/FrameTypes.js.map +1 -0
  231. package/lib/src/types/LayoutTypes.d.ts +61 -0
  232. package/lib/src/types/LayoutTypes.js +6 -0
  233. package/lib/src/types/LayoutTypes.js.map +1 -0
  234. package/lib/src/types/MediaConnectorTypes.d.ts +20 -0
  235. package/lib/src/types/MediaConnectorTypes.js +6 -0
  236. package/lib/src/types/MediaConnectorTypes.js.map +1 -0
  237. package/lib/src/types/PageTypes.d.ts +12 -0
  238. package/lib/src/types/PageTypes.js +2 -0
  239. package/lib/src/types/PageTypes.js.map +1 -0
  240. package/lib/src/types/ParagraphStyleTypes.d.ts +79 -0
  241. package/lib/src/types/ParagraphStyleTypes.js +2 -0
  242. package/lib/src/types/ParagraphStyleTypes.js.map +1 -0
  243. package/lib/src/types/ShapeTypes.d.ts +26 -0
  244. package/lib/src/types/ShapeTypes.js +13 -0
  245. package/lib/src/types/ShapeTypes.js.map +1 -0
  246. package/lib/src/types/TextStyleTypes.d.ts +131 -0
  247. package/lib/src/types/TextStyleTypes.js +68 -0
  248. package/lib/src/types/TextStyleTypes.js.map +1 -0
  249. package/lib/src/types/VariableTypes.d.ts +45 -0
  250. package/lib/src/types/VariableTypes.js +13 -0
  251. package/lib/src/types/VariableTypes.js.map +1 -0
  252. package/lib/src/utils/EditorResponseData.d.ts +3 -0
  253. package/lib/src/utils/EditorResponseData.js +16 -0
  254. package/lib/src/utils/EditorResponseData.js.map +1 -0
  255. package/lib/src/utils/enums.d.ts +30 -0
  256. package/lib/src/utils/enums.js +36 -0
  257. package/lib/src/utils/enums.js.map +1 -0
  258. package/lib/src/utils/getCalculatedValue.d.ts +2 -0
  259. package/lib/src/utils/getCalculatedValue.js +20 -0
  260. package/lib/src/utils/getCalculatedValue.js.map +1 -0
  261. package/lib/src/utils/getFetchUrl.d.ts +2 -0
  262. package/lib/src/utils/getFetchUrl.js +3 -0
  263. package/lib/src/utils/getFetchUrl.js.map +1 -0
  264. package/package.json +89 -0
@@ -0,0 +1,599 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
11
+ if (kind === "m") throw new TypeError("Private method is not writable");
12
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
13
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
14
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
15
+ };
16
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
17
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
18
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
19
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
20
+ };
21
+ var _FrameController_editorAPI;
22
+ import { getCalculatedValue } from '../utils/getCalculatedValue';
23
+ import { getEditorResponseData } from '../utils/EditorResponseData';
24
+ import { ImageSourceTypeEnum, } from '../types/FrameTypes';
25
+ import { ShapeController } from './ShapeController';
26
+ /**
27
+ * The FrameController is responsible for all communication regarding Frames.
28
+ * Methods inside this controller can be called by `window.SDK.frame.{method-name}`
29
+ */
30
+ export class FrameController {
31
+ /**
32
+ * @ignore
33
+ */
34
+ constructor(editorAPI) {
35
+ /**
36
+ * @ignore
37
+ */
38
+ _FrameController_editorAPI.set(this, void 0);
39
+ /**
40
+ * This method returns the list of frames
41
+ * @returns
42
+ */
43
+ this.getFrames = () => __awaiter(this, void 0, void 0, function* () {
44
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
45
+ return res.getFrames().then((result) => getEditorResponseData(result));
46
+ });
47
+ /**
48
+ * This method returns the list of selected frames
49
+ * @returns
50
+ */
51
+ this.getSelectedFrames = () => __awaiter(this, void 0, void 0, function* () {
52
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
53
+ return res.getSelectedFrames().then((result) => getEditorResponseData(result));
54
+ });
55
+ /**
56
+ * This method returns the list of frames by pageId
57
+ * @param pageId The ID of a specific page
58
+ * @returns
59
+ */
60
+ this.getFramesByPageId = (pageId) => __awaiter(this, void 0, void 0, function* () {
61
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
62
+ return res.getFramesByPageId(pageId).then((result) => getEditorResponseData(result));
63
+ });
64
+ /**
65
+ * This method returns a frame by its name
66
+ * @param name The name of a specific frame
67
+ * @returns
68
+ */
69
+ this.getFrameByName = (name) => __awaiter(this, void 0, void 0, function* () {
70
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
71
+ return res.getFrameByName(name).then((result) => getEditorResponseData(result));
72
+ });
73
+ /**
74
+ * This method returns a frame by its id
75
+ * @param id The ID of a specific frame
76
+ * @returns
77
+ */
78
+ this.getFrameById = (id) => __awaiter(this, void 0, void 0, function* () {
79
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
80
+ return res.getFrameById(id).then((result) => getEditorResponseData(result));
81
+ });
82
+ /**
83
+ * This method returns all frame properties on current layout
84
+ * @returns
85
+ */
86
+ this.getFramePropertiesOnSelectedLayout = () => __awaiter(this, void 0, void 0, function* () {
87
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
88
+ return res
89
+ .getFramePropertiesOnSelectedLayout()
90
+ .then((result) => getEditorResponseData(result));
91
+ });
92
+ /**
93
+ * This method returns frame properties for a given frame and layout
94
+ * @param frameId The ID of a specific frame
95
+ * @param layoutId The ID of a specific layout
96
+ * @returns
97
+ */
98
+ this.getFramePropertiesByFrameId = (frameId, layoutId) => __awaiter(this, void 0, void 0, function* () {
99
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
100
+ return res
101
+ .getFramePropertiesByFrameId(frameId, layoutId)
102
+ .then((result) => getEditorResponseData(result));
103
+ });
104
+ /**
105
+ * This method returns frame properties for a given layout
106
+ * @param layoutId The ID of a specific layout
107
+ * @returns
108
+ */
109
+ this.getFramesProperties = (layoutId) => __awaiter(this, void 0, void 0, function* () {
110
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
111
+ return res.getFramesProperties(layoutId).then((result) => getEditorResponseData(result));
112
+ });
113
+ /**
114
+ * This method will reset the frame size (width and height) to the frame's original value
115
+ * @param frameId The ID of a specific frame
116
+ * @returns
117
+ */
118
+ this.resetFrameSize = (frameId) => __awaiter(this, void 0, void 0, function* () {
119
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
120
+ return res.resetFrameSize(frameId).then((result) => getEditorResponseData(result));
121
+ });
122
+ /**
123
+ * This method will select a specific frame
124
+ * @param frameId The ID of a specific frame
125
+ * @returns
126
+ */
127
+ this.selectFrame = (frameId) => __awaiter(this, void 0, void 0, function* () {
128
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
129
+ return res.selectFrames([frameId]).then((result) => getEditorResponseData(result));
130
+ });
131
+ /**
132
+ * This method will select multipleFrames
133
+ * @param frameIds An array of all IDs you want to select
134
+ * @returns
135
+ */
136
+ this.selectMultipleFrames = (frameIds) => __awaiter(this, void 0, void 0, function* () {
137
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
138
+ return res.selectFrames(frameIds).then((result) => getEditorResponseData(result));
139
+ });
140
+ /**
141
+ * This method changes the order of frames in the z-index list.
142
+ * @param orderIndex The index in the list to move to
143
+ * @param frameIdsToMove An array of all IDs you want to move to the given index
144
+ * @returns
145
+ */
146
+ this.reorderFrames = (orderIndex, frameIdsToMove) => __awaiter(this, void 0, void 0, function* () {
147
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
148
+ return res.reorderFrames(orderIndex, frameIdsToMove).then((result) => getEditorResponseData(result));
149
+ });
150
+ /**
151
+ * This method will update the z-index of a frame.
152
+ * @param frameId The ID of the frame you want to change the z-index of
153
+ * @param method The z-index update method to perform
154
+ * @returns
155
+ */
156
+ this.setFrameZIndex = (frameId, method) => __awaiter(this, void 0, void 0, function* () {
157
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
158
+ return res.setFrameZIndex(frameId, method).then((result) => getEditorResponseData(result));
159
+ });
160
+ /**
161
+ * This method will set the height of a specific frame
162
+ * @param frameId The ID of a specific frame
163
+ * @param value The string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
164
+ * @returns
165
+ */
166
+ this.setFrameHeight = (frameId, value) => __awaiter(this, void 0, void 0, function* () {
167
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
168
+ const calc = getCalculatedValue(value);
169
+ if (calc === null || calc === Infinity) {
170
+ return null;
171
+ }
172
+ return res
173
+ .setFrameHeight(frameId, parseFloat(calc.toString()))
174
+ .then((result) => getEditorResponseData(result));
175
+ });
176
+ /**
177
+ * This method will set the rotation angle of a specific frame
178
+ * @param frameId The ID of a specific frame
179
+ * @param value The string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
180
+ * @returns
181
+ */
182
+ this.setFrameRotation = (frameId, value) => __awaiter(this, void 0, void 0, function* () {
183
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
184
+ const calc = getCalculatedValue(value);
185
+ if (calc === null || calc === Infinity) {
186
+ return null;
187
+ }
188
+ return res
189
+ .setFrameRotation(frameId, parseFloat(calc.toString()))
190
+ .then((result) => getEditorResponseData(result));
191
+ });
192
+ /**
193
+ * This method will set the width of a specific frame
194
+ * @param frameId The ID of a specific frame
195
+ * @param value The string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
196
+ * @returns
197
+ */
198
+ this.setFrameWidth = (frameId, value) => __awaiter(this, void 0, void 0, function* () {
199
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
200
+ const calc = getCalculatedValue(value);
201
+ if (calc === null || calc === Infinity) {
202
+ return null;
203
+ }
204
+ return res
205
+ .setFrameWidth(frameId, parseFloat(calc.toString()))
206
+ .then((result) => getEditorResponseData(result));
207
+ });
208
+ /**
209
+ * This method will set the x value of a specific frame
210
+ * @param frameId The ID of a specific frame
211
+ * @param value The string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
212
+ * @returns
213
+ */
214
+ this.setFrameX = (frameId, value) => __awaiter(this, void 0, void 0, function* () {
215
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
216
+ const calc = getCalculatedValue(value);
217
+ if (calc === null || calc === Infinity) {
218
+ return null;
219
+ }
220
+ return res
221
+ .setFrameX(frameId, parseFloat(calc.toString()))
222
+ .then((result) => getEditorResponseData(result));
223
+ });
224
+ /**
225
+ * This method will set the y value of a specific frame
226
+ * @param frameId The ID of a specific frame
227
+ * @param value The string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
228
+ * @returns
229
+ */
230
+ this.setFrameY = (frameId, value) => __awaiter(this, void 0, void 0, function* () {
231
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
232
+ const calc = getCalculatedValue(value);
233
+ if (calc === null || calc === Infinity) {
234
+ return null;
235
+ }
236
+ return res
237
+ .setFrameY(frameId, parseFloat(calc.toString()))
238
+ .then((result) => getEditorResponseData(result));
239
+ });
240
+ /**
241
+ * This method will update the name of a specific frame
242
+ * @param frameId The ID of a specific frame
243
+ * @param frameName The new name that the frame should receive
244
+ * @returns
245
+ */
246
+ this.setFrameName = (frameId, frameName) => __awaiter(this, void 0, void 0, function* () {
247
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
248
+ return res.renameFrame(frameId, frameName).then((result) => getEditorResponseData(result));
249
+ });
250
+ /**
251
+ * This method will reset properties of a specific frame to their original values
252
+ * @param frameId The ID of the frame that needs to get reset
253
+ * @returns
254
+ */
255
+ this.resetFrame = (frameId) => __awaiter(this, void 0, void 0, function* () {
256
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
257
+ return res.resetFrame(frameId).then((result) => getEditorResponseData(result));
258
+ });
259
+ /**
260
+ * This method will reset the x value of a specific frame to its original value
261
+ * @param frameId The ID of the frame that needs to get reset
262
+ * @returns
263
+ */
264
+ this.resetFrameX = (frameId) => __awaiter(this, void 0, void 0, function* () {
265
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
266
+ return res.resetFrameX(frameId).then((result) => getEditorResponseData(result));
267
+ });
268
+ /**
269
+ * This method will reset the y value of a specific frame to its original value
270
+ * @param frameId The ID of the frame that needs to get reset
271
+ * @returns
272
+ */
273
+ this.resetFrameY = (frameId) => __awaiter(this, void 0, void 0, function* () {
274
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
275
+ return res.resetFrameY(frameId).then((result) => getEditorResponseData(result));
276
+ });
277
+ /**
278
+ * This method will reset the rotation value of a specific frame to its original value
279
+ * @param frameId The ID of the frame that needs to get reset
280
+ * @returns
281
+ */
282
+ this.resetFrameRotation = (frameId) => __awaiter(this, void 0, void 0, function* () {
283
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
284
+ return res.resetFrameRotation(frameId).then((result) => getEditorResponseData(result));
285
+ });
286
+ /**
287
+ * This method will reset the width of a specific frame to its original value
288
+ * @param frameId The ID of the frame that needs to get reset
289
+ * @returns
290
+ */
291
+ this.resetFrameWidth = (frameId) => __awaiter(this, void 0, void 0, function* () {
292
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
293
+ return res.resetFrameWidth(frameId).then((result) => getEditorResponseData(result));
294
+ });
295
+ /**
296
+ * This method will reset the height of a specific frame to its original value
297
+ * @param frameId The ID of the frame that needs to get reset
298
+ * @returns
299
+ */
300
+ this.resetFrameHeight = (frameId) => __awaiter(this, void 0, void 0, function* () {
301
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
302
+ return res.resetFrameHeight(frameId).then((result) => getEditorResponseData(result));
303
+ });
304
+ /**
305
+ * This method will reset the fitMode property of a specific frame to its original value
306
+ * @param frameId The ID of the frame that needs to get reset
307
+ * @returns
308
+ */
309
+ this.resetImageFrameFitMode = (frameId) => __awaiter(this, void 0, void 0, function* () {
310
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
311
+ return res.resetImageFrameFitMode(frameId).then((result) => getEditorResponseData(result));
312
+ });
313
+ /**
314
+ * This method will set the visibility property of a specified frame. If set to false the frame will be invisible and vice versa.
315
+ * @param frameId The ID of the frame that needs to get updated
316
+ * @param value True means the frame gets visible, false means the frame gets invisible
317
+ * @returns
318
+ */
319
+ this.setFrameVisibility = (frameId, value) => __awaiter(this, void 0, void 0, function* () {
320
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
321
+ return res.setFrameVisibility(frameId, value).then((result) => getEditorResponseData(result));
322
+ });
323
+ /**
324
+ * This method will remove a specific frame using the Id.
325
+ * @param frameId The ID of the frame that needs to be deleted
326
+ * @returns
327
+ */
328
+ this.removeFrame = (frameId) => __awaiter(this, void 0, void 0, function* () {
329
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
330
+ return res.removeFrame(frameId).then((result) => getEditorResponseData(result));
331
+ });
332
+ /**
333
+ * This method will add a new frame of 'frameType' to the template positioned on the requested
334
+ * coordinates.
335
+ * @param frameType The type of frame to create
336
+ * @param x X coordinate of the new frame within the template
337
+ * @param y Y coordinate of the new frame within the template
338
+ * @param width Width of the new frame within the template
339
+ * @param height Height of the new frame within the template
340
+ * @returns The newly created frame's ID
341
+ */
342
+ this.addFrame = (frameType, x, y, width, height) => __awaiter(this, void 0, void 0, function* () {
343
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
344
+ return res.addFrame(frameType, x, y, width, height).then((result) => getEditorResponseData(result));
345
+ });
346
+ /**
347
+ * This method will add a new frame of 'shapeType' type to the template positioned on the requested
348
+ * coordinates.
349
+ * @param shapeType The type of frame to create
350
+ * @param x X coordinate of the new frame within the template
351
+ * @param y Y coordinate of the new frame within the template
352
+ * @param width Width of the new frame within the template
353
+ * @param height Height of the new frame within the template
354
+ * @returns The newly created frame's ID
355
+ */
356
+ this.addShapeFrame = (shapeType, x, y, width, height) => __awaiter(this, void 0, void 0, function* () {
357
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
358
+ return res.addFrame(shapeType, x, y, width, height).then((result) => getEditorResponseData(result));
359
+ });
360
+ /**
361
+ * This method sets or removes the image source to the ImageFrame
362
+ * @param imageFrameId The ID of the imageFrame where an image needs to be assigned to
363
+ * @param src A new image source
364
+ * @returns
365
+ */
366
+ this.updateImageSource = (imageFrameId, src) => __awaiter(this, void 0, void 0, function* () {
367
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
368
+ const srcJson = src !== null ? JSON.stringify(src) : null;
369
+ return res.setImageSource(imageFrameId, srcJson).then((result) => getEditorResponseData(result));
370
+ });
371
+ /**
372
+ * This method removes the image source from the ImageFrame
373
+ * @param imageFrameId The ID of the imageFrame where an image needs to be removed from
374
+ */
375
+ this.removeImageSource = (imageFrameId) => __awaiter(this, void 0, void 0, function* () {
376
+ return this.updateImageSource(imageFrameId, null);
377
+ });
378
+ /**
379
+ * This method will assign an image from a mediaConnector to the correct ImageFrame
380
+ * @param imageFrameId The ID of the imageFrame where an image needs to be assigned to
381
+ * @param connectorId Unique Id of the media connector
382
+ * @param resourceId Unique Id of the asset that you want to assign to the imageFrame
383
+ * @returns
384
+ */
385
+ this.setImageFromConnector = (imageFrameId, connectorId, resourceId) => __awaiter(this, void 0, void 0, function* () {
386
+ const src = {
387
+ assetId: resourceId,
388
+ connectorId: connectorId,
389
+ sourceType: ImageSourceTypeEnum.connector,
390
+ };
391
+ return this.updateImageSource(imageFrameId, src);
392
+ });
393
+ /**
394
+ * This method will assign an image from url to the correct ImageFrame
395
+ * Make sure the url can be accessed by the editor.
396
+ * @param imageFrameId The ID of the imageFrame where an image needs to be assigned to
397
+ * @param url A valid image uri
398
+ * @returns
399
+ */
400
+ this.setImageFromUrl = (imageFrameId, url) => __awaiter(this, void 0, void 0, function* () {
401
+ const src = { url: url, sourceType: ImageSourceTypeEnum.url };
402
+ return this.updateImageSource(imageFrameId, src);
403
+ });
404
+ /**
405
+ * This method will set the fitMode property of a specified image frame.
406
+ * @param imageFrameId The ID of the imageFrame that needs to get updated.
407
+ * @param fitMode The new fitMode that you want to set to the imageFrame.
408
+ * @returns
409
+ */
410
+ this.setImageFrameFitMode = (imageFrameId, fitMode) => __awaiter(this, void 0, void 0, function* () {
411
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
412
+ return res.setImageFrameFitMode(imageFrameId, fitMode).then((result) => getEditorResponseData(result));
413
+ });
414
+ /**
415
+ * This method will set the constrainProportions property of a specified frame.
416
+ * @param frameId The ID of the frame that needs to get updated.
417
+ * @param constrainProportions The new constraint that you want to set to the frame.
418
+ * @returns
419
+ */
420
+ this.setFrameConstrainProportions = (frameId, constrainProportions) => __awaiter(this, void 0, void 0, function* () {
421
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
422
+ return res
423
+ .setFrameConstrainProportions(frameId, constrainProportions)
424
+ .then((result) => getEditorResponseData(result));
425
+ });
426
+ /**
427
+ * This method will set the vertical alignment property of a specified frame.
428
+ * @param frameId The ID of the frame that needs to get updated
429
+ * @param verticalAlign The new vertical alignment to be set to the frame.
430
+ * @returns
431
+ */
432
+ this.setVerticalAlignment = (frameId, verticalAlign) => __awaiter(this, void 0, void 0, function* () {
433
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
434
+ return res.setVerticalAlignment(frameId, verticalAlign).then((result) => getEditorResponseData(result));
435
+ });
436
+ /**
437
+ * This method will set the min copyFitting property of a specified frame.
438
+ * @param frameId The ID of the frame that needs to get updated
439
+ * @param value The new min copyFitting value to be set to the frame.
440
+ * @returns
441
+ */
442
+ this.setMinCopyfitting = (frameId, value) => __awaiter(this, void 0, void 0, function* () {
443
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
444
+ const calc = getCalculatedValue(value);
445
+ if (calc === null || calc === Infinity) {
446
+ return null;
447
+ }
448
+ return res
449
+ .setMinCopyfitting(frameId, parseFloat(calc.toString()))
450
+ .then((result) => getEditorResponseData(result));
451
+ });
452
+ /**
453
+ * This method will set the max copyFitting property of a specified frame.
454
+ * @param frameId The ID of the frame that needs to get updated
455
+ * @param value The new max copyFitting value to be set to the frame.
456
+ * @returns
457
+ */
458
+ this.setMaxCopyfitting = (frameId, value) => __awaiter(this, void 0, void 0, function* () {
459
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
460
+ const calc = getCalculatedValue(value);
461
+ if (calc === null || calc === Infinity) {
462
+ return null;
463
+ }
464
+ return res
465
+ .setMaxCopyfitting(frameId, parseFloat(calc.toString()))
466
+ .then((result) => getEditorResponseData(result));
467
+ });
468
+ /**
469
+ * This method will enable copyFitting on a specified frame.
470
+ * @param frameId The ID of the frame that needs to get updated
471
+ * @param value The new value to be set to the frame.
472
+ * @returns
473
+ */
474
+ this.setEnableCopyfitting = (frameId, value) => __awaiter(this, void 0, void 0, function* () {
475
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
476
+ return res.setEnableCopyfitting(frameId, value).then((result) => getEditorResponseData(result));
477
+ });
478
+ /**
479
+ * This method will reset the frame minCopyfitting to the frame's original value
480
+ * @param frameId The ID of a specific frame
481
+ * @returns
482
+ */
483
+ this.resetMinCopyfitting = (frameId) => __awaiter(this, void 0, void 0, function* () {
484
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
485
+ return res.resetMinCopyfitting(frameId).then((result) => getEditorResponseData(result));
486
+ });
487
+ /**
488
+ * This method will reset the frame maxCopyfitting to the frame's original value
489
+ * @param frameId The ID of a specific frame
490
+ * @returns
491
+ */
492
+ this.resetMaxCopyfitting = (frameId) => __awaiter(this, void 0, void 0, function* () {
493
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
494
+ return res.resetMaxCopyfitting(frameId).then((result) => getEditorResponseData(result));
495
+ });
496
+ /**
497
+ * This method will reset the frame enableCopyfitting to the frame's original value
498
+ * @param frameId The ID of a specific frame
499
+ * @returns
500
+ */
501
+ this.resetEnableCopyfitting = (frameId) => __awaiter(this, void 0, void 0, function* () {
502
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
503
+ return res.resetEnableCopyfitting(frameId).then((result) => getEditorResponseData(result));
504
+ });
505
+ /**
506
+ * This method will set the visibility of the shape fill.
507
+ * @param shapeFrameId The ID of the shapeFrame that needs to get updated.
508
+ * @param enableFill Whether the shape fill is visible.
509
+ * @returns
510
+ */
511
+ this.setShapeFrameEnableFill = (shapeFrameId, enableFill) => __awaiter(this, void 0, void 0, function* () {
512
+ return this.shapeController.setEnableFill(shapeFrameId, enableFill);
513
+ });
514
+ /**
515
+ * This method will set the shape fill color of a specified shape frame.
516
+ * @param shapeFrameId The ID of the shapeFrame that needs to get updated.
517
+ * @param fillColor The new shape fill color that you want to set to the shapeFrame.
518
+ * @returns
519
+ */
520
+ this.setShapeFrameFillColor = (shapeFrameId, fillColor) => __awaiter(this, void 0, void 0, function* () {
521
+ return this.shapeController.setFillColor(shapeFrameId, fillColor);
522
+ });
523
+ /**
524
+ * This method will set the visibility of the shape stroke.
525
+ * @param shapeFrameId The ID of the shapeFrame that needs to get updated.
526
+ * @param enableStroke Whether the shape stroke is visible.
527
+ * @returns
528
+ */
529
+ this.setShapeFrameEnableStroke = (shapeFrameId, enableStroke) => __awaiter(this, void 0, void 0, function* () {
530
+ return this.shapeController.setEnableStroke(shapeFrameId, enableStroke);
531
+ });
532
+ /**
533
+ * This method will set the shape stroke color of a specified shape frame.
534
+ * @param shapeFrameId The ID of the shapeFrame that needs to get updated.
535
+ * @param strokeColor The new shape stroke color that you want to set to the shapeFrame.
536
+ * @returns
537
+ */
538
+ this.setShapeFrameStrokeColor = (shapeFrameId, strokeColor) => __awaiter(this, void 0, void 0, function* () {
539
+ return this.shapeController.setStrokeColor(shapeFrameId, strokeColor);
540
+ });
541
+ /**
542
+ * This method will set the shape stroke weight of a specified shape frame.
543
+ * @param shapeFrameId The ID of the shapeFrame that needs to get updated.
544
+ * @param strokeWeight The new shape stroke weight that you want to set to the shapeFrame.
545
+ * @returns
546
+ */
547
+ this.setShapeFrameStrokeWeight = (shapeFrameId, strokeWeight) => __awaiter(this, void 0, void 0, function* () {
548
+ return this.shapeController.setStrokeWeight(shapeFrameId, strokeWeight);
549
+ });
550
+ /**
551
+ * This method will set the blend mode of a specified shape frame
552
+ * @param frameId The ID of a specific frame
553
+ * @param blendMode The blend mode
554
+ * @returns
555
+ */
556
+ this.setFrameBlendMode = (frameId, blendMode) => __awaiter(this, void 0, void 0, function* () {
557
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
558
+ return res.setFrameBlendMode(frameId, blendMode).then((result) => getEditorResponseData(result));
559
+ });
560
+ /**
561
+ * This method will make the specified image frame go into cropping mode.
562
+ * @param frameId The ID of a specific image frame
563
+ * @returns
564
+ */
565
+ this.enterCropMode = (frameId) => __awaiter(this, void 0, void 0, function* () {
566
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
567
+ return res.enterCropMode(frameId).then((result) => getEditorResponseData(result));
568
+ });
569
+ /**
570
+ * This method will exit cropping mode while saving the applied crop.
571
+ * @returns
572
+ */
573
+ this.applyCropMode = () => __awaiter(this, void 0, void 0, function* () {
574
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
575
+ return res.applyCropMode().then((result) => getEditorResponseData(result));
576
+ });
577
+ /**
578
+ * This method will reset the currently applied crop mode and apply the last selected fit mode again.
579
+ * @param frameId The ID of a specific image frame
580
+ * @returns
581
+ */
582
+ this.resetCropMode = (frameId) => __awaiter(this, void 0, void 0, function* () {
583
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
584
+ return res.resetCropMode(frameId).then((result) => getEditorResponseData(result));
585
+ });
586
+ /**
587
+ * This method will exit cropping mode without saving the applied crop.
588
+ * @returns
589
+ */
590
+ this.cancelCropMode = () => __awaiter(this, void 0, void 0, function* () {
591
+ const res = yield __classPrivateFieldGet(this, _FrameController_editorAPI, "f");
592
+ return res.cancelCropMode().then((result) => getEditorResponseData(result));
593
+ });
594
+ __classPrivateFieldSet(this, _FrameController_editorAPI, editorAPI, "f");
595
+ this.shapeController = new ShapeController(__classPrivateFieldGet(this, _FrameController_editorAPI, "f"));
596
+ }
597
+ }
598
+ _FrameController_editorAPI = new WeakMap();
599
+ //# sourceMappingURL=FrameController.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FrameController.js","sourceRoot":"","sources":["../../../src/controllers/FrameController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EASH,mBAAmB,GAGtB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;GAGG;AACH,MAAM,OAAO,eAAe;IAMxB;;OAEG;IACH,YAAY,SAAoB;QARhC;;WAEG;QACH,6CAAsB;QAetB;;;WAGG;QACH,cAAS,GAAG,GAAS,EAAE;YACnB,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,kCAAW,CAAC;YAClC,OAAO,GAAG,CAAC,SAAS,EAAE,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,qBAAqB,CAAc,MAA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