@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,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
  import { ModelComponent } from "./ModelComponent";
15
2
  import { RectangleF } from "../Math/RectangleF";
16
3
  import { Collection } from "../Collection";
@@ -19,135 +6,105 @@ import { PrintAreaBoundsType } from "./PrintAreaBoundsType";
19
6
  import { ArgumentException } from "../Exception";
20
7
  import { equals } from "../Utils/Utils";
21
8
  import { Path } from "../Math/Path";
22
- var PrintArea = /** @class */ (function (_super) {
23
- __extends(PrintArea, _super);
24
- function PrintArea(bounds, bleed, slug, shape) {
25
- var _this = _super.call(this) || this;
26
- _this.parentSurface = null;
27
- _this._safetyLines = new Collection();
28
- _this._cropMarks = new Collection();
29
- _this._onShapePathChanged = function (_t) {
30
- _this._propertyChanged.notify(_this, "shape");
31
- _this._propertyChanged.notify(_this, "bounds");
32
- };
33
- _this._onBleedPropertyChanged = function (s, p) {
34
- _this._validateMargin(_this.bleed, "bleed");
35
- _this._propertyChanged.notify(_this, "bleed");
36
- };
37
- _this._onSlugPropertyChanged = function (s, p) {
38
- _this._validateMargin(_this.slug, "slug");
39
- _this._propertyChanged.notify(_this, "slug");
40
- };
41
- _this._validateMargin(bleed, "bleed");
42
- _this._validateMargin(slug, "slug");
43
- _this.bleed = bleed !== null && bleed !== void 0 ? bleed : new Margin();
44
- _this.slug = slug !== null && slug !== void 0 ? slug : new Margin();
45
- _this._shape = _this._ensureShape(shape, bounds);
46
- _this._subscribeShapeChanged();
47
- return _this;
48
- }
49
- Object.defineProperty(PrintArea.prototype, "bounds", {
50
- //TODO next release
51
- //private _background = new PrintAreaContainer();
52
- //get background() {
53
- // return this._background;
54
- //}
55
- //private _foreground = new PrintAreaContainer();`
56
- //get foreground() {
57
- // return this._foreground;
58
- //}
59
- get: function () {
60
- return this._shape.calculateBounds();
61
- },
62
- set: function (value) {
63
- if (value == null)
64
- throw new ArgumentException("PrintArea.bounds cannot be null.");
65
- if (RectangleF.isEqual(this.bounds, value))
66
- return;
67
- this._resizeShape(value);
68
- this._propertyChanged.notify(this, "bounds");
69
- this._propertyChanged.notify(this, "shape");
70
- },
71
- enumerable: true,
72
- configurable: true
73
- });
74
- Object.defineProperty(PrintArea.prototype, "shape", {
75
- get: function () {
76
- return this._shape;
77
- },
78
- set: function (value) {
79
- if (value == null)
80
- throw new ArgumentException("PrintArea.shape cannot be null.");
81
- if (this._shape != null && this._shape.isEqual(value))
82
- return;
83
- this._unsubscribeShapeChanged();
84
- this._shape = value;
85
- this._subscribeShapeChanged();
9
+ export class PrintArea extends ModelComponent {
10
+ constructor(bounds, bleed, slug, shape) {
11
+ super();
12
+ this.parentSurface = null;
13
+ this._safetyLines = new Collection();
14
+ this._cropMarks = new Collection();
15
+ this._onShapePathChanged = (_t) => {
86
16
  this._propertyChanged.notify(this, "shape");
87
17
  this._propertyChanged.notify(this, "bounds");
88
- },
89
- enumerable: true,
90
- configurable: true
91
- });
92
- Object.defineProperty(PrintArea.prototype, "safetyLines", {
93
- get: function () {
94
- return this._safetyLines;
95
- },
96
- set: function (value) {
97
- if (this._safetyLines === value)
98
- return;
99
- this._safetyLines = value;
100
- this._propertyChanged.notify(this, "safetyLines");
101
- },
102
- enumerable: true,
103
- configurable: true
104
- });
105
- Object.defineProperty(PrintArea.prototype, "cropMarks", {
106
- get: function () {
107
- return this._cropMarks;
108
- },
109
- set: function (value) {
110
- if (this._cropMarks === value)
111
- return;
112
- this._cropMarks = value;
113
- this._propertyChanged.notify(this, "cropMarks");
114
- },
115
- enumerable: true,
116
- configurable: true
117
- });
118
- Object.defineProperty(PrintArea.prototype, "bleed", {
119
- get: function () {
120
- return this._bleed;
121
- },
122
- set: function (value) {
123
- if (equals(value, this._bleed))
124
- return;
125
- this._validateMargin(value, "bleed");
126
- this._unsubscribeBleedPropertyChanged();
127
- this._bleed = value;
128
- this._subscribeBleedPropertyChanged();
18
+ };
19
+ this._onBleedPropertyChanged = (s, p) => {
20
+ this._validateMargin(this.bleed, "bleed");
129
21
  this._propertyChanged.notify(this, "bleed");
130
- },
131
- enumerable: true,
132
- configurable: true
133
- });
134
- Object.defineProperty(PrintArea.prototype, "slug", {
135
- get: function () {
136
- return this._slug;
137
- },
138
- set: function (value) {
139
- if (equals(value, this._slug))
140
- return;
141
- this._validateMargin(value, "slug");
142
- this._unsubscribeSlugPropertyChanged();
143
- this._slug = value;
144
- this._subscribeSlugPropertyChanged();
22
+ };
23
+ this._onSlugPropertyChanged = (s, p) => {
24
+ this._validateMargin(this.slug, "slug");
145
25
  this._propertyChanged.notify(this, "slug");
146
- },
147
- enumerable: true,
148
- configurable: true
149
- });
150
- PrintArea.prototype.getBounds = function (type) {
26
+ };
27
+ this._validateMargin(bleed, "bleed");
28
+ this._validateMargin(slug, "slug");
29
+ this.bleed = bleed !== null && bleed !== void 0 ? bleed : new Margin();
30
+ this.slug = slug !== null && slug !== void 0 ? slug : new Margin();
31
+ this._shape = this._ensureShape(shape, bounds);
32
+ this._subscribeShapeChanged();
33
+ }
34
+ get isRectangle() {
35
+ const { left, top, width, height } = this.bounds;
36
+ const rectanglePath = Path.rectangle(left, top, width, height);
37
+ return this.shape.equals(rectanglePath);
38
+ }
39
+ get bounds() {
40
+ return this._shape.calculateBounds();
41
+ }
42
+ set bounds(value) {
43
+ if (value == null)
44
+ throw new ArgumentException("PrintArea.bounds cannot be null.");
45
+ if (RectangleF.isEqual(this.bounds, value))
46
+ return;
47
+ this._resizeShape(value);
48
+ this._propertyChanged.notify(this, "bounds");
49
+ this._propertyChanged.notify(this, "shape");
50
+ }
51
+ get shape() {
52
+ return this._shape;
53
+ }
54
+ set shape(value) {
55
+ if (value == null)
56
+ throw new ArgumentException("PrintArea.shape cannot be null.");
57
+ if (this._shape != null && this._shape.isEqual(value))
58
+ return;
59
+ this._unsubscribeShapeChanged();
60
+ this._shape = value;
61
+ this._subscribeShapeChanged();
62
+ this._propertyChanged.notify(this, "shape");
63
+ this._propertyChanged.notify(this, "bounds");
64
+ }
65
+ get safetyLines() {
66
+ return this._safetyLines;
67
+ }
68
+ set safetyLines(value) {
69
+ if (this._safetyLines === value)
70
+ return;
71
+ this._safetyLines = value;
72
+ this._propertyChanged.notify(this, "safetyLines");
73
+ }
74
+ get cropMarks() {
75
+ return this._cropMarks;
76
+ }
77
+ set cropMarks(value) {
78
+ if (this._cropMarks === value)
79
+ return;
80
+ this._cropMarks = value;
81
+ this._propertyChanged.notify(this, "cropMarks");
82
+ }
83
+ get bleed() {
84
+ return this._bleed;
85
+ }
86
+ set bleed(value) {
87
+ if (equals(value, this._bleed))
88
+ return;
89
+ this._validateMargin(value, "bleed");
90
+ this._unsubscribeBleedPropertyChanged();
91
+ this._bleed = value;
92
+ this._subscribeBleedPropertyChanged();
93
+ this._propertyChanged.notify(this, "bleed");
94
+ }
95
+ get slug() {
96
+ return this._slug;
97
+ }
98
+ set slug(value) {
99
+ if (equals(value, this._slug))
100
+ return;
101
+ this._validateMargin(value, "slug");
102
+ this._unsubscribeSlugPropertyChanged();
103
+ this._slug = value;
104
+ this._subscribeSlugPropertyChanged();
105
+ this._propertyChanged.notify(this, "slug");
106
+ }
107
+ getBounds(type) {
151
108
  switch (type) {
152
109
  case PrintAreaBoundsType.Bleed:
153
110
  return this.bounds.getExpanded(this.bleed);
@@ -161,8 +118,8 @@ var PrintArea = /** @class */ (function (_super) {
161
118
  default:
162
119
  return this.bounds.clone();
163
120
  }
164
- };
165
- PrintArea.prototype._ensureShape = function (shape, bounds) {
121
+ }
122
+ _ensureShape(shape, bounds) {
166
123
  if (shape != null) {
167
124
  this._shape = shape;
168
125
  if (bounds != null)
@@ -172,17 +129,17 @@ var PrintArea = /** @class */ (function (_super) {
172
129
  if (bounds != null)
173
130
  return Path.rectangle(bounds.left, bounds.top, bounds.width, bounds.height);
174
131
  return new Path();
175
- };
176
- PrintArea.prototype._resizeShape = function (bounds) {
177
- var current = this._shape.calculateBounds();
132
+ }
133
+ _resizeShape(bounds) {
134
+ const current = this._shape.calculateBounds();
178
135
  if (bounds == null || current.equals(bounds))
179
136
  return;
180
137
  if (current.isEmpty()) {
181
138
  this._shape = Path.rectangle(bounds.left, bounds.top, bounds.width, bounds.height);
182
139
  return;
183
140
  }
184
- var scaleX = bounds.width / current.width;
185
- var scaleY = bounds.height / current.height;
141
+ const scaleX = bounds.width / current.width;
142
+ const scaleY = bounds.height / current.height;
186
143
  if (!isFinite(scaleX) || !isFinite(scaleY)) {
187
144
  this._unsubscribeShapeChanged();
188
145
  this._shape = Path.rectangle(bounds.left, bounds.top, bounds.width, bounds.height);
@@ -192,60 +149,57 @@ var PrintArea = /** @class */ (function (_super) {
192
149
  this._shape.translate(-current.left, -current.top);
193
150
  this._shape.scale(scaleX, scaleY);
194
151
  this._shape.translate(bounds.left, bounds.top);
195
- };
196
- PrintArea.prototype._subscribeShapeChanged = function () {
152
+ }
153
+ _subscribeShapeChanged() {
197
154
  if (this._shape != null)
198
155
  this._shape.addPathChanged(this._onShapePathChanged);
199
- };
200
- PrintArea.prototype._unsubscribeShapeChanged = function () {
156
+ }
157
+ _unsubscribeShapeChanged() {
201
158
  if (this._shape != null)
202
159
  this._shape.removePathChanged(this._onShapePathChanged);
203
- };
204
- PrintArea.prototype._subscribeBleedPropertyChanged = function () {
160
+ }
161
+ _subscribeBleedPropertyChanged() {
205
162
  if (this._bleed != null)
206
163
  this._bleed.addPropertyChanged(this._onBleedPropertyChanged);
207
- };
208
- PrintArea.prototype._unsubscribeBleedPropertyChanged = function () {
164
+ }
165
+ _unsubscribeBleedPropertyChanged() {
209
166
  if (this._bleed != null)
210
167
  this._bleed.removePropertyChanged(this._onBleedPropertyChanged);
211
- };
212
- PrintArea.prototype._subscribeSlugPropertyChanged = function () {
168
+ }
169
+ _subscribeSlugPropertyChanged() {
213
170
  if (this._slug != null)
214
171
  this._slug.addPropertyChanged(this._onSlugPropertyChanged);
215
- };
216
- PrintArea.prototype._unsubscribeSlugPropertyChanged = function () {
172
+ }
173
+ _unsubscribeSlugPropertyChanged() {
217
174
  if (this._slug != null)
218
175
  this._slug.removePropertyChanged(this._onSlugPropertyChanged);
219
- };
220
- PrintArea.prototype._validateMargin = function (margin, marginName) {
176
+ }
177
+ _validateMargin(margin, marginName) {
221
178
  if (margin != null && (margin.left < 0 || margin.top < 0 || margin.right < 0 || margin.bottom < 0))
222
- throw new ArgumentException("PrintArea.ts: " + marginName + " margin members cannot be negative!");
223
- };
224
- PrintArea.prototype.getSimplifiedObject = function () {
225
- var simplified = _super.prototype.getSimplifiedObject.call(this, ["parentSurface", "boundsWithMargins", "boundsWithBleed"]);
179
+ throw new ArgumentException(`PrintArea.ts: ${marginName} margin members cannot be negative!`);
180
+ }
181
+ getSimplifiedObject() {
182
+ const simplified = super.getSimplifiedObject(["parentSurface", "boundsWithMargins", "boundsWithBleed", "isRectangle"]);
226
183
  return simplified;
227
- };
228
- PrintArea.prototype._copy = function (source, destination, generateNewIds) {
184
+ }
185
+ _copy(source, destination, generateNewIds) {
229
186
  var _a, _b;
230
- _super.prototype._copy.call(this, source, destination, generateNewIds);
187
+ super._copy(source, destination, generateNewIds);
231
188
  destination.bounds = source.bounds != null ? source.bounds.clone() : null;
232
189
  destination.shape = source._shape != null ? source.shape.clone() : null;
233
- destination.safetyLines.addRange(source.safetyLines.toArray().map(function (s) { return s.clone(); }));
234
- destination.cropMarks.addRange(source.cropMarks.toArray().map(function (c) { return c.clone(); }));
190
+ destination.safetyLines.addRange(source.safetyLines.toArray().map(s => s.clone()));
191
+ destination.cropMarks.addRange(source.cropMarks.toArray().map(c => c.clone()));
235
192
  destination.bleed = (_a = source.bleed) === null || _a === void 0 ? void 0 : _a.clone();
236
193
  destination.slug = (_b = source.slug) === null || _b === void 0 ? void 0 : _b.clone();
237
- };
238
- PrintArea.prototype.clone = function (generateNewIds) {
239
- if (generateNewIds === void 0) { generateNewIds = false; }
194
+ }
195
+ clone(generateNewIds = false) {
240
196
  var _a;
241
- var printArea = new PrintArea(undefined, undefined, undefined, (_a = this.shape) === null || _a === void 0 ? void 0 : _a.clone());
197
+ const printArea = new PrintArea(undefined, undefined, undefined, (_a = this.shape) === null || _a === void 0 ? void 0 : _a.clone());
242
198
  this._copy(this, printArea, generateNewIds);
243
199
  return printArea;
244
- };
245
- PrintArea.prototype.generateNewIds = function () {
200
+ }
201
+ generateNewIds() {
246
202
  this._generateNewId();
247
- };
248
- return PrintArea;
249
- }(ModelComponent));
250
- export { PrintArea };
203
+ }
204
+ }
251
205
  //# sourceMappingURL=PrintArea.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PrintArea.js","sourceRoot":"","sources":["../../../src/design-atoms-model/Product/PrintArea.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGhD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO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IAAI,SAAS,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAA,IAAI,CAAC,KAAK,0CAAE,KAAK,EAAE,CAAC,CAAC;QACtF,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,cAAc,CAAC,CAAC;QAC5C,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,cAAc;QACV,IAAI,CAAC,cAAc,EAAE,CAAC;IAC1B,CAAC;CACJ"}
@@ -1,128 +1,90 @@
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 { Surface } from "./Surface";
16
- import * as _ from "underscore";
17
3
  import { Collection } from "../Collection";
18
4
  import { PointF } from "../Math/index";
19
5
  import { Palette } from "../Colors/Palette";
20
- var Product = /** @class */ (function (_super) {
21
- __extends(Product, _super);
22
- function Product(surfaces) {
23
- if (surfaces === void 0) { surfaces = []; }
24
- var _this = _super.call(this) || this;
25
- _this.defaultDesignLocation = new PointF();
26
- _this._defaultSafetyLines = new Collection();
27
- _this._defaultCropMarks = new Collection();
28
- _this._surfaces = new Collection();
29
- _this._preferredFonts = [];
30
- _this._onSurfacesAdd = function (_a) {
31
- var surface = _a.item;
32
- surface.parentProduct = _this;
6
+ export class Product extends ModelComponent {
7
+ constructor(surfaces = []) {
8
+ super();
9
+ this.defaultDesignLocation = new PointF();
10
+ this._defaultSafetyLines = new Collection();
11
+ this._defaultCropMarks = new Collection();
12
+ this._surfaces = new Collection();
13
+ this._preferredFonts = [];
14
+ this._onSurfacesAdd = ({ item: surface }) => {
15
+ surface.parentProduct = this;
33
16
  };
34
- _this.surfaces.add_collectionChanged(_this._onSurfacesAdd);
35
- _this.surfaces.setRange(surfaces);
36
- _this.palette = new Palette();
37
- return _this;
17
+ this.surfaces.add_collectionChanged(this._onSurfacesAdd);
18
+ this.surfaces.setRange(surfaces);
19
+ this.palette = new Palette();
38
20
  }
39
- Object.defineProperty(Product.prototype, "surfaces", {
40
- get: function () {
41
- return this._surfaces;
42
- },
43
- set: function (value) {
44
- this.surfaces.setRange(value);
45
- },
46
- enumerable: true,
47
- configurable: true
48
- });
49
- Product.prototype.serialize = function (serializer, forServer) {
21
+ get surfaces() {
22
+ return this._surfaces;
23
+ }
24
+ set surfaces(value) {
25
+ this.surfaces.setRange(value);
26
+ }
27
+ serialize(serializer, forServer) {
50
28
  return serializer.serialize(this, forServer);
51
- };
52
- Object.defineProperty(Product.prototype, "defaultSafetyLines", {
53
- get: function () {
54
- return this._defaultSafetyLines;
55
- },
56
- set: function (value) {
57
- if (this._defaultSafetyLines === value)
58
- return;
59
- this._defaultSafetyLines = value;
60
- this._propertyChanged.notify(this, "defaultSafetyLines");
61
- },
62
- enumerable: true,
63
- configurable: true
64
- });
65
- Object.defineProperty(Product.prototype, "defaultCropMarks", {
66
- get: function () {
67
- return this._defaultCropMarks;
68
- },
69
- set: function (value) {
70
- if (this._defaultCropMarks === value)
71
- return;
72
- this._defaultCropMarks = value;
73
- this._propertyChanged.notify(this, "defaultCropMarks");
74
- },
75
- enumerable: true,
76
- configurable: true
77
- });
78
- Object.defineProperty(Product.prototype, "preferredFonts", {
79
- get: function () {
80
- return this._preferredFonts;
81
- },
82
- set: function (value) {
83
- this._preferredFonts = value;
84
- this._propertyChanged.notify(this, "preferredFonts");
85
- },
86
- enumerable: true,
87
- configurable: true
88
- });
89
- Product.prototype._copy = function (source, destination, generateNewIds) {
29
+ }
30
+ get defaultSafetyLines() {
31
+ return this._defaultSafetyLines;
32
+ }
33
+ set defaultSafetyLines(value) {
34
+ if (this._defaultSafetyLines === value)
35
+ return;
36
+ this._defaultSafetyLines = value;
37
+ this._propertyChanged.notify(this, "defaultSafetyLines");
38
+ }
39
+ get defaultCropMarks() {
40
+ return this._defaultCropMarks;
41
+ }
42
+ set defaultCropMarks(value) {
43
+ if (this._defaultCropMarks === value)
44
+ return;
45
+ this._defaultCropMarks = value;
46
+ this._propertyChanged.notify(this, "defaultCropMarks");
47
+ }
48
+ get preferredFonts() {
49
+ return this._preferredFonts;
50
+ }
51
+ set preferredFonts(value) {
52
+ this._preferredFonts = value;
53
+ this._propertyChanged.notify(this, "preferredFonts");
54
+ }
55
+ _copy(source, destination, generateNewIds) {
90
56
  var _a;
91
- _super.prototype._copy.call(this, source, destination, generateNewIds);
92
- destination.surfaces.addRange(source.surfaces.toArray().map(function (s) { return s.clone(generateNewIds); }));
57
+ super._copy(source, destination, generateNewIds);
58
+ destination.surfaces.addRange(source.surfaces.toArray().map(s => s.clone(generateNewIds)));
93
59
  destination.watermarkConfig = source.watermarkConfig != null ? source.watermarkConfig.clone() : null;
94
- destination.defaultCropMarks.addRange(source.defaultCropMarks.toArray().map(function (s) { return s.clone(); }));
95
- destination.defaultSafetyLines.addRange(source.defaultSafetyLines.toArray().map(function (s) { return s.clone(); }));
60
+ destination.defaultCropMarks.addRange(source.defaultCropMarks.toArray().map(s => s.clone()));
61
+ destination.defaultSafetyLines.addRange(source.defaultSafetyLines.toArray().map(s => s.clone()));
96
62
  destination.defaultDesignLocation = source.defaultDesignLocation.clone();
97
- destination.palette.addRange(source.palette.select(function (x) { return x.clone(generateNewIds); }));
63
+ destination.palette.addRange(source.palette.select(x => x.clone(generateNewIds)));
98
64
  destination.preferredFonts = (_a = source.preferredFonts) === null || _a === void 0 ? void 0 : _a.slice();
99
- };
100
- Product.prototype.clone = function (generateNewIds) {
101
- if (generateNewIds === void 0) { generateNewIds = false; }
102
- var product = new Product();
65
+ }
66
+ clone(generateNewIds = false) {
67
+ const product = new Product();
103
68
  this._copy(this, product, generateNewIds);
104
69
  return product;
105
- };
106
- Product.prototype.getAllItems = function (options) {
107
- if (options === void 0) { options = { ignoreMockups: false }; }
70
+ }
71
+ getAllItems(options = { ignoreMockups: false }) {
108
72
  return Surface.getItems(this.surfaces, options);
109
- };
110
- Product.prototype.generateNewIds = function () {
73
+ }
74
+ generateNewIds() {
111
75
  this._generateNewId();
112
- this._surfaces.forEach(function (i) { return i.generateNewIds(); });
113
- };
76
+ this._surfaces.forEach(i => i.generateNewIds());
77
+ }
114
78
  /**
115
79
  * Get surface by name or index.
116
80
  * @param key - Surface name or index.
117
81
  */
118
- Product.prototype.getSurface = function (key) {
119
- var surfaces = this.surfaces.toArray();
120
- var surfaceIndex = parseInt(key);
82
+ getSurface(key) {
83
+ const surfaces = this.surfaces.toArray();
84
+ const surfaceIndex = parseInt(key);
121
85
  if (!Number.isNaN(surfaceIndex) && surfaceIndex >= 0 && surfaces.length > surfaceIndex)
122
86
  return surfaces[surfaceIndex];
123
- return _.find(surfaces, function (s) { return s.name === key; });
124
- };
125
- return Product;
126
- }(ModelComponent));
127
- export { Product };
87
+ return surfaces.find((s) => s.name === key);
88
+ }
89
+ }
128
90
  //# sourceMappingURL=Product.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../src/design-atoms-model/Product/Product.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,KAAK,CAAC,MAAM,YAAY,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAK3C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C;IAA6B,2BAAc;IAWvC,iBAAY,QAAwB;QAAxB,yBAAA,EAAA,aAAwB;QAApC,Y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AQ,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;IAED,cAAc;QACV,IAAI,CAAC,cAAc,EAAE,CAAC;QACtB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE,CAAC,CAAC;IACpD,CAAC;IAED;;;MAGE;IACF,UAAU,CAAC,GAAW;QAClB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;QACzC,MAAM,YAAY,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;QAEnC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,YAAY,IAAI,CAAC,IAAI,QAAQ,CAAC,MAAM,GAAG,YAAY;YAClF,OAAO,QAAQ,CAAC,YAAY,CAAC,CAAC;QAElC,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,GAAG,CAAC,CAAC;IAChD,CAAC;CACJ"}
@@ -4,7 +4,7 @@ import { SizeF } from "../Math/SizeF";
4
4
  import { INotifyPropertyChanged } from "../INotifyPropertyChanged";
5
5
  import { EventWithSenderArg } from "../EventObject";
6
6
  import { Margin } from "../Math/Margin";
7
- export declare type MarginOrNumber = number | Margin;
7
+ export type MarginOrNumber = number | Margin;
8
8
  export declare enum PdfBox {
9
9
  Crop = "Crop",
10
10
  Trim = "Trim",