@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.
- package/Collection.js +271 -514
- package/Collection.js.map +1 -1
- package/Colors/CmykColor.js +35 -69
- package/Colors/CmykColor.js.map +1 -1
- package/Colors/Color.js +11 -19
- package/Colors/Color.js.map +1 -1
- package/Colors/GrayscaleColor.js +23 -45
- package/Colors/GrayscaleColor.js.map +1 -1
- package/Colors/HsbColor.js +67 -85
- package/Colors/HsbColor.js.map +1 -1
- package/Colors/Ink.js +20 -35
- package/Colors/Ink.js.map +1 -1
- package/Colors/LabColor.js +29 -59
- package/Colors/LabColor.js.map +1 -1
- package/Colors/Palette.js +2 -21
- package/Colors/Palette.js.map +1 -1
- package/Colors/ProcessColor.js +24 -54
- package/Colors/ProcessColor.js.map +1 -1
- package/Colors/RgbColor.js +31 -61
- package/Colors/RgbColor.js.map +1 -1
- package/Colors/RgbColors.js +22 -54
- package/Colors/RgbColors.js.map +1 -1
- package/Colors/SpotColor.js +34 -68
- package/Colors/SpotColor.js.map +1 -1
- package/Colors/Swatch.js +16 -40
- package/Colors/Swatch.js.map +1 -1
- package/Colors/ValidationUtils.js +3 -5
- package/Colors/ValidationUtils.js.map +1 -1
- package/ColorsOld/CmykColor.js +54 -80
- package/ColorsOld/CmykColor.js.map +1 -1
- package/ColorsOld/Color.d.ts +1 -1
- package/ColorsOld/Color.js +25 -34
- package/ColorsOld/Color.js.map +1 -1
- package/ColorsOld/ColorFactory.js +30 -40
- package/ColorsOld/ColorFactory.js.map +1 -1
- package/ColorsOld/GrayscaleColor.js +29 -54
- package/ColorsOld/GrayscaleColor.js.map +1 -1
- package/ColorsOld/HsbColor.js +29 -35
- package/ColorsOld/HsbColor.js.map +1 -1
- package/ColorsOld/LabColor.js +35 -56
- package/ColorsOld/LabColor.js.map +1 -1
- package/ColorsOld/RgbColor.js +73 -114
- package/ColorsOld/RgbColor.js.map +1 -1
- package/ColorsOld/SpotColor.js +32 -53
- package/ColorsOld/SpotColor.js.map +1 -1
- package/ColorsOld/Utils.js +9 -13
- package/ColorsOld/Utils.js.map +1 -1
- package/Configuration/IRenderingConfig.js +1 -0
- package/Configuration/WatermarkConfig.js +17 -33
- package/Configuration/WatermarkConfig.js.map +1 -1
- package/Configuration/index.js +1 -0
- package/Configuration/index.js.map +1 -1
- package/Configuration.js +7 -11
- package/Configuration.js.map +1 -1
- package/EquatableKeyDictionary.js +43 -127
- package/EquatableKeyDictionary.js.map +1 -1
- package/EventObject.js +59 -136
- package/EventObject.js.map +1 -1
- package/Exception.d.ts +1 -1
- package/Exception.js +47 -88
- package/Exception.js.map +1 -1
- package/INotifyPropertyChanged.d.ts +1 -1
- package/INotifyPropertyChanged.js +1 -0
- package/Math/Array.js +3 -3
- package/Math/Array.js.map +1 -1
- package/Math/Common.js +13 -15
- package/Math/Common.js.map +1 -1
- package/Math/ILtrb.js +1 -0
- package/Math/IPoint.js +1 -0
- package/Math/ISize.js +1 -0
- package/Math/Margin.js +62 -99
- package/Math/Margin.js.map +1 -1
- package/Math/Matrix.js +63 -94
- package/Math/Matrix.js.map +1 -1
- package/Math/Path.d.ts +1 -1
- package/Math/Path.js +149 -234
- package/Math/Path.js.map +1 -1
- package/Math/PointF.js +31 -34
- package/Math/PointF.js.map +1 -1
- package/Math/RectangleF.js +119 -159
- package/Math/RectangleF.js.map +1 -1
- package/Math/RotatedRectangleF.js +132 -147
- package/Math/RotatedRectangleF.js.map +1 -1
- package/Math/SizeF.js +10 -12
- package/Math/SizeF.js.map +1 -1
- package/Math/Transform.js +50 -80
- package/Math/Transform.js.map +1 -1
- package/Math/index.js +3 -0
- package/Math/index.js.map +1 -1
- package/Product/Constraints/ContainerConstraints.js +11 -13
- package/Product/Constraints/ContainerConstraints.js.map +1 -1
- package/Product/Constraints/MaxArtworkSizeConstraints.d.ts +1 -1
- package/Product/Constraints/MaxArtworkSizeConstraints.js +10 -12
- package/Product/Constraints/MaxArtworkSizeConstraints.js.map +1 -1
- package/Product/Constraints/PrintingTechniqueConstraints.js +10 -13
- package/Product/Constraints/PrintingTechniqueConstraints.js.map +1 -1
- package/Product/Container.d.ts +10 -10
- package/Product/Container.js +253 -375
- package/Product/Container.js.map +1 -1
- package/Product/ContainerVisualization.d.ts +1 -0
- package/Product/ContainerVisualization.js +31 -56
- package/Product/ContainerVisualization.js.map +1 -1
- package/Product/Convert/CornerRadiusConverter.js +32 -34
- package/Product/Convert/CornerRadiusConverter.js.map +1 -1
- package/Product/CropMark.js +28 -40
- package/Product/CropMark.js.map +1 -1
- package/Product/Decorators/Factory/AbstractFactory.js +13 -23
- package/Product/Decorators/Factory/AbstractFactory.js.map +1 -1
- package/Product/Decorators/Factory/CollectionFactory.js +10 -45
- package/Product/Decorators/Factory/CollectionFactory.js.map +1 -1
- package/Product/Decorators/Factory/ColorFactory.js +13 -35
- package/Product/Decorators/Factory/ColorFactory.js.map +1 -1
- package/Product/Decorators/Factory/ObjectFactory.js +10 -45
- package/Product/Decorators/Factory/ObjectFactory.js.map +1 -1
- package/Product/Decorators/Factory/SimpleFactory.js +11 -21
- package/Product/Decorators/Factory/SimpleFactory.js.map +1 -1
- package/Product/Decorators/Interfaces/IInputPropertyMetadata.d.ts +1 -1
- package/Product/Decorators/Interfaces/IInputPropertyMetadata.js +1 -0
- package/Product/Decorators/Interfaces/IObjectMetadata.js +1 -0
- package/Product/Decorators/Interfaces/IPropertyMetadata.js +1 -0
- package/Product/Decorators/ItemsMetadata.js +11 -13
- package/Product/Decorators/ItemsMetadata.js.map +1 -1
- package/Product/Decorators/Property.js +4 -4
- package/Product/Decorators/Property.js.map +1 -1
- package/Product/Decorators/PropertyChanged.js +1 -1
- package/Product/Decorators/PropertyChanged.js.map +1 -1
- package/Product/Decorators/index.js +1 -0
- package/Product/Decorators/index.js.map +1 -1
- package/Product/Effects/ColorDictionaryEntry.js +3 -5
- package/Product/Effects/ColorDictionaryEntry.js.map +1 -1
- package/Product/Effects/NDEffectParameters.js +2 -6
- package/Product/Effects/NDEffectParameters.js.map +1 -1
- package/Product/Effects/NDEffects.d.ts +1 -0
- package/Product/Effects/NDEffects.js +20 -27
- package/Product/Effects/NDEffects.js.map +1 -1
- package/Product/Effects/RecolorEffectParameters.d.ts +1 -0
- package/Product/Effects/RecolorEffectParameters.js +44 -89
- package/Product/Effects/RecolorEffectParameters.js.map +1 -1
- package/Product/IGetAllItemsOptions.js +1 -0
- package/Product/InteractiveZone.js +34 -66
- package/Product/InteractiveZone.js.map +1 -1
- package/Product/Interfaces/IColorWithTitle.js +1 -0
- package/Product/Interfaces/IDataSet.js +1 -0
- package/Product/Interfaces/IFontSettings.js +1 -0
- package/Product/Interfaces/IItemData.js +1 -0
- package/Product/Interfaces/IPdfMetadata.js +1 -0
- package/Product/Interfaces/IProductThemeConfig.js +1 -0
- package/Product/Interfaces/IShadowSettings.js +1 -0
- package/Product/Interfaces/IStrokeSettings.js +1 -0
- package/Product/Interfaces/index.js +3 -0
- package/Product/Interfaces/index.js.map +1 -1
- package/Product/ItemMask.js +20 -26
- package/Product/ItemMask.js.map +1 -1
- package/Product/Items/ArchedTextItem.js +65 -100
- package/Product/Items/ArchedTextItem.js.map +1 -1
- package/Product/Items/AutoScaledTextItem.js +35 -62
- package/Product/Items/AutoScaledTextItem.js.map +1 -1
- package/Product/Items/BarcodeData.d.ts +1 -1
- package/Product/Items/BarcodeData.js +62 -91
- package/Product/Items/BarcodeData.js.map +1 -1
- package/Product/Items/BarcodeItem.js +249 -298
- package/Product/Items/BarcodeItem.js.map +1 -1
- package/Product/Items/BarcodePermissions.js +38 -52
- package/Product/Items/BarcodePermissions.js.map +1 -1
- package/Product/Items/BaseItem.js +30 -53
- package/Product/Items/BaseItem.js.map +1 -1
- package/Product/Items/BaseTextItem.d.ts +2 -2
- package/Product/Items/BaseTextItem.js +451 -625
- package/Product/Items/BaseTextItem.js.map +1 -1
- package/Product/Items/BoundedTextItem.js +184 -255
- package/Product/Items/BoundedTextItem.js.map +1 -1
- package/Product/Items/ClipartItem.js +82 -175
- package/Product/Items/ClipartItem.js.map +1 -1
- package/Product/Items/ContentItem.js +52 -80
- package/Product/Items/ContentItem.js.map +1 -1
- package/Product/Items/ContentPermissions.js +36 -47
- package/Product/Items/ContentPermissions.js.map +1 -1
- package/Product/Items/CurvedTextItem.js +106 -158
- package/Product/Items/CurvedTextItem.js.map +1 -1
- package/Product/Items/DashedLineItem.js +45 -76
- package/Product/Items/DashedLineItem.js.map +1 -1
- package/Product/Items/EllipseItem.js +11 -31
- package/Product/Items/EllipseItem.js.map +1 -1
- package/Product/Items/FrontEndPermissions.js +20 -26
- package/Product/Items/FrontEndPermissions.js.map +1 -1
- package/Product/Items/GridItem.js +107 -162
- package/Product/Items/GridItem.js.map +1 -1
- package/Product/Items/GroupItem.js +95 -172
- package/Product/Items/GroupItem.js.map +1 -1
- package/Product/Items/GroupItemPermissions.js +42 -56
- package/Product/Items/GroupItemPermissions.js.map +1 -1
- package/Product/Items/ImageItem.d.ts +9 -4
- package/Product/Items/ImageItem.js +319 -430
- package/Product/Items/ImageItem.js.map +1 -1
- package/Product/Items/ImageMetaData.js +14 -15
- package/Product/Items/ImageMetaData.js.map +1 -1
- package/Product/Items/ImagePermissions.js +42 -56
- package/Product/Items/ImagePermissions.js.map +1 -1
- package/Product/Items/ImageViolationSettings.js +18 -35
- package/Product/Items/ImageViolationSettings.js.map +1 -1
- package/Product/Items/InStringPlaceholder.d.ts +2 -1
- package/Product/Items/InStringPlaceholder.js +52 -101
- package/Product/Items/InStringPlaceholder.js.map +1 -1
- package/Product/Items/Item.d.ts +1 -1
- package/Product/Items/Item.js +278 -370
- package/Product/Items/Item.js.map +1 -1
- package/Product/Items/ItemPermissions.js +54 -73
- package/Product/Items/ItemPermissions.js.map +1 -1
- package/Product/Items/ItemToolbarPermissions.js +61 -80
- package/Product/Items/ItemToolbarPermissions.js.map +1 -1
- package/Product/Items/LayoutItem.js +241 -326
- package/Product/Items/LayoutItem.js.map +1 -1
- package/Product/Items/LineItem.js +109 -156
- package/Product/Items/LineItem.js.map +1 -1
- package/Product/Items/LinePermissions.js +29 -39
- package/Product/Items/LinePermissions.js.map +1 -1
- package/Product/Items/ManipulationPermissions.d.ts +1 -1
- package/Product/Items/ManipulationPermissions.js +94 -135
- package/Product/Items/ManipulationPermissions.js.map +1 -1
- package/Product/Items/OpenTypeFeature.d.ts +1 -1
- package/Product/Items/OpenTypeFeature.js +3 -5
- package/Product/Items/OpenTypeFeature.js.map +1 -1
- package/Product/Items/OverlayEffect.js +56 -70
- package/Product/Items/OverlayEffect.js.map +1 -1
- package/Product/Items/ParagraphSettings.js +9 -11
- package/Product/Items/ParagraphSettings.js.map +1 -1
- package/Product/Items/PathBoundedTextItem.js +116 -166
- package/Product/Items/PathBoundedTextItem.js.map +1 -1
- package/Product/Items/PathBoundedTextPermissions.js +20 -26
- package/Product/Items/PathBoundedTextPermissions.js.map +1 -1
- package/Product/Items/PlaceholderItem.d.ts +1 -1
- package/Product/Items/PlaceholderItem.js +310 -419
- package/Product/Items/PlaceholderItem.js.map +1 -1
- package/Product/Items/PlaceholderPermissions.js +38 -47
- package/Product/Items/PlaceholderPermissions.js.map +1 -1
- package/Product/Items/PlainTextItem.js +45 -74
- package/Product/Items/PlainTextItem.js.map +1 -1
- package/Product/Items/PolylineItem.js +51 -81
- package/Product/Items/PolylineItem.js.map +1 -1
- package/Product/Items/RectangleItem.js +10 -30
- package/Product/Items/RectangleItem.js.map +1 -1
- package/Product/Items/ResizeGripsPermissions.d.ts +5 -4
- package/Product/Items/ResizeGripsPermissions.js +75 -94
- package/Product/Items/ResizeGripsPermissions.js.map +1 -1
- package/Product/Items/ShadowSettings.js +51 -69
- package/Product/Items/ShadowSettings.js.map +1 -1
- package/Product/Items/ShapeItem.js +182 -250
- package/Product/Items/ShapeItem.js.map +1 -1
- package/Product/Items/ShapePermissions.js +38 -52
- package/Product/Items/ShapePermissions.js.map +1 -1
- package/Product/Items/ShapeViolationSettings.js +18 -36
- package/Product/Items/ShapeViolationSettings.js.map +1 -1
- package/Product/Items/Size.js +7 -11
- package/Product/Items/Size.js.map +1 -1
- package/Product/Items/SmartItem.js +21 -41
- package/Product/Items/SmartItem.js.map +1 -1
- package/Product/Items/StrokeSettings.js +48 -62
- package/Product/Items/StrokeSettings.js.map +1 -1
- package/Product/Items/TextEnums.d.ts +2 -1
- package/Product/Items/TextEnums.js +1 -0
- package/Product/Items/TextEnums.js.map +1 -1
- package/Product/Items/TextPermissions.js +56 -58
- package/Product/Items/TextPermissions.js.map +1 -1
- package/Product/Items/TextViolationSettings.js +23 -40
- package/Product/Items/TextViolationSettings.js.map +1 -1
- package/Product/Items/ThemeBinding.d.ts +2 -1
- package/Product/Items/ThemeBinding.js +13 -15
- package/Product/Items/ThemeBinding.js.map +1 -1
- package/Product/Items/ViolationSettings.js +26 -44
- package/Product/Items/ViolationSettings.js.map +1 -1
- package/Product/Items/VisualizationPermissions.js +29 -39
- package/Product/Items/VisualizationPermissions.js.map +1 -1
- package/Product/ItemsData/ItemData.js +8 -24
- package/Product/ItemsData/ItemData.js.map +1 -1
- package/Product/ModelComponent.js +41 -63
- package/Product/ModelComponent.js.map +1 -1
- package/Product/PrintArea.d.ts +1 -0
- package/Product/PrintArea.js +132 -178
- package/Product/PrintArea.js.map +1 -1
- package/Product/Product.js +67 -105
- package/Product/Product.js.map +1 -1
- package/Product/SafetyLine.d.ts +1 -1
- package/Product/SafetyLine.js +90 -124
- package/Product/SafetyLine.js.map +1 -1
- package/Product/Surface.d.ts +2 -1
- package/Product/Surface.js +193 -287
- package/Product/Surface.js.map +1 -1
- package/Product/SurfaceMockup.js +40 -73
- package/Product/SurfaceMockup.js.map +1 -1
- package/Product/Uuid.js +19 -25
- package/Product/Uuid.js.map +1 -1
- package/Product/Watermark.js +5 -9
- package/Product/Watermark.js.map +1 -1
- package/Product/index.js +1 -0
- package/Product/index.js.map +1 -1
- package/Serialization/IProductSerializer.js +1 -0
- package/Utils/Environment.d.ts +1 -1
- package/Utils/Environment.js +24 -44
- package/Utils/Environment.js.map +1 -1
- package/Utils/Exceptions.js +5 -5
- package/Utils/Exceptions.js.map +1 -1
- package/Utils/Items.js +19 -19
- package/Utils/Items.js.map +1 -1
- package/Utils/Types/Action.d.ts +5 -1
- package/Utils/Types/Action.js +1 -0
- package/Utils/Types/AnyFunction.d.ts +1 -1
- package/Utils/Types/AnyFunction.js +1 -0
- package/Utils/Types/Func.d.ts +1 -1
- package/Utils/Types/Func.js +1 -0
- package/Utils/Types/index.js +3 -0
- package/Utils/Types/index.js.map +1 -1
- package/Utils/Utils.d.ts +14 -5
- package/Utils/Utils.js +185 -298
- package/Utils/Utils.js.map +1 -1
- package/Utils/debounce.d.ts +29 -0
- package/Utils/debounce.js +106 -0
- package/Utils/debounce.js.map +1 -0
- package/Utils/index.d.ts +2 -0
- package/Utils/index.js +3 -0
- package/Utils/index.js.map +1 -1
- package/Utils/throttle.d.ts +16 -0
- package/Utils/throttle.js +25 -0
- package/Utils/throttle.js.map +1 -0
- package/Validators/CmykComponentValidator.js +13 -15
- package/Validators/CmykComponentValidator.js.map +1 -1
- package/Version.d.ts +1 -1
- package/Version.js +1 -1
- package/Version.js.map +1 -1
- package/package.json +3 -8
- 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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
return
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
|
|
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
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
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
|
-
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
|
|
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 =
|
|
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
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
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
|
-
|
|
278
|
-
|
|
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
|
-
|
|
285
|
-
|
|
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
|
-
|
|
226
|
+
}
|
|
227
|
+
_onPathLoaded() {
|
|
294
228
|
this._pathLoadedEvent.notify(this);
|
|
295
|
-
}
|
|
296
|
-
|
|
229
|
+
}
|
|
230
|
+
getPathLoadedEvent() {
|
|
297
231
|
return this._pathLoadedEvent;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
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":"
|
|
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;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,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C,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
|
-
|
|
3
|
-
|
|
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
|
-
|
|
15
|
-
|
|
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
|
-
|
|
61
|
-
|
|
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
|
-
|
|
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
|
-
|
|
73
|
-
}());
|
|
74
|
-
export { ShapePermissions };
|
|
59
|
+
}
|
|
60
|
+
}
|
|
75
61
|
//# sourceMappingURL=ShapePermissions.js.map
|