@aurigma/design-atoms-model 6.5.32 → 6.5.35
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/ColorsNew/CmykColor.d.ts +17 -0
- package/ColorsNew/CmykColor.js +71 -0
- package/ColorsNew/CmykColor.js.map +1 -0
- package/ColorsNew/Color.d.ts +7 -0
- package/ColorsNew/Color.js +23 -0
- package/ColorsNew/Color.js.map +1 -0
- package/ColorsNew/GrayscaleColor.d.ts +11 -0
- package/ColorsNew/GrayscaleColor.js +50 -0
- package/ColorsNew/GrayscaleColor.js.map +1 -0
- package/ColorsNew/Ink.d.ts +18 -0
- package/ColorsNew/Ink.js +50 -0
- package/ColorsNew/Ink.js.map +1 -0
- package/ColorsNew/Palette.d.ts +4 -0
- package/ColorsNew/Palette.js +23 -0
- package/ColorsNew/Palette.js.map +1 -0
- package/ColorsNew/ProcessColor.d.ts +10 -0
- package/ColorsNew/ProcessColor.js +49 -0
- package/ColorsNew/ProcessColor.js.map +1 -0
- package/ColorsNew/RgbColor.d.ts +15 -0
- package/ColorsNew/RgbColor.js +64 -0
- package/ColorsNew/RgbColor.js.map +1 -0
- package/ColorsNew/SpotColor.d.ts +15 -0
- package/ColorsNew/SpotColor.js +68 -0
- package/ColorsNew/SpotColor.js.map +1 -0
- package/ColorsNew/Swatch.d.ts +8 -0
- package/ColorsNew/Swatch.js +40 -0
- package/ColorsNew/Swatch.js.map +1 -0
- package/ColorsNew/index.d.ts +9 -0
- package/ColorsNew/index.js +10 -0
- package/ColorsNew/index.js.map +1 -0
- package/Configuration.d.ts +0 -4
- package/Configuration.js +0 -8
- package/Configuration.js.map +1 -1
- package/Product/Convert/index.d.ts +1 -0
- package/Product/Convert/index.js +2 -0
- package/Product/Convert/index.js.map +1 -0
- package/Product/Decorators/index.d.ts +4 -0
- package/Product/Decorators/index.js +5 -0
- package/Product/Decorators/index.js.map +1 -0
- package/Product/ItemsData/index.d.ts +4 -1
- package/Product/ItemsData/index.js +4 -1
- package/Product/ItemsData/index.js.map +1 -1
- package/Product/Product.d.ts +9 -3
- package/Product/Product.js +21 -5
- package/Product/Product.js.map +1 -1
- package/Product/index.d.ts +7 -2
- package/Product/index.js +6 -2
- package/Product/index.js.map +1 -1
- package/Serialization/IProductSerializer.d.ts +3 -0
- package/Serialization/IProductSerializer.js +1 -0
- package/Serialization/IProductSerializer.js.map +1 -0
- package/Utils/index.d.ts +4 -0
- package/Utils/index.js +5 -0
- package/Utils/index.js.map +1 -0
- package/Version.d.ts +1 -1
- package/Version.js +1 -1
- package/index.d.ts +8 -0
- package/index.js +10 -0
- package/index.js.map +1 -0
- package/package.json +1 -1
- package/Product/Serializer/AdditionalConverter.d.ts +0 -6
- package/Product/Serializer/AdditionalConverter.js +0 -10
- package/Product/Serializer/AdditionalConverter.js.map +0 -1
- package/Product/Serializer/JsonProductSerializer.d.ts +0 -12
- package/Product/Serializer/JsonProductSerializer.js +0 -77
- package/Product/Serializer/JsonProductSerializer.js.map +0 -1
- package/Product/Serializer/ProductParser.d.ts +0 -112
- package/Product/Serializer/ProductParser.js +0 -765
- package/Product/Serializer/ProductParser.js.map +0 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Color } from "./Color";
|
|
2
|
+
import { ProcessColor } from "./ProcessColor";
|
|
3
|
+
export declare class CmykColor extends ProcessColor {
|
|
4
|
+
private _c;
|
|
5
|
+
private _m;
|
|
6
|
+
private _y;
|
|
7
|
+
private _k;
|
|
8
|
+
constructor(c: number, m: number, y: number, k: number, alpha: number, profile?: string);
|
|
9
|
+
get type(): string;
|
|
10
|
+
get c(): number;
|
|
11
|
+
get m(): number;
|
|
12
|
+
get y(): number;
|
|
13
|
+
get k(): number;
|
|
14
|
+
equals(other: Color): boolean;
|
|
15
|
+
clone(): CmykColor;
|
|
16
|
+
getData(): any;
|
|
17
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
import { ProcessColor } from "./ProcessColor";
|
|
15
|
+
var CmykColor = /** @class */ (function (_super) {
|
|
16
|
+
__extends(CmykColor, _super);
|
|
17
|
+
function CmykColor(c, m, y, k, alpha, profile) {
|
|
18
|
+
if (profile === void 0) { profile = null; }
|
|
19
|
+
var _this = _super.call(this, alpha, profile) || this;
|
|
20
|
+
_this._c = c;
|
|
21
|
+
_this._m = m;
|
|
22
|
+
_this._y = y;
|
|
23
|
+
_this._k = k;
|
|
24
|
+
return _this;
|
|
25
|
+
}
|
|
26
|
+
Object.defineProperty(CmykColor.prototype, "type", {
|
|
27
|
+
get: function () { return "CmykColor"; },
|
|
28
|
+
enumerable: true,
|
|
29
|
+
configurable: true
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(CmykColor.prototype, "c", {
|
|
32
|
+
get: function () { return this._c; },
|
|
33
|
+
enumerable: true,
|
|
34
|
+
configurable: true
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(CmykColor.prototype, "m", {
|
|
37
|
+
get: function () { return this._m; },
|
|
38
|
+
enumerable: true,
|
|
39
|
+
configurable: true
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(CmykColor.prototype, "y", {
|
|
42
|
+
get: function () { return this._y; },
|
|
43
|
+
enumerable: true,
|
|
44
|
+
configurable: true
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(CmykColor.prototype, "k", {
|
|
47
|
+
get: function () { return this._k; },
|
|
48
|
+
enumerable: true,
|
|
49
|
+
configurable: true
|
|
50
|
+
});
|
|
51
|
+
CmykColor.prototype.equals = function (other) {
|
|
52
|
+
if (!_super.prototype.equals.call(this, other))
|
|
53
|
+
return false;
|
|
54
|
+
var cmykOther = other;
|
|
55
|
+
return this.c === cmykOther.c && this.m == cmykOther.m && this.y === cmykOther.y && this.k == cmykOther.k;
|
|
56
|
+
};
|
|
57
|
+
CmykColor.prototype.clone = function () {
|
|
58
|
+
return new CmykColor(this.c, this.m, this.y, this.k, this.alpha, this.profile);
|
|
59
|
+
};
|
|
60
|
+
CmykColor.prototype.getData = function () {
|
|
61
|
+
var data = _super.prototype.getData.call(this);
|
|
62
|
+
data.c = this.c;
|
|
63
|
+
data.m = this.m;
|
|
64
|
+
data.y = this.y;
|
|
65
|
+
data.k = this.k;
|
|
66
|
+
return data;
|
|
67
|
+
};
|
|
68
|
+
return CmykColor;
|
|
69
|
+
}(ProcessColor));
|
|
70
|
+
export { CmykColor };
|
|
71
|
+
//# sourceMappingURL=CmykColor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CmykColor.js","sourceRoot":"","sources":["../../../src/design-atoms-model/ColorsNew/CmykColor.ts"],"names":[],"mappings":";;;;;;;;;;;;;AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C;IAA+B,6BAAY;IAOvC,mBAAY,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,KAAa,EAAE,OAAsB;QAAtB,wBAAA,EAAA,cAAsB;QAA7F,YACI,kBAAM,KAAK,EAAE,OAAO,CAAC,SAMxB;QAJG,KAAI,CAAC,EAAE,GAAG,CAAC,CAAC;QACZ,KAAI,CAAC,EAAE,GAAG,CAAC,CAAC;QACZ,KAAI,CAAC,EAAE,GAAG,CAAC,CAAC;QACZ,KAAI,CAAC,EAAE,GAAG,CAAC,CAAC;;IA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C,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;QAEhB,OAAO,IAAI,CAAC;IAChB,CAAC;IACL,gBAAC;AAAD,CAAC,AA7CD,CAA+B,YAAY,GA6C1C"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
var Color = /** @class */ (function () {
|
|
2
|
+
function Color() {
|
|
3
|
+
}
|
|
4
|
+
Color.equals = function (a, b) {
|
|
5
|
+
if (a == null && b == null)
|
|
6
|
+
return true;
|
|
7
|
+
if (a == null || b == null)
|
|
8
|
+
return false;
|
|
9
|
+
return a.equals(b);
|
|
10
|
+
};
|
|
11
|
+
Color.prototype.equals = function (other) {
|
|
12
|
+
return other.type == this.type;
|
|
13
|
+
};
|
|
14
|
+
Color.prototype.getData = function () {
|
|
15
|
+
var data = {
|
|
16
|
+
type: this.type
|
|
17
|
+
};
|
|
18
|
+
return data;
|
|
19
|
+
};
|
|
20
|
+
return Color;
|
|
21
|
+
}());
|
|
22
|
+
export { Color };
|
|
23
|
+
//# sourceMappingURL=Color.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Color.js","sourceRoot":"","sources":["../../../src/design-atoms-model/ColorsNew/Color.ts"],"names":[],"mappings":"AAAA;IAAA;IAyBA,CAAC;IApBU,YAAM,GAAb,UAAc,CAAQ,EAAE,CAAQ;QAC5B,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,IAAI;YACtB,OAAO,IAAI,CAAC;QAChB,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,IAAI;YACtB,OAAO,KAAK,CAAC;QAEjB,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACvB,CAAC;IAED,sBAAM,GAAN,UAAO,KAAY;QACf,OAAO,KAAK,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC;IACnC,CAAC;IAED,uBAAO,GAAP;QACI,IAAM,IAAI,GAAG;YACT,IAAI,EAAE,IAAI,CAAC,IAAI;SAClB,CAAC;QAEF,OAAO,IAAW,CAAC;IACvB,CAAC;IACL,YAAC;AAAD,CAAC,AAzBD,IAyBC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Color } from "./Color";
|
|
2
|
+
import { ProcessColor } from "./ProcessColor";
|
|
3
|
+
export declare class GrayscaleColor extends ProcessColor {
|
|
4
|
+
private _l;
|
|
5
|
+
constructor(value: number, alpha: number, profile?: string);
|
|
6
|
+
get l(): number;
|
|
7
|
+
get type(): string;
|
|
8
|
+
equals(other: Color): boolean;
|
|
9
|
+
clone(): GrayscaleColor;
|
|
10
|
+
getData(): any;
|
|
11
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
import { ProcessColor } from "./ProcessColor";
|
|
15
|
+
var GrayscaleColor = /** @class */ (function (_super) {
|
|
16
|
+
__extends(GrayscaleColor, _super);
|
|
17
|
+
function GrayscaleColor(value, alpha, profile) {
|
|
18
|
+
if (profile === void 0) { profile = null; }
|
|
19
|
+
var _this = _super.call(this, alpha, profile) || this;
|
|
20
|
+
_this._l = value;
|
|
21
|
+
return _this;
|
|
22
|
+
}
|
|
23
|
+
Object.defineProperty(GrayscaleColor.prototype, "l", {
|
|
24
|
+
get: function () { return this._l; },
|
|
25
|
+
enumerable: true,
|
|
26
|
+
configurable: true
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(GrayscaleColor.prototype, "type", {
|
|
29
|
+
get: function () { return "GrayscaleColor"; },
|
|
30
|
+
enumerable: true,
|
|
31
|
+
configurable: true
|
|
32
|
+
});
|
|
33
|
+
GrayscaleColor.prototype.equals = function (other) {
|
|
34
|
+
if (!_super.prototype.equals.call(this, other))
|
|
35
|
+
return false;
|
|
36
|
+
var grayscaleOther = other;
|
|
37
|
+
return this.l == grayscaleOther.l;
|
|
38
|
+
};
|
|
39
|
+
GrayscaleColor.prototype.clone = function () {
|
|
40
|
+
return new GrayscaleColor(this.l, this.alpha, this.profile);
|
|
41
|
+
};
|
|
42
|
+
GrayscaleColor.prototype.getData = function () {
|
|
43
|
+
var data = _super.prototype.getData.call(this);
|
|
44
|
+
data.l = this.l;
|
|
45
|
+
return data;
|
|
46
|
+
};
|
|
47
|
+
return GrayscaleColor;
|
|
48
|
+
}(ProcessColor));
|
|
49
|
+
export { GrayscaleColor };
|
|
50
|
+
//# sourceMappingURL=GrayscaleColor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GrayscaleColor.js","sourceRoot":"","sources":["../../../src/design-atoms-model/ColorsNew/GrayscaleColor.ts"],"names":[],"mappings":";;;;;;;;;;;;;AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C;IAAoC,kCAAY;IAI5C,wBAAY,KAAa,EAAE,KAAa,EAAE,OAAsB;QAAtB,wBAAA,EAAA,cAAsB;QAAhE,YACI,kBAAM,KAAK,EAAE,OAAO,CAAC,SAGxB;QADG,KAAI,CAAC,EAAE,GAAG,KAAK,CAAC;;IACpB,CAAC;IAED,sBAAI,6BAAC;aAAL,cAAkB,OAAO,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;;;OAAA;IAEnC,sBAAI,gCAAI;aAAR,cAAqB,OAAO,gBAAgB,CAAC,CAAC,CAAC;;;OAAA;IAE/C,+BAAM,GAAN,UAAO,KAAY;QACf,IAAI,CAAC,iBAAM,MAAM,YAAC,KAAK,CAAC;YACpB,OAAO,KAAK,CAAC;QAEjB,IAAM,cAAc,GAAmB,KAAK,CAAC;QAC7C,OAAO,IAAI,CAAC,CAAC,IAAI,cAAc,CAAC,CAAC,CAAC;IACtC,CAAC;IAED,8BAAK,GAAL;QACI,OAAO,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;IAED,gCAAO,GAAP;QACI,IAAM,IAAI,GAAG,iBAAM,OAAO,WAAE,CAAC;QAE7B,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;QAEhB,OAAO,IAAI,CAAC;IAChB,CAAC;IACL,qBAAC;AAAD,CAAC,AAjCD,CAAoC,YAAY,GAiC/C"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Color } from "./Color";
|
|
2
|
+
export declare class Ink {
|
|
3
|
+
private _name;
|
|
4
|
+
private _alternativeColor;
|
|
5
|
+
private _solidity;
|
|
6
|
+
constructor(name: string, alternativeColor: Color, solidity?: number);
|
|
7
|
+
get name(): string;
|
|
8
|
+
get alternativeColor(): Color;
|
|
9
|
+
get solidity(): number;
|
|
10
|
+
static equals(a: Ink, b: Ink): boolean;
|
|
11
|
+
equals(other: Ink): boolean;
|
|
12
|
+
clone(): Ink;
|
|
13
|
+
getData(): {
|
|
14
|
+
name: string;
|
|
15
|
+
alternativeColor: any;
|
|
16
|
+
solidity: number;
|
|
17
|
+
};
|
|
18
|
+
}
|
package/ColorsNew/Ink.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Color } from "./Color";
|
|
2
|
+
var Ink = /** @class */ (function () {
|
|
3
|
+
function Ink(name, alternativeColor, solidity) {
|
|
4
|
+
if (solidity === void 0) { solidity = null; }
|
|
5
|
+
this._name = name;
|
|
6
|
+
this._alternativeColor = alternativeColor;
|
|
7
|
+
if (solidity == null)
|
|
8
|
+
solidity = 1;
|
|
9
|
+
this._solidity = solidity;
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(Ink.prototype, "name", {
|
|
12
|
+
get: function () { return this._name; },
|
|
13
|
+
enumerable: true,
|
|
14
|
+
configurable: true
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(Ink.prototype, "alternativeColor", {
|
|
17
|
+
get: function () { return this._alternativeColor; },
|
|
18
|
+
enumerable: true,
|
|
19
|
+
configurable: true
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(Ink.prototype, "solidity", {
|
|
22
|
+
get: function () { return this._solidity; },
|
|
23
|
+
enumerable: true,
|
|
24
|
+
configurable: true
|
|
25
|
+
});
|
|
26
|
+
Ink.equals = function (a, b) {
|
|
27
|
+
if (a == null && b == null)
|
|
28
|
+
return true;
|
|
29
|
+
if (a == null || b == null)
|
|
30
|
+
return false;
|
|
31
|
+
return a.equals(b);
|
|
32
|
+
};
|
|
33
|
+
Ink.prototype.equals = function (other) {
|
|
34
|
+
return this.name === other.name && this.solidity === other.solidity && Color.equals(this.alternativeColor, other.alternativeColor);
|
|
35
|
+
};
|
|
36
|
+
Ink.prototype.clone = function () {
|
|
37
|
+
return new Ink(this.name, this.alternativeColor, this.solidity);
|
|
38
|
+
};
|
|
39
|
+
Ink.prototype.getData = function () {
|
|
40
|
+
var _a;
|
|
41
|
+
return {
|
|
42
|
+
name: this.name,
|
|
43
|
+
alternativeColor: (_a = this.alternativeColor) === null || _a === void 0 ? void 0 : _a.getData(),
|
|
44
|
+
solidity: this.solidity
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
return Ink;
|
|
48
|
+
}());
|
|
49
|
+
export { Ink };
|
|
50
|
+
//# sourceMappingURL=Ink.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Ink.js","sourceRoot":"","sources":["../../../src/design-atoms-model/ColorsNew/Ink.ts"],"names":[],"mappings":"AAAA,OAAO,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AO,GAAP;;QACI,OAAO;YACH,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,gBAAgB,QAAE,IAAI,CAAC,gBAAgB,0CAAE,OAAO,EAAE;YAClD,QAAQ,EAAE,IAAI,CAAC,QAAQ;SAC1B,CAAC;IACN,CAAC;IACL,UAAC;AAAD,CAAC,AAzCD,IAyCC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
import { Collection } from "../Collection";
|
|
15
|
+
var Palette = /** @class */ (function (_super) {
|
|
16
|
+
__extends(Palette, _super);
|
|
17
|
+
function Palette() {
|
|
18
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
19
|
+
}
|
|
20
|
+
return Palette;
|
|
21
|
+
}(Collection));
|
|
22
|
+
export { Palette };
|
|
23
|
+
//# sourceMappingURL=Palette.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Palette.js","sourceRoot":"","sources":["../../../src/design-atoms-model/ColorsNew/Palette.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C;IAA6B,2BAAkB;IAA/C;;IAEA,CAAC;IAAD,cAAC;AAAD,CAAC,AAFD,CAA6B,UAAU,GAEtC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Color } from "./Color";
|
|
2
|
+
export declare abstract class ProcessColor extends Color {
|
|
3
|
+
private _profile;
|
|
4
|
+
private _alpha;
|
|
5
|
+
constructor(alpha: number, profile: string);
|
|
6
|
+
get alpha(): number;
|
|
7
|
+
get profile(): string;
|
|
8
|
+
equals(other: Color): boolean;
|
|
9
|
+
getData(): any;
|
|
10
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
import { Color } from "./Color";
|
|
15
|
+
var ProcessColor = /** @class */ (function (_super) {
|
|
16
|
+
__extends(ProcessColor, _super);
|
|
17
|
+
function ProcessColor(alpha, profile) {
|
|
18
|
+
var _this = _super.call(this) || this;
|
|
19
|
+
_this._alpha = alpha;
|
|
20
|
+
_this._profile = profile;
|
|
21
|
+
return _this;
|
|
22
|
+
}
|
|
23
|
+
Object.defineProperty(ProcessColor.prototype, "alpha", {
|
|
24
|
+
get: function () { return this._alpha; },
|
|
25
|
+
enumerable: true,
|
|
26
|
+
configurable: true
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(ProcessColor.prototype, "profile", {
|
|
29
|
+
get: function () { return this._profile; },
|
|
30
|
+
enumerable: true,
|
|
31
|
+
configurable: true
|
|
32
|
+
});
|
|
33
|
+
;
|
|
34
|
+
ProcessColor.prototype.equals = function (other) {
|
|
35
|
+
if (!_super.prototype.equals.call(this, other))
|
|
36
|
+
return false;
|
|
37
|
+
var processOther = other;
|
|
38
|
+
return this.profile == processOther.profile && this.alpha === processOther.alpha;
|
|
39
|
+
};
|
|
40
|
+
ProcessColor.prototype.getData = function () {
|
|
41
|
+
var data = _super.prototype.getData.call(this);
|
|
42
|
+
data.profile = this.profile;
|
|
43
|
+
data.alpha = this.alpha;
|
|
44
|
+
return data;
|
|
45
|
+
};
|
|
46
|
+
return ProcessColor;
|
|
47
|
+
}(Color));
|
|
48
|
+
export { ProcessColor };
|
|
49
|
+
//# sourceMappingURL=ProcessColor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProcessColor.js","sourceRoot":"","sources":["../../../src/design-atoms-model/ColorsNew/ProcessColor.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC;IAA2C,gCAAK;IAK5C,sBAAY,KAAa,EAAE,OAAe;QAA1C,YACI,iBAAO,SAIV;QAFG,KAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,KAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;;IAC5B,CAAC;IAED,sBAAI,+BAAK;aAAT,cAAa,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;;;OAAA;IAClC,sBAAI,iCAAO;aAAX,cAAwB,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;;;OAAA;IAAA,CAAC;IAEhD,6BAAM,GAAN,UAAO,KAAY;QACf,IAAI,CAAC,iBAAM,MAAM,YAAC,KAAK,CAAC;YACpB,OAAO,KAAK,CAAC;QAEjB,IAAM,YAAY,GAAiB,KAAK,CAAC;QACzC,OAAO,IAAI,CAAC,OAAO,IAAI,YAAY,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,KAAK,YAAY,CAAC,KAAK,CAAC;IACrF,CAAC;IAED,8BAAO,GAAP;QACI,IAAM,IAAI,GAAG,iBAAM,OAAO,WAAE,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACxB,OAAO,IAAI,CAAC;IAChB,CAAC;IACL,mBAAC;AAAD,CAAC,AA7BD,CAA2C,KAAK,GA6B/C"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Color } from "./Color";
|
|
2
|
+
import { ProcessColor } from "./ProcessColor";
|
|
3
|
+
export declare class RgbColor extends ProcessColor {
|
|
4
|
+
private _r;
|
|
5
|
+
private _g;
|
|
6
|
+
private _b;
|
|
7
|
+
constructor(r: number, g: number, b: number, alpha: number, profile?: string);
|
|
8
|
+
get r(): number;
|
|
9
|
+
get g(): number;
|
|
10
|
+
get b(): number;
|
|
11
|
+
get type(): string;
|
|
12
|
+
equals(other: Color): boolean;
|
|
13
|
+
clone(): Color;
|
|
14
|
+
getData(): any;
|
|
15
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
import { ProcessColor } from "./ProcessColor";
|
|
15
|
+
var RgbColor = /** @class */ (function (_super) {
|
|
16
|
+
__extends(RgbColor, _super);
|
|
17
|
+
function RgbColor(r, g, b, alpha, profile) {
|
|
18
|
+
if (profile === void 0) { profile = null; }
|
|
19
|
+
var _this = _super.call(this, alpha, profile) || this;
|
|
20
|
+
_this._r = r;
|
|
21
|
+
_this._g = g;
|
|
22
|
+
_this._b = b;
|
|
23
|
+
return _this;
|
|
24
|
+
}
|
|
25
|
+
Object.defineProperty(RgbColor.prototype, "r", {
|
|
26
|
+
get: function () { return this._r; },
|
|
27
|
+
enumerable: true,
|
|
28
|
+
configurable: true
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(RgbColor.prototype, "g", {
|
|
31
|
+
get: function () { return this._g; },
|
|
32
|
+
enumerable: true,
|
|
33
|
+
configurable: true
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(RgbColor.prototype, "b", {
|
|
36
|
+
get: function () { return this._b; },
|
|
37
|
+
enumerable: true,
|
|
38
|
+
configurable: true
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(RgbColor.prototype, "type", {
|
|
41
|
+
get: function () { return "RgbColor"; },
|
|
42
|
+
enumerable: true,
|
|
43
|
+
configurable: true
|
|
44
|
+
});
|
|
45
|
+
RgbColor.prototype.equals = function (other) {
|
|
46
|
+
if (!_super.prototype.equals.call(this, other))
|
|
47
|
+
return false;
|
|
48
|
+
var rgbOther = other;
|
|
49
|
+
return this.r === rgbOther.r && this.g == rgbOther.g && this.b === rgbOther.b;
|
|
50
|
+
};
|
|
51
|
+
RgbColor.prototype.clone = function () {
|
|
52
|
+
return new RgbColor(this.r, this.g, this.b, this.alpha, this.profile);
|
|
53
|
+
};
|
|
54
|
+
RgbColor.prototype.getData = function () {
|
|
55
|
+
var data = _super.prototype.getData.call(this);
|
|
56
|
+
data.r = this.r;
|
|
57
|
+
data.g = this.g;
|
|
58
|
+
data.b = this.b;
|
|
59
|
+
return data;
|
|
60
|
+
};
|
|
61
|
+
return RgbColor;
|
|
62
|
+
}(ProcessColor));
|
|
63
|
+
export { RgbColor };
|
|
64
|
+
//# sourceMappingURL=RgbColor.js.map
|
|
@@ -0,0 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AC,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED,0BAAO,GAAP;QACI,IAAM,IAAI,GAAG,iBAAM,OAAO,WAAE,CAAC;QAE7B,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;QAChB,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;QAChB,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;QAEhB,OAAO,IAAI,CAAC;IAChB,CAAC;IACL,eAAC;AAAD,CAAC,AAzCD,CAA8B,YAAY,GAyCzC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Color } from "./Color";
|
|
2
|
+
import { Ink } from "./Ink";
|
|
3
|
+
export declare class SpotColor extends Color {
|
|
4
|
+
private _ink;
|
|
5
|
+
private _tint;
|
|
6
|
+
private _alpha;
|
|
7
|
+
constructor(ink: Ink, tint: number, alpha?: number);
|
|
8
|
+
get ink(): Ink;
|
|
9
|
+
get tint(): number;
|
|
10
|
+
get alpha(): number;
|
|
11
|
+
get type(): string;
|
|
12
|
+
equals(other: Color): boolean;
|
|
13
|
+
clone(): Color;
|
|
14
|
+
getData(): any;
|
|
15
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
import { isNumber } from "underscore";
|
|
15
|
+
import { Color } from "./Color";
|
|
16
|
+
import { Ink } from "./Ink";
|
|
17
|
+
var SpotColor = /** @class */ (function (_super) {
|
|
18
|
+
__extends(SpotColor, _super);
|
|
19
|
+
function SpotColor(ink, tint, alpha) {
|
|
20
|
+
if (alpha === void 0) { alpha = null; }
|
|
21
|
+
var _this = _super.call(this) || this;
|
|
22
|
+
if (!isNumber(alpha))
|
|
23
|
+
alpha = 255;
|
|
24
|
+
_this._ink = ink;
|
|
25
|
+
_this._tint = tint;
|
|
26
|
+
_this._alpha = alpha;
|
|
27
|
+
return _this;
|
|
28
|
+
}
|
|
29
|
+
Object.defineProperty(SpotColor.prototype, "ink", {
|
|
30
|
+
get: function () { return this._ink; },
|
|
31
|
+
enumerable: true,
|
|
32
|
+
configurable: true
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(SpotColor.prototype, "tint", {
|
|
35
|
+
get: function () { return this._tint; },
|
|
36
|
+
enumerable: true,
|
|
37
|
+
configurable: true
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(SpotColor.prototype, "alpha", {
|
|
40
|
+
get: function () { return this._alpha; },
|
|
41
|
+
enumerable: true,
|
|
42
|
+
configurable: true
|
|
43
|
+
});
|
|
44
|
+
Object.defineProperty(SpotColor.prototype, "type", {
|
|
45
|
+
get: function () { return "SpotColor"; },
|
|
46
|
+
enumerable: true,
|
|
47
|
+
configurable: true
|
|
48
|
+
});
|
|
49
|
+
SpotColor.prototype.equals = function (other) {
|
|
50
|
+
if (!_super.prototype.equals.call(this, other))
|
|
51
|
+
return false;
|
|
52
|
+
var spotOther = other;
|
|
53
|
+
return Ink.equals(this.ink, spotOther.ink) && this.tint === spotOther.tint && this.alpha === spotOther.alpha;
|
|
54
|
+
};
|
|
55
|
+
SpotColor.prototype.clone = function () {
|
|
56
|
+
return new SpotColor(this.ink.clone(), this.tint, this.alpha);
|
|
57
|
+
};
|
|
58
|
+
SpotColor.prototype.getData = function () {
|
|
59
|
+
var data = _super.prototype.getData.call(this);
|
|
60
|
+
data.ink = this.ink.getData();
|
|
61
|
+
data.tint = this.tint;
|
|
62
|
+
data.alpha = this.alpha;
|
|
63
|
+
return data;
|
|
64
|
+
};
|
|
65
|
+
return SpotColor;
|
|
66
|
+
}(Color));
|
|
67
|
+
export { SpotColor };
|
|
68
|
+
//# sourceMappingURL=SpotColor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpotColor.js","sourceRoot":"","sources":["../../../src/design-atoms-model/ColorsNew/SpotColor.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B;IAA+B,6BAAK;IAMhC,mBAAY,GAAQ,EAAE,IAAY,EAAE,KAAoB;QAApB,sBAAA,EAAA,YAAoB;QAAxD,YACI,iBAAO,SAQV;QANG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;YAChB,KAAK,GAAG,GAAG,CAAC;QAEhB,KAAI,CAAC,IAAI,GAAG,GAAG,CAAC;QAChB,KAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,KAAI,CAAC,MAAM,GAAG,KAAK,CAAC;;IACxB,CAAC;IAED,sBAAI,0BAAG;aAAP,cAAkB,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;;;OAAA;IACrC,sBAAI,2BAAI;aAAR,cAAsB,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;;;OAAA;IAC1C,sBAAI,4BAAK;aAAT,cAAuB,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;;;OAAA;IAE5C,sBAAI,2BAAI;aAAR,cAAqB,OAAO,WAAW,CAAC,CAAC,CAAC;;;OAAA;IAE1C,0BAAM,GAAN,UAAO,KAAY;QACf,IAAI,CAAC,iBAAM,MAAM,YAAC,KAAK,CAAC;YACpB,OAAO,KAAK,CAAC;QAEjB,IAAM,SAAS,GAAc,KAAK,CAAC;QACnC,OAAO,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,SAAS,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC,KAAK,CAAC;IACjH,CAAC;IAED,yBAAK,GAAL;QACI,OAAO,IAAI,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IAClE,CAAC;IAED,2BAAO,GAAP;QACI,IAAM,IAAI,GAAG,iBAAM,OAAO,WAAE,CAAC;QAE7B,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;QAC9B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QAExB,OAAO,IAAI,CAAC;IAChB,CAAC;IACL,gBAAC;AAAD,CAAC,AA5CD,CAA+B,KAAK,GA4CnC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ModelComponent } from "../Product/ModelComponent";
|
|
2
|
+
import { Color } from "./Color";
|
|
3
|
+
export declare class Swatch extends ModelComponent {
|
|
4
|
+
color: Color;
|
|
5
|
+
clone(generateNewIds?: boolean): Swatch;
|
|
6
|
+
equals(other: Swatch): boolean;
|
|
7
|
+
protected _copy(source: Swatch, destination: Swatch, generateNewIds: boolean): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
import { ModelComponent } from "../Product/ModelComponent";
|
|
15
|
+
import { Color } from "./Color";
|
|
16
|
+
var Swatch = /** @class */ (function (_super) {
|
|
17
|
+
__extends(Swatch, _super);
|
|
18
|
+
function Swatch() {
|
|
19
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
20
|
+
}
|
|
21
|
+
Swatch.prototype.clone = function (generateNewIds) {
|
|
22
|
+
if (generateNewIds === void 0) { generateNewIds = false; }
|
|
23
|
+
var result = new Swatch();
|
|
24
|
+
this._copy(this, result, generateNewIds);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Swatch.prototype.equals = function (other) {
|
|
28
|
+
if (!_super.prototype.equals.call(this, other))
|
|
29
|
+
return false;
|
|
30
|
+
return Color.equals(this.color, other.color);
|
|
31
|
+
};
|
|
32
|
+
Swatch.prototype._copy = function (source, destination, generateNewIds) {
|
|
33
|
+
var _a;
|
|
34
|
+
_super.prototype._copy.call(this, source, destination, generateNewIds);
|
|
35
|
+
destination.color = (_a = source.color) === null || _a === void 0 ? void 0 : _a.clone();
|
|
36
|
+
};
|
|
37
|
+
return Swatch;
|
|
38
|
+
}(ModelComponent));
|
|
39
|
+
export { Swatch };
|
|
40
|
+
//# sourceMappingURL=Swatch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Swatch.js","sourceRoot":"","sources":["../../../src/design-atoms-model/ColorsNew/Swatch.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC;IAA4B,0BAAc;IAA1C;;IAqBA,CAAC;IAlBG,sBAAK,GAAL,UAAM,cAA+B;QAA/B,+BAAA,EAAA,sBAA+B;QACjC,IAAM,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;QAC5B,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;QACzC,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,uBAAM,GAAN,UAAO,KAAa;QAChB,IAAI,CAAC,iBAAM,MAAM,YAAC,KAAK,CAAC;YACpB,OAAO,KAAK,CAAC;QAEjB,OAAO,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACjD,CAAC;IAES,sBAAK,GAAf,UAAgB,MAAc,EAAE,WAAmB,EAAE,cAAuB;;QACxE,iBAAM,KAAK,YAAC,MAAM,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC;QAEjD,WAAW,CAAC,KAAK,SAAG,MAAM,CAAC,KAAK,0CAAE,KAAK,EAAE,CAAC;IAC9C,CAAC;IACL,aAAC;AAAD,CAAC,AArBD,CAA4B,cAAc,GAqBzC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./CmykColor";
|
|
2
|
+
export * from "./Color";
|
|
3
|
+
export * from "./GrayscaleColor";
|
|
4
|
+
export * from "./Ink";
|
|
5
|
+
export * from "./Palette";
|
|
6
|
+
export * from "./ProcessColor";
|
|
7
|
+
export * from "./RgbColor";
|
|
8
|
+
export * from "./SpotColor";
|
|
9
|
+
export * from "./Swatch";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./CmykColor";
|
|
2
|
+
export * from "./Color";
|
|
3
|
+
export * from "./GrayscaleColor";
|
|
4
|
+
export * from "./Ink";
|
|
5
|
+
export * from "./Palette";
|
|
6
|
+
export * from "./ProcessColor";
|
|
7
|
+
export * from "./RgbColor";
|
|
8
|
+
export * from "./SpotColor";
|
|
9
|
+
export * from "./Swatch";
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/design-atoms-model/ColorsNew/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC"}
|
package/Configuration.d.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { JsonProductSerializer } from "./Product/Serializer/JsonProductSerializer";
|
|
2
1
|
export declare class Configuration {
|
|
3
|
-
private static _defaultJsonProductSerializerFactory;
|
|
4
|
-
static jsonProductSerializerFactory: () => JsonProductSerializer;
|
|
5
|
-
static getProductSerializer(): JsonProductSerializer;
|
|
6
2
|
static readonly MAIN_CONTAINER_NAME = "Main";
|
|
7
3
|
static readonly BG_CONTAINER_NAME = "Background";
|
|
8
4
|
static readonly FG_CONTAINER_NAME = "Foreground";
|