git-digger 1.5.34 → 1.5.36
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/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1250 -1250
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/kotlin/bin/digger +0 -0
- package/kotlin/clikt-clikt-mordant.js +89 -89
- package/kotlin/clikt-clikt.js +1608 -1608
- package/kotlin/clikt-clikt.js.map +1 -1
- package/kotlin/colormath-root-colormath.js +467 -467
- package/kotlin/command-line-tools-digger-cli.js +76 -76
- package/kotlin/kotlin-kotlin-stdlib.js +2015 -1729
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1123 -1063
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +326 -315
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/kotlin/mordant-mordant.js +1344 -1344
- package/kotlin/mordant-mordant.js.map +1 -1
- package/kotlin/tools-cli-tools.js +4 -4
- package/kotlin/tools-digger-core.js +152 -152
- package/kotlin/tools-digger-json.js +114 -114
- package/kotlin/tools-digger-json.js.map +1 -1
- package/kotlin/tools-digger-model.js +60 -60
- package/kotlin/tools-git-adapter.js +72 -72
- package/package.json +1 -1
|
@@ -3,46 +3,46 @@
|
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
5
|
var log2 = Math.log2;
|
|
6
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
8
|
-
var toString = kotlin_kotlin.$_$.
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.q8;
|
|
7
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.u7;
|
|
8
|
+
var toString = kotlin_kotlin.$_$.t8;
|
|
9
9
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.d1;
|
|
10
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
11
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
12
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
13
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
10
|
+
var initMetadataForClass = kotlin_kotlin.$_$.r7;
|
|
11
|
+
var getStringHashCode = kotlin_kotlin.$_$.p7;
|
|
12
|
+
var THROW_CCE = kotlin_kotlin.$_$.yb;
|
|
13
|
+
var initMetadataForObject = kotlin_kotlin.$_$.w7;
|
|
14
14
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
15
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
16
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
15
|
+
var charSequenceLength = kotlin_kotlin.$_$.h7;
|
|
16
|
+
var charSequenceGet = kotlin_kotlin.$_$.g7;
|
|
17
17
|
var toString_0 = kotlin_kotlin.$_$.s1;
|
|
18
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
18
|
+
var Unit_instance = kotlin_kotlin.$_$.i3;
|
|
19
19
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.p1;
|
|
20
20
|
var arrayConcat = kotlin_kotlin.$_$.a;
|
|
21
|
-
var listOf = kotlin_kotlin.$_$.
|
|
22
|
-
var withSign = kotlin_kotlin.$_$.
|
|
23
|
-
var trimMargin = kotlin_kotlin.$_$.
|
|
24
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
25
|
-
var equals = kotlin_kotlin.$_$.
|
|
21
|
+
var listOf = kotlin_kotlin.$_$.i5;
|
|
22
|
+
var withSign = kotlin_kotlin.$_$.v8;
|
|
23
|
+
var trimMargin = kotlin_kotlin.$_$.gb;
|
|
24
|
+
var hashCode = kotlin_kotlin.$_$.q7;
|
|
25
|
+
var equals = kotlin_kotlin.$_$.k7;
|
|
26
26
|
var VOID = kotlin_kotlin.$_$.g;
|
|
27
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
28
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
29
|
-
var getNumberHashCode = kotlin_kotlin.$_$.
|
|
30
|
-
var numberToDouble = kotlin_kotlin.$_$.
|
|
31
|
-
var roundToInt = kotlin_kotlin.$_$.
|
|
32
|
-
var coerceIn = kotlin_kotlin.$_$.
|
|
33
|
-
var Char = kotlin_kotlin.$_$.
|
|
34
|
-
var toInt = kotlin_kotlin.$_$.
|
|
35
|
-
var numberRangeToNumber = kotlin_kotlin.$_$.
|
|
36
|
-
var slice = kotlin_kotlin.$_$.
|
|
37
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
38
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
39
|
-
var contentEquals = kotlin_kotlin.$_$.
|
|
40
|
-
var coerceAtLeast_0 = kotlin_kotlin.$_$.
|
|
41
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
27
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.s7;
|
|
28
|
+
var coerceAtLeast = kotlin_kotlin.$_$.w8;
|
|
29
|
+
var getNumberHashCode = kotlin_kotlin.$_$.n7;
|
|
30
|
+
var numberToDouble = kotlin_kotlin.$_$.m8;
|
|
31
|
+
var roundToInt = kotlin_kotlin.$_$.u8;
|
|
32
|
+
var coerceIn = kotlin_kotlin.$_$.a9;
|
|
33
|
+
var Char = kotlin_kotlin.$_$.mb;
|
|
34
|
+
var toInt = kotlin_kotlin.$_$.eb;
|
|
35
|
+
var numberRangeToNumber = kotlin_kotlin.$_$.k8;
|
|
36
|
+
var slice = kotlin_kotlin.$_$.va;
|
|
37
|
+
var startsWith = kotlin_kotlin.$_$.xa;
|
|
38
|
+
var isInterface = kotlin_kotlin.$_$.f8;
|
|
39
|
+
var contentEquals = kotlin_kotlin.$_$.i4;
|
|
40
|
+
var coerceAtLeast_0 = kotlin_kotlin.$_$.y8;
|
|
41
|
+
var objectCreate = kotlin_kotlin.$_$.p8;
|
|
42
42
|
//endregion
|
|
43
43
|
//region block: pre-declaration
|
|
44
44
|
function toXYZ() {
|
|
45
|
-
return this.
|
|
45
|
+
return this.i1x().j1x();
|
|
46
46
|
}
|
|
47
47
|
initMetadataForInterface(Color, 'Color');
|
|
48
48
|
initMetadataForClass(ColorComponentInfo, 'ColorComponentInfo');
|
|
@@ -61,21 +61,21 @@
|
|
|
61
61
|
initMetadataForObject(LinearTransferFunctions, 'LinearTransferFunctions');
|
|
62
62
|
function invoke$default(r, g, b, alpha, $super) {
|
|
63
63
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
64
|
-
return $super === VOID ? this.
|
|
64
|
+
return $super === VOID ? this.t1y(r, g, b, alpha) : $super.t1y.call(this, r, g, b, alpha);
|
|
65
65
|
}
|
|
66
66
|
function invoke(r, g, b, alpha) {
|
|
67
|
-
return this.
|
|
67
|
+
return this.t1y(numberToDouble(r), numberToDouble(g), numberToDouble(b), numberToDouble(alpha));
|
|
68
68
|
}
|
|
69
69
|
function invoke$default_0(r, g, b, alpha, $super) {
|
|
70
70
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
71
|
-
return $super === VOID ? this.
|
|
71
|
+
return $super === VOID ? this.y1z(r, g, b, alpha) : invoke(r, g, b, alpha);
|
|
72
72
|
}
|
|
73
73
|
function from255(r, g, b, alpha) {
|
|
74
|
-
return this.
|
|
74
|
+
return this.t1y(r / 255.0, g / 255.0, b / 255.0, alpha / 255.0);
|
|
75
75
|
}
|
|
76
76
|
function from255$default(r, g, b, alpha, $super) {
|
|
77
77
|
alpha = alpha === VOID ? 255 : alpha;
|
|
78
|
-
return $super === VOID ? this.
|
|
78
|
+
return $super === VOID ? this.z1z(r, g, b, alpha) : from255(r, g, b, alpha);
|
|
79
79
|
}
|
|
80
80
|
function invoke_0(hex) {
|
|
81
81
|
var tmp = parseHex(validateHex(hex), 0);
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
} else {
|
|
91
91
|
tmp_2 = 255;
|
|
92
92
|
}
|
|
93
|
-
return this.
|
|
93
|
+
return this.z1z(tmp, tmp_0, tmp_1, tmp_2);
|
|
94
94
|
}
|
|
95
95
|
initMetadataForInterface(RGBColorSpace, 'RGBColorSpace');
|
|
96
96
|
initMetadataForCompanion(Companion_2, VOID, [RGBColorSpace]);
|
|
@@ -114,27 +114,27 @@
|
|
|
114
114
|
function Color() {
|
|
115
115
|
}
|
|
116
116
|
function ColorComponentInfo(name, isPolar, min, max) {
|
|
117
|
-
this.
|
|
118
|
-
this.
|
|
119
|
-
this.
|
|
120
|
-
this.
|
|
117
|
+
this.p1x_1 = name;
|
|
118
|
+
this.q1x_1 = isPolar;
|
|
119
|
+
this.r1x_1 = min;
|
|
120
|
+
this.s1x_1 = max;
|
|
121
121
|
// Inline function 'kotlin.require' call
|
|
122
|
-
if (!(this.
|
|
122
|
+
if (!(this.r1x_1 <= this.s1x_1)) {
|
|
123
123
|
// Inline function 'com.github.ajalt.colormath.ColorComponentInfo.<anonymous>' call
|
|
124
124
|
var message = 'min must be less than or equal to max';
|
|
125
125
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
function WhitePoint(name, chromaticity) {
|
|
129
|
-
this.
|
|
130
|
-
this.
|
|
129
|
+
this.t1x_1 = name;
|
|
130
|
+
this.u1x_1 = chromaticity;
|
|
131
131
|
}
|
|
132
132
|
protoOf(WhitePoint).toString = function () {
|
|
133
|
-
return this.
|
|
133
|
+
return this.t1x_1;
|
|
134
134
|
};
|
|
135
135
|
protoOf(WhitePoint).hashCode = function () {
|
|
136
|
-
var result = getStringHashCode(this.
|
|
137
|
-
result = imul(result, 31) + this.
|
|
136
|
+
var result = getStringHashCode(this.t1x_1);
|
|
137
|
+
result = imul(result, 31) + this.u1x_1.hashCode() | 0;
|
|
138
138
|
return result;
|
|
139
139
|
};
|
|
140
140
|
protoOf(WhitePoint).equals = function (other) {
|
|
@@ -143,22 +143,22 @@
|
|
|
143
143
|
if (!(other instanceof WhitePoint))
|
|
144
144
|
return false;
|
|
145
145
|
var tmp0_other_with_cast = other instanceof WhitePoint ? other : THROW_CCE();
|
|
146
|
-
if (!(this.
|
|
146
|
+
if (!(this.t1x_1 === tmp0_other_with_cast.t1x_1))
|
|
147
147
|
return false;
|
|
148
|
-
if (!this.
|
|
148
|
+
if (!this.u1x_1.equals(tmp0_other_with_cast.u1x_1))
|
|
149
149
|
return false;
|
|
150
150
|
return true;
|
|
151
151
|
};
|
|
152
152
|
function Illuminant() {
|
|
153
153
|
Illuminant_instance = this;
|
|
154
|
-
this.
|
|
155
|
-
this.
|
|
156
|
-
this.
|
|
157
|
-
this.
|
|
158
|
-
this.
|
|
159
|
-
this.
|
|
160
|
-
this.
|
|
161
|
-
this.
|
|
154
|
+
this.v1x_1 = new WhitePoint('A', xyY_init_$Create$(0.44758, 0.40745));
|
|
155
|
+
this.w1x_1 = new WhitePoint('B', xyY_init_$Create$(0.34842, 0.35161));
|
|
156
|
+
this.x1x_1 = new WhitePoint('C', xyY_init_$Create$(0.31006, 0.31616));
|
|
157
|
+
this.y1x_1 = new WhitePoint('D50', xyY_init_$Create$(0.3457, 0.3585));
|
|
158
|
+
this.z1x_1 = new WhitePoint('D55', xyY_init_$Create$(0.33243, 0.34744));
|
|
159
|
+
this.a1y_1 = new WhitePoint('D65', xyY_init_$Create$(0.3127, 0.329));
|
|
160
|
+
this.b1y_1 = new WhitePoint('D75', xyY_init_$Create$(0.29903, 0.31488));
|
|
161
|
+
this.c1y_1 = new WhitePoint('E', xyY_init_$Create$(1.0 / 3.0, 1.0 / 3.0));
|
|
162
162
|
}
|
|
163
163
|
var Illuminant_instance;
|
|
164
164
|
function Illuminant_getInstance() {
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
this_0.e(tmp$ret$0);
|
|
189
189
|
}
|
|
190
190
|
this_0.e(get_alphaInfo());
|
|
191
|
-
return this_0.
|
|
191
|
+
return this_0.c5();
|
|
192
192
|
}
|
|
193
193
|
function polarComponentInfo(name, l, r) {
|
|
194
194
|
_init_properties_ColorSpaceUtils_kt__cnwylg();
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
this_0.e(tmp$ret$0);
|
|
208
208
|
}
|
|
209
209
|
this_0.e(get_alphaInfo());
|
|
210
|
-
return this_0.
|
|
210
|
+
return this_0.c5();
|
|
211
211
|
}
|
|
212
212
|
function componentInfoList(c) {
|
|
213
213
|
_init_properties_ColorSpaceUtils_kt__cnwylg();
|
|
@@ -289,22 +289,22 @@
|
|
|
289
289
|
function Matrix__equals_impl_g5p8p9($this, other) {
|
|
290
290
|
if (!(other instanceof Matrix))
|
|
291
291
|
return false;
|
|
292
|
-
var tmp0_other_with_cast = other instanceof Matrix ? other.
|
|
292
|
+
var tmp0_other_with_cast = other instanceof Matrix ? other.d1y_1 : THROW_CCE();
|
|
293
293
|
if (!equals($this, tmp0_other_with_cast))
|
|
294
294
|
return false;
|
|
295
295
|
return true;
|
|
296
296
|
}
|
|
297
297
|
function Matrix(rowMajor) {
|
|
298
|
-
this.
|
|
298
|
+
this.d1y_1 = rowMajor;
|
|
299
299
|
}
|
|
300
300
|
protoOf(Matrix).toString = function () {
|
|
301
|
-
return Matrix__toString_impl_l0abk0(this.
|
|
301
|
+
return Matrix__toString_impl_l0abk0(this.d1y_1);
|
|
302
302
|
};
|
|
303
303
|
protoOf(Matrix).hashCode = function () {
|
|
304
|
-
return Matrix__hashCode_impl_s9ntm9(this.
|
|
304
|
+
return Matrix__hashCode_impl_s9ntm9(this.d1y_1);
|
|
305
305
|
};
|
|
306
306
|
protoOf(Matrix).equals = function (other) {
|
|
307
|
-
return Matrix__equals_impl_g5p8p9(this.
|
|
307
|
+
return Matrix__equals_impl_g5p8p9(this.d1y_1, other);
|
|
308
308
|
};
|
|
309
309
|
function inverse(_this__u8e3s4, inPlace) {
|
|
310
310
|
inPlace = inPlace === VOID ? false : inPlace;
|
|
@@ -386,10 +386,10 @@
|
|
|
386
386
|
}
|
|
387
387
|
function Companion() {
|
|
388
388
|
Companion_instance = this;
|
|
389
|
-
this.
|
|
389
|
+
this.e1y_1 = componentInfoList([new ColorComponentInfo('code', false, 30.0, 107.0)]);
|
|
390
390
|
}
|
|
391
|
-
protoOf(Companion).
|
|
392
|
-
return this.
|
|
391
|
+
protoOf(Companion).f1y = function () {
|
|
392
|
+
return this.e1y_1;
|
|
393
393
|
};
|
|
394
394
|
var Companion_instance;
|
|
395
395
|
function Companion_getInstance() {
|
|
@@ -399,38 +399,38 @@
|
|
|
399
399
|
}
|
|
400
400
|
function Ansi16(code) {
|
|
401
401
|
Companion_getInstance();
|
|
402
|
-
this.
|
|
402
|
+
this.g1y_1 = code;
|
|
403
403
|
}
|
|
404
|
-
protoOf(Ansi16).
|
|
404
|
+
protoOf(Ansi16).h1x = function () {
|
|
405
405
|
return Companion_getInstance();
|
|
406
406
|
};
|
|
407
|
-
protoOf(Ansi16).
|
|
408
|
-
switch (this.
|
|
407
|
+
protoOf(Ansi16).i1x = function () {
|
|
408
|
+
switch (this.g1y_1) {
|
|
409
409
|
case 30:
|
|
410
410
|
case 40:
|
|
411
|
-
return Companion_getInstance_2().
|
|
411
|
+
return Companion_getInstance_2().h1y(0.0, 0.0, 0.0);
|
|
412
412
|
case 90:
|
|
413
413
|
case 100:
|
|
414
|
-
return Companion_getInstance_2().
|
|
414
|
+
return Companion_getInstance_2().i1y(128, 128, 128);
|
|
415
415
|
case 37:
|
|
416
416
|
case 47:
|
|
417
|
-
return Companion_getInstance_2().
|
|
417
|
+
return Companion_getInstance_2().i1y(192, 192, 192);
|
|
418
418
|
case 97:
|
|
419
419
|
case 107:
|
|
420
|
-
return Companion_getInstance_2().
|
|
420
|
+
return Companion_getInstance_2().h1y(1.0, 1.0, 1.0);
|
|
421
421
|
}
|
|
422
|
-
var color = this.
|
|
423
|
-
var mul = this.
|
|
422
|
+
var color = this.g1y_1 % 10 | 0;
|
|
423
|
+
var mul = this.g1y_1 > 50 ? 1.0 : 0.5;
|
|
424
424
|
var r = (color % 2 | 0) * mul;
|
|
425
425
|
var g = ((color / 2 | 0) % 2 | 0) * mul;
|
|
426
426
|
var b = ((color / 4 | 0) % 2 | 0) * mul;
|
|
427
|
-
return Companion_getInstance_2().
|
|
427
|
+
return Companion_getInstance_2().h1y(r, g, b);
|
|
428
428
|
};
|
|
429
429
|
protoOf(Ansi16).toString = function () {
|
|
430
|
-
return 'Ansi16(code=' + this.
|
|
430
|
+
return 'Ansi16(code=' + this.g1y_1 + ')';
|
|
431
431
|
};
|
|
432
432
|
protoOf(Ansi16).hashCode = function () {
|
|
433
|
-
return this.
|
|
433
|
+
return this.g1y_1;
|
|
434
434
|
};
|
|
435
435
|
protoOf(Ansi16).equals = function (other) {
|
|
436
436
|
if (this === other)
|
|
@@ -438,16 +438,16 @@
|
|
|
438
438
|
if (!(other instanceof Ansi16))
|
|
439
439
|
return false;
|
|
440
440
|
var tmp0_other_with_cast = other instanceof Ansi16 ? other : THROW_CCE();
|
|
441
|
-
if (!(this.
|
|
441
|
+
if (!(this.g1y_1 === tmp0_other_with_cast.g1y_1))
|
|
442
442
|
return false;
|
|
443
443
|
return true;
|
|
444
444
|
};
|
|
445
445
|
function Companion_0() {
|
|
446
446
|
Companion_instance_0 = this;
|
|
447
|
-
this.
|
|
447
|
+
this.j1y_1 = componentInfoList([new ColorComponentInfo('code', false, 0.0, 255.0)]);
|
|
448
448
|
}
|
|
449
|
-
protoOf(Companion_0).
|
|
450
|
-
return this.
|
|
449
|
+
protoOf(Companion_0).f1y = function () {
|
|
450
|
+
return this.j1y_1;
|
|
451
451
|
};
|
|
452
452
|
var Companion_instance_0;
|
|
453
453
|
function Companion_getInstance_0() {
|
|
@@ -457,19 +457,19 @@
|
|
|
457
457
|
}
|
|
458
458
|
function Ansi256(code) {
|
|
459
459
|
Companion_getInstance_0();
|
|
460
|
-
this.
|
|
460
|
+
this.k1y_1 = code;
|
|
461
461
|
}
|
|
462
|
-
protoOf(Ansi256).
|
|
462
|
+
protoOf(Ansi256).h1x = function () {
|
|
463
463
|
return Companion_getInstance_0();
|
|
464
464
|
};
|
|
465
|
-
protoOf(Ansi256).
|
|
466
|
-
if (this.
|
|
467
|
-
return this.
|
|
468
|
-
if (this.
|
|
469
|
-
var c = imul(this.
|
|
470
|
-
return Companion_getInstance_2().
|
|
465
|
+
protoOf(Ansi256).i1x = function () {
|
|
466
|
+
if (this.k1y_1 < 16)
|
|
467
|
+
return this.l1y().i1x();
|
|
468
|
+
if (this.k1y_1 >= 232) {
|
|
469
|
+
var c = imul(this.k1y_1 - 232 | 0, 10) + 8 | 0;
|
|
470
|
+
return Companion_getInstance_2().i1y(c, c, c);
|
|
471
471
|
}
|
|
472
|
-
var c_0 = this.
|
|
472
|
+
var c_0 = this.k1y_1 - 16 | 0;
|
|
473
473
|
var rem = c_0 % 36 | 0;
|
|
474
474
|
// Inline function 'kotlin.math.floor' call
|
|
475
475
|
var x = c_0 / 36.0;
|
|
@@ -478,16 +478,16 @@
|
|
|
478
478
|
var x_0 = rem / 6.0;
|
|
479
479
|
var g = Math.floor(x_0) / 5.0;
|
|
480
480
|
var b = (rem % 6 | 0) / 5.0;
|
|
481
|
-
return Companion_getInstance_2().
|
|
481
|
+
return Companion_getInstance_2().m1y(r, g, b);
|
|
482
482
|
};
|
|
483
|
-
protoOf(Ansi256).
|
|
484
|
-
return this.
|
|
483
|
+
protoOf(Ansi256).l1y = function () {
|
|
484
|
+
return this.k1y_1 < 8 ? new Ansi16(this.k1y_1 + 30 | 0) : this.k1y_1 < 16 ? new Ansi16((this.k1y_1 - 8 | 0) + 90 | 0) : this.i1x().l1y();
|
|
485
485
|
};
|
|
486
486
|
protoOf(Ansi256).toString = function () {
|
|
487
|
-
return 'Ansi256(code=' + this.
|
|
487
|
+
return 'Ansi256(code=' + this.k1y_1 + ')';
|
|
488
488
|
};
|
|
489
489
|
protoOf(Ansi256).hashCode = function () {
|
|
490
|
-
return this.
|
|
490
|
+
return this.k1y_1;
|
|
491
491
|
};
|
|
492
492
|
protoOf(Ansi256).equals = function (other) {
|
|
493
493
|
if (this === other)
|
|
@@ -495,16 +495,16 @@
|
|
|
495
495
|
if (!(other instanceof Ansi256))
|
|
496
496
|
return false;
|
|
497
497
|
var tmp0_other_with_cast = other instanceof Ansi256 ? other : THROW_CCE();
|
|
498
|
-
if (!(this.
|
|
498
|
+
if (!(this.k1y_1 === tmp0_other_with_cast.k1y_1))
|
|
499
499
|
return false;
|
|
500
500
|
return true;
|
|
501
501
|
};
|
|
502
502
|
function Companion_1() {
|
|
503
503
|
Companion_instance_1 = this;
|
|
504
|
-
this.
|
|
504
|
+
this.n1y_1 = polarComponentInfo('HSV', 0.0, 1.0);
|
|
505
505
|
}
|
|
506
|
-
protoOf(Companion_1).
|
|
507
|
-
return this.
|
|
506
|
+
protoOf(Companion_1).f1y = function () {
|
|
507
|
+
return this.n1y_1;
|
|
508
508
|
};
|
|
509
509
|
var Companion_instance_1;
|
|
510
510
|
function Companion_getInstance_1() {
|
|
@@ -523,30 +523,30 @@
|
|
|
523
523
|
function HSV(h, s, v, alpha) {
|
|
524
524
|
Companion_getInstance_1();
|
|
525
525
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
526
|
-
this.
|
|
527
|
-
this.
|
|
528
|
-
this.
|
|
529
|
-
this.
|
|
526
|
+
this.o1y_1 = h;
|
|
527
|
+
this.p1y_1 = s;
|
|
528
|
+
this.q1y_1 = v;
|
|
529
|
+
this.r1y_1 = alpha;
|
|
530
530
|
}
|
|
531
|
-
protoOf(HSV).
|
|
531
|
+
protoOf(HSV).h1x = function () {
|
|
532
532
|
return Companion_getInstance_1();
|
|
533
533
|
};
|
|
534
|
-
protoOf(HSV).
|
|
535
|
-
if (this.
|
|
536
|
-
return Companion_getInstance_2().
|
|
537
|
-
var v = this.
|
|
538
|
-
var h = normalizeDeg_0(this.
|
|
539
|
-
var s = this.
|
|
540
|
-
return SRGB_getInstance().
|
|
534
|
+
protoOf(HSV).i1x = function () {
|
|
535
|
+
if (this.p1y_1 < 1.0E-7)
|
|
536
|
+
return Companion_getInstance_2().t1y(this.q1y_1, this.q1y_1, this.q1y_1, this.r1y_1);
|
|
537
|
+
var v = this.q1y_1;
|
|
538
|
+
var h = normalizeDeg_0(this.o1y_1) / 60.0;
|
|
539
|
+
var s = this.p1y_1;
|
|
540
|
+
return SRGB_getInstance().t1y(toSRGB$f(h, v, s, 5), toSRGB$f(h, v, s, 3), toSRGB$f(h, v, s, 1), this.r1y_1);
|
|
541
541
|
};
|
|
542
542
|
protoOf(HSV).toString = function () {
|
|
543
|
-
return 'HSV(h=' + this.
|
|
543
|
+
return 'HSV(h=' + this.o1y_1 + ', s=' + this.p1y_1 + ', v=' + this.q1y_1 + ', alpha=' + this.r1y_1 + ')';
|
|
544
544
|
};
|
|
545
545
|
protoOf(HSV).hashCode = function () {
|
|
546
|
-
var result = getNumberHashCode(this.
|
|
547
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
548
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
549
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
546
|
+
var result = getNumberHashCode(this.o1y_1);
|
|
547
|
+
result = imul(result, 31) + getNumberHashCode(this.p1y_1) | 0;
|
|
548
|
+
result = imul(result, 31) + getNumberHashCode(this.q1y_1) | 0;
|
|
549
|
+
result = imul(result, 31) + getNumberHashCode(this.r1y_1) | 0;
|
|
550
550
|
return result;
|
|
551
551
|
};
|
|
552
552
|
protoOf(HSV).equals = function (other) {
|
|
@@ -555,13 +555,13 @@
|
|
|
555
555
|
if (!(other instanceof HSV))
|
|
556
556
|
return false;
|
|
557
557
|
var tmp0_other_with_cast = other instanceof HSV ? other : THROW_CCE();
|
|
558
|
-
if (!equals(this.
|
|
558
|
+
if (!equals(this.o1y_1, tmp0_other_with_cast.o1y_1))
|
|
559
559
|
return false;
|
|
560
|
-
if (!equals(this.
|
|
560
|
+
if (!equals(this.p1y_1, tmp0_other_with_cast.p1y_1))
|
|
561
561
|
return false;
|
|
562
|
-
if (!equals(this.
|
|
562
|
+
if (!equals(this.q1y_1, tmp0_other_with_cast.q1y_1))
|
|
563
563
|
return false;
|
|
564
|
-
if (!equals(this.
|
|
564
|
+
if (!equals(this.r1y_1, tmp0_other_with_cast.r1y_1))
|
|
565
565
|
return false;
|
|
566
566
|
return true;
|
|
567
567
|
};
|
|
@@ -603,45 +603,45 @@
|
|
|
603
603
|
var ICTCP_LMS_TO_XYZ;
|
|
604
604
|
function ICtCp() {
|
|
605
605
|
}
|
|
606
|
-
protoOf(ICtCp).
|
|
607
|
-
var fo = RGBColorSpaces_getInstance().
|
|
606
|
+
protoOf(ICtCp).z1y = function () {
|
|
607
|
+
var fo = RGBColorSpaces_getInstance().h1z_1.m1z();
|
|
608
608
|
var tmp0 = get_ICTCP_ICTCP_to_LMS();
|
|
609
|
-
var tmp1 = this.
|
|
610
|
-
var tmp2 = this.
|
|
609
|
+
var tmp1 = this.v1y_1;
|
|
610
|
+
var tmp2 = this.w1y_1;
|
|
611
611
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
612
|
-
var v2 = this.
|
|
612
|
+
var v2 = this.x1y_1;
|
|
613
613
|
var tmp4 = Matrix__get_impl_xogbpk(tmp0, 0, 0) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 0) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 0) * v2;
|
|
614
614
|
var tmp5 = Matrix__get_impl_xogbpk(tmp0, 0, 1) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 1) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 1) * v2;
|
|
615
615
|
// Inline function 'com.github.ajalt.colormath.model.ICtCp.toBT2020.<anonymous>' call
|
|
616
616
|
var s = Matrix__get_impl_xogbpk(tmp0, 0, 2) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 2) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 2) * v2;
|
|
617
617
|
var tmp0_0 = get_ICTCP_LMS_to_RGB();
|
|
618
|
-
var tmp1_0 = PqNonlinearity_instance.
|
|
619
|
-
var tmp2_0 = PqNonlinearity_instance.
|
|
618
|
+
var tmp1_0 = PqNonlinearity_instance.v1z(tmp4);
|
|
619
|
+
var tmp2_0 = PqNonlinearity_instance.v1z(tmp5);
|
|
620
620
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
621
|
-
var v2_0 = PqNonlinearity_instance.
|
|
621
|
+
var v2_0 = PqNonlinearity_instance.v1z(s);
|
|
622
622
|
var tmp4_0 = Matrix__get_impl_xogbpk(tmp0_0, 0, 0) * tmp1_0 + Matrix__get_impl_xogbpk(tmp0_0, 1, 0) * tmp2_0 + Matrix__get_impl_xogbpk(tmp0_0, 2, 0) * v2_0;
|
|
623
623
|
var tmp5_0 = Matrix__get_impl_xogbpk(tmp0_0, 0, 1) * tmp1_0 + Matrix__get_impl_xogbpk(tmp0_0, 1, 1) * tmp2_0 + Matrix__get_impl_xogbpk(tmp0_0, 2, 1) * v2_0;
|
|
624
624
|
// Inline function 'com.github.ajalt.colormath.model.ICtCp.toBT2020.<anonymous>.<anonymous>' call
|
|
625
625
|
var b = Matrix__get_impl_xogbpk(tmp0_0, 0, 2) * tmp1_0 + Matrix__get_impl_xogbpk(tmp0_0, 1, 2) * tmp2_0 + Matrix__get_impl_xogbpk(tmp0_0, 2, 2) * v2_0;
|
|
626
|
-
return RGBColorSpaces_getInstance().
|
|
626
|
+
return RGBColorSpaces_getInstance().h1z_1.t1y(fo.w1z(tmp4_0), fo.w1z(tmp5_0), fo.w1z(b), this.y1y_1);
|
|
627
627
|
};
|
|
628
628
|
function PqNonlinearity() {
|
|
629
|
-
this.
|
|
630
|
-
this.
|
|
631
|
-
this.
|
|
632
|
-
this.
|
|
633
|
-
this.
|
|
634
|
-
this.
|
|
635
|
-
this.
|
|
636
|
-
this.
|
|
637
|
-
}
|
|
638
|
-
protoOf(PqNonlinearity).
|
|
629
|
+
this.n1z_1 = 0.1593017578125;
|
|
630
|
+
this.o1z_1 = 78.84375;
|
|
631
|
+
this.p1z_1 = 0.8359375;
|
|
632
|
+
this.q1z_1 = 18.8515625;
|
|
633
|
+
this.r1z_1 = 18.6875;
|
|
634
|
+
this.s1z_1 = 10000.0;
|
|
635
|
+
this.t1z_1 = 6.277394636015326;
|
|
636
|
+
this.u1z_1 = 0.012683313515655966;
|
|
637
|
+
}
|
|
638
|
+
protoOf(PqNonlinearity).v1z = function (x) {
|
|
639
639
|
var vp = spow(x, 0.012683313515655966);
|
|
640
640
|
var n = coerceAtLeast(vp - 0.8359375, 0.0);
|
|
641
641
|
var l = spow_0(n / (18.8515625 - 18.6875 * vp), 6.277394636015326);
|
|
642
642
|
return 10000.0 * l;
|
|
643
643
|
};
|
|
644
|
-
protoOf(PqNonlinearity).
|
|
644
|
+
protoOf(PqNonlinearity).w1z = function (x) {
|
|
645
645
|
var yp = spow_0(x / 10000.0, 0.1593017578125);
|
|
646
646
|
return spow_0((0.8359375 + 18.8515625 * yp) / (1.0 + 18.6875 * yp), 78.84375);
|
|
647
647
|
};
|
|
@@ -664,19 +664,19 @@
|
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
666
|
function GammaTransferFunctions(gamma) {
|
|
667
|
-
this.
|
|
667
|
+
this.x1z_1 = gamma;
|
|
668
668
|
}
|
|
669
|
-
protoOf(GammaTransferFunctions).
|
|
670
|
-
return spow(x, this.
|
|
669
|
+
protoOf(GammaTransferFunctions).v1z = function (x) {
|
|
670
|
+
return spow(x, this.x1z_1);
|
|
671
671
|
};
|
|
672
|
-
protoOf(GammaTransferFunctions).
|
|
673
|
-
return spow(x, 1.0 / this.
|
|
672
|
+
protoOf(GammaTransferFunctions).w1z = function (x) {
|
|
673
|
+
return spow(x, 1.0 / this.x1z_1);
|
|
674
674
|
};
|
|
675
675
|
protoOf(GammaTransferFunctions).toString = function () {
|
|
676
|
-
return 'GammaTransferFunctions(gamma=' + this.
|
|
676
|
+
return 'GammaTransferFunctions(gamma=' + this.x1z_1 + ')';
|
|
677
677
|
};
|
|
678
678
|
protoOf(GammaTransferFunctions).hashCode = function () {
|
|
679
|
-
return getNumberHashCode(this.
|
|
679
|
+
return getNumberHashCode(this.x1z_1);
|
|
680
680
|
};
|
|
681
681
|
protoOf(GammaTransferFunctions).equals = function (other) {
|
|
682
682
|
if (this === other)
|
|
@@ -684,16 +684,16 @@
|
|
|
684
684
|
if (!(other instanceof GammaTransferFunctions))
|
|
685
685
|
return false;
|
|
686
686
|
var tmp0_other_with_cast = other instanceof GammaTransferFunctions ? other : THROW_CCE();
|
|
687
|
-
if (!equals(this.
|
|
687
|
+
if (!equals(this.x1z_1, tmp0_other_with_cast.x1z_1))
|
|
688
688
|
return false;
|
|
689
689
|
return true;
|
|
690
690
|
};
|
|
691
691
|
function LinearTransferFunctions() {
|
|
692
692
|
}
|
|
693
|
-
protoOf(LinearTransferFunctions).
|
|
693
|
+
protoOf(LinearTransferFunctions).v1z = function (x) {
|
|
694
694
|
return x;
|
|
695
695
|
};
|
|
696
|
-
protoOf(LinearTransferFunctions).
|
|
696
|
+
protoOf(LinearTransferFunctions).w1z = function (x) {
|
|
697
697
|
return x;
|
|
698
698
|
};
|
|
699
699
|
var LinearTransferFunctions_instance;
|
|
@@ -704,43 +704,43 @@
|
|
|
704
704
|
}
|
|
705
705
|
function Companion_2() {
|
|
706
706
|
Companion_instance_2 = this;
|
|
707
|
-
this.
|
|
707
|
+
this.s1y_1 = RGBColorSpaces_getInstance().a1z_1;
|
|
708
708
|
}
|
|
709
|
-
protoOf(Companion_2).
|
|
710
|
-
return this.
|
|
709
|
+
protoOf(Companion_2).t1y = function (r, g, b, alpha) {
|
|
710
|
+
return this.s1y_1.t1y(r, g, b, alpha);
|
|
711
711
|
};
|
|
712
|
-
protoOf(Companion_2).
|
|
713
|
-
return this.
|
|
712
|
+
protoOf(Companion_2).y1z = function (r, g, b, alpha) {
|
|
713
|
+
return this.s1y_1.y1z(r, g, b, alpha);
|
|
714
714
|
};
|
|
715
|
-
protoOf(Companion_2).
|
|
716
|
-
return this.
|
|
715
|
+
protoOf(Companion_2).a20 = function (hex) {
|
|
716
|
+
return this.s1y_1.a20(hex);
|
|
717
717
|
};
|
|
718
|
-
protoOf(Companion_2).
|
|
719
|
-
return this.
|
|
718
|
+
protoOf(Companion_2).z1z = function (r, g, b, alpha) {
|
|
719
|
+
return this.s1y_1.z1z(r, g, b, alpha);
|
|
720
720
|
};
|
|
721
|
-
protoOf(Companion_2).
|
|
722
|
-
return this.
|
|
721
|
+
protoOf(Companion_2).m1z = function () {
|
|
722
|
+
return this.s1y_1.m1z();
|
|
723
723
|
};
|
|
724
|
-
protoOf(Companion_2).
|
|
725
|
-
return this.
|
|
724
|
+
protoOf(Companion_2).b20 = function () {
|
|
725
|
+
return this.s1y_1.b20();
|
|
726
726
|
};
|
|
727
|
-
protoOf(Companion_2).
|
|
728
|
-
return this.
|
|
727
|
+
protoOf(Companion_2).c20 = function () {
|
|
728
|
+
return this.s1y_1.c20();
|
|
729
729
|
};
|
|
730
|
-
protoOf(Companion_2).
|
|
731
|
-
return this.
|
|
730
|
+
protoOf(Companion_2).d20 = function () {
|
|
731
|
+
return this.s1y_1.d20();
|
|
732
732
|
};
|
|
733
|
-
protoOf(Companion_2).
|
|
734
|
-
return this.
|
|
733
|
+
protoOf(Companion_2).l14 = function () {
|
|
734
|
+
return this.s1y_1.l14();
|
|
735
735
|
};
|
|
736
|
-
protoOf(Companion_2).
|
|
737
|
-
return this.
|
|
736
|
+
protoOf(Companion_2).f1y = function () {
|
|
737
|
+
return this.s1y_1.f1y();
|
|
738
738
|
};
|
|
739
739
|
protoOf(Companion_2).equals = function (other) {
|
|
740
|
-
return equals(RGBColorSpaces_getInstance().
|
|
740
|
+
return equals(RGBColorSpaces_getInstance().a1z_1, other);
|
|
741
741
|
};
|
|
742
742
|
protoOf(Companion_2).hashCode = function () {
|
|
743
|
-
return hashCode(RGBColorSpaces_getInstance().
|
|
743
|
+
return hashCode(RGBColorSpaces_getInstance().a1z_1);
|
|
744
744
|
};
|
|
745
745
|
var Companion_instance_2;
|
|
746
746
|
function Companion_getInstance_2() {
|
|
@@ -749,47 +749,47 @@
|
|
|
749
749
|
return Companion_instance_2;
|
|
750
750
|
}
|
|
751
751
|
function clamp$copy(receiver, p0, p1, p2, p3) {
|
|
752
|
-
return receiver.
|
|
752
|
+
return receiver.e20(p0, p1, p2, p3);
|
|
753
753
|
}
|
|
754
754
|
function RGB(r, g, b, alpha, space) {
|
|
755
755
|
Companion_getInstance_2();
|
|
756
|
-
this.
|
|
757
|
-
this.
|
|
758
|
-
this.
|
|
759
|
-
this.
|
|
760
|
-
this.
|
|
756
|
+
this.k1x_1 = r;
|
|
757
|
+
this.l1x_1 = g;
|
|
758
|
+
this.m1x_1 = b;
|
|
759
|
+
this.n1x_1 = alpha;
|
|
760
|
+
this.o1x_1 = space;
|
|
761
761
|
}
|
|
762
|
-
protoOf(RGB).
|
|
763
|
-
return this.
|
|
762
|
+
protoOf(RGB).h1x = function () {
|
|
763
|
+
return this.o1x_1;
|
|
764
764
|
};
|
|
765
|
-
protoOf(RGB).
|
|
765
|
+
protoOf(RGB).f20 = function () {
|
|
766
766
|
// Inline function 'kotlin.math.roundToInt' call
|
|
767
|
-
var this_0 = this.
|
|
767
|
+
var this_0 = this.k1x_1 * 255;
|
|
768
768
|
return roundToInt(this_0);
|
|
769
769
|
};
|
|
770
|
-
protoOf(RGB).
|
|
770
|
+
protoOf(RGB).g20 = function () {
|
|
771
771
|
// Inline function 'kotlin.math.roundToInt' call
|
|
772
|
-
var this_0 = this.
|
|
772
|
+
var this_0 = this.l1x_1 * 255;
|
|
773
773
|
return roundToInt(this_0);
|
|
774
774
|
};
|
|
775
|
-
protoOf(RGB).
|
|
775
|
+
protoOf(RGB).h20 = function () {
|
|
776
776
|
// Inline function 'kotlin.math.roundToInt' call
|
|
777
|
-
var this_0 = this.
|
|
777
|
+
var this_0 = this.m1x_1 * 255;
|
|
778
778
|
return roundToInt(this_0);
|
|
779
779
|
};
|
|
780
|
-
protoOf(RGB).
|
|
781
|
-
var f = SRGB_getInstance().
|
|
782
|
-
return equals(this.
|
|
780
|
+
protoOf(RGB).i20 = function (space) {
|
|
781
|
+
var f = SRGB_getInstance().m1z();
|
|
782
|
+
return equals(this.o1x_1, space) ? this : equals(this.o1x_1, SRGB_getInstance()) && equals(space, RGBColorSpaces_getInstance().b1z_1) ? space.t1y(f.v1z(this.k1x_1), f.v1z(this.l1x_1), f.v1z(this.m1x_1), this.n1x_1) : equals(this.o1x_1, RGBColorSpaces_getInstance().b1z_1) && equals(space, SRGB_getInstance()) ? space.t1y(f.w1z(this.k1x_1), f.w1z(this.l1x_1), f.w1z(this.m1x_1), this.n1x_1) : this.j1x().o20(space);
|
|
783
783
|
};
|
|
784
|
-
protoOf(RGB).
|
|
784
|
+
protoOf(RGB).p20 = function () {
|
|
785
785
|
var tmp$ret$3;
|
|
786
786
|
$l$block: {
|
|
787
787
|
// Inline function 'com.github.ajalt.colormath.model.RGB.srgbHueMinMaxChroma' call
|
|
788
788
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
789
|
-
var $this$toSRGB = this.
|
|
790
|
-
var r = $this$toSRGB.
|
|
791
|
-
var g = $this$toSRGB.
|
|
792
|
-
var b = $this$toSRGB.
|
|
789
|
+
var $this$toSRGB = this.i20(SRGB_getInstance());
|
|
790
|
+
var r = $this$toSRGB.k1x_1;
|
|
791
|
+
var g = $this$toSRGB.l1x_1;
|
|
792
|
+
var b = $this$toSRGB.m1x_1;
|
|
793
793
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
794
794
|
var min = Math.min(r, g, b);
|
|
795
795
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
@@ -799,81 +799,81 @@
|
|
|
799
799
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toHSV.<anonymous>' call
|
|
800
800
|
var h_0 = normalizeDeg(h);
|
|
801
801
|
var s = max === 0.0 ? 0.0 : chroma / max;
|
|
802
|
-
tmp$ret$3 = new HSV(h_0, s, max, this.
|
|
802
|
+
tmp$ret$3 = new HSV(h_0, s, max, this.n1x_1);
|
|
803
803
|
break $l$block;
|
|
804
804
|
}
|
|
805
805
|
return tmp$ret$3;
|
|
806
806
|
};
|
|
807
|
-
protoOf(RGB).
|
|
808
|
-
var f = this.
|
|
809
|
-
var tmp0 = _Matrix___init__impl__q3kp4w(this.
|
|
810
|
-
var tmp1 = f.
|
|
811
|
-
var tmp2 = f.
|
|
807
|
+
protoOf(RGB).j1x = function () {
|
|
808
|
+
var f = this.o1x_1.m1z();
|
|
809
|
+
var tmp0 = _Matrix___init__impl__q3kp4w(this.o1x_1.b20());
|
|
810
|
+
var tmp1 = f.v1z(this.k1x_1);
|
|
811
|
+
var tmp2 = f.v1z(this.l1x_1);
|
|
812
812
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
813
|
-
var v2 = f.
|
|
813
|
+
var v2 = f.v1z(this.m1x_1);
|
|
814
814
|
var tmp4 = Matrix__get_impl_xogbpk(tmp0, 0, 0) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 0) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 0) * v2;
|
|
815
815
|
var tmp5 = Matrix__get_impl_xogbpk(tmp0, 0, 1) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 1) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 1) * v2;
|
|
816
816
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toXYZ.<anonymous>' call
|
|
817
817
|
var z = Matrix__get_impl_xogbpk(tmp0, 0, 2) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 2) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 2) * v2;
|
|
818
|
-
return XYZColorSpace_0(this.
|
|
818
|
+
return XYZColorSpace_0(this.o1x_1.d20()).t1y(tmp4, tmp5, z, this.n1x_1);
|
|
819
819
|
};
|
|
820
|
-
protoOf(RGB).
|
|
820
|
+
protoOf(RGB).l1y = function () {
|
|
821
821
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
822
|
-
var $this$toSRGB = this.
|
|
822
|
+
var $this$toSRGB = this.i20(SRGB_getInstance());
|
|
823
823
|
// Inline function 'kotlin.math.roundToInt' call
|
|
824
|
-
var this_0 = $this$toSRGB.
|
|
824
|
+
var this_0 = $this$toSRGB.p20().q1y_1 * 100;
|
|
825
825
|
var value = roundToInt(this_0);
|
|
826
826
|
if (value === 30)
|
|
827
827
|
return new Ansi16(30);
|
|
828
828
|
var v = value / 50 | 0;
|
|
829
829
|
// Inline function 'kotlin.math.roundToInt' call
|
|
830
|
-
var this_1 = $this$toSRGB.
|
|
830
|
+
var this_1 = $this$toSRGB.m1x_1;
|
|
831
831
|
var tmp$ret$1 = roundToInt(this_1);
|
|
832
832
|
var tmp = imul(tmp$ret$1, 4);
|
|
833
833
|
// Inline function 'kotlin.math.roundToInt' call
|
|
834
|
-
var this_2 = $this$toSRGB.
|
|
834
|
+
var this_2 = $this$toSRGB.l1x_1;
|
|
835
835
|
var tmp$ret$2 = roundToInt(this_2);
|
|
836
836
|
var tmp_0 = tmp | imul(tmp$ret$2, 2);
|
|
837
837
|
// Inline function 'kotlin.math.roundToInt' call
|
|
838
|
-
var this_3 = $this$toSRGB.
|
|
838
|
+
var this_3 = $this$toSRGB.k1x_1;
|
|
839
839
|
var ansi = 30 + (tmp_0 | roundToInt(this_3)) | 0;
|
|
840
840
|
return new Ansi16(v === 2 ? ansi + 60 | 0 : ansi);
|
|
841
841
|
};
|
|
842
|
-
protoOf(RGB).
|
|
842
|
+
protoOf(RGB).q20 = function () {
|
|
843
843
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
844
|
-
var $this$toSRGB = this.
|
|
845
|
-
var ri = $this$toSRGB.
|
|
846
|
-
var gi = $this$toSRGB.
|
|
847
|
-
var bi = $this$toSRGB.
|
|
844
|
+
var $this$toSRGB = this.i20(SRGB_getInstance());
|
|
845
|
+
var ri = $this$toSRGB.f20();
|
|
846
|
+
var gi = $this$toSRGB.g20();
|
|
847
|
+
var bi = $this$toSRGB.h20();
|
|
848
848
|
var tmp;
|
|
849
849
|
if (ri === gi && gi === bi) {
|
|
850
850
|
tmp = ri < 8 ? 16 : ri > 248 ? 231 : roundToInt((ri - 8 | 0) / 247.0 * 24.0) + 232 | 0;
|
|
851
851
|
} else {
|
|
852
852
|
// Inline function 'kotlin.math.roundToInt' call
|
|
853
|
-
var this_0 = $this$toSRGB.
|
|
853
|
+
var this_0 = $this$toSRGB.k1x_1 * 5;
|
|
854
854
|
var tmp$ret$0 = roundToInt(this_0);
|
|
855
855
|
var tmp_0 = 16 + imul(36, tmp$ret$0) | 0;
|
|
856
856
|
// Inline function 'kotlin.math.roundToInt' call
|
|
857
|
-
var this_1 = $this$toSRGB.
|
|
857
|
+
var this_1 = $this$toSRGB.l1x_1 * 5;
|
|
858
858
|
var tmp$ret$1 = roundToInt(this_1);
|
|
859
859
|
var tmp_1 = tmp_0 + imul(6, tmp$ret$1) | 0;
|
|
860
860
|
// Inline function 'kotlin.math.roundToInt' call
|
|
861
|
-
var this_2 = $this$toSRGB.
|
|
861
|
+
var this_2 = $this$toSRGB.m1x_1 * 5;
|
|
862
862
|
tmp = tmp_1 + roundToInt(this_2) | 0;
|
|
863
863
|
}
|
|
864
864
|
var code = tmp;
|
|
865
865
|
return new Ansi256(code);
|
|
866
866
|
};
|
|
867
|
-
protoOf(RGB).
|
|
868
|
-
return this.
|
|
867
|
+
protoOf(RGB).i1x = function () {
|
|
868
|
+
return this.i20(RGBColorSpaces_getInstance().a1z_1);
|
|
869
869
|
};
|
|
870
|
-
protoOf(RGB).
|
|
871
|
-
var tmp1 = this.
|
|
872
|
-
var tmp2 = this.
|
|
873
|
-
var tmp3 = this.
|
|
870
|
+
protoOf(RGB).r20 = function () {
|
|
871
|
+
var tmp1 = this.k1x_1;
|
|
872
|
+
var tmp2 = this.l1x_1;
|
|
873
|
+
var tmp3 = this.m1x_1;
|
|
874
874
|
// Inline function 'com.github.ajalt.colormath.internal.clamp3' call
|
|
875
|
-
var alpha = this.
|
|
876
|
-
var _destruct__k2r9zo = this.
|
|
875
|
+
var alpha = this.n1x_1;
|
|
876
|
+
var _destruct__k2r9zo = this.h1x().f1y();
|
|
877
877
|
// Inline function 'kotlin.collections.component1' call
|
|
878
878
|
var c1 = _destruct__k2r9zo.q(0);
|
|
879
879
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -884,16 +884,16 @@
|
|
|
884
884
|
var tmp_0;
|
|
885
885
|
var tmp_1;
|
|
886
886
|
var tmp_2;
|
|
887
|
-
var containsLower = c1.
|
|
888
|
-
if (tmp1 <= c1.
|
|
889
|
-
var containsLower_0 = c2.
|
|
890
|
-
tmp_2 = tmp2 <= c2.
|
|
887
|
+
var containsLower = c1.r1x_1;
|
|
888
|
+
if (tmp1 <= c1.s1x_1 ? containsLower <= tmp1 : false) {
|
|
889
|
+
var containsLower_0 = c2.r1x_1;
|
|
890
|
+
tmp_2 = tmp2 <= c2.s1x_1 ? containsLower_0 <= tmp2 : false;
|
|
891
891
|
} else {
|
|
892
892
|
tmp_2 = false;
|
|
893
893
|
}
|
|
894
894
|
if (tmp_2) {
|
|
895
|
-
var containsLower_1 = c3.
|
|
896
|
-
tmp_1 = tmp3 <= c3.
|
|
895
|
+
var containsLower_1 = c3.r1x_1;
|
|
896
|
+
tmp_1 = tmp3 <= c3.s1x_1 ? containsLower_1 <= tmp3 : false;
|
|
897
897
|
} else {
|
|
898
898
|
tmp_1 = false;
|
|
899
899
|
}
|
|
@@ -905,30 +905,30 @@
|
|
|
905
905
|
if (tmp_0) {
|
|
906
906
|
tmp = this;
|
|
907
907
|
} else {
|
|
908
|
-
tmp = clamp$copy(this, coerceIn(tmp1, c1.
|
|
908
|
+
tmp = clamp$copy(this, coerceIn(tmp1, c1.r1x_1, c1.s1x_1), coerceIn(tmp2, c2.r1x_1, c2.s1x_1), coerceIn(tmp3, c3.r1x_1, c3.s1x_1), coerceIn(alpha, 0.0, 1.0));
|
|
909
909
|
}
|
|
910
910
|
return tmp;
|
|
911
911
|
};
|
|
912
|
-
protoOf(RGB).
|
|
912
|
+
protoOf(RGB).s20 = function (r, g, b, alpha, space) {
|
|
913
913
|
return new RGB(r, g, b, alpha, space);
|
|
914
914
|
};
|
|
915
|
-
protoOf(RGB).
|
|
916
|
-
r = r === VOID ? this.
|
|
917
|
-
g = g === VOID ? this.
|
|
918
|
-
b = b === VOID ? this.
|
|
919
|
-
alpha = alpha === VOID ? this.
|
|
920
|
-
space = space === VOID ? this.
|
|
921
|
-
return $super === VOID ? this.
|
|
915
|
+
protoOf(RGB).e20 = function (r, g, b, alpha, space, $super) {
|
|
916
|
+
r = r === VOID ? this.k1x_1 : r;
|
|
917
|
+
g = g === VOID ? this.l1x_1 : g;
|
|
918
|
+
b = b === VOID ? this.m1x_1 : b;
|
|
919
|
+
alpha = alpha === VOID ? this.n1x_1 : alpha;
|
|
920
|
+
space = space === VOID ? this.o1x_1 : space;
|
|
921
|
+
return $super === VOID ? this.s20(r, g, b, alpha, space) : $super.s20.call(this, r, g, b, alpha, space);
|
|
922
922
|
};
|
|
923
923
|
protoOf(RGB).toString = function () {
|
|
924
|
-
return 'RGB(r=' + this.
|
|
924
|
+
return 'RGB(r=' + this.k1x_1 + ', g=' + this.l1x_1 + ', b=' + this.m1x_1 + ', alpha=' + this.n1x_1 + ', space=' + toString(this.o1x_1) + ')';
|
|
925
925
|
};
|
|
926
926
|
protoOf(RGB).hashCode = function () {
|
|
927
|
-
var result = getNumberHashCode(this.
|
|
928
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
929
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
930
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
931
|
-
result = imul(result, 31) + hashCode(this.
|
|
927
|
+
var result = getNumberHashCode(this.k1x_1);
|
|
928
|
+
result = imul(result, 31) + getNumberHashCode(this.l1x_1) | 0;
|
|
929
|
+
result = imul(result, 31) + getNumberHashCode(this.m1x_1) | 0;
|
|
930
|
+
result = imul(result, 31) + getNumberHashCode(this.n1x_1) | 0;
|
|
931
|
+
result = imul(result, 31) + hashCode(this.o1x_1) | 0;
|
|
932
932
|
return result;
|
|
933
933
|
};
|
|
934
934
|
protoOf(RGB).equals = function (other) {
|
|
@@ -937,15 +937,15 @@
|
|
|
937
937
|
if (!(other instanceof RGB))
|
|
938
938
|
return false;
|
|
939
939
|
var tmp0_other_with_cast = other instanceof RGB ? other : THROW_CCE();
|
|
940
|
-
if (!equals(this.
|
|
940
|
+
if (!equals(this.k1x_1, tmp0_other_with_cast.k1x_1))
|
|
941
941
|
return false;
|
|
942
|
-
if (!equals(this.
|
|
942
|
+
if (!equals(this.l1x_1, tmp0_other_with_cast.l1x_1))
|
|
943
943
|
return false;
|
|
944
|
-
if (!equals(this.
|
|
944
|
+
if (!equals(this.m1x_1, tmp0_other_with_cast.m1x_1))
|
|
945
945
|
return false;
|
|
946
|
-
if (!equals(this.
|
|
946
|
+
if (!equals(this.n1x_1, tmp0_other_with_cast.n1x_1))
|
|
947
947
|
return false;
|
|
948
|
-
if (!equals(this.
|
|
948
|
+
if (!equals(this.o1x_1, tmp0_other_with_cast.o1x_1))
|
|
949
949
|
return false;
|
|
950
950
|
return true;
|
|
951
951
|
};
|
|
@@ -1032,17 +1032,17 @@
|
|
|
1032
1032
|
}
|
|
1033
1033
|
var ACES_AP1_B;
|
|
1034
1034
|
function RGBColorSpaces$SRGB$lambda($this$RGBColorSpaceImpl, it) {
|
|
1035
|
-
return it.
|
|
1035
|
+
return it.i1x();
|
|
1036
1036
|
}
|
|
1037
1037
|
function RGBColorSpaces$BT2020$lambda($this$RGBColorSpaceImpl, color) {
|
|
1038
1038
|
var tmp;
|
|
1039
1039
|
if (color instanceof RGB) {
|
|
1040
|
-
tmp = color.
|
|
1040
|
+
tmp = color.i20($this$RGBColorSpaceImpl);
|
|
1041
1041
|
} else {
|
|
1042
1042
|
if (color instanceof ICtCp) {
|
|
1043
|
-
tmp = color.
|
|
1043
|
+
tmp = color.z1y();
|
|
1044
1044
|
} else {
|
|
1045
|
-
tmp = color.
|
|
1045
|
+
tmp = color.j1x().o20($this$RGBColorSpaceImpl);
|
|
1046
1046
|
}
|
|
1047
1047
|
}
|
|
1048
1048
|
return tmp;
|
|
@@ -1050,29 +1050,29 @@
|
|
|
1050
1050
|
function RGBColorSpaces() {
|
|
1051
1051
|
RGBColorSpaces_instance = this;
|
|
1052
1052
|
var tmp = this;
|
|
1053
|
-
var tmp_0 = Illuminant_getInstance().
|
|
1053
|
+
var tmp_0 = Illuminant_getInstance().a1y_1;
|
|
1054
1054
|
var tmp_1 = SRGBTransferFunctions_instance;
|
|
1055
1055
|
var tmp_2 = get_SRGB_R();
|
|
1056
1056
|
var tmp_3 = get_SRGB_G();
|
|
1057
1057
|
var tmp_4 = get_SRGB_B();
|
|
1058
|
-
tmp.
|
|
1059
|
-
this.
|
|
1060
|
-
this.
|
|
1061
|
-
this.
|
|
1062
|
-
this.
|
|
1063
|
-
this.
|
|
1064
|
-
this.
|
|
1058
|
+
tmp.a1z_1 = new RGBColorSpaceImpl('sRGB', tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, RGBColorSpaces$SRGB$lambda);
|
|
1059
|
+
this.b1z_1 = RGBColorSpace_0('Linear sRGB', Illuminant_getInstance().a1y_1, LinearTransferFunctions_instance, get_SRGB_R(), get_SRGB_G(), get_SRGB_B());
|
|
1060
|
+
this.c1z_1 = RGBColorSpace_0('ACES2065-1', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP0_R(), get_ACES_AP0_G(), get_ACES_AP0_B());
|
|
1061
|
+
this.d1z_1 = RGBColorSpace_0('ACEScc', get_ACES_WHITE_POINT(), ACESccTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
1062
|
+
this.e1z_1 = RGBColorSpace_0('ACEScct', get_ACES_WHITE_POINT(), ACEScctTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
1063
|
+
this.f1z_1 = RGBColorSpace_0('ACEScg', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
1064
|
+
this.g1z_1 = RGBColorSpace_0('Adobe RGB', Illuminant_getInstance().a1y_1, new GammaTransferFunctions(2.19921875), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.21, 0.71), xyY_init_$Create$(0.15, 0.06));
|
|
1065
1065
|
var tmp_5 = this;
|
|
1066
|
-
var tmp_6 = Illuminant_getInstance().
|
|
1066
|
+
var tmp_6 = Illuminant_getInstance().a1y_1;
|
|
1067
1067
|
var tmp_7 = BT2020TransferFunctions_getInstance();
|
|
1068
1068
|
var tmp_8 = xyY_init_$Create$(0.708, 0.292);
|
|
1069
1069
|
var tmp_9 = xyY_init_$Create$(0.17, 0.797);
|
|
1070
1070
|
var tmp_10 = xyY_init_$Create$(0.131, 0.046);
|
|
1071
|
-
tmp_5.
|
|
1072
|
-
this.
|
|
1073
|
-
this.
|
|
1074
|
-
this.
|
|
1075
|
-
this.
|
|
1071
|
+
tmp_5.h1z_1 = new RGBColorSpaceImpl('BT.2020', tmp_6, tmp_7, tmp_8, tmp_9, tmp_10, RGBColorSpaces$BT2020$lambda);
|
|
1072
|
+
this.i1z_1 = RGBColorSpace_0('BT.709', Illuminant_getInstance().a1y_1, BT709TransferFunctions_getInstance(), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.3, 0.6), xyY_init_$Create$(0.15, 0.06));
|
|
1073
|
+
this.j1z_1 = RGBColorSpace_0('DCI P3', new WhitePoint('DCI P3', xyY_init_$Create$(0.314, 0.351)), new GammaTransferFunctions(2.6), xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06));
|
|
1074
|
+
this.k1z_1 = RGBColorSpace_0('Display P3', Illuminant_getInstance().a1y_1, SRGBTransferFunctions_instance, xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06));
|
|
1075
|
+
this.l1z_1 = RGBColorSpace_0('ROMM RGB', Illuminant_getInstance().y1x_1, ROMMTransferFunctions_instance, xyY_init_$Create$(0.7347, 0.2653), xyY_init_$Create$(0.1596, 0.8404), xyY_init_$Create$(0.0366, 1.0E-4));
|
|
1076
1076
|
}
|
|
1077
1077
|
var RGBColorSpaces_instance;
|
|
1078
1078
|
function RGBColorSpaces_getInstance() {
|
|
@@ -1082,43 +1082,43 @@
|
|
|
1082
1082
|
}
|
|
1083
1083
|
function SRGB() {
|
|
1084
1084
|
SRGB_instance = this;
|
|
1085
|
-
this.
|
|
1085
|
+
this.u1y_1 = RGBColorSpaces_getInstance().a1z_1;
|
|
1086
1086
|
}
|
|
1087
|
-
protoOf(SRGB).
|
|
1088
|
-
return this.
|
|
1087
|
+
protoOf(SRGB).t1y = function (r, g, b, alpha) {
|
|
1088
|
+
return this.u1y_1.t1y(r, g, b, alpha);
|
|
1089
1089
|
};
|
|
1090
|
-
protoOf(SRGB).
|
|
1091
|
-
return this.
|
|
1090
|
+
protoOf(SRGB).y1z = function (r, g, b, alpha) {
|
|
1091
|
+
return this.u1y_1.y1z(r, g, b, alpha);
|
|
1092
1092
|
};
|
|
1093
|
-
protoOf(SRGB).
|
|
1094
|
-
return this.
|
|
1093
|
+
protoOf(SRGB).a20 = function (hex) {
|
|
1094
|
+
return this.u1y_1.a20(hex);
|
|
1095
1095
|
};
|
|
1096
|
-
protoOf(SRGB).
|
|
1097
|
-
return this.
|
|
1096
|
+
protoOf(SRGB).z1z = function (r, g, b, alpha) {
|
|
1097
|
+
return this.u1y_1.z1z(r, g, b, alpha);
|
|
1098
1098
|
};
|
|
1099
|
-
protoOf(SRGB).
|
|
1100
|
-
return this.
|
|
1099
|
+
protoOf(SRGB).m1z = function () {
|
|
1100
|
+
return this.u1y_1.m1z();
|
|
1101
1101
|
};
|
|
1102
|
-
protoOf(SRGB).
|
|
1103
|
-
return this.
|
|
1102
|
+
protoOf(SRGB).b20 = function () {
|
|
1103
|
+
return this.u1y_1.b20();
|
|
1104
1104
|
};
|
|
1105
|
-
protoOf(SRGB).
|
|
1106
|
-
return this.
|
|
1105
|
+
protoOf(SRGB).c20 = function () {
|
|
1106
|
+
return this.u1y_1.c20();
|
|
1107
1107
|
};
|
|
1108
|
-
protoOf(SRGB).
|
|
1109
|
-
return this.
|
|
1108
|
+
protoOf(SRGB).d20 = function () {
|
|
1109
|
+
return this.u1y_1.d20();
|
|
1110
1110
|
};
|
|
1111
|
-
protoOf(SRGB).
|
|
1112
|
-
return this.
|
|
1111
|
+
protoOf(SRGB).l14 = function () {
|
|
1112
|
+
return this.u1y_1.l14();
|
|
1113
1113
|
};
|
|
1114
|
-
protoOf(SRGB).
|
|
1115
|
-
return this.
|
|
1114
|
+
protoOf(SRGB).f1y = function () {
|
|
1115
|
+
return this.u1y_1.f1y();
|
|
1116
1116
|
};
|
|
1117
1117
|
protoOf(SRGB).equals = function (other) {
|
|
1118
|
-
return equals(RGBColorSpaces_getInstance().
|
|
1118
|
+
return equals(RGBColorSpaces_getInstance().a1z_1, other);
|
|
1119
1119
|
};
|
|
1120
1120
|
protoOf(SRGB).hashCode = function () {
|
|
1121
|
-
return hashCode(RGBColorSpaces_getInstance().
|
|
1121
|
+
return hashCode(RGBColorSpaces_getInstance().a1z_1);
|
|
1122
1122
|
};
|
|
1123
1123
|
protoOf(SRGB).toString = function () {
|
|
1124
1124
|
return 'sRGB';
|
|
@@ -1130,39 +1130,39 @@
|
|
|
1130
1130
|
return SRGB_instance;
|
|
1131
1131
|
}
|
|
1132
1132
|
function RGBColorSpaceImpl(name, whitePoint, transferFunctions, r, g, b, convertImpl) {
|
|
1133
|
-
this.
|
|
1134
|
-
this.
|
|
1135
|
-
this.
|
|
1136
|
-
this.
|
|
1137
|
-
this.
|
|
1138
|
-
this.
|
|
1139
|
-
this.
|
|
1140
|
-
this.
|
|
1141
|
-
this.
|
|
1142
|
-
this.
|
|
1143
|
-
}
|
|
1144
|
-
protoOf(RGBColorSpaceImpl).
|
|
1145
|
-
return this.
|
|
1133
|
+
this.t20_1 = name;
|
|
1134
|
+
this.u20_1 = whitePoint;
|
|
1135
|
+
this.v20_1 = transferFunctions;
|
|
1136
|
+
this.w20_1 = r;
|
|
1137
|
+
this.x20_1 = g;
|
|
1138
|
+
this.y20_1 = b;
|
|
1139
|
+
this.z20_1 = convertImpl;
|
|
1140
|
+
this.a21_1 = zeroOneComponentInfo('RGB');
|
|
1141
|
+
this.b21_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.u20_1, this.w20_1, this.x20_1, this.y20_1));
|
|
1142
|
+
this.c21_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.b21_1)));
|
|
1143
|
+
}
|
|
1144
|
+
protoOf(RGBColorSpaceImpl).l14 = function () {
|
|
1145
|
+
return this.t20_1;
|
|
1146
1146
|
};
|
|
1147
|
-
protoOf(RGBColorSpaceImpl).
|
|
1148
|
-
return this.
|
|
1147
|
+
protoOf(RGBColorSpaceImpl).d20 = function () {
|
|
1148
|
+
return this.u20_1;
|
|
1149
1149
|
};
|
|
1150
|
-
protoOf(RGBColorSpaceImpl).
|
|
1151
|
-
return this.
|
|
1150
|
+
protoOf(RGBColorSpaceImpl).m1z = function () {
|
|
1151
|
+
return this.v20_1;
|
|
1152
1152
|
};
|
|
1153
|
-
protoOf(RGBColorSpaceImpl).
|
|
1154
|
-
return this.
|
|
1153
|
+
protoOf(RGBColorSpaceImpl).f1y = function () {
|
|
1154
|
+
return this.a21_1;
|
|
1155
1155
|
};
|
|
1156
|
-
protoOf(RGBColorSpaceImpl).
|
|
1157
|
-
return this.
|
|
1156
|
+
protoOf(RGBColorSpaceImpl).b20 = function () {
|
|
1157
|
+
return this.b21_1;
|
|
1158
1158
|
};
|
|
1159
|
-
protoOf(RGBColorSpaceImpl).
|
|
1160
|
-
return this.
|
|
1159
|
+
protoOf(RGBColorSpaceImpl).c20 = function () {
|
|
1160
|
+
return this.c21_1;
|
|
1161
1161
|
};
|
|
1162
1162
|
protoOf(RGBColorSpaceImpl).toString = function () {
|
|
1163
|
-
return this.
|
|
1163
|
+
return this.t20_1;
|
|
1164
1164
|
};
|
|
1165
|
-
protoOf(RGBColorSpaceImpl).
|
|
1165
|
+
protoOf(RGBColorSpaceImpl).t1y = function (r, g, b, alpha) {
|
|
1166
1166
|
return new RGB(r, g, b, alpha, this);
|
|
1167
1167
|
};
|
|
1168
1168
|
protoOf(RGBColorSpaceImpl).equals = function (other) {
|
|
@@ -1170,42 +1170,42 @@
|
|
|
1170
1170
|
return true;
|
|
1171
1171
|
if (!(!(other == null) ? isInterface(other, RGBColorSpace) : false))
|
|
1172
1172
|
return false;
|
|
1173
|
-
if (!(this.
|
|
1173
|
+
if (!(this.t20_1 === other.l14()))
|
|
1174
1174
|
return false;
|
|
1175
|
-
if (!this.
|
|
1175
|
+
if (!this.u20_1.equals(other.d20()))
|
|
1176
1176
|
return false;
|
|
1177
|
-
if (!equals(this.
|
|
1177
|
+
if (!equals(this.v20_1, other.m1z()))
|
|
1178
1178
|
return false;
|
|
1179
1179
|
if (other instanceof RGBColorSpaceImpl) {
|
|
1180
|
-
if (!this.
|
|
1180
|
+
if (!this.w20_1.equals(other.w20_1))
|
|
1181
1181
|
return false;
|
|
1182
|
-
if (!this.
|
|
1182
|
+
if (!this.x20_1.equals(other.x20_1))
|
|
1183
1183
|
return false;
|
|
1184
|
-
if (!this.
|
|
1184
|
+
if (!this.y20_1.equals(other.y20_1))
|
|
1185
1185
|
return false;
|
|
1186
1186
|
} else {
|
|
1187
|
-
if (!contentEquals(this.
|
|
1187
|
+
if (!contentEquals(this.b21_1, other.b20()))
|
|
1188
1188
|
return false;
|
|
1189
|
-
if (!contentEquals(this.
|
|
1189
|
+
if (!contentEquals(this.c21_1, other.c20()))
|
|
1190
1190
|
return false;
|
|
1191
1191
|
}
|
|
1192
1192
|
return true;
|
|
1193
1193
|
};
|
|
1194
1194
|
protoOf(RGBColorSpaceImpl).hashCode = function () {
|
|
1195
|
-
var result = getStringHashCode(this.
|
|
1196
|
-
result = imul(31, result) + this.
|
|
1197
|
-
result = imul(31, result) + hashCode(this.
|
|
1198
|
-
result = imul(31, result) + this.
|
|
1199
|
-
result = imul(31, result) + this.
|
|
1200
|
-
result = imul(31, result) + this.
|
|
1195
|
+
var result = getStringHashCode(this.t20_1);
|
|
1196
|
+
result = imul(31, result) + this.u20_1.hashCode() | 0;
|
|
1197
|
+
result = imul(31, result) + hashCode(this.v20_1) | 0;
|
|
1198
|
+
result = imul(31, result) + this.w20_1.hashCode() | 0;
|
|
1199
|
+
result = imul(31, result) + this.x20_1.hashCode() | 0;
|
|
1200
|
+
result = imul(31, result) + this.y20_1.hashCode() | 0;
|
|
1201
1201
|
return result;
|
|
1202
1202
|
};
|
|
1203
1203
|
function SRGBTransferFunctions() {
|
|
1204
1204
|
}
|
|
1205
|
-
protoOf(SRGBTransferFunctions).
|
|
1205
|
+
protoOf(SRGBTransferFunctions).w1z = function (x) {
|
|
1206
1206
|
return x <= 0.0031308 ? x * 12.92 : 1.055 * spow(x, 1 / 2.4) - 0.055;
|
|
1207
1207
|
};
|
|
1208
|
-
protoOf(SRGBTransferFunctions).
|
|
1208
|
+
protoOf(SRGBTransferFunctions).v1z = function (x) {
|
|
1209
1209
|
return x <= 0.04045 ? x / 12.92 : spow_0((x + 0.055) / 1.055, 2.4);
|
|
1210
1210
|
};
|
|
1211
1211
|
var SRGBTransferFunctions_instance;
|
|
@@ -1218,18 +1218,18 @@
|
|
|
1218
1218
|
}
|
|
1219
1219
|
function ACESccTransferFunctions() {
|
|
1220
1220
|
ACESccTransferFunctions_instance = this;
|
|
1221
|
-
this.
|
|
1222
|
-
this.
|
|
1223
|
-
this.
|
|
1221
|
+
this.d21_1 = 3.0517578125E-5;
|
|
1222
|
+
this.e21_1 = 1.52587890625E-5;
|
|
1223
|
+
this.f21_1 = -0.3013698630136986;
|
|
1224
1224
|
var tmp = this;
|
|
1225
1225
|
// Inline function 'kotlin.math.log2' call
|
|
1226
|
-
tmp.
|
|
1226
|
+
tmp.g21_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
1227
1227
|
}
|
|
1228
|
-
protoOf(ACESccTransferFunctions).
|
|
1228
|
+
protoOf(ACESccTransferFunctions).v1z = function (x) {
|
|
1229
1229
|
var tmp;
|
|
1230
1230
|
if (x <= -0.3013698630136986) {
|
|
1231
1231
|
tmp = (spow_0(2.0, x * 17.52 - 9.72) - 1.52587890625E-5) * 2.0;
|
|
1232
|
-
} else if (x < this.
|
|
1232
|
+
} else if (x < this.g21_1) {
|
|
1233
1233
|
// Inline function 'kotlin.math.pow' call
|
|
1234
1234
|
var x_0 = x * 17.52 - 9.72;
|
|
1235
1235
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -1238,7 +1238,7 @@
|
|
|
1238
1238
|
}
|
|
1239
1239
|
return tmp;
|
|
1240
1240
|
};
|
|
1241
|
-
protoOf(ACESccTransferFunctions).
|
|
1241
|
+
protoOf(ACESccTransferFunctions).w1z = function (x) {
|
|
1242
1242
|
var tmp;
|
|
1243
1243
|
if (x < 3.0517578125E-5) {
|
|
1244
1244
|
// Inline function 'kotlin.math.log2' call
|
|
@@ -1258,17 +1258,17 @@
|
|
|
1258
1258
|
}
|
|
1259
1259
|
function ACEScctTransferFunctions() {
|
|
1260
1260
|
ACEScctTransferFunctions_instance = this;
|
|
1261
|
-
this.
|
|
1262
|
-
this.
|
|
1261
|
+
this.h21_1 = 10.5402377416545;
|
|
1262
|
+
this.i21_1 = 0.0729055341958355;
|
|
1263
1263
|
var tmp = this;
|
|
1264
1264
|
// Inline function 'kotlin.math.log2' call
|
|
1265
|
-
tmp.
|
|
1265
|
+
tmp.j21_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
1266
1266
|
}
|
|
1267
|
-
protoOf(ACEScctTransferFunctions).
|
|
1267
|
+
protoOf(ACEScctTransferFunctions).v1z = function (x) {
|
|
1268
1268
|
var tmp;
|
|
1269
1269
|
if (x <= 0.155251141552511) {
|
|
1270
1270
|
tmp = (x - 0.0729055341958355) / 10.5402377416545;
|
|
1271
|
-
} else if (x < this.
|
|
1271
|
+
} else if (x < this.j21_1) {
|
|
1272
1272
|
// Inline function 'kotlin.math.pow' call
|
|
1273
1273
|
var x_0 = x * 17.52 - 9.72;
|
|
1274
1274
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -1277,7 +1277,7 @@
|
|
|
1277
1277
|
}
|
|
1278
1278
|
return tmp;
|
|
1279
1279
|
};
|
|
1280
|
-
protoOf(ACEScctTransferFunctions).
|
|
1280
|
+
protoOf(ACEScctTransferFunctions).w1z = function (x) {
|
|
1281
1281
|
var tmp;
|
|
1282
1282
|
if (x < 0.0078125) {
|
|
1283
1283
|
tmp = 10.5402377416545 * x + 0.0729055341958355;
|
|
@@ -1295,16 +1295,16 @@
|
|
|
1295
1295
|
}
|
|
1296
1296
|
function BT2020TransferFunctions() {
|
|
1297
1297
|
BT2020TransferFunctions_instance = this;
|
|
1298
|
-
this.
|
|
1299
|
-
this.
|
|
1298
|
+
this.k21_1 = 1.0993;
|
|
1299
|
+
this.l21_1 = 0.0181;
|
|
1300
1300
|
var tmp = this;
|
|
1301
1301
|
// Inline function 'kotlin.math.pow' call
|
|
1302
|
-
tmp.
|
|
1302
|
+
tmp.m21_1 = 1.0993 * Math.pow(0.0181, 0.45) - (1.0993 - 1);
|
|
1303
1303
|
}
|
|
1304
|
-
protoOf(BT2020TransferFunctions).
|
|
1305
|
-
return numberToDouble(x < this.
|
|
1304
|
+
protoOf(BT2020TransferFunctions).v1z = function (x) {
|
|
1305
|
+
return numberToDouble(x < this.m21_1 ? x / 4.5 : spow_0((x + (1.0993 - 1)) / 1.0993, 1 / 0.45));
|
|
1306
1306
|
};
|
|
1307
|
-
protoOf(BT2020TransferFunctions).
|
|
1307
|
+
protoOf(BT2020TransferFunctions).w1z = function (x) {
|
|
1308
1308
|
return x < 0.0181 ? 4.5 * x : 1.0993 * spow(x, 0.45) - (1.0993 - 1);
|
|
1309
1309
|
};
|
|
1310
1310
|
var BT2020TransferFunctions_instance;
|
|
@@ -1315,12 +1315,12 @@
|
|
|
1315
1315
|
}
|
|
1316
1316
|
function BT709TransferFunctions() {
|
|
1317
1317
|
BT709TransferFunctions_instance = this;
|
|
1318
|
-
this.
|
|
1318
|
+
this.n21_1 = 1.099 * spow_0(0.018, 0.45) - 0.099;
|
|
1319
1319
|
}
|
|
1320
|
-
protoOf(BT709TransferFunctions).
|
|
1321
|
-
return numberToDouble(x < this.
|
|
1320
|
+
protoOf(BT709TransferFunctions).v1z = function (x) {
|
|
1321
|
+
return numberToDouble(x < this.n21_1 ? x / 4.5 : spow_0((x + 0.099) / 1.099, 1 / 0.45));
|
|
1322
1322
|
};
|
|
1323
|
-
protoOf(BT709TransferFunctions).
|
|
1323
|
+
protoOf(BT709TransferFunctions).w1z = function (x) {
|
|
1324
1324
|
return x < 0.018 ? 4.5 * x : 1.099 * spow(x, 0.45) - 0.099;
|
|
1325
1325
|
};
|
|
1326
1326
|
var BT709TransferFunctions_instance;
|
|
@@ -1330,12 +1330,12 @@
|
|
|
1330
1330
|
return BT709TransferFunctions_instance;
|
|
1331
1331
|
}
|
|
1332
1332
|
function ROMMTransferFunctions() {
|
|
1333
|
-
this.
|
|
1333
|
+
this.o21_1 = 0.001953;
|
|
1334
1334
|
}
|
|
1335
|
-
protoOf(ROMMTransferFunctions).
|
|
1335
|
+
protoOf(ROMMTransferFunctions).v1z = function (x) {
|
|
1336
1336
|
return x < 16 * 0.001953 ? x / 16.0 : spow(x, 1.8);
|
|
1337
1337
|
};
|
|
1338
|
-
protoOf(ROMMTransferFunctions).
|
|
1338
|
+
protoOf(ROMMTransferFunctions).w1z = function (x) {
|
|
1339
1339
|
return x < 0.001953 ? x * 16.0 : spow(x, 1.0 / 1.8);
|
|
1340
1340
|
};
|
|
1341
1341
|
var ROMMTransferFunctions_instance;
|
|
@@ -1344,13 +1344,13 @@
|
|
|
1344
1344
|
}
|
|
1345
1345
|
function rgbToXyzMatrix(whitePoint, r, g, b) {
|
|
1346
1346
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
1347
|
-
var primaries = _Matrix___init__impl__q3kp4w_0(r.
|
|
1348
|
-
var wp = whitePoint.
|
|
1347
|
+
var primaries = _Matrix___init__impl__q3kp4w_0(r.p21_1, g.p21_1, b.p21_1, r.q21_1, g.q21_1, b.q21_1, r.s21(), g.s21(), b.s21());
|
|
1348
|
+
var wp = whitePoint.u1x_1;
|
|
1349
1349
|
var tmp0 = inverse(primaries);
|
|
1350
|
-
var tmp1 = wp.
|
|
1351
|
-
var tmp2 = wp.
|
|
1350
|
+
var tmp1 = wp.t21();
|
|
1351
|
+
var tmp2 = wp.r21_1;
|
|
1352
1352
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1353
|
-
var v2 = wp.
|
|
1353
|
+
var v2 = wp.u21();
|
|
1354
1354
|
var tmp4 = Matrix__get_impl_xogbpk(tmp0, 0, 0) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 0) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 0) * v2;
|
|
1355
1355
|
var tmp5 = Matrix__get_impl_xogbpk(tmp0, 0, 1) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 1) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 1) * v2;
|
|
1356
1356
|
// Inline function 'com.github.ajalt.colormath.model.rgbToXyzMatrix.<anonymous>' call
|
|
@@ -1361,9 +1361,9 @@
|
|
|
1361
1361
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
1362
1362
|
var tmp;
|
|
1363
1363
|
if (color instanceof RGB) {
|
|
1364
|
-
tmp = color.
|
|
1364
|
+
tmp = color.i20($this$RGBColorSpaceImpl);
|
|
1365
1365
|
} else {
|
|
1366
|
-
tmp = color.
|
|
1366
|
+
tmp = color.j1x().o20($this$RGBColorSpaceImpl);
|
|
1367
1367
|
}
|
|
1368
1368
|
return tmp;
|
|
1369
1369
|
}
|
|
@@ -1385,22 +1385,22 @@
|
|
|
1385
1385
|
}
|
|
1386
1386
|
function Companion_3() {
|
|
1387
1387
|
Companion_instance_3 = this;
|
|
1388
|
-
this.
|
|
1388
|
+
this.v21_1 = XYZColorSpaces_getInstance().w21_1;
|
|
1389
1389
|
}
|
|
1390
|
-
protoOf(Companion_3).
|
|
1391
|
-
return this.
|
|
1390
|
+
protoOf(Companion_3).t1y = function (x, y, z, alpha) {
|
|
1391
|
+
return this.v21_1.t1y(x, y, z, alpha);
|
|
1392
1392
|
};
|
|
1393
|
-
protoOf(Companion_3).
|
|
1394
|
-
return this.
|
|
1393
|
+
protoOf(Companion_3).d20 = function () {
|
|
1394
|
+
return this.v21_1.d20();
|
|
1395
1395
|
};
|
|
1396
|
-
protoOf(Companion_3).
|
|
1397
|
-
return this.
|
|
1396
|
+
protoOf(Companion_3).f1y = function () {
|
|
1397
|
+
return this.v21_1.f1y();
|
|
1398
1398
|
};
|
|
1399
1399
|
protoOf(Companion_3).hashCode = function () {
|
|
1400
|
-
return hashCode(XYZColorSpaces_getInstance().
|
|
1400
|
+
return hashCode(XYZColorSpaces_getInstance().w21_1);
|
|
1401
1401
|
};
|
|
1402
1402
|
protoOf(Companion_3).equals = function (other) {
|
|
1403
|
-
return equals(XYZColorSpaces_getInstance().
|
|
1403
|
+
return equals(XYZColorSpaces_getInstance().w21_1, other);
|
|
1404
1404
|
};
|
|
1405
1405
|
var Companion_instance_3;
|
|
1406
1406
|
function Companion_getInstance_3() {
|
|
@@ -1409,71 +1409,71 @@
|
|
|
1409
1409
|
return Companion_instance_3;
|
|
1410
1410
|
}
|
|
1411
1411
|
function adaptToM($this, space, m, mi) {
|
|
1412
|
-
if (space.
|
|
1412
|
+
if (space.d20().equals($this.n20_1.d20()))
|
|
1413
1413
|
return $this;
|
|
1414
|
-
var transform = chromaticAdaptationMatrix(space, $this.
|
|
1415
|
-
var tmp1 = $this.
|
|
1416
|
-
var tmp2 = $this.
|
|
1414
|
+
var transform = chromaticAdaptationMatrix(space, $this.n20_1.d20().u1x_1, m, mi);
|
|
1415
|
+
var tmp1 = $this.j20_1;
|
|
1416
|
+
var tmp2 = $this.k20_1;
|
|
1417
1417
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1418
|
-
var v2 = $this.
|
|
1418
|
+
var v2 = $this.l20_1;
|
|
1419
1419
|
var tmp4 = Matrix__get_impl_xogbpk(transform, 0, 0) * tmp1 + Matrix__get_impl_xogbpk(transform, 1, 0) * tmp2 + Matrix__get_impl_xogbpk(transform, 2, 0) * v2;
|
|
1420
1420
|
var tmp5 = Matrix__get_impl_xogbpk(transform, 0, 1) * tmp1 + Matrix__get_impl_xogbpk(transform, 1, 1) * tmp2 + Matrix__get_impl_xogbpk(transform, 2, 1) * v2;
|
|
1421
1421
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.adaptToM.<anonymous>' call
|
|
1422
1422
|
var zz = Matrix__get_impl_xogbpk(transform, 0, 2) * tmp1 + Matrix__get_impl_xogbpk(transform, 1, 2) * tmp2 + Matrix__get_impl_xogbpk(transform, 2, 2) * v2;
|
|
1423
|
-
return space.
|
|
1423
|
+
return space.t1y(tmp4, tmp5, zz, $this.m20_1);
|
|
1424
1424
|
}
|
|
1425
1425
|
function XYZ(x, y, z, alpha, space) {
|
|
1426
1426
|
Companion_getInstance_3();
|
|
1427
|
-
this.
|
|
1428
|
-
this.
|
|
1429
|
-
this.
|
|
1430
|
-
this.
|
|
1431
|
-
this.
|
|
1427
|
+
this.j20_1 = x;
|
|
1428
|
+
this.k20_1 = y;
|
|
1429
|
+
this.l20_1 = z;
|
|
1430
|
+
this.m20_1 = alpha;
|
|
1431
|
+
this.n20_1 = space;
|
|
1432
1432
|
}
|
|
1433
|
-
protoOf(XYZ).
|
|
1434
|
-
return this.
|
|
1433
|
+
protoOf(XYZ).h1x = function () {
|
|
1434
|
+
return this.n20_1;
|
|
1435
1435
|
};
|
|
1436
|
-
protoOf(XYZ).
|
|
1436
|
+
protoOf(XYZ).y21 = function (space) {
|
|
1437
1437
|
return adaptToM(this, space, get_CAT02_XYZ_TO_LMS(), get_CAT02_LMS_TO_XYZ());
|
|
1438
1438
|
};
|
|
1439
|
-
protoOf(XYZ).
|
|
1440
|
-
var _destruct__k2r9zo = this.
|
|
1441
|
-
var x = _destruct__k2r9zo.
|
|
1442
|
-
var y = _destruct__k2r9zo.
|
|
1443
|
-
var z = _destruct__k2r9zo.
|
|
1444
|
-
var f = space.
|
|
1439
|
+
protoOf(XYZ).o20 = function (space) {
|
|
1440
|
+
var _destruct__k2r9zo = this.y21(XYZColorSpace_0(space.d20()));
|
|
1441
|
+
var x = _destruct__k2r9zo.w9();
|
|
1442
|
+
var y = _destruct__k2r9zo.x9();
|
|
1443
|
+
var z = _destruct__k2r9zo.oh();
|
|
1444
|
+
var f = space.m1z();
|
|
1445
1445
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1446
|
-
var this_0 = _Matrix___init__impl__q3kp4w(space.
|
|
1446
|
+
var this_0 = _Matrix___init__impl__q3kp4w(space.c20());
|
|
1447
1447
|
var tmp4 = Matrix__get_impl_xogbpk(this_0, 0, 0) * x + Matrix__get_impl_xogbpk(this_0, 1, 0) * y + Matrix__get_impl_xogbpk(this_0, 2, 0) * z;
|
|
1448
1448
|
var tmp5 = Matrix__get_impl_xogbpk(this_0, 0, 1) * x + Matrix__get_impl_xogbpk(this_0, 1, 1) * y + Matrix__get_impl_xogbpk(this_0, 2, 1) * z;
|
|
1449
1449
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.toRGB.<anonymous>' call
|
|
1450
1450
|
var b = Matrix__get_impl_xogbpk(this_0, 0, 2) * x + Matrix__get_impl_xogbpk(this_0, 1, 2) * y + Matrix__get_impl_xogbpk(this_0, 2, 2) * z;
|
|
1451
|
-
return space.
|
|
1451
|
+
return space.t1y(f.w1z(tmp4), f.w1z(tmp5), f.w1z(b), this.m20_1);
|
|
1452
1452
|
};
|
|
1453
|
-
protoOf(XYZ).
|
|
1454
|
-
return this.
|
|
1453
|
+
protoOf(XYZ).i1x = function () {
|
|
1454
|
+
return this.o20(RGBColorSpaces_getInstance().a1z_1);
|
|
1455
1455
|
};
|
|
1456
|
-
protoOf(XYZ).
|
|
1456
|
+
protoOf(XYZ).j1x = function () {
|
|
1457
1457
|
return this;
|
|
1458
1458
|
};
|
|
1459
|
-
protoOf(XYZ).
|
|
1460
|
-
return this.
|
|
1459
|
+
protoOf(XYZ).w9 = function () {
|
|
1460
|
+
return this.j20_1;
|
|
1461
1461
|
};
|
|
1462
|
-
protoOf(XYZ).
|
|
1463
|
-
return this.
|
|
1462
|
+
protoOf(XYZ).x9 = function () {
|
|
1463
|
+
return this.k20_1;
|
|
1464
1464
|
};
|
|
1465
|
-
protoOf(XYZ).
|
|
1466
|
-
return this.
|
|
1465
|
+
protoOf(XYZ).oh = function () {
|
|
1466
|
+
return this.l20_1;
|
|
1467
1467
|
};
|
|
1468
1468
|
protoOf(XYZ).toString = function () {
|
|
1469
|
-
return 'XYZ(x=' + this.
|
|
1469
|
+
return 'XYZ(x=' + this.j20_1 + ', y=' + this.k20_1 + ', z=' + this.l20_1 + ', alpha=' + this.m20_1 + ', space=' + toString(this.n20_1) + ')';
|
|
1470
1470
|
};
|
|
1471
1471
|
protoOf(XYZ).hashCode = function () {
|
|
1472
|
-
var result = getNumberHashCode(this.
|
|
1473
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1474
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1475
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1476
|
-
result = imul(result, 31) + hashCode(this.
|
|
1472
|
+
var result = getNumberHashCode(this.j20_1);
|
|
1473
|
+
result = imul(result, 31) + getNumberHashCode(this.k20_1) | 0;
|
|
1474
|
+
result = imul(result, 31) + getNumberHashCode(this.l20_1) | 0;
|
|
1475
|
+
result = imul(result, 31) + getNumberHashCode(this.m20_1) | 0;
|
|
1476
|
+
result = imul(result, 31) + hashCode(this.n20_1) | 0;
|
|
1477
1477
|
return result;
|
|
1478
1478
|
};
|
|
1479
1479
|
protoOf(XYZ).equals = function (other) {
|
|
@@ -1482,27 +1482,27 @@
|
|
|
1482
1482
|
if (!(other instanceof XYZ))
|
|
1483
1483
|
return false;
|
|
1484
1484
|
var tmp0_other_with_cast = other instanceof XYZ ? other : THROW_CCE();
|
|
1485
|
-
if (!equals(this.
|
|
1485
|
+
if (!equals(this.j20_1, tmp0_other_with_cast.j20_1))
|
|
1486
1486
|
return false;
|
|
1487
|
-
if (!equals(this.
|
|
1487
|
+
if (!equals(this.k20_1, tmp0_other_with_cast.k20_1))
|
|
1488
1488
|
return false;
|
|
1489
|
-
if (!equals(this.
|
|
1489
|
+
if (!equals(this.l20_1, tmp0_other_with_cast.l20_1))
|
|
1490
1490
|
return false;
|
|
1491
|
-
if (!equals(this.
|
|
1491
|
+
if (!equals(this.m20_1, tmp0_other_with_cast.m20_1))
|
|
1492
1492
|
return false;
|
|
1493
|
-
if (!equals(this.
|
|
1493
|
+
if (!equals(this.n20_1, tmp0_other_with_cast.n20_1))
|
|
1494
1494
|
return false;
|
|
1495
1495
|
return true;
|
|
1496
1496
|
};
|
|
1497
1497
|
function XYZColorSpace() {
|
|
1498
1498
|
}
|
|
1499
1499
|
function XYZColorSpace_0(whitePoint) {
|
|
1500
|
-
return whitePoint.equals(Illuminant_getInstance().
|
|
1500
|
+
return whitePoint.equals(Illuminant_getInstance().a1y_1) ? XYZColorSpaces_getInstance().w21_1 : whitePoint.equals(Illuminant_getInstance().y1x_1) ? XYZColorSpaces_getInstance().x21_1 : new XYZColorSpaceImpl(whitePoint);
|
|
1501
1501
|
}
|
|
1502
1502
|
function XYZColorSpaces() {
|
|
1503
1503
|
XYZColorSpaces_instance = this;
|
|
1504
|
-
this.
|
|
1505
|
-
this.
|
|
1504
|
+
this.w21_1 = new XYZColorSpaceImpl(Illuminant_getInstance().a1y_1);
|
|
1505
|
+
this.x21_1 = new XYZColorSpaceImpl(Illuminant_getInstance().y1x_1);
|
|
1506
1506
|
}
|
|
1507
1507
|
var XYZColorSpaces_instance;
|
|
1508
1508
|
function XYZColorSpaces_getInstance() {
|
|
@@ -1513,34 +1513,34 @@
|
|
|
1513
1513
|
function chromaticAdaptationMatrix(_this__u8e3s4, srcWp, xyzToLms, lmsToXyz) {
|
|
1514
1514
|
xyzToLms = xyzToLms === VOID ? get_CAT02_XYZ_TO_LMS() : xyzToLms;
|
|
1515
1515
|
lmsToXyz = lmsToXyz === VOID ? get_CAT02_LMS_TO_XYZ() : lmsToXyz;
|
|
1516
|
-
var dstWp = _this__u8e3s4.
|
|
1517
|
-
var src = dot_0(xyzToLms, srcWp.
|
|
1518
|
-
var dst = dot_0(xyzToLms, dstWp.
|
|
1516
|
+
var dstWp = _this__u8e3s4.d20().u1x_1;
|
|
1517
|
+
var src = dot_0(xyzToLms, srcWp.t21(), srcWp.r21_1, srcWp.u21());
|
|
1518
|
+
var dst = dot_0(xyzToLms, dstWp.t21(), dstWp.r21_1, dstWp.u21());
|
|
1519
1519
|
return dot(dotDiagonal(lmsToXyz, _Vector___get_l__impl__envr1l(dst) / _Vector___get_l__impl__envr1l(src), _Vector___get_m__impl__e5qq0m(dst) / _Vector___get_m__impl__e5qq0m(src), _Vector___get_s__impl__pzuljk(dst) / _Vector___get_s__impl__pzuljk(src)), xyzToLms);
|
|
1520
1520
|
}
|
|
1521
1521
|
function XYZColorSpaceImpl(whitePoint) {
|
|
1522
|
-
this.
|
|
1523
|
-
this.
|
|
1522
|
+
this.z21_1 = whitePoint;
|
|
1523
|
+
this.a22_1 = zeroOneComponentInfo('XYZ');
|
|
1524
1524
|
}
|
|
1525
|
-
protoOf(XYZColorSpaceImpl).
|
|
1526
|
-
return this.
|
|
1525
|
+
protoOf(XYZColorSpaceImpl).d20 = function () {
|
|
1526
|
+
return this.z21_1;
|
|
1527
1527
|
};
|
|
1528
|
-
protoOf(XYZColorSpaceImpl).
|
|
1529
|
-
return this.
|
|
1528
|
+
protoOf(XYZColorSpaceImpl).f1y = function () {
|
|
1529
|
+
return this.a22_1;
|
|
1530
1530
|
};
|
|
1531
1531
|
protoOf(XYZColorSpaceImpl).toString = function () {
|
|
1532
|
-
return 'XYZColorSpace(' + this.
|
|
1532
|
+
return 'XYZColorSpace(' + this.z21_1.toString() + ')';
|
|
1533
1533
|
};
|
|
1534
|
-
protoOf(XYZColorSpaceImpl).
|
|
1534
|
+
protoOf(XYZColorSpaceImpl).t1y = function (x, y, z, alpha) {
|
|
1535
1535
|
return new XYZ(x, y, z, alpha, this);
|
|
1536
1536
|
};
|
|
1537
1537
|
protoOf(XYZColorSpaceImpl).hashCode = function () {
|
|
1538
|
-
return this.
|
|
1538
|
+
return this.z21_1.hashCode();
|
|
1539
1539
|
};
|
|
1540
1540
|
protoOf(XYZColorSpaceImpl).equals = function (other) {
|
|
1541
1541
|
var tmp;
|
|
1542
1542
|
if (!(other == null) ? isInterface(other, XYZColorSpace) : false) {
|
|
1543
|
-
tmp = this.
|
|
1543
|
+
tmp = this.z21_1.equals(other.d20());
|
|
1544
1544
|
} else {
|
|
1545
1545
|
tmp = false;
|
|
1546
1546
|
}
|
|
@@ -1556,26 +1556,26 @@
|
|
|
1556
1556
|
}
|
|
1557
1557
|
function xyY(x, y, Y) {
|
|
1558
1558
|
Y = Y === VOID ? 1.0 : Y;
|
|
1559
|
-
this.
|
|
1560
|
-
this.
|
|
1561
|
-
this.
|
|
1559
|
+
this.p21_1 = x;
|
|
1560
|
+
this.q21_1 = y;
|
|
1561
|
+
this.r21_1 = Y;
|
|
1562
1562
|
}
|
|
1563
|
-
protoOf(xyY).
|
|
1564
|
-
return 1 - this.
|
|
1563
|
+
protoOf(xyY).s21 = function () {
|
|
1564
|
+
return 1 - this.p21_1 - this.q21_1;
|
|
1565
1565
|
};
|
|
1566
|
-
protoOf(xyY).
|
|
1567
|
-
return this.
|
|
1566
|
+
protoOf(xyY).t21 = function () {
|
|
1567
|
+
return this.p21_1 * this.r21_1 / this.q21_1;
|
|
1568
1568
|
};
|
|
1569
|
-
protoOf(xyY).
|
|
1570
|
-
return (1 - this.
|
|
1569
|
+
protoOf(xyY).u21 = function () {
|
|
1570
|
+
return (1 - this.p21_1 - this.q21_1) * this.r21_1 / this.q21_1;
|
|
1571
1571
|
};
|
|
1572
1572
|
protoOf(xyY).toString = function () {
|
|
1573
|
-
return 'xyY(x=' + this.
|
|
1573
|
+
return 'xyY(x=' + this.p21_1 + ', y=' + this.q21_1 + ', Y=' + this.r21_1 + ')';
|
|
1574
1574
|
};
|
|
1575
1575
|
protoOf(xyY).hashCode = function () {
|
|
1576
|
-
var result = getNumberHashCode(this.
|
|
1577
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1578
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1576
|
+
var result = getNumberHashCode(this.p21_1);
|
|
1577
|
+
result = imul(result, 31) + getNumberHashCode(this.q21_1) | 0;
|
|
1578
|
+
result = imul(result, 31) + getNumberHashCode(this.r21_1) | 0;
|
|
1579
1579
|
return result;
|
|
1580
1580
|
};
|
|
1581
1581
|
protoOf(xyY).equals = function (other) {
|
|
@@ -1584,30 +1584,30 @@
|
|
|
1584
1584
|
if (!(other instanceof xyY))
|
|
1585
1585
|
return false;
|
|
1586
1586
|
var tmp0_other_with_cast = other instanceof xyY ? other : THROW_CCE();
|
|
1587
|
-
if (!equals(this.
|
|
1587
|
+
if (!equals(this.p21_1, tmp0_other_with_cast.p21_1))
|
|
1588
1588
|
return false;
|
|
1589
|
-
if (!equals(this.
|
|
1589
|
+
if (!equals(this.q21_1, tmp0_other_with_cast.q21_1))
|
|
1590
1590
|
return false;
|
|
1591
|
-
if (!equals(this.
|
|
1591
|
+
if (!equals(this.r21_1, tmp0_other_with_cast.r21_1))
|
|
1592
1592
|
return false;
|
|
1593
1593
|
return true;
|
|
1594
1594
|
};
|
|
1595
1595
|
//region block: post-declaration
|
|
1596
|
-
protoOf(Ansi16).
|
|
1597
|
-
protoOf(Ansi256).
|
|
1598
|
-
protoOf(HSV).
|
|
1599
|
-
protoOf(Companion_2).
|
|
1600
|
-
protoOf(Companion_2).
|
|
1601
|
-
protoOf(Companion_2).
|
|
1602
|
-
protoOf(SRGB).
|
|
1603
|
-
protoOf(SRGB).
|
|
1604
|
-
protoOf(SRGB).
|
|
1605
|
-
protoOf(RGBColorSpaceImpl).
|
|
1606
|
-
protoOf(RGBColorSpaceImpl).
|
|
1607
|
-
protoOf(RGBColorSpaceImpl).
|
|
1608
|
-
protoOf(RGBColorSpaceImpl).
|
|
1609
|
-
protoOf(RGBColorSpaceImpl).
|
|
1610
|
-
protoOf(RGBColorSpaceImpl).
|
|
1596
|
+
protoOf(Ansi16).j1x = toXYZ;
|
|
1597
|
+
protoOf(Ansi256).j1x = toXYZ;
|
|
1598
|
+
protoOf(HSV).j1x = toXYZ;
|
|
1599
|
+
protoOf(Companion_2).h1y = invoke$default;
|
|
1600
|
+
protoOf(Companion_2).m1y = invoke$default_0;
|
|
1601
|
+
protoOf(Companion_2).i1y = from255$default;
|
|
1602
|
+
protoOf(SRGB).h1y = invoke$default;
|
|
1603
|
+
protoOf(SRGB).m1y = invoke$default_0;
|
|
1604
|
+
protoOf(SRGB).i1y = from255$default;
|
|
1605
|
+
protoOf(RGBColorSpaceImpl).h1y = invoke$default;
|
|
1606
|
+
protoOf(RGBColorSpaceImpl).y1z = invoke;
|
|
1607
|
+
protoOf(RGBColorSpaceImpl).m1y = invoke$default_0;
|
|
1608
|
+
protoOf(RGBColorSpaceImpl).a20 = invoke_0;
|
|
1609
|
+
protoOf(RGBColorSpaceImpl).z1z = from255;
|
|
1610
|
+
protoOf(RGBColorSpaceImpl).i1y = from255$default;
|
|
1611
1611
|
//endregion
|
|
1612
1612
|
//region block: init
|
|
1613
1613
|
PqNonlinearity_instance = new PqNonlinearity();
|