@aurigma/design-atoms-model 7.0.19 → 7.0.20
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/Product/Container.d.ts +36 -4
- package/Product/Container.js +119 -5
- package/Product/Container.js.map +1 -1
- package/Product/ContainerVisualization.d.ts +22 -0
- package/Product/ContainerVisualization.js +70 -0
- package/Product/ContainerVisualization.js.map +1 -0
- package/Version.d.ts +1 -1
- package/Version.js +1 -1
- package/package.json +1 -1
package/Product/Container.d.ts
CHANGED
|
@@ -4,14 +4,15 @@ import { SizeF } from "../Math/SizeF";
|
|
|
4
4
|
import { BaseItem, ImageItem } from "./Items";
|
|
5
5
|
import { Collection } from "../Collection";
|
|
6
6
|
import { RenderingType } from "./RenderingType";
|
|
7
|
-
import { Color, RgbColor } from "../Colors";
|
|
7
|
+
import { Color, ColorSpace, RgbColor } from "../Colors";
|
|
8
|
+
import { ContainerVisualization } from "./ContainerVisualization";
|
|
8
9
|
export declare class Container extends ModelComponent {
|
|
9
|
-
private _items;
|
|
10
|
-
private _visible;
|
|
11
10
|
protected _locked: boolean;
|
|
11
|
+
private readonly _items;
|
|
12
|
+
private _visible;
|
|
12
13
|
private _region;
|
|
13
14
|
parentComponent: ModelComponent;
|
|
14
|
-
renderingType: RenderingType;
|
|
15
|
+
get renderingType(): RenderingType;
|
|
15
16
|
translationKey: string;
|
|
16
17
|
type: string;
|
|
17
18
|
constructor(initialItems?: BaseItem[], name?: string);
|
|
@@ -43,16 +44,47 @@ export declare class SurfaceContainer extends Container {
|
|
|
43
44
|
constructor(initialItems?: BaseItem[], name?: string);
|
|
44
45
|
clone(generateNewIds?: boolean): SurfaceContainer;
|
|
45
46
|
}
|
|
47
|
+
export declare class ColorLessContainer extends SurfaceContainer {
|
|
48
|
+
type: string;
|
|
49
|
+
get renderingType(): RenderingType;
|
|
50
|
+
outputColor: Color;
|
|
51
|
+
opaque: boolean;
|
|
52
|
+
dpi: number | null;
|
|
53
|
+
containerVisualization: ContainerVisualization | null;
|
|
54
|
+
constructor(initialItems?: BaseItem[], name?: string);
|
|
55
|
+
protected _copy(source: ColorLessContainer, destination: ColorLessContainer, generateNewIds: boolean): void;
|
|
56
|
+
clone(generateNewIds?: boolean): SurfaceContainer;
|
|
57
|
+
}
|
|
58
|
+
export declare class LimitedColorContainer extends SurfaceContainer {
|
|
59
|
+
maxColorNumber: number | null;
|
|
60
|
+
paletteUId: string | null;
|
|
61
|
+
type: string;
|
|
62
|
+
get renderingType(): RenderingType;
|
|
63
|
+
constructor(initialItems?: BaseItem[], name?: string);
|
|
64
|
+
protected _copy(source: LimitedColorContainer, destination: LimitedColorContainer, generateNewIds: boolean): void;
|
|
65
|
+
clone(generateNewIds?: boolean): SurfaceContainer;
|
|
66
|
+
}
|
|
67
|
+
export declare class FullColorContainer extends SurfaceContainer {
|
|
68
|
+
type: string;
|
|
69
|
+
get renderingType(): RenderingType;
|
|
70
|
+
colorSpace: ColorSpace | null;
|
|
71
|
+
colorProfile: string | null;
|
|
72
|
+
constructor(initialItems?: BaseItem[], name?: string);
|
|
73
|
+
protected _copy(source: FullColorContainer, destination: FullColorContainer, generateNewIds: boolean): void;
|
|
74
|
+
clone(generateNewIds?: boolean): SurfaceContainer;
|
|
75
|
+
}
|
|
46
76
|
export declare class SpotColorContainer extends SurfaceContainer {
|
|
47
77
|
constructor();
|
|
48
78
|
previewColor: RgbColor;
|
|
49
79
|
outputColor: Color;
|
|
50
80
|
type: string;
|
|
81
|
+
get renderingType(): RenderingType;
|
|
51
82
|
protected _copy(source: SpotColorContainer, destination: SpotColorContainer, generateNewIds: boolean): void;
|
|
52
83
|
clone(generateNewIds?: boolean): SpotColorContainer;
|
|
53
84
|
}
|
|
54
85
|
export declare class TextureContainer extends SurfaceContainer {
|
|
55
86
|
constructor();
|
|
87
|
+
get renderingType(): RenderingType;
|
|
56
88
|
_previewTextureSource: ImageItem.ImageSource;
|
|
57
89
|
get previewTextureSource(): ImageItem.ImageSource;
|
|
58
90
|
set previewTextureSource(previewTextureSource: ImageItem.ImageSource);
|
package/Product/Container.js
CHANGED
|
@@ -15,16 +15,16 @@ import { ModelComponent } from "./ModelComponent";
|
|
|
15
15
|
import * as _ from "underscore";
|
|
16
16
|
import { Collection } from "../Collection";
|
|
17
17
|
import { RenderingType } from "./RenderingType";
|
|
18
|
+
import { ColorContainerVisualization, TextureContainerVisualization } from "./ContainerVisualization";
|
|
18
19
|
var Container = /** @class */ (function (_super) {
|
|
19
20
|
__extends(Container, _super);
|
|
20
21
|
function Container(initialItems, name) {
|
|
21
22
|
var _this = _super.call(this) || this;
|
|
23
|
+
_this._locked = false;
|
|
22
24
|
_this._items = new Collection();
|
|
23
25
|
_this._visible = true;
|
|
24
|
-
_this._locked = false;
|
|
25
26
|
_this._region = null;
|
|
26
27
|
_this.parentComponent = null;
|
|
27
|
-
_this.renderingType = RenderingType.Normal;
|
|
28
28
|
_this.type = "Container";
|
|
29
29
|
_this._onItemAdded = function (_a) {
|
|
30
30
|
var newItem = _a.item;
|
|
@@ -49,6 +49,13 @@ var Container = /** @class */ (function (_super) {
|
|
|
49
49
|
_this.name = name;
|
|
50
50
|
return _this;
|
|
51
51
|
}
|
|
52
|
+
Object.defineProperty(Container.prototype, "renderingType", {
|
|
53
|
+
get: function () {
|
|
54
|
+
return RenderingType.Normal;
|
|
55
|
+
},
|
|
56
|
+
enumerable: true,
|
|
57
|
+
configurable: true
|
|
58
|
+
});
|
|
52
59
|
Object.defineProperty(Container.prototype, "region", {
|
|
53
60
|
get: function () {
|
|
54
61
|
return this._region;
|
|
@@ -113,7 +120,6 @@ var Container = /** @class */ (function (_super) {
|
|
|
113
120
|
destination.items.addRange(source.items.toArray().map(function (i) { return i.clone(generateNewIds); }));
|
|
114
121
|
destination.locked = source.locked;
|
|
115
122
|
destination.visible = source.visible;
|
|
116
|
-
destination.renderingType = source.renderingType;
|
|
117
123
|
destination.translationKey = source.translationKey;
|
|
118
124
|
destination.region = source.region != null ? source.region.clone() : null;
|
|
119
125
|
};
|
|
@@ -168,14 +174,116 @@ var SurfaceContainer = /** @class */ (function (_super) {
|
|
|
168
174
|
return SurfaceContainer;
|
|
169
175
|
}(Container));
|
|
170
176
|
export { SurfaceContainer };
|
|
177
|
+
var ColorLessContainer = /** @class */ (function (_super) {
|
|
178
|
+
__extends(ColorLessContainer, _super);
|
|
179
|
+
function ColorLessContainer(initialItems, name) {
|
|
180
|
+
var _this = _super.call(this, initialItems, name) || this;
|
|
181
|
+
_this.type = "ColorLessContainer";
|
|
182
|
+
_this._locked = false;
|
|
183
|
+
return _this;
|
|
184
|
+
}
|
|
185
|
+
Object.defineProperty(ColorLessContainer.prototype, "renderingType", {
|
|
186
|
+
get: function () {
|
|
187
|
+
if (this.containerVisualization === null)
|
|
188
|
+
return null;
|
|
189
|
+
if (this.containerVisualization instanceof TextureContainerVisualization)
|
|
190
|
+
return RenderingType.Solid;
|
|
191
|
+
if (this.containerVisualization instanceof ColorContainerVisualization)
|
|
192
|
+
return RenderingType.Grayscale;
|
|
193
|
+
return null;
|
|
194
|
+
},
|
|
195
|
+
enumerable: true,
|
|
196
|
+
configurable: true
|
|
197
|
+
});
|
|
198
|
+
ColorLessContainer.prototype._copy = function (source, destination, generateNewIds) {
|
|
199
|
+
var _a, _b;
|
|
200
|
+
_super.prototype._copy.call(this, source, destination, generateNewIds);
|
|
201
|
+
destination.outputColor = (_a = source.outputColor) === null || _a === void 0 ? void 0 : _a.clone();
|
|
202
|
+
destination.opaque = source.opaque;
|
|
203
|
+
destination.dpi = source.dpi;
|
|
204
|
+
destination.containerVisualization = (_b = source.containerVisualization) === null || _b === void 0 ? void 0 : _b.clone(generateNewIds);
|
|
205
|
+
};
|
|
206
|
+
ColorLessContainer.prototype.clone = function (generateNewIds) {
|
|
207
|
+
if (generateNewIds === void 0) { generateNewIds = false; }
|
|
208
|
+
var container = new ColorLessContainer();
|
|
209
|
+
this._copy(this, container, generateNewIds);
|
|
210
|
+
return container;
|
|
211
|
+
};
|
|
212
|
+
return ColorLessContainer;
|
|
213
|
+
}(SurfaceContainer));
|
|
214
|
+
export { ColorLessContainer };
|
|
215
|
+
var LimitedColorContainer = /** @class */ (function (_super) {
|
|
216
|
+
__extends(LimitedColorContainer, _super);
|
|
217
|
+
function LimitedColorContainer(initialItems, name) {
|
|
218
|
+
var _this = _super.call(this, initialItems, name) || this;
|
|
219
|
+
_this.type = "LimitedColorContainer";
|
|
220
|
+
_this._locked = false;
|
|
221
|
+
return _this;
|
|
222
|
+
}
|
|
223
|
+
Object.defineProperty(LimitedColorContainer.prototype, "renderingType", {
|
|
224
|
+
get: function () {
|
|
225
|
+
return RenderingType.Grayscale;
|
|
226
|
+
},
|
|
227
|
+
enumerable: true,
|
|
228
|
+
configurable: true
|
|
229
|
+
});
|
|
230
|
+
LimitedColorContainer.prototype._copy = function (source, destination, generateNewIds) {
|
|
231
|
+
_super.prototype._copy.call(this, source, destination, generateNewIds);
|
|
232
|
+
destination.maxColorNumber = source.maxColorNumber;
|
|
233
|
+
destination.paletteUId = source.paletteUId;
|
|
234
|
+
};
|
|
235
|
+
LimitedColorContainer.prototype.clone = function (generateNewIds) {
|
|
236
|
+
if (generateNewIds === void 0) { generateNewIds = false; }
|
|
237
|
+
var container = new LimitedColorContainer();
|
|
238
|
+
this._copy(this, container, generateNewIds);
|
|
239
|
+
return container;
|
|
240
|
+
};
|
|
241
|
+
return LimitedColorContainer;
|
|
242
|
+
}(SurfaceContainer));
|
|
243
|
+
export { LimitedColorContainer };
|
|
244
|
+
var FullColorContainer = /** @class */ (function (_super) {
|
|
245
|
+
__extends(FullColorContainer, _super);
|
|
246
|
+
function FullColorContainer(initialItems, name) {
|
|
247
|
+
var _this = _super.call(this, initialItems, name) || this;
|
|
248
|
+
_this.type = "FullColorContainer";
|
|
249
|
+
_this._locked = false;
|
|
250
|
+
return _this;
|
|
251
|
+
}
|
|
252
|
+
Object.defineProperty(FullColorContainer.prototype, "renderingType", {
|
|
253
|
+
get: function () {
|
|
254
|
+
return RenderingType.Normal;
|
|
255
|
+
},
|
|
256
|
+
enumerable: true,
|
|
257
|
+
configurable: true
|
|
258
|
+
});
|
|
259
|
+
FullColorContainer.prototype._copy = function (source, destination, generateNewIds) {
|
|
260
|
+
_super.prototype._copy.call(this, source, destination, generateNewIds);
|
|
261
|
+
destination.colorSpace = source.colorSpace;
|
|
262
|
+
destination.colorProfile = source.colorProfile;
|
|
263
|
+
};
|
|
264
|
+
FullColorContainer.prototype.clone = function (generateNewIds) {
|
|
265
|
+
if (generateNewIds === void 0) { generateNewIds = false; }
|
|
266
|
+
var container = new FullColorContainer();
|
|
267
|
+
this._copy(this, container, generateNewIds);
|
|
268
|
+
return container;
|
|
269
|
+
};
|
|
270
|
+
return FullColorContainer;
|
|
271
|
+
}(SurfaceContainer));
|
|
272
|
+
export { FullColorContainer };
|
|
171
273
|
var SpotColorContainer = /** @class */ (function (_super) {
|
|
172
274
|
__extends(SpotColorContainer, _super);
|
|
173
275
|
function SpotColorContainer() {
|
|
174
276
|
var _this = _super.call(this) || this;
|
|
175
277
|
_this.type = "SpotColorContainer";
|
|
176
|
-
_this.renderingType = RenderingType.Grayscale;
|
|
177
278
|
return _this;
|
|
178
279
|
}
|
|
280
|
+
Object.defineProperty(SpotColorContainer.prototype, "renderingType", {
|
|
281
|
+
get: function () {
|
|
282
|
+
return RenderingType.Grayscale;
|
|
283
|
+
},
|
|
284
|
+
enumerable: true,
|
|
285
|
+
configurable: true
|
|
286
|
+
});
|
|
179
287
|
SpotColorContainer.prototype._copy = function (source, destination, generateNewIds) {
|
|
180
288
|
var _a;
|
|
181
289
|
_super.prototype._copy.call(this, source, destination, generateNewIds);
|
|
@@ -196,9 +304,15 @@ var TextureContainer = /** @class */ (function (_super) {
|
|
|
196
304
|
function TextureContainer() {
|
|
197
305
|
var _this = _super.call(this) || this;
|
|
198
306
|
_this.type = "TextureContainer";
|
|
199
|
-
_this.renderingType = RenderingType.Solid;
|
|
200
307
|
return _this;
|
|
201
308
|
}
|
|
309
|
+
Object.defineProperty(TextureContainer.prototype, "renderingType", {
|
|
310
|
+
get: function () {
|
|
311
|
+
return RenderingType.Grayscale;
|
|
312
|
+
},
|
|
313
|
+
enumerable: true,
|
|
314
|
+
configurable: true
|
|
315
|
+
});
|
|
202
316
|
Object.defineProperty(TextureContainer.prototype, "previewTextureSource", {
|
|
203
317
|
get: function () {
|
|
204
318
|
return this._previewTextureSource;
|
package/Product/Container.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container.js","sourceRoot":"","sources":["../../../src/design-atoms-model/Product/Container.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIlD,OAAO,KAAK,CAAC,MAAM,YAAY,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"Container.js","sourceRoot":"","sources":["../../../src/design-atoms-model/Product/Container.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIlD,OAAO,KAAK,CAAC,MAAM,YAAY,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EACH,2BAA2B,EAE3B,6BAA6B,EAChC,MAAM,0BAA0B,CAAA;AAEjC;IAA+B,6BAAc;IAiBzC,mBAAY,YAAyB,EAAE,IAAa;QAApD,YACI,iBAAO,SAWV;QA3BS,aAAO,GAAG,KAAK,CAAC;QAET,YAAM,GAAG,IAAI,UAAU,EAAY,CAAC;QAC7C,cAAQ,GAAG,IAAI,CAAC;QAChB,aAAO,GAAe,IAAI,CAAA;QAElC,qBAAe,GAAmB,IAAI,CAAC;QAOvC,UAAI,GAAG,WAAW,CAAC;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AO,EAAE,IAAI,CAAC,oBAAoB,CAAC,KAAK;YACxC,QAAQ,EAAE,IAAI,CAAC,oBAAoB,CAAC,MAAM;YAC1C,UAAU,EAAE,IAAI,CAAC,oBAAoB,CAAC,QAAQ;YAC9C,WAAW,EAAE,IAAI,CAAC,oBAAoB,CAAC,SAAS;YAChD,KAAK,EAAE,IAAI,CAAC,oBAAoB,CAAC,GAAG;YACpC,YAAY,EAAE,IAAI,CAAC,oBAAoB,CAAC,UAAU;YAClD,iBAAiB,EAAE,IAAI,CAAC,oBAAoB,CAAC,eAAe;YAC5D,QAAQ,EAAE,IAAI,CAAC,oBAAoB,CAAC,MAAM;SAC7C,CAAC;QAEF,OAAO,UAAU,CAAC;IACtB,CAAC;IACL,uBAAC;AAAD,CAAC,AA3DD,CAAsC,gBAAgB,GA2DrD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ImageItem } from "./Items";
|
|
2
|
+
import { RgbColor } from "../Colors";
|
|
3
|
+
export declare abstract class ContainerVisualization {
|
|
4
|
+
protected _copy(source: ContainerVisualization, destination: ContainerVisualization, generateNewIds: boolean): void;
|
|
5
|
+
abstract clone(generateNewIds: boolean): ContainerVisualization;
|
|
6
|
+
}
|
|
7
|
+
export declare class ColorContainerVisualization extends ContainerVisualization {
|
|
8
|
+
color: RgbColor;
|
|
9
|
+
opacity: number;
|
|
10
|
+
enableGlareEffect: boolean;
|
|
11
|
+
protected _copy(source: ColorContainerVisualization, destination: ColorContainerVisualization, generateNewIds: boolean): void;
|
|
12
|
+
clone(generateNewIds?: boolean): ColorContainerVisualization;
|
|
13
|
+
}
|
|
14
|
+
export declare class TextureContainerVisualization extends ContainerVisualization {
|
|
15
|
+
_textureSource: ImageItem.ImageSource;
|
|
16
|
+
get textureSource(): ImageItem.ImageSource;
|
|
17
|
+
textureName: string;
|
|
18
|
+
opacity: number;
|
|
19
|
+
enableGlareEffect: boolean;
|
|
20
|
+
protected _copy(source: TextureContainerVisualization, destination: TextureContainerVisualization, generateNewIds: boolean): void;
|
|
21
|
+
clone(generateNewIds?: boolean): TextureContainerVisualization;
|
|
22
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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 ContainerVisualization = /** @class */ (function () {
|
|
15
|
+
function ContainerVisualization() {
|
|
16
|
+
}
|
|
17
|
+
ContainerVisualization.prototype._copy = function (source, destination, generateNewIds) {
|
|
18
|
+
};
|
|
19
|
+
return ContainerVisualization;
|
|
20
|
+
}());
|
|
21
|
+
export { ContainerVisualization };
|
|
22
|
+
var ColorContainerVisualization = /** @class */ (function (_super) {
|
|
23
|
+
__extends(ColorContainerVisualization, _super);
|
|
24
|
+
function ColorContainerVisualization() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
ColorContainerVisualization.prototype._copy = function (source, destination, generateNewIds) {
|
|
28
|
+
_super.prototype._copy.call(this, source, destination, generateNewIds);
|
|
29
|
+
destination.color = source.color.clone();
|
|
30
|
+
destination.opacity = source.opacity;
|
|
31
|
+
destination.enableGlareEffect = source.enableGlareEffect;
|
|
32
|
+
};
|
|
33
|
+
ColorContainerVisualization.prototype.clone = function (generateNewIds) {
|
|
34
|
+
if (generateNewIds === void 0) { generateNewIds = false; }
|
|
35
|
+
var container = new ColorContainerVisualization();
|
|
36
|
+
this._copy(this, container, generateNewIds);
|
|
37
|
+
return container;
|
|
38
|
+
};
|
|
39
|
+
return ColorContainerVisualization;
|
|
40
|
+
}(ContainerVisualization));
|
|
41
|
+
export { ColorContainerVisualization };
|
|
42
|
+
var TextureContainerVisualization = /** @class */ (function (_super) {
|
|
43
|
+
__extends(TextureContainerVisualization, _super);
|
|
44
|
+
function TextureContainerVisualization() {
|
|
45
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
46
|
+
}
|
|
47
|
+
Object.defineProperty(TextureContainerVisualization.prototype, "textureSource", {
|
|
48
|
+
get: function () {
|
|
49
|
+
return this._textureSource;
|
|
50
|
+
},
|
|
51
|
+
enumerable: true,
|
|
52
|
+
configurable: true
|
|
53
|
+
});
|
|
54
|
+
TextureContainerVisualization.prototype._copy = function (source, destination, generateNewIds) {
|
|
55
|
+
_super.prototype._copy.call(this, source, destination, generateNewIds);
|
|
56
|
+
destination._textureSource = source.textureSource.clone();
|
|
57
|
+
destination.textureName = source.textureName;
|
|
58
|
+
destination.opacity = source.opacity;
|
|
59
|
+
destination.enableGlareEffect = source.enableGlareEffect;
|
|
60
|
+
};
|
|
61
|
+
TextureContainerVisualization.prototype.clone = function (generateNewIds) {
|
|
62
|
+
if (generateNewIds === void 0) { generateNewIds = false; }
|
|
63
|
+
var container = new TextureContainerVisualization();
|
|
64
|
+
this._copy(this, container, generateNewIds);
|
|
65
|
+
return container;
|
|
66
|
+
};
|
|
67
|
+
return TextureContainerVisualization;
|
|
68
|
+
}(ContainerVisualization));
|
|
69
|
+
export { TextureContainerVisualization };
|
|
70
|
+
//# sourceMappingURL=ContainerVisualization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContainerVisualization.js","sourceRoot":"","sources":["../../../src/design-atoms-model/Product/ContainerVisualization.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAGA;IAAA;IAMA,CAAC;IALa,sCAAK,GAAf,UAAgB,MAA8B,EAAE,WAAm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K,GAAL,UAAM,cAA+B;QAA/B,+BAAA,EAAA,sBAA+B;QACjC,IAAM,SAAS,GAAG,IAAI,6BAA6B,EAAE,CAAC;QACtD,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,cAAc,CAAC,CAAC;QAC5C,OAAO,SAAS,CAAC;IACrB,CAAC;IACL,oCAAC;AAAD,CAAC,AAxBD,CAAmD,sBAAsB,GAwBxE"}
|
package/Version.d.ts
CHANGED
package/Version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "7.0.
|
|
2
|
+
"version": "7.0.20",
|
|
3
3
|
"name": "@aurigma/design-atoms-model",
|
|
4
4
|
"license": "SEE LICENSE IN License.md",
|
|
5
5
|
"description": "Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.",
|