@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
package/Product/Items/Item.js
CHANGED
|
@@ -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);
|
|
@@ -32,59 +19,56 @@ import * as Math from "../../Math/index";
|
|
|
32
19
|
import { Transform } from "../../Math/Transform";
|
|
33
20
|
import { WrappingMode } from "./WrappingMode";
|
|
34
21
|
import { ThemeBinding } from "./ThemeBinding";
|
|
35
|
-
import * as _ from "underscore";
|
|
36
22
|
import { RenderingType } from "../RenderingType";
|
|
37
23
|
import { BlendMode } from "./BlendMode";
|
|
38
24
|
import { ItemMask } from "../ItemMask";
|
|
39
|
-
import { equals } from "../../Utils/Utils";
|
|
25
|
+
import { equals, isString } from "../../Utils/Utils";
|
|
40
26
|
import { Property } from "../Decorators/Property";
|
|
41
27
|
import { ViolationSettings } from "./ViolationSettings";
|
|
42
28
|
import { ObjectPropertyFactory } from "../Decorators/Factory";
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
if (_this._ignorePermissionsChange)
|
|
29
|
+
export class Item extends BaseItem {
|
|
30
|
+
constructor() {
|
|
31
|
+
super();
|
|
32
|
+
this._visible = true;
|
|
33
|
+
this._locked = false;
|
|
34
|
+
this._opacity = 1.0;
|
|
35
|
+
this._fromLayout = false;
|
|
36
|
+
this._textWrappingMode = WrappingMode.None;
|
|
37
|
+
this._isVariable = false;
|
|
38
|
+
this._blendMode = BlendMode.Normal;
|
|
39
|
+
this._ignorePermissionsChange = false;
|
|
40
|
+
this._mask = null;
|
|
41
|
+
this._class = null;
|
|
42
|
+
this._onPermissionsChanged = () => {
|
|
43
|
+
if (this._ignorePermissionsChange)
|
|
59
44
|
return;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
45
|
+
this._ignorePermissionsChange = true;
|
|
46
|
+
this.applyPermissionsConstrain();
|
|
47
|
+
this._ignorePermissionsChange = false;
|
|
48
|
+
this._propertyChanged.notify(this, "permissions");
|
|
64
49
|
};
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
50
|
+
this._parentGroupItem = null;
|
|
51
|
+
this.themeBinding = new ThemeBinding();
|
|
52
|
+
this._onTransformChanged = (t) => {
|
|
53
|
+
this._propertyChanged.notify(this, "transform");
|
|
69
54
|
};
|
|
70
|
-
|
|
71
|
-
|
|
55
|
+
this._onMaskChanged = (m) => {
|
|
56
|
+
this._propertyChanged.notify(this, "mask");
|
|
72
57
|
};
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
58
|
+
this._changedEvent = new EventWithAutoSenderArg(this);
|
|
59
|
+
this._changingEvent = new EventObject();
|
|
60
|
+
this.type = Item.type;
|
|
61
|
+
const itemPermissions = new ItemPermissions();
|
|
77
62
|
itemPermissions.allowRemoveOnLayoutChange = false;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
_super.prototype._copy.call(this, source, destination, generateNewIds, appropriateParentContainer);
|
|
63
|
+
this.itemPermissions = itemPermissions;
|
|
64
|
+
this.setManipulationPermissions(new ManipulationPermissions());
|
|
65
|
+
this.visualizationPermissions = new VisualizationPermissions();
|
|
66
|
+
this.frontendPermissions = new FrontendPermissions();
|
|
67
|
+
this._setViolationSettings(new ViolationSettings(), true);
|
|
68
|
+
this.setTransform(new Transform());
|
|
69
|
+
}
|
|
70
|
+
_copy(source, destination, generateNewIds, appropriateParentContainer) {
|
|
71
|
+
super._copy(source, destination, generateNewIds, appropriateParentContainer);
|
|
88
72
|
destination.itemPermissions = source._itemPermissions.clone();
|
|
89
73
|
destination.visible = source._visible;
|
|
90
74
|
destination.locked = source._locked;
|
|
@@ -101,50 +85,42 @@ var Item = /** @class */ (function (_super) {
|
|
|
101
85
|
destination.mask = source.mask != null ? source.mask.clone() : null;
|
|
102
86
|
destination.blendMode = source.blendMode;
|
|
103
87
|
destination.class = source.class;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
88
|
+
}
|
|
89
|
+
equals(other) {
|
|
90
|
+
const superEq = super.equals(other);
|
|
91
|
+
const itemPermissionsEq = equals(this._itemPermissions, other._itemPermissions);
|
|
92
|
+
const visibleEq = equals(this._visible, other._visible);
|
|
93
|
+
const lockedEq = equals(this._locked, other._locked);
|
|
94
|
+
const opacityEq = equals(this._opacity, other._opacity);
|
|
95
|
+
const isVariableEq = equals(this._isVariable, other._isVariable);
|
|
96
|
+
const textWrappingModeEq = equals(this._textWrappingMode, other._textWrappingMode);
|
|
97
|
+
const manipulationPermissionsEq = equals(this._manipulationPermissions, other._manipulationPermissions);
|
|
98
|
+
const visualizationPermissionsEq = equals(this._visualizationPermissions, other._visualizationPermissions);
|
|
99
|
+
const frontendPermissionsEq = equals(this._frontendPermissions, other._frontendPermissions);
|
|
100
|
+
const transformEq = equals(this._transform, other._transform);
|
|
101
|
+
const violationEq = equals(this._violationSettings, other._violationSettings);
|
|
102
|
+
const containerNameEq = equals(this.containerName, other.containerName);
|
|
103
|
+
const themeBindingEq = equals(this.themeBinding, other.themeBinding);
|
|
104
|
+
const maskEq = equals(this._mask, other._mask);
|
|
105
|
+
const blendModeEq = equals(this.blendMode, other.blendMode);
|
|
106
|
+
const classEq = equals(this.class, other.class);
|
|
123
107
|
return superEq && itemPermissionsEq && visibleEq && lockedEq && opacityEq && isVariableEq && textWrappingModeEq
|
|
124
108
|
&& manipulationPermissionsEq && visualizationPermissionsEq && frontendPermissionsEq && transformEq
|
|
125
109
|
&& violationEq && containerNameEq && themeBindingEq && maskEq && blendModeEq && classEq;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
Object.defineProperty(Item.prototype, "manipulationPermissions", {
|
|
141
|
-
get: function () { return this.getManipulationPermissions(); },
|
|
142
|
-
set: function (value) { this.setManipulationPermissions(value); },
|
|
143
|
-
enumerable: true,
|
|
144
|
-
configurable: true
|
|
145
|
-
});
|
|
146
|
-
Item.prototype.getManipulationPermissions = function () { return this._manipulationPermissions; };
|
|
147
|
-
Item.prototype.setManipulationPermissions = function (value) {
|
|
110
|
+
}
|
|
111
|
+
get class() {
|
|
112
|
+
return this._class;
|
|
113
|
+
}
|
|
114
|
+
set class(value) {
|
|
115
|
+
if (this._class == value)
|
|
116
|
+
return;
|
|
117
|
+
this._class = value;
|
|
118
|
+
this._propertyChanged.notify(this, "class");
|
|
119
|
+
}
|
|
120
|
+
get manipulationPermissions() { return this.getManipulationPermissions(); }
|
|
121
|
+
set manipulationPermissions(value) { this.setManipulationPermissions(value); }
|
|
122
|
+
getManipulationPermissions() { return this._manipulationPermissions; }
|
|
123
|
+
setManipulationPermissions(value) {
|
|
148
124
|
if (value == null)
|
|
149
125
|
throw new ArgumentException("manipulationPermissions cannot be null");
|
|
150
126
|
if (equals(this._manipulationPermissions, value))
|
|
@@ -155,76 +131,59 @@ var Item = /** @class */ (function (_super) {
|
|
|
155
131
|
this.applyPermissionsConstrain();
|
|
156
132
|
this._manipulationPermissions.propertyChanged.add(this._onPermissionsChanged);
|
|
157
133
|
this._propertyChanged.notify(this, "manipulationPermissions");
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
this._propertyChanged.notify(this, "frontendPermissions");
|
|
212
|
-
},
|
|
213
|
-
enumerable: true,
|
|
214
|
-
configurable: true
|
|
215
|
-
});
|
|
216
|
-
Object.defineProperty(Item.prototype, "violationSettings", {
|
|
217
|
-
get: function () {
|
|
218
|
-
return this._violationSettings;
|
|
219
|
-
},
|
|
220
|
-
set: function (value) {
|
|
221
|
-
this._setViolationSettings(value);
|
|
222
|
-
},
|
|
223
|
-
enumerable: true,
|
|
224
|
-
configurable: true
|
|
225
|
-
});
|
|
226
|
-
Item.prototype._setViolationSettings = function (value, skipTypeCheck) {
|
|
227
|
-
if (skipTypeCheck === void 0) { skipTypeCheck = false; }
|
|
134
|
+
}
|
|
135
|
+
get visualizationPermissions() {
|
|
136
|
+
return this._visualizationPermissions;
|
|
137
|
+
}
|
|
138
|
+
set visualizationPermissions(value) {
|
|
139
|
+
if (value == null)
|
|
140
|
+
throw new ArgumentException("visualizationPermissions cannot be null");
|
|
141
|
+
if (equals(this._visualizationPermissions, value))
|
|
142
|
+
return;
|
|
143
|
+
if (this._visualizationPermissions != null)
|
|
144
|
+
this._visualizationPermissions.propertyChanged.remove(this._onPermissionsChanged);
|
|
145
|
+
this._visualizationPermissions = value;
|
|
146
|
+
this.applyPermissionsConstrain();
|
|
147
|
+
this._visualizationPermissions.propertyChanged.add(this._onPermissionsChanged);
|
|
148
|
+
this._propertyChanged.notify(this, "visualizationPermissions");
|
|
149
|
+
}
|
|
150
|
+
get itemPermissions() {
|
|
151
|
+
return this._itemPermissions;
|
|
152
|
+
}
|
|
153
|
+
set itemPermissions(value) {
|
|
154
|
+
if (value == null)
|
|
155
|
+
throw new ArgumentException("itemPermissions cannot be null");
|
|
156
|
+
if (equals(this._itemPermissions, value))
|
|
157
|
+
return;
|
|
158
|
+
if (this._itemPermissions != null)
|
|
159
|
+
this._itemPermissions.propertyChanged.remove(this._onPermissionsChanged);
|
|
160
|
+
this._itemPermissions = value;
|
|
161
|
+
this.applyPermissionsConstrain();
|
|
162
|
+
this._itemPermissions.propertyChanged.add(this._onPermissionsChanged);
|
|
163
|
+
this._propertyChanged.notify(this, "itemPermissions");
|
|
164
|
+
}
|
|
165
|
+
get frontendPermissions() {
|
|
166
|
+
return this._frontendPermissions;
|
|
167
|
+
}
|
|
168
|
+
set frontendPermissions(value) {
|
|
169
|
+
if (value == null)
|
|
170
|
+
throw new ArgumentException("frontendPermissions cannot be null");
|
|
171
|
+
if (equals(this._frontendPermissions, value))
|
|
172
|
+
return;
|
|
173
|
+
if (this._frontendPermissions != null)
|
|
174
|
+
this._frontendPermissions.propertyChanged.remove(this._onPermissionsChanged);
|
|
175
|
+
this._frontendPermissions = value;
|
|
176
|
+
this.applyPermissionsConstrain();
|
|
177
|
+
this._frontendPermissions.propertyChanged.add(this._onPermissionsChanged);
|
|
178
|
+
this._propertyChanged.notify(this, "frontendPermissions");
|
|
179
|
+
}
|
|
180
|
+
get violationSettings() {
|
|
181
|
+
return this._violationSettings;
|
|
182
|
+
}
|
|
183
|
+
set violationSettings(value) {
|
|
184
|
+
this._setViolationSettings(value);
|
|
185
|
+
}
|
|
186
|
+
_setViolationSettings(value, skipTypeCheck = false) {
|
|
228
187
|
if (value == null)
|
|
229
188
|
throw new ArgumentException("violationSettings cannot be null");
|
|
230
189
|
if (equals(this._violationSettings, value))
|
|
@@ -235,56 +194,43 @@ var Item = /** @class */ (function (_super) {
|
|
|
235
194
|
this.applyPermissionsConstrain();
|
|
236
195
|
this._violationSettings.addPropertyChanged(this._onPermissionsChanged);
|
|
237
196
|
this._propertyChanged.notify(this, "violationSettings");
|
|
238
|
-
}
|
|
239
|
-
|
|
197
|
+
}
|
|
198
|
+
applyPermissionsConstrain() {
|
|
240
199
|
if (this.isRenderTypeIsNormal)
|
|
241
200
|
return;
|
|
242
201
|
this.itemPermissions.allowOpacityChange = false;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
|
|
202
|
+
}
|
|
203
|
+
_onContainerChanged() {
|
|
204
|
+
super._onContainerChanged();
|
|
246
205
|
this.applyPermissionsConstrain();
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
});
|
|
273
|
-
Object.defineProperty(Item.prototype, "transform", {
|
|
274
|
-
get: function () {
|
|
275
|
-
return this._transform;
|
|
276
|
-
},
|
|
277
|
-
set: function (value) {
|
|
278
|
-
this.setTransform(value);
|
|
279
|
-
},
|
|
280
|
-
enumerable: true,
|
|
281
|
-
configurable: true
|
|
282
|
-
});
|
|
283
|
-
Item.prototype.setTransform = function (value, suppressOnChanged) {
|
|
284
|
-
if (suppressOnChanged === void 0) { suppressOnChanged = false; }
|
|
206
|
+
}
|
|
207
|
+
get parentGroupItem() {
|
|
208
|
+
return this._parentGroupItem;
|
|
209
|
+
}
|
|
210
|
+
set parentGroupItem(value) {
|
|
211
|
+
this._parentGroupItem = value;
|
|
212
|
+
if (value != null)
|
|
213
|
+
this.parentContainer = this._parentGroupItem.parentContainer;
|
|
214
|
+
}
|
|
215
|
+
get blendMode() {
|
|
216
|
+
return this._blendMode;
|
|
217
|
+
}
|
|
218
|
+
set blendMode(value) {
|
|
219
|
+
if (this._blendMode === value)
|
|
220
|
+
return;
|
|
221
|
+
this._blendMode = value;
|
|
222
|
+
this._propertyChanged.notify(this, "blendMode");
|
|
223
|
+
}
|
|
224
|
+
get transform() {
|
|
225
|
+
return this._transform;
|
|
226
|
+
}
|
|
227
|
+
set transform(value) {
|
|
228
|
+
this.setTransform(value);
|
|
229
|
+
}
|
|
230
|
+
setTransform(value, suppressOnChanged = false) {
|
|
285
231
|
if (this._transform)
|
|
286
232
|
this._transform.removeTransformChanged(this._onTransformChanged);
|
|
287
|
-
|
|
233
|
+
let changed = false;
|
|
288
234
|
if (!Transform.isEqual(this._transform, value)) {
|
|
289
235
|
this._transform = value;
|
|
290
236
|
changed = true;
|
|
@@ -293,118 +239,90 @@ var Item = /** @class */ (function (_super) {
|
|
|
293
239
|
this._transform.addTransformChanged(this._onTransformChanged);
|
|
294
240
|
if (!suppressOnChanged && changed)
|
|
295
241
|
this._propertyChanged.notify(this, "transform");
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
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
|
-
return this._isVariable;
|
|
369
|
-
},
|
|
370
|
-
set: function (value) {
|
|
371
|
-
if (this._isVariable === value)
|
|
372
|
-
return;
|
|
373
|
-
if (!this._canSetIsVariable()) {
|
|
374
|
-
throw new InvalidOperationException("Unable to set isVariable on item of type '" + this.type + "'");
|
|
375
|
-
}
|
|
376
|
-
this._isVariable = value;
|
|
377
|
-
this._propertyChanged.notify(this, "isVariable");
|
|
378
|
-
},
|
|
379
|
-
enumerable: true,
|
|
380
|
-
configurable: true
|
|
381
|
-
});
|
|
382
|
-
Object.defineProperty(Item.prototype, "fromLayout", {
|
|
383
|
-
get: function () {
|
|
384
|
-
return this._fromLayout;
|
|
385
|
-
},
|
|
386
|
-
set: function (value) {
|
|
387
|
-
if (this._fromLayout === value)
|
|
388
|
-
return;
|
|
389
|
-
this._fromLayout = value;
|
|
390
|
-
this._propertyChanged.notify(this, "fromLayout");
|
|
391
|
-
},
|
|
392
|
-
enumerable: true,
|
|
393
|
-
configurable: true
|
|
394
|
-
});
|
|
395
|
-
Item.prototype.canSetIsVariable = function () {
|
|
242
|
+
}
|
|
243
|
+
get textWrappingMode() {
|
|
244
|
+
return this._textWrappingMode;
|
|
245
|
+
}
|
|
246
|
+
set textWrappingMode(value) {
|
|
247
|
+
if (this._textWrappingMode !== value) {
|
|
248
|
+
this._textWrappingMode = value;
|
|
249
|
+
this._propertyChanged.notify(this, "textWrappingMode");
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
get locked() {
|
|
253
|
+
return this._locked;
|
|
254
|
+
}
|
|
255
|
+
set locked(value) {
|
|
256
|
+
if (this._locked !== value) {
|
|
257
|
+
this._locked = value;
|
|
258
|
+
this._propertyChanged.notify(this, "locked");
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
get mask() {
|
|
262
|
+
return this._mask;
|
|
263
|
+
}
|
|
264
|
+
set mask(value) {
|
|
265
|
+
if (equals(this.mask, value))
|
|
266
|
+
return;
|
|
267
|
+
if (this._mask != null)
|
|
268
|
+
this._mask.removeMaskChanged(this._onMaskChanged);
|
|
269
|
+
this._mask = value;
|
|
270
|
+
if (this._mask != null)
|
|
271
|
+
this._mask.addMaskChanged(this._onMaskChanged);
|
|
272
|
+
this._propertyChanged.notify(this, "mask");
|
|
273
|
+
}
|
|
274
|
+
get visible() {
|
|
275
|
+
return this._visible;
|
|
276
|
+
}
|
|
277
|
+
set visible(value) {
|
|
278
|
+
if (this._visible === value)
|
|
279
|
+
return;
|
|
280
|
+
this._visible = value;
|
|
281
|
+
this._propertyChanged.notify(this, "visible");
|
|
282
|
+
}
|
|
283
|
+
get opacity() {
|
|
284
|
+
return this._opacity;
|
|
285
|
+
}
|
|
286
|
+
set opacity(value) {
|
|
287
|
+
if (!Math.EqualsOfFloatNumbers(this._opacity, value)) {
|
|
288
|
+
this._opacity = value;
|
|
289
|
+
this._propertyChanged.notify(this, "opacity");
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
get isVariable() {
|
|
293
|
+
return this._isVariable;
|
|
294
|
+
}
|
|
295
|
+
set isVariable(value) {
|
|
296
|
+
if (this._isVariable === value)
|
|
297
|
+
return;
|
|
298
|
+
if (!this._canSetIsVariable()) {
|
|
299
|
+
throw new InvalidOperationException(`Unable to set isVariable on item of type '${this.type}'`);
|
|
300
|
+
}
|
|
301
|
+
this._isVariable = value;
|
|
302
|
+
this._propertyChanged.notify(this, "isVariable");
|
|
303
|
+
}
|
|
304
|
+
get fromLayout() {
|
|
305
|
+
return this._fromLayout;
|
|
306
|
+
}
|
|
307
|
+
set fromLayout(value) {
|
|
308
|
+
if (this._fromLayout === value)
|
|
309
|
+
return;
|
|
310
|
+
this._fromLayout = value;
|
|
311
|
+
this._propertyChanged.notify(this, "fromLayout");
|
|
312
|
+
}
|
|
313
|
+
canSetIsVariable() {
|
|
396
314
|
return this._canSetIsVariable();
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
|
|
315
|
+
}
|
|
316
|
+
_canSetIsVariable() { return false; }
|
|
317
|
+
_getParentContainer() {
|
|
400
318
|
if (this.parentContainer != null)
|
|
401
319
|
return this.parentContainer;
|
|
402
320
|
return null;
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
if (!
|
|
321
|
+
}
|
|
322
|
+
getSimplifiedObject(omitProperties) {
|
|
323
|
+
if (!Array.isArray(omitProperties) && !isString(omitProperties))
|
|
406
324
|
omitProperties = [];
|
|
407
|
-
|
|
325
|
+
const simplified = super.getSimplifiedObject([
|
|
408
326
|
"_changedEvent",
|
|
409
327
|
"_changingEvent",
|
|
410
328
|
"manipulationPermissions",
|
|
@@ -421,61 +339,51 @@ var Item = /** @class */ (function (_super) {
|
|
|
421
339
|
simplified["frontendPermissions"] = this.frontendPermissions.getSimplifiedObject();
|
|
422
340
|
simplified["mask"] = this.mask != null ? this.mask.getSimplifiedObject() : null;
|
|
423
341
|
return simplified;
|
|
424
|
-
}
|
|
425
|
-
|
|
342
|
+
}
|
|
343
|
+
getItemChangedEvent() {
|
|
426
344
|
return this._changedEvent;
|
|
427
|
-
}
|
|
428
|
-
|
|
345
|
+
}
|
|
346
|
+
getItemChangingEvent() {
|
|
429
347
|
return this._changingEvent;
|
|
430
|
-
}
|
|
431
|
-
|
|
348
|
+
}
|
|
349
|
+
_getThemeBinding(themeBinding) {
|
|
432
350
|
return themeBinding != null ? themeBinding : this.themeBinding;
|
|
433
|
-
}
|
|
434
|
-
|
|
351
|
+
}
|
|
352
|
+
_applyThemeColor(colorName, theme, updateFunc) {
|
|
435
353
|
throw new NotImplementedException();
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
__metadata("design:paramtypes", [Boolean])
|
|
472
|
-
], Item.prototype, "locked", null);
|
|
473
|
-
__decorate([
|
|
474
|
-
Property({ factory: new ObjectPropertyFactory(ItemMask) }),
|
|
475
|
-
__metadata("design:type", ItemMask),
|
|
476
|
-
__metadata("design:paramtypes", [ItemMask])
|
|
477
|
-
], Item.prototype, "mask", null);
|
|
478
|
-
return Item;
|
|
479
|
-
}(BaseItem));
|
|
480
|
-
export { Item };
|
|
354
|
+
}
|
|
355
|
+
//#endregion
|
|
356
|
+
get isRenderTypeIsNormal() {
|
|
357
|
+
return this.renderingType === RenderingType.Normal;
|
|
358
|
+
}
|
|
359
|
+
get renderingType() {
|
|
360
|
+
return this.parentContainer instanceof SurfaceContainer ? this.parentContainer.renderingType : RenderingType.Normal;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
Item.type = "item";
|
|
364
|
+
__decorate([
|
|
365
|
+
Property({ displayName: "Class" }),
|
|
366
|
+
__metadata("design:type", String),
|
|
367
|
+
__metadata("design:paramtypes", [String])
|
|
368
|
+
], Item.prototype, "class", null);
|
|
369
|
+
__decorate([
|
|
370
|
+
Property({ enumObject: BlendMode, displayName: "Blend mode" }),
|
|
371
|
+
__metadata("design:type", String),
|
|
372
|
+
__metadata("design:paramtypes", [String])
|
|
373
|
+
], Item.prototype, "blendMode", null);
|
|
374
|
+
__decorate([
|
|
375
|
+
Property({ enumObject: WrappingMode }),
|
|
376
|
+
__metadata("design:type", Number),
|
|
377
|
+
__metadata("design:paramtypes", [Number])
|
|
378
|
+
], Item.prototype, "textWrappingMode", null);
|
|
379
|
+
__decorate([
|
|
380
|
+
Property({ displayName: "Locked" }),
|
|
381
|
+
__metadata("design:type", Boolean),
|
|
382
|
+
__metadata("design:paramtypes", [Boolean])
|
|
383
|
+
], Item.prototype, "locked", null);
|
|
384
|
+
__decorate([
|
|
385
|
+
Property({ factory: new ObjectPropertyFactory(ItemMask) }),
|
|
386
|
+
__metadata("design:type", ItemMask),
|
|
387
|
+
__metadata("design:paramtypes", [ItemMask])
|
|
388
|
+
], Item.prototype, "mask", null);
|
|
481
389
|
//# sourceMappingURL=Item.js.map
|