@aurigma/design-atoms-model 7.0.20 → 7.0.22
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/Constraints/PrintingTechniqueConstraints.d.ts +15 -0
- package/Product/Constraints/PrintingTechniqueConstraints.js +28 -0
- package/Product/Constraints/PrintingTechniqueConstraints.js.map +1 -0
- package/Product/Container.d.ts +106 -14
- package/Product/Container.js +53 -13
- package/Product/Container.js.map +1 -1
- package/Product/ContainerVisualization.d.ts +36 -8
- package/Product/ContainerVisualization.js +39 -24
- package/Product/ContainerVisualization.js.map +1 -1
- package/Product/Effects/ColorDictionaryEntry.d.ts +4 -0
- package/Product/Effects/ColorDictionaryEntry.js +7 -0
- package/Product/Effects/ColorDictionaryEntry.js.map +1 -0
- package/Product/Effects/NDEffectParameters.d.ts +2 -0
- package/Product/Effects/NDEffectParameters.js +7 -0
- package/Product/Effects/NDEffectParameters.js.map +1 -0
- package/Product/Effects/NDEffectType.d.ts +4 -0
- package/Product/Effects/NDEffectType.js +6 -0
- package/Product/Effects/NDEffectType.js.map +1 -0
- package/Product/Effects/NDEffects.d.ts +22 -0
- package/Product/Effects/NDEffects.js +46 -0
- package/Product/Effects/NDEffects.js.map +1 -0
- package/Product/Effects/RecolorEffectParameters.d.ts +25 -0
- package/Product/Effects/RecolorEffectParameters.js +119 -0
- package/Product/Effects/RecolorEffectParameters.js.map +1 -0
- package/Product/Effects/index.d.ts +4 -0
- package/Product/Effects/index.js +5 -0
- package/Product/Effects/index.js.map +1 -0
- package/Product/Items/ImageItem.d.ts +15 -0
- package/Product/Items/ImageItem.js +36 -15
- package/Product/Items/ImageItem.js.map +1 -1
- package/Product/Surface.js +2 -5
- package/Product/Surface.js.map +1 -1
- package/Version.d.ts +1 -1
- package/Version.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class PrintingTechniqueConstraints {
|
|
2
|
+
allowRasterElements: boolean;
|
|
3
|
+
minWidth: number | null;
|
|
4
|
+
minFontSize: number | null;
|
|
5
|
+
targetDpi: number | null;
|
|
6
|
+
constructor();
|
|
7
|
+
protected _copy(source: PrintingTechniqueConstraints, destination: PrintingTechniqueConstraints, generateNewIds: boolean): void;
|
|
8
|
+
clone(generateNewIds?: boolean): PrintingTechniqueConstraints;
|
|
9
|
+
toJSON(): {
|
|
10
|
+
allowRasterElements: boolean;
|
|
11
|
+
minWidth: number;
|
|
12
|
+
minFontSize: number;
|
|
13
|
+
targetDpi: number;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var PrintingTechniqueConstraints = /** @class */ (function () {
|
|
2
|
+
function PrintingTechniqueConstraints() {
|
|
3
|
+
this.allowRasterElements = true;
|
|
4
|
+
}
|
|
5
|
+
PrintingTechniqueConstraints.prototype._copy = function (source, destination, generateNewIds) {
|
|
6
|
+
destination.allowRasterElements = source.allowRasterElements != null ? source.allowRasterElements : null;
|
|
7
|
+
destination.minWidth = source.minWidth != null ? source.minWidth : null;
|
|
8
|
+
destination.minFontSize = source.minFontSize != null ? source.minWidth : null;
|
|
9
|
+
destination.targetDpi = source.targetDpi != null ? source.targetDpi : null;
|
|
10
|
+
};
|
|
11
|
+
PrintingTechniqueConstraints.prototype.clone = function (generateNewIds) {
|
|
12
|
+
if (generateNewIds === void 0) { generateNewIds = false; }
|
|
13
|
+
var constraints = new PrintingTechniqueConstraints();
|
|
14
|
+
this._copy(this, constraints, generateNewIds);
|
|
15
|
+
return constraints;
|
|
16
|
+
};
|
|
17
|
+
PrintingTechniqueConstraints.prototype.toJSON = function () {
|
|
18
|
+
return {
|
|
19
|
+
allowRasterElements: this.allowRasterElements,
|
|
20
|
+
minWidth: this.minWidth,
|
|
21
|
+
minFontSize: this.minFontSize,
|
|
22
|
+
targetDpi: this.targetDpi
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
return PrintingTechniqueConstraints;
|
|
26
|
+
}());
|
|
27
|
+
export { PrintingTechniqueConstraints };
|
|
28
|
+
//# sourceMappingURL=PrintingTechniqueConstraints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrintingTechniqueConstraints.js","sourceRoot":"","sources":["../../../../src/design-atoms-model/Product/Constraints/PrintingTechniqueConstraints.ts"],"names":[],"mappings":"AAAA;IAMI;QALA,wBAAmB,GAAG,IAAI,CAAC;IAKX,CAAC;IAEP,4CAAK,GAAf,UAAgB,MAAoC,EAAE,WAAyC,EAAE,cAAuB;QACpH,WAAW,CAAC,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,IAAI,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC,CAAC,IAAI,CAAC;QACzG,WAAW,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC;QACxE,WAAW,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC;QAC9E,WAAW,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,IAAI,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC;IAC/E,CAAC;IAED,4CAAK,GAAL,UAAM,cAA+B;QAA/B,+BAAA,EAAA,sBAA+B;QACjC,IAAM,WAAW,GAAG,IAAI,4BAA4B,EAAE,CAAC;QACvD,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC;QAC9C,OAAO,WAAW,CAAC;IACvB,CAAC;IAED,6CAAM,GAAN;QACI,OAAO;YACH,mBAAmB,EAAE,IAAI,CAAC,mBAAmB;YAC7C,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,SAAS,EAAE,IAAI,CAAC,SAAS;SAC5B,CAAA;IACL,CAAC;IACL,mCAAC;AAAD,CAAC,AA7BD,IA6BC"}
|
package/Product/Container.d.ts
CHANGED
|
@@ -6,15 +6,17 @@ import { Collection } from "../Collection";
|
|
|
6
6
|
import { RenderingType } from "./RenderingType";
|
|
7
7
|
import { Color, ColorSpace, RgbColor } from "../Colors";
|
|
8
8
|
import { ContainerVisualization } from "./ContainerVisualization";
|
|
9
|
+
import { PrintingTechniqueConstraints } from "./Constraints/PrintingTechniqueConstraints";
|
|
9
10
|
export declare class Container extends ModelComponent {
|
|
11
|
+
static type: string;
|
|
12
|
+
readonly type: string;
|
|
13
|
+
parentComponent: ModelComponent;
|
|
14
|
+
translationKey: string;
|
|
10
15
|
protected _locked: boolean;
|
|
11
16
|
private readonly _items;
|
|
12
17
|
private _visible;
|
|
13
18
|
private _region;
|
|
14
|
-
parentComponent: ModelComponent;
|
|
15
19
|
get renderingType(): RenderingType;
|
|
16
|
-
translationKey: string;
|
|
17
|
-
type: string;
|
|
18
20
|
constructor(initialItems?: BaseItem[], name?: string);
|
|
19
21
|
get region(): RectangleF;
|
|
20
22
|
set region(value: RectangleF);
|
|
@@ -40,45 +42,120 @@ export declare class MockupContainer extends Container {
|
|
|
40
42
|
clone(generateNewIds?: boolean): MockupContainer;
|
|
41
43
|
}
|
|
42
44
|
export declare class SurfaceContainer extends Container {
|
|
43
|
-
type: string;
|
|
45
|
+
static type: string;
|
|
46
|
+
readonly type: string;
|
|
47
|
+
printingTechniqueConstraints: PrintingTechniqueConstraints;
|
|
44
48
|
constructor(initialItems?: BaseItem[], name?: string);
|
|
49
|
+
protected _copy(source: SurfaceContainer, destination: SurfaceContainer, generateNewIds: boolean): void;
|
|
45
50
|
clone(generateNewIds?: boolean): SurfaceContainer;
|
|
51
|
+
getSimplifiedObject(): {
|
|
52
|
+
printingTechniqueConstraints: {
|
|
53
|
+
allowRasterElements: boolean;
|
|
54
|
+
minWidth: number;
|
|
55
|
+
minFontSize: number;
|
|
56
|
+
targetDpi: number;
|
|
57
|
+
};
|
|
58
|
+
constructor: Function;
|
|
59
|
+
toString(): string;
|
|
60
|
+
toLocaleString(): string;
|
|
61
|
+
valueOf(): Object;
|
|
62
|
+
hasOwnProperty(v: string | number | symbol): boolean;
|
|
63
|
+
isPrototypeOf(v: Object): boolean;
|
|
64
|
+
propertyIsEnumerable(v: string | number | symbol): boolean;
|
|
65
|
+
};
|
|
46
66
|
}
|
|
47
67
|
export declare class ColorLessContainer extends SurfaceContainer {
|
|
48
|
-
type: string;
|
|
49
|
-
|
|
68
|
+
static type: string;
|
|
69
|
+
readonly type: string;
|
|
50
70
|
outputColor: Color;
|
|
51
71
|
opaque: boolean;
|
|
52
72
|
dpi: number | null;
|
|
53
|
-
|
|
73
|
+
visualization: ContainerVisualization | null;
|
|
74
|
+
get renderingType(): RenderingType;
|
|
54
75
|
constructor(initialItems?: BaseItem[], name?: string);
|
|
55
76
|
protected _copy(source: ColorLessContainer, destination: ColorLessContainer, generateNewIds: boolean): void;
|
|
77
|
+
getSimplifiedObject(): {
|
|
78
|
+
outputColor: import("../Colors").IColor;
|
|
79
|
+
opaque: boolean;
|
|
80
|
+
dpi: number;
|
|
81
|
+
visualization: object;
|
|
82
|
+
printingTechniqueConstraints: {
|
|
83
|
+
allowRasterElements: boolean;
|
|
84
|
+
minWidth: number;
|
|
85
|
+
minFontSize: number;
|
|
86
|
+
targetDpi: number;
|
|
87
|
+
};
|
|
88
|
+
constructor: Function;
|
|
89
|
+
toString(): string;
|
|
90
|
+
toLocaleString(): string;
|
|
91
|
+
valueOf(): Object;
|
|
92
|
+
hasOwnProperty(v: string | number | symbol): boolean;
|
|
93
|
+
isPrototypeOf(v: Object): boolean;
|
|
94
|
+
propertyIsEnumerable(v: string | number | symbol): boolean;
|
|
95
|
+
};
|
|
56
96
|
clone(generateNewIds?: boolean): SurfaceContainer;
|
|
57
97
|
}
|
|
58
98
|
export declare class LimitedColorContainer extends SurfaceContainer {
|
|
99
|
+
static type: string;
|
|
100
|
+
readonly type: string;
|
|
59
101
|
maxColorNumber: number | null;
|
|
60
102
|
paletteUId: string | null;
|
|
61
|
-
type: string;
|
|
62
103
|
get renderingType(): RenderingType;
|
|
63
104
|
constructor(initialItems?: BaseItem[], name?: string);
|
|
64
105
|
protected _copy(source: LimitedColorContainer, destination: LimitedColorContainer, generateNewIds: boolean): void;
|
|
106
|
+
getSimplifiedObject(): {
|
|
107
|
+
maxColorNumber: number;
|
|
108
|
+
paletteUId: string;
|
|
109
|
+
printingTechniqueConstraints: {
|
|
110
|
+
allowRasterElements: boolean;
|
|
111
|
+
minWidth: number;
|
|
112
|
+
minFontSize: number;
|
|
113
|
+
targetDpi: number;
|
|
114
|
+
};
|
|
115
|
+
constructor: Function;
|
|
116
|
+
toString(): string;
|
|
117
|
+
toLocaleString(): string;
|
|
118
|
+
valueOf(): Object;
|
|
119
|
+
hasOwnProperty(v: string | number | symbol): boolean;
|
|
120
|
+
isPrototypeOf(v: Object): boolean;
|
|
121
|
+
propertyIsEnumerable(v: string | number | symbol): boolean;
|
|
122
|
+
};
|
|
65
123
|
clone(generateNewIds?: boolean): SurfaceContainer;
|
|
66
124
|
}
|
|
67
125
|
export declare class FullColorContainer extends SurfaceContainer {
|
|
68
|
-
type: string;
|
|
69
|
-
|
|
126
|
+
static type: string;
|
|
127
|
+
readonly type: string;
|
|
70
128
|
colorSpace: ColorSpace | null;
|
|
71
129
|
colorProfile: string | null;
|
|
130
|
+
get renderingType(): RenderingType;
|
|
72
131
|
constructor(initialItems?: BaseItem[], name?: string);
|
|
73
132
|
protected _copy(source: FullColorContainer, destination: FullColorContainer, generateNewIds: boolean): void;
|
|
133
|
+
getSimplifiedObject(): {
|
|
134
|
+
colorSpace: ColorSpace;
|
|
135
|
+
colorProfile: string;
|
|
136
|
+
printingTechniqueConstraints: {
|
|
137
|
+
allowRasterElements: boolean;
|
|
138
|
+
minWidth: number;
|
|
139
|
+
minFontSize: number;
|
|
140
|
+
targetDpi: number;
|
|
141
|
+
};
|
|
142
|
+
constructor: Function;
|
|
143
|
+
toString(): string;
|
|
144
|
+
toLocaleString(): string;
|
|
145
|
+
valueOf(): Object;
|
|
146
|
+
hasOwnProperty(v: string | number | symbol): boolean;
|
|
147
|
+
isPrototypeOf(v: Object): boolean;
|
|
148
|
+
propertyIsEnumerable(v: string | number | symbol): boolean;
|
|
149
|
+
};
|
|
74
150
|
clone(generateNewIds?: boolean): SurfaceContainer;
|
|
75
151
|
}
|
|
76
152
|
export declare class SpotColorContainer extends SurfaceContainer {
|
|
77
|
-
|
|
153
|
+
static type: string;
|
|
154
|
+
readonly type: string;
|
|
78
155
|
previewColor: RgbColor;
|
|
79
156
|
outputColor: Color;
|
|
80
|
-
type: string;
|
|
81
157
|
get renderingType(): RenderingType;
|
|
158
|
+
constructor();
|
|
82
159
|
protected _copy(source: SpotColorContainer, destination: SpotColorContainer, generateNewIds: boolean): void;
|
|
83
160
|
clone(generateNewIds?: boolean): SpotColorContainer;
|
|
84
161
|
}
|
|
@@ -88,10 +165,25 @@ export declare class TextureContainer extends SurfaceContainer {
|
|
|
88
165
|
_previewTextureSource: ImageItem.ImageSource;
|
|
89
166
|
get previewTextureSource(): ImageItem.ImageSource;
|
|
90
167
|
set previewTextureSource(previewTextureSource: ImageItem.ImageSource);
|
|
168
|
+
static type: string;
|
|
91
169
|
previewTextureName: string;
|
|
92
170
|
outputColor: Color;
|
|
93
|
-
type: string;
|
|
171
|
+
readonly type: string;
|
|
94
172
|
protected _copy(source: TextureContainer, destination: TextureContainer, generateNewIds: boolean): TextureContainer;
|
|
95
173
|
clone(generateNewIds?: boolean): TextureContainer;
|
|
96
|
-
getSimplifiedObject(omitProperties?: string[] | string):
|
|
174
|
+
getSimplifiedObject(omitProperties?: string[] | string): {
|
|
175
|
+
printingTechniqueConstraints: {
|
|
176
|
+
allowRasterElements: boolean;
|
|
177
|
+
minWidth: number;
|
|
178
|
+
minFontSize: number;
|
|
179
|
+
targetDpi: number;
|
|
180
|
+
};
|
|
181
|
+
constructor: Function;
|
|
182
|
+
toString(): string;
|
|
183
|
+
toLocaleString(): string;
|
|
184
|
+
valueOf(): Object;
|
|
185
|
+
hasOwnProperty(v: string | number | symbol): boolean;
|
|
186
|
+
isPrototypeOf(v: Object): boolean;
|
|
187
|
+
propertyIsEnumerable(v: string | number | symbol): boolean;
|
|
188
|
+
};
|
|
97
189
|
}
|
package/Product/Container.js
CHANGED
|
@@ -11,21 +11,33 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
11
11
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
12
|
};
|
|
13
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
|
+
};
|
|
14
25
|
import { ModelComponent } from "./ModelComponent";
|
|
15
26
|
import * as _ from "underscore";
|
|
16
27
|
import { Collection } from "../Collection";
|
|
17
28
|
import { RenderingType } from "./RenderingType";
|
|
18
29
|
import { ColorContainerVisualization, TextureContainerVisualization } from "./ContainerVisualization";
|
|
30
|
+
import { PrintingTechniqueConstraints } from "./Constraints/PrintingTechniqueConstraints";
|
|
19
31
|
var Container = /** @class */ (function (_super) {
|
|
20
32
|
__extends(Container, _super);
|
|
21
33
|
function Container(initialItems, name) {
|
|
22
34
|
var _this = _super.call(this) || this;
|
|
35
|
+
_this.type = Container.type;
|
|
36
|
+
_this.parentComponent = null;
|
|
23
37
|
_this._locked = false;
|
|
24
38
|
_this._items = new Collection();
|
|
25
39
|
_this._visible = true;
|
|
26
40
|
_this._region = null;
|
|
27
|
-
_this.parentComponent = null;
|
|
28
|
-
_this.type = "Container";
|
|
29
41
|
_this._onItemAdded = function (_a) {
|
|
30
42
|
var newItem = _a.item;
|
|
31
43
|
newItem.parentContainer = _this;
|
|
@@ -129,6 +141,7 @@ var Container = /** @class */ (function (_super) {
|
|
|
129
141
|
this._copy(this, container, generateNewIds);
|
|
130
142
|
return container;
|
|
131
143
|
};
|
|
144
|
+
Container.type = "Container";
|
|
132
145
|
return Container;
|
|
133
146
|
}(ModelComponent));
|
|
134
147
|
export { Container };
|
|
@@ -161,16 +174,26 @@ var SurfaceContainer = /** @class */ (function (_super) {
|
|
|
161
174
|
__extends(SurfaceContainer, _super);
|
|
162
175
|
function SurfaceContainer(initialItems, name) {
|
|
163
176
|
var _this = _super.call(this, initialItems, name) || this;
|
|
164
|
-
_this.type =
|
|
177
|
+
_this.type = SurfaceContainer.type;
|
|
165
178
|
_this._locked = false;
|
|
179
|
+
_this.printingTechniqueConstraints = new PrintingTechniqueConstraints();
|
|
166
180
|
return _this;
|
|
167
181
|
}
|
|
182
|
+
SurfaceContainer.prototype._copy = function (source, destination, generateNewIds) {
|
|
183
|
+
_super.prototype._copy.call(this, source, destination, generateNewIds);
|
|
184
|
+
destination.printingTechniqueConstraints = source.printingTechniqueConstraints.clone(generateNewIds);
|
|
185
|
+
};
|
|
168
186
|
SurfaceContainer.prototype.clone = function (generateNewIds) {
|
|
169
187
|
if (generateNewIds === void 0) { generateNewIds = false; }
|
|
170
188
|
var container = new SurfaceContainer();
|
|
171
189
|
this._copy(this, container, generateNewIds);
|
|
172
190
|
return container;
|
|
173
191
|
};
|
|
192
|
+
SurfaceContainer.prototype.getSimplifiedObject = function () {
|
|
193
|
+
var result = _super.prototype.getSimplifiedObject.call(this);
|
|
194
|
+
return __assign(__assign({}, result), { printingTechniqueConstraints: this.printingTechniqueConstraints.toJSON() });
|
|
195
|
+
};
|
|
196
|
+
SurfaceContainer.type = "SurfaceContainer";
|
|
174
197
|
return SurfaceContainer;
|
|
175
198
|
}(Container));
|
|
176
199
|
export { SurfaceContainer };
|
|
@@ -178,17 +201,17 @@ var ColorLessContainer = /** @class */ (function (_super) {
|
|
|
178
201
|
__extends(ColorLessContainer, _super);
|
|
179
202
|
function ColorLessContainer(initialItems, name) {
|
|
180
203
|
var _this = _super.call(this, initialItems, name) || this;
|
|
181
|
-
_this.type =
|
|
204
|
+
_this.type = ColorLessContainer.type;
|
|
182
205
|
_this._locked = false;
|
|
183
206
|
return _this;
|
|
184
207
|
}
|
|
185
208
|
Object.defineProperty(ColorLessContainer.prototype, "renderingType", {
|
|
186
209
|
get: function () {
|
|
187
|
-
if (this.
|
|
210
|
+
if (this.visualization === null)
|
|
188
211
|
return null;
|
|
189
|
-
if (this.
|
|
212
|
+
if (this.visualization instanceof TextureContainerVisualization)
|
|
190
213
|
return RenderingType.Solid;
|
|
191
|
-
if (this.
|
|
214
|
+
if (this.visualization instanceof ColorContainerVisualization)
|
|
192
215
|
return RenderingType.Grayscale;
|
|
193
216
|
return null;
|
|
194
217
|
},
|
|
@@ -201,7 +224,11 @@ var ColorLessContainer = /** @class */ (function (_super) {
|
|
|
201
224
|
destination.outputColor = (_a = source.outputColor) === null || _a === void 0 ? void 0 : _a.clone();
|
|
202
225
|
destination.opaque = source.opaque;
|
|
203
226
|
destination.dpi = source.dpi;
|
|
204
|
-
destination.
|
|
227
|
+
destination.visualization = (_b = source.visualization) === null || _b === void 0 ? void 0 : _b.clone();
|
|
228
|
+
};
|
|
229
|
+
ColorLessContainer.prototype.getSimplifiedObject = function () {
|
|
230
|
+
var result = _super.prototype.getSimplifiedObject.call(this);
|
|
231
|
+
return __assign(__assign({}, result), { outputColor: this.outputColor.getData(), opaque: this.opaque, dpi: this.dpi, visualization: this.visualization.toJSON() });
|
|
205
232
|
};
|
|
206
233
|
ColorLessContainer.prototype.clone = function (generateNewIds) {
|
|
207
234
|
if (generateNewIds === void 0) { generateNewIds = false; }
|
|
@@ -209,6 +236,7 @@ var ColorLessContainer = /** @class */ (function (_super) {
|
|
|
209
236
|
this._copy(this, container, generateNewIds);
|
|
210
237
|
return container;
|
|
211
238
|
};
|
|
239
|
+
ColorLessContainer.type = "ColorLessContainer";
|
|
212
240
|
return ColorLessContainer;
|
|
213
241
|
}(SurfaceContainer));
|
|
214
242
|
export { ColorLessContainer };
|
|
@@ -216,13 +244,13 @@ var LimitedColorContainer = /** @class */ (function (_super) {
|
|
|
216
244
|
__extends(LimitedColorContainer, _super);
|
|
217
245
|
function LimitedColorContainer(initialItems, name) {
|
|
218
246
|
var _this = _super.call(this, initialItems, name) || this;
|
|
219
|
-
_this.type =
|
|
247
|
+
_this.type = LimitedColorContainer.type;
|
|
220
248
|
_this._locked = false;
|
|
221
249
|
return _this;
|
|
222
250
|
}
|
|
223
251
|
Object.defineProperty(LimitedColorContainer.prototype, "renderingType", {
|
|
224
252
|
get: function () {
|
|
225
|
-
return RenderingType.
|
|
253
|
+
return RenderingType.Normal;
|
|
226
254
|
},
|
|
227
255
|
enumerable: true,
|
|
228
256
|
configurable: true
|
|
@@ -232,12 +260,17 @@ var LimitedColorContainer = /** @class */ (function (_super) {
|
|
|
232
260
|
destination.maxColorNumber = source.maxColorNumber;
|
|
233
261
|
destination.paletteUId = source.paletteUId;
|
|
234
262
|
};
|
|
263
|
+
LimitedColorContainer.prototype.getSimplifiedObject = function () {
|
|
264
|
+
var result = _super.prototype.getSimplifiedObject.call(this);
|
|
265
|
+
return __assign(__assign({}, result), { maxColorNumber: this.maxColorNumber, paletteUId: this.paletteUId });
|
|
266
|
+
};
|
|
235
267
|
LimitedColorContainer.prototype.clone = function (generateNewIds) {
|
|
236
268
|
if (generateNewIds === void 0) { generateNewIds = false; }
|
|
237
269
|
var container = new LimitedColorContainer();
|
|
238
270
|
this._copy(this, container, generateNewIds);
|
|
239
271
|
return container;
|
|
240
272
|
};
|
|
273
|
+
LimitedColorContainer.type = "LimitedColorContainer";
|
|
241
274
|
return LimitedColorContainer;
|
|
242
275
|
}(SurfaceContainer));
|
|
243
276
|
export { LimitedColorContainer };
|
|
@@ -245,7 +278,7 @@ var FullColorContainer = /** @class */ (function (_super) {
|
|
|
245
278
|
__extends(FullColorContainer, _super);
|
|
246
279
|
function FullColorContainer(initialItems, name) {
|
|
247
280
|
var _this = _super.call(this, initialItems, name) || this;
|
|
248
|
-
_this.type =
|
|
281
|
+
_this.type = FullColorContainer.type;
|
|
249
282
|
_this._locked = false;
|
|
250
283
|
return _this;
|
|
251
284
|
}
|
|
@@ -261,12 +294,17 @@ var FullColorContainer = /** @class */ (function (_super) {
|
|
|
261
294
|
destination.colorSpace = source.colorSpace;
|
|
262
295
|
destination.colorProfile = source.colorProfile;
|
|
263
296
|
};
|
|
297
|
+
FullColorContainer.prototype.getSimplifiedObject = function () {
|
|
298
|
+
var result = _super.prototype.getSimplifiedObject.call(this);
|
|
299
|
+
return __assign(__assign({}, result), { colorSpace: this.colorSpace, colorProfile: this.colorProfile });
|
|
300
|
+
};
|
|
264
301
|
FullColorContainer.prototype.clone = function (generateNewIds) {
|
|
265
302
|
if (generateNewIds === void 0) { generateNewIds = false; }
|
|
266
303
|
var container = new FullColorContainer();
|
|
267
304
|
this._copy(this, container, generateNewIds);
|
|
268
305
|
return container;
|
|
269
306
|
};
|
|
307
|
+
FullColorContainer.type = "FullColorContainer";
|
|
270
308
|
return FullColorContainer;
|
|
271
309
|
}(SurfaceContainer));
|
|
272
310
|
export { FullColorContainer };
|
|
@@ -274,7 +312,7 @@ var SpotColorContainer = /** @class */ (function (_super) {
|
|
|
274
312
|
__extends(SpotColorContainer, _super);
|
|
275
313
|
function SpotColorContainer() {
|
|
276
314
|
var _this = _super.call(this) || this;
|
|
277
|
-
_this.type =
|
|
315
|
+
_this.type = SpotColorContainer.type;
|
|
278
316
|
return _this;
|
|
279
317
|
}
|
|
280
318
|
Object.defineProperty(SpotColorContainer.prototype, "renderingType", {
|
|
@@ -296,6 +334,7 @@ var SpotColorContainer = /** @class */ (function (_super) {
|
|
|
296
334
|
this._copy(this, container, generateNewIds);
|
|
297
335
|
return container;
|
|
298
336
|
};
|
|
337
|
+
SpotColorContainer.type = "SpotColorContainer";
|
|
299
338
|
return SpotColorContainer;
|
|
300
339
|
}(SurfaceContainer));
|
|
301
340
|
export { SpotColorContainer };
|
|
@@ -303,7 +342,7 @@ var TextureContainer = /** @class */ (function (_super) {
|
|
|
303
342
|
__extends(TextureContainer, _super);
|
|
304
343
|
function TextureContainer() {
|
|
305
344
|
var _this = _super.call(this) || this;
|
|
306
|
-
_this.type =
|
|
345
|
+
_this.type = TextureContainer.type;
|
|
307
346
|
return _this;
|
|
308
347
|
}
|
|
309
348
|
Object.defineProperty(TextureContainer.prototype, "renderingType", {
|
|
@@ -357,6 +396,7 @@ var TextureContainer = /** @class */ (function (_super) {
|
|
|
357
396
|
};
|
|
358
397
|
return simplified;
|
|
359
398
|
};
|
|
399
|
+
TextureContainer.type = "TextureContainer";
|
|
360
400
|
return TextureContainer;
|
|
361
401
|
}(SurfaceContainer));
|
|
362
402
|
export { TextureContainer };
|
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;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,IAA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UAAoB,cAAkC;QAClD,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC;YACzD,cAAc,GAAG,EAAE,CAAC;QAExB,IAAM,UAAU,GAAG,iBAAM,mBAAmB,WAAE,CAAC;QAE/C,UAAU,CAAC,sBAAsB,CAAC,GAAG;YACjC,IAAI,EAAE,IAAI,CAAC,oBAAoB,CAAC,EAAE;YAClC,OAAO,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;IAvCM,qBAAI,GAAG,kBAAkB,CAAA;IAwCpC,uBAAC;CAAA,AA7DD,CAAsC,gBAAgB,GA6DrD;SA7DY,gBAAgB"}
|
|
@@ -1,22 +1,50 @@
|
|
|
1
1
|
import { ImageItem } from "./Items";
|
|
2
2
|
import { RgbColor } from "../Colors";
|
|
3
3
|
export declare abstract class ContainerVisualization {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
abstract type: string;
|
|
5
|
+
protected _copy(source: ContainerVisualization, destination: ContainerVisualization): void;
|
|
6
|
+
abstract clone(): ContainerVisualization;
|
|
7
|
+
abstract toJSON(): object;
|
|
6
8
|
}
|
|
7
9
|
export declare class ColorContainerVisualization extends ContainerVisualization {
|
|
10
|
+
static type: string;
|
|
11
|
+
readonly type: string;
|
|
8
12
|
color: RgbColor;
|
|
9
13
|
opacity: number;
|
|
10
14
|
enableGlareEffect: boolean;
|
|
11
|
-
protected _copy(source: ColorContainerVisualization, destination: ColorContainerVisualization
|
|
12
|
-
|
|
15
|
+
protected _copy(source: ColorContainerVisualization, destination: ColorContainerVisualization): void;
|
|
16
|
+
toJSON(): {
|
|
17
|
+
type: string;
|
|
18
|
+
color: import("../Colors").IRgbColor;
|
|
19
|
+
opacity: number;
|
|
20
|
+
enableGlareEffect: boolean;
|
|
21
|
+
};
|
|
22
|
+
clone(): ColorContainerVisualization;
|
|
13
23
|
}
|
|
14
24
|
export declare class TextureContainerVisualization extends ContainerVisualization {
|
|
15
|
-
|
|
16
|
-
|
|
25
|
+
static type: string;
|
|
26
|
+
readonly type: string;
|
|
17
27
|
textureName: string;
|
|
18
28
|
opacity: number;
|
|
19
29
|
enableGlareEffect: boolean;
|
|
20
|
-
|
|
21
|
-
|
|
30
|
+
textureSource: ImageItem.ImageSource;
|
|
31
|
+
protected _copy(source: TextureContainerVisualization, destination: TextureContainerVisualization): void;
|
|
32
|
+
toJSON(): {
|
|
33
|
+
type: string;
|
|
34
|
+
textureSource: {
|
|
35
|
+
id: string;
|
|
36
|
+
width: number;
|
|
37
|
+
height: number;
|
|
38
|
+
isVector: boolean;
|
|
39
|
+
pageIndex: number;
|
|
40
|
+
url: string;
|
|
41
|
+
actualSize: boolean;
|
|
42
|
+
saveAspectRatio: boolean;
|
|
43
|
+
origin: ImageItem.ImageSource.Origin;
|
|
44
|
+
};
|
|
45
|
+
textureName: string;
|
|
46
|
+
opacity: number;
|
|
47
|
+
enableGlareEffect: boolean;
|
|
48
|
+
};
|
|
49
|
+
clone(): TextureContainerVisualization;
|
|
22
50
|
}
|
|
@@ -14,56 +14,71 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
14
14
|
var ContainerVisualization = /** @class */ (function () {
|
|
15
15
|
function ContainerVisualization() {
|
|
16
16
|
}
|
|
17
|
-
ContainerVisualization.prototype._copy = function (source, destination
|
|
18
|
-
};
|
|
17
|
+
ContainerVisualization.prototype._copy = function (source, destination) { };
|
|
19
18
|
return ContainerVisualization;
|
|
20
19
|
}());
|
|
21
20
|
export { ContainerVisualization };
|
|
22
21
|
var ColorContainerVisualization = /** @class */ (function (_super) {
|
|
23
22
|
__extends(ColorContainerVisualization, _super);
|
|
24
23
|
function ColorContainerVisualization() {
|
|
25
|
-
|
|
24
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
25
|
+
_this.type = ColorContainerVisualization.type;
|
|
26
|
+
return _this;
|
|
26
27
|
}
|
|
27
|
-
ColorContainerVisualization.prototype._copy = function (source, destination
|
|
28
|
-
_super.prototype._copy.call(this, source, destination
|
|
28
|
+
ColorContainerVisualization.prototype._copy = function (source, destination) {
|
|
29
|
+
_super.prototype._copy.call(this, source, destination);
|
|
29
30
|
destination.color = source.color.clone();
|
|
30
31
|
destination.opacity = source.opacity;
|
|
31
32
|
destination.enableGlareEffect = source.enableGlareEffect;
|
|
32
33
|
};
|
|
33
|
-
ColorContainerVisualization.prototype.
|
|
34
|
-
|
|
34
|
+
ColorContainerVisualization.prototype.toJSON = function () {
|
|
35
|
+
return {
|
|
36
|
+
type: this.type,
|
|
37
|
+
color: this.color.getData(),
|
|
38
|
+
opacity: this.opacity,
|
|
39
|
+
enableGlareEffect: this.enableGlareEffect
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
ColorContainerVisualization.prototype.clone = function () {
|
|
35
43
|
var container = new ColorContainerVisualization();
|
|
36
|
-
this._copy(this, container
|
|
44
|
+
this._copy(this, container);
|
|
37
45
|
return container;
|
|
38
46
|
};
|
|
47
|
+
ColorContainerVisualization.type = "ColorVisualization";
|
|
39
48
|
return ColorContainerVisualization;
|
|
40
49
|
}(ContainerVisualization));
|
|
41
50
|
export { ColorContainerVisualization };
|
|
42
51
|
var TextureContainerVisualization = /** @class */ (function (_super) {
|
|
43
52
|
__extends(TextureContainerVisualization, _super);
|
|
44
53
|
function TextureContainerVisualization() {
|
|
45
|
-
|
|
54
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
55
|
+
_this.type = TextureContainerVisualization.type;
|
|
56
|
+
return _this;
|
|
46
57
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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();
|
|
58
|
+
TextureContainerVisualization.prototype._copy = function (source, destination) {
|
|
59
|
+
var _a;
|
|
60
|
+
_super.prototype._copy.call(this, source, destination);
|
|
61
|
+
destination.textureSource = (_a = source.textureSource) === null || _a === void 0 ? void 0 : _a.clone();
|
|
57
62
|
destination.textureName = source.textureName;
|
|
58
63
|
destination.opacity = source.opacity;
|
|
59
64
|
destination.enableGlareEffect = source.enableGlareEffect;
|
|
60
65
|
};
|
|
61
|
-
TextureContainerVisualization.prototype.
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
+
TextureContainerVisualization.prototype.toJSON = function () {
|
|
67
|
+
var _a;
|
|
68
|
+
return {
|
|
69
|
+
type: this.type,
|
|
70
|
+
textureSource: (_a = this.textureSource) === null || _a === void 0 ? void 0 : _a.toJSON(),
|
|
71
|
+
textureName: this.textureName,
|
|
72
|
+
opacity: this.opacity,
|
|
73
|
+
enableGlareEffect: this.enableGlareEffect
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
TextureContainerVisualization.prototype.clone = function () {
|
|
77
|
+
var visualization = new TextureContainerVisualization();
|
|
78
|
+
this._copy(this, visualization);
|
|
79
|
+
return visualization;
|
|
66
80
|
};
|
|
81
|
+
TextureContainerVisualization.type = "TextureVisualization";
|
|
67
82
|
return TextureContainerVisualization;
|
|
68
83
|
}(ContainerVisualization));
|
|
69
84
|
export { TextureContainerVisualization };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContainerVisualization.js","sourceRoot":"","sources":["../../../src/design-atoms-model/Product/ContainerVisualization.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAGA;IAAA;
|
|
1
|
+
{"version":3,"file":"ContainerVisualization.js","sourceRoot":"","sources":["../../../src/design-atoms-model/Product/ContainerVisualization.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAGA;IAAA;IAOA,CAAC;IAJa,sCAAK,GAAf,UAAgB,MAA8B,EAAE,WAAmC,IAAI,CAAC;IAI5F,6BAAC;AAAD,CAAC,AAPD,IAOC;;AAED;IAAiD,+CAAsB;IAAvE;QAAA,qEA8BC;QA5BY,UAAI,GAAG,2BAA2B,CAAC,IAAI,CAAC;;IA4BrD,CAAC;IAtBa,2CAAK,GAAf,UAAgB,MAAmC,EAAE,WAAwC;QACzF,iBAAM,KAAK,YAAC,MAAM,EAAE,WAAW,CAAC,CAAC;QAEjC,WAAW,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;QACzC,WAAW,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QACrC,WAAW,CAAC,iBAAiB,GAAG,MAAM,CAAC,iBAAiB,CAAC;IAC7D,CAAC;IAED,4CAAM,GAAN;QACI,OAAO;YACH,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE;YAC3B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;SAC5C,CAAA;IACL,CAAC;IAED,2CAAK,GAAL;QACI,IAAM,SAAS,GAAG,IAAI,2BAA2B,EAAE,CAAC;QACpD,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAC5B,OAAO,SAAS,CAAC;IACrB,CAAC;IA5BM,gCAAI,GAAG,oB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