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