@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
  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);
@@ -28,219 +15,168 @@ import { ResizeGripsPermissions } from "./ResizeGripsPermissions";
28
15
  import { Color, RgbColor, RgbColors } from "../../Colors";
29
16
  import { EventObject } from "../../EventObject";
30
17
  import { ArgumentException } from "../../Exception";
31
- import * as _ from "underscore";
32
18
  import { equals } from "../../Utils/Utils";
33
19
  import { Property } from "../Decorators/Property";
34
20
  import { ShapeViolationSettings } from "./ShapeViolationSettings";
35
21
  import { ColorPropertyFactory } from "../Decorators/Factory";
36
- var ShapeItem = /** @class */ (function (_super) {
37
- __extends(ShapeItem, _super);
38
- function ShapeItem(sourcePath) {
39
- var _this = _super.call(this) || this;
40
- _this._borderWidth = 1;
41
- _this._fillColor = new RgbColor(112, 112, 112, 255);
42
- _this._borderColor = RgbColors.black;
43
- _this._altBorderColor = null;
44
- _this._dash = [];
45
- _this._fixedBorderWidth = false;
46
- _this._overprintStroke = false;
47
- _this._overprintFill = false;
48
- _this.sourcePathId = null;
49
- _this.sourcePathLoaded = false;
50
- _this._stubPath = null;
51
- _this._pathLoadedEvent = new EventObject();
52
- _this.type = ShapeItem.type;
53
- _this.sourcePath = sourcePath != null ? sourcePath : new Path("");
54
- _this.sourceRectangle = new RectangleF(0, 0, 10, 10);
55
- _this.shapePermissions = new ShapePermissions();
56
- _this._setViolationSettings(new ShapeViolationSettings(), true);
57
- _this._ignorePermissionsChange = true;
58
- _this.manipulationPermissions.resizeGrips = new ResizeGripsPermissions(true, true);
59
- _this.itemPermissions.itemToolbarPermissions.showEditButton = false;
60
- _this.itemPermissions.itemToolbarPermissions.showSelectButton = false;
61
- _this._ignorePermissionsChange = false;
62
- return _this;
63
- }
64
- Object.defineProperty(ShapeItem.prototype, "fixedBorderWidth", {
65
- get: function () {
66
- return this._fixedBorderWidth;
67
- },
68
- set: function (value) {
69
- if (this._fixedBorderWidth !== value) {
70
- this._fixedBorderWidth = value;
71
- this._propertyChanged.notify(this, "fixedBorderWidth");
72
- }
73
- },
74
- enumerable: true,
75
- configurable: true
76
- });
77
- Object.defineProperty(ShapeItem.prototype, "borderWidth", {
78
- get: function () {
79
- return this._borderWidth;
80
- },
81
- set: function (value) {
82
- if (this._borderWidth !== value) {
83
- this._borderWidth = value;
84
- this._propertyChanged.notify(this, "borderWidth");
85
- }
86
- },
87
- enumerable: true,
88
- configurable: true
89
- });
90
- Object.defineProperty(ShapeItem.prototype, "sourcePath", {
91
- get: function () {
92
- return this._sourcePath;
93
- },
94
- set: function (value) {
95
- if (equals(this._sourcePath, value))
96
- return;
97
- this._sourcePath = value;
98
- if (this.sourcePathLoaded !== true)
99
- this._propertyChanged.notify(this, "sourcePath");
100
- },
101
- enumerable: true,
102
- configurable: true
103
- });
104
- Object.defineProperty(ShapeItem.prototype, "sourceRectangle", {
105
- get: function () {
106
- return this._sourceRectangle;
107
- },
108
- set: function (value) {
109
- if (RectangleF.isEqual(this._sourceRectangle, value))
110
- return;
111
- this._sourceRectangle = value;
112
- this._propertyChanged.notify(this, "sourceRectangle");
113
- },
114
- enumerable: true,
115
- configurable: true
116
- });
117
- Object.defineProperty(ShapeItem.prototype, "borderColor", {
118
- get: function () {
119
- return this._borderColor;
120
- },
121
- set: function (value) {
122
- if (!Color.equals(this._borderColor, value)) {
123
- this._borderColor = value;
124
- this._propertyChanged.notify(this, "borderColor");
125
- }
126
- },
127
- enumerable: true,
128
- configurable: true
129
- });
130
- Object.defineProperty(ShapeItem.prototype, "overprintStroke", {
131
- get: function () {
132
- return this._overprintStroke;
133
- },
134
- set: function (value) {
135
- if (this._overprintStroke === value)
136
- return;
137
- this._overprintStroke = value;
138
- this._propertyChanged.notify(this, "overprintStroke");
139
- },
140
- enumerable: true,
141
- configurable: true
142
- });
143
- Object.defineProperty(ShapeItem.prototype, "fillColor", {
144
- get: function () {
145
- return this._fillColor;
146
- },
147
- set: function (value) {
148
- if (!Color.equals(this._fillColor, value)) {
149
- this._fillColor = value;
150
- this._propertyChanged.notify(this, "fillColor");
151
- }
152
- },
153
- enumerable: true,
154
- configurable: true
155
- });
156
- Object.defineProperty(ShapeItem.prototype, "overprintFill", {
157
- get: function () {
158
- return this._overprintFill;
159
- },
160
- set: function (value) {
161
- if (this._overprintFill === value)
162
- return;
163
- this._overprintFill = value;
164
- this._propertyChanged.notify(this, "overprintFill");
165
- },
166
- enumerable: true,
167
- configurable: true
168
- });
169
- Object.defineProperty(ShapeItem.prototype, "altBorderColor", {
170
- get: function () {
171
- return this._altBorderColor;
172
- },
173
- set: function (value) {
174
- if (!Color.equals(this._altBorderColor, value)) {
175
- this._altBorderColor = value;
176
- this._propertyChanged.notify(this, "altBorderColor");
177
- }
178
- },
179
- enumerable: true,
180
- configurable: true
181
- });
182
- Object.defineProperty(ShapeItem.prototype, "dash", {
183
- get: function () {
184
- return this._dash;
185
- },
186
- set: function (value) {
187
- if (!_.isEqual(this._dash, value)) {
188
- this._dash = value;
189
- this._propertyChanged.notify(this, "dash");
190
- }
191
- },
192
- enumerable: true,
193
- configurable: true
194
- });
195
- ShapeItem.prototype.applyPermissionsConstrain = function () {
196
- _super.prototype.applyPermissionsConstrain.call(this);
22
+ import { arraysIsEqual } from "@aurigma/utils-js/algorithms/array";
23
+ export class ShapeItem extends Item {
24
+ constructor(sourcePath) {
25
+ super();
26
+ this._borderWidth = 1;
27
+ this._fillColor = new RgbColor(112, 112, 112, 255);
28
+ this._borderColor = RgbColors.black;
29
+ this._altBorderColor = null;
30
+ this._dash = [];
31
+ this._fixedBorderWidth = false;
32
+ this._overprintStroke = false;
33
+ this._overprintFill = false;
34
+ this.sourcePathId = null;
35
+ this.sourcePathLoaded = false;
36
+ this._stubPath = null;
37
+ this._pathLoadedEvent = new EventObject();
38
+ this.type = ShapeItem.type;
39
+ this.sourcePath = sourcePath != null ? sourcePath : new Path("");
40
+ this.sourceRectangle = new RectangleF(0, 0, 10, 10);
41
+ this.shapePermissions = new ShapePermissions();
42
+ this._setViolationSettings(new ShapeViolationSettings(), true);
43
+ this._ignorePermissionsChange = true;
44
+ this.manipulationPermissions.resizeGrips = new ResizeGripsPermissions(true, true);
45
+ this.itemPermissions.itemToolbarPermissions.showEditButton = false;
46
+ this.itemPermissions.itemToolbarPermissions.showSelectButton = false;
47
+ this._ignorePermissionsChange = false;
48
+ }
49
+ get fixedBorderWidth() {
50
+ return this._fixedBorderWidth;
51
+ }
52
+ set fixedBorderWidth(value) {
53
+ if (this._fixedBorderWidth !== value) {
54
+ this._fixedBorderWidth = value;
55
+ this._propertyChanged.notify(this, "fixedBorderWidth");
56
+ }
57
+ }
58
+ get borderWidth() {
59
+ return this._borderWidth;
60
+ }
61
+ set borderWidth(value) {
62
+ if (this._borderWidth !== value) {
63
+ this._borderWidth = value;
64
+ this._propertyChanged.notify(this, "borderWidth");
65
+ }
66
+ }
67
+ get sourcePath() {
68
+ return this._sourcePath;
69
+ }
70
+ set sourcePath(value) {
71
+ if (equals(this._sourcePath, value))
72
+ return;
73
+ this._sourcePath = value;
74
+ if (this.sourcePathLoaded !== true)
75
+ this._propertyChanged.notify(this, "sourcePath");
76
+ }
77
+ get sourceRectangle() {
78
+ return this._sourceRectangle;
79
+ }
80
+ set sourceRectangle(value) {
81
+ if (RectangleF.isEqual(this._sourceRectangle, value))
82
+ return;
83
+ this._sourceRectangle = value;
84
+ this._propertyChanged.notify(this, "sourceRectangle");
85
+ }
86
+ get borderColor() {
87
+ return this._borderColor;
88
+ }
89
+ set borderColor(value) {
90
+ if (!Color.equals(this._borderColor, value)) {
91
+ this._borderColor = value;
92
+ this._propertyChanged.notify(this, "borderColor");
93
+ }
94
+ }
95
+ get overprintStroke() {
96
+ return this._overprintStroke;
97
+ }
98
+ set overprintStroke(value) {
99
+ if (this._overprintStroke === value)
100
+ return;
101
+ this._overprintStroke = value;
102
+ this._propertyChanged.notify(this, "overprintStroke");
103
+ }
104
+ get fillColor() {
105
+ return this._fillColor;
106
+ }
107
+ set fillColor(value) {
108
+ if (!Color.equals(this._fillColor, value)) {
109
+ this._fillColor = value;
110
+ this._propertyChanged.notify(this, "fillColor");
111
+ }
112
+ }
113
+ get overprintFill() {
114
+ return this._overprintFill;
115
+ }
116
+ set overprintFill(value) {
117
+ if (this._overprintFill === value)
118
+ return;
119
+ this._overprintFill = value;
120
+ this._propertyChanged.notify(this, "overprintFill");
121
+ }
122
+ get altBorderColor() {
123
+ return this._altBorderColor;
124
+ }
125
+ set altBorderColor(value) {
126
+ if (!Color.equals(this._altBorderColor, value)) {
127
+ this._altBorderColor = value;
128
+ this._propertyChanged.notify(this, "altBorderColor");
129
+ }
130
+ }
131
+ get dash() {
132
+ return this._dash;
133
+ }
134
+ set dash(value) {
135
+ if (!arraysIsEqual(this._dash, value)) {
136
+ this._dash = value;
137
+ this._propertyChanged.notify(this, "dash");
138
+ }
139
+ }
140
+ applyPermissionsConstrain() {
141
+ super.applyPermissionsConstrain();
197
142
  this.itemPermissions.itemToolbarPermissions.showEditButtonConstraint = false;
198
143
  this.itemPermissions.itemToolbarPermissions.showSelectButtonConstraint = false;
199
144
  if (this.isRenderTypeIsNormal)
200
145
  return;
201
146
  this.shapePermissions.allowChangeBorderColor = false;
202
147
  this.shapePermissions.allowChangeFillColor = false;
203
- };
204
- Object.defineProperty(ShapeItem.prototype, "shapePermissions", {
205
- get: function () {
206
- return this._shapePermissions;
207
- },
208
- set: function (value) {
209
- if (value == null)
210
- throw new ArgumentException("shapePermissions cannot be null");
211
- if (equals(this._shapePermissions, value))
212
- return;
213
- if (this._shapePermissions != null)
214
- this._shapePermissions.propertyChanged.remove(this._onPermissionsChanged);
215
- this._shapePermissions = value;
216
- this.applyPermissionsConstrain();
217
- this._shapePermissions.propertyChanged.add(this._onPermissionsChanged);
218
- this._propertyChanged.notify(this, "shapePermissions");
219
- },
220
- enumerable: true,
221
- configurable: true
222
- });
223
- Object.defineProperty(ShapeItem.prototype, "violationSettings", {
224
- get: function () {
225
- return this._violationSettings;
226
- },
227
- set: function (value) {
228
- this._setViolationSettings(value);
229
- },
230
- enumerable: true,
231
- configurable: true
232
- });
233
- ShapeItem.prototype._setViolationSettings = function (value, skipTypeCheck) {
234
- if (skipTypeCheck === void 0) { skipTypeCheck = false; }
148
+ }
149
+ get shapePermissions() {
150
+ return this._shapePermissions;
151
+ }
152
+ set shapePermissions(value) {
153
+ if (value == null)
154
+ throw new ArgumentException("shapePermissions cannot be null");
155
+ if (equals(this._shapePermissions, value))
156
+ return;
157
+ if (this._shapePermissions != null)
158
+ this._shapePermissions.propertyChanged.remove(this._onPermissionsChanged);
159
+ this._shapePermissions = value;
160
+ this.applyPermissionsConstrain();
161
+ this._shapePermissions.propertyChanged.add(this._onPermissionsChanged);
162
+ this._propertyChanged.notify(this, "shapePermissions");
163
+ }
164
+ get violationSettings() {
165
+ return this._violationSettings;
166
+ }
167
+ set violationSettings(value) {
168
+ this._setViolationSettings(value);
169
+ }
170
+ _setViolationSettings(value, skipTypeCheck = false) {
235
171
  if (!skipTypeCheck && !(value instanceof ShapeViolationSettings))
236
172
  throw new ArgumentException("Shape ViolationSettings property must has ShapeViolationSettings type!");
237
- _super.prototype._setViolationSettings.call(this, value, skipTypeCheck);
238
- };
239
- ShapeItem.prototype._copy = function (source, destination, generateNewIds, appropriateParentContainer) {
240
- _super.prototype._copy.call(this, source, destination, generateNewIds, appropriateParentContainer);
173
+ super._setViolationSettings(value, skipTypeCheck);
174
+ }
175
+ _copy(source, destination, generateNewIds, appropriateParentContainer) {
176
+ super._copy(source, destination, generateNewIds, appropriateParentContainer);
241
177
  destination.shapePermissions = source._shapePermissions != null ? source._shapePermissions.clone() : null;
242
178
  destination._stubPath = source._stubPath != null ? source._stubPath.clone() : null;
243
- destination.dash = _.clone(source._dash);
179
+ destination.dash = structuredClone(source._dash);
244
180
  destination.altBorderColor = source._altBorderColor != null ? source._altBorderColor.clone() : null;
245
181
  destination.fillColor = source._fillColor != null ? source._fillColor.clone() : null;
246
182
  destination.borderColor = source._borderColor != null ? source._borderColor.clone() : null;
@@ -255,54 +191,50 @@ var ShapeItem = /** @class */ (function (_super) {
255
191
  destination.fixedBorderWidth = source.fixedBorderWidth;
256
192
  destination.overprintStroke = source.overprintStroke;
257
193
  destination.overprintFill = source.overprintFill;
258
- };
259
- ShapeItem.prototype.equals = function (other) {
260
- var superEquals = _super.prototype.equals.call(this, other);
261
- var shapePermissionsEq = equals(this._shapePermissions, other._shapePermissions);
262
- var stubPathEq = equals(this._stubPath, other._stubPath);
263
- var dashEq = equals(this._dash, other._dash);
264
- var altBorderColorEq = equals(this._altBorderColor, other._altBorderColor);
265
- var fillColorEq = equals(this._fillColor, other._fillColor);
266
- var borderColorEq = equals(this._borderColor, other._borderColor);
267
- var sourceRectEq = equals(this._sourceRectangle, other._sourceRectangle);
268
- var sourcePathIdEq = equals(this.sourcePathId, other.sourcePathId);
269
- var sourcePathEq = equals(this._sourcePath, other._sourcePath);
270
- var borderWidthEq = equals(this._borderWidth, other._borderWidth);
271
- var fixedBorderWidthEq = equals(this._fixedBorderWidth, other._fixedBorderWidth);
272
- var overprintStrokeEq = equals(this._overprintStroke, other._overprintStroke);
273
- var overprintFillEq = equals(this._overprintFill, other._overprintFill);
194
+ }
195
+ equals(other) {
196
+ const superEquals = super.equals(other);
197
+ const shapePermissionsEq = equals(this._shapePermissions, other._shapePermissions);
198
+ const stubPathEq = equals(this._stubPath, other._stubPath);
199
+ const dashEq = equals(this._dash, other._dash);
200
+ const altBorderColorEq = equals(this._altBorderColor, other._altBorderColor);
201
+ const fillColorEq = equals(this._fillColor, other._fillColor);
202
+ const borderColorEq = equals(this._borderColor, other._borderColor);
203
+ const sourceRectEq = equals(this._sourceRectangle, other._sourceRectangle);
204
+ const sourcePathIdEq = equals(this.sourcePathId, other.sourcePathId);
205
+ const sourcePathEq = equals(this._sourcePath, other._sourcePath);
206
+ const borderWidthEq = equals(this._borderWidth, other._borderWidth);
207
+ const fixedBorderWidthEq = equals(this._fixedBorderWidth, other._fixedBorderWidth);
208
+ const overprintStrokeEq = equals(this._overprintStroke, other._overprintStroke);
209
+ const overprintFillEq = equals(this._overprintFill, other._overprintFill);
274
210
  return superEquals && shapePermissionsEq && stubPathEq && dashEq && altBorderColorEq && fillColorEq && borderColorEq && sourceRectEq &&
275
211
  sourcePathIdEq && sourcePathEq && borderWidthEq && fixedBorderWidthEq && overprintStrokeEq && overprintFillEq;
276
- };
277
- ShapeItem.prototype.clone = function (generateNewIds, appropriateParentContainer) {
278
- if (generateNewIds === void 0) { generateNewIds = false; }
279
- if (appropriateParentContainer === void 0) { appropriateParentContainer = false; }
280
- var item = new ShapeItem();
212
+ }
213
+ clone(generateNewIds = false, appropriateParentContainer = false) {
214
+ const item = new ShapeItem();
281
215
  this._copy(this, item, generateNewIds, appropriateParentContainer);
282
216
  return item;
283
- };
284
- ShapeItem.prototype.getSimplifiedObject = function (omitProperties) {
285
- var simplified = _super.prototype.getSimplifiedObject.call(this, ["shapePermissions"].concat(omitProperties));
217
+ }
218
+ getSimplifiedObject(omitProperties) {
219
+ const simplified = super.getSimplifiedObject(["shapePermissions"].concat(omitProperties));
286
220
  simplified["shapePermissions"] = this.shapePermissions.getSimplifiedObject();
287
221
  if (this.sourcePathId == null)
288
222
  simplified["sourcePath"] = this.sourcePath != null ? this.sourcePath.toString() : null;
289
223
  else
290
224
  simplified["sourcePath"] = null;
291
225
  return simplified;
292
- };
293
- ShapeItem.prototype._onPathLoaded = function () {
226
+ }
227
+ _onPathLoaded() {
294
228
  this._pathLoadedEvent.notify(this);
295
- };
296
- ShapeItem.prototype.getPathLoadedEvent = function () {
229
+ }
230
+ getPathLoadedEvent() {
297
231
  return this._pathLoadedEvent;
298
- };
299
- ShapeItem.type = "ShapeItem";
300
- __decorate([
301
- Property({ factory: new ColorPropertyFactory(), displayName: "Alternative border color" }),
302
- __metadata("design:type", Color),
303
- __metadata("design:paramtypes", [Color])
304
- ], ShapeItem.prototype, "altBorderColor", null);
305
- return ShapeItem;
306
- }(Item));
307
- export { ShapeItem };
232
+ }
233
+ }
234
+ ShapeItem.type = "ShapeItem";
235
+ __decorate([
236
+ Property({ factory: new ColorPropertyFactory(), displayName: "Alternative border color" }),
237
+ __metadata("design:type", Color),
238
+ __metadata("design:paramtypes", [Color])
239
+ ], ShapeItem.prototype, "altBorderColor", null);
308
240
  //# sourceMappingURL=ShapeItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ShapeItem.js","sourceRoot":"","sources":["../../../../src/design-atoms-model/Product/Items/ShapeItem.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACv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AC;QAC7E,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;;YAEvF,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;QAEpC,OAAO,UAAU,CAAC;IACtB,CAAC;IAKO,aAAa;QACjB,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IAED,kBAAkB;QACd,OAAO,IAAI,CAAC,gBAAgB,CAAC;IACjC,CAAC;;AATM,cAAI,GAAG,WAAW,CAAC;AAxI1B;IAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,oBAAoB,EAAE,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;8BAMjE,KAAK;qCAAL,KAAK;+CAF9B"}
@@ -1,6 +1,33 @@
1
1
  import { EventObject } from "../../EventObject";
2
- var ShapePermissions = /** @class */ (function () {
3
- function ShapePermissions(defaultValue) {
2
+ export class ShapePermissions {
3
+ get allowChangeBorderWidth() {
4
+ return this._allowChangeBorderWidth;
5
+ }
6
+ set allowChangeBorderWidth(value) {
7
+ if (this._allowChangeBorderWidth === value)
8
+ return;
9
+ this._allowChangeBorderWidth = value;
10
+ this.propertyChanged.notify();
11
+ }
12
+ get allowChangeFillColor() {
13
+ return this._allowChangeFillColor;
14
+ }
15
+ set allowChangeFillColor(value) {
16
+ if (this._allowChangeFillColor === value)
17
+ return;
18
+ this._allowChangeFillColor = value;
19
+ this.propertyChanged.notify();
20
+ }
21
+ get allowChangeBorderColor() {
22
+ return this._allowChangeBorderColor;
23
+ }
24
+ set allowChangeBorderColor(value) {
25
+ if (this._allowChangeBorderColor === value)
26
+ return;
27
+ this._allowChangeBorderColor = value;
28
+ this.propertyChanged.notify();
29
+ }
30
+ constructor(defaultValue) {
4
31
  this._allowChangeBorderWidth = true;
5
32
  this._allowChangeFillColor = true;
6
33
  this._allowChangeBorderColor = true;
@@ -11,65 +38,24 @@ var ShapePermissions = /** @class */ (function () {
11
38
  this.allowChangeFillColor = defaultValue;
12
39
  this.allowChangeBorderColor = defaultValue;
13
40
  }
14
- Object.defineProperty(ShapePermissions.prototype, "allowChangeBorderWidth", {
15
- get: function () {
16
- return this._allowChangeBorderWidth;
17
- },
18
- set: function (value) {
19
- if (this._allowChangeBorderWidth === value)
20
- return;
21
- this._allowChangeBorderWidth = value;
22
- this.propertyChanged.notify();
23
- },
24
- enumerable: true,
25
- configurable: true
26
- });
27
- Object.defineProperty(ShapePermissions.prototype, "allowChangeFillColor", {
28
- get: function () {
29
- return this._allowChangeFillColor;
30
- },
31
- set: function (value) {
32
- if (this._allowChangeFillColor === value)
33
- return;
34
- this._allowChangeFillColor = value;
35
- this.propertyChanged.notify();
36
- },
37
- enumerable: true,
38
- configurable: true
39
- });
40
- Object.defineProperty(ShapePermissions.prototype, "allowChangeBorderColor", {
41
- get: function () {
42
- return this._allowChangeBorderColor;
43
- },
44
- set: function (value) {
45
- if (this._allowChangeBorderColor === value)
46
- return;
47
- this._allowChangeBorderColor = value;
48
- this.propertyChanged.notify();
49
- },
50
- enumerable: true,
51
- configurable: true
52
- });
53
- ShapePermissions.prototype.clone = function () {
54
- var clone = new ShapePermissions();
41
+ clone() {
42
+ const clone = new ShapePermissions();
55
43
  clone.allowChangeBorderColor = this.allowChangeBorderColor;
56
44
  clone.allowChangeBorderWidth = this.allowChangeBorderWidth;
57
45
  clone.allowChangeFillColor = this.allowChangeFillColor;
58
46
  return clone;
59
- };
60
- ShapePermissions.prototype.getSimplifiedObject = function () {
61
- var result = {};
47
+ }
48
+ getSimplifiedObject() {
49
+ const result = {};
62
50
  result["allowChangeBorderWidth"] = this.allowChangeBorderWidth;
63
51
  result["allowChangeFillColor"] = this.allowChangeFillColor;
64
52
  result["allowChangeBorderColor"] = this.allowChangeBorderColor;
65
53
  return result;
66
- };
67
- ShapePermissions.prototype.equals = function (p) {
54
+ }
55
+ equals(p) {
68
56
  return this.allowChangeBorderColor === p.allowChangeBorderColor &&
69
57
  this.allowChangeFillColor === p.allowChangeFillColor &&
70
58
  this.allowChangeBorderWidth === p.allowChangeBorderWidth;
71
- };
72
- return ShapePermissions;
73
- }());
74
- export { ShapePermissions };
59
+ }
60
+ }
75
61
  //# sourceMappingURL=ShapePermissions.js.map