@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,27 +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
- var __assign = (this && this.__assign) || function () {
15
- __assign = Object.assign || function(t) {
16
- for (var s, i = 1, n = arguments.length; i < n; i++) {
17
- s = arguments[i];
18
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
19
- t[p] = s[p];
20
- }
21
- return t;
22
- };
23
- return __assign.apply(this, arguments);
24
- };
25
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
26
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
27
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -31,156 +7,123 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
31
7
  var __metadata = (this && this.__metadata) || function (k, v) {
32
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
33
9
  };
34
- var __read = (this && this.__read) || function (o, n) {
35
- var m = typeof Symbol === "function" && o[Symbol.iterator];
36
- if (!m) return o;
37
- var i = m.call(o), r, ar = [], e;
38
- try {
39
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
40
- }
41
- catch (error) { e = { error: error }; }
42
- finally {
43
- try {
44
- if (r && !r.done && (m = i["return"])) m.call(i);
45
- }
46
- finally { if (e) throw e.error; }
47
- }
48
- return ar;
49
- };
50
- var __spread = (this && this.__spread) || function () {
51
- for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
52
- return ar;
53
- };
54
10
  import { GroupItem } from "./GroupItem";
55
11
  import { EventObject } from "../../EventObject";
56
12
  import { EqualsOfFloatNumbers } from "../../Math";
57
13
  import { BaseTextItem } from ".";
58
14
  import { Property } from "../Decorators/Property";
59
15
  import { equals } from "../../Utils/Utils";
60
- var LayoutItem = /** @class */ (function (_super) {
61
- __extends(LayoutItem, _super);
62
- function LayoutItem(items, layoutSettings) {
63
- var _this = _super.call(this, items) || this;
64
- _this.type = LayoutItem.type;
65
- _this._onLayoutSettingsChanged = function (propertyName) {
66
- _this._propertyChanged.notify(_this, propertyName);
16
+ export class LayoutItem extends GroupItem {
17
+ constructor(items, layoutSettings) {
18
+ super(items);
19
+ this.type = LayoutItem.type;
20
+ this._onLayoutSettingsChanged = (propertyName) => {
21
+ this._propertyChanged.notify(this, propertyName);
67
22
  };
68
- _this.layoutSettings = layoutSettings != null ? layoutSettings : new DefaultLayoutSettings();
69
- return _this;
23
+ this.layoutSettings = layoutSettings != null ? layoutSettings : new DefaultLayoutSettings();
70
24
  }
71
- LayoutItem.prototype.getSimplifiedObject = function (omitProperties) {
72
- if (omitProperties === void 0) { omitProperties = []; }
25
+ getSimplifiedObject(omitProperties = []) {
73
26
  var _a, _b;
74
- var result = _super.prototype.getSimplifiedObject.call(this, ["layoutSettings"].concat(omitProperties));
27
+ const result = super.getSimplifiedObject(["layoutSettings"].concat(omitProperties));
75
28
  result["layoutSettings"] = (_a = this.layoutSettings) === null || _a === void 0 ? void 0 : _a.getSimplifiedObject();
76
29
  result["sourceRectangle"] = (_b = this.sourceRectangle) === null || _b === void 0 ? void 0 : _b.toJSON();
77
30
  return result;
78
- };
79
- LayoutItem.prototype._copy = function (source, destination, generateNewIds, appropriateParentContainer) {
31
+ }
32
+ _copy(source, destination, generateNewIds, appropriateParentContainer) {
80
33
  var _a;
81
- _super.prototype._copy.call(this, source, destination, generateNewIds, appropriateParentContainer);
34
+ super._copy(source, destination, generateNewIds, appropriateParentContainer);
82
35
  if (generateNewIds) {
83
36
  this._copyItemsOrder(source, destination);
84
37
  }
85
38
  destination.layoutSettings = source.layoutSettings.clone();
86
39
  destination.sourceRectangle = (_a = source.sourceRectangle) === null || _a === void 0 ? void 0 : _a.clone();
87
- };
88
- LayoutItem.prototype._copyItemsOrder = function (source, destination) {
89
- var sourceOrder = source.getItemsOrder();
40
+ }
41
+ _copyItemsOrder(source, destination) {
42
+ const sourceOrder = source.getItemsOrder();
90
43
  if (sourceOrder) {
91
- var targetOrder = sourceOrder.map(function (x) {
92
- var sourceItemIndex = source.items.indexOf(function (item) { return item.id == x; });
93
- var targetItem = destination.items.get(sourceItemIndex);
44
+ const targetOrder = sourceOrder.map(x => {
45
+ let sourceItemIndex = source.items.indexOf(item => item.id == x);
46
+ let targetItem = destination.items.get(sourceItemIndex);
94
47
  return targetItem.id;
95
48
  });
96
49
  destination.setItemsOrder(targetOrder);
97
50
  }
98
- };
99
- LayoutItem.prototype.clone = function (generateNewIds, appropriateParentContainer) {
100
- if (generateNewIds === void 0) { generateNewIds = false; }
101
- if (appropriateParentContainer === void 0) { appropriateParentContainer = false; }
102
- var item = new LayoutItem();
51
+ }
52
+ clone(generateNewIds = false, appropriateParentContainer = false) {
53
+ const item = new LayoutItem();
103
54
  this._copy(this, item, generateNewIds, appropriateParentContainer);
104
55
  return item;
105
- };
106
- Object.defineProperty(LayoutItem.prototype, "layoutSettings", {
107
- get: function () {
108
- return this._layoutSettings;
109
- },
110
- set: function (value) {
111
- if (value == null)
112
- throw new Error("LayoutSettings can't be null");
113
- if (this._layoutSettings != null)
114
- this._layoutSettings.propertyChanged.remove(this._onLayoutSettingsChanged);
115
- this._layoutSettings = value;
116
- this._layoutSettings.propertyChanged.add(this._onLayoutSettingsChanged);
117
- this._onLayoutSettingsChanged("layoutSettings");
118
- },
119
- enumerable: true,
120
- configurable: true
121
- });
122
- Object.defineProperty(LayoutItem.prototype, "sourceRectangle", {
123
- get: function () {
124
- return this._sourceRectangle;
125
- },
126
- set: function (value) {
127
- if (this._sourceRectangle != null && value == null)
128
- throw new Error("LayoutItem.sourceRectangle can't be null");
129
- if (value != null && value.equals(this._sourceRectangle))
130
- return;
131
- this._unsubscribeSourceRectangle();
132
- this._sourceRectangle = value;
133
- this._subscribeSourceRectangle();
134
- this._propertyChanged.notify(this, "sourceRectangle");
135
- },
136
- enumerable: true,
137
- configurable: true
138
- });
139
- LayoutItem.prototype._subscribeSourceRectangle = function () {
56
+ }
57
+ get layoutSettings() {
58
+ return this._layoutSettings;
59
+ }
60
+ set layoutSettings(value) {
61
+ if (value == null)
62
+ throw new Error("LayoutSettings can't be null");
63
+ if (this._layoutSettings != null)
64
+ this._layoutSettings.propertyChanged.remove(this._onLayoutSettingsChanged);
65
+ this._layoutSettings = value;
66
+ this._layoutSettings.propertyChanged.add(this._onLayoutSettingsChanged);
67
+ this._onLayoutSettingsChanged("layoutSettings");
68
+ }
69
+ get sourceRectangle() {
70
+ return this._sourceRectangle;
71
+ }
72
+ set sourceRectangle(value) {
73
+ if (this._sourceRectangle != null && value == null)
74
+ throw new Error("LayoutItem.sourceRectangle can't be null");
75
+ if (value != null && value.equals(this._sourceRectangle))
76
+ return;
77
+ this._unsubscribeSourceRectangle();
78
+ this._sourceRectangle = value;
79
+ this._subscribeSourceRectangle();
80
+ this._propertyChanged.notify(this, "sourceRectangle");
81
+ }
82
+ _subscribeSourceRectangle() {
140
83
  if (this._sourceRectangle == null)
141
84
  return;
142
- };
143
- LayoutItem.prototype._unsubscribeSourceRectangle = function () {
85
+ }
86
+ _unsubscribeSourceRectangle() {
144
87
  if (this._sourceRectangle == null)
145
88
  return;
146
- };
147
- LayoutItem.prototype.addItems = function (items, targetIndex, orderIndex) {
148
- var order = this.getItemsOrder();
89
+ }
90
+ addItems(items, targetIndex, orderIndex) {
91
+ let order = this.getItemsOrder();
149
92
  if (order) {
150
93
  if (!Number.isInteger(orderIndex))
151
94
  throw new Error("orderIndex must not be null");
152
- order = LayoutItem._insertToOrder(order, items.map(function (x) { return x.id; }), orderIndex);
95
+ order = LayoutItem._insertToOrder(order, items.map(x => x.id), orderIndex);
153
96
  this.setItemsOrder(order);
154
97
  }
155
- _super.prototype.addItems.call(this, items, targetIndex);
156
- };
157
- LayoutItem.prototype.removeItems = function (items) {
158
- var order = this.getItemsOrder();
98
+ super.addItems(items, targetIndex);
99
+ }
100
+ removeItems(items) {
101
+ let order = this.getItemsOrder();
159
102
  if (order) {
160
- items.forEach(function (item) { return order = order.filter(function (id) { return id !== item.id; }); });
103
+ items.forEach((item) => order = order.filter((id) => id !== item.id));
161
104
  this.setItemsOrder(order);
162
105
  }
163
- _super.prototype.removeItems.call(this, items);
164
- };
165
- LayoutItem.prototype.addItem = function (item, targetIndex, orderIndex) {
166
- var order = this.getItemsOrder();
106
+ super.removeItems(items);
107
+ }
108
+ addItem(item, targetIndex, orderIndex) {
109
+ let order = this.getItemsOrder();
167
110
  if (order != null) {
168
111
  order = LayoutItem._insertToOrder(order, [item.id], orderIndex);
169
112
  this.setItemsOrder(order);
170
113
  }
171
- _super.prototype.addItem.call(this, item, targetIndex);
172
- };
173
- LayoutItem._insertToOrder = function (order, newItems, index) {
174
- var part1 = order.slice(0, index);
175
- var part2 = order.slice(index);
114
+ super.addItem(item, targetIndex);
115
+ }
116
+ static _insertToOrder(order, newItems, index) {
117
+ let part1 = order.slice(0, index);
118
+ let part2 = order.slice(index);
176
119
  order = part1.concat(newItems, part2);
177
120
  return order;
178
- };
179
- LayoutItem.prototype.setItemsOrder = function (ids) {
121
+ }
122
+ setItemsOrder(ids) {
180
123
  this.tags[LayoutItem._layoutItemsOrderTagKey] = ids;
181
- };
182
- LayoutItem.prototype.getItemsOrder = function () {
183
- var value = this.tags[LayoutItem._layoutItemsOrderTagKey];
124
+ }
125
+ getItemsOrder() {
126
+ const value = this.tags[LayoutItem._layoutItemsOrderTagKey];
184
127
  if (value == null) {
185
128
  return null;
186
129
  }
@@ -188,31 +131,31 @@ var LayoutItem = /** @class */ (function (_super) {
188
131
  return null;
189
132
  }
190
133
  return value;
191
- };
192
- LayoutItem.prototype.getSortedItems = function () {
193
- var order = this.getItemsOrder();
134
+ }
135
+ getSortedItems() {
136
+ const order = this.getItemsOrder();
194
137
  var nestedItems = this.items.toArray();
195
138
  if (order != null && nestedItems != null)
196
- return order.map(function (id) { return nestedItems.find(function (i) { return i.id === id; }); });
139
+ return order.map(id => nestedItems.find(i => i.id === id));
197
140
  return null;
198
- };
199
- LayoutItem.prototype.getItemOrderIndex = function (item) {
141
+ }
142
+ getItemOrderIndex(item) {
200
143
  if (this.items.indexOf(item) < 0)
201
144
  return -1;
202
- var order = this.getItemsOrder();
145
+ let order = this.getItemsOrder();
203
146
  return order === null || order === void 0 ? void 0 : order.indexOf(item.id);
204
- };
205
- LayoutItem.generateAutoLayoutSettings = function (rectangles, alignItems, orientation, margin, justifyContent) {
206
- var autoLayoutSettings = new AutoLayoutSettings();
207
- var leftBounds = rectangles.map(function (rectangle) { return rectangle.left; });
208
- var rightBounds = rectangles.map(function (rectangle) { return rectangle.right; });
209
- var topBounds = rectangles.map(function (rectangle) { return rectangle.top; });
210
- var bottomBounds = rectangles.map(function (rectangle) { return rectangle.bottom; });
211
- var centersX = rectangles.map(function (rectangle) { return rectangle.center.x; });
212
- var centersY = rectangles.map(function (rectangle) { return rectangle.center.y; });
147
+ }
148
+ static generateAutoLayoutSettings(rectangles, alignItems, orientation, margin, justifyContent) {
149
+ const autoLayoutSettings = new AutoLayoutSettings();
150
+ const leftBounds = rectangles.map(rectangle => rectangle.left);
151
+ const rightBounds = rectangles.map(rectangle => rectangle.right);
152
+ const topBounds = rectangles.map(rectangle => rectangle.top);
153
+ const bottomBounds = rectangles.map(rectangle => rectangle.bottom);
154
+ const centersX = rectangles.map(rectangle => rectangle.center.x);
155
+ const centersY = rectangles.map(rectangle => rectangle.center.y);
213
156
  if (orientation == null) {
214
- var horizontalDelta = Math.max.apply(Math, __spread(centersX)) - Math.min.apply(Math, __spread(centersX));
215
- var verticalDelta = Math.max.apply(Math, __spread(centersY)) - Math.min.apply(Math, __spread(centersY));
157
+ const horizontalDelta = Math.max(...centersX) - Math.min(...centersX);
158
+ const verticalDelta = Math.max(...centersY) - Math.min(...centersY);
216
159
  orientation = horizontalDelta > verticalDelta
217
160
  ? AutoLayoutOrientation.horizontal
218
161
  : AutoLayoutOrientation.vertical;
@@ -221,21 +164,21 @@ var LayoutItem = /** @class */ (function (_super) {
221
164
  if (alignItems == null)
222
165
  switch (autoLayoutSettings.orientation) {
223
166
  case AutoLayoutOrientation.horizontal:
224
- if (EqualsOfFloatNumbers(Math.max.apply(Math, __spread(topBounds)), Math.min.apply(Math, __spread(topBounds)), 5))
167
+ if (EqualsOfFloatNumbers(Math.max(...topBounds), Math.min(...topBounds), 5))
225
168
  alignItems = AutoLayoutAlignItems.start;
226
- else if (EqualsOfFloatNumbers(Math.max.apply(Math, __spread(centersY)), Math.min.apply(Math, __spread(centersY)), 5))
169
+ else if (EqualsOfFloatNumbers(Math.max(...centersY), Math.min(...centersY), 5))
227
170
  alignItems = AutoLayoutAlignItems.center;
228
- else if (EqualsOfFloatNumbers(Math.max.apply(Math, __spread(bottomBounds)), Math.min.apply(Math, __spread(bottomBounds)), 5))
171
+ else if (EqualsOfFloatNumbers(Math.max(...bottomBounds), Math.min(...bottomBounds), 5))
229
172
  alignItems = AutoLayoutAlignItems.end;
230
173
  else
231
174
  alignItems = AutoLayoutAlignItems.none;
232
175
  break;
233
176
  case AutoLayoutOrientation.vertical:
234
- if (EqualsOfFloatNumbers(Math.max.apply(Math, __spread(leftBounds)), Math.min.apply(Math, __spread(leftBounds)), 5))
177
+ if (EqualsOfFloatNumbers(Math.max(...leftBounds), Math.min(...leftBounds), 5))
235
178
  alignItems = AutoLayoutAlignItems.start;
236
- else if (EqualsOfFloatNumbers(Math.max.apply(Math, __spread(centersX)), Math.min.apply(Math, __spread(centersX)), 5))
179
+ else if (EqualsOfFloatNumbers(Math.max(...centersX), Math.min(...centersX), 5))
237
180
  alignItems = AutoLayoutAlignItems.center;
238
- else if (EqualsOfFloatNumbers(Math.max.apply(Math, __spread(rightBounds)), Math.min.apply(Math, __spread(rightBounds)), 5))
181
+ else if (EqualsOfFloatNumbers(Math.max(...rightBounds), Math.min(...rightBounds), 5))
239
182
  alignItems = AutoLayoutAlignItems.end;
240
183
  else
241
184
  alignItems = AutoLayoutAlignItems.none;
@@ -244,46 +187,44 @@ var LayoutItem = /** @class */ (function (_super) {
244
187
  break;
245
188
  }
246
189
  autoLayoutSettings.alignItems = alignItems;
247
- var sortedRectangles = autoLayoutSettings.orientation === AutoLayoutOrientation.horizontal
248
- ? rectangles.sort(function (a, b) { return a.left - b.left; })
249
- : rectangles.sort(function (a, b) { return a.top - b.top; });
250
- var margins = [];
251
- for (var i = 1; i < sortedRectangles.length; i++) {
252
- var previousRectangle = sortedRectangles[i - 1];
253
- var rectangle = sortedRectangles[i];
190
+ const sortedRectangles = autoLayoutSettings.orientation === AutoLayoutOrientation.horizontal
191
+ ? rectangles.sort((a, b) => a.left - b.left)
192
+ : rectangles.sort((a, b) => a.top - b.top);
193
+ const margins = [];
194
+ for (let i = 1; i < sortedRectangles.length; i++) {
195
+ const previousRectangle = sortedRectangles[i - 1];
196
+ const rectangle = sortedRectangles[i];
254
197
  margins.push(autoLayoutSettings.orientation === AutoLayoutOrientation.horizontal
255
198
  ? rectangle.left - previousRectangle.right
256
199
  : rectangle.top - previousRectangle.bottom);
257
200
  }
258
201
  if (margin == null)
259
202
  margin = margins.length > 0
260
- ? Math.max(0, Math.min.apply(Math, __spread(margins.map(Math.round))))
203
+ ? Math.max(0, Math.min(...margins.map(Math.round)))
261
204
  : 0;
262
205
  autoLayoutSettings.margin = margin;
263
206
  if (justifyContent == null)
264
- justifyContent = EqualsOfFloatNumbers(Math.max.apply(Math, __spread(margins)), Math.min.apply(Math, __spread(margins)), 2)
207
+ justifyContent = EqualsOfFloatNumbers(Math.max(...margins), Math.min(...margins), 2)
265
208
  ? AutoLayoutJustifyContent.stretch
266
209
  : AutoLayoutJustifyContent.spaceBetween;
267
210
  autoLayoutSettings.justifyContent = justifyContent;
268
211
  return autoLayoutSettings;
269
- };
270
- LayoutItem.prototype.isChildVisible = function (item) {
212
+ }
213
+ isChildVisible(item) {
271
214
  if (item instanceof BaseTextItem) {
272
215
  return !item.isEmpty();
273
216
  }
274
217
  return true;
275
- };
276
- LayoutItem.prototype.equals = function (other) {
277
- var superEq = _super.prototype.equals.call(this, other);
278
- var sourceRectangleEq = equals(this.sourceRectangle, other.sourceRectangle);
279
- var layoutSettingsEq = equals(this.layoutSettings, other.layoutSettings);
218
+ }
219
+ equals(other) {
220
+ const superEq = super.equals(other);
221
+ const sourceRectangleEq = equals(this.sourceRectangle, other.sourceRectangle);
222
+ const layoutSettingsEq = equals(this.layoutSettings, other.layoutSettings);
280
223
  return superEq && sourceRectangleEq && layoutSettingsEq;
281
- };
282
- LayoutItem._layoutItemsOrderTagKey = "$layoutItemsOrder";
283
- LayoutItem.type = "LayoutItem";
284
- return LayoutItem;
285
- }(GroupItem));
286
- export { LayoutItem };
224
+ }
225
+ }
226
+ LayoutItem._layoutItemsOrderTagKey = "$layoutItemsOrder";
227
+ LayoutItem.type = "LayoutItem";
287
228
  ;
288
229
  export var LayoutType;
289
230
  (function (LayoutType) {
@@ -314,125 +255,101 @@ export var AutoLayoutAnchorPoint;
314
255
  AutoLayoutAnchorPoint[AutoLayoutAnchorPoint["center"] = 1] = "center";
315
256
  AutoLayoutAnchorPoint[AutoLayoutAnchorPoint["end"] = 2] = "end";
316
257
  })(AutoLayoutAnchorPoint || (AutoLayoutAnchorPoint = {}));
317
- var DefaultLayoutSettings = /** @class */ (function () {
318
- function DefaultLayoutSettings() {
258
+ export class DefaultLayoutSettings {
259
+ constructor() {
319
260
  this.type = DefaultLayoutSettings.type;
320
261
  this.propertyChanged = new EventObject();
321
262
  }
322
- DefaultLayoutSettings.prototype.clone = function () {
263
+ clone() {
323
264
  return new DefaultLayoutSettings();
324
- };
325
- DefaultLayoutSettings.prototype.getSimplifiedObject = function () {
326
- var result = {};
265
+ }
266
+ getSimplifiedObject() {
267
+ const result = {};
327
268
  result["type"] = DefaultLayoutSettings.type;
328
269
  return result;
329
- };
330
- DefaultLayoutSettings.prototype.equals = function (other) {
331
- var typeEq = equals(this.type, other.type);
270
+ }
271
+ equals(other) {
272
+ const typeEq = equals(this.type, other.type);
332
273
  return typeEq;
333
- };
334
- DefaultLayoutSettings.type = "DefaultLayoutSettings";
335
- return DefaultLayoutSettings;
336
- }());
337
- export { DefaultLayoutSettings };
338
- var AutoLayoutSettings = /** @class */ (function (_super) {
339
- __extends(AutoLayoutSettings, _super);
340
- function AutoLayoutSettings() {
341
- var _this = _super !== null && _super.apply(this, arguments) || this;
342
- _this.type = AutoLayoutSettings.type;
343
- _this._margin = 0;
344
- _this._orientation = AutoLayoutOrientation.vertical;
345
- _this._alignItems = AutoLayoutAlignItems.none;
346
- _this._anchorPoint = AutoLayoutAnchorPoint.start;
347
- _this._justifyContent = AutoLayoutJustifyContent.stretch;
348
- return _this;
349
- }
350
- Object.defineProperty(AutoLayoutSettings.prototype, "margin", {
351
- get: function () {
352
- return this._margin;
353
- },
354
- set: function (value) {
355
- if (value == null)
356
- throw new Error("Margin can't be null");
357
- if (value === this.margin)
358
- return;
359
- this._margin = value;
360
- this.propertyChanged.notify("margin");
361
- },
362
- enumerable: true,
363
- configurable: true
364
- });
365
- Object.defineProperty(AutoLayoutSettings.prototype, "orientation", {
366
- get: function () {
367
- return this._orientation;
368
- },
369
- set: function (value) {
370
- if (value == null)
371
- throw Error("Orientation can't be null");
372
- if (value === this.orientation)
373
- return;
374
- this._orientation = value;
375
- this.propertyChanged.notify("orientation");
376
- },
377
- enumerable: true,
378
- configurable: true
379
- });
380
- Object.defineProperty(AutoLayoutSettings.prototype, "alignItems", {
381
- get: function () {
382
- return this._alignItems;
383
- },
384
- set: function (value) {
385
- if (value == null)
386
- throw new Error("alignItems can't be null");
387
- if (value === this.alignItems)
388
- return;
389
- this._alignItems = value;
390
- this.propertyChanged.notify("alignItems");
391
- },
392
- enumerable: true,
393
- configurable: true
394
- });
395
- Object.defineProperty(AutoLayoutSettings.prototype, "justifyContent", {
396
- get: function () {
397
- return this._justifyContent;
398
- },
399
- set: function (value) {
400
- if (value == null)
401
- throw new Error("JustifyContent can't be null");
402
- if (value === this.justifyContent)
403
- return;
404
- this._justifyContent = value;
405
- this.propertyChanged.notify("justifyContent");
406
- },
407
- enumerable: true,
408
- configurable: true
409
- });
410
- Object.defineProperty(AutoLayoutSettings.prototype, "anchorPoint", {
411
- get: function () {
412
- return this._anchorPoint;
413
- },
414
- set: function (value) {
415
- if (value == null)
416
- throw new Error("anchorPoint can't be null");
417
- if (value === this._anchorPoint)
418
- return;
419
- this._anchorPoint = value;
420
- this.propertyChanged.notify("anchorPoint");
421
- },
422
- enumerable: true,
423
- configurable: true
424
- });
425
- AutoLayoutSettings.prototype.clone = function () {
426
- var clone = new AutoLayoutSettings();
274
+ }
275
+ }
276
+ DefaultLayoutSettings.type = "DefaultLayoutSettings";
277
+ export class AutoLayoutSettings extends DefaultLayoutSettings {
278
+ constructor() {
279
+ super(...arguments);
280
+ this.type = AutoLayoutSettings.type;
281
+ this._margin = 0;
282
+ this._orientation = AutoLayoutOrientation.vertical;
283
+ this._alignItems = AutoLayoutAlignItems.none;
284
+ this._anchorPoint = AutoLayoutAnchorPoint.start;
285
+ this._justifyContent = AutoLayoutJustifyContent.stretch;
286
+ }
287
+ get margin() {
288
+ return this._margin;
289
+ }
290
+ set margin(value) {
291
+ if (value == null)
292
+ throw new Error("Margin can't be null");
293
+ if (value === this.margin)
294
+ return;
295
+ this._margin = value;
296
+ this.propertyChanged.notify("margin");
297
+ }
298
+ get orientation() {
299
+ return this._orientation;
300
+ }
301
+ set orientation(value) {
302
+ if (value == null)
303
+ throw Error("Orientation can't be null");
304
+ if (value === this.orientation)
305
+ return;
306
+ this._orientation = value;
307
+ this.propertyChanged.notify("orientation");
308
+ }
309
+ get alignItems() {
310
+ return this._alignItems;
311
+ }
312
+ set alignItems(value) {
313
+ if (value == null)
314
+ throw new Error("alignItems can't be null");
315
+ if (value === this.alignItems)
316
+ return;
317
+ this._alignItems = value;
318
+ this.propertyChanged.notify("alignItems");
319
+ }
320
+ get justifyContent() {
321
+ return this._justifyContent;
322
+ }
323
+ set justifyContent(value) {
324
+ if (value == null)
325
+ throw new Error("JustifyContent can't be null");
326
+ if (value === this.justifyContent)
327
+ return;
328
+ this._justifyContent = value;
329
+ this.propertyChanged.notify("justifyContent");
330
+ }
331
+ get anchorPoint() {
332
+ return this._anchorPoint;
333
+ }
334
+ set anchorPoint(value) {
335
+ if (value == null)
336
+ throw new Error("anchorPoint can't be null");
337
+ if (value === this._anchorPoint)
338
+ return;
339
+ this._anchorPoint = value;
340
+ this.propertyChanged.notify("anchorPoint");
341
+ }
342
+ clone() {
343
+ const clone = new AutoLayoutSettings();
427
344
  clone.orientation = this.orientation;
428
345
  clone.alignItems = this.alignItems;
429
346
  clone.justifyContent = this.justifyContent;
430
347
  clone.margin = this.margin;
431
348
  clone.anchorPoint = this.anchorPoint;
432
349
  return clone;
433
- };
434
- AutoLayoutSettings.prototype.getSimplifiedObject = function () {
435
- var result = _super.prototype.getSimplifiedObject.call(this);
350
+ }
351
+ getSimplifiedObject() {
352
+ const result = super.getSimplifiedObject();
436
353
  result["type"] = AutoLayoutSettings.type;
437
354
  result["orientation"] = this.orientation;
438
355
  result["alignItems"] = this.alignItems;
@@ -440,49 +357,47 @@ var AutoLayoutSettings = /** @class */ (function (_super) {
440
357
  result["margin"] = this.margin;
441
358
  result["anchorPoint"] = this.anchorPoint;
442
359
  return result;
443
- };
444
- AutoLayoutSettings.prototype.equals = function (other) {
445
- var superEq = _super.prototype.equals.call(this, other);
446
- var orientationEq = equals(this.orientation, other.orientation);
447
- var alignItemsEq = equals(this.alignItems, other.alignItems);
448
- var marginEq = equals(this.margin, other.margin);
449
- var anchorPointEq = equals(this.anchorPoint, other.anchorPoint);
360
+ }
361
+ equals(other) {
362
+ const superEq = super.equals(other);
363
+ const orientationEq = equals(this.orientation, other.orientation);
364
+ const alignItemsEq = equals(this.alignItems, other.alignItems);
365
+ const marginEq = equals(this.margin, other.margin);
366
+ const anchorPointEq = equals(this.anchorPoint, other.anchorPoint);
450
367
  return superEq && orientationEq && alignItemsEq && marginEq && anchorPointEq;
451
- };
452
- AutoLayoutSettings.type = "AutoLayoutSettings";
453
- __decorate([
454
- Property({ ignore: true }),
455
- __metadata("design:type", Object)
456
- ], AutoLayoutSettings.prototype, "type", void 0);
457
- __decorate([
458
- Property({
459
- enumObject: __assign({}, AutoLayoutOrientation)
460
- }),
461
- __metadata("design:type", Object),
462
- __metadata("design:paramtypes", [Object])
463
- ], AutoLayoutSettings.prototype, "orientation", null);
464
- __decorate([
465
- Property({
466
- enumObject: AutoLayoutAlignItems
467
- }),
468
- __metadata("design:type", Object),
469
- __metadata("design:paramtypes", [Object])
470
- ], AutoLayoutSettings.prototype, "alignItems", null);
471
- __decorate([
472
- Property({
473
- enumObject: AutoLayoutJustifyContent
474
- }),
475
- __metadata("design:type", Object),
476
- __metadata("design:paramtypes", [Object])
477
- ], AutoLayoutSettings.prototype, "justifyContent", null);
478
- __decorate([
479
- Property({
480
- enumObject: AutoLayoutAnchorPoint
481
- }),
482
- __metadata("design:type", Number),
483
- __metadata("design:paramtypes", [Number])
484
- ], AutoLayoutSettings.prototype, "anchorPoint", null);
485
- return AutoLayoutSettings;
486
- }(DefaultLayoutSettings));
487
- export { AutoLayoutSettings };
368
+ }
369
+ }
370
+ AutoLayoutSettings.type = "AutoLayoutSettings";
371
+ __decorate([
372
+ Property({ ignore: true }),
373
+ __metadata("design:type", Object)
374
+ ], AutoLayoutSettings.prototype, "type", void 0);
375
+ __decorate([
376
+ Property({
377
+ enumObject: Object.assign({}, AutoLayoutOrientation)
378
+ }),
379
+ __metadata("design:type", Object),
380
+ __metadata("design:paramtypes", [Object])
381
+ ], AutoLayoutSettings.prototype, "orientation", null);
382
+ __decorate([
383
+ Property({
384
+ enumObject: AutoLayoutAlignItems
385
+ }),
386
+ __metadata("design:type", Object),
387
+ __metadata("design:paramtypes", [Object])
388
+ ], AutoLayoutSettings.prototype, "alignItems", null);
389
+ __decorate([
390
+ Property({
391
+ enumObject: AutoLayoutJustifyContent
392
+ }),
393
+ __metadata("design:type", Object),
394
+ __metadata("design:paramtypes", [Object])
395
+ ], AutoLayoutSettings.prototype, "justifyContent", null);
396
+ __decorate([
397
+ Property({
398
+ enumObject: AutoLayoutAnchorPoint
399
+ }),
400
+ __metadata("design:type", Number),
401
+ __metadata("design:paramtypes", [Number])
402
+ ], AutoLayoutSettings.prototype, "anchorPoint", null);
488
403
  //# sourceMappingURL=LayoutItem.js.map