git-digger 1.4.28 → 1.4.30
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 +1401 -1399
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/kotlin/clikt-clikt-mordant.js +306 -0
- package/kotlin/clikt-clikt-mordant.js.map +1 -0
- package/kotlin/clikt-clikt.js +3649 -3303
- package/kotlin/clikt-clikt.js.map +1 -1
- package/kotlin/colormath-root-colormath.js +475 -488
- package/kotlin/colormath-root-colormath.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +7494 -7416
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +992 -992
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +325 -325
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/kotlin/mordant-mordant-omnibus.js +8 -0
- package/kotlin/mordant-mordant-omnibus.js.map +1 -0
- package/kotlin/mordant-mordant.js +2299 -3982
- package/kotlin/mordant-mordant.js.map +1 -1
- package/kotlin/tools-cli-tools.js +3 -3
- package/kotlin/tools-cli-tools.js.map +1 -1
- package/kotlin/tools-digger-cli.js +87 -84
- package/kotlin/tools-digger-cli.js.map +1 -1
- package/kotlin/tools-digger-core.js +242 -242
- package/kotlin/tools-digger-core.js.map +1 -1
- package/kotlin/tools-digger-json.js +117 -117
- package/kotlin/tools-digger-json.js.map +1 -1
- package/kotlin/tools-digger-model.js +59 -59
- package/kotlin/tools-git-adapter.js +95 -95
- package/kotlin/tools-git-adapter.js.map +1 -1
- package/package.json +1 -1
- package/kotlin/markdown.js +0 -6759
- package/kotlin/markdown.js.map +0 -1
|
@@ -3,46 +3,45 @@
|
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
5
|
var log2 = Math.log2;
|
|
6
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
-
var interfaceMeta = kotlin_kotlin.$_$.
|
|
8
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
9
|
-
var toString = kotlin_kotlin.$_$.
|
|
10
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
11
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
12
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
13
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
14
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
15
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
16
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
17
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
18
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
19
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
20
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.j8;
|
|
7
|
+
var interfaceMeta = kotlin_kotlin.$_$.o7;
|
|
8
|
+
var setMetadataFor = kotlin_kotlin.$_$.k8;
|
|
9
|
+
var toString = kotlin_kotlin.$_$.m8;
|
|
10
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.c1;
|
|
11
|
+
var classMeta = kotlin_kotlin.$_$.f7;
|
|
12
|
+
var getStringHashCode = kotlin_kotlin.$_$.m7;
|
|
13
|
+
var THROW_CCE = kotlin_kotlin.$_$.tb;
|
|
14
|
+
var objectMeta = kotlin_kotlin.$_$.i8;
|
|
15
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
16
|
+
var charSequenceLength = kotlin_kotlin.$_$.d7;
|
|
17
|
+
var charSequenceGet = kotlin_kotlin.$_$.c7;
|
|
18
|
+
var toString_0 = kotlin_kotlin.$_$.q1;
|
|
19
|
+
var Unit_instance = kotlin_kotlin.$_$.f3;
|
|
20
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.n1;
|
|
21
21
|
var arrayConcat = kotlin_kotlin.$_$.a;
|
|
22
|
-
var listOf = kotlin_kotlin.$_$.
|
|
23
|
-
var withSign = kotlin_kotlin.$_$.
|
|
22
|
+
var listOf = kotlin_kotlin.$_$.f5;
|
|
23
|
+
var withSign = kotlin_kotlin.$_$.o8;
|
|
24
24
|
var VOID = kotlin_kotlin.$_$.g;
|
|
25
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
26
|
-
var getNumberHashCode = kotlin_kotlin.$_$.
|
|
27
|
-
var equals = kotlin_kotlin.$_$.
|
|
28
|
-
var numberToDouble = kotlin_kotlin.$_$.
|
|
29
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
30
|
-
var roundToInt = kotlin_kotlin.$_$.
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
var
|
|
41
|
-
var objectCreate = kotlin_kotlin.$_$.w8;
|
|
25
|
+
var coerceAtLeast = kotlin_kotlin.$_$.p8;
|
|
26
|
+
var getNumberHashCode = kotlin_kotlin.$_$.k7;
|
|
27
|
+
var equals = kotlin_kotlin.$_$.h7;
|
|
28
|
+
var numberToDouble = kotlin_kotlin.$_$.e8;
|
|
29
|
+
var hashCode = kotlin_kotlin.$_$.n7;
|
|
30
|
+
var roundToInt = kotlin_kotlin.$_$.n8;
|
|
31
|
+
var coerceIn = kotlin_kotlin.$_$.t8;
|
|
32
|
+
var Char = kotlin_kotlin.$_$.hb;
|
|
33
|
+
var toInt = kotlin_kotlin.$_$.ab;
|
|
34
|
+
var numberRangeToNumber = kotlin_kotlin.$_$.c8;
|
|
35
|
+
var slice = kotlin_kotlin.$_$.qa;
|
|
36
|
+
var startsWith = kotlin_kotlin.$_$.sa;
|
|
37
|
+
var isInterface = kotlin_kotlin.$_$.x7;
|
|
38
|
+
var contentEquals = kotlin_kotlin.$_$.f4;
|
|
39
|
+
var coerceAtLeast_0 = kotlin_kotlin.$_$.r8;
|
|
40
|
+
var objectCreate = kotlin_kotlin.$_$.h8;
|
|
42
41
|
//endregion
|
|
43
42
|
//region block: pre-declaration
|
|
44
43
|
function toXYZ() {
|
|
45
|
-
return this.
|
|
44
|
+
return this.y1v().z1v();
|
|
46
45
|
}
|
|
47
46
|
setMetadataFor(Color, 'Color', interfaceMeta);
|
|
48
47
|
setMetadataFor(ColorComponentInfo, 'ColorComponentInfo', classMeta);
|
|
@@ -60,21 +59,21 @@
|
|
|
60
59
|
setMetadataFor(LinearTransferFunctions, 'LinearTransferFunctions', objectMeta);
|
|
61
60
|
function invoke$default(r, g, b, alpha, $super) {
|
|
62
61
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
63
|
-
return $super === VOID ? this.
|
|
62
|
+
return $super === VOID ? this.i1x(r, g, b, alpha) : $super.i1x.call(this, r, g, b, alpha);
|
|
64
63
|
}
|
|
65
64
|
function invoke(r, g, b, alpha) {
|
|
66
|
-
return this.
|
|
65
|
+
return this.i1x(numberToDouble(r), numberToDouble(g), numberToDouble(b), numberToDouble(alpha));
|
|
67
66
|
}
|
|
68
67
|
function invoke$default_0(r, g, b, alpha, $super) {
|
|
69
68
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
70
|
-
return $super === VOID ? this.
|
|
69
|
+
return $super === VOID ? this.n1y(r, g, b, alpha) : invoke(r, g, b, alpha);
|
|
71
70
|
}
|
|
72
71
|
function from255(r, g, b, alpha) {
|
|
73
|
-
return this.
|
|
72
|
+
return this.i1x(r / 255.0, g / 255.0, b / 255.0, alpha / 255.0);
|
|
74
73
|
}
|
|
75
74
|
function from255$default(r, g, b, alpha, $super) {
|
|
76
75
|
alpha = alpha === VOID ? 255 : alpha;
|
|
77
|
-
return $super === VOID ? this.
|
|
76
|
+
return $super === VOID ? this.o1y(r, g, b, alpha) : from255(r, g, b, alpha);
|
|
78
77
|
}
|
|
79
78
|
function invoke_0(hex) {
|
|
80
79
|
var tmp = parseHex(validateHex(hex), 0);
|
|
@@ -90,7 +89,7 @@
|
|
|
90
89
|
} else {
|
|
91
90
|
tmp_2 = 255;
|
|
92
91
|
}
|
|
93
|
-
return this.
|
|
92
|
+
return this.o1y(tmp, tmp_0, tmp_1, tmp_2);
|
|
94
93
|
}
|
|
95
94
|
setMetadataFor(RGBColorSpace, 'RGBColorSpace', interfaceMeta);
|
|
96
95
|
setMetadataFor(Companion_2, 'Companion', objectMeta, VOID, [RGBColorSpace]);
|
|
@@ -114,28 +113,28 @@
|
|
|
114
113
|
function Color() {
|
|
115
114
|
}
|
|
116
115
|
function ColorComponentInfo(name, isPolar, min, max) {
|
|
117
|
-
this.
|
|
118
|
-
this.
|
|
119
|
-
this.
|
|
120
|
-
this.
|
|
116
|
+
this.f1w_1 = name;
|
|
117
|
+
this.g1w_1 = isPolar;
|
|
118
|
+
this.h1w_1 = min;
|
|
119
|
+
this.i1w_1 = max;
|
|
121
120
|
// Inline function 'kotlin.require' call
|
|
122
121
|
// Inline function 'kotlin.contracts.contract' call
|
|
123
|
-
if (!(this.
|
|
122
|
+
if (!(this.h1w_1 <= this.i1w_1)) {
|
|
124
123
|
// Inline function 'com.github.ajalt.colormath.ColorComponentInfo.<anonymous>' call
|
|
125
124
|
var message = 'min must be less than or equal to max';
|
|
126
125
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
127
126
|
}
|
|
128
127
|
}
|
|
129
128
|
function WhitePoint(name, chromaticity) {
|
|
130
|
-
this.
|
|
131
|
-
this.
|
|
129
|
+
this.j1w_1 = name;
|
|
130
|
+
this.k1w_1 = chromaticity;
|
|
132
131
|
}
|
|
133
132
|
protoOf(WhitePoint).toString = function () {
|
|
134
|
-
return this.
|
|
133
|
+
return this.j1w_1;
|
|
135
134
|
};
|
|
136
135
|
protoOf(WhitePoint).hashCode = function () {
|
|
137
|
-
var result = getStringHashCode(this.
|
|
138
|
-
result = imul(result, 31) + this.
|
|
136
|
+
var result = getStringHashCode(this.j1w_1);
|
|
137
|
+
result = imul(result, 31) + this.k1w_1.hashCode() | 0;
|
|
139
138
|
return result;
|
|
140
139
|
};
|
|
141
140
|
protoOf(WhitePoint).equals = function (other) {
|
|
@@ -144,22 +143,22 @@
|
|
|
144
143
|
if (!(other instanceof WhitePoint))
|
|
145
144
|
return false;
|
|
146
145
|
var tmp0_other_with_cast = other instanceof WhitePoint ? other : THROW_CCE();
|
|
147
|
-
if (!(this.
|
|
146
|
+
if (!(this.j1w_1 === tmp0_other_with_cast.j1w_1))
|
|
148
147
|
return false;
|
|
149
|
-
if (!this.
|
|
148
|
+
if (!this.k1w_1.equals(tmp0_other_with_cast.k1w_1))
|
|
150
149
|
return false;
|
|
151
150
|
return true;
|
|
152
151
|
};
|
|
153
152
|
function Illuminant() {
|
|
154
153
|
Illuminant_instance = this;
|
|
155
|
-
this.
|
|
156
|
-
this.
|
|
157
|
-
this.
|
|
158
|
-
this.
|
|
159
|
-
this.
|
|
160
|
-
this.
|
|
161
|
-
this.
|
|
162
|
-
this.
|
|
154
|
+
this.l1w_1 = new WhitePoint('A', xyY_init_$Create$(0.44758, 0.40745));
|
|
155
|
+
this.m1w_1 = new WhitePoint('B', xyY_init_$Create$(0.34842, 0.35161));
|
|
156
|
+
this.n1w_1 = new WhitePoint('C', xyY_init_$Create$(0.31006, 0.31616));
|
|
157
|
+
this.o1w_1 = new WhitePoint('D50', xyY_init_$Create$(0.3457, 0.3585));
|
|
158
|
+
this.p1w_1 = new WhitePoint('D55', xyY_init_$Create$(0.33243, 0.34744));
|
|
159
|
+
this.q1w_1 = new WhitePoint('D65', xyY_init_$Create$(0.3127, 0.329));
|
|
160
|
+
this.r1w_1 = new WhitePoint('D75', xyY_init_$Create$(0.29903, 0.31488));
|
|
161
|
+
this.s1w_1 = new WhitePoint('E', xyY_init_$Create$(0.3333333333333333, 0.3333333333333333));
|
|
163
162
|
}
|
|
164
163
|
var Illuminant_instance;
|
|
165
164
|
function Illuminant_getInstance() {
|
|
@@ -188,10 +187,10 @@
|
|
|
188
187
|
inductionVariable = inductionVariable + 1 | 0;
|
|
189
188
|
// Inline function 'com.github.ajalt.colormath.internal.zeroOneComponentInfo.<anonymous>.<anonymous>' call
|
|
190
189
|
var tmp$ret$0 = new ColorComponentInfo(toString_0(item), false, 0.0, 1.0);
|
|
191
|
-
this_0.
|
|
190
|
+
this_0.e(tmp$ret$0);
|
|
192
191
|
}
|
|
193
|
-
this_0.
|
|
194
|
-
return this_0.
|
|
192
|
+
this_0.e(get_alphaInfo());
|
|
193
|
+
return this_0.d5();
|
|
195
194
|
}
|
|
196
195
|
function polarComponentInfo(name, l, r) {
|
|
197
196
|
_init_properties_ColorSpaceUtils_kt__cnwylg();
|
|
@@ -209,10 +208,10 @@
|
|
|
209
208
|
inductionVariable = inductionVariable + 1 | 0;
|
|
210
209
|
// Inline function 'com.github.ajalt.colormath.internal.polarComponentInfo.<anonymous>.<anonymous>' call
|
|
211
210
|
var tmp$ret$0 = new ColorComponentInfo(toString_0(item), item === _Char___init__impl__6a9atx(72), item === _Char___init__impl__6a9atx(72) ? 0.0 : l, item === _Char___init__impl__6a9atx(72) ? 360.0 : r);
|
|
212
|
-
this_0.
|
|
211
|
+
this_0.e(tmp$ret$0);
|
|
213
212
|
}
|
|
214
|
-
this_0.
|
|
215
|
-
return this_0.
|
|
213
|
+
this_0.e(get_alphaInfo());
|
|
214
|
+
return this_0.d5();
|
|
216
215
|
}
|
|
217
216
|
function componentInfoList(c) {
|
|
218
217
|
_init_properties_ColorSpaceUtils_kt__cnwylg();
|
|
@@ -361,10 +360,10 @@
|
|
|
361
360
|
}
|
|
362
361
|
function Companion() {
|
|
363
362
|
Companion_instance = this;
|
|
364
|
-
this.
|
|
363
|
+
this.t1w_1 = componentInfoList([new ColorComponentInfo('code', false, 30.0, 107.0)]);
|
|
365
364
|
}
|
|
366
|
-
protoOf(Companion).
|
|
367
|
-
return this.
|
|
365
|
+
protoOf(Companion).u1w = function () {
|
|
366
|
+
return this.t1w_1;
|
|
368
367
|
};
|
|
369
368
|
var Companion_instance;
|
|
370
369
|
function Companion_getInstance() {
|
|
@@ -374,38 +373,38 @@
|
|
|
374
373
|
}
|
|
375
374
|
function Ansi16(code) {
|
|
376
375
|
Companion_getInstance();
|
|
377
|
-
this.
|
|
376
|
+
this.v1w_1 = code;
|
|
378
377
|
}
|
|
379
|
-
protoOf(Ansi16).
|
|
378
|
+
protoOf(Ansi16).x1v = function () {
|
|
380
379
|
return Companion_getInstance();
|
|
381
380
|
};
|
|
382
|
-
protoOf(Ansi16).
|
|
383
|
-
switch (this.
|
|
381
|
+
protoOf(Ansi16).y1v = function () {
|
|
382
|
+
switch (this.v1w_1) {
|
|
384
383
|
case 30:
|
|
385
384
|
case 40:
|
|
386
|
-
return Companion_getInstance_2().
|
|
385
|
+
return Companion_getInstance_2().w1w(0.0, 0.0, 0.0);
|
|
387
386
|
case 90:
|
|
388
387
|
case 100:
|
|
389
|
-
return Companion_getInstance_2().
|
|
388
|
+
return Companion_getInstance_2().x1w(128, 128, 128);
|
|
390
389
|
case 37:
|
|
391
390
|
case 47:
|
|
392
|
-
return Companion_getInstance_2().
|
|
391
|
+
return Companion_getInstance_2().x1w(192, 192, 192);
|
|
393
392
|
case 97:
|
|
394
393
|
case 107:
|
|
395
|
-
return Companion_getInstance_2().
|
|
394
|
+
return Companion_getInstance_2().w1w(1.0, 1.0, 1.0);
|
|
396
395
|
}
|
|
397
|
-
var color = this.
|
|
398
|
-
var mul = this.
|
|
396
|
+
var color = this.v1w_1 % 10 | 0;
|
|
397
|
+
var mul = this.v1w_1 > 50 ? 1.0 : 0.5;
|
|
399
398
|
var r = (color % 2 | 0) * mul;
|
|
400
399
|
var g = ((color / 2 | 0) % 2 | 0) * mul;
|
|
401
400
|
var b = ((color / 4 | 0) % 2 | 0) * mul;
|
|
402
|
-
return Companion_getInstance_2().
|
|
401
|
+
return Companion_getInstance_2().w1w(r, g, b);
|
|
403
402
|
};
|
|
404
403
|
protoOf(Ansi16).toString = function () {
|
|
405
|
-
return 'Ansi16(code=' + this.
|
|
404
|
+
return 'Ansi16(code=' + this.v1w_1 + ')';
|
|
406
405
|
};
|
|
407
406
|
protoOf(Ansi16).hashCode = function () {
|
|
408
|
-
return this.
|
|
407
|
+
return this.v1w_1;
|
|
409
408
|
};
|
|
410
409
|
protoOf(Ansi16).equals = function (other) {
|
|
411
410
|
if (this === other)
|
|
@@ -413,16 +412,16 @@
|
|
|
413
412
|
if (!(other instanceof Ansi16))
|
|
414
413
|
return false;
|
|
415
414
|
var tmp0_other_with_cast = other instanceof Ansi16 ? other : THROW_CCE();
|
|
416
|
-
if (!(this.
|
|
415
|
+
if (!(this.v1w_1 === tmp0_other_with_cast.v1w_1))
|
|
417
416
|
return false;
|
|
418
417
|
return true;
|
|
419
418
|
};
|
|
420
419
|
function Companion_0() {
|
|
421
420
|
Companion_instance_0 = this;
|
|
422
|
-
this.
|
|
421
|
+
this.y1w_1 = componentInfoList([new ColorComponentInfo('code', false, 0.0, 255.0)]);
|
|
423
422
|
}
|
|
424
|
-
protoOf(Companion_0).
|
|
425
|
-
return this.
|
|
423
|
+
protoOf(Companion_0).u1w = function () {
|
|
424
|
+
return this.y1w_1;
|
|
426
425
|
};
|
|
427
426
|
var Companion_instance_0;
|
|
428
427
|
function Companion_getInstance_0() {
|
|
@@ -432,19 +431,19 @@
|
|
|
432
431
|
}
|
|
433
432
|
function Ansi256(code) {
|
|
434
433
|
Companion_getInstance_0();
|
|
435
|
-
this.
|
|
434
|
+
this.z1w_1 = code;
|
|
436
435
|
}
|
|
437
|
-
protoOf(Ansi256).
|
|
436
|
+
protoOf(Ansi256).x1v = function () {
|
|
438
437
|
return Companion_getInstance_0();
|
|
439
438
|
};
|
|
440
|
-
protoOf(Ansi256).
|
|
441
|
-
if (this.
|
|
442
|
-
return this.
|
|
443
|
-
if (this.
|
|
444
|
-
var c = imul(this.
|
|
445
|
-
return Companion_getInstance_2().
|
|
439
|
+
protoOf(Ansi256).y1v = function () {
|
|
440
|
+
if (this.z1w_1 < 16)
|
|
441
|
+
return this.a1x().y1v();
|
|
442
|
+
if (this.z1w_1 >= 232) {
|
|
443
|
+
var c = imul(this.z1w_1 - 232 | 0, 10) + 8 | 0;
|
|
444
|
+
return Companion_getInstance_2().x1w(c, c, c);
|
|
446
445
|
}
|
|
447
|
-
var c_0 = this.
|
|
446
|
+
var c_0 = this.z1w_1 - 16 | 0;
|
|
448
447
|
var rem = c_0 % 36 | 0;
|
|
449
448
|
// Inline function 'kotlin.math.floor' call
|
|
450
449
|
var x = c_0 / 36.0;
|
|
@@ -453,16 +452,16 @@
|
|
|
453
452
|
var x_0 = rem / 6.0;
|
|
454
453
|
var g = Math.floor(x_0) / 5.0;
|
|
455
454
|
var b = (rem % 6 | 0) / 5.0;
|
|
456
|
-
return Companion_getInstance_2().
|
|
455
|
+
return Companion_getInstance_2().b1x(r, g, b);
|
|
457
456
|
};
|
|
458
|
-
protoOf(Ansi256).
|
|
459
|
-
return this.
|
|
457
|
+
protoOf(Ansi256).a1x = function () {
|
|
458
|
+
return this.z1w_1 < 8 ? new Ansi16(this.z1w_1 + 30 | 0) : this.z1w_1 < 16 ? new Ansi16((this.z1w_1 - 8 | 0) + 90 | 0) : this.y1v().a1x();
|
|
460
459
|
};
|
|
461
460
|
protoOf(Ansi256).toString = function () {
|
|
462
|
-
return 'Ansi256(code=' + this.
|
|
461
|
+
return 'Ansi256(code=' + this.z1w_1 + ')';
|
|
463
462
|
};
|
|
464
463
|
protoOf(Ansi256).hashCode = function () {
|
|
465
|
-
return this.
|
|
464
|
+
return this.z1w_1;
|
|
466
465
|
};
|
|
467
466
|
protoOf(Ansi256).equals = function (other) {
|
|
468
467
|
if (this === other)
|
|
@@ -470,16 +469,16 @@
|
|
|
470
469
|
if (!(other instanceof Ansi256))
|
|
471
470
|
return false;
|
|
472
471
|
var tmp0_other_with_cast = other instanceof Ansi256 ? other : THROW_CCE();
|
|
473
|
-
if (!(this.
|
|
472
|
+
if (!(this.z1w_1 === tmp0_other_with_cast.z1w_1))
|
|
474
473
|
return false;
|
|
475
474
|
return true;
|
|
476
475
|
};
|
|
477
476
|
function Companion_1() {
|
|
478
477
|
Companion_instance_1 = this;
|
|
479
|
-
this.
|
|
478
|
+
this.c1x_1 = polarComponentInfo('HSV', 0.0, 1.0);
|
|
480
479
|
}
|
|
481
|
-
protoOf(Companion_1).
|
|
482
|
-
return this.
|
|
480
|
+
protoOf(Companion_1).u1w = function () {
|
|
481
|
+
return this.c1x_1;
|
|
483
482
|
};
|
|
484
483
|
var Companion_instance_1;
|
|
485
484
|
function Companion_getInstance_1() {
|
|
@@ -498,30 +497,30 @@
|
|
|
498
497
|
function HSV(h, s, v, alpha) {
|
|
499
498
|
Companion_getInstance_1();
|
|
500
499
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
501
|
-
this.
|
|
502
|
-
this.
|
|
503
|
-
this.
|
|
504
|
-
this.
|
|
500
|
+
this.d1x_1 = h;
|
|
501
|
+
this.e1x_1 = s;
|
|
502
|
+
this.f1x_1 = v;
|
|
503
|
+
this.g1x_1 = alpha;
|
|
505
504
|
}
|
|
506
|
-
protoOf(HSV).
|
|
505
|
+
protoOf(HSV).x1v = function () {
|
|
507
506
|
return Companion_getInstance_1();
|
|
508
507
|
};
|
|
509
|
-
protoOf(HSV).
|
|
510
|
-
if (this.
|
|
511
|
-
return Companion_getInstance_2().
|
|
512
|
-
var v = this.
|
|
513
|
-
var h = normalizeDeg_0(this.
|
|
514
|
-
var s = this.
|
|
515
|
-
return SRGB_getInstance().
|
|
508
|
+
protoOf(HSV).y1v = function () {
|
|
509
|
+
if (this.e1x_1 < 1.0E-7)
|
|
510
|
+
return Companion_getInstance_2().i1x(this.f1x_1, this.f1x_1, this.f1x_1, this.g1x_1);
|
|
511
|
+
var v = this.f1x_1;
|
|
512
|
+
var h = normalizeDeg_0(this.d1x_1) / 60.0;
|
|
513
|
+
var s = this.e1x_1;
|
|
514
|
+
return SRGB_getInstance().i1x(toSRGB$f(h, v, s, 5), toSRGB$f(h, v, s, 3), toSRGB$f(h, v, s, 1), this.g1x_1);
|
|
516
515
|
};
|
|
517
516
|
protoOf(HSV).toString = function () {
|
|
518
|
-
return 'HSV(h=' + this.
|
|
517
|
+
return 'HSV(h=' + this.d1x_1 + ', s=' + this.e1x_1 + ', v=' + this.f1x_1 + ', alpha=' + this.g1x_1 + ')';
|
|
519
518
|
};
|
|
520
519
|
protoOf(HSV).hashCode = function () {
|
|
521
|
-
var result = getNumberHashCode(this.
|
|
522
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
523
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
524
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
520
|
+
var result = getNumberHashCode(this.d1x_1);
|
|
521
|
+
result = imul(result, 31) + getNumberHashCode(this.e1x_1) | 0;
|
|
522
|
+
result = imul(result, 31) + getNumberHashCode(this.f1x_1) | 0;
|
|
523
|
+
result = imul(result, 31) + getNumberHashCode(this.g1x_1) | 0;
|
|
525
524
|
return result;
|
|
526
525
|
};
|
|
527
526
|
protoOf(HSV).equals = function (other) {
|
|
@@ -530,13 +529,13 @@
|
|
|
530
529
|
if (!(other instanceof HSV))
|
|
531
530
|
return false;
|
|
532
531
|
var tmp0_other_with_cast = other instanceof HSV ? other : THROW_CCE();
|
|
533
|
-
if (!equals(this.
|
|
532
|
+
if (!equals(this.d1x_1, tmp0_other_with_cast.d1x_1))
|
|
534
533
|
return false;
|
|
535
|
-
if (!equals(this.
|
|
534
|
+
if (!equals(this.e1x_1, tmp0_other_with_cast.e1x_1))
|
|
536
535
|
return false;
|
|
537
|
-
if (!equals(this.
|
|
536
|
+
if (!equals(this.f1x_1, tmp0_other_with_cast.f1x_1))
|
|
538
537
|
return false;
|
|
539
|
-
if (!equals(this.
|
|
538
|
+
if (!equals(this.g1x_1, tmp0_other_with_cast.g1x_1))
|
|
540
539
|
return false;
|
|
541
540
|
return true;
|
|
542
541
|
};
|
|
@@ -578,45 +577,45 @@
|
|
|
578
577
|
var ICTCP_LMS_TO_XYZ;
|
|
579
578
|
function ICtCp() {
|
|
580
579
|
}
|
|
581
|
-
protoOf(ICtCp).
|
|
582
|
-
var fo = RGBColorSpaces_getInstance().
|
|
580
|
+
protoOf(ICtCp).o1x = function () {
|
|
581
|
+
var fo = RGBColorSpaces_getInstance().w1x_1.b1y();
|
|
583
582
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
584
583
|
var this_0 = get_ICTCP_ICTCP_to_LMS();
|
|
585
|
-
var v0 = this.
|
|
586
|
-
var v1 = this.
|
|
587
|
-
var v2 = this.
|
|
584
|
+
var v0 = this.k1x_1;
|
|
585
|
+
var v1 = this.l1x_1;
|
|
586
|
+
var v2 = this.m1x_1;
|
|
588
587
|
// Inline function 'com.github.ajalt.colormath.model.ICtCp.toBT2020.<anonymous>' call
|
|
589
588
|
var l = Matrix__get_impl_xogbpk(this_0, 0, 0) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 0) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 0) * v2;
|
|
590
589
|
var m = Matrix__get_impl_xogbpk(this_0, 0, 1) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 1) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 1) * v2;
|
|
591
590
|
var s = Matrix__get_impl_xogbpk(this_0, 0, 2) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 2) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 2) * v2;
|
|
592
591
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
593
592
|
var this_1 = get_ICTCP_LMS_to_RGB();
|
|
594
|
-
var v0_0 = PqNonlinearity_instance.
|
|
595
|
-
var v1_0 = PqNonlinearity_instance.
|
|
596
|
-
var v2_0 = PqNonlinearity_instance.
|
|
593
|
+
var v0_0 = PqNonlinearity_instance.k1y(l);
|
|
594
|
+
var v1_0 = PqNonlinearity_instance.k1y(m);
|
|
595
|
+
var v2_0 = PqNonlinearity_instance.k1y(s);
|
|
597
596
|
// Inline function 'com.github.ajalt.colormath.model.ICtCp.toBT2020.<anonymous>.<anonymous>' call
|
|
598
597
|
var r = Matrix__get_impl_xogbpk(this_1, 0, 0) * v0_0 + Matrix__get_impl_xogbpk(this_1, 1, 0) * v1_0 + Matrix__get_impl_xogbpk(this_1, 2, 0) * v2_0;
|
|
599
598
|
var g = Matrix__get_impl_xogbpk(this_1, 0, 1) * v0_0 + Matrix__get_impl_xogbpk(this_1, 1, 1) * v1_0 + Matrix__get_impl_xogbpk(this_1, 2, 1) * v2_0;
|
|
600
599
|
var b = Matrix__get_impl_xogbpk(this_1, 0, 2) * v0_0 + Matrix__get_impl_xogbpk(this_1, 1, 2) * v1_0 + Matrix__get_impl_xogbpk(this_1, 2, 2) * v2_0;
|
|
601
|
-
return RGBColorSpaces_getInstance().
|
|
600
|
+
return RGBColorSpaces_getInstance().w1x_1.i1x(fo.l1y(r), fo.l1y(g), fo.l1y(b), this.n1x_1);
|
|
602
601
|
};
|
|
603
602
|
function PqNonlinearity() {
|
|
604
|
-
this.
|
|
605
|
-
this.
|
|
606
|
-
this.
|
|
607
|
-
this.
|
|
608
|
-
this.
|
|
609
|
-
this.
|
|
610
|
-
this.
|
|
611
|
-
this.
|
|
612
|
-
}
|
|
613
|
-
protoOf(PqNonlinearity).
|
|
603
|
+
this.c1y_1 = 0.1593017578125;
|
|
604
|
+
this.d1y_1 = 78.84375;
|
|
605
|
+
this.e1y_1 = 0.8359375;
|
|
606
|
+
this.f1y_1 = 18.8515625;
|
|
607
|
+
this.g1y_1 = 18.6875;
|
|
608
|
+
this.h1y_1 = 10000.0;
|
|
609
|
+
this.i1y_1 = 6.277394636015326;
|
|
610
|
+
this.j1y_1 = 0.012683313515655966;
|
|
611
|
+
}
|
|
612
|
+
protoOf(PqNonlinearity).k1y = function (x) {
|
|
614
613
|
var vp = spow(x, 0.012683313515655966);
|
|
615
614
|
var n = coerceAtLeast(vp - 0.8359375, 0.0);
|
|
616
615
|
var l = spow_0(n / (18.8515625 - 18.6875 * vp), 6.277394636015326);
|
|
617
616
|
return 10000.0 * l;
|
|
618
617
|
};
|
|
619
|
-
protoOf(PqNonlinearity).
|
|
618
|
+
protoOf(PqNonlinearity).l1y = function (x) {
|
|
620
619
|
var yp = spow_0(x / 10000.0, 0.1593017578125);
|
|
621
620
|
return spow_0((0.8359375 + 18.8515625 * yp) / (1.0 + 18.6875 * yp), 78.84375);
|
|
622
621
|
};
|
|
@@ -639,19 +638,19 @@
|
|
|
639
638
|
}
|
|
640
639
|
}
|
|
641
640
|
function GammaTransferFunctions(gamma) {
|
|
642
|
-
this.
|
|
641
|
+
this.m1y_1 = gamma;
|
|
643
642
|
}
|
|
644
|
-
protoOf(GammaTransferFunctions).
|
|
645
|
-
return spow(x, this.
|
|
643
|
+
protoOf(GammaTransferFunctions).k1y = function (x) {
|
|
644
|
+
return spow(x, this.m1y_1);
|
|
646
645
|
};
|
|
647
|
-
protoOf(GammaTransferFunctions).
|
|
648
|
-
return spow(x, 1.0 / this.
|
|
646
|
+
protoOf(GammaTransferFunctions).l1y = function (x) {
|
|
647
|
+
return spow(x, 1.0 / this.m1y_1);
|
|
649
648
|
};
|
|
650
649
|
protoOf(GammaTransferFunctions).toString = function () {
|
|
651
|
-
return 'GammaTransferFunctions(gamma=' + this.
|
|
650
|
+
return 'GammaTransferFunctions(gamma=' + this.m1y_1 + ')';
|
|
652
651
|
};
|
|
653
652
|
protoOf(GammaTransferFunctions).hashCode = function () {
|
|
654
|
-
return getNumberHashCode(this.
|
|
653
|
+
return getNumberHashCode(this.m1y_1);
|
|
655
654
|
};
|
|
656
655
|
protoOf(GammaTransferFunctions).equals = function (other) {
|
|
657
656
|
if (this === other)
|
|
@@ -659,16 +658,16 @@
|
|
|
659
658
|
if (!(other instanceof GammaTransferFunctions))
|
|
660
659
|
return false;
|
|
661
660
|
var tmp0_other_with_cast = other instanceof GammaTransferFunctions ? other : THROW_CCE();
|
|
662
|
-
if (!equals(this.
|
|
661
|
+
if (!equals(this.m1y_1, tmp0_other_with_cast.m1y_1))
|
|
663
662
|
return false;
|
|
664
663
|
return true;
|
|
665
664
|
};
|
|
666
665
|
function LinearTransferFunctions() {
|
|
667
666
|
}
|
|
668
|
-
protoOf(LinearTransferFunctions).
|
|
667
|
+
protoOf(LinearTransferFunctions).k1y = function (x) {
|
|
669
668
|
return x;
|
|
670
669
|
};
|
|
671
|
-
protoOf(LinearTransferFunctions).
|
|
670
|
+
protoOf(LinearTransferFunctions).l1y = function (x) {
|
|
672
671
|
return x;
|
|
673
672
|
};
|
|
674
673
|
var LinearTransferFunctions_instance;
|
|
@@ -679,43 +678,43 @@
|
|
|
679
678
|
}
|
|
680
679
|
function Companion_2() {
|
|
681
680
|
Companion_instance_2 = this;
|
|
682
|
-
this.
|
|
681
|
+
this.h1x_1 = RGBColorSpaces_getInstance().p1x_1;
|
|
683
682
|
}
|
|
684
|
-
protoOf(Companion_2).
|
|
685
|
-
return this.
|
|
683
|
+
protoOf(Companion_2).i1x = function (r, g, b, alpha) {
|
|
684
|
+
return this.h1x_1.i1x(r, g, b, alpha);
|
|
686
685
|
};
|
|
687
|
-
protoOf(Companion_2).
|
|
688
|
-
return this.
|
|
686
|
+
protoOf(Companion_2).n1y = function (r, g, b, alpha) {
|
|
687
|
+
return this.h1x_1.n1y(r, g, b, alpha);
|
|
689
688
|
};
|
|
690
|
-
protoOf(Companion_2).
|
|
691
|
-
return this.
|
|
689
|
+
protoOf(Companion_2).p1y = function (hex) {
|
|
690
|
+
return this.h1x_1.p1y(hex);
|
|
692
691
|
};
|
|
693
|
-
protoOf(Companion_2).
|
|
694
|
-
return this.
|
|
692
|
+
protoOf(Companion_2).o1y = function (r, g, b, alpha) {
|
|
693
|
+
return this.h1x_1.o1y(r, g, b, alpha);
|
|
695
694
|
};
|
|
696
|
-
protoOf(Companion_2).
|
|
697
|
-
return this.
|
|
695
|
+
protoOf(Companion_2).b1y = function () {
|
|
696
|
+
return this.h1x_1.b1y();
|
|
698
697
|
};
|
|
699
|
-
protoOf(Companion_2).
|
|
700
|
-
return this.
|
|
698
|
+
protoOf(Companion_2).q1y = function () {
|
|
699
|
+
return this.h1x_1.q1y();
|
|
701
700
|
};
|
|
702
|
-
protoOf(Companion_2).
|
|
703
|
-
return this.
|
|
701
|
+
protoOf(Companion_2).r1y = function () {
|
|
702
|
+
return this.h1x_1.r1y();
|
|
704
703
|
};
|
|
705
|
-
protoOf(Companion_2).
|
|
706
|
-
return this.
|
|
704
|
+
protoOf(Companion_2).s1y = function () {
|
|
705
|
+
return this.h1x_1.s1y();
|
|
707
706
|
};
|
|
708
|
-
protoOf(Companion_2).
|
|
709
|
-
return this.
|
|
707
|
+
protoOf(Companion_2).f13 = function () {
|
|
708
|
+
return this.h1x_1.f13();
|
|
710
709
|
};
|
|
711
|
-
protoOf(Companion_2).
|
|
712
|
-
return this.
|
|
710
|
+
protoOf(Companion_2).u1w = function () {
|
|
711
|
+
return this.h1x_1.u1w();
|
|
713
712
|
};
|
|
714
713
|
protoOf(Companion_2).equals = function (other) {
|
|
715
|
-
return equals(RGBColorSpaces_getInstance().
|
|
714
|
+
return equals(RGBColorSpaces_getInstance().p1x_1, other);
|
|
716
715
|
};
|
|
717
716
|
protoOf(Companion_2).hashCode = function () {
|
|
718
|
-
return hashCode(RGBColorSpaces_getInstance().
|
|
717
|
+
return hashCode(RGBColorSpaces_getInstance().p1x_1);
|
|
719
718
|
};
|
|
720
719
|
var Companion_instance_2;
|
|
721
720
|
function Companion_getInstance_2() {
|
|
@@ -724,163 +723,151 @@
|
|
|
724
723
|
return Companion_instance_2;
|
|
725
724
|
}
|
|
726
725
|
function clamp$copy(receiver, p0, p1, p2, p3) {
|
|
727
|
-
return receiver.
|
|
726
|
+
return receiver.t1y(p0, p1, p2, p3);
|
|
728
727
|
}
|
|
729
728
|
function RGB(r, g, b, alpha, space) {
|
|
730
729
|
Companion_getInstance_2();
|
|
731
|
-
this.
|
|
732
|
-
this.
|
|
733
|
-
this.
|
|
734
|
-
this.
|
|
735
|
-
this.
|
|
730
|
+
this.a1w_1 = r;
|
|
731
|
+
this.b1w_1 = g;
|
|
732
|
+
this.c1w_1 = b;
|
|
733
|
+
this.d1w_1 = alpha;
|
|
734
|
+
this.e1w_1 = space;
|
|
736
735
|
}
|
|
737
|
-
protoOf(RGB).
|
|
738
|
-
return this.
|
|
736
|
+
protoOf(RGB).x1v = function () {
|
|
737
|
+
return this.e1w_1;
|
|
739
738
|
};
|
|
740
|
-
protoOf(RGB).
|
|
739
|
+
protoOf(RGB).u1y = function () {
|
|
741
740
|
// Inline function 'kotlin.math.roundToInt' call
|
|
742
|
-
var this_0 = this.
|
|
741
|
+
var this_0 = this.a1w_1 * 255;
|
|
743
742
|
return roundToInt(this_0);
|
|
744
743
|
};
|
|
745
|
-
protoOf(RGB).
|
|
744
|
+
protoOf(RGB).v1y = function () {
|
|
746
745
|
// Inline function 'kotlin.math.roundToInt' call
|
|
747
|
-
var this_0 = this.
|
|
746
|
+
var this_0 = this.b1w_1 * 255;
|
|
748
747
|
return roundToInt(this_0);
|
|
749
748
|
};
|
|
750
|
-
protoOf(RGB).
|
|
749
|
+
protoOf(RGB).w1y = function () {
|
|
751
750
|
// Inline function 'kotlin.math.roundToInt' call
|
|
752
|
-
var this_0 = this.
|
|
751
|
+
var this_0 = this.c1w_1 * 255;
|
|
753
752
|
return roundToInt(this_0);
|
|
754
753
|
};
|
|
755
|
-
protoOf(RGB).
|
|
756
|
-
var f = SRGB_getInstance().
|
|
757
|
-
return equals(this.
|
|
754
|
+
protoOf(RGB).x1y = function (space) {
|
|
755
|
+
var f = SRGB_getInstance().b1y();
|
|
756
|
+
return equals(this.e1w_1, space) ? this : (equals(this.e1w_1, SRGB_getInstance()) ? equals(space, RGBColorSpaces_getInstance().q1x_1) : false) ? space.i1x(f.k1y(this.a1w_1), f.k1y(this.b1w_1), f.k1y(this.c1w_1), this.d1w_1) : (equals(this.e1w_1, RGBColorSpaces_getInstance().q1x_1) ? equals(space, SRGB_getInstance()) : false) ? space.i1x(f.l1y(this.a1w_1), f.l1y(this.b1w_1), f.l1y(this.c1w_1), this.d1w_1) : this.z1v().d1z(space);
|
|
758
757
|
};
|
|
759
|
-
protoOf(RGB).
|
|
758
|
+
protoOf(RGB).e1z = function () {
|
|
760
759
|
var tmp$ret$3;
|
|
761
760
|
$l$block: {
|
|
762
761
|
// Inline function 'com.github.ajalt.colormath.model.RGB.srgbHueMinMaxChroma' call
|
|
763
762
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
764
|
-
var $this$toSRGB = this.
|
|
765
|
-
var r = $this$toSRGB.
|
|
766
|
-
var g = $this$toSRGB.
|
|
767
|
-
var b = $this$toSRGB.
|
|
763
|
+
var $this$toSRGB = this.x1y(SRGB_getInstance());
|
|
764
|
+
var r = $this$toSRGB.a1w_1;
|
|
765
|
+
var g = $this$toSRGB.b1w_1;
|
|
766
|
+
var b = $this$toSRGB.c1w_1;
|
|
768
767
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
769
768
|
var min = Math.min(r, g, b);
|
|
770
769
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
771
770
|
var max = Math.max(r, g, b);
|
|
772
771
|
var chroma = max - min;
|
|
773
|
-
var
|
|
774
|
-
if (chroma < 1.0E-7) {
|
|
775
|
-
tmp = NaN;
|
|
776
|
-
} else if (r === max) {
|
|
777
|
-
tmp = (g - b) / chroma;
|
|
778
|
-
} else if (g === max) {
|
|
779
|
-
tmp = 2 + (b - r) / chroma;
|
|
780
|
-
} else if (b === max) {
|
|
781
|
-
tmp = 4 + (r - g) / chroma;
|
|
782
|
-
} else {
|
|
783
|
-
tmp = 0.0;
|
|
784
|
-
}
|
|
785
|
-
var h = tmp * 60;
|
|
772
|
+
var h = (chroma < 1.0E-7 ? NaN : r === max ? (g - b) / chroma : g === max ? 2 + (b - r) / chroma : b === max ? 4 + (r - g) / chroma : 0.0) * 60;
|
|
786
773
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toHSV.<anonymous>' call
|
|
787
774
|
var h_0 = normalizeDeg(h);
|
|
788
775
|
var s = max === 0.0 ? 0.0 : chroma / max;
|
|
789
|
-
tmp$ret$3 = new HSV(h_0, s, max, this.
|
|
776
|
+
tmp$ret$3 = new HSV(h_0, s, max, this.d1w_1);
|
|
790
777
|
break $l$block;
|
|
791
778
|
}
|
|
792
779
|
return tmp$ret$3;
|
|
793
780
|
};
|
|
794
|
-
protoOf(RGB).
|
|
795
|
-
var f = this.
|
|
781
|
+
protoOf(RGB).z1v = function () {
|
|
782
|
+
var f = this.e1w_1.b1y();
|
|
796
783
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
797
|
-
var this_0 = _Matrix___init__impl__q3kp4w(this.
|
|
798
|
-
var v0 = f.
|
|
799
|
-
var v1 = f.
|
|
800
|
-
var v2 = f.
|
|
784
|
+
var this_0 = _Matrix___init__impl__q3kp4w(this.e1w_1.q1y());
|
|
785
|
+
var v0 = f.k1y(this.a1w_1);
|
|
786
|
+
var v1 = f.k1y(this.b1w_1);
|
|
787
|
+
var v2 = f.k1y(this.c1w_1);
|
|
801
788
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toXYZ.<anonymous>' call
|
|
802
789
|
var x = Matrix__get_impl_xogbpk(this_0, 0, 0) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 0) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 0) * v2;
|
|
803
790
|
var y = Matrix__get_impl_xogbpk(this_0, 0, 1) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 1) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 1) * v2;
|
|
804
791
|
var z = Matrix__get_impl_xogbpk(this_0, 0, 2) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 2) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 2) * v2;
|
|
805
|
-
return XYZColorSpace_0(this.
|
|
792
|
+
return XYZColorSpace_0(this.e1w_1.s1y()).i1x(x, y, z, this.d1w_1);
|
|
806
793
|
};
|
|
807
|
-
protoOf(RGB).
|
|
794
|
+
protoOf(RGB).a1x = function () {
|
|
808
795
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
809
|
-
var $this$toSRGB = this.
|
|
796
|
+
var $this$toSRGB = this.x1y(SRGB_getInstance());
|
|
810
797
|
// Inline function 'kotlin.math.roundToInt' call
|
|
811
|
-
var this_0 = $this$toSRGB.
|
|
798
|
+
var this_0 = $this$toSRGB.e1z().f1x_1 * 100;
|
|
812
799
|
var value = roundToInt(this_0);
|
|
813
800
|
if (value === 30)
|
|
814
801
|
return new Ansi16(30);
|
|
815
802
|
var v = value / 50 | 0;
|
|
816
803
|
// Inline function 'kotlin.math.roundToInt' call
|
|
817
|
-
var this_1 = $this$toSRGB.
|
|
804
|
+
var this_1 = $this$toSRGB.c1w_1;
|
|
818
805
|
var tmp$ret$1 = roundToInt(this_1);
|
|
819
806
|
var tmp = imul(tmp$ret$1, 4);
|
|
820
807
|
// Inline function 'kotlin.math.roundToInt' call
|
|
821
|
-
var this_2 = $this$toSRGB.
|
|
808
|
+
var this_2 = $this$toSRGB.b1w_1;
|
|
822
809
|
var tmp$ret$2 = roundToInt(this_2);
|
|
823
810
|
var tmp_0 = tmp | imul(tmp$ret$2, 2);
|
|
824
811
|
// Inline function 'kotlin.math.roundToInt' call
|
|
825
|
-
var this_3 = $this$toSRGB.
|
|
812
|
+
var this_3 = $this$toSRGB.a1w_1;
|
|
826
813
|
var ansi = 30 + (tmp_0 | roundToInt(this_3)) | 0;
|
|
827
814
|
return new Ansi16(v === 2 ? ansi + 60 | 0 : ansi);
|
|
828
815
|
};
|
|
829
|
-
protoOf(RGB).
|
|
816
|
+
protoOf(RGB).f1z = function () {
|
|
830
817
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
831
|
-
var $this$toSRGB = this.
|
|
832
|
-
var ri = $this$toSRGB.
|
|
833
|
-
var gi = $this$toSRGB.
|
|
834
|
-
var bi = $this$toSRGB.
|
|
818
|
+
var $this$toSRGB = this.x1y(SRGB_getInstance());
|
|
819
|
+
var ri = $this$toSRGB.u1y();
|
|
820
|
+
var gi = $this$toSRGB.v1y();
|
|
821
|
+
var bi = $this$toSRGB.w1y();
|
|
835
822
|
var tmp;
|
|
836
823
|
if (ri === gi ? gi === bi : false) {
|
|
837
824
|
tmp = ri < 8 ? 16 : ri > 248 ? 231 : roundToInt((ri - 8 | 0) / 247.0 * 24.0) + 232 | 0;
|
|
838
825
|
} else {
|
|
839
826
|
// Inline function 'kotlin.math.roundToInt' call
|
|
840
|
-
var this_0 = $this$toSRGB.
|
|
827
|
+
var this_0 = $this$toSRGB.a1w_1 * 5;
|
|
841
828
|
var tmp$ret$0 = roundToInt(this_0);
|
|
842
829
|
var tmp_0 = 16 + imul(36, tmp$ret$0) | 0;
|
|
843
830
|
// Inline function 'kotlin.math.roundToInt' call
|
|
844
|
-
var this_1 = $this$toSRGB.
|
|
831
|
+
var this_1 = $this$toSRGB.b1w_1 * 5;
|
|
845
832
|
var tmp$ret$1 = roundToInt(this_1);
|
|
846
833
|
var tmp_1 = tmp_0 + imul(6, tmp$ret$1) | 0;
|
|
847
834
|
// Inline function 'kotlin.math.roundToInt' call
|
|
848
|
-
var this_2 = $this$toSRGB.
|
|
835
|
+
var this_2 = $this$toSRGB.c1w_1 * 5;
|
|
849
836
|
tmp = tmp_1 + roundToInt(this_2) | 0;
|
|
850
837
|
}
|
|
851
838
|
var code = tmp;
|
|
852
839
|
return new Ansi256(code);
|
|
853
840
|
};
|
|
854
|
-
protoOf(RGB).
|
|
855
|
-
return this.
|
|
841
|
+
protoOf(RGB).y1v = function () {
|
|
842
|
+
return this.x1y(RGBColorSpaces_getInstance().p1x_1);
|
|
856
843
|
};
|
|
857
|
-
protoOf(RGB).
|
|
844
|
+
protoOf(RGB).g1z = function () {
|
|
858
845
|
// Inline function 'com.github.ajalt.colormath.internal.clamp3' call
|
|
859
|
-
var v1 = this.
|
|
860
|
-
var v2 = this.
|
|
861
|
-
var v3 = this.
|
|
862
|
-
var alpha = this.
|
|
863
|
-
var
|
|
846
|
+
var v1 = this.a1w_1;
|
|
847
|
+
var v2 = this.b1w_1;
|
|
848
|
+
var v3 = this.c1w_1;
|
|
849
|
+
var alpha = this.d1w_1;
|
|
850
|
+
var _destruct__k2r9zo = this.x1v().u1w();
|
|
864
851
|
// Inline function 'kotlin.collections.component1' call
|
|
865
|
-
var c1 =
|
|
852
|
+
var c1 = _destruct__k2r9zo.q(0);
|
|
866
853
|
// Inline function 'kotlin.collections.component2' call
|
|
867
|
-
var c2 =
|
|
854
|
+
var c2 = _destruct__k2r9zo.q(1);
|
|
868
855
|
// Inline function 'kotlin.collections.component3' call
|
|
869
|
-
var c3 =
|
|
856
|
+
var c3 = _destruct__k2r9zo.q(2);
|
|
870
857
|
var tmp;
|
|
871
858
|
var tmp_0;
|
|
872
859
|
var tmp_1;
|
|
873
860
|
var tmp_2;
|
|
874
|
-
var containsLower = c1.
|
|
875
|
-
if (v1 <= c1.
|
|
876
|
-
var containsLower_0 = c2.
|
|
877
|
-
tmp_2 = v2 <= c2.
|
|
861
|
+
var containsLower = c1.h1w_1;
|
|
862
|
+
if (v1 <= c1.i1w_1 ? containsLower <= v1 : false) {
|
|
863
|
+
var containsLower_0 = c2.h1w_1;
|
|
864
|
+
tmp_2 = v2 <= c2.i1w_1 ? containsLower_0 <= v2 : false;
|
|
878
865
|
} else {
|
|
879
866
|
tmp_2 = false;
|
|
880
867
|
}
|
|
881
868
|
if (tmp_2) {
|
|
882
|
-
var containsLower_1 = c3.
|
|
883
|
-
tmp_1 = v3 <= c3.
|
|
869
|
+
var containsLower_1 = c3.h1w_1;
|
|
870
|
+
tmp_1 = v3 <= c3.i1w_1 ? containsLower_1 <= v3 : false;
|
|
884
871
|
} else {
|
|
885
872
|
tmp_1 = false;
|
|
886
873
|
}
|
|
@@ -892,30 +879,30 @@
|
|
|
892
879
|
if (tmp_0) {
|
|
893
880
|
tmp = this;
|
|
894
881
|
} else {
|
|
895
|
-
tmp = clamp$copy(this, coerceIn(v1, c1.
|
|
882
|
+
tmp = clamp$copy(this, coerceIn(v1, c1.h1w_1, c1.i1w_1), coerceIn(v2, c2.h1w_1, c2.i1w_1), coerceIn(v3, c3.h1w_1, c3.i1w_1), coerceIn(alpha, 0.0, 1.0));
|
|
896
883
|
}
|
|
897
884
|
return tmp;
|
|
898
885
|
};
|
|
899
|
-
protoOf(RGB).
|
|
886
|
+
protoOf(RGB).h1z = function (r, g, b, alpha, space) {
|
|
900
887
|
return new RGB(r, g, b, alpha, space);
|
|
901
888
|
};
|
|
902
|
-
protoOf(RGB).
|
|
903
|
-
r = r === VOID ? this.
|
|
904
|
-
g = g === VOID ? this.
|
|
905
|
-
b = b === VOID ? this.
|
|
906
|
-
alpha = alpha === VOID ? this.
|
|
907
|
-
space = space === VOID ? this.
|
|
908
|
-
return $super === VOID ? this.
|
|
889
|
+
protoOf(RGB).t1y = function (r, g, b, alpha, space, $super) {
|
|
890
|
+
r = r === VOID ? this.a1w_1 : r;
|
|
891
|
+
g = g === VOID ? this.b1w_1 : g;
|
|
892
|
+
b = b === VOID ? this.c1w_1 : b;
|
|
893
|
+
alpha = alpha === VOID ? this.d1w_1 : alpha;
|
|
894
|
+
space = space === VOID ? this.e1w_1 : space;
|
|
895
|
+
return $super === VOID ? this.h1z(r, g, b, alpha, space) : $super.h1z.call(this, r, g, b, alpha, space);
|
|
909
896
|
};
|
|
910
897
|
protoOf(RGB).toString = function () {
|
|
911
|
-
return 'RGB(r=' + this.
|
|
898
|
+
return 'RGB(r=' + this.a1w_1 + ', g=' + this.b1w_1 + ', b=' + this.c1w_1 + ', alpha=' + this.d1w_1 + ', space=' + this.e1w_1 + ')';
|
|
912
899
|
};
|
|
913
900
|
protoOf(RGB).hashCode = function () {
|
|
914
|
-
var result = getNumberHashCode(this.
|
|
915
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
916
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
917
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
918
|
-
result = imul(result, 31) + hashCode(this.
|
|
901
|
+
var result = getNumberHashCode(this.a1w_1);
|
|
902
|
+
result = imul(result, 31) + getNumberHashCode(this.b1w_1) | 0;
|
|
903
|
+
result = imul(result, 31) + getNumberHashCode(this.c1w_1) | 0;
|
|
904
|
+
result = imul(result, 31) + getNumberHashCode(this.d1w_1) | 0;
|
|
905
|
+
result = imul(result, 31) + hashCode(this.e1w_1) | 0;
|
|
919
906
|
return result;
|
|
920
907
|
};
|
|
921
908
|
protoOf(RGB).equals = function (other) {
|
|
@@ -924,15 +911,15 @@
|
|
|
924
911
|
if (!(other instanceof RGB))
|
|
925
912
|
return false;
|
|
926
913
|
var tmp0_other_with_cast = other instanceof RGB ? other : THROW_CCE();
|
|
927
|
-
if (!equals(this.
|
|
914
|
+
if (!equals(this.a1w_1, tmp0_other_with_cast.a1w_1))
|
|
928
915
|
return false;
|
|
929
|
-
if (!equals(this.
|
|
916
|
+
if (!equals(this.b1w_1, tmp0_other_with_cast.b1w_1))
|
|
930
917
|
return false;
|
|
931
|
-
if (!equals(this.
|
|
918
|
+
if (!equals(this.c1w_1, tmp0_other_with_cast.c1w_1))
|
|
932
919
|
return false;
|
|
933
|
-
if (!equals(this.
|
|
920
|
+
if (!equals(this.d1w_1, tmp0_other_with_cast.d1w_1))
|
|
934
921
|
return false;
|
|
935
|
-
if (!equals(this.
|
|
922
|
+
if (!equals(this.e1w_1, tmp0_other_with_cast.e1w_1))
|
|
936
923
|
return false;
|
|
937
924
|
return true;
|
|
938
925
|
};
|
|
@@ -1032,18 +1019,18 @@
|
|
|
1032
1019
|
return ACES_AP1_B;
|
|
1033
1020
|
}
|
|
1034
1021
|
var ACES_AP1_B;
|
|
1035
|
-
function RGBColorSpaces$SRGB$lambda($this
|
|
1036
|
-
return it.
|
|
1022
|
+
function RGBColorSpaces$SRGB$lambda($this$RGBColorSpaceImpl, it) {
|
|
1023
|
+
return it.y1v();
|
|
1037
1024
|
}
|
|
1038
|
-
function RGBColorSpaces$BT2020$lambda($this
|
|
1025
|
+
function RGBColorSpaces$BT2020$lambda($this$RGBColorSpaceImpl, color) {
|
|
1039
1026
|
var tmp;
|
|
1040
1027
|
if (color instanceof RGB) {
|
|
1041
|
-
tmp = color.
|
|
1028
|
+
tmp = color.x1y($this$RGBColorSpaceImpl);
|
|
1042
1029
|
} else {
|
|
1043
1030
|
if (color instanceof ICtCp) {
|
|
1044
|
-
tmp = color.
|
|
1031
|
+
tmp = color.o1x();
|
|
1045
1032
|
} else {
|
|
1046
|
-
tmp = color.
|
|
1033
|
+
tmp = color.z1v().d1z($this$RGBColorSpaceImpl);
|
|
1047
1034
|
}
|
|
1048
1035
|
}
|
|
1049
1036
|
return tmp;
|
|
@@ -1051,29 +1038,29 @@
|
|
|
1051
1038
|
function RGBColorSpaces() {
|
|
1052
1039
|
RGBColorSpaces_instance = this;
|
|
1053
1040
|
var tmp = this;
|
|
1054
|
-
var tmp_0 = Illuminant_getInstance().
|
|
1041
|
+
var tmp_0 = Illuminant_getInstance().q1w_1;
|
|
1055
1042
|
var tmp_1 = SRGBTransferFunctions_instance;
|
|
1056
1043
|
var tmp_2 = get_SRGB_R();
|
|
1057
1044
|
var tmp_3 = get_SRGB_G();
|
|
1058
1045
|
var tmp_4 = get_SRGB_B();
|
|
1059
|
-
tmp.
|
|
1060
|
-
this.
|
|
1061
|
-
this.
|
|
1062
|
-
this.
|
|
1063
|
-
this.
|
|
1064
|
-
this.
|
|
1065
|
-
this.
|
|
1046
|
+
tmp.p1x_1 = new RGBColorSpaceImpl('sRGB', tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, RGBColorSpaces$SRGB$lambda);
|
|
1047
|
+
this.q1x_1 = RGBColorSpace_0('Linear sRGB', Illuminant_getInstance().q1w_1, LinearTransferFunctions_instance, get_SRGB_R(), get_SRGB_G(), get_SRGB_B());
|
|
1048
|
+
this.r1x_1 = RGBColorSpace_0('ACES2065-1', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP0_R(), get_ACES_AP0_G(), get_ACES_AP0_B());
|
|
1049
|
+
this.s1x_1 = RGBColorSpace_0('ACEScc', get_ACES_WHITE_POINT(), ACESccTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
1050
|
+
this.t1x_1 = RGBColorSpace_0('ACEScct', get_ACES_WHITE_POINT(), ACEScctTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
1051
|
+
this.u1x_1 = RGBColorSpace_0('ACEScg', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
1052
|
+
this.v1x_1 = RGBColorSpace_0('Adobe RGB', Illuminant_getInstance().q1w_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));
|
|
1066
1053
|
var tmp_5 = this;
|
|
1067
|
-
var tmp_6 = Illuminant_getInstance().
|
|
1054
|
+
var tmp_6 = Illuminant_getInstance().q1w_1;
|
|
1068
1055
|
var tmp_7 = BT2020TransferFunctions_getInstance();
|
|
1069
1056
|
var tmp_8 = xyY_init_$Create$(0.708, 0.292);
|
|
1070
1057
|
var tmp_9 = xyY_init_$Create$(0.17, 0.797);
|
|
1071
1058
|
var tmp_10 = xyY_init_$Create$(0.131, 0.046);
|
|
1072
|
-
tmp_5.
|
|
1073
|
-
this.
|
|
1074
|
-
this.
|
|
1075
|
-
this.
|
|
1076
|
-
this.
|
|
1059
|
+
tmp_5.w1x_1 = new RGBColorSpaceImpl('BT.2020', tmp_6, tmp_7, tmp_8, tmp_9, tmp_10, RGBColorSpaces$BT2020$lambda);
|
|
1060
|
+
this.x1x_1 = RGBColorSpace_0('BT.709', Illuminant_getInstance().q1w_1, BT709TransferFunctions_getInstance(), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.3, 0.6), xyY_init_$Create$(0.15, 0.06));
|
|
1061
|
+
this.y1x_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));
|
|
1062
|
+
this.z1x_1 = RGBColorSpace_0('Display P3', Illuminant_getInstance().q1w_1, SRGBTransferFunctions_instance, xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06));
|
|
1063
|
+
this.a1y_1 = RGBColorSpace_0('ROMM RGB', Illuminant_getInstance().o1w_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));
|
|
1077
1064
|
}
|
|
1078
1065
|
var RGBColorSpaces_instance;
|
|
1079
1066
|
function RGBColorSpaces_getInstance() {
|
|
@@ -1083,43 +1070,43 @@
|
|
|
1083
1070
|
}
|
|
1084
1071
|
function SRGB() {
|
|
1085
1072
|
SRGB_instance = this;
|
|
1086
|
-
this.
|
|
1073
|
+
this.j1x_1 = RGBColorSpaces_getInstance().p1x_1;
|
|
1087
1074
|
}
|
|
1088
|
-
protoOf(SRGB).
|
|
1089
|
-
return this.
|
|
1075
|
+
protoOf(SRGB).i1x = function (r, g, b, alpha) {
|
|
1076
|
+
return this.j1x_1.i1x(r, g, b, alpha);
|
|
1090
1077
|
};
|
|
1091
|
-
protoOf(SRGB).
|
|
1092
|
-
return this.
|
|
1078
|
+
protoOf(SRGB).n1y = function (r, g, b, alpha) {
|
|
1079
|
+
return this.j1x_1.n1y(r, g, b, alpha);
|
|
1093
1080
|
};
|
|
1094
|
-
protoOf(SRGB).
|
|
1095
|
-
return this.
|
|
1081
|
+
protoOf(SRGB).p1y = function (hex) {
|
|
1082
|
+
return this.j1x_1.p1y(hex);
|
|
1096
1083
|
};
|
|
1097
|
-
protoOf(SRGB).
|
|
1098
|
-
return this.
|
|
1084
|
+
protoOf(SRGB).o1y = function (r, g, b, alpha) {
|
|
1085
|
+
return this.j1x_1.o1y(r, g, b, alpha);
|
|
1099
1086
|
};
|
|
1100
|
-
protoOf(SRGB).
|
|
1101
|
-
return this.
|
|
1087
|
+
protoOf(SRGB).b1y = function () {
|
|
1088
|
+
return this.j1x_1.b1y();
|
|
1102
1089
|
};
|
|
1103
|
-
protoOf(SRGB).
|
|
1104
|
-
return this.
|
|
1090
|
+
protoOf(SRGB).q1y = function () {
|
|
1091
|
+
return this.j1x_1.q1y();
|
|
1105
1092
|
};
|
|
1106
|
-
protoOf(SRGB).
|
|
1107
|
-
return this.
|
|
1093
|
+
protoOf(SRGB).r1y = function () {
|
|
1094
|
+
return this.j1x_1.r1y();
|
|
1108
1095
|
};
|
|
1109
|
-
protoOf(SRGB).
|
|
1110
|
-
return this.
|
|
1096
|
+
protoOf(SRGB).s1y = function () {
|
|
1097
|
+
return this.j1x_1.s1y();
|
|
1111
1098
|
};
|
|
1112
|
-
protoOf(SRGB).
|
|
1113
|
-
return this.
|
|
1099
|
+
protoOf(SRGB).f13 = function () {
|
|
1100
|
+
return this.j1x_1.f13();
|
|
1114
1101
|
};
|
|
1115
|
-
protoOf(SRGB).
|
|
1116
|
-
return this.
|
|
1102
|
+
protoOf(SRGB).u1w = function () {
|
|
1103
|
+
return this.j1x_1.u1w();
|
|
1117
1104
|
};
|
|
1118
1105
|
protoOf(SRGB).equals = function (other) {
|
|
1119
|
-
return equals(RGBColorSpaces_getInstance().
|
|
1106
|
+
return equals(RGBColorSpaces_getInstance().p1x_1, other);
|
|
1120
1107
|
};
|
|
1121
1108
|
protoOf(SRGB).hashCode = function () {
|
|
1122
|
-
return hashCode(RGBColorSpaces_getInstance().
|
|
1109
|
+
return hashCode(RGBColorSpaces_getInstance().p1x_1);
|
|
1123
1110
|
};
|
|
1124
1111
|
protoOf(SRGB).toString = function () {
|
|
1125
1112
|
return 'sRGB';
|
|
@@ -1131,39 +1118,39 @@
|
|
|
1131
1118
|
return SRGB_instance;
|
|
1132
1119
|
}
|
|
1133
1120
|
function RGBColorSpaceImpl(name, whitePoint, transferFunctions, r, g, b, convertImpl) {
|
|
1134
|
-
this.
|
|
1135
|
-
this.
|
|
1136
|
-
this.
|
|
1137
|
-
this.
|
|
1138
|
-
this.
|
|
1139
|
-
this.
|
|
1140
|
-
this.
|
|
1141
|
-
this.
|
|
1142
|
-
this.
|
|
1143
|
-
this.
|
|
1121
|
+
this.i1z_1 = name;
|
|
1122
|
+
this.j1z_1 = whitePoint;
|
|
1123
|
+
this.k1z_1 = transferFunctions;
|
|
1124
|
+
this.l1z_1 = r;
|
|
1125
|
+
this.m1z_1 = g;
|
|
1126
|
+
this.n1z_1 = b;
|
|
1127
|
+
this.o1z_1 = convertImpl;
|
|
1128
|
+
this.p1z_1 = zeroOneComponentInfo('RGB');
|
|
1129
|
+
this.q1z_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.j1z_1, this.l1z_1, this.m1z_1, this.n1z_1));
|
|
1130
|
+
this.r1z_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.q1z_1)));
|
|
1144
1131
|
}
|
|
1145
|
-
protoOf(RGBColorSpaceImpl).
|
|
1146
|
-
return this.
|
|
1132
|
+
protoOf(RGBColorSpaceImpl).f13 = function () {
|
|
1133
|
+
return this.i1z_1;
|
|
1147
1134
|
};
|
|
1148
|
-
protoOf(RGBColorSpaceImpl).
|
|
1149
|
-
return this.
|
|
1135
|
+
protoOf(RGBColorSpaceImpl).s1y = function () {
|
|
1136
|
+
return this.j1z_1;
|
|
1150
1137
|
};
|
|
1151
|
-
protoOf(RGBColorSpaceImpl).
|
|
1152
|
-
return this.
|
|
1138
|
+
protoOf(RGBColorSpaceImpl).b1y = function () {
|
|
1139
|
+
return this.k1z_1;
|
|
1153
1140
|
};
|
|
1154
|
-
protoOf(RGBColorSpaceImpl).
|
|
1155
|
-
return this.
|
|
1141
|
+
protoOf(RGBColorSpaceImpl).u1w = function () {
|
|
1142
|
+
return this.p1z_1;
|
|
1156
1143
|
};
|
|
1157
|
-
protoOf(RGBColorSpaceImpl).
|
|
1158
|
-
return this.
|
|
1144
|
+
protoOf(RGBColorSpaceImpl).q1y = function () {
|
|
1145
|
+
return this.q1z_1;
|
|
1159
1146
|
};
|
|
1160
|
-
protoOf(RGBColorSpaceImpl).
|
|
1161
|
-
return this.
|
|
1147
|
+
protoOf(RGBColorSpaceImpl).r1y = function () {
|
|
1148
|
+
return this.r1z_1;
|
|
1162
1149
|
};
|
|
1163
1150
|
protoOf(RGBColorSpaceImpl).toString = function () {
|
|
1164
|
-
return this.
|
|
1151
|
+
return this.i1z_1;
|
|
1165
1152
|
};
|
|
1166
|
-
protoOf(RGBColorSpaceImpl).
|
|
1153
|
+
protoOf(RGBColorSpaceImpl).i1x = function (r, g, b, alpha) {
|
|
1167
1154
|
return new RGB(r, g, b, alpha, this);
|
|
1168
1155
|
};
|
|
1169
1156
|
protoOf(RGBColorSpaceImpl).equals = function (other) {
|
|
@@ -1171,42 +1158,42 @@
|
|
|
1171
1158
|
return true;
|
|
1172
1159
|
if (!(!(other == null) ? isInterface(other, RGBColorSpace) : false))
|
|
1173
1160
|
return false;
|
|
1174
|
-
if (!(this.
|
|
1161
|
+
if (!(this.i1z_1 === other.f13()))
|
|
1175
1162
|
return false;
|
|
1176
|
-
if (!this.
|
|
1163
|
+
if (!this.j1z_1.equals(other.s1y()))
|
|
1177
1164
|
return false;
|
|
1178
|
-
if (!equals(this.
|
|
1165
|
+
if (!equals(this.k1z_1, other.b1y()))
|
|
1179
1166
|
return false;
|
|
1180
1167
|
if (other instanceof RGBColorSpaceImpl) {
|
|
1181
|
-
if (!this.
|
|
1168
|
+
if (!this.l1z_1.equals(other.l1z_1))
|
|
1182
1169
|
return false;
|
|
1183
|
-
if (!this.
|
|
1170
|
+
if (!this.m1z_1.equals(other.m1z_1))
|
|
1184
1171
|
return false;
|
|
1185
|
-
if (!this.
|
|
1172
|
+
if (!this.n1z_1.equals(other.n1z_1))
|
|
1186
1173
|
return false;
|
|
1187
1174
|
} else {
|
|
1188
|
-
if (!contentEquals(this.
|
|
1175
|
+
if (!contentEquals(this.q1z_1, other.q1y()))
|
|
1189
1176
|
return false;
|
|
1190
|
-
if (!contentEquals(this.
|
|
1177
|
+
if (!contentEquals(this.r1z_1, other.r1y()))
|
|
1191
1178
|
return false;
|
|
1192
1179
|
}
|
|
1193
1180
|
return true;
|
|
1194
1181
|
};
|
|
1195
1182
|
protoOf(RGBColorSpaceImpl).hashCode = function () {
|
|
1196
|
-
var result = getStringHashCode(this.
|
|
1197
|
-
result = imul(31, result) + this.
|
|
1198
|
-
result = imul(31, result) + hashCode(this.
|
|
1199
|
-
result = imul(31, result) + this.
|
|
1200
|
-
result = imul(31, result) + this.
|
|
1201
|
-
result = imul(31, result) + this.
|
|
1183
|
+
var result = getStringHashCode(this.i1z_1);
|
|
1184
|
+
result = imul(31, result) + this.j1z_1.hashCode() | 0;
|
|
1185
|
+
result = imul(31, result) + hashCode(this.k1z_1) | 0;
|
|
1186
|
+
result = imul(31, result) + this.l1z_1.hashCode() | 0;
|
|
1187
|
+
result = imul(31, result) + this.m1z_1.hashCode() | 0;
|
|
1188
|
+
result = imul(31, result) + this.n1z_1.hashCode() | 0;
|
|
1202
1189
|
return result;
|
|
1203
1190
|
};
|
|
1204
1191
|
function SRGBTransferFunctions() {
|
|
1205
1192
|
}
|
|
1206
|
-
protoOf(SRGBTransferFunctions).
|
|
1193
|
+
protoOf(SRGBTransferFunctions).l1y = function (x) {
|
|
1207
1194
|
return x <= 0.0031308 ? x * 12.92 : 1.055 * spow(x, 0.4166666666666667) - 0.055;
|
|
1208
1195
|
};
|
|
1209
|
-
protoOf(SRGBTransferFunctions).
|
|
1196
|
+
protoOf(SRGBTransferFunctions).k1y = function (x) {
|
|
1210
1197
|
return x <= 0.04045 ? x / 12.92 : spow_0((x + 0.055) / 1.055, 2.4);
|
|
1211
1198
|
};
|
|
1212
1199
|
var SRGBTransferFunctions_instance;
|
|
@@ -1219,18 +1206,18 @@
|
|
|
1219
1206
|
}
|
|
1220
1207
|
function ACESccTransferFunctions() {
|
|
1221
1208
|
ACESccTransferFunctions_instance = this;
|
|
1222
|
-
this.
|
|
1223
|
-
this.
|
|
1224
|
-
this.
|
|
1209
|
+
this.s1z_1 = 3.0517578125E-5;
|
|
1210
|
+
this.t1z_1 = 1.52587890625E-5;
|
|
1211
|
+
this.u1z_1 = -0.3013698630136986;
|
|
1225
1212
|
var tmp = this;
|
|
1226
1213
|
// Inline function 'kotlin.math.log2' call
|
|
1227
|
-
tmp.
|
|
1214
|
+
tmp.v1z_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
1228
1215
|
}
|
|
1229
|
-
protoOf(ACESccTransferFunctions).
|
|
1216
|
+
protoOf(ACESccTransferFunctions).k1y = function (x) {
|
|
1230
1217
|
var tmp;
|
|
1231
1218
|
if (x <= -0.3013698630136986) {
|
|
1232
1219
|
tmp = (spow_0(2.0, x * 17.52 - 9.72) - 1.52587890625E-5) * 2.0;
|
|
1233
|
-
} else if (x < this.
|
|
1220
|
+
} else if (x < this.v1z_1) {
|
|
1234
1221
|
// Inline function 'kotlin.math.pow' call
|
|
1235
1222
|
var x_0 = x * 17.52 - 9.72;
|
|
1236
1223
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -1239,7 +1226,7 @@
|
|
|
1239
1226
|
}
|
|
1240
1227
|
return tmp;
|
|
1241
1228
|
};
|
|
1242
|
-
protoOf(ACESccTransferFunctions).
|
|
1229
|
+
protoOf(ACESccTransferFunctions).l1y = function (x) {
|
|
1243
1230
|
var tmp;
|
|
1244
1231
|
if (x < 3.0517578125E-5) {
|
|
1245
1232
|
// Inline function 'kotlin.math.log2' call
|
|
@@ -1259,17 +1246,17 @@
|
|
|
1259
1246
|
}
|
|
1260
1247
|
function ACEScctTransferFunctions() {
|
|
1261
1248
|
ACEScctTransferFunctions_instance = this;
|
|
1262
|
-
this.
|
|
1263
|
-
this.
|
|
1249
|
+
this.w1z_1 = 10.5402377416545;
|
|
1250
|
+
this.x1z_1 = 0.0729055341958355;
|
|
1264
1251
|
var tmp = this;
|
|
1265
1252
|
// Inline function 'kotlin.math.log2' call
|
|
1266
|
-
tmp.
|
|
1253
|
+
tmp.y1z_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
1267
1254
|
}
|
|
1268
|
-
protoOf(ACEScctTransferFunctions).
|
|
1255
|
+
protoOf(ACEScctTransferFunctions).k1y = function (x) {
|
|
1269
1256
|
var tmp;
|
|
1270
1257
|
if (x <= 0.155251141552511) {
|
|
1271
1258
|
tmp = (x - 0.0729055341958355) / 10.5402377416545;
|
|
1272
|
-
} else if (x < this.
|
|
1259
|
+
} else if (x < this.y1z_1) {
|
|
1273
1260
|
// Inline function 'kotlin.math.pow' call
|
|
1274
1261
|
var x_0 = x * 17.52 - 9.72;
|
|
1275
1262
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -1278,7 +1265,7 @@
|
|
|
1278
1265
|
}
|
|
1279
1266
|
return tmp;
|
|
1280
1267
|
};
|
|
1281
|
-
protoOf(ACEScctTransferFunctions).
|
|
1268
|
+
protoOf(ACEScctTransferFunctions).l1y = function (x) {
|
|
1282
1269
|
var tmp;
|
|
1283
1270
|
if (x < 0.0078125) {
|
|
1284
1271
|
tmp = 10.5402377416545 * x + 0.0729055341958355;
|
|
@@ -1296,16 +1283,16 @@
|
|
|
1296
1283
|
}
|
|
1297
1284
|
function BT2020TransferFunctions() {
|
|
1298
1285
|
BT2020TransferFunctions_instance = this;
|
|
1299
|
-
this.
|
|
1300
|
-
this.
|
|
1286
|
+
this.z1z_1 = 1.0993;
|
|
1287
|
+
this.a20_1 = 0.0181;
|
|
1301
1288
|
var tmp = this;
|
|
1302
1289
|
// Inline function 'kotlin.math.pow' call
|
|
1303
|
-
tmp.
|
|
1290
|
+
tmp.b20_1 = 1.0993 * Math.pow(0.0181, 0.45) - 0.09929999999999994;
|
|
1304
1291
|
}
|
|
1305
|
-
protoOf(BT2020TransferFunctions).
|
|
1306
|
-
return numberToDouble(x < this.
|
|
1292
|
+
protoOf(BT2020TransferFunctions).k1y = function (x) {
|
|
1293
|
+
return numberToDouble(x < this.b20_1 ? x / 4.5 : spow_0((x + 0.09929999999999994) / 1.0993, 2.2222222222222223));
|
|
1307
1294
|
};
|
|
1308
|
-
protoOf(BT2020TransferFunctions).
|
|
1295
|
+
protoOf(BT2020TransferFunctions).l1y = function (x) {
|
|
1309
1296
|
return x < 0.0181 ? 4.5 * x : 1.0993 * spow(x, 0.45) - 0.09929999999999994;
|
|
1310
1297
|
};
|
|
1311
1298
|
var BT2020TransferFunctions_instance;
|
|
@@ -1316,12 +1303,12 @@
|
|
|
1316
1303
|
}
|
|
1317
1304
|
function BT709TransferFunctions() {
|
|
1318
1305
|
BT709TransferFunctions_instance = this;
|
|
1319
|
-
this.
|
|
1306
|
+
this.c20_1 = 1.099 * spow_0(0.018, 0.45) - 0.099;
|
|
1320
1307
|
}
|
|
1321
|
-
protoOf(BT709TransferFunctions).
|
|
1322
|
-
return numberToDouble(x < this.
|
|
1308
|
+
protoOf(BT709TransferFunctions).k1y = function (x) {
|
|
1309
|
+
return numberToDouble(x < this.c20_1 ? x / 4.5 : spow_0((x + 0.099) / 1.099, 2.2222222222222223));
|
|
1323
1310
|
};
|
|
1324
|
-
protoOf(BT709TransferFunctions).
|
|
1311
|
+
protoOf(BT709TransferFunctions).l1y = function (x) {
|
|
1325
1312
|
return x < 0.018 ? 4.5 * x : 1.099 * spow(x, 0.45) - 0.099;
|
|
1326
1313
|
};
|
|
1327
1314
|
var BT709TransferFunctions_instance;
|
|
@@ -1331,12 +1318,12 @@
|
|
|
1331
1318
|
return BT709TransferFunctions_instance;
|
|
1332
1319
|
}
|
|
1333
1320
|
function ROMMTransferFunctions() {
|
|
1334
|
-
this.
|
|
1321
|
+
this.d20_1 = 0.001953;
|
|
1335
1322
|
}
|
|
1336
|
-
protoOf(ROMMTransferFunctions).
|
|
1323
|
+
protoOf(ROMMTransferFunctions).k1y = function (x) {
|
|
1337
1324
|
return x < 0.031248 ? x / 16.0 : spow(x, 1.8);
|
|
1338
1325
|
};
|
|
1339
|
-
protoOf(ROMMTransferFunctions).
|
|
1326
|
+
protoOf(ROMMTransferFunctions).l1y = function (x) {
|
|
1340
1327
|
return x < 0.001953 ? x * 16.0 : spow(x, 0.5555555555555556);
|
|
1341
1328
|
};
|
|
1342
1329
|
var ROMMTransferFunctions_instance;
|
|
@@ -1345,26 +1332,26 @@
|
|
|
1345
1332
|
}
|
|
1346
1333
|
function rgbToXyzMatrix(whitePoint, r, g, b) {
|
|
1347
1334
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
1348
|
-
var primaries = _Matrix___init__impl__q3kp4w_0(r.
|
|
1349
|
-
var wp = whitePoint.
|
|
1335
|
+
var primaries = _Matrix___init__impl__q3kp4w_0(r.e20_1, g.e20_1, b.e20_1, r.f20_1, g.f20_1, b.f20_1, r.h20(), g.h20(), b.h20());
|
|
1336
|
+
var wp = whitePoint.k1w_1;
|
|
1350
1337
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1351
1338
|
var this_0 = inverse(primaries);
|
|
1352
|
-
var v0 = wp.
|
|
1353
|
-
var v1 = wp.
|
|
1354
|
-
var v2 = wp.
|
|
1339
|
+
var v0 = wp.i20();
|
|
1340
|
+
var v1 = wp.g20_1;
|
|
1341
|
+
var v2 = wp.j20();
|
|
1355
1342
|
// Inline function 'com.github.ajalt.colormath.model.rgbToXyzMatrix.<anonymous>' call
|
|
1356
1343
|
var x = Matrix__get_impl_xogbpk(this_0, 0, 0) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 0) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 0) * v2;
|
|
1357
1344
|
var y = Matrix__get_impl_xogbpk(this_0, 0, 1) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 1) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 1) * v2;
|
|
1358
1345
|
var z = Matrix__get_impl_xogbpk(this_0, 0, 2) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 2) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 2) * v2;
|
|
1359
1346
|
return dotDiagonal(primaries, x, y, z);
|
|
1360
1347
|
}
|
|
1361
|
-
function RGBColorSpace$lambda($this
|
|
1348
|
+
function RGBColorSpace$lambda($this$RGBColorSpaceImpl, color) {
|
|
1362
1349
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
1363
1350
|
var tmp;
|
|
1364
1351
|
if (color instanceof RGB) {
|
|
1365
|
-
tmp = color.
|
|
1352
|
+
tmp = color.x1y($this$RGBColorSpaceImpl);
|
|
1366
1353
|
} else {
|
|
1367
|
-
tmp = color.
|
|
1354
|
+
tmp = color.z1v().d1z($this$RGBColorSpaceImpl);
|
|
1368
1355
|
}
|
|
1369
1356
|
return tmp;
|
|
1370
1357
|
}
|
|
@@ -1386,22 +1373,22 @@
|
|
|
1386
1373
|
}
|
|
1387
1374
|
function Companion_3() {
|
|
1388
1375
|
Companion_instance_3 = this;
|
|
1389
|
-
this.
|
|
1376
|
+
this.k20_1 = XYZColorSpaces_getInstance().l20_1;
|
|
1390
1377
|
}
|
|
1391
|
-
protoOf(Companion_3).
|
|
1392
|
-
return this.
|
|
1378
|
+
protoOf(Companion_3).i1x = function (x, y, z, alpha) {
|
|
1379
|
+
return this.k20_1.i1x(x, y, z, alpha);
|
|
1393
1380
|
};
|
|
1394
|
-
protoOf(Companion_3).
|
|
1395
|
-
return this.
|
|
1381
|
+
protoOf(Companion_3).s1y = function () {
|
|
1382
|
+
return this.k20_1.s1y();
|
|
1396
1383
|
};
|
|
1397
|
-
protoOf(Companion_3).
|
|
1398
|
-
return this.
|
|
1384
|
+
protoOf(Companion_3).u1w = function () {
|
|
1385
|
+
return this.k20_1.u1w();
|
|
1399
1386
|
};
|
|
1400
1387
|
protoOf(Companion_3).hashCode = function () {
|
|
1401
|
-
return hashCode(XYZColorSpaces_getInstance().
|
|
1388
|
+
return hashCode(XYZColorSpaces_getInstance().l20_1);
|
|
1402
1389
|
};
|
|
1403
1390
|
protoOf(Companion_3).equals = function (other) {
|
|
1404
|
-
return equals(XYZColorSpaces_getInstance().
|
|
1391
|
+
return equals(XYZColorSpaces_getInstance().l20_1, other);
|
|
1405
1392
|
};
|
|
1406
1393
|
var Companion_instance_3;
|
|
1407
1394
|
function Companion_getInstance_3() {
|
|
@@ -1410,71 +1397,71 @@
|
|
|
1410
1397
|
return Companion_instance_3;
|
|
1411
1398
|
}
|
|
1412
1399
|
function adaptToM($this, space, m, mi) {
|
|
1413
|
-
if (space.
|
|
1400
|
+
if (space.s1y().equals($this.c1z_1.s1y()))
|
|
1414
1401
|
return $this;
|
|
1415
|
-
var transform = chromaticAdaptationMatrix(space, $this.
|
|
1402
|
+
var transform = chromaticAdaptationMatrix(space, $this.c1z_1.s1y().k1w_1, m, mi);
|
|
1416
1403
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1417
|
-
var v0 = $this.
|
|
1418
|
-
var v1 = $this.
|
|
1419
|
-
var v2 = $this.
|
|
1404
|
+
var v0 = $this.y1y_1;
|
|
1405
|
+
var v1 = $this.z1y_1;
|
|
1406
|
+
var v2 = $this.a1z_1;
|
|
1420
1407
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.adaptToM.<anonymous>' call
|
|
1421
1408
|
var xx = Matrix__get_impl_xogbpk(transform, 0, 0) * v0 + Matrix__get_impl_xogbpk(transform, 1, 0) * v1 + Matrix__get_impl_xogbpk(transform, 2, 0) * v2;
|
|
1422
1409
|
var yy = Matrix__get_impl_xogbpk(transform, 0, 1) * v0 + Matrix__get_impl_xogbpk(transform, 1, 1) * v1 + Matrix__get_impl_xogbpk(transform, 2, 1) * v2;
|
|
1423
1410
|
var zz = Matrix__get_impl_xogbpk(transform, 0, 2) * v0 + Matrix__get_impl_xogbpk(transform, 1, 2) * v1 + Matrix__get_impl_xogbpk(transform, 2, 2) * v2;
|
|
1424
|
-
return space.
|
|
1411
|
+
return space.i1x(xx, yy, zz, $this.b1z_1);
|
|
1425
1412
|
}
|
|
1426
1413
|
function XYZ(x, y, z, alpha, space) {
|
|
1427
1414
|
Companion_getInstance_3();
|
|
1428
|
-
this.
|
|
1429
|
-
this.
|
|
1430
|
-
this.
|
|
1431
|
-
this.
|
|
1432
|
-
this.
|
|
1415
|
+
this.y1y_1 = x;
|
|
1416
|
+
this.z1y_1 = y;
|
|
1417
|
+
this.a1z_1 = z;
|
|
1418
|
+
this.b1z_1 = alpha;
|
|
1419
|
+
this.c1z_1 = space;
|
|
1433
1420
|
}
|
|
1434
|
-
protoOf(XYZ).
|
|
1435
|
-
return this.
|
|
1421
|
+
protoOf(XYZ).x1v = function () {
|
|
1422
|
+
return this.c1z_1;
|
|
1436
1423
|
};
|
|
1437
|
-
protoOf(XYZ).
|
|
1424
|
+
protoOf(XYZ).n20 = function (space) {
|
|
1438
1425
|
return adaptToM(this, space, get_CAT02_XYZ_TO_LMS(), get_CAT02_LMS_TO_XYZ());
|
|
1439
1426
|
};
|
|
1440
|
-
protoOf(XYZ).
|
|
1441
|
-
var
|
|
1442
|
-
var x =
|
|
1443
|
-
var y =
|
|
1444
|
-
var z =
|
|
1445
|
-
var f = space.
|
|
1427
|
+
protoOf(XYZ).d1z = function (space) {
|
|
1428
|
+
var _destruct__k2r9zo = this.n20(XYZColorSpace_0(space.s1y()));
|
|
1429
|
+
var x = _destruct__k2r9zo.k9();
|
|
1430
|
+
var y = _destruct__k2r9zo.l9();
|
|
1431
|
+
var z = _destruct__k2r9zo.rg();
|
|
1432
|
+
var f = space.b1y();
|
|
1446
1433
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1447
|
-
var this_0 = _Matrix___init__impl__q3kp4w(space.
|
|
1434
|
+
var this_0 = _Matrix___init__impl__q3kp4w(space.r1y());
|
|
1448
1435
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.toRGB.<anonymous>' call
|
|
1449
1436
|
var r = 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;
|
|
1450
1437
|
var g = 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;
|
|
1451
1438
|
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;
|
|
1452
|
-
return space.
|
|
1439
|
+
return space.i1x(f.l1y(r), f.l1y(g), f.l1y(b), this.b1z_1);
|
|
1453
1440
|
};
|
|
1454
|
-
protoOf(XYZ).
|
|
1455
|
-
return this.
|
|
1441
|
+
protoOf(XYZ).y1v = function () {
|
|
1442
|
+
return this.d1z(RGBColorSpaces_getInstance().p1x_1);
|
|
1456
1443
|
};
|
|
1457
|
-
protoOf(XYZ).
|
|
1444
|
+
protoOf(XYZ).z1v = function () {
|
|
1458
1445
|
return this;
|
|
1459
1446
|
};
|
|
1460
|
-
protoOf(XYZ).
|
|
1461
|
-
return this.
|
|
1447
|
+
protoOf(XYZ).k9 = function () {
|
|
1448
|
+
return this.y1y_1;
|
|
1462
1449
|
};
|
|
1463
|
-
protoOf(XYZ).
|
|
1464
|
-
return this.
|
|
1450
|
+
protoOf(XYZ).l9 = function () {
|
|
1451
|
+
return this.z1y_1;
|
|
1465
1452
|
};
|
|
1466
|
-
protoOf(XYZ).
|
|
1467
|
-
return this.
|
|
1453
|
+
protoOf(XYZ).rg = function () {
|
|
1454
|
+
return this.a1z_1;
|
|
1468
1455
|
};
|
|
1469
1456
|
protoOf(XYZ).toString = function () {
|
|
1470
|
-
return 'XYZ(x=' + this.
|
|
1457
|
+
return 'XYZ(x=' + this.y1y_1 + ', y=' + this.z1y_1 + ', z=' + this.a1z_1 + ', alpha=' + this.b1z_1 + ', space=' + this.c1z_1 + ')';
|
|
1471
1458
|
};
|
|
1472
1459
|
protoOf(XYZ).hashCode = function () {
|
|
1473
|
-
var result = getNumberHashCode(this.
|
|
1474
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1475
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1476
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1477
|
-
result = imul(result, 31) + hashCode(this.
|
|
1460
|
+
var result = getNumberHashCode(this.y1y_1);
|
|
1461
|
+
result = imul(result, 31) + getNumberHashCode(this.z1y_1) | 0;
|
|
1462
|
+
result = imul(result, 31) + getNumberHashCode(this.a1z_1) | 0;
|
|
1463
|
+
result = imul(result, 31) + getNumberHashCode(this.b1z_1) | 0;
|
|
1464
|
+
result = imul(result, 31) + hashCode(this.c1z_1) | 0;
|
|
1478
1465
|
return result;
|
|
1479
1466
|
};
|
|
1480
1467
|
protoOf(XYZ).equals = function (other) {
|
|
@@ -1483,27 +1470,27 @@
|
|
|
1483
1470
|
if (!(other instanceof XYZ))
|
|
1484
1471
|
return false;
|
|
1485
1472
|
var tmp0_other_with_cast = other instanceof XYZ ? other : THROW_CCE();
|
|
1486
|
-
if (!equals(this.
|
|
1473
|
+
if (!equals(this.y1y_1, tmp0_other_with_cast.y1y_1))
|
|
1487
1474
|
return false;
|
|
1488
|
-
if (!equals(this.
|
|
1475
|
+
if (!equals(this.z1y_1, tmp0_other_with_cast.z1y_1))
|
|
1489
1476
|
return false;
|
|
1490
|
-
if (!equals(this.
|
|
1477
|
+
if (!equals(this.a1z_1, tmp0_other_with_cast.a1z_1))
|
|
1491
1478
|
return false;
|
|
1492
|
-
if (!equals(this.
|
|
1479
|
+
if (!equals(this.b1z_1, tmp0_other_with_cast.b1z_1))
|
|
1493
1480
|
return false;
|
|
1494
|
-
if (!equals(this.
|
|
1481
|
+
if (!equals(this.c1z_1, tmp0_other_with_cast.c1z_1))
|
|
1495
1482
|
return false;
|
|
1496
1483
|
return true;
|
|
1497
1484
|
};
|
|
1498
1485
|
function XYZColorSpace() {
|
|
1499
1486
|
}
|
|
1500
1487
|
function XYZColorSpace_0(whitePoint) {
|
|
1501
|
-
return whitePoint.equals(Illuminant_getInstance().
|
|
1488
|
+
return whitePoint.equals(Illuminant_getInstance().q1w_1) ? XYZColorSpaces_getInstance().l20_1 : whitePoint.equals(Illuminant_getInstance().o1w_1) ? XYZColorSpaces_getInstance().m20_1 : new XYZColorSpaceImpl(whitePoint);
|
|
1502
1489
|
}
|
|
1503
1490
|
function XYZColorSpaces() {
|
|
1504
1491
|
XYZColorSpaces_instance = this;
|
|
1505
|
-
this.
|
|
1506
|
-
this.
|
|
1492
|
+
this.l20_1 = new XYZColorSpaceImpl(Illuminant_getInstance().q1w_1);
|
|
1493
|
+
this.m20_1 = new XYZColorSpaceImpl(Illuminant_getInstance().o1w_1);
|
|
1507
1494
|
}
|
|
1508
1495
|
var XYZColorSpaces_instance;
|
|
1509
1496
|
function XYZColorSpaces_getInstance() {
|
|
@@ -1514,34 +1501,34 @@
|
|
|
1514
1501
|
function chromaticAdaptationMatrix(_this__u8e3s4, srcWp, xyzToLms, lmsToXyz) {
|
|
1515
1502
|
xyzToLms = xyzToLms === VOID ? get_CAT02_XYZ_TO_LMS() : xyzToLms;
|
|
1516
1503
|
lmsToXyz = lmsToXyz === VOID ? get_CAT02_LMS_TO_XYZ() : lmsToXyz;
|
|
1517
|
-
var dstWp = _this__u8e3s4.
|
|
1518
|
-
var src = dot_0(xyzToLms, srcWp.
|
|
1519
|
-
var dst = dot_0(xyzToLms, dstWp.
|
|
1504
|
+
var dstWp = _this__u8e3s4.s1y().k1w_1;
|
|
1505
|
+
var src = dot_0(xyzToLms, srcWp.i20(), srcWp.g20_1, srcWp.j20());
|
|
1506
|
+
var dst = dot_0(xyzToLms, dstWp.i20(), dstWp.g20_1, dstWp.j20());
|
|
1520
1507
|
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);
|
|
1521
1508
|
}
|
|
1522
1509
|
function XYZColorSpaceImpl(whitePoint) {
|
|
1523
|
-
this.
|
|
1524
|
-
this.
|
|
1510
|
+
this.o20_1 = whitePoint;
|
|
1511
|
+
this.p20_1 = zeroOneComponentInfo('XYZ');
|
|
1525
1512
|
}
|
|
1526
|
-
protoOf(XYZColorSpaceImpl).
|
|
1527
|
-
return this.
|
|
1513
|
+
protoOf(XYZColorSpaceImpl).s1y = function () {
|
|
1514
|
+
return this.o20_1;
|
|
1528
1515
|
};
|
|
1529
|
-
protoOf(XYZColorSpaceImpl).
|
|
1530
|
-
return this.
|
|
1516
|
+
protoOf(XYZColorSpaceImpl).u1w = function () {
|
|
1517
|
+
return this.p20_1;
|
|
1531
1518
|
};
|
|
1532
1519
|
protoOf(XYZColorSpaceImpl).toString = function () {
|
|
1533
|
-
return 'XYZColorSpace(' + this.
|
|
1520
|
+
return 'XYZColorSpace(' + this.o20_1 + ')';
|
|
1534
1521
|
};
|
|
1535
|
-
protoOf(XYZColorSpaceImpl).
|
|
1522
|
+
protoOf(XYZColorSpaceImpl).i1x = function (x, y, z, alpha) {
|
|
1536
1523
|
return new XYZ(x, y, z, alpha, this);
|
|
1537
1524
|
};
|
|
1538
1525
|
protoOf(XYZColorSpaceImpl).hashCode = function () {
|
|
1539
|
-
return this.
|
|
1526
|
+
return this.o20_1.hashCode();
|
|
1540
1527
|
};
|
|
1541
1528
|
protoOf(XYZColorSpaceImpl).equals = function (other) {
|
|
1542
1529
|
var tmp;
|
|
1543
1530
|
if (!(other == null) ? isInterface(other, XYZColorSpace) : false) {
|
|
1544
|
-
tmp = this.
|
|
1531
|
+
tmp = this.o20_1.equals(other.s1y());
|
|
1545
1532
|
} else {
|
|
1546
1533
|
tmp = false;
|
|
1547
1534
|
}
|
|
@@ -1557,26 +1544,26 @@
|
|
|
1557
1544
|
}
|
|
1558
1545
|
function xyY(x, y, Y) {
|
|
1559
1546
|
Y = Y === VOID ? 1.0 : Y;
|
|
1560
|
-
this.
|
|
1561
|
-
this.
|
|
1562
|
-
this.
|
|
1547
|
+
this.e20_1 = x;
|
|
1548
|
+
this.f20_1 = y;
|
|
1549
|
+
this.g20_1 = Y;
|
|
1563
1550
|
}
|
|
1564
|
-
protoOf(xyY).
|
|
1565
|
-
return 1 - this.
|
|
1551
|
+
protoOf(xyY).h20 = function () {
|
|
1552
|
+
return 1 - this.e20_1 - this.f20_1;
|
|
1566
1553
|
};
|
|
1567
|
-
protoOf(xyY).
|
|
1568
|
-
return this.
|
|
1554
|
+
protoOf(xyY).i20 = function () {
|
|
1555
|
+
return this.e20_1 * this.g20_1 / this.f20_1;
|
|
1569
1556
|
};
|
|
1570
|
-
protoOf(xyY).
|
|
1571
|
-
return (1 - this.
|
|
1557
|
+
protoOf(xyY).j20 = function () {
|
|
1558
|
+
return (1 - this.e20_1 - this.f20_1) * this.g20_1 / this.f20_1;
|
|
1572
1559
|
};
|
|
1573
1560
|
protoOf(xyY).toString = function () {
|
|
1574
|
-
return 'xyY(x=' + this.
|
|
1561
|
+
return 'xyY(x=' + this.e20_1 + ', y=' + this.f20_1 + ', Y=' + this.g20_1 + ')';
|
|
1575
1562
|
};
|
|
1576
1563
|
protoOf(xyY).hashCode = function () {
|
|
1577
|
-
var result = getNumberHashCode(this.
|
|
1578
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1579
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1564
|
+
var result = getNumberHashCode(this.e20_1);
|
|
1565
|
+
result = imul(result, 31) + getNumberHashCode(this.f20_1) | 0;
|
|
1566
|
+
result = imul(result, 31) + getNumberHashCode(this.g20_1) | 0;
|
|
1580
1567
|
return result;
|
|
1581
1568
|
};
|
|
1582
1569
|
protoOf(xyY).equals = function (other) {
|
|
@@ -1585,30 +1572,30 @@
|
|
|
1585
1572
|
if (!(other instanceof xyY))
|
|
1586
1573
|
return false;
|
|
1587
1574
|
var tmp0_other_with_cast = other instanceof xyY ? other : THROW_CCE();
|
|
1588
|
-
if (!equals(this.
|
|
1575
|
+
if (!equals(this.e20_1, tmp0_other_with_cast.e20_1))
|
|
1589
1576
|
return false;
|
|
1590
|
-
if (!equals(this.
|
|
1577
|
+
if (!equals(this.f20_1, tmp0_other_with_cast.f20_1))
|
|
1591
1578
|
return false;
|
|
1592
|
-
if (!equals(this.
|
|
1579
|
+
if (!equals(this.g20_1, tmp0_other_with_cast.g20_1))
|
|
1593
1580
|
return false;
|
|
1594
1581
|
return true;
|
|
1595
1582
|
};
|
|
1596
1583
|
//region block: post-declaration
|
|
1597
|
-
protoOf(Ansi16).
|
|
1598
|
-
protoOf(Ansi256).
|
|
1599
|
-
protoOf(HSV).
|
|
1600
|
-
protoOf(Companion_2).
|
|
1601
|
-
protoOf(Companion_2).
|
|
1602
|
-
protoOf(Companion_2).
|
|
1603
|
-
protoOf(SRGB).
|
|
1604
|
-
protoOf(SRGB).
|
|
1605
|
-
protoOf(SRGB).
|
|
1606
|
-
protoOf(RGBColorSpaceImpl).
|
|
1607
|
-
protoOf(RGBColorSpaceImpl).
|
|
1608
|
-
protoOf(RGBColorSpaceImpl).
|
|
1609
|
-
protoOf(RGBColorSpaceImpl).
|
|
1610
|
-
protoOf(RGBColorSpaceImpl).
|
|
1611
|
-
protoOf(RGBColorSpaceImpl).
|
|
1584
|
+
protoOf(Ansi16).z1v = toXYZ;
|
|
1585
|
+
protoOf(Ansi256).z1v = toXYZ;
|
|
1586
|
+
protoOf(HSV).z1v = toXYZ;
|
|
1587
|
+
protoOf(Companion_2).w1w = invoke$default;
|
|
1588
|
+
protoOf(Companion_2).b1x = invoke$default_0;
|
|
1589
|
+
protoOf(Companion_2).x1w = from255$default;
|
|
1590
|
+
protoOf(SRGB).w1w = invoke$default;
|
|
1591
|
+
protoOf(SRGB).b1x = invoke$default_0;
|
|
1592
|
+
protoOf(SRGB).x1w = from255$default;
|
|
1593
|
+
protoOf(RGBColorSpaceImpl).w1w = invoke$default;
|
|
1594
|
+
protoOf(RGBColorSpaceImpl).n1y = invoke;
|
|
1595
|
+
protoOf(RGBColorSpaceImpl).b1x = invoke$default_0;
|
|
1596
|
+
protoOf(RGBColorSpaceImpl).p1y = invoke_0;
|
|
1597
|
+
protoOf(RGBColorSpaceImpl).o1y = from255;
|
|
1598
|
+
protoOf(RGBColorSpaceImpl).x1w = from255$default;
|
|
1612
1599
|
//endregion
|
|
1613
1600
|
//region block: init
|
|
1614
1601
|
PqNonlinearity_instance = new PqNonlinearity();
|