@aurigma/design-atoms-model 7.0.34 → 7.0.37

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 (330) hide show
  1. package/Collection.js +271 -514
  2. package/Collection.js.map +1 -1
  3. package/Colors/CmykColor.js +35 -69
  4. package/Colors/CmykColor.js.map +1 -1
  5. package/Colors/Color.js +11 -19
  6. package/Colors/Color.js.map +1 -1
  7. package/Colors/GrayscaleColor.js +23 -45
  8. package/Colors/GrayscaleColor.js.map +1 -1
  9. package/Colors/HsbColor.js +67 -85
  10. package/Colors/HsbColor.js.map +1 -1
  11. package/Colors/Ink.js +20 -35
  12. package/Colors/Ink.js.map +1 -1
  13. package/Colors/LabColor.js +29 -59
  14. package/Colors/LabColor.js.map +1 -1
  15. package/Colors/Palette.js +2 -21
  16. package/Colors/Palette.js.map +1 -1
  17. package/Colors/ProcessColor.js +24 -54
  18. package/Colors/ProcessColor.js.map +1 -1
  19. package/Colors/RgbColor.js +31 -61
  20. package/Colors/RgbColor.js.map +1 -1
  21. package/Colors/RgbColors.js +22 -54
  22. package/Colors/RgbColors.js.map +1 -1
  23. package/Colors/SpotColor.js +34 -68
  24. package/Colors/SpotColor.js.map +1 -1
  25. package/Colors/Swatch.js +16 -40
  26. package/Colors/Swatch.js.map +1 -1
  27. package/Colors/ValidationUtils.js +3 -5
  28. package/Colors/ValidationUtils.js.map +1 -1
  29. package/ColorsOld/CmykColor.js +54 -80
  30. package/ColorsOld/CmykColor.js.map +1 -1
  31. package/ColorsOld/Color.d.ts +1 -1
  32. package/ColorsOld/Color.js +25 -34
  33. package/ColorsOld/Color.js.map +1 -1
  34. package/ColorsOld/ColorFactory.js +30 -40
  35. package/ColorsOld/ColorFactory.js.map +1 -1
  36. package/ColorsOld/GrayscaleColor.js +29 -54
  37. package/ColorsOld/GrayscaleColor.js.map +1 -1
  38. package/ColorsOld/HsbColor.js +29 -35
  39. package/ColorsOld/HsbColor.js.map +1 -1
  40. package/ColorsOld/LabColor.js +35 -56
  41. package/ColorsOld/LabColor.js.map +1 -1
  42. package/ColorsOld/RgbColor.js +73 -114
  43. package/ColorsOld/RgbColor.js.map +1 -1
  44. package/ColorsOld/SpotColor.js +32 -53
  45. package/ColorsOld/SpotColor.js.map +1 -1
  46. package/ColorsOld/Utils.js +9 -13
  47. package/ColorsOld/Utils.js.map +1 -1
  48. package/Configuration/IRenderingConfig.js +1 -0
  49. package/Configuration/WatermarkConfig.js +17 -33
  50. package/Configuration/WatermarkConfig.js.map +1 -1
  51. package/Configuration/index.js +1 -0
  52. package/Configuration/index.js.map +1 -1
  53. package/Configuration.js +7 -11
  54. package/Configuration.js.map +1 -1
  55. package/EquatableKeyDictionary.js +43 -127
  56. package/EquatableKeyDictionary.js.map +1 -1
  57. package/EventObject.js +59 -136
  58. package/EventObject.js.map +1 -1
  59. package/Exception.d.ts +1 -1
  60. package/Exception.js +47 -88
  61. package/Exception.js.map +1 -1
  62. package/INotifyPropertyChanged.d.ts +1 -1
  63. package/INotifyPropertyChanged.js +1 -0
  64. package/Math/Array.js +3 -3
  65. package/Math/Array.js.map +1 -1
  66. package/Math/Common.js +13 -15
  67. package/Math/Common.js.map +1 -1
  68. package/Math/ILtrb.js +1 -0
  69. package/Math/IPoint.js +1 -0
  70. package/Math/ISize.js +1 -0
  71. package/Math/Margin.js +62 -99
  72. package/Math/Margin.js.map +1 -1
  73. package/Math/Matrix.js +63 -94
  74. package/Math/Matrix.js.map +1 -1
  75. package/Math/Path.d.ts +1 -1
  76. package/Math/Path.js +149 -234
  77. package/Math/Path.js.map +1 -1
  78. package/Math/PointF.js +31 -34
  79. package/Math/PointF.js.map +1 -1
  80. package/Math/RectangleF.js +119 -159
  81. package/Math/RectangleF.js.map +1 -1
  82. package/Math/RotatedRectangleF.js +132 -147
  83. package/Math/RotatedRectangleF.js.map +1 -1
  84. package/Math/SizeF.js +10 -12
  85. package/Math/SizeF.js.map +1 -1
  86. package/Math/Transform.js +50 -80
  87. package/Math/Transform.js.map +1 -1
  88. package/Math/index.js +3 -0
  89. package/Math/index.js.map +1 -1
  90. package/Product/Constraints/ContainerConstraints.js +11 -13
  91. package/Product/Constraints/ContainerConstraints.js.map +1 -1
  92. package/Product/Constraints/MaxArtworkSizeConstraints.d.ts +1 -1
  93. package/Product/Constraints/MaxArtworkSizeConstraints.js +10 -12
  94. package/Product/Constraints/MaxArtworkSizeConstraints.js.map +1 -1
  95. package/Product/Constraints/PrintingTechniqueConstraints.js +10 -13
  96. package/Product/Constraints/PrintingTechniqueConstraints.js.map +1 -1
  97. package/Product/Container.d.ts +10 -10
  98. package/Product/Container.js +253 -375
  99. package/Product/Container.js.map +1 -1
  100. package/Product/ContainerVisualization.d.ts +1 -0
  101. package/Product/ContainerVisualization.js +31 -56
  102. package/Product/ContainerVisualization.js.map +1 -1
  103. package/Product/Convert/CornerRadiusConverter.js +32 -34
  104. package/Product/Convert/CornerRadiusConverter.js.map +1 -1
  105. package/Product/CropMark.js +28 -40
  106. package/Product/CropMark.js.map +1 -1
  107. package/Product/Decorators/Factory/AbstractFactory.js +13 -23
  108. package/Product/Decorators/Factory/AbstractFactory.js.map +1 -1
  109. package/Product/Decorators/Factory/CollectionFactory.js +10 -45
  110. package/Product/Decorators/Factory/CollectionFactory.js.map +1 -1
  111. package/Product/Decorators/Factory/ColorFactory.js +13 -35
  112. package/Product/Decorators/Factory/ColorFactory.js.map +1 -1
  113. package/Product/Decorators/Factory/ObjectFactory.js +10 -45
  114. package/Product/Decorators/Factory/ObjectFactory.js.map +1 -1
  115. package/Product/Decorators/Factory/SimpleFactory.js +11 -21
  116. package/Product/Decorators/Factory/SimpleFactory.js.map +1 -1
  117. package/Product/Decorators/Interfaces/IInputPropertyMetadata.d.ts +1 -1
  118. package/Product/Decorators/Interfaces/IInputPropertyMetadata.js +1 -0
  119. package/Product/Decorators/Interfaces/IObjectMetadata.js +1 -0
  120. package/Product/Decorators/Interfaces/IPropertyMetadata.js +1 -0
  121. package/Product/Decorators/ItemsMetadata.js +11 -13
  122. package/Product/Decorators/ItemsMetadata.js.map +1 -1
  123. package/Product/Decorators/Property.js +4 -4
  124. package/Product/Decorators/Property.js.map +1 -1
  125. package/Product/Decorators/PropertyChanged.js +1 -1
  126. package/Product/Decorators/PropertyChanged.js.map +1 -1
  127. package/Product/Decorators/index.js +1 -0
  128. package/Product/Decorators/index.js.map +1 -1
  129. package/Product/Effects/ColorDictionaryEntry.js +3 -5
  130. package/Product/Effects/ColorDictionaryEntry.js.map +1 -1
  131. package/Product/Effects/NDEffectParameters.js +2 -6
  132. package/Product/Effects/NDEffectParameters.js.map +1 -1
  133. package/Product/Effects/NDEffects.d.ts +1 -0
  134. package/Product/Effects/NDEffects.js +20 -27
  135. package/Product/Effects/NDEffects.js.map +1 -1
  136. package/Product/Effects/RecolorEffectParameters.d.ts +1 -0
  137. package/Product/Effects/RecolorEffectParameters.js +44 -89
  138. package/Product/Effects/RecolorEffectParameters.js.map +1 -1
  139. package/Product/IGetAllItemsOptions.js +1 -0
  140. package/Product/InteractiveZone.js +34 -66
  141. package/Product/InteractiveZone.js.map +1 -1
  142. package/Product/Interfaces/IColorWithTitle.js +1 -0
  143. package/Product/Interfaces/IDataSet.js +1 -0
  144. package/Product/Interfaces/IFontSettings.js +1 -0
  145. package/Product/Interfaces/IItemData.js +1 -0
  146. package/Product/Interfaces/IPdfMetadata.js +1 -0
  147. package/Product/Interfaces/IProductThemeConfig.js +1 -0
  148. package/Product/Interfaces/IShadowSettings.js +1 -0
  149. package/Product/Interfaces/IStrokeSettings.js +1 -0
  150. package/Product/Interfaces/index.js +3 -0
  151. package/Product/Interfaces/index.js.map +1 -1
  152. package/Product/ItemMask.js +20 -26
  153. package/Product/ItemMask.js.map +1 -1
  154. package/Product/Items/ArchedTextItem.js +65 -100
  155. package/Product/Items/ArchedTextItem.js.map +1 -1
  156. package/Product/Items/AutoScaledTextItem.js +35 -62
  157. package/Product/Items/AutoScaledTextItem.js.map +1 -1
  158. package/Product/Items/BarcodeData.d.ts +1 -1
  159. package/Product/Items/BarcodeData.js +62 -91
  160. package/Product/Items/BarcodeData.js.map +1 -1
  161. package/Product/Items/BarcodeItem.js +249 -298
  162. package/Product/Items/BarcodeItem.js.map +1 -1
  163. package/Product/Items/BarcodePermissions.js +38 -52
  164. package/Product/Items/BarcodePermissions.js.map +1 -1
  165. package/Product/Items/BaseItem.js +30 -53
  166. package/Product/Items/BaseItem.js.map +1 -1
  167. package/Product/Items/BaseTextItem.d.ts +2 -2
  168. package/Product/Items/BaseTextItem.js +451 -625
  169. package/Product/Items/BaseTextItem.js.map +1 -1
  170. package/Product/Items/BoundedTextItem.js +184 -255
  171. package/Product/Items/BoundedTextItem.js.map +1 -1
  172. package/Product/Items/ClipartItem.js +82 -175
  173. package/Product/Items/ClipartItem.js.map +1 -1
  174. package/Product/Items/ContentItem.js +52 -80
  175. package/Product/Items/ContentItem.js.map +1 -1
  176. package/Product/Items/ContentPermissions.js +36 -47
  177. package/Product/Items/ContentPermissions.js.map +1 -1
  178. package/Product/Items/CurvedTextItem.js +106 -158
  179. package/Product/Items/CurvedTextItem.js.map +1 -1
  180. package/Product/Items/DashedLineItem.js +45 -76
  181. package/Product/Items/DashedLineItem.js.map +1 -1
  182. package/Product/Items/EllipseItem.js +11 -31
  183. package/Product/Items/EllipseItem.js.map +1 -1
  184. package/Product/Items/FrontEndPermissions.js +20 -26
  185. package/Product/Items/FrontEndPermissions.js.map +1 -1
  186. package/Product/Items/GridItem.js +107 -162
  187. package/Product/Items/GridItem.js.map +1 -1
  188. package/Product/Items/GroupItem.js +95 -172
  189. package/Product/Items/GroupItem.js.map +1 -1
  190. package/Product/Items/GroupItemPermissions.js +42 -56
  191. package/Product/Items/GroupItemPermissions.js.map +1 -1
  192. package/Product/Items/ImageItem.d.ts +9 -4
  193. package/Product/Items/ImageItem.js +319 -430
  194. package/Product/Items/ImageItem.js.map +1 -1
  195. package/Product/Items/ImageMetaData.js +14 -15
  196. package/Product/Items/ImageMetaData.js.map +1 -1
  197. package/Product/Items/ImagePermissions.js +42 -56
  198. package/Product/Items/ImagePermissions.js.map +1 -1
  199. package/Product/Items/ImageViolationSettings.js +18 -35
  200. package/Product/Items/ImageViolationSettings.js.map +1 -1
  201. package/Product/Items/InStringPlaceholder.d.ts +2 -1
  202. package/Product/Items/InStringPlaceholder.js +52 -101
  203. package/Product/Items/InStringPlaceholder.js.map +1 -1
  204. package/Product/Items/Item.d.ts +1 -1
  205. package/Product/Items/Item.js +278 -370
  206. package/Product/Items/Item.js.map +1 -1
  207. package/Product/Items/ItemPermissions.js +54 -73
  208. package/Product/Items/ItemPermissions.js.map +1 -1
  209. package/Product/Items/ItemToolbarPermissions.js +61 -80
  210. package/Product/Items/ItemToolbarPermissions.js.map +1 -1
  211. package/Product/Items/LayoutItem.js +241 -326
  212. package/Product/Items/LayoutItem.js.map +1 -1
  213. package/Product/Items/LineItem.js +109 -156
  214. package/Product/Items/LineItem.js.map +1 -1
  215. package/Product/Items/LinePermissions.js +29 -39
  216. package/Product/Items/LinePermissions.js.map +1 -1
  217. package/Product/Items/ManipulationPermissions.d.ts +1 -1
  218. package/Product/Items/ManipulationPermissions.js +94 -135
  219. package/Product/Items/ManipulationPermissions.js.map +1 -1
  220. package/Product/Items/OpenTypeFeature.d.ts +1 -1
  221. package/Product/Items/OpenTypeFeature.js +3 -5
  222. package/Product/Items/OpenTypeFeature.js.map +1 -1
  223. package/Product/Items/OverlayEffect.js +56 -70
  224. package/Product/Items/OverlayEffect.js.map +1 -1
  225. package/Product/Items/ParagraphSettings.js +9 -11
  226. package/Product/Items/ParagraphSettings.js.map +1 -1
  227. package/Product/Items/PathBoundedTextItem.js +116 -166
  228. package/Product/Items/PathBoundedTextItem.js.map +1 -1
  229. package/Product/Items/PathBoundedTextPermissions.js +20 -26
  230. package/Product/Items/PathBoundedTextPermissions.js.map +1 -1
  231. package/Product/Items/PlaceholderItem.d.ts +1 -1
  232. package/Product/Items/PlaceholderItem.js +310 -419
  233. package/Product/Items/PlaceholderItem.js.map +1 -1
  234. package/Product/Items/PlaceholderPermissions.js +38 -47
  235. package/Product/Items/PlaceholderPermissions.js.map +1 -1
  236. package/Product/Items/PlainTextItem.js +45 -74
  237. package/Product/Items/PlainTextItem.js.map +1 -1
  238. package/Product/Items/PolylineItem.js +51 -81
  239. package/Product/Items/PolylineItem.js.map +1 -1
  240. package/Product/Items/RectangleItem.js +10 -30
  241. package/Product/Items/RectangleItem.js.map +1 -1
  242. package/Product/Items/ResizeGripsPermissions.d.ts +5 -4
  243. package/Product/Items/ResizeGripsPermissions.js +75 -94
  244. package/Product/Items/ResizeGripsPermissions.js.map +1 -1
  245. package/Product/Items/ShadowSettings.js +51 -69
  246. package/Product/Items/ShadowSettings.js.map +1 -1
  247. package/Product/Items/ShapeItem.js +182 -250
  248. package/Product/Items/ShapeItem.js.map +1 -1
  249. package/Product/Items/ShapePermissions.js +38 -52
  250. package/Product/Items/ShapePermissions.js.map +1 -1
  251. package/Product/Items/ShapeViolationSettings.js +18 -36
  252. package/Product/Items/ShapeViolationSettings.js.map +1 -1
  253. package/Product/Items/Size.js +7 -11
  254. package/Product/Items/Size.js.map +1 -1
  255. package/Product/Items/SmartItem.js +21 -41
  256. package/Product/Items/SmartItem.js.map +1 -1
  257. package/Product/Items/StrokeSettings.js +48 -62
  258. package/Product/Items/StrokeSettings.js.map +1 -1
  259. package/Product/Items/TextEnums.d.ts +2 -1
  260. package/Product/Items/TextEnums.js +1 -0
  261. package/Product/Items/TextEnums.js.map +1 -1
  262. package/Product/Items/TextPermissions.js +56 -58
  263. package/Product/Items/TextPermissions.js.map +1 -1
  264. package/Product/Items/TextViolationSettings.js +23 -40
  265. package/Product/Items/TextViolationSettings.js.map +1 -1
  266. package/Product/Items/ThemeBinding.d.ts +2 -1
  267. package/Product/Items/ThemeBinding.js +13 -15
  268. package/Product/Items/ThemeBinding.js.map +1 -1
  269. package/Product/Items/ViolationSettings.js +26 -44
  270. package/Product/Items/ViolationSettings.js.map +1 -1
  271. package/Product/Items/VisualizationPermissions.js +29 -39
  272. package/Product/Items/VisualizationPermissions.js.map +1 -1
  273. package/Product/ItemsData/ItemData.js +8 -24
  274. package/Product/ItemsData/ItemData.js.map +1 -1
  275. package/Product/ModelComponent.js +41 -63
  276. package/Product/ModelComponent.js.map +1 -1
  277. package/Product/PrintArea.d.ts +1 -0
  278. package/Product/PrintArea.js +132 -178
  279. package/Product/PrintArea.js.map +1 -1
  280. package/Product/Product.js +67 -105
  281. package/Product/Product.js.map +1 -1
  282. package/Product/SafetyLine.d.ts +1 -1
  283. package/Product/SafetyLine.js +90 -124
  284. package/Product/SafetyLine.js.map +1 -1
  285. package/Product/Surface.d.ts +2 -1
  286. package/Product/Surface.js +193 -287
  287. package/Product/Surface.js.map +1 -1
  288. package/Product/SurfaceMockup.js +40 -73
  289. package/Product/SurfaceMockup.js.map +1 -1
  290. package/Product/Uuid.js +19 -25
  291. package/Product/Uuid.js.map +1 -1
  292. package/Product/Watermark.js +5 -9
  293. package/Product/Watermark.js.map +1 -1
  294. package/Product/index.js +1 -0
  295. package/Product/index.js.map +1 -1
  296. package/Serialization/IProductSerializer.js +1 -0
  297. package/Utils/Environment.d.ts +1 -1
  298. package/Utils/Environment.js +24 -44
  299. package/Utils/Environment.js.map +1 -1
  300. package/Utils/Exceptions.js +5 -5
  301. package/Utils/Exceptions.js.map +1 -1
  302. package/Utils/Items.js +19 -19
  303. package/Utils/Items.js.map +1 -1
  304. package/Utils/Types/Action.d.ts +5 -1
  305. package/Utils/Types/Action.js +1 -0
  306. package/Utils/Types/AnyFunction.d.ts +1 -1
  307. package/Utils/Types/AnyFunction.js +1 -0
  308. package/Utils/Types/Func.d.ts +1 -1
  309. package/Utils/Types/Func.js +1 -0
  310. package/Utils/Types/index.js +3 -0
  311. package/Utils/Types/index.js.map +1 -1
  312. package/Utils/Utils.d.ts +14 -5
  313. package/Utils/Utils.js +185 -298
  314. package/Utils/Utils.js.map +1 -1
  315. package/Utils/debounce.d.ts +29 -0
  316. package/Utils/debounce.js +106 -0
  317. package/Utils/debounce.js.map +1 -0
  318. package/Utils/index.d.ts +2 -0
  319. package/Utils/index.js +3 -0
  320. package/Utils/index.js.map +1 -1
  321. package/Utils/throttle.d.ts +16 -0
  322. package/Utils/throttle.js +25 -0
  323. package/Utils/throttle.js.map +1 -0
  324. package/Validators/CmykComponentValidator.js +13 -15
  325. package/Validators/CmykComponentValidator.js.map +1 -1
  326. package/Version.d.ts +1 -1
  327. package/Version.js +1 -1
  328. package/Version.js.map +1 -1
  329. package/package.json +3 -8
  330. package/typings/structured-clone.d.ts +5 -0
@@ -1,121 +1,76 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
14
1
  import { Exception } from "../../Exception";
15
2
  import { EffectParameters } from "./NDEffectParameters";
16
3
  import { Collection } from "../../Collection";
17
4
  import { ColorDictionaryEntry } from "./ColorDictionaryEntry";
18
- var RecolorEffectParameters = /** @class */ (function (_super) {
19
- __extends(RecolorEffectParameters, _super);
20
- function RecolorEffectParameters() {
21
- var _this = _super !== null && _super.apply(this, arguments) || this;
22
- _this.defaultColorReplacements = new Map();
23
- _this.currentColorReplacements = new Map();
24
- return _this;
5
+ export class RecolorEffectParameters extends EffectParameters {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.defaultColorReplacements = new Map();
9
+ this.currentColorReplacements = new Map();
25
10
  }
26
- Object.defineProperty(RecolorEffectParameters.prototype, "defaultColorReplacementValues", {
27
- get: function () {
28
- return Array.from(this.defaultColorReplacements.values());
29
- },
30
- enumerable: true,
31
- configurable: true
32
- });
33
- Object.defineProperty(RecolorEffectParameters.prototype, "defaultColorReplacementKeys", {
34
- get: function () {
35
- return Array.from(this.defaultColorReplacements.keys());
36
- },
37
- enumerable: true,
38
- configurable: true
39
- });
40
- Object.defineProperty(RecolorEffectParameters.prototype, "currentColorReplacementValues", {
41
- get: function () {
42
- return Array.from(this.currentColorReplacements.values());
43
- },
44
- enumerable: true,
45
- configurable: true
46
- });
47
- Object.defineProperty(RecolorEffectParameters.prototype, "currentColorReplacementKeys", {
48
- get: function () {
49
- return Array.from(this.currentColorReplacements.keys());
50
- },
51
- enumerable: true,
52
- configurable: true
53
- });
54
- RecolorEffectParameters.prototype.setReplacementColor = function (color, index) {
55
- var keyColor = this.currentColorReplacementValues[index];
11
+ get defaultColorReplacementValues() {
12
+ return Array.from(this.defaultColorReplacements.values());
13
+ }
14
+ get defaultColorReplacementKeys() {
15
+ return Array.from(this.defaultColorReplacements.keys());
16
+ }
17
+ get currentColorReplacementValues() {
18
+ return Array.from(this.currentColorReplacements.values());
19
+ }
20
+ get currentColorReplacementKeys() {
21
+ return Array.from(this.currentColorReplacements.keys());
22
+ }
23
+ setReplacementColor(color, index) {
24
+ const keyColor = this.currentColorReplacementValues[index];
56
25
  if (keyColor != null) {
57
26
  this.currentColorReplacements.set(keyColor, color);
58
27
  }
59
28
  else {
60
- throw new Exception("Key with index: " + index + " not found in colorReplacementDictionary!");
29
+ throw new Exception(`Key with index: ${index} not found in colorReplacementDictionary!`);
61
30
  }
62
- };
63
- RecolorEffectParameters.prototype.equals = function (recolorParams) {
64
- var _this = this;
31
+ }
32
+ equals(recolorParams) {
65
33
  var _a;
66
34
  if (recolorParams == null)
67
35
  return false;
68
- var replacementKeysIsEqual = recolorParams.currentColorReplacementKeys.every(function (color, index) {
69
- return color.equals(_this.currentColorReplacementKeys[index]);
70
- });
71
- var replacementValueIsEqual = recolorParams.currentColorReplacementValues.every(function (color, index) {
72
- return color.equals(_this.currentColorReplacementValues[index]);
73
- });
74
- var defaultKeysIsEqual = recolorParams.defaultColorReplacementKeys.every(function (color, index) { return color.equals(_this.defaultColorReplacementKeys[index]); });
75
- var defaultValuesIsEqual = recolorParams.defaultColorReplacementValues.every(function (color, index) {
76
- return color.equals(_this.defaultColorReplacementValues[index]);
77
- });
78
- var reducedColorImageSourceIsEqual = (_a = this.reducedColorImageSource) === null || _a === void 0 ? void 0 : _a.equals(recolorParams.reducedColorImageSource);
36
+ const replacementKeysIsEqual = recolorParams.currentColorReplacementKeys.every((color, index) => color.equals(this.currentColorReplacementKeys[index]));
37
+ const replacementValueIsEqual = recolorParams.currentColorReplacementValues.every((color, index) => color.equals(this.currentColorReplacementValues[index]));
38
+ const defaultKeysIsEqual = recolorParams.defaultColorReplacementKeys.every((color, index) => color.equals(this.defaultColorReplacementKeys[index]));
39
+ const defaultValuesIsEqual = recolorParams.defaultColorReplacementValues.every((color, index) => color.equals(this.defaultColorReplacementValues[index]));
40
+ const reducedColorImageSourceIsEqual = (_a = this.reducedColorImageSource) === null || _a === void 0 ? void 0 : _a.equals(recolorParams.reducedColorImageSource);
79
41
  return (replacementKeysIsEqual &&
80
42
  replacementValueIsEqual &&
81
43
  defaultKeysIsEqual &&
82
44
  defaultValuesIsEqual &&
83
45
  reducedColorImageSourceIsEqual);
84
- };
85
- RecolorEffectParameters.prototype.toJSON = function () {
46
+ }
47
+ toJSON() {
86
48
  var _a;
87
49
  return {
88
50
  defaultColorReplacements: this._dictionaryToEntriesJSON(this.defaultColorReplacements),
89
51
  currentColorReplacements: this._dictionaryToEntriesJSON(this.currentColorReplacements),
90
52
  reducedColorImageSource: (_a = this.reducedColorImageSource) === null || _a === void 0 ? void 0 : _a.toJSON(),
91
53
  };
92
- };
93
- RecolorEffectParameters.prototype._dictionaryToEntriesJSON = function (dictionary) {
94
- var result = new Collection();
95
- dictionary.forEach(function (value, key) {
96
- return result.add(new ColorDictionaryEntry(key, value));
97
- });
54
+ }
55
+ _dictionaryToEntriesJSON(dictionary) {
56
+ const result = new Collection();
57
+ dictionary.forEach((value, key) => result.add(new ColorDictionaryEntry(key, value)));
98
58
  return result;
99
- };
100
- RecolorEffectParameters.prototype.clone = function () {
59
+ }
60
+ clone() {
101
61
  var _a;
102
- var recolorEffectParameters = new RecolorEffectParameters();
103
- var defaultColorReplacementDictionary = new Map();
104
- this.defaultColorReplacements.forEach(function (key, color) {
105
- return defaultColorReplacementDictionary.set(key.clone(), color.clone());
106
- });
107
- var colorReplacementDictionary = new Map();
108
- this.currentColorReplacements.forEach(function (key, color) {
109
- return colorReplacementDictionary.set(key.clone(), color.clone());
110
- });
62
+ const recolorEffectParameters = new RecolorEffectParameters();
63
+ const defaultColorReplacementDictionary = new Map();
64
+ this.defaultColorReplacements.forEach((key, color) => defaultColorReplacementDictionary.set(key.clone(), color.clone()));
65
+ const colorReplacementDictionary = new Map();
66
+ this.currentColorReplacements.forEach((key, color) => colorReplacementDictionary.set(key.clone(), color.clone()));
111
67
  recolorEffectParameters.currentColorReplacements =
112
68
  defaultColorReplacementDictionary;
113
69
  recolorEffectParameters.currentColorReplacements =
114
70
  colorReplacementDictionary;
115
- recolorEffectParameters.reducedColorImageSource = (_a = this.reducedColorImageSource) === null || _a === void 0 ? void 0 : _a.clone();
71
+ recolorEffectParameters.reducedColorImageSource =
72
+ (_a = this.reducedColorImageSource) === null || _a === void 0 ? void 0 : _a.clone();
116
73
  return recolorEffectParameters;
117
- };
118
- return RecolorEffectParameters;
119
- }(EffectParameters));
120
- export { RecolorEffectParameters };
74
+ }
75
+ }
121
76
  //# sourceMappingURL=RecolorEffectParameters.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RecolorEffectParameters.js","sourceRoot":"","sources":["../../../../src/design-atoms-model/Product/Effects/RecolorEffectParameters.ts"],"names":[],"mappings":";;;;;;;;;;;;;AACA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,UAAU,EAA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B,GAAhC,UAAiC,UAA6B;QAC5D,IAAM,MAAM,GACV,IAAI,UAAU,EAAwB,CAAC;QACzC,UAAU,CAAC,OAAO,CAAC,UAAC,KAAK,EAAE,GAAG;YAC5B,OAAA,MAAM,CAAC,GAAG,CAAC,IAAI,oBAAoB,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QAAhD,CAAgD,CACjD,CAAC;QACF,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,uCAAK,GAAL;;QACE,IAAM,uBAAuB,GAAG,IAAI,uBAAuB,EAAE,CAAC;QAC9D,IAAM,iCAAiC,GAAG,IAAI,GAAG,EAAgB,CAAC;QAClE,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,UAAC,GAAG,EAAE,KAAK;YAC/C,OAAA,iCAAiC,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC;QAAjE,CAAiE,CAClE,CAAC;QACF,IAAM,0BAA0B,GAAG,IAAI,GAAG,EAAgB,CAAC;QAC3D,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,UAAC,GAAG,EAAE,KAAK;YAC/C,OAAA,0BAA0B,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC;QAA1D,CAA0D,CAC3D,CAAC;QACF,uBAAuB,CAAC,wBAAwB;YAC9C,iCAAiC,CAAC;QACpC,uBAAuB,CAAC,wBAAwB;YAC9C,0BAA0B,CAAC;QAE7B,uBAAuB,CAAC,uBAAuB,SAC7C,IAAI,CAAC,uBAAuB,0CAAE,KAAK,EAAE,CAAC;QAExC,OAAO,uBAAuB,CAAC;IACjC,CAAC;IACH,8BAAC;AAAD,CAAC,AA9GD,CACU,gBAAgB,GA6GzB"}
1
+ {"version":3,"file":"RecolorEffectParameters.js","sourceRoot":"","sources":["../../../../src/design-atoms-model/Product/Effects/RecolorEffectParameters.ts"],"names":[],"mappings":"AACA,OA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IAEO,wBAAwB,CAAC,UAA6B;QAC5D,MAAM,MAAM,GACV,IAAI,UAAU,EAAwB,CAAC;QACzC,UAAU,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAChC,MAAM,CAAC,GAAG,CAAC,IAAI,oBAAoB,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CACjD,CAAC;QACF,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,KAAK;;QACH,MAAM,uBAAuB,GAAG,IAAI,uBAAuB,EAAE,CAAC;QAC9D,MAAM,iCAAiC,GAAG,IAAI,GAAG,EAAgB,CAAC;QAClE,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CACnD,iCAAiC,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAClE,CAAC;QACF,MAAM,0BAA0B,GAAG,IAAI,GAAG,EAAgB,CAAC;QAC3D,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CACnD,0BAA0B,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAC3D,CAAC;QACF,uBAAuB,CAAC,wBAAwB;YAC9C,iCAAiC,CAAC;QACpC,uBAAuB,CAAC,wBAAwB;YAC9C,0BAA0B,CAAC;QAE7B,uBAAuB,CAAC,uBAAuB;YAC7C,MAAA,IAAI,CAAC,uBAAuB,0CAAE,KAAK,EAAE,CAAC;QAExC,OAAO,uBAAuB,CAAC;IACjC,CAAC;CACF"}
@@ -1 +1,2 @@
1
+ export {};
1
2
  //# sourceMappingURL=IGetAllItemsOptions.js.map
@@ -1,76 +1,44 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
14
1
  import { ModelComponent } from "./ModelComponent";
15
2
  import { equals } from "../Utils/Utils";
16
- var InteractiveZone = /** @class */ (function (_super) {
17
- __extends(InteractiveZone, _super);
18
- function InteractiveZone() {
19
- return _super !== null && _super.apply(this, arguments) || this;
3
+ export class InteractiveZone extends ModelComponent {
4
+ get styleKey() {
5
+ return this._styleKey;
20
6
  }
21
- Object.defineProperty(InteractiveZone.prototype, "styleKey", {
22
- get: function () {
23
- return this._styleKey;
24
- },
25
- set: function (value) {
26
- if (equals(this._styleKey, value))
27
- return;
28
- this._styleKey = value;
29
- this._propertyChanged.notify(this, "styleKey");
30
- },
31
- enumerable: true,
32
- configurable: true
33
- });
34
- Object.defineProperty(InteractiveZone.prototype, "snappingEnabled", {
35
- get: function () {
36
- return this._snappingEnabled;
37
- },
38
- set: function (value) {
39
- if (this._snappingEnabled === value)
40
- return;
41
- this._snappingEnabled = value;
42
- this._propertyChanged.notify(this, "snappingEnabled");
43
- },
44
- enumerable: true,
45
- configurable: true
46
- });
47
- Object.defineProperty(InteractiveZone.prototype, "path", {
48
- get: function () {
49
- return this._path;
50
- },
51
- set: function (value) {
52
- if (equals(this._path, value))
53
- return;
54
- this._path = value;
55
- this._propertyChanged.notify(this, "path");
56
- },
57
- enumerable: true,
58
- configurable: true
59
- });
60
- InteractiveZone.prototype.clone = function (generateNewIds) {
61
- if (generateNewIds === void 0) { generateNewIds = false; }
62
- var interactiveZone = new InteractiveZone();
7
+ set styleKey(value) {
8
+ if (equals(this._styleKey, value))
9
+ return;
10
+ this._styleKey = value;
11
+ this._propertyChanged.notify(this, "styleKey");
12
+ }
13
+ get snappingEnabled() {
14
+ return this._snappingEnabled;
15
+ }
16
+ set snappingEnabled(value) {
17
+ if (this._snappingEnabled === value)
18
+ return;
19
+ this._snappingEnabled = value;
20
+ this._propertyChanged.notify(this, "snappingEnabled");
21
+ }
22
+ get path() {
23
+ return this._path;
24
+ }
25
+ set path(value) {
26
+ if (equals(this._path, value))
27
+ return;
28
+ this._path = value;
29
+ this._propertyChanged.notify(this, "path");
30
+ }
31
+ clone(generateNewIds = false) {
32
+ const interactiveZone = new InteractiveZone();
63
33
  this._copy(this, interactiveZone, generateNewIds);
64
34
  return interactiveZone;
65
- };
66
- InteractiveZone.prototype._copy = function (source, destination, generateNewIds) {
35
+ }
36
+ _copy(source, destination, generateNewIds) {
67
37
  var _a;
68
- _super.prototype._copy.call(this, source, destination, generateNewIds);
38
+ super._copy(source, destination, generateNewIds);
69
39
  destination.snappingEnabled = source.snappingEnabled;
70
40
  destination.path = (_a = source.path) === null || _a === void 0 ? void 0 : _a.clone();
71
41
  destination.styleKey = source.styleKey;
72
- };
73
- return InteractiveZone;
74
- }(ModelComponent));
75
- export { InteractiveZone };
42
+ }
43
+ }
76
44
  //# sourceMappingURL=InteractiveZone.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InteractiveZone.js","sourceRoot":"","sources":["../../../src/design-atoms-model/Product/InteractiveZone.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;IAAqC,mCAAc;IAAnD;;IAmDA,CAAC;IA9CG,sBAAI,qCAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;aACD,UAAa,KAAa;YACtB,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC;gBAC7B,OAAO;YAEX,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;YACvB,IAAI,CAAC,gBAAgB,CAAC,MAAM,C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I,CAAC,KAAK,CAAC,IAAI,EAAE,eAAe,EAAE,cAAc,CAAC,CAAC;QAClD,OAAO,eAAe,CAAC;IAC3B,CAAC;IAES,KAAK,CAAC,MAAuB,EAAE,WAA4B,EAAE,cAAuB;;QAC1F,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC;QAEjD,WAAW,CAAC,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;QACrD,WAAW,CAAC,IAAI,GAAG,MAAA,MAAM,CAAC,IAAI,0CAAE,KAAK,EAAE,CAAC;QACxC,WAAW,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;IAC3C,CAAC;CACJ"}
@@ -1 +1,2 @@
1
+ export {};
1
2
  //# sourceMappingURL=IColorWithTitle.js.map
@@ -1 +1,2 @@
1
+ export {};
1
2
  //# sourceMappingURL=IDataSet.js.map
@@ -1 +1,2 @@
1
+ export {};
1
2
  //# sourceMappingURL=IFontSettings.js.map
@@ -1 +1,2 @@
1
+ export {};
1
2
  //# sourceMappingURL=IItemData.js.map
@@ -1 +1,2 @@
1
+ export {};
1
2
  //# sourceMappingURL=IPdfMetadata.js.map
@@ -1 +1,2 @@
1
+ export {};
1
2
  //# sourceMappingURL=IProductThemeConfig.js.map
@@ -1 +1,2 @@
1
+ export {};
1
2
  //# sourceMappingURL=IShadowSettings.js.map
@@ -1 +1,2 @@
1
+ export {};
1
2
  //# sourceMappingURL=IStrokeSettings.js.map
@@ -1,2 +1,5 @@
1
+ export * from "./IColorWithTitle";
2
+ export * from "./IItemData";
3
+ export * from "./IDataSet";
1
4
  export { IPdfFormat } from "./IPdfFormat";
2
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/design-atoms-model/Product/Interfaces/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/design-atoms-model/Product/Interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAM3B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
@@ -1,39 +1,33 @@
1
1
  import { EventObject } from "../EventObject";
2
2
  import { equals } from "../Utils/Utils";
3
- var ItemMask = /** @class */ (function () {
4
- function ItemMask() {
3
+ export class ItemMask {
4
+ constructor() {
5
5
  this._vectorMask = null;
6
6
  this._maskChangedEvent = new EventObject();
7
7
  }
8
- Object.defineProperty(ItemMask.prototype, "vectorMask", {
9
- get: function () { return this._vectorMask; },
10
- set: function (value) {
11
- this._vectorMask = value;
12
- this._maskChangedEvent.notify(this);
13
- },
14
- enumerable: true,
15
- configurable: true
16
- });
17
- ItemMask.prototype.addMaskChanged = function (handler) {
8
+ get vectorMask() { return this._vectorMask; }
9
+ set vectorMask(value) {
10
+ this._vectorMask = value;
11
+ this._maskChangedEvent.notify(this);
12
+ }
13
+ addMaskChanged(handler) {
18
14
  this._maskChangedEvent.add(handler);
19
- };
20
- ItemMask.prototype.removeMaskChanged = function (handler) {
15
+ }
16
+ removeMaskChanged(handler) {
21
17
  this._maskChangedEvent.remove(handler);
22
- };
23
- ItemMask.prototype.clone = function () {
24
- var clone = new ItemMask();
18
+ }
19
+ clone() {
20
+ const clone = new ItemMask();
25
21
  clone.vectorMask = this.vectorMask != null ? this.vectorMask.clone() : null;
26
22
  return clone;
27
- };
28
- ItemMask.prototype.equals = function (m) {
23
+ }
24
+ equals(m) {
29
25
  return equals(this.vectorMask, m.vectorMask);
30
- };
31
- ItemMask.prototype.getSimplifiedObject = function () {
32
- var simplified = {};
26
+ }
27
+ getSimplifiedObject() {
28
+ const simplified = {};
33
29
  simplified["vectorMask"] = this.vectorMask != null ? this.vectorMask.toString() : null;
34
30
  return simplified;
35
- };
36
- return ItemMask;
37
- }());
38
- export { ItemMask };
31
+ }
32
+ }
39
33
  //# sourceMappingURL=ItemMask.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ItemMask.js","sourceRoot":"","sources":["../../../src/design-atoms-model/Product/ItemMask.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;IAAA;QACY,gBAAW,GAAS,IAAI,CAAC;QACzB,sBAAiB,GAAG,IAAI,WAAW,EAAY,CAAC;IAmC5D,CAAC;IAjCG,sBAAI,gCAAU;aAAd,cAAmB,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;aAE7C,UAAe,KAAW;YACtB,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;YAEzB,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACxC,CAAC;;;OAN4C;IAQ7C,iCAAc,GAAd,UAAe,OAA6B;QACxC,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC;IAED,oCAAiB,GAAjB,UAAkB,OAA6B;QAC3C,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED,wBAAK,GAAL;QACI,IAAM,KAAK,GAAG,IAAI,QAAQ,EAAE,CAAC;QAC7B,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;QAE5E,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,yBAAM,GAAN,UAAO,CAAW;QACd,OAAO,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC;IACjD,CAAC;IAED,sCAAmB,GAAnB;QACI,IAAM,UAAU,GAAG,EAAE,CAAC;QACtB,UAAU,CA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,CAAC,UAAU,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC;IACjD,CAAC;IAED,mBAAmB;QACf,MAAM,UAAU,GAAG,EAAE,CAAC;QACtB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;QAEvF,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ"}
@@ -1,16 +1,3 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
14
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -25,25 +12,23 @@ import { BaseTextItem } from "./BaseTextItem";
25
12
  import { equals } from "../../Utils/Utils";
26
13
  import { InvalidOperationException } from "../../Exception";
27
14
  import { Property } from "../Decorators";
28
- var MAX_LINE_CONST = 1;
29
- var ArchedTextItem = /** @class */ (function (_super) {
30
- __extends(ArchedTextItem, _super);
31
- function ArchedTextItem(text, center, fontPostScriptName, fontSize) {
32
- var _this = _super.call(this, text, fontPostScriptName, fontSize) || this;
33
- _this._center = new PointF();
34
- _this.type = ArchedTextItem.type;
15
+ const MAX_LINE_CONST = 1;
16
+ export class ArchedTextItem extends BaseTextItem {
17
+ constructor(text, center, fontPostScriptName, fontSize) {
18
+ super(text, fontPostScriptName, fontSize);
19
+ this._center = new PointF();
20
+ this.type = ArchedTextItem.type;
35
21
  if (center != null)
36
- _this._center = center;
37
- _this._ignorePermissionsChange = true;
38
- _this.manipulationPermissions.resizeGrips.setCornerArbitrary(false);
39
- _this.manipulationPermissions.resizeGrips.edge = false;
40
- _this.textPermissions.allowChangeTextAlignment = false;
41
- _this.textPermissions.allowChangeLeading = false;
42
- _this._ignorePermissionsChange = false;
43
- return _this;
22
+ this._center = center;
23
+ this._ignorePermissionsChange = true;
24
+ this.manipulationPermissions.resizeGrips.setCornerArbitrary(false);
25
+ this.manipulationPermissions.resizeGrips.edge = false;
26
+ this.textPermissions.allowChangeTextAlignment = false;
27
+ this.textPermissions.allowChangeLeading = false;
28
+ this._ignorePermissionsChange = false;
44
29
  }
45
- ArchedTextItem.prototype.applyPermissionsConstrain = function () {
46
- _super.prototype.applyPermissionsConstrain.call(this);
30
+ applyPermissionsConstrain() {
31
+ super.applyPermissionsConstrain();
47
32
  if (this.manipulationPermissions != null && this.manipulationPermissions.resizeGrips != null) {
48
33
  this.manipulationPermissions.resizeGrips.setCornerArbitraryConstraint(false);
49
34
  this.manipulationPermissions.resizeGrips.edgeConstraint = false;
@@ -52,84 +37,64 @@ var ArchedTextItem = /** @class */ (function (_super) {
52
37
  this.textPermissions.allowChangeLeading = false;
53
38
  this.textPermissions.allowChangeTextAlignment = false;
54
39
  }
55
- };
56
- Object.defineProperty(ArchedTextItem.prototype, "center", {
57
- get: function () { return this._center; },
58
- set: function (value) {
59
- if (PointF.isEqual(this._center, value))
60
- return;
61
- this._center = value;
62
- this._propertyChanged.notify(this, "center");
63
- },
64
- enumerable: true,
65
- configurable: true
66
- });
67
- Object.defineProperty(ArchedTextItem.prototype, "bend", {
68
- get: function () { return this._bend; },
69
- set: function (value) {
70
- if (EqualsOfFloatNumbers(this._bend, value))
71
- return;
72
- this._bend = value;
73
- this._propertyChanged.notify(this, "bend");
74
- },
75
- enumerable: true,
76
- configurable: true
77
- });
78
- Object.defineProperty(ArchedTextItem.prototype, "warp", {
79
- get: function () { return this._warp; },
80
- set: function (value) {
81
- if (this._warp === value)
82
- return;
83
- this._warp = value;
84
- this._propertyChanged.notify(this, "warp");
85
- },
86
- enumerable: true,
87
- configurable: true
88
- });
89
- Object.defineProperty(ArchedTextItem.prototype, "maxLineCount", {
90
- /**
91
- * @override getter in BaseTextItem
92
- * @returns {number} Returns ths._maxLineCount
93
- */
94
- get: function () { return MAX_LINE_CONST; },
95
- set: function (value) {
96
- console.error("ArchedText set maxLineCount", value);
97
- throw new InvalidOperationException("Max Line Count of ArchedTextItem can not be redefined!");
98
- },
99
- enumerable: true,
100
- configurable: true
101
- });
102
- ArchedTextItem.prototype.getSimplifiedObject = function (omitProperties) {
103
- return _super.prototype.getSimplifiedObject.call(this, ["maxLineCount"].concat(omitProperties));
104
- };
105
- ArchedTextItem.prototype._copy = function (source, destination, generateNewIds, appropriateParentContainer) {
106
- _super.prototype._copy.call(this, source, destination, generateNewIds, appropriateParentContainer);
40
+ }
41
+ get center() { return this._center; }
42
+ set center(value) {
43
+ if (PointF.isEqual(this._center, value))
44
+ return;
45
+ this._center = value;
46
+ this._propertyChanged.notify(this, "center");
47
+ }
48
+ get bend() { return this._bend; }
49
+ set bend(value) {
50
+ if (EqualsOfFloatNumbers(this._bend, value))
51
+ return;
52
+ this._bend = value;
53
+ this._propertyChanged.notify(this, "bend");
54
+ }
55
+ get warp() { return this._warp; }
56
+ set warp(value) {
57
+ if (this._warp === value)
58
+ return;
59
+ this._warp = value;
60
+ this._propertyChanged.notify(this, "warp");
61
+ }
62
+ /**
63
+ * @override getter in BaseTextItem
64
+ * @returns {number} Returns ths._maxLineCount
65
+ */
66
+ get maxLineCount() { return MAX_LINE_CONST; }
67
+ set maxLineCount(value) {
68
+ console.error("ArchedText set maxLineCount", value);
69
+ throw new InvalidOperationException("Max Line Count of ArchedTextItem can not be redefined!");
70
+ }
71
+ getSimplifiedObject(omitProperties) {
72
+ return super.getSimplifiedObject(["maxLineCount"].concat(omitProperties));
73
+ }
74
+ _copy(source, destination, generateNewIds, appropriateParentContainer) {
75
+ super._copy(source, destination, generateNewIds, appropriateParentContainer);
107
76
  if (destination instanceof ArchedTextItem) {
108
77
  destination.center = source.center;
109
78
  destination.bend = source.bend;
110
79
  destination.warp = source.warp;
111
80
  }
112
- };
113
- ArchedTextItem.prototype.equals = function (other) {
114
- return _super.prototype.equals.call(this, other) &&
81
+ }
82
+ equals(other) {
83
+ return super.equals(other) &&
115
84
  equals(this._center, other._center) &&
116
85
  equals(this._bend, other._bend) &&
117
86
  equals(this._warp, other._warp);
118
- };
119
- ArchedTextItem.prototype.clone = function (generateNewIds, appropriateParentContainer) {
120
- if (generateNewIds === void 0) { generateNewIds = false; }
121
- if (appropriateParentContainer === void 0) { appropriateParentContainer = false; }
122
- var item = new ArchedTextItem();
87
+ }
88
+ clone(generateNewIds = false, appropriateParentContainer = false) {
89
+ const item = new ArchedTextItem();
123
90
  this._copy(this, item, generateNewIds, appropriateParentContainer);
124
91
  return item;
125
- };
126
- ArchedTextItem.type = "ArchedTextItem";
127
- __decorate([
128
- Property({ type: "boolean" }),
129
- __metadata("design:type", Boolean),
130
- __metadata("design:paramtypes", [Boolean])
131
- ], ArchedTextItem.prototype, "warp", null);
132
- return ArchedTextItem;
133
- }(BaseTextItem));
134
- export { ArchedTextItem };
92
+ }
93
+ }
94
+ ArchedTextItem.type = "ArchedTextItem";
95
+ __decorate([
96
+ Property({ type: "boolean" }),
97
+ __metadata("design:type", Boolean),
98
+ __metadata("design:paramtypes", [Boolean])
99
+ ], ArchedTextItem.prototype, "warp", null);
135
100
  //# sourceMappingURL=ArchedTextItem.js.map