@aurigma/design-atoms-model 7.0.34 → 7.0.36
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 +148 -233
- 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.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.js +20 -27
- package/Product/Effects/NDEffects.js.map +1 -1
- 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 +60 -90
- 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 +447 -621
- 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 +93 -171
- 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.js +304 -428
- 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.js +50 -100
- 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 +113 -164
- 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 +307 -417
- 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 +47 -78
- 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 +3 -3
- package/Product/Items/ResizeGripsPermissions.js +74 -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 -251
- 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.js +10 -12
- 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 +2 -2
- 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 +9 -4
- package/Utils/Utils.js +179 -296
- 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);
|
|
@@ -20,26 +7,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
20
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
21
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22
9
|
};
|
|
23
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
24
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
25
|
-
if (!m) return o;
|
|
26
|
-
var i = m.call(o), r, ar = [], e;
|
|
27
|
-
try {
|
|
28
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
29
|
-
}
|
|
30
|
-
catch (error) { e = { error: error }; }
|
|
31
|
-
finally {
|
|
32
|
-
try {
|
|
33
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
34
|
-
}
|
|
35
|
-
finally { if (e) throw e.error; }
|
|
36
|
-
}
|
|
37
|
-
return ar;
|
|
38
|
-
};
|
|
39
|
-
var __spread = (this && this.__spread) || function () {
|
|
40
|
-
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
|
|
41
|
-
return ar;
|
|
42
|
-
};
|
|
43
10
|
import { ShapeItem } from "./ShapeItem";
|
|
44
11
|
import { ImageItem } from "./ImageItem";
|
|
45
12
|
import { ImageMetaData } from "./ImageMetaData";
|
|
@@ -79,164 +46,138 @@ export var ResizeMode;
|
|
|
79
46
|
ResizeMode[ResizeMode["Fill"] = 1] = "Fill";
|
|
80
47
|
ResizeMode[ResizeMode["Original"] = 2] = "Original";
|
|
81
48
|
})(ResizeMode || (ResizeMode = {}));
|
|
82
|
-
|
|
83
|
-
__extends(PlaceholderItem, _super);
|
|
49
|
+
export class PlaceholderItem extends ShapeItem {
|
|
84
50
|
//TODO: return ctor signature constructor(sourcePath?: VectorObjects.Math.Path) after fix 0021990
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
51
|
+
constructor(sourceRec) {
|
|
52
|
+
super(sourceRec != null ? Path.rectangle(sourceRec.left, sourceRec.top, sourceRec.width, sourceRec.height) : null);
|
|
53
|
+
this._isStubContent = false;
|
|
54
|
+
this._isCoverMode = false;
|
|
55
|
+
this._contentResizeMode = ResizeMode.Fill;
|
|
56
|
+
this._contentEffect = ImageEffect.None;
|
|
57
|
+
this._contentFillColor = null;
|
|
58
|
+
this._contentOverlayEffect = null;
|
|
59
|
+
this.stubStorageMeta = null;
|
|
60
|
+
this.linkId = null;
|
|
61
|
+
this.allowedSubfolder = null;
|
|
62
|
+
this.allowedTabs = null;
|
|
63
|
+
this.contentVerticalAlignment = VerticalContentAlignment.None;
|
|
64
|
+
this.contentHorizontalAlignment = HorizontalContentAlignment.None;
|
|
65
|
+
this.type = PlaceholderItem.type;
|
|
66
|
+
this._content = null;
|
|
67
|
+
this._topFrames = [];
|
|
68
|
+
this._bottomFrames = [];
|
|
69
|
+
this._onContentOverlayEffectPropertyChanged = (s, p) => {
|
|
70
|
+
this._propertyChanged.notify(this, "contentOverlayEffect");
|
|
105
71
|
};
|
|
106
|
-
|
|
107
|
-
|
|
72
|
+
this.fixedStubContentSize = false;
|
|
73
|
+
this.sourceRectangle = sourceRec != null ? sourceRec : new RectangleF(0, 0, 10, 10);
|
|
108
74
|
;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
this._propertyChanged.notify(this, "contentResizeMode");
|
|
180
|
-
},
|
|
181
|
-
enumerable: true,
|
|
182
|
-
configurable: true
|
|
183
|
-
});
|
|
184
|
-
Object.defineProperty(PlaceholderItem.prototype, "contentOverlayEffect", {
|
|
185
|
-
get: function () {
|
|
186
|
-
return this._contentOverlayEffect;
|
|
187
|
-
},
|
|
188
|
-
set: function (value) {
|
|
189
|
-
if (OverlayEffect.equals(this.contentOverlayEffect, value))
|
|
190
|
-
return;
|
|
191
|
-
this._unsubscribeContentOverlayEffectPropertyChanged();
|
|
192
|
-
this._contentOverlayEffect = value;
|
|
193
|
-
this._subscribeContentOverlayEffectPropertyChanged();
|
|
194
|
-
this._propertyChanged.notify(this, "contentOverlayEffect");
|
|
195
|
-
},
|
|
196
|
-
enumerable: true,
|
|
197
|
-
configurable: true
|
|
198
|
-
});
|
|
199
|
-
PlaceholderItem.prototype._subscribeContentOverlayEffectPropertyChanged = function () {
|
|
75
|
+
this.fillColor = RgbColors.transparent;
|
|
76
|
+
this.borderWidth = 0;
|
|
77
|
+
this.placeholderPermissions = new PlaceholderPermissions();
|
|
78
|
+
this._contentPermissions = new ContentPermissions();
|
|
79
|
+
this._contentPermissions.propertyChanged.add(this._onPermissionsChanged);
|
|
80
|
+
this._setViolationSettings(new ImageViolationSettings(), true);
|
|
81
|
+
this._ignorePermissionsChange = true;
|
|
82
|
+
this.manipulationPermissions.resizeGrips = new ResizeGripsPermissions(true, true, false);
|
|
83
|
+
this.shapePermissions.allowChangeFillColor = false;
|
|
84
|
+
this.itemPermissions.allowRemoveOnLayoutChange = true;
|
|
85
|
+
this.itemPermissions.itemToolbarPermissions.showEditButton = true;
|
|
86
|
+
this.itemPermissions.itemToolbarPermissions.showSelectButtonConstraint = null;
|
|
87
|
+
this.itemPermissions.itemToolbarPermissions.showSelectButton = true;
|
|
88
|
+
this.contentPermissions.imagePermissions.allowKeepOverlayColor = false;
|
|
89
|
+
this._ignorePermissionsChange = false;
|
|
90
|
+
}
|
|
91
|
+
get contentEffect() {
|
|
92
|
+
return this._contentEffect;
|
|
93
|
+
}
|
|
94
|
+
set contentEffect(value) {
|
|
95
|
+
if (this._contentEffect === value)
|
|
96
|
+
return;
|
|
97
|
+
this._contentEffect = value;
|
|
98
|
+
this._propertyChanged.notify(this, "contentEffect");
|
|
99
|
+
}
|
|
100
|
+
get contentFillColor() {
|
|
101
|
+
return this._contentFillColor;
|
|
102
|
+
}
|
|
103
|
+
set contentFillColor(value) {
|
|
104
|
+
if (this._contentFillColor === value)
|
|
105
|
+
return;
|
|
106
|
+
this._contentFillColor = value;
|
|
107
|
+
this._propertyChanged.notify(this, "contentFillColor");
|
|
108
|
+
}
|
|
109
|
+
get isStubContent() {
|
|
110
|
+
return this._isStubContent;
|
|
111
|
+
}
|
|
112
|
+
set isStubContent(value) {
|
|
113
|
+
if (this._isStubContent === value)
|
|
114
|
+
return;
|
|
115
|
+
this._isStubContent = value;
|
|
116
|
+
this._setStubStorageMeta();
|
|
117
|
+
this.applyPermissionsConstrain();
|
|
118
|
+
this._propertyChanged.notify(this, "isStubContent");
|
|
119
|
+
}
|
|
120
|
+
get contentResizeMode() {
|
|
121
|
+
if (this.isCoverMode)
|
|
122
|
+
return ResizeMode.Fill;
|
|
123
|
+
if (this.isBarcodePlaceholder)
|
|
124
|
+
return ResizeMode.Fit;
|
|
125
|
+
return this._contentResizeMode;
|
|
126
|
+
}
|
|
127
|
+
set contentResizeMode(value) {
|
|
128
|
+
if (this._contentResizeMode === value)
|
|
129
|
+
return;
|
|
130
|
+
this._contentResizeMode = value;
|
|
131
|
+
this._propertyChanged.notify(this, "contentResizeMode");
|
|
132
|
+
}
|
|
133
|
+
get contentOverlayEffect() {
|
|
134
|
+
return this._contentOverlayEffect;
|
|
135
|
+
}
|
|
136
|
+
set contentOverlayEffect(value) {
|
|
137
|
+
if (OverlayEffect.equals(this.contentOverlayEffect, value))
|
|
138
|
+
return;
|
|
139
|
+
this._unsubscribeContentOverlayEffectPropertyChanged();
|
|
140
|
+
this._contentOverlayEffect = value;
|
|
141
|
+
this._subscribeContentOverlayEffectPropertyChanged();
|
|
142
|
+
this._propertyChanged.notify(this, "contentOverlayEffect");
|
|
143
|
+
}
|
|
144
|
+
_subscribeContentOverlayEffectPropertyChanged() {
|
|
200
145
|
if (this.contentOverlayEffect != null)
|
|
201
146
|
this.contentOverlayEffect.addPropertyChanged(this._onContentOverlayEffectPropertyChanged);
|
|
202
|
-
}
|
|
203
|
-
|
|
147
|
+
}
|
|
148
|
+
_unsubscribeContentOverlayEffectPropertyChanged() {
|
|
204
149
|
if (this.contentOverlayEffect != null)
|
|
205
150
|
this.contentOverlayEffect.removePropertyChanged(this._onContentOverlayEffectPropertyChanged);
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
enumerable: true,
|
|
225
|
-
configurable: true
|
|
226
|
-
});
|
|
227
|
-
PlaceholderItem.prototype.getImagePermissions = function () {
|
|
151
|
+
}
|
|
152
|
+
//Cover mode - the mode in which you can't place/move the content of placeholder so that empty space remains inside of the placeholder.
|
|
153
|
+
//Important!!! In this mode, you can't rotate the content. This is important because the algorithms in SelectionHandler.js are based on the fact
|
|
154
|
+
//that the placeholder and its content in this mode always have the same rotation angle and only a proportional resize of the content is allowed.
|
|
155
|
+
get isCoverMode() {
|
|
156
|
+
return this.barcodeFormat == null
|
|
157
|
+
&& this._isCoverMode;
|
|
158
|
+
}
|
|
159
|
+
set isCoverMode(value) {
|
|
160
|
+
if (this._isCoverMode === value)
|
|
161
|
+
return;
|
|
162
|
+
this._isCoverMode = value;
|
|
163
|
+
if (!this.isEmptyContent) {
|
|
164
|
+
this.content.applyPermissionsConstrain();
|
|
165
|
+
}
|
|
166
|
+
this._propertyChanged.notify(this, "isCoverMode");
|
|
167
|
+
}
|
|
168
|
+
getImagePermissions() {
|
|
228
169
|
if (this.contentPermissions != null)
|
|
229
170
|
return this.contentPermissions.imagePermissions;
|
|
230
171
|
if (this.content instanceof ImageItem)
|
|
231
172
|
return this.content.imagePermissions;
|
|
232
173
|
return null;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
174
|
+
}
|
|
175
|
+
applyPermissionsConstrain() {
|
|
176
|
+
const itemTlbrPerms = this.itemPermissions.itemToolbarPermissions;
|
|
177
|
+
const imagePermissions = this.getImagePermissions();
|
|
178
|
+
const allowChangeImage = imagePermissions != null ? imagePermissions.allowChangeImage : true;
|
|
179
|
+
const allowEditImage = imagePermissions != null ? imagePermissions.allowEditImage : false;
|
|
180
|
+
const isVector = this.content != null && this.content instanceof ImageItem && this.content.source != null && this.content.source.isVector;
|
|
240
181
|
if (this.isStubOrEmpty || !allowEditImage || isVector) {
|
|
241
182
|
itemTlbrPerms.showEditButtonConstraint = false;
|
|
242
183
|
}
|
|
@@ -277,87 +218,66 @@ var PlaceholderItem = /** @class */ (function (_super) {
|
|
|
277
218
|
}
|
|
278
219
|
}
|
|
279
220
|
}
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
});
|
|
318
|
-
Object.defineProperty(PlaceholderItem.prototype, "violationSettings", {
|
|
319
|
-
get: function () {
|
|
320
|
-
return this._violationSettings;
|
|
321
|
-
},
|
|
322
|
-
set: function (value) {
|
|
323
|
-
this._setViolationSettings(value);
|
|
324
|
-
},
|
|
325
|
-
enumerable: true,
|
|
326
|
-
configurable: true
|
|
327
|
-
});
|
|
328
|
-
PlaceholderItem.prototype._setViolationSettings = function (value, skipTypeCheck) {
|
|
329
|
-
if (skipTypeCheck === void 0) { skipTypeCheck = false; }
|
|
221
|
+
}
|
|
222
|
+
get contentPermissions() {
|
|
223
|
+
return this._contentPermissions;
|
|
224
|
+
}
|
|
225
|
+
set contentPermissions(value) {
|
|
226
|
+
if (value == null) {
|
|
227
|
+
throw new ArgumentException("ContentPermissions cannot be null");
|
|
228
|
+
}
|
|
229
|
+
if (equals(this._contentPermissions, value))
|
|
230
|
+
return;
|
|
231
|
+
this._contentPermissions.propertyChanged.remove(this._onPermissionsChanged);
|
|
232
|
+
this._contentPermissions = value;
|
|
233
|
+
this._contentPermissions.propertyChanged.add(this._onPermissionsChanged);
|
|
234
|
+
this._onPermissionsChanged();
|
|
235
|
+
}
|
|
236
|
+
get placeholderPermissions() {
|
|
237
|
+
return this._placeholderPermissions;
|
|
238
|
+
}
|
|
239
|
+
set placeholderPermissions(value) {
|
|
240
|
+
if (value == null)
|
|
241
|
+
throw new ArgumentException("placeholderPermissions cannot be null");
|
|
242
|
+
if (equals(this._placeholderPermissions, value))
|
|
243
|
+
return;
|
|
244
|
+
if (this._placeholderPermissions != null)
|
|
245
|
+
this._placeholderPermissions.propertyChanged.remove(this._onPermissionsChanged);
|
|
246
|
+
this._placeholderPermissions = value;
|
|
247
|
+
this.applyPermissionsConstrain();
|
|
248
|
+
this._placeholderPermissions.propertyChanged.add(this._onPermissionsChanged);
|
|
249
|
+
this._propertyChanged.notify(this, "placeholderPermissions");
|
|
250
|
+
}
|
|
251
|
+
get violationSettings() {
|
|
252
|
+
return this._violationSettings;
|
|
253
|
+
}
|
|
254
|
+
set violationSettings(value) {
|
|
255
|
+
this._setViolationSettings(value);
|
|
256
|
+
}
|
|
257
|
+
_setViolationSettings(value, skipTypeCheck = false) {
|
|
330
258
|
if (!skipTypeCheck && !(value instanceof ImageViolationSettings))
|
|
331
259
|
throw new ArgumentException("Shape ViolationSettings property must has ImageViolationSettings type!");
|
|
332
|
-
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
this.applyPermissionsConstrain();
|
|
354
|
-
this._setStubStorageMeta();
|
|
355
|
-
this._propertyChanged.notify(this, "content");
|
|
356
|
-
},
|
|
357
|
-
enumerable: true,
|
|
358
|
-
configurable: true
|
|
359
|
-
});
|
|
360
|
-
PlaceholderItem.prototype._setStubStorageMeta = function () {
|
|
260
|
+
super._setViolationSettings(value, skipTypeCheck);
|
|
261
|
+
}
|
|
262
|
+
get isFrame() {
|
|
263
|
+
return (this._topFrames != null && this._topFrames.length > 0)
|
|
264
|
+
|| (this._bottomFrames != null && this._bottomFrames.length > 0);
|
|
265
|
+
}
|
|
266
|
+
get content() {
|
|
267
|
+
return this._content;
|
|
268
|
+
}
|
|
269
|
+
set content(value) {
|
|
270
|
+
this._content = value;
|
|
271
|
+
if (!this.isEmptyContent) {
|
|
272
|
+
this._content.parentPlaceholder = this;
|
|
273
|
+
this._content.parentContainer = null;
|
|
274
|
+
this._content.applyPermissionsConstrain();
|
|
275
|
+
}
|
|
276
|
+
this.applyPermissionsConstrain();
|
|
277
|
+
this._setStubStorageMeta();
|
|
278
|
+
this._propertyChanged.notify(this, "content");
|
|
279
|
+
}
|
|
280
|
+
_setStubStorageMeta() {
|
|
361
281
|
if (this.isStubContent && this._content instanceof ImageItem) {
|
|
362
282
|
this.stubStorageMeta = new ImageMetaData({
|
|
363
283
|
isUserImage: this._content.isUserImage,
|
|
@@ -371,94 +291,68 @@ var PlaceholderItem = /** @class */ (function (_super) {
|
|
|
371
291
|
else {
|
|
372
292
|
this.stubStorageMeta = null;
|
|
373
293
|
}
|
|
374
|
-
}
|
|
294
|
+
}
|
|
375
295
|
;
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
this._bottomFrames = value;
|
|
402
|
-
this._bottomFrames.forEach(function (contentItem) {
|
|
403
|
-
contentItem.parentPlaceholder = _this;
|
|
404
|
-
contentItem.parentContainer = null;
|
|
405
|
-
});
|
|
406
|
-
},
|
|
407
|
-
enumerable: true,
|
|
408
|
-
configurable: true
|
|
409
|
-
});
|
|
410
|
-
PlaceholderItem.prototype.updateContentAndFrames = function (func) {
|
|
296
|
+
get topFrames() {
|
|
297
|
+
return this._topFrames;
|
|
298
|
+
}
|
|
299
|
+
set topFrames(value) {
|
|
300
|
+
if (value == null)
|
|
301
|
+
throw new ArgumentException();
|
|
302
|
+
this._topFrames = value;
|
|
303
|
+
this._topFrames.forEach((contentItem) => {
|
|
304
|
+
contentItem.parentPlaceholder = this;
|
|
305
|
+
contentItem.parentContainer = null;
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
get bottomFrames() {
|
|
309
|
+
return this._bottomFrames;
|
|
310
|
+
}
|
|
311
|
+
set bottomFrames(value) {
|
|
312
|
+
if (value == null)
|
|
313
|
+
throw new ArgumentException();
|
|
314
|
+
this._bottomFrames = value;
|
|
315
|
+
this._bottomFrames.forEach((contentItem) => {
|
|
316
|
+
contentItem.parentPlaceholder = this;
|
|
317
|
+
contentItem.parentContainer = null;
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
updateContentAndFrames(func) {
|
|
411
321
|
if (this.content != null)
|
|
412
322
|
func(this.content);
|
|
413
323
|
if (this.topFrames != null) {
|
|
414
|
-
this.topFrames.forEach(
|
|
324
|
+
this.topFrames.forEach(contentItem => {
|
|
415
325
|
func(contentItem);
|
|
416
326
|
});
|
|
417
327
|
}
|
|
418
328
|
if (this.bottomFrames != null) {
|
|
419
|
-
this.bottomFrames.forEach(
|
|
329
|
+
this.bottomFrames.forEach(contentItem => {
|
|
420
330
|
func(contentItem);
|
|
421
331
|
});
|
|
422
332
|
}
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
},
|
|
440
|
-
enumerable: true,
|
|
441
|
-
configurable: true
|
|
442
|
-
});
|
|
443
|
-
Object.defineProperty(PlaceholderItem.prototype, "isStubOrEmpty", {
|
|
444
|
-
get: function () {
|
|
445
|
-
return this.isStubContent || this.isEmptyContent;
|
|
446
|
-
},
|
|
447
|
-
enumerable: true,
|
|
448
|
-
configurable: true
|
|
449
|
-
});
|
|
450
|
-
PlaceholderItem.prototype._canSetIsVariable = function () {
|
|
333
|
+
}
|
|
334
|
+
get imageContent() {
|
|
335
|
+
if (!this.isEmptyContent && this.content instanceof ImageItem) {
|
|
336
|
+
return this._content;
|
|
337
|
+
}
|
|
338
|
+
else {
|
|
339
|
+
return null;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
get isEmptyContent() {
|
|
343
|
+
return this._content == null;
|
|
344
|
+
}
|
|
345
|
+
get isStubOrEmpty() {
|
|
346
|
+
return this.isStubContent || this.isEmptyContent;
|
|
347
|
+
}
|
|
348
|
+
_canSetIsVariable() {
|
|
451
349
|
return true;
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
configurable: true
|
|
459
|
-
});
|
|
460
|
-
PlaceholderItem.prototype.getSimplifiedObject = function () {
|
|
461
|
-
var simplified = _super.prototype.getSimplifiedObject.call(this, [
|
|
350
|
+
}
|
|
351
|
+
get isBarcodePlaceholder() {
|
|
352
|
+
return this.barcodeFormat != null;
|
|
353
|
+
}
|
|
354
|
+
getSimplifiedObject() {
|
|
355
|
+
const simplified = super.getSimplifiedObject([
|
|
462
356
|
"_content",
|
|
463
357
|
"imageContent",
|
|
464
358
|
"placeholderPermissions",
|
|
@@ -472,12 +366,12 @@ var PlaceholderItem = /** @class */ (function (_super) {
|
|
|
472
366
|
simplified["placeholderPermissions"] = this.placeholderPermissions.getSimplifiedObject();
|
|
473
367
|
simplified["contentPermissions"] = this.contentPermissions.getSimplifiedObject();
|
|
474
368
|
return simplified;
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
|
|
369
|
+
}
|
|
370
|
+
_copy(source, destination, generateNewIds, appropriateParentContainer) {
|
|
371
|
+
super._copy(source, destination, generateNewIds, appropriateParentContainer);
|
|
478
372
|
destination.linkId = source.linkId;
|
|
479
373
|
destination.allowedSubfolder = source.allowedSubfolder;
|
|
480
|
-
destination.allowedTabs = source.allowedTabs != null ? source.allowedTabs.map(
|
|
374
|
+
destination.allowedTabs = source.allowedTabs != null ? source.allowedTabs.map(i => i) : null;
|
|
481
375
|
destination.contentVerticalAlignment = source.contentVerticalAlignment;
|
|
482
376
|
destination.contentHorizontalAlignment = source.contentHorizontalAlignment;
|
|
483
377
|
destination.placeholderPermissions = source.placeholderPermissions.clone();
|
|
@@ -491,27 +385,27 @@ var PlaceholderItem = /** @class */ (function (_super) {
|
|
|
491
385
|
else
|
|
492
386
|
destination.content = null;
|
|
493
387
|
if (source.topFrames.length === destination.topFrames.length) {
|
|
494
|
-
for (
|
|
388
|
+
for (let i = 0; i < source.topFrames.length; i++) {
|
|
495
389
|
destination.topFrames[i].update(source.topFrames[i]);
|
|
496
390
|
destination.topFrames[i].parentPlaceholder = destination;
|
|
497
391
|
}
|
|
498
392
|
}
|
|
499
393
|
else {
|
|
500
|
-
destination.topFrames = source.topFrames.map(
|
|
501
|
-
|
|
394
|
+
destination.topFrames = source.topFrames.map(i => {
|
|
395
|
+
const cloned = i.clone(generateNewIds, appropriateParentContainer);
|
|
502
396
|
cloned.parentPlaceholder = destination;
|
|
503
397
|
return cloned;
|
|
504
398
|
});
|
|
505
399
|
}
|
|
506
400
|
if (source.bottomFrames.length === destination.bottomFrames.length) {
|
|
507
|
-
for (
|
|
401
|
+
for (let i = 0; i < source.bottomFrames.length; i++) {
|
|
508
402
|
destination.bottomFrames[i].update(source.bottomFrames[i]);
|
|
509
403
|
destination.bottomFrames[i].parentPlaceholder = destination;
|
|
510
404
|
}
|
|
511
405
|
}
|
|
512
406
|
else {
|
|
513
|
-
destination.bottomFrames = source.bottomFrames.map(
|
|
514
|
-
|
|
407
|
+
destination.bottomFrames = source.bottomFrames.map(i => {
|
|
408
|
+
const cloned = i.clone(generateNewIds, appropriateParentContainer);
|
|
515
409
|
cloned.parentPlaceholder = destination;
|
|
516
410
|
return cloned;
|
|
517
411
|
});
|
|
@@ -526,10 +420,10 @@ var PlaceholderItem = /** @class */ (function (_super) {
|
|
|
526
420
|
destination.barcodeFormat = source.barcodeFormat;
|
|
527
421
|
destination.contentPermissions = source.contentPermissions.clone();
|
|
528
422
|
destination.isVariable = source.isVariable;
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
return
|
|
532
|
-
arrayEquals(
|
|
423
|
+
}
|
|
424
|
+
equals(other) {
|
|
425
|
+
return super.equals(other) &&
|
|
426
|
+
arrayEquals([this._content, ...this._topFrames, ...this._bottomFrames], [other._content, ...other._topFrames, ...other._bottomFrames]) &&
|
|
533
427
|
equals(this.linkId, other.linkId) &&
|
|
534
428
|
equals(this.allowedSubfolder, other.allowedSubfolder) &&
|
|
535
429
|
arrayEquals(this.allowedTabs, other.allowedTabs) &&
|
|
@@ -544,76 +438,72 @@ var PlaceholderItem = /** @class */ (function (_super) {
|
|
|
544
438
|
equals(this.barcodeFormat, other.barcodeFormat) &&
|
|
545
439
|
equals(this._contentPermissions, other._contentPermissions) &&
|
|
546
440
|
equals(this.isVariable, other.isVariable);
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
if (appropriateParentContainer === void 0) { appropriateParentContainer = false; }
|
|
551
|
-
var item = new PlaceholderItem();
|
|
441
|
+
}
|
|
442
|
+
clone(generateNewIds = false, appropriateParentContainer = false) {
|
|
443
|
+
const item = new PlaceholderItem();
|
|
552
444
|
this._copy(this, item, generateNewIds, appropriateParentContainer);
|
|
553
445
|
return item;
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
displayName: "Content overlay effect"
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
PlaceholderItem.type = "PlaceholderItem";
|
|
449
|
+
__decorate([
|
|
450
|
+
Property({ factory: new ObjectPropertyFactory(ImageMetaData), displayName: "Stub storage meta" }),
|
|
451
|
+
__metadata("design:type", ImageMetaData)
|
|
452
|
+
], PlaceholderItem.prototype, "stubStorageMeta", void 0);
|
|
453
|
+
__decorate([
|
|
454
|
+
Property({ type: "string" }),
|
|
455
|
+
__metadata("design:type", String)
|
|
456
|
+
], PlaceholderItem.prototype, "linkId", void 0);
|
|
457
|
+
__decorate([
|
|
458
|
+
Property({ factory: new SimplePropertyFactory("subfolder"), displayName: "Allowed subfolder" }),
|
|
459
|
+
__metadata("design:type", String)
|
|
460
|
+
], PlaceholderItem.prototype, "allowedSubfolder", void 0);
|
|
461
|
+
__decorate([
|
|
462
|
+
Property({ factory: new CollectionPropertyFactory(Array), displayName: "Allowed tabs" }),
|
|
463
|
+
__metadata("design:type", Array)
|
|
464
|
+
], PlaceholderItem.prototype, "allowedTabs", void 0);
|
|
465
|
+
__decorate([
|
|
466
|
+
Property({ enumObject: VerticalContentAlignment }),
|
|
467
|
+
__metadata("design:type", Object)
|
|
468
|
+
], PlaceholderItem.prototype, "contentVerticalAlignment", void 0);
|
|
469
|
+
__decorate([
|
|
470
|
+
Property({ enumObject: HorizontalContentAlignment }),
|
|
471
|
+
__metadata("design:type", Object)
|
|
472
|
+
], PlaceholderItem.prototype, "contentHorizontalAlignment", void 0);
|
|
473
|
+
__decorate([
|
|
474
|
+
Property({ enumObject: ImageEffect }),
|
|
475
|
+
__metadata("design:type", Number),
|
|
476
|
+
__metadata("design:paramtypes", [Number])
|
|
477
|
+
], PlaceholderItem.prototype, "contentEffect", null);
|
|
478
|
+
__decorate([
|
|
479
|
+
Property({ factory: new ColorPropertyFactory(), displayName: "Content fill color" }),
|
|
480
|
+
__metadata("design:type", Color),
|
|
481
|
+
__metadata("design:paramtypes", [Color])
|
|
482
|
+
], PlaceholderItem.prototype, "contentFillColor", null);
|
|
483
|
+
__decorate([
|
|
484
|
+
Property({ enumObject: ResizeMode }),
|
|
485
|
+
__metadata("design:type", Object),
|
|
486
|
+
__metadata("design:paramtypes", [Object])
|
|
487
|
+
], PlaceholderItem.prototype, "contentResizeMode", null);
|
|
488
|
+
__decorate([
|
|
489
|
+
Property({ enumObject: BarcodeFormat, factory: new SimplePropertyFactory(BarcodeFormat.QR_CODE), displayName: "Barcode format" }),
|
|
490
|
+
__metadata("design:type", String)
|
|
491
|
+
], PlaceholderItem.prototype, "barcodeFormat", void 0);
|
|
492
|
+
__decorate([
|
|
493
|
+
Property({
|
|
494
|
+
factory: new ObjectPropertyFactory(OverlayEffect, {
|
|
495
|
+
color: new CmykColor(0, 0, 0, 0, 255),
|
|
496
|
+
opacity: 1,
|
|
497
|
+
blendMode: BlendMode.Normal
|
|
607
498
|
}),
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
export { PlaceholderItem };
|
|
499
|
+
displayName: "Content overlay effect"
|
|
500
|
+
}),
|
|
501
|
+
__metadata("design:type", Object),
|
|
502
|
+
__metadata("design:paramtypes", [Object])
|
|
503
|
+
], PlaceholderItem.prototype, "contentOverlayEffect", null);
|
|
504
|
+
__decorate([
|
|
505
|
+
Property({ type: "item" }),
|
|
506
|
+
__metadata("design:type", Object),
|
|
507
|
+
__metadata("design:paramtypes", [Object])
|
|
508
|
+
], PlaceholderItem.prototype, "content", null);
|
|
619
509
|
//# sourceMappingURL=PlaceholderItem.js.map
|