git-digger 1.7.33 → 1.8.1
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 +2 -5910
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/kotlin/clikt-clikt-mordant.js +99 -99
- package/kotlin/clikt-clikt.js +2068 -2068
- package/kotlin/colormath-root-colormath.js +480 -480
- package/kotlin/command-line-tools-digger-cli.js +75 -75
- package/kotlin/command-line-tools-digger-cli.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +2982 -2493
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1073 -1206
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +360 -360
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/kotlin/mordant-mordant.js +1688 -1696
- package/kotlin/mordant-mordant.js.map +1 -1
- package/kotlin/tools-cli-tools.js +4 -4
- package/kotlin/tools-digger-core.js +221 -221
- package/kotlin/tools-digger-core.js.map +1 -1
- package/kotlin/tools-digger-json.js +135 -129
- package/kotlin/tools-digger-json.js.map +1 -1
- package/kotlin/tools-digger-model.js +60 -60
- package/kotlin/tools-digger-model.js.map +1 -1
- package/kotlin/tools-git-adapter.js +96 -96
- package/kotlin/tools-git-adapter.js.map +1 -1
- package/package.json +1 -2
|
@@ -3,47 +3,47 @@
|
|
|
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.$_$.
|
|
9
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
10
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
11
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
12
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
13
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
14
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.f8;
|
|
7
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.k7;
|
|
8
|
+
var toString = kotlin_kotlin.$_$.i8;
|
|
9
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.a1;
|
|
10
|
+
var Unit_instance = kotlin_kotlin.$_$.d3;
|
|
11
|
+
var initMetadataForClass = kotlin_kotlin.$_$.h7;
|
|
12
|
+
var getStringHashCode = kotlin_kotlin.$_$.f7;
|
|
13
|
+
var THROW_CCE = kotlin_kotlin.$_$.jb;
|
|
14
|
+
var initMetadataForObject = kotlin_kotlin.$_$.m7;
|
|
15
15
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
16
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
17
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
18
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
19
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
16
|
+
var charSequenceLength = kotlin_kotlin.$_$.y6;
|
|
17
|
+
var charSequenceGet = kotlin_kotlin.$_$.x6;
|
|
18
|
+
var toString_0 = kotlin_kotlin.$_$.m1;
|
|
19
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.k1;
|
|
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.$_$.b5;
|
|
22
|
+
var withSign = kotlin_kotlin.$_$.k8;
|
|
23
|
+
var trimMargin = kotlin_kotlin.$_$.sa;
|
|
24
|
+
var hashCode = kotlin_kotlin.$_$.g7;
|
|
25
|
+
var equals = kotlin_kotlin.$_$.b7;
|
|
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 charCodeAt = kotlin_kotlin.$_$.
|
|
34
|
-
var Char = kotlin_kotlin.$_$.
|
|
35
|
-
var toInt = kotlin_kotlin.$_$.
|
|
36
|
-
var numberRangeToNumber = kotlin_kotlin.$_$.
|
|
37
|
-
var slice = kotlin_kotlin.$_$.
|
|
38
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
39
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
40
|
-
var contentEquals = kotlin_kotlin.$_$.
|
|
41
|
-
var coerceAtLeast_0 = kotlin_kotlin.$_$.
|
|
42
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
27
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.i7;
|
|
28
|
+
var coerceAtLeast = kotlin_kotlin.$_$.l8;
|
|
29
|
+
var getNumberHashCode = kotlin_kotlin.$_$.d7;
|
|
30
|
+
var numberToDouble = kotlin_kotlin.$_$.c8;
|
|
31
|
+
var roundToInt = kotlin_kotlin.$_$.j8;
|
|
32
|
+
var coerceIn = kotlin_kotlin.$_$.p8;
|
|
33
|
+
var charCodeAt = kotlin_kotlin.$_$.w6;
|
|
34
|
+
var Char = kotlin_kotlin.$_$.ya;
|
|
35
|
+
var toInt = kotlin_kotlin.$_$.qa;
|
|
36
|
+
var numberRangeToNumber = kotlin_kotlin.$_$.a8;
|
|
37
|
+
var slice = kotlin_kotlin.$_$.ga;
|
|
38
|
+
var startsWith = kotlin_kotlin.$_$.ia;
|
|
39
|
+
var isInterface = kotlin_kotlin.$_$.v7;
|
|
40
|
+
var contentEquals = kotlin_kotlin.$_$.c4;
|
|
41
|
+
var coerceAtLeast_0 = kotlin_kotlin.$_$.n8;
|
|
42
|
+
var objectCreate = kotlin_kotlin.$_$.e8;
|
|
43
43
|
//endregion
|
|
44
44
|
//region block: pre-declaration
|
|
45
45
|
function toXYZ() {
|
|
46
|
-
return this.
|
|
46
|
+
return this.v1j().w1j();
|
|
47
47
|
}
|
|
48
48
|
initMetadataForInterface(Color, 'Color');
|
|
49
49
|
initMetadataForClass(ColorComponentInfo, 'ColorComponentInfo');
|
|
@@ -63,21 +63,21 @@
|
|
|
63
63
|
initMetadataForObject(LinearTransferFunctions, 'LinearTransferFunctions');
|
|
64
64
|
function invoke$default(r, g, b, alpha, $super) {
|
|
65
65
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
66
|
-
return $super === VOID ? this.
|
|
66
|
+
return $super === VOID ? this.h1l(r, g, b, alpha) : $super.h1l.call(this, r, g, b, alpha);
|
|
67
67
|
}
|
|
68
68
|
function invoke(r, g, b, alpha) {
|
|
69
|
-
return this.
|
|
69
|
+
return this.h1l(numberToDouble(r), numberToDouble(g), numberToDouble(b), numberToDouble(alpha));
|
|
70
70
|
}
|
|
71
71
|
function invoke$default_0(r, g, b, alpha, $super) {
|
|
72
72
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
73
|
-
return $super === VOID ? this.
|
|
73
|
+
return $super === VOID ? this.m1m(r, g, b, alpha) : invoke(r, g, b, alpha);
|
|
74
74
|
}
|
|
75
75
|
function from255(r, g, b, alpha) {
|
|
76
|
-
return this.
|
|
76
|
+
return this.h1l(r / 255.0, g / 255.0, b / 255.0, alpha / 255.0);
|
|
77
77
|
}
|
|
78
78
|
function from255$default(r, g, b, alpha, $super) {
|
|
79
79
|
alpha = alpha === VOID ? 255 : alpha;
|
|
80
|
-
return $super === VOID ? this.
|
|
80
|
+
return $super === VOID ? this.n1m(r, g, b, alpha) : from255(r, g, b, alpha);
|
|
81
81
|
}
|
|
82
82
|
function invoke_0(hex) {
|
|
83
83
|
var tmp = parseHex(validateHex(hex), 0);
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
} else {
|
|
92
92
|
tmp_2 = 255;
|
|
93
93
|
}
|
|
94
|
-
return this.
|
|
94
|
+
return this.n1m(tmp, tmp_0, tmp_1, tmp_2);
|
|
95
95
|
}
|
|
96
96
|
initMetadataForInterface(RGBColorSpace, 'RGBColorSpace');
|
|
97
97
|
initMetadataForCompanion(Companion_2, VOID, [RGBColorSpace]);
|
|
@@ -115,26 +115,26 @@
|
|
|
115
115
|
function Color() {
|
|
116
116
|
}
|
|
117
117
|
function ColorComponentInfo(name, isPolar, min, max) {
|
|
118
|
-
this.
|
|
119
|
-
this.
|
|
120
|
-
this.
|
|
121
|
-
this.
|
|
118
|
+
this.c1k_1 = name;
|
|
119
|
+
this.d1k_1 = isPolar;
|
|
120
|
+
this.e1k_1 = min;
|
|
121
|
+
this.f1k_1 = max;
|
|
122
122
|
// Inline function 'kotlin.require' call
|
|
123
|
-
if (!(this.
|
|
123
|
+
if (!(this.e1k_1 <= this.f1k_1)) {
|
|
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.g1k_1 = name;
|
|
130
|
+
this.h1k_1 = chromaticity;
|
|
131
131
|
}
|
|
132
132
|
protoOf(WhitePoint).toString = function () {
|
|
133
|
-
return this.
|
|
133
|
+
return this.g1k_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.g1k_1);
|
|
137
|
+
result = imul(result, 31) + this.h1k_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.g1k_1 === tmp0_other_with_cast.g1k_1))
|
|
147
147
|
return false;
|
|
148
|
-
if (!this.
|
|
148
|
+
if (!this.h1k_1.equals(tmp0_other_with_cast.h1k_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.i1k_1 = new WhitePoint('A', xyY_init_$Create$(0.44758, 0.40745));
|
|
155
|
+
this.j1k_1 = new WhitePoint('B', xyY_init_$Create$(0.34842, 0.35161));
|
|
156
|
+
this.k1k_1 = new WhitePoint('C', xyY_init_$Create$(0.31006, 0.31616));
|
|
157
|
+
this.l1k_1 = new WhitePoint('D50', xyY_init_$Create$(0.3457, 0.3585));
|
|
158
|
+
this.m1k_1 = new WhitePoint('D55', xyY_init_$Create$(0.33243, 0.34744));
|
|
159
|
+
this.n1k_1 = new WhitePoint('D65', xyY_init_$Create$(0.3127, 0.329));
|
|
160
|
+
this.o1k_1 = new WhitePoint('D75', xyY_init_$Create$(0.29903, 0.31488));
|
|
161
|
+
this.p1k_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() {
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
this_0.e(tmp$ret$0);
|
|
187
187
|
}
|
|
188
188
|
this_0.e(get_alphaInfo());
|
|
189
|
-
return this_0.
|
|
189
|
+
return this_0.e5();
|
|
190
190
|
}
|
|
191
191
|
function polarComponentInfo(name, l, r) {
|
|
192
192
|
_init_properties_ColorSpaceUtils_kt__cnwylg();
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
this_0.e(tmp$ret$0);
|
|
204
204
|
}
|
|
205
205
|
this_0.e(get_alphaInfo());
|
|
206
|
-
return this_0.
|
|
206
|
+
return this_0.e5();
|
|
207
207
|
}
|
|
208
208
|
function componentInfoList(c) {
|
|
209
209
|
_init_properties_ColorSpaceUtils_kt__cnwylg();
|
|
@@ -285,22 +285,22 @@
|
|
|
285
285
|
function Matrix__equals_impl_g5p8p9($this, other) {
|
|
286
286
|
if (!(other instanceof Matrix))
|
|
287
287
|
return false;
|
|
288
|
-
var tmp0_other_with_cast = other instanceof Matrix ? other.
|
|
288
|
+
var tmp0_other_with_cast = other instanceof Matrix ? other.q1k_1 : THROW_CCE();
|
|
289
289
|
if (!equals($this, tmp0_other_with_cast))
|
|
290
290
|
return false;
|
|
291
291
|
return true;
|
|
292
292
|
}
|
|
293
293
|
function Matrix(rowMajor) {
|
|
294
|
-
this.
|
|
294
|
+
this.q1k_1 = rowMajor;
|
|
295
295
|
}
|
|
296
296
|
protoOf(Matrix).toString = function () {
|
|
297
|
-
return Matrix__toString_impl_l0abk0(this.
|
|
297
|
+
return Matrix__toString_impl_l0abk0(this.q1k_1);
|
|
298
298
|
};
|
|
299
299
|
protoOf(Matrix).hashCode = function () {
|
|
300
|
-
return Matrix__hashCode_impl_s9ntm9(this.
|
|
300
|
+
return Matrix__hashCode_impl_s9ntm9(this.q1k_1);
|
|
301
301
|
};
|
|
302
302
|
protoOf(Matrix).equals = function (other) {
|
|
303
|
-
return Matrix__equals_impl_g5p8p9(this.
|
|
303
|
+
return Matrix__equals_impl_g5p8p9(this.q1k_1, other);
|
|
304
304
|
};
|
|
305
305
|
function inverse(_this__u8e3s4, inPlace) {
|
|
306
306
|
inPlace = inPlace === VOID ? false : inPlace;
|
|
@@ -378,22 +378,22 @@
|
|
|
378
378
|
function Vector__equals_impl_hy6igl($this, other) {
|
|
379
379
|
if (!(other instanceof Vector))
|
|
380
380
|
return false;
|
|
381
|
-
var tmp0_other_with_cast = other instanceof Vector ? other.
|
|
381
|
+
var tmp0_other_with_cast = other instanceof Vector ? other.r1k_1 : THROW_CCE();
|
|
382
382
|
if (!equals($this, tmp0_other_with_cast))
|
|
383
383
|
return false;
|
|
384
384
|
return true;
|
|
385
385
|
}
|
|
386
386
|
function Vector(values) {
|
|
387
|
-
this.
|
|
387
|
+
this.r1k_1 = values;
|
|
388
388
|
}
|
|
389
389
|
protoOf(Vector).toString = function () {
|
|
390
|
-
return Vector__toString_impl_hn2ybi(this.
|
|
390
|
+
return Vector__toString_impl_hn2ybi(this.r1k_1);
|
|
391
391
|
};
|
|
392
392
|
protoOf(Vector).hashCode = function () {
|
|
393
|
-
return Vector__hashCode_impl_442yhd(this.
|
|
393
|
+
return Vector__hashCode_impl_442yhd(this.r1k_1);
|
|
394
394
|
};
|
|
395
395
|
protoOf(Vector).equals = function (other) {
|
|
396
|
-
return Vector__equals_impl_hy6igl(this.
|
|
396
|
+
return Vector__equals_impl_hy6igl(this.r1k_1, other);
|
|
397
397
|
};
|
|
398
398
|
function dot_0(_this__u8e3s4, v0, v1, v2) {
|
|
399
399
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
@@ -407,10 +407,10 @@
|
|
|
407
407
|
}
|
|
408
408
|
function Companion() {
|
|
409
409
|
Companion_instance = this;
|
|
410
|
-
this.
|
|
410
|
+
this.s1k_1 = componentInfoList([new ColorComponentInfo('code', false, 30.0, 107.0)]);
|
|
411
411
|
}
|
|
412
|
-
protoOf(Companion).
|
|
413
|
-
return this.
|
|
412
|
+
protoOf(Companion).t1k = function () {
|
|
413
|
+
return this.s1k_1;
|
|
414
414
|
};
|
|
415
415
|
var Companion_instance;
|
|
416
416
|
function Companion_getInstance() {
|
|
@@ -420,38 +420,38 @@
|
|
|
420
420
|
}
|
|
421
421
|
function Ansi16(code) {
|
|
422
422
|
Companion_getInstance();
|
|
423
|
-
this.
|
|
423
|
+
this.u1k_1 = code;
|
|
424
424
|
}
|
|
425
|
-
protoOf(Ansi16).
|
|
425
|
+
protoOf(Ansi16).u1j = function () {
|
|
426
426
|
return Companion_getInstance();
|
|
427
427
|
};
|
|
428
|
-
protoOf(Ansi16).
|
|
429
|
-
switch (this.
|
|
428
|
+
protoOf(Ansi16).v1j = function () {
|
|
429
|
+
switch (this.u1k_1) {
|
|
430
430
|
case 30:
|
|
431
431
|
case 40:
|
|
432
|
-
return Companion_getInstance_2().
|
|
432
|
+
return Companion_getInstance_2().v1k(0.0, 0.0, 0.0);
|
|
433
433
|
case 90:
|
|
434
434
|
case 100:
|
|
435
|
-
return Companion_getInstance_2().
|
|
435
|
+
return Companion_getInstance_2().w1k(128, 128, 128);
|
|
436
436
|
case 37:
|
|
437
437
|
case 47:
|
|
438
|
-
return Companion_getInstance_2().
|
|
438
|
+
return Companion_getInstance_2().w1k(192, 192, 192);
|
|
439
439
|
case 97:
|
|
440
440
|
case 107:
|
|
441
|
-
return Companion_getInstance_2().
|
|
441
|
+
return Companion_getInstance_2().v1k(1.0, 1.0, 1.0);
|
|
442
442
|
}
|
|
443
|
-
var color = this.
|
|
444
|
-
var mul = this.
|
|
443
|
+
var color = this.u1k_1 % 10 | 0;
|
|
444
|
+
var mul = this.u1k_1 > 50 ? 1.0 : 0.5;
|
|
445
445
|
var r = (color % 2 | 0) * mul;
|
|
446
446
|
var g = ((color / 2 | 0) % 2 | 0) * mul;
|
|
447
447
|
var b = ((color / 4 | 0) % 2 | 0) * mul;
|
|
448
|
-
return Companion_getInstance_2().
|
|
448
|
+
return Companion_getInstance_2().v1k(r, g, b);
|
|
449
449
|
};
|
|
450
450
|
protoOf(Ansi16).toString = function () {
|
|
451
|
-
return 'Ansi16(code=' + this.
|
|
451
|
+
return 'Ansi16(code=' + this.u1k_1 + ')';
|
|
452
452
|
};
|
|
453
453
|
protoOf(Ansi16).hashCode = function () {
|
|
454
|
-
return this.
|
|
454
|
+
return this.u1k_1;
|
|
455
455
|
};
|
|
456
456
|
protoOf(Ansi16).equals = function (other) {
|
|
457
457
|
if (this === other)
|
|
@@ -459,16 +459,16 @@
|
|
|
459
459
|
if (!(other instanceof Ansi16))
|
|
460
460
|
return false;
|
|
461
461
|
var tmp0_other_with_cast = other instanceof Ansi16 ? other : THROW_CCE();
|
|
462
|
-
if (!(this.
|
|
462
|
+
if (!(this.u1k_1 === tmp0_other_with_cast.u1k_1))
|
|
463
463
|
return false;
|
|
464
464
|
return true;
|
|
465
465
|
};
|
|
466
466
|
function Companion_0() {
|
|
467
467
|
Companion_instance_0 = this;
|
|
468
|
-
this.
|
|
468
|
+
this.x1k_1 = componentInfoList([new ColorComponentInfo('code', false, 0.0, 255.0)]);
|
|
469
469
|
}
|
|
470
|
-
protoOf(Companion_0).
|
|
471
|
-
return this.
|
|
470
|
+
protoOf(Companion_0).t1k = function () {
|
|
471
|
+
return this.x1k_1;
|
|
472
472
|
};
|
|
473
473
|
var Companion_instance_0;
|
|
474
474
|
function Companion_getInstance_0() {
|
|
@@ -478,19 +478,19 @@
|
|
|
478
478
|
}
|
|
479
479
|
function Ansi256(code) {
|
|
480
480
|
Companion_getInstance_0();
|
|
481
|
-
this.
|
|
481
|
+
this.y1k_1 = code;
|
|
482
482
|
}
|
|
483
|
-
protoOf(Ansi256).
|
|
483
|
+
protoOf(Ansi256).u1j = function () {
|
|
484
484
|
return Companion_getInstance_0();
|
|
485
485
|
};
|
|
486
|
-
protoOf(Ansi256).
|
|
487
|
-
if (this.
|
|
488
|
-
return this.
|
|
489
|
-
if (this.
|
|
490
|
-
var c = imul(this.
|
|
491
|
-
return Companion_getInstance_2().
|
|
486
|
+
protoOf(Ansi256).v1j = function () {
|
|
487
|
+
if (this.y1k_1 < 16)
|
|
488
|
+
return this.z1k().v1j();
|
|
489
|
+
if (this.y1k_1 >= 232) {
|
|
490
|
+
var c = imul(this.y1k_1 - 232 | 0, 10) + 8 | 0;
|
|
491
|
+
return Companion_getInstance_2().w1k(c, c, c);
|
|
492
492
|
}
|
|
493
|
-
var c_0 = this.
|
|
493
|
+
var c_0 = this.y1k_1 - 16 | 0;
|
|
494
494
|
var rem = c_0 % 36 | 0;
|
|
495
495
|
// Inline function 'kotlin.math.floor' call
|
|
496
496
|
var x = c_0 / 36.0;
|
|
@@ -499,16 +499,16 @@
|
|
|
499
499
|
var x_0 = rem / 6.0;
|
|
500
500
|
var g = Math.floor(x_0) / 5.0;
|
|
501
501
|
var b = (rem % 6 | 0) / 5.0;
|
|
502
|
-
return Companion_getInstance_2().
|
|
502
|
+
return Companion_getInstance_2().a1l(r, g, b);
|
|
503
503
|
};
|
|
504
|
-
protoOf(Ansi256).
|
|
505
|
-
return this.
|
|
504
|
+
protoOf(Ansi256).z1k = function () {
|
|
505
|
+
return this.y1k_1 < 8 ? new Ansi16(this.y1k_1 + 30 | 0) : this.y1k_1 < 16 ? new Ansi16((this.y1k_1 - 8 | 0) + 90 | 0) : this.v1j().z1k();
|
|
506
506
|
};
|
|
507
507
|
protoOf(Ansi256).toString = function () {
|
|
508
|
-
return 'Ansi256(code=' + this.
|
|
508
|
+
return 'Ansi256(code=' + this.y1k_1 + ')';
|
|
509
509
|
};
|
|
510
510
|
protoOf(Ansi256).hashCode = function () {
|
|
511
|
-
return this.
|
|
511
|
+
return this.y1k_1;
|
|
512
512
|
};
|
|
513
513
|
protoOf(Ansi256).equals = function (other) {
|
|
514
514
|
if (this === other)
|
|
@@ -516,16 +516,16 @@
|
|
|
516
516
|
if (!(other instanceof Ansi256))
|
|
517
517
|
return false;
|
|
518
518
|
var tmp0_other_with_cast = other instanceof Ansi256 ? other : THROW_CCE();
|
|
519
|
-
if (!(this.
|
|
519
|
+
if (!(this.y1k_1 === tmp0_other_with_cast.y1k_1))
|
|
520
520
|
return false;
|
|
521
521
|
return true;
|
|
522
522
|
};
|
|
523
523
|
function Companion_1() {
|
|
524
524
|
Companion_instance_1 = this;
|
|
525
|
-
this.
|
|
525
|
+
this.b1l_1 = polarComponentInfo('HSV', 0.0, 1.0);
|
|
526
526
|
}
|
|
527
|
-
protoOf(Companion_1).
|
|
528
|
-
return this.
|
|
527
|
+
protoOf(Companion_1).t1k = function () {
|
|
528
|
+
return this.b1l_1;
|
|
529
529
|
};
|
|
530
530
|
var Companion_instance_1;
|
|
531
531
|
function Companion_getInstance_1() {
|
|
@@ -544,30 +544,30 @@
|
|
|
544
544
|
function HSV(h, s, v, alpha) {
|
|
545
545
|
Companion_getInstance_1();
|
|
546
546
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
547
|
-
this.
|
|
548
|
-
this.
|
|
549
|
-
this.
|
|
550
|
-
this.
|
|
547
|
+
this.c1l_1 = h;
|
|
548
|
+
this.d1l_1 = s;
|
|
549
|
+
this.e1l_1 = v;
|
|
550
|
+
this.f1l_1 = alpha;
|
|
551
551
|
}
|
|
552
|
-
protoOf(HSV).
|
|
552
|
+
protoOf(HSV).u1j = function () {
|
|
553
553
|
return Companion_getInstance_1();
|
|
554
554
|
};
|
|
555
|
-
protoOf(HSV).
|
|
556
|
-
if (this.
|
|
557
|
-
return Companion_getInstance_2().
|
|
558
|
-
var v = this.
|
|
559
|
-
var h = normalizeDeg_0(this.
|
|
560
|
-
var s = this.
|
|
561
|
-
return SRGB_getInstance().
|
|
555
|
+
protoOf(HSV).v1j = function () {
|
|
556
|
+
if (this.d1l_1 < 1.0E-7)
|
|
557
|
+
return Companion_getInstance_2().h1l(this.e1l_1, this.e1l_1, this.e1l_1, this.f1l_1);
|
|
558
|
+
var v = this.e1l_1;
|
|
559
|
+
var h = normalizeDeg_0(this.c1l_1) / 60.0;
|
|
560
|
+
var s = this.d1l_1;
|
|
561
|
+
return SRGB_getInstance().h1l(toSRGB$f(h, v, s, 5), toSRGB$f(h, v, s, 3), toSRGB$f(h, v, s, 1), this.f1l_1);
|
|
562
562
|
};
|
|
563
563
|
protoOf(HSV).toString = function () {
|
|
564
|
-
return 'HSV(h=' + this.
|
|
564
|
+
return 'HSV(h=' + this.c1l_1 + ', s=' + this.d1l_1 + ', v=' + this.e1l_1 + ', alpha=' + this.f1l_1 + ')';
|
|
565
565
|
};
|
|
566
566
|
protoOf(HSV).hashCode = function () {
|
|
567
|
-
var result = getNumberHashCode(this.
|
|
568
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
569
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
570
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
567
|
+
var result = getNumberHashCode(this.c1l_1);
|
|
568
|
+
result = imul(result, 31) + getNumberHashCode(this.d1l_1) | 0;
|
|
569
|
+
result = imul(result, 31) + getNumberHashCode(this.e1l_1) | 0;
|
|
570
|
+
result = imul(result, 31) + getNumberHashCode(this.f1l_1) | 0;
|
|
571
571
|
return result;
|
|
572
572
|
};
|
|
573
573
|
protoOf(HSV).equals = function (other) {
|
|
@@ -576,13 +576,13 @@
|
|
|
576
576
|
if (!(other instanceof HSV))
|
|
577
577
|
return false;
|
|
578
578
|
var tmp0_other_with_cast = other instanceof HSV ? other : THROW_CCE();
|
|
579
|
-
if (!equals(this.
|
|
579
|
+
if (!equals(this.c1l_1, tmp0_other_with_cast.c1l_1))
|
|
580
580
|
return false;
|
|
581
|
-
if (!equals(this.
|
|
581
|
+
if (!equals(this.d1l_1, tmp0_other_with_cast.d1l_1))
|
|
582
582
|
return false;
|
|
583
|
-
if (!equals(this.
|
|
583
|
+
if (!equals(this.e1l_1, tmp0_other_with_cast.e1l_1))
|
|
584
584
|
return false;
|
|
585
|
-
if (!equals(this.
|
|
585
|
+
if (!equals(this.f1l_1, tmp0_other_with_cast.f1l_1))
|
|
586
586
|
return false;
|
|
587
587
|
return true;
|
|
588
588
|
};
|
|
@@ -624,43 +624,43 @@
|
|
|
624
624
|
var ICTCP_LMS_TO_XYZ;
|
|
625
625
|
function ICtCp() {
|
|
626
626
|
}
|
|
627
|
-
protoOf(ICtCp).
|
|
628
|
-
var fo = RGBColorSpaces_getInstance().
|
|
627
|
+
protoOf(ICtCp).n1l = function () {
|
|
628
|
+
var fo = RGBColorSpaces_getInstance().v1l_1.a1m();
|
|
629
629
|
var tmp0 = get_ICTCP_ICTCP_to_LMS();
|
|
630
|
-
var tmp2 = this.
|
|
631
|
-
var tmp4 = this.
|
|
630
|
+
var tmp2 = this.j1l_1;
|
|
631
|
+
var tmp4 = this.k1l_1;
|
|
632
632
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
633
|
-
var v2 = this.
|
|
633
|
+
var v2 = this.l1l_1;
|
|
634
634
|
var tmp0_0 = Matrix__get_impl_xogbpk(tmp0, 0, 0) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 1, 0) * tmp4 + Matrix__get_impl_xogbpk(tmp0, 2, 0) * v2;
|
|
635
635
|
var tmp2_0 = Matrix__get_impl_xogbpk(tmp0, 0, 1) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 1, 1) * tmp4 + Matrix__get_impl_xogbpk(tmp0, 2, 1) * v2;
|
|
636
636
|
var s = Matrix__get_impl_xogbpk(tmp0, 0, 2) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 1, 2) * tmp4 + Matrix__get_impl_xogbpk(tmp0, 2, 2) * v2;
|
|
637
637
|
var tmp0_1 = get_ICTCP_LMS_to_RGB();
|
|
638
|
-
var tmp2_1 = PqNonlinearity_instance.
|
|
639
|
-
var tmp4_0 = PqNonlinearity_instance.
|
|
638
|
+
var tmp2_1 = PqNonlinearity_instance.j1m(tmp0_0);
|
|
639
|
+
var tmp4_0 = PqNonlinearity_instance.j1m(tmp2_0);
|
|
640
640
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
641
|
-
var v2_0 = PqNonlinearity_instance.
|
|
641
|
+
var v2_0 = PqNonlinearity_instance.j1m(s);
|
|
642
642
|
var tmp0_2 = Matrix__get_impl_xogbpk(tmp0_1, 0, 0) * tmp2_1 + Matrix__get_impl_xogbpk(tmp0_1, 1, 0) * tmp4_0 + Matrix__get_impl_xogbpk(tmp0_1, 2, 0) * v2_0;
|
|
643
643
|
var tmp2_2 = Matrix__get_impl_xogbpk(tmp0_1, 0, 1) * tmp2_1 + Matrix__get_impl_xogbpk(tmp0_1, 1, 1) * tmp4_0 + Matrix__get_impl_xogbpk(tmp0_1, 2, 1) * v2_0;
|
|
644
644
|
var b = Matrix__get_impl_xogbpk(tmp0_1, 0, 2) * tmp2_1 + Matrix__get_impl_xogbpk(tmp0_1, 1, 2) * tmp4_0 + Matrix__get_impl_xogbpk(tmp0_1, 2, 2) * v2_0;
|
|
645
|
-
return RGBColorSpaces_getInstance().
|
|
645
|
+
return RGBColorSpaces_getInstance().v1l_1.h1l(fo.k1m(tmp0_2), fo.k1m(tmp2_2), fo.k1m(b), this.m1l_1);
|
|
646
646
|
};
|
|
647
647
|
function PqNonlinearity() {
|
|
648
|
-
this.
|
|
649
|
-
this.
|
|
650
|
-
this.
|
|
651
|
-
this.
|
|
652
|
-
this.
|
|
653
|
-
this.
|
|
654
|
-
this.
|
|
655
|
-
this.
|
|
656
|
-
}
|
|
657
|
-
protoOf(PqNonlinearity).
|
|
648
|
+
this.b1m_1 = 0.1593017578125;
|
|
649
|
+
this.c1m_1 = 78.84375;
|
|
650
|
+
this.d1m_1 = 0.8359375;
|
|
651
|
+
this.e1m_1 = 18.8515625;
|
|
652
|
+
this.f1m_1 = 18.6875;
|
|
653
|
+
this.g1m_1 = 10000.0;
|
|
654
|
+
this.h1m_1 = 6.277394636015326;
|
|
655
|
+
this.i1m_1 = 0.012683313515655966;
|
|
656
|
+
}
|
|
657
|
+
protoOf(PqNonlinearity).j1m = function (x) {
|
|
658
658
|
var vp = spow(x, 0.012683313515655966);
|
|
659
659
|
var n = coerceAtLeast(vp - 0.8359375, 0.0);
|
|
660
660
|
var l = spow_0(n / (18.8515625 - 18.6875 * vp), 6.277394636015326);
|
|
661
661
|
return 10000.0 * l;
|
|
662
662
|
};
|
|
663
|
-
protoOf(PqNonlinearity).
|
|
663
|
+
protoOf(PqNonlinearity).k1m = function (x) {
|
|
664
664
|
var yp = spow_0(x / 10000.0, 0.1593017578125);
|
|
665
665
|
return spow_0((0.8359375 + 18.8515625 * yp) / (1.0 + 18.6875 * yp), 78.84375);
|
|
666
666
|
};
|
|
@@ -683,19 +683,19 @@
|
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
685
|
function GammaTransferFunctions(gamma) {
|
|
686
|
-
this.
|
|
686
|
+
this.l1m_1 = gamma;
|
|
687
687
|
}
|
|
688
|
-
protoOf(GammaTransferFunctions).
|
|
689
|
-
return spow(x, this.
|
|
688
|
+
protoOf(GammaTransferFunctions).j1m = function (x) {
|
|
689
|
+
return spow(x, this.l1m_1);
|
|
690
690
|
};
|
|
691
|
-
protoOf(GammaTransferFunctions).
|
|
692
|
-
return spow(x, 1.0 / this.
|
|
691
|
+
protoOf(GammaTransferFunctions).k1m = function (x) {
|
|
692
|
+
return spow(x, 1.0 / this.l1m_1);
|
|
693
693
|
};
|
|
694
694
|
protoOf(GammaTransferFunctions).toString = function () {
|
|
695
|
-
return 'GammaTransferFunctions(gamma=' + this.
|
|
695
|
+
return 'GammaTransferFunctions(gamma=' + this.l1m_1 + ')';
|
|
696
696
|
};
|
|
697
697
|
protoOf(GammaTransferFunctions).hashCode = function () {
|
|
698
|
-
return getNumberHashCode(this.
|
|
698
|
+
return getNumberHashCode(this.l1m_1);
|
|
699
699
|
};
|
|
700
700
|
protoOf(GammaTransferFunctions).equals = function (other) {
|
|
701
701
|
if (this === other)
|
|
@@ -703,16 +703,16 @@
|
|
|
703
703
|
if (!(other instanceof GammaTransferFunctions))
|
|
704
704
|
return false;
|
|
705
705
|
var tmp0_other_with_cast = other instanceof GammaTransferFunctions ? other : THROW_CCE();
|
|
706
|
-
if (!equals(this.
|
|
706
|
+
if (!equals(this.l1m_1, tmp0_other_with_cast.l1m_1))
|
|
707
707
|
return false;
|
|
708
708
|
return true;
|
|
709
709
|
};
|
|
710
710
|
function LinearTransferFunctions() {
|
|
711
711
|
}
|
|
712
|
-
protoOf(LinearTransferFunctions).
|
|
712
|
+
protoOf(LinearTransferFunctions).j1m = function (x) {
|
|
713
713
|
return x;
|
|
714
714
|
};
|
|
715
|
-
protoOf(LinearTransferFunctions).
|
|
715
|
+
protoOf(LinearTransferFunctions).k1m = function (x) {
|
|
716
716
|
return x;
|
|
717
717
|
};
|
|
718
718
|
var LinearTransferFunctions_instance;
|
|
@@ -723,43 +723,43 @@
|
|
|
723
723
|
}
|
|
724
724
|
function Companion_2() {
|
|
725
725
|
Companion_instance_2 = this;
|
|
726
|
-
this.
|
|
726
|
+
this.g1l_1 = RGBColorSpaces_getInstance().o1l_1;
|
|
727
727
|
}
|
|
728
|
-
protoOf(Companion_2).
|
|
729
|
-
return this.
|
|
728
|
+
protoOf(Companion_2).h1l = function (r, g, b, alpha) {
|
|
729
|
+
return this.g1l_1.h1l(r, g, b, alpha);
|
|
730
730
|
};
|
|
731
|
-
protoOf(Companion_2).
|
|
732
|
-
return this.
|
|
731
|
+
protoOf(Companion_2).m1m = function (r, g, b, alpha) {
|
|
732
|
+
return this.g1l_1.m1m(r, g, b, alpha);
|
|
733
733
|
};
|
|
734
|
-
protoOf(Companion_2).
|
|
735
|
-
return this.
|
|
734
|
+
protoOf(Companion_2).o1m = function (hex) {
|
|
735
|
+
return this.g1l_1.o1m(hex);
|
|
736
736
|
};
|
|
737
|
-
protoOf(Companion_2).
|
|
738
|
-
return this.
|
|
737
|
+
protoOf(Companion_2).n1m = function (r, g, b, alpha) {
|
|
738
|
+
return this.g1l_1.n1m(r, g, b, alpha);
|
|
739
739
|
};
|
|
740
|
-
protoOf(Companion_2).
|
|
741
|
-
return this.
|
|
740
|
+
protoOf(Companion_2).a1m = function () {
|
|
741
|
+
return this.g1l_1.a1m();
|
|
742
742
|
};
|
|
743
|
-
protoOf(Companion_2).
|
|
744
|
-
return this.
|
|
743
|
+
protoOf(Companion_2).p1m = function () {
|
|
744
|
+
return this.g1l_1.p1m();
|
|
745
745
|
};
|
|
746
|
-
protoOf(Companion_2).
|
|
747
|
-
return this.
|
|
746
|
+
protoOf(Companion_2).q1m = function () {
|
|
747
|
+
return this.g1l_1.q1m();
|
|
748
748
|
};
|
|
749
|
-
protoOf(Companion_2).
|
|
750
|
-
return this.
|
|
749
|
+
protoOf(Companion_2).r1m = function () {
|
|
750
|
+
return this.g1l_1.r1m();
|
|
751
751
|
};
|
|
752
|
-
protoOf(Companion_2).
|
|
753
|
-
return this.
|
|
752
|
+
protoOf(Companion_2).c13 = function () {
|
|
753
|
+
return this.g1l_1.c13();
|
|
754
754
|
};
|
|
755
|
-
protoOf(Companion_2).
|
|
756
|
-
return this.
|
|
755
|
+
protoOf(Companion_2).t1k = function () {
|
|
756
|
+
return this.g1l_1.t1k();
|
|
757
757
|
};
|
|
758
758
|
protoOf(Companion_2).equals = function (other) {
|
|
759
|
-
return equals(RGBColorSpaces_getInstance().
|
|
759
|
+
return equals(RGBColorSpaces_getInstance().o1l_1, other);
|
|
760
760
|
};
|
|
761
761
|
protoOf(Companion_2).hashCode = function () {
|
|
762
|
-
return hashCode(RGBColorSpaces_getInstance().
|
|
762
|
+
return hashCode(RGBColorSpaces_getInstance().o1l_1);
|
|
763
763
|
};
|
|
764
764
|
var Companion_instance_2;
|
|
765
765
|
function Companion_getInstance_2() {
|
|
@@ -769,43 +769,43 @@
|
|
|
769
769
|
}
|
|
770
770
|
function RGB(r, g, b, alpha, space) {
|
|
771
771
|
Companion_getInstance_2();
|
|
772
|
-
this.
|
|
773
|
-
this.
|
|
774
|
-
this.
|
|
775
|
-
this.
|
|
776
|
-
this.
|
|
772
|
+
this.x1j_1 = r;
|
|
773
|
+
this.y1j_1 = g;
|
|
774
|
+
this.z1j_1 = b;
|
|
775
|
+
this.a1k_1 = alpha;
|
|
776
|
+
this.b1k_1 = space;
|
|
777
777
|
}
|
|
778
|
-
protoOf(RGB).
|
|
779
|
-
return this.
|
|
778
|
+
protoOf(RGB).u1j = function () {
|
|
779
|
+
return this.b1k_1;
|
|
780
780
|
};
|
|
781
|
-
protoOf(RGB).
|
|
781
|
+
protoOf(RGB).s1m = function () {
|
|
782
782
|
// Inline function 'kotlin.math.roundToInt' call
|
|
783
|
-
var this_0 = this.
|
|
783
|
+
var this_0 = this.x1j_1 * 255;
|
|
784
784
|
return roundToInt(this_0);
|
|
785
785
|
};
|
|
786
|
-
protoOf(RGB).
|
|
786
|
+
protoOf(RGB).t1m = function () {
|
|
787
787
|
// Inline function 'kotlin.math.roundToInt' call
|
|
788
|
-
var this_0 = this.
|
|
788
|
+
var this_0 = this.y1j_1 * 255;
|
|
789
789
|
return roundToInt(this_0);
|
|
790
790
|
};
|
|
791
|
-
protoOf(RGB).
|
|
791
|
+
protoOf(RGB).u1m = function () {
|
|
792
792
|
// Inline function 'kotlin.math.roundToInt' call
|
|
793
|
-
var this_0 = this.
|
|
793
|
+
var this_0 = this.z1j_1 * 255;
|
|
794
794
|
return roundToInt(this_0);
|
|
795
795
|
};
|
|
796
|
-
protoOf(RGB).
|
|
797
|
-
var f = SRGB_getInstance().
|
|
798
|
-
return equals(this.
|
|
796
|
+
protoOf(RGB).v1m = function (space) {
|
|
797
|
+
var f = SRGB_getInstance().a1m();
|
|
798
|
+
return equals(this.b1k_1, space) ? this : equals(this.b1k_1, SRGB_getInstance()) && equals(space, RGBColorSpaces_getInstance().p1l_1) ? space.h1l(f.j1m(this.x1j_1), f.j1m(this.y1j_1), f.j1m(this.z1j_1), this.a1k_1) : equals(this.b1k_1, RGBColorSpaces_getInstance().p1l_1) && equals(space, SRGB_getInstance()) ? space.h1l(f.k1m(this.x1j_1), f.k1m(this.y1j_1), f.k1m(this.z1j_1), this.a1k_1) : this.w1j().b1n(space);
|
|
799
799
|
};
|
|
800
|
-
protoOf(RGB).
|
|
800
|
+
protoOf(RGB).c1n = function () {
|
|
801
801
|
var tmp$ret$3;
|
|
802
802
|
$l$block: {
|
|
803
803
|
// Inline function 'com.github.ajalt.colormath.model.RGB.srgbHueMinMaxChroma' call
|
|
804
804
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
805
|
-
var $this$toSRGB = this.
|
|
806
|
-
var r = $this$toSRGB.
|
|
807
|
-
var g = $this$toSRGB.
|
|
808
|
-
var b = $this$toSRGB.
|
|
805
|
+
var $this$toSRGB = this.v1m(SRGB_getInstance());
|
|
806
|
+
var r = $this$toSRGB.x1j_1;
|
|
807
|
+
var g = $this$toSRGB.y1j_1;
|
|
808
|
+
var b = $this$toSRGB.z1j_1;
|
|
809
809
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
810
810
|
var min = Math.min(r, g, b);
|
|
811
811
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
@@ -814,100 +814,100 @@
|
|
|
814
814
|
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;
|
|
815
815
|
var h_0 = normalizeDeg(h);
|
|
816
816
|
var s = max === 0.0 ? 0.0 : chroma / max;
|
|
817
|
-
tmp$ret$3 = new HSV(h_0, s, max, this.
|
|
817
|
+
tmp$ret$3 = new HSV(h_0, s, max, this.a1k_1);
|
|
818
818
|
break $l$block;
|
|
819
819
|
}
|
|
820
820
|
return tmp$ret$3;
|
|
821
821
|
};
|
|
822
|
-
protoOf(RGB).
|
|
823
|
-
var f = this.
|
|
824
|
-
var tmp0 = _Matrix___init__impl__q3kp4w(this.
|
|
825
|
-
var tmp2 = f.
|
|
826
|
-
var tmp4 = f.
|
|
822
|
+
protoOf(RGB).w1j = function () {
|
|
823
|
+
var f = this.b1k_1.a1m();
|
|
824
|
+
var tmp0 = _Matrix___init__impl__q3kp4w(this.b1k_1.p1m());
|
|
825
|
+
var tmp2 = f.j1m(this.x1j_1);
|
|
826
|
+
var tmp4 = f.j1m(this.y1j_1);
|
|
827
827
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
828
|
-
var v2 = f.
|
|
828
|
+
var v2 = f.j1m(this.z1j_1);
|
|
829
829
|
var tmp0_0 = Matrix__get_impl_xogbpk(tmp0, 0, 0) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 1, 0) * tmp4 + Matrix__get_impl_xogbpk(tmp0, 2, 0) * v2;
|
|
830
830
|
var tmp2_0 = Matrix__get_impl_xogbpk(tmp0, 0, 1) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 1, 1) * tmp4 + Matrix__get_impl_xogbpk(tmp0, 2, 1) * v2;
|
|
831
831
|
var z = Matrix__get_impl_xogbpk(tmp0, 0, 2) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 1, 2) * tmp4 + Matrix__get_impl_xogbpk(tmp0, 2, 2) * v2;
|
|
832
|
-
return XYZColorSpace_0(this.
|
|
832
|
+
return XYZColorSpace_0(this.b1k_1.r1m()).h1l(tmp0_0, tmp2_0, z, this.a1k_1);
|
|
833
833
|
};
|
|
834
|
-
protoOf(RGB).
|
|
834
|
+
protoOf(RGB).z1k = function () {
|
|
835
835
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
836
|
-
var $this$toSRGB = this.
|
|
836
|
+
var $this$toSRGB = this.v1m(SRGB_getInstance());
|
|
837
837
|
// Inline function 'kotlin.math.roundToInt' call
|
|
838
|
-
var this_0 = $this$toSRGB.
|
|
838
|
+
var this_0 = $this$toSRGB.c1n().e1l_1 * 100;
|
|
839
839
|
var value = roundToInt(this_0);
|
|
840
840
|
if (value === 30)
|
|
841
841
|
return new Ansi16(30);
|
|
842
842
|
var v = value / 50 | 0;
|
|
843
843
|
// Inline function 'kotlin.math.roundToInt' call
|
|
844
|
-
var this_1 = $this$toSRGB.
|
|
844
|
+
var this_1 = $this$toSRGB.z1j_1;
|
|
845
845
|
var tmp$ret$1 = roundToInt(this_1);
|
|
846
846
|
var tmp = imul(tmp$ret$1, 4);
|
|
847
847
|
// Inline function 'kotlin.math.roundToInt' call
|
|
848
|
-
var this_2 = $this$toSRGB.
|
|
848
|
+
var this_2 = $this$toSRGB.y1j_1;
|
|
849
849
|
var tmp$ret$2 = roundToInt(this_2);
|
|
850
850
|
var tmp_0 = tmp | imul(tmp$ret$2, 2);
|
|
851
851
|
// Inline function 'kotlin.math.roundToInt' call
|
|
852
|
-
var this_3 = $this$toSRGB.
|
|
852
|
+
var this_3 = $this$toSRGB.x1j_1;
|
|
853
853
|
var ansi = 30 + (tmp_0 | roundToInt(this_3)) | 0;
|
|
854
854
|
return new Ansi16(v === 2 ? ansi + 60 | 0 : ansi);
|
|
855
855
|
};
|
|
856
|
-
protoOf(RGB).
|
|
856
|
+
protoOf(RGB).d1n = function () {
|
|
857
857
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
858
|
-
var $this$toSRGB = this.
|
|
859
|
-
var ri = $this$toSRGB.
|
|
860
|
-
var gi = $this$toSRGB.
|
|
861
|
-
var bi = $this$toSRGB.
|
|
858
|
+
var $this$toSRGB = this.v1m(SRGB_getInstance());
|
|
859
|
+
var ri = $this$toSRGB.s1m();
|
|
860
|
+
var gi = $this$toSRGB.t1m();
|
|
861
|
+
var bi = $this$toSRGB.u1m();
|
|
862
862
|
var tmp;
|
|
863
863
|
if (ri === gi && gi === bi) {
|
|
864
864
|
tmp = ri < 8 ? 16 : ri > 248 ? 231 : roundToInt((ri - 8 | 0) / 247.0 * 24.0) + 232 | 0;
|
|
865
865
|
} else {
|
|
866
866
|
// Inline function 'kotlin.math.roundToInt' call
|
|
867
|
-
var this_0 = $this$toSRGB.
|
|
867
|
+
var this_0 = $this$toSRGB.x1j_1 * 5;
|
|
868
868
|
var tmp$ret$0 = roundToInt(this_0);
|
|
869
869
|
var tmp_0 = 16 + imul(36, tmp$ret$0) | 0;
|
|
870
870
|
// Inline function 'kotlin.math.roundToInt' call
|
|
871
|
-
var this_1 = $this$toSRGB.
|
|
871
|
+
var this_1 = $this$toSRGB.y1j_1 * 5;
|
|
872
872
|
var tmp$ret$1 = roundToInt(this_1);
|
|
873
873
|
var tmp_1 = tmp_0 + imul(6, tmp$ret$1) | 0;
|
|
874
874
|
// Inline function 'kotlin.math.roundToInt' call
|
|
875
|
-
var this_2 = $this$toSRGB.
|
|
875
|
+
var this_2 = $this$toSRGB.z1j_1 * 5;
|
|
876
876
|
tmp = tmp_1 + roundToInt(this_2) | 0;
|
|
877
877
|
}
|
|
878
878
|
var code = tmp;
|
|
879
879
|
return new Ansi256(code);
|
|
880
880
|
};
|
|
881
|
-
protoOf(RGB).
|
|
882
|
-
return this.
|
|
881
|
+
protoOf(RGB).v1j = function () {
|
|
882
|
+
return this.v1m(RGBColorSpaces_getInstance().o1l_1);
|
|
883
883
|
};
|
|
884
|
-
protoOf(RGB).
|
|
885
|
-
var tmp2 = this.
|
|
886
|
-
var tmp4 = this.
|
|
887
|
-
var tmp6 = this.
|
|
884
|
+
protoOf(RGB).e1n = function () {
|
|
885
|
+
var tmp2 = this.x1j_1;
|
|
886
|
+
var tmp4 = this.y1j_1;
|
|
887
|
+
var tmp6 = this.z1j_1;
|
|
888
888
|
// Inline function 'com.github.ajalt.colormath.internal.clamp3' call
|
|
889
|
-
var alpha = this.
|
|
890
|
-
var _destruct__k2r9zo = this.
|
|
889
|
+
var alpha = this.a1k_1;
|
|
890
|
+
var _destruct__k2r9zo = this.u1j().t1k();
|
|
891
891
|
// Inline function 'kotlin.collections.component1' call
|
|
892
|
-
var c1 = _destruct__k2r9zo.
|
|
892
|
+
var c1 = _destruct__k2r9zo.q(0);
|
|
893
893
|
// Inline function 'kotlin.collections.component2' call
|
|
894
|
-
var c2 = _destruct__k2r9zo.
|
|
894
|
+
var c2 = _destruct__k2r9zo.q(1);
|
|
895
895
|
// Inline function 'kotlin.collections.component3' call
|
|
896
|
-
var c3 = _destruct__k2r9zo.
|
|
896
|
+
var c3 = _destruct__k2r9zo.q(2);
|
|
897
897
|
var tmp;
|
|
898
898
|
var tmp_0;
|
|
899
899
|
var tmp_1;
|
|
900
900
|
var tmp_2;
|
|
901
|
-
var containsLower = c1.
|
|
902
|
-
if (tmp2 <= c1.
|
|
903
|
-
var containsLower_0 = c2.
|
|
904
|
-
tmp_2 = tmp4 <= c2.
|
|
901
|
+
var containsLower = c1.e1k_1;
|
|
902
|
+
if (tmp2 <= c1.f1k_1 ? containsLower <= tmp2 : false) {
|
|
903
|
+
var containsLower_0 = c2.e1k_1;
|
|
904
|
+
tmp_2 = tmp4 <= c2.f1k_1 ? containsLower_0 <= tmp4 : false;
|
|
905
905
|
} else {
|
|
906
906
|
tmp_2 = false;
|
|
907
907
|
}
|
|
908
908
|
if (tmp_2) {
|
|
909
|
-
var containsLower_1 = c3.
|
|
910
|
-
tmp_1 = tmp6 <= c3.
|
|
909
|
+
var containsLower_1 = c3.e1k_1;
|
|
910
|
+
tmp_1 = tmp6 <= c3.f1k_1 ? containsLower_1 <= tmp6 : false;
|
|
911
911
|
} else {
|
|
912
912
|
tmp_1 = false;
|
|
913
913
|
}
|
|
@@ -919,34 +919,34 @@
|
|
|
919
919
|
if (tmp_0) {
|
|
920
920
|
tmp = this;
|
|
921
921
|
} else {
|
|
922
|
-
var tmp2_0 = coerceIn(tmp2, c1.
|
|
923
|
-
var tmp4_0 = coerceIn(tmp4, c2.
|
|
924
|
-
var tmp6_0 = coerceIn(tmp6, c3.
|
|
922
|
+
var tmp2_0 = coerceIn(tmp2, c1.e1k_1, c1.f1k_1);
|
|
923
|
+
var tmp4_0 = coerceIn(tmp4, c2.e1k_1, c2.f1k_1);
|
|
924
|
+
var tmp6_0 = coerceIn(tmp6, c3.e1k_1, c3.f1k_1);
|
|
925
925
|
var p3 = coerceIn(alpha, 0.0, 1.0);
|
|
926
|
-
tmp = this.
|
|
926
|
+
tmp = this.f1n(tmp2_0, tmp4_0, tmp6_0, p3);
|
|
927
927
|
}
|
|
928
928
|
return tmp;
|
|
929
929
|
};
|
|
930
|
-
protoOf(RGB).
|
|
930
|
+
protoOf(RGB).g1n = function (r, g, b, alpha, space) {
|
|
931
931
|
return new RGB(r, g, b, alpha, space);
|
|
932
932
|
};
|
|
933
|
-
protoOf(RGB).
|
|
934
|
-
r = r === VOID ? this.
|
|
935
|
-
g = g === VOID ? this.
|
|
936
|
-
b = b === VOID ? this.
|
|
937
|
-
alpha = alpha === VOID ? this.
|
|
938
|
-
space = space === VOID ? this.
|
|
939
|
-
return $super === VOID ? this.
|
|
933
|
+
protoOf(RGB).f1n = function (r, g, b, alpha, space, $super) {
|
|
934
|
+
r = r === VOID ? this.x1j_1 : r;
|
|
935
|
+
g = g === VOID ? this.y1j_1 : g;
|
|
936
|
+
b = b === VOID ? this.z1j_1 : b;
|
|
937
|
+
alpha = alpha === VOID ? this.a1k_1 : alpha;
|
|
938
|
+
space = space === VOID ? this.b1k_1 : space;
|
|
939
|
+
return $super === VOID ? this.g1n(r, g, b, alpha, space) : $super.g1n.call(this, r, g, b, alpha, space);
|
|
940
940
|
};
|
|
941
941
|
protoOf(RGB).toString = function () {
|
|
942
|
-
return 'RGB(r=' + this.
|
|
942
|
+
return 'RGB(r=' + this.x1j_1 + ', g=' + this.y1j_1 + ', b=' + this.z1j_1 + ', alpha=' + this.a1k_1 + ', space=' + toString(this.b1k_1) + ')';
|
|
943
943
|
};
|
|
944
944
|
protoOf(RGB).hashCode = function () {
|
|
945
|
-
var result = getNumberHashCode(this.
|
|
946
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
947
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
948
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
949
|
-
result = imul(result, 31) + hashCode(this.
|
|
945
|
+
var result = getNumberHashCode(this.x1j_1);
|
|
946
|
+
result = imul(result, 31) + getNumberHashCode(this.y1j_1) | 0;
|
|
947
|
+
result = imul(result, 31) + getNumberHashCode(this.z1j_1) | 0;
|
|
948
|
+
result = imul(result, 31) + getNumberHashCode(this.a1k_1) | 0;
|
|
949
|
+
result = imul(result, 31) + hashCode(this.b1k_1) | 0;
|
|
950
950
|
return result;
|
|
951
951
|
};
|
|
952
952
|
protoOf(RGB).equals = function (other) {
|
|
@@ -955,15 +955,15 @@
|
|
|
955
955
|
if (!(other instanceof RGB))
|
|
956
956
|
return false;
|
|
957
957
|
var tmp0_other_with_cast = other instanceof RGB ? other : THROW_CCE();
|
|
958
|
-
if (!equals(this.
|
|
958
|
+
if (!equals(this.x1j_1, tmp0_other_with_cast.x1j_1))
|
|
959
959
|
return false;
|
|
960
|
-
if (!equals(this.
|
|
960
|
+
if (!equals(this.y1j_1, tmp0_other_with_cast.y1j_1))
|
|
961
961
|
return false;
|
|
962
|
-
if (!equals(this.
|
|
962
|
+
if (!equals(this.z1j_1, tmp0_other_with_cast.z1j_1))
|
|
963
963
|
return false;
|
|
964
|
-
if (!equals(this.
|
|
964
|
+
if (!equals(this.a1k_1, tmp0_other_with_cast.a1k_1))
|
|
965
965
|
return false;
|
|
966
|
-
if (!equals(this.
|
|
966
|
+
if (!equals(this.b1k_1, tmp0_other_with_cast.b1k_1))
|
|
967
967
|
return false;
|
|
968
968
|
return true;
|
|
969
969
|
};
|
|
@@ -1046,17 +1046,17 @@
|
|
|
1046
1046
|
}
|
|
1047
1047
|
var ACES_AP1_B;
|
|
1048
1048
|
function RGBColorSpaces$SRGB$lambda($this$RGBColorSpaceImpl, it) {
|
|
1049
|
-
return it.
|
|
1049
|
+
return it.v1j();
|
|
1050
1050
|
}
|
|
1051
1051
|
function RGBColorSpaces$BT2020$lambda($this$RGBColorSpaceImpl, color) {
|
|
1052
1052
|
var tmp;
|
|
1053
1053
|
if (color instanceof RGB) {
|
|
1054
|
-
tmp = color.
|
|
1054
|
+
tmp = color.v1m($this$RGBColorSpaceImpl);
|
|
1055
1055
|
} else {
|
|
1056
1056
|
if (color instanceof ICtCp) {
|
|
1057
|
-
tmp = color.
|
|
1057
|
+
tmp = color.n1l();
|
|
1058
1058
|
} else {
|
|
1059
|
-
tmp = color.
|
|
1059
|
+
tmp = color.w1j().b1n($this$RGBColorSpaceImpl);
|
|
1060
1060
|
}
|
|
1061
1061
|
}
|
|
1062
1062
|
return tmp;
|
|
@@ -1064,29 +1064,29 @@
|
|
|
1064
1064
|
function RGBColorSpaces() {
|
|
1065
1065
|
RGBColorSpaces_instance = this;
|
|
1066
1066
|
var tmp = this;
|
|
1067
|
-
var tmp_0 = Illuminant_getInstance().
|
|
1067
|
+
var tmp_0 = Illuminant_getInstance().n1k_1;
|
|
1068
1068
|
var tmp_1 = SRGBTransferFunctions_instance;
|
|
1069
1069
|
var tmp_2 = get_SRGB_R();
|
|
1070
1070
|
var tmp_3 = get_SRGB_G();
|
|
1071
1071
|
var tmp_4 = get_SRGB_B();
|
|
1072
|
-
tmp.
|
|
1073
|
-
this.
|
|
1074
|
-
this.
|
|
1075
|
-
this.
|
|
1076
|
-
this.
|
|
1077
|
-
this.
|
|
1078
|
-
this.
|
|
1072
|
+
tmp.o1l_1 = new RGBColorSpaceImpl('sRGB', tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, RGBColorSpaces$SRGB$lambda);
|
|
1073
|
+
this.p1l_1 = RGBColorSpace_0('Linear sRGB', Illuminant_getInstance().n1k_1, LinearTransferFunctions_instance, get_SRGB_R(), get_SRGB_G(), get_SRGB_B());
|
|
1074
|
+
this.q1l_1 = RGBColorSpace_0('ACES2065-1', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP0_R(), get_ACES_AP0_G(), get_ACES_AP0_B());
|
|
1075
|
+
this.r1l_1 = RGBColorSpace_0('ACEScc', get_ACES_WHITE_POINT(), ACESccTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
1076
|
+
this.s1l_1 = RGBColorSpace_0('ACEScct', get_ACES_WHITE_POINT(), ACEScctTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
1077
|
+
this.t1l_1 = RGBColorSpace_0('ACEScg', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
1078
|
+
this.u1l_1 = RGBColorSpace_0('Adobe RGB', Illuminant_getInstance().n1k_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));
|
|
1079
1079
|
var tmp_5 = this;
|
|
1080
|
-
var tmp_6 = Illuminant_getInstance().
|
|
1080
|
+
var tmp_6 = Illuminant_getInstance().n1k_1;
|
|
1081
1081
|
var tmp_7 = BT2020TransferFunctions_getInstance();
|
|
1082
1082
|
var tmp_8 = xyY_init_$Create$(0.708, 0.292);
|
|
1083
1083
|
var tmp_9 = xyY_init_$Create$(0.17, 0.797);
|
|
1084
1084
|
var tmp_10 = xyY_init_$Create$(0.131, 0.046);
|
|
1085
|
-
tmp_5.
|
|
1086
|
-
this.
|
|
1087
|
-
this.
|
|
1088
|
-
this.
|
|
1089
|
-
this.
|
|
1085
|
+
tmp_5.v1l_1 = new RGBColorSpaceImpl('BT.2020', tmp_6, tmp_7, tmp_8, tmp_9, tmp_10, RGBColorSpaces$BT2020$lambda);
|
|
1086
|
+
this.w1l_1 = RGBColorSpace_0('BT.709', Illuminant_getInstance().n1k_1, BT709TransferFunctions_getInstance(), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.3, 0.6), xyY_init_$Create$(0.15, 0.06));
|
|
1087
|
+
this.x1l_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));
|
|
1088
|
+
this.y1l_1 = RGBColorSpace_0('Display P3', Illuminant_getInstance().n1k_1, SRGBTransferFunctions_instance, xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06));
|
|
1089
|
+
this.z1l_1 = RGBColorSpace_0('ROMM RGB', Illuminant_getInstance().l1k_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));
|
|
1090
1090
|
}
|
|
1091
1091
|
var RGBColorSpaces_instance;
|
|
1092
1092
|
function RGBColorSpaces_getInstance() {
|
|
@@ -1096,43 +1096,43 @@
|
|
|
1096
1096
|
}
|
|
1097
1097
|
function SRGB() {
|
|
1098
1098
|
SRGB_instance = this;
|
|
1099
|
-
this.
|
|
1099
|
+
this.i1l_1 = RGBColorSpaces_getInstance().o1l_1;
|
|
1100
1100
|
}
|
|
1101
|
-
protoOf(SRGB).
|
|
1102
|
-
return this.
|
|
1101
|
+
protoOf(SRGB).h1l = function (r, g, b, alpha) {
|
|
1102
|
+
return this.i1l_1.h1l(r, g, b, alpha);
|
|
1103
1103
|
};
|
|
1104
|
-
protoOf(SRGB).
|
|
1105
|
-
return this.
|
|
1104
|
+
protoOf(SRGB).m1m = function (r, g, b, alpha) {
|
|
1105
|
+
return this.i1l_1.m1m(r, g, b, alpha);
|
|
1106
1106
|
};
|
|
1107
|
-
protoOf(SRGB).
|
|
1108
|
-
return this.
|
|
1107
|
+
protoOf(SRGB).o1m = function (hex) {
|
|
1108
|
+
return this.i1l_1.o1m(hex);
|
|
1109
1109
|
};
|
|
1110
|
-
protoOf(SRGB).
|
|
1111
|
-
return this.
|
|
1110
|
+
protoOf(SRGB).n1m = function (r, g, b, alpha) {
|
|
1111
|
+
return this.i1l_1.n1m(r, g, b, alpha);
|
|
1112
1112
|
};
|
|
1113
|
-
protoOf(SRGB).
|
|
1114
|
-
return this.
|
|
1113
|
+
protoOf(SRGB).a1m = function () {
|
|
1114
|
+
return this.i1l_1.a1m();
|
|
1115
1115
|
};
|
|
1116
|
-
protoOf(SRGB).
|
|
1117
|
-
return this.
|
|
1116
|
+
protoOf(SRGB).p1m = function () {
|
|
1117
|
+
return this.i1l_1.p1m();
|
|
1118
1118
|
};
|
|
1119
|
-
protoOf(SRGB).
|
|
1120
|
-
return this.
|
|
1119
|
+
protoOf(SRGB).q1m = function () {
|
|
1120
|
+
return this.i1l_1.q1m();
|
|
1121
1121
|
};
|
|
1122
|
-
protoOf(SRGB).
|
|
1123
|
-
return this.
|
|
1122
|
+
protoOf(SRGB).r1m = function () {
|
|
1123
|
+
return this.i1l_1.r1m();
|
|
1124
1124
|
};
|
|
1125
|
-
protoOf(SRGB).
|
|
1126
|
-
return this.
|
|
1125
|
+
protoOf(SRGB).c13 = function () {
|
|
1126
|
+
return this.i1l_1.c13();
|
|
1127
1127
|
};
|
|
1128
|
-
protoOf(SRGB).
|
|
1129
|
-
return this.
|
|
1128
|
+
protoOf(SRGB).t1k = function () {
|
|
1129
|
+
return this.i1l_1.t1k();
|
|
1130
1130
|
};
|
|
1131
1131
|
protoOf(SRGB).equals = function (other) {
|
|
1132
|
-
return equals(RGBColorSpaces_getInstance().
|
|
1132
|
+
return equals(RGBColorSpaces_getInstance().o1l_1, other);
|
|
1133
1133
|
};
|
|
1134
1134
|
protoOf(SRGB).hashCode = function () {
|
|
1135
|
-
return hashCode(RGBColorSpaces_getInstance().
|
|
1135
|
+
return hashCode(RGBColorSpaces_getInstance().o1l_1);
|
|
1136
1136
|
};
|
|
1137
1137
|
protoOf(SRGB).toString = function () {
|
|
1138
1138
|
return 'sRGB';
|
|
@@ -1144,39 +1144,39 @@
|
|
|
1144
1144
|
return SRGB_instance;
|
|
1145
1145
|
}
|
|
1146
1146
|
function RGBColorSpaceImpl(name, whitePoint, transferFunctions, r, g, b, convertImpl) {
|
|
1147
|
-
this.
|
|
1148
|
-
this.
|
|
1149
|
-
this.
|
|
1150
|
-
this.
|
|
1151
|
-
this.
|
|
1152
|
-
this.
|
|
1153
|
-
this.
|
|
1154
|
-
this.
|
|
1155
|
-
this.
|
|
1156
|
-
this.
|
|
1147
|
+
this.h1n_1 = name;
|
|
1148
|
+
this.i1n_1 = whitePoint;
|
|
1149
|
+
this.j1n_1 = transferFunctions;
|
|
1150
|
+
this.k1n_1 = r;
|
|
1151
|
+
this.l1n_1 = g;
|
|
1152
|
+
this.m1n_1 = b;
|
|
1153
|
+
this.n1n_1 = convertImpl;
|
|
1154
|
+
this.o1n_1 = zeroOneComponentInfo('RGB');
|
|
1155
|
+
this.p1n_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.i1n_1, this.k1n_1, this.l1n_1, this.m1n_1));
|
|
1156
|
+
this.q1n_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.p1n_1)));
|
|
1157
1157
|
}
|
|
1158
|
-
protoOf(RGBColorSpaceImpl).
|
|
1159
|
-
return this.
|
|
1158
|
+
protoOf(RGBColorSpaceImpl).c13 = function () {
|
|
1159
|
+
return this.h1n_1;
|
|
1160
1160
|
};
|
|
1161
|
-
protoOf(RGBColorSpaceImpl).
|
|
1162
|
-
return this.
|
|
1161
|
+
protoOf(RGBColorSpaceImpl).r1m = function () {
|
|
1162
|
+
return this.i1n_1;
|
|
1163
1163
|
};
|
|
1164
|
-
protoOf(RGBColorSpaceImpl).
|
|
1165
|
-
return this.
|
|
1164
|
+
protoOf(RGBColorSpaceImpl).a1m = function () {
|
|
1165
|
+
return this.j1n_1;
|
|
1166
1166
|
};
|
|
1167
|
-
protoOf(RGBColorSpaceImpl).
|
|
1168
|
-
return this.
|
|
1167
|
+
protoOf(RGBColorSpaceImpl).t1k = function () {
|
|
1168
|
+
return this.o1n_1;
|
|
1169
1169
|
};
|
|
1170
|
-
protoOf(RGBColorSpaceImpl).
|
|
1171
|
-
return this.
|
|
1170
|
+
protoOf(RGBColorSpaceImpl).p1m = function () {
|
|
1171
|
+
return this.p1n_1;
|
|
1172
1172
|
};
|
|
1173
|
-
protoOf(RGBColorSpaceImpl).
|
|
1174
|
-
return this.
|
|
1173
|
+
protoOf(RGBColorSpaceImpl).q1m = function () {
|
|
1174
|
+
return this.q1n_1;
|
|
1175
1175
|
};
|
|
1176
1176
|
protoOf(RGBColorSpaceImpl).toString = function () {
|
|
1177
|
-
return this.
|
|
1177
|
+
return this.h1n_1;
|
|
1178
1178
|
};
|
|
1179
|
-
protoOf(RGBColorSpaceImpl).
|
|
1179
|
+
protoOf(RGBColorSpaceImpl).h1l = function (r, g, b, alpha) {
|
|
1180
1180
|
return new RGB(r, g, b, alpha, this);
|
|
1181
1181
|
};
|
|
1182
1182
|
protoOf(RGBColorSpaceImpl).equals = function (other) {
|
|
@@ -1184,42 +1184,42 @@
|
|
|
1184
1184
|
return true;
|
|
1185
1185
|
if (!(!(other == null) ? isInterface(other, RGBColorSpace) : false))
|
|
1186
1186
|
return false;
|
|
1187
|
-
if (!(this.
|
|
1187
|
+
if (!(this.h1n_1 === other.c13()))
|
|
1188
1188
|
return false;
|
|
1189
|
-
if (!this.
|
|
1189
|
+
if (!this.i1n_1.equals(other.r1m()))
|
|
1190
1190
|
return false;
|
|
1191
|
-
if (!equals(this.
|
|
1191
|
+
if (!equals(this.j1n_1, other.a1m()))
|
|
1192
1192
|
return false;
|
|
1193
1193
|
if (other instanceof RGBColorSpaceImpl) {
|
|
1194
|
-
if (!this.
|
|
1194
|
+
if (!this.k1n_1.equals(other.k1n_1))
|
|
1195
1195
|
return false;
|
|
1196
|
-
if (!this.
|
|
1196
|
+
if (!this.l1n_1.equals(other.l1n_1))
|
|
1197
1197
|
return false;
|
|
1198
|
-
if (!this.
|
|
1198
|
+
if (!this.m1n_1.equals(other.m1n_1))
|
|
1199
1199
|
return false;
|
|
1200
1200
|
} else {
|
|
1201
|
-
if (!contentEquals(this.
|
|
1201
|
+
if (!contentEquals(this.p1n_1, other.p1m()))
|
|
1202
1202
|
return false;
|
|
1203
|
-
if (!contentEquals(this.
|
|
1203
|
+
if (!contentEquals(this.q1n_1, other.q1m()))
|
|
1204
1204
|
return false;
|
|
1205
1205
|
}
|
|
1206
1206
|
return true;
|
|
1207
1207
|
};
|
|
1208
1208
|
protoOf(RGBColorSpaceImpl).hashCode = function () {
|
|
1209
|
-
var result = getStringHashCode(this.
|
|
1210
|
-
result = imul(31, result) + this.
|
|
1211
|
-
result = imul(31, result) + hashCode(this.
|
|
1212
|
-
result = imul(31, result) + this.
|
|
1213
|
-
result = imul(31, result) + this.
|
|
1214
|
-
result = imul(31, result) + this.
|
|
1209
|
+
var result = getStringHashCode(this.h1n_1);
|
|
1210
|
+
result = imul(31, result) + this.i1n_1.hashCode() | 0;
|
|
1211
|
+
result = imul(31, result) + hashCode(this.j1n_1) | 0;
|
|
1212
|
+
result = imul(31, result) + this.k1n_1.hashCode() | 0;
|
|
1213
|
+
result = imul(31, result) + this.l1n_1.hashCode() | 0;
|
|
1214
|
+
result = imul(31, result) + this.m1n_1.hashCode() | 0;
|
|
1215
1215
|
return result;
|
|
1216
1216
|
};
|
|
1217
1217
|
function SRGBTransferFunctions() {
|
|
1218
1218
|
}
|
|
1219
|
-
protoOf(SRGBTransferFunctions).
|
|
1219
|
+
protoOf(SRGBTransferFunctions).k1m = function (x) {
|
|
1220
1220
|
return x <= 0.0031308 ? x * 12.92 : 1.055 * spow(x, 1 / 2.4) - 0.055;
|
|
1221
1221
|
};
|
|
1222
|
-
protoOf(SRGBTransferFunctions).
|
|
1222
|
+
protoOf(SRGBTransferFunctions).j1m = function (x) {
|
|
1223
1223
|
return x <= 0.04045 ? x / 12.92 : spow_0((x + 0.055) / 1.055, 2.4);
|
|
1224
1224
|
};
|
|
1225
1225
|
var SRGBTransferFunctions_instance;
|
|
@@ -1232,18 +1232,18 @@
|
|
|
1232
1232
|
}
|
|
1233
1233
|
function ACESccTransferFunctions() {
|
|
1234
1234
|
ACESccTransferFunctions_instance = this;
|
|
1235
|
-
this.
|
|
1236
|
-
this.
|
|
1237
|
-
this.
|
|
1235
|
+
this.r1n_1 = 3.0517578125E-5;
|
|
1236
|
+
this.s1n_1 = 1.52587890625E-5;
|
|
1237
|
+
this.t1n_1 = -0.3013698630136986;
|
|
1238
1238
|
var tmp = this;
|
|
1239
1239
|
// Inline function 'kotlin.math.log2' call
|
|
1240
|
-
tmp.
|
|
1240
|
+
tmp.u1n_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
1241
1241
|
}
|
|
1242
|
-
protoOf(ACESccTransferFunctions).
|
|
1242
|
+
protoOf(ACESccTransferFunctions).j1m = function (x) {
|
|
1243
1243
|
var tmp;
|
|
1244
1244
|
if (x <= -0.3013698630136986) {
|
|
1245
1245
|
tmp = (spow_0(2.0, x * 17.52 - 9.72) - 1.52587890625E-5) * 2.0;
|
|
1246
|
-
} else if (x < this.
|
|
1246
|
+
} else if (x < this.u1n_1) {
|
|
1247
1247
|
// Inline function 'kotlin.math.pow' call
|
|
1248
1248
|
var x_0 = x * 17.52 - 9.72;
|
|
1249
1249
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -1252,7 +1252,7 @@
|
|
|
1252
1252
|
}
|
|
1253
1253
|
return tmp;
|
|
1254
1254
|
};
|
|
1255
|
-
protoOf(ACESccTransferFunctions).
|
|
1255
|
+
protoOf(ACESccTransferFunctions).k1m = function (x) {
|
|
1256
1256
|
var tmp;
|
|
1257
1257
|
if (x < 3.0517578125E-5) {
|
|
1258
1258
|
// Inline function 'kotlin.math.log2' call
|
|
@@ -1272,17 +1272,17 @@
|
|
|
1272
1272
|
}
|
|
1273
1273
|
function ACEScctTransferFunctions() {
|
|
1274
1274
|
ACEScctTransferFunctions_instance = this;
|
|
1275
|
-
this.
|
|
1276
|
-
this.
|
|
1275
|
+
this.v1n_1 = 10.5402377416545;
|
|
1276
|
+
this.w1n_1 = 0.0729055341958355;
|
|
1277
1277
|
var tmp = this;
|
|
1278
1278
|
// Inline function 'kotlin.math.log2' call
|
|
1279
|
-
tmp.
|
|
1279
|
+
tmp.x1n_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
1280
1280
|
}
|
|
1281
|
-
protoOf(ACEScctTransferFunctions).
|
|
1281
|
+
protoOf(ACEScctTransferFunctions).j1m = function (x) {
|
|
1282
1282
|
var tmp;
|
|
1283
1283
|
if (x <= 0.155251141552511) {
|
|
1284
1284
|
tmp = (x - 0.0729055341958355) / 10.5402377416545;
|
|
1285
|
-
} else if (x < this.
|
|
1285
|
+
} else if (x < this.x1n_1) {
|
|
1286
1286
|
// Inline function 'kotlin.math.pow' call
|
|
1287
1287
|
var x_0 = x * 17.52 - 9.72;
|
|
1288
1288
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -1291,7 +1291,7 @@
|
|
|
1291
1291
|
}
|
|
1292
1292
|
return tmp;
|
|
1293
1293
|
};
|
|
1294
|
-
protoOf(ACEScctTransferFunctions).
|
|
1294
|
+
protoOf(ACEScctTransferFunctions).k1m = function (x) {
|
|
1295
1295
|
var tmp;
|
|
1296
1296
|
if (x < 0.0078125) {
|
|
1297
1297
|
tmp = 10.5402377416545 * x + 0.0729055341958355;
|
|
@@ -1309,16 +1309,16 @@
|
|
|
1309
1309
|
}
|
|
1310
1310
|
function BT2020TransferFunctions() {
|
|
1311
1311
|
BT2020TransferFunctions_instance = this;
|
|
1312
|
-
this.
|
|
1313
|
-
this.
|
|
1312
|
+
this.y1n_1 = 1.0993;
|
|
1313
|
+
this.z1n_1 = 0.0181;
|
|
1314
1314
|
var tmp = this;
|
|
1315
1315
|
// Inline function 'kotlin.math.pow' call
|
|
1316
|
-
tmp.
|
|
1316
|
+
tmp.a1o_1 = 1.0993 * Math.pow(0.0181, 0.45) - (1.0993 - 1);
|
|
1317
1317
|
}
|
|
1318
|
-
protoOf(BT2020TransferFunctions).
|
|
1319
|
-
return numberToDouble(x < this.
|
|
1318
|
+
protoOf(BT2020TransferFunctions).j1m = function (x) {
|
|
1319
|
+
return numberToDouble(x < this.a1o_1 ? x / 4.5 : spow_0((x + (1.0993 - 1)) / 1.0993, 1 / 0.45));
|
|
1320
1320
|
};
|
|
1321
|
-
protoOf(BT2020TransferFunctions).
|
|
1321
|
+
protoOf(BT2020TransferFunctions).k1m = function (x) {
|
|
1322
1322
|
return x < 0.0181 ? 4.5 * x : 1.0993 * spow(x, 0.45) - (1.0993 - 1);
|
|
1323
1323
|
};
|
|
1324
1324
|
var BT2020TransferFunctions_instance;
|
|
@@ -1329,12 +1329,12 @@
|
|
|
1329
1329
|
}
|
|
1330
1330
|
function BT709TransferFunctions() {
|
|
1331
1331
|
BT709TransferFunctions_instance = this;
|
|
1332
|
-
this.
|
|
1332
|
+
this.b1o_1 = 1.099 * spow_0(0.018, 0.45) - 0.099;
|
|
1333
1333
|
}
|
|
1334
|
-
protoOf(BT709TransferFunctions).
|
|
1335
|
-
return numberToDouble(x < this.
|
|
1334
|
+
protoOf(BT709TransferFunctions).j1m = function (x) {
|
|
1335
|
+
return numberToDouble(x < this.b1o_1 ? x / 4.5 : spow_0((x + 0.099) / 1.099, 1 / 0.45));
|
|
1336
1336
|
};
|
|
1337
|
-
protoOf(BT709TransferFunctions).
|
|
1337
|
+
protoOf(BT709TransferFunctions).k1m = function (x) {
|
|
1338
1338
|
return x < 0.018 ? 4.5 * x : 1.099 * spow(x, 0.45) - 0.099;
|
|
1339
1339
|
};
|
|
1340
1340
|
var BT709TransferFunctions_instance;
|
|
@@ -1344,12 +1344,12 @@
|
|
|
1344
1344
|
return BT709TransferFunctions_instance;
|
|
1345
1345
|
}
|
|
1346
1346
|
function ROMMTransferFunctions() {
|
|
1347
|
-
this.
|
|
1347
|
+
this.c1o_1 = 0.001953;
|
|
1348
1348
|
}
|
|
1349
|
-
protoOf(ROMMTransferFunctions).
|
|
1349
|
+
protoOf(ROMMTransferFunctions).j1m = function (x) {
|
|
1350
1350
|
return x < 16 * 0.001953 ? x / 16.0 : spow(x, 1.8);
|
|
1351
1351
|
};
|
|
1352
|
-
protoOf(ROMMTransferFunctions).
|
|
1352
|
+
protoOf(ROMMTransferFunctions).k1m = function (x) {
|
|
1353
1353
|
return x < 0.001953 ? x * 16.0 : spow(x, 1.0 / 1.8);
|
|
1354
1354
|
};
|
|
1355
1355
|
var ROMMTransferFunctions_instance;
|
|
@@ -1358,13 +1358,13 @@
|
|
|
1358
1358
|
}
|
|
1359
1359
|
function rgbToXyzMatrix(whitePoint, r, g, b) {
|
|
1360
1360
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
1361
|
-
var primaries = _Matrix___init__impl__q3kp4w_0(r.
|
|
1362
|
-
var wp = whitePoint.
|
|
1361
|
+
var primaries = _Matrix___init__impl__q3kp4w_0(r.d1o_1, g.d1o_1, b.d1o_1, r.e1o_1, g.e1o_1, b.e1o_1, r.g1o(), g.g1o(), b.g1o());
|
|
1362
|
+
var wp = whitePoint.h1k_1;
|
|
1363
1363
|
var tmp0 = inverse(primaries);
|
|
1364
|
-
var tmp2 = wp.
|
|
1365
|
-
var tmp4 = wp.
|
|
1364
|
+
var tmp2 = wp.h1o();
|
|
1365
|
+
var tmp4 = wp.f1o_1;
|
|
1366
1366
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1367
|
-
var v2 = wp.
|
|
1367
|
+
var v2 = wp.i1o();
|
|
1368
1368
|
var tmp0_0 = Matrix__get_impl_xogbpk(tmp0, 0, 0) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 1, 0) * tmp4 + Matrix__get_impl_xogbpk(tmp0, 2, 0) * v2;
|
|
1369
1369
|
var tmp2_0 = Matrix__get_impl_xogbpk(tmp0, 0, 1) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 1, 1) * tmp4 + Matrix__get_impl_xogbpk(tmp0, 2, 1) * v2;
|
|
1370
1370
|
var z = Matrix__get_impl_xogbpk(tmp0, 0, 2) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 1, 2) * tmp4 + Matrix__get_impl_xogbpk(tmp0, 2, 2) * v2;
|
|
@@ -1374,9 +1374,9 @@
|
|
|
1374
1374
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
1375
1375
|
var tmp;
|
|
1376
1376
|
if (color instanceof RGB) {
|
|
1377
|
-
tmp = color.
|
|
1377
|
+
tmp = color.v1m($this$RGBColorSpaceImpl);
|
|
1378
1378
|
} else {
|
|
1379
|
-
tmp = color.
|
|
1379
|
+
tmp = color.w1j().b1n($this$RGBColorSpaceImpl);
|
|
1380
1380
|
}
|
|
1381
1381
|
return tmp;
|
|
1382
1382
|
}
|
|
@@ -1398,22 +1398,22 @@
|
|
|
1398
1398
|
}
|
|
1399
1399
|
function Companion_3() {
|
|
1400
1400
|
Companion_instance_3 = this;
|
|
1401
|
-
this.
|
|
1401
|
+
this.j1o_1 = XYZColorSpaces_getInstance().k1o_1;
|
|
1402
1402
|
}
|
|
1403
|
-
protoOf(Companion_3).
|
|
1404
|
-
return this.
|
|
1403
|
+
protoOf(Companion_3).h1l = function (x, y, z, alpha) {
|
|
1404
|
+
return this.j1o_1.h1l(x, y, z, alpha);
|
|
1405
1405
|
};
|
|
1406
|
-
protoOf(Companion_3).
|
|
1407
|
-
return this.
|
|
1406
|
+
protoOf(Companion_3).r1m = function () {
|
|
1407
|
+
return this.j1o_1.r1m();
|
|
1408
1408
|
};
|
|
1409
|
-
protoOf(Companion_3).
|
|
1410
|
-
return this.
|
|
1409
|
+
protoOf(Companion_3).t1k = function () {
|
|
1410
|
+
return this.j1o_1.t1k();
|
|
1411
1411
|
};
|
|
1412
1412
|
protoOf(Companion_3).hashCode = function () {
|
|
1413
|
-
return hashCode(XYZColorSpaces_getInstance().
|
|
1413
|
+
return hashCode(XYZColorSpaces_getInstance().k1o_1);
|
|
1414
1414
|
};
|
|
1415
1415
|
protoOf(Companion_3).equals = function (other) {
|
|
1416
|
-
return equals(XYZColorSpaces_getInstance().
|
|
1416
|
+
return equals(XYZColorSpaces_getInstance().k1o_1, other);
|
|
1417
1417
|
};
|
|
1418
1418
|
var Companion_instance_3;
|
|
1419
1419
|
function Companion_getInstance_3() {
|
|
@@ -1422,69 +1422,69 @@
|
|
|
1422
1422
|
return Companion_instance_3;
|
|
1423
1423
|
}
|
|
1424
1424
|
function adaptToM($this, space, m, mi) {
|
|
1425
|
-
if (space.
|
|
1425
|
+
if (space.r1m().equals($this.a1n_1.r1m()))
|
|
1426
1426
|
return $this;
|
|
1427
|
-
var transform = chromaticAdaptationMatrix(space, $this.
|
|
1428
|
-
var tmp2 = $this.
|
|
1429
|
-
var tmp4 = $this.
|
|
1427
|
+
var transform = chromaticAdaptationMatrix(space, $this.a1n_1.r1m().h1k_1, m, mi);
|
|
1428
|
+
var tmp2 = $this.w1m_1;
|
|
1429
|
+
var tmp4 = $this.x1m_1;
|
|
1430
1430
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1431
|
-
var v2 = $this.
|
|
1431
|
+
var v2 = $this.y1m_1;
|
|
1432
1432
|
var tmp0 = Matrix__get_impl_xogbpk(transform, 0, 0) * tmp2 + Matrix__get_impl_xogbpk(transform, 1, 0) * tmp4 + Matrix__get_impl_xogbpk(transform, 2, 0) * v2;
|
|
1433
1433
|
var tmp2_0 = Matrix__get_impl_xogbpk(transform, 0, 1) * tmp2 + Matrix__get_impl_xogbpk(transform, 1, 1) * tmp4 + Matrix__get_impl_xogbpk(transform, 2, 1) * v2;
|
|
1434
1434
|
var zz = Matrix__get_impl_xogbpk(transform, 0, 2) * tmp2 + Matrix__get_impl_xogbpk(transform, 1, 2) * tmp4 + Matrix__get_impl_xogbpk(transform, 2, 2) * v2;
|
|
1435
|
-
return space.
|
|
1435
|
+
return space.h1l(tmp0, tmp2_0, zz, $this.z1m_1);
|
|
1436
1436
|
}
|
|
1437
1437
|
function XYZ(x, y, z, alpha, space) {
|
|
1438
1438
|
Companion_getInstance_3();
|
|
1439
|
-
this.
|
|
1440
|
-
this.
|
|
1441
|
-
this.
|
|
1442
|
-
this.
|
|
1443
|
-
this.
|
|
1439
|
+
this.w1m_1 = x;
|
|
1440
|
+
this.x1m_1 = y;
|
|
1441
|
+
this.y1m_1 = z;
|
|
1442
|
+
this.z1m_1 = alpha;
|
|
1443
|
+
this.a1n_1 = space;
|
|
1444
1444
|
}
|
|
1445
|
-
protoOf(XYZ).
|
|
1446
|
-
return this.
|
|
1445
|
+
protoOf(XYZ).u1j = function () {
|
|
1446
|
+
return this.a1n_1;
|
|
1447
1447
|
};
|
|
1448
|
-
protoOf(XYZ).
|
|
1448
|
+
protoOf(XYZ).m1o = function (space) {
|
|
1449
1449
|
return adaptToM(this, space, get_CAT02_XYZ_TO_LMS(), get_CAT02_LMS_TO_XYZ());
|
|
1450
1450
|
};
|
|
1451
|
-
protoOf(XYZ).
|
|
1452
|
-
var _destruct__k2r9zo = this.
|
|
1453
|
-
var x = _destruct__k2r9zo.
|
|
1454
|
-
var y = _destruct__k2r9zo.
|
|
1455
|
-
var z = _destruct__k2r9zo.
|
|
1456
|
-
var f = space.
|
|
1451
|
+
protoOf(XYZ).b1n = function (space) {
|
|
1452
|
+
var _destruct__k2r9zo = this.m1o(XYZColorSpace_0(space.r1m()));
|
|
1453
|
+
var x = _destruct__k2r9zo.y9();
|
|
1454
|
+
var y = _destruct__k2r9zo.z9();
|
|
1455
|
+
var z = _destruct__k2r9zo.ji();
|
|
1456
|
+
var f = space.a1m();
|
|
1457
1457
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1458
|
-
var this_0 = _Matrix___init__impl__q3kp4w(space.
|
|
1458
|
+
var this_0 = _Matrix___init__impl__q3kp4w(space.q1m());
|
|
1459
1459
|
var tmp0 = 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;
|
|
1460
1460
|
var tmp2 = 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;
|
|
1461
1461
|
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;
|
|
1462
|
-
return space.
|
|
1462
|
+
return space.h1l(f.k1m(tmp0), f.k1m(tmp2), f.k1m(b), this.z1m_1);
|
|
1463
1463
|
};
|
|
1464
|
-
protoOf(XYZ).
|
|
1465
|
-
return this.
|
|
1464
|
+
protoOf(XYZ).v1j = function () {
|
|
1465
|
+
return this.b1n(RGBColorSpaces_getInstance().o1l_1);
|
|
1466
1466
|
};
|
|
1467
|
-
protoOf(XYZ).
|
|
1467
|
+
protoOf(XYZ).w1j = function () {
|
|
1468
1468
|
return this;
|
|
1469
1469
|
};
|
|
1470
|
-
protoOf(XYZ).
|
|
1471
|
-
return this.
|
|
1470
|
+
protoOf(XYZ).y9 = function () {
|
|
1471
|
+
return this.w1m_1;
|
|
1472
1472
|
};
|
|
1473
|
-
protoOf(XYZ).
|
|
1474
|
-
return this.
|
|
1473
|
+
protoOf(XYZ).z9 = function () {
|
|
1474
|
+
return this.x1m_1;
|
|
1475
1475
|
};
|
|
1476
|
-
protoOf(XYZ).
|
|
1477
|
-
return this.
|
|
1476
|
+
protoOf(XYZ).ji = function () {
|
|
1477
|
+
return this.y1m_1;
|
|
1478
1478
|
};
|
|
1479
1479
|
protoOf(XYZ).toString = function () {
|
|
1480
|
-
return 'XYZ(x=' + this.
|
|
1480
|
+
return 'XYZ(x=' + this.w1m_1 + ', y=' + this.x1m_1 + ', z=' + this.y1m_1 + ', alpha=' + this.z1m_1 + ', space=' + toString(this.a1n_1) + ')';
|
|
1481
1481
|
};
|
|
1482
1482
|
protoOf(XYZ).hashCode = function () {
|
|
1483
|
-
var result = getNumberHashCode(this.
|
|
1484
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1485
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1486
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1487
|
-
result = imul(result, 31) + hashCode(this.
|
|
1483
|
+
var result = getNumberHashCode(this.w1m_1);
|
|
1484
|
+
result = imul(result, 31) + getNumberHashCode(this.x1m_1) | 0;
|
|
1485
|
+
result = imul(result, 31) + getNumberHashCode(this.y1m_1) | 0;
|
|
1486
|
+
result = imul(result, 31) + getNumberHashCode(this.z1m_1) | 0;
|
|
1487
|
+
result = imul(result, 31) + hashCode(this.a1n_1) | 0;
|
|
1488
1488
|
return result;
|
|
1489
1489
|
};
|
|
1490
1490
|
protoOf(XYZ).equals = function (other) {
|
|
@@ -1493,27 +1493,27 @@
|
|
|
1493
1493
|
if (!(other instanceof XYZ))
|
|
1494
1494
|
return false;
|
|
1495
1495
|
var tmp0_other_with_cast = other instanceof XYZ ? other : THROW_CCE();
|
|
1496
|
-
if (!equals(this.
|
|
1496
|
+
if (!equals(this.w1m_1, tmp0_other_with_cast.w1m_1))
|
|
1497
1497
|
return false;
|
|
1498
|
-
if (!equals(this.
|
|
1498
|
+
if (!equals(this.x1m_1, tmp0_other_with_cast.x1m_1))
|
|
1499
1499
|
return false;
|
|
1500
|
-
if (!equals(this.
|
|
1500
|
+
if (!equals(this.y1m_1, tmp0_other_with_cast.y1m_1))
|
|
1501
1501
|
return false;
|
|
1502
|
-
if (!equals(this.
|
|
1502
|
+
if (!equals(this.z1m_1, tmp0_other_with_cast.z1m_1))
|
|
1503
1503
|
return false;
|
|
1504
|
-
if (!equals(this.
|
|
1504
|
+
if (!equals(this.a1n_1, tmp0_other_with_cast.a1n_1))
|
|
1505
1505
|
return false;
|
|
1506
1506
|
return true;
|
|
1507
1507
|
};
|
|
1508
1508
|
function XYZColorSpace() {
|
|
1509
1509
|
}
|
|
1510
1510
|
function XYZColorSpace_0(whitePoint) {
|
|
1511
|
-
return whitePoint.equals(Illuminant_getInstance().
|
|
1511
|
+
return whitePoint.equals(Illuminant_getInstance().n1k_1) ? XYZColorSpaces_getInstance().k1o_1 : whitePoint.equals(Illuminant_getInstance().l1k_1) ? XYZColorSpaces_getInstance().l1o_1 : new XYZColorSpaceImpl(whitePoint);
|
|
1512
1512
|
}
|
|
1513
1513
|
function XYZColorSpaces() {
|
|
1514
1514
|
XYZColorSpaces_instance = this;
|
|
1515
|
-
this.
|
|
1516
|
-
this.
|
|
1515
|
+
this.k1o_1 = new XYZColorSpaceImpl(Illuminant_getInstance().n1k_1);
|
|
1516
|
+
this.l1o_1 = new XYZColorSpaceImpl(Illuminant_getInstance().l1k_1);
|
|
1517
1517
|
}
|
|
1518
1518
|
var XYZColorSpaces_instance;
|
|
1519
1519
|
function XYZColorSpaces_getInstance() {
|
|
@@ -1524,34 +1524,34 @@
|
|
|
1524
1524
|
function chromaticAdaptationMatrix(_this__u8e3s4, srcWp, xyzToLms, lmsToXyz) {
|
|
1525
1525
|
xyzToLms = xyzToLms === VOID ? get_CAT02_XYZ_TO_LMS() : xyzToLms;
|
|
1526
1526
|
lmsToXyz = lmsToXyz === VOID ? get_CAT02_LMS_TO_XYZ() : lmsToXyz;
|
|
1527
|
-
var dstWp = _this__u8e3s4.
|
|
1528
|
-
var src = dot_0(xyzToLms, srcWp.
|
|
1529
|
-
var dst = dot_0(xyzToLms, dstWp.
|
|
1527
|
+
var dstWp = _this__u8e3s4.r1m().h1k_1;
|
|
1528
|
+
var src = dot_0(xyzToLms, srcWp.h1o(), srcWp.f1o_1, srcWp.i1o());
|
|
1529
|
+
var dst = dot_0(xyzToLms, dstWp.h1o(), dstWp.f1o_1, dstWp.i1o());
|
|
1530
1530
|
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);
|
|
1531
1531
|
}
|
|
1532
1532
|
function XYZColorSpaceImpl(whitePoint) {
|
|
1533
|
-
this.
|
|
1534
|
-
this.
|
|
1533
|
+
this.n1o_1 = whitePoint;
|
|
1534
|
+
this.o1o_1 = zeroOneComponentInfo('XYZ');
|
|
1535
1535
|
}
|
|
1536
|
-
protoOf(XYZColorSpaceImpl).
|
|
1537
|
-
return this.
|
|
1536
|
+
protoOf(XYZColorSpaceImpl).r1m = function () {
|
|
1537
|
+
return this.n1o_1;
|
|
1538
1538
|
};
|
|
1539
|
-
protoOf(XYZColorSpaceImpl).
|
|
1540
|
-
return this.
|
|
1539
|
+
protoOf(XYZColorSpaceImpl).t1k = function () {
|
|
1540
|
+
return this.o1o_1;
|
|
1541
1541
|
};
|
|
1542
1542
|
protoOf(XYZColorSpaceImpl).toString = function () {
|
|
1543
|
-
return 'XYZColorSpace(' + this.
|
|
1543
|
+
return 'XYZColorSpace(' + this.n1o_1.toString() + ')';
|
|
1544
1544
|
};
|
|
1545
|
-
protoOf(XYZColorSpaceImpl).
|
|
1545
|
+
protoOf(XYZColorSpaceImpl).h1l = function (x, y, z, alpha) {
|
|
1546
1546
|
return new XYZ(x, y, z, alpha, this);
|
|
1547
1547
|
};
|
|
1548
1548
|
protoOf(XYZColorSpaceImpl).hashCode = function () {
|
|
1549
|
-
return this.
|
|
1549
|
+
return this.n1o_1.hashCode();
|
|
1550
1550
|
};
|
|
1551
1551
|
protoOf(XYZColorSpaceImpl).equals = function (other) {
|
|
1552
1552
|
var tmp;
|
|
1553
1553
|
if (!(other == null) ? isInterface(other, XYZColorSpace) : false) {
|
|
1554
|
-
tmp = this.
|
|
1554
|
+
tmp = this.n1o_1.equals(other.r1m());
|
|
1555
1555
|
} else {
|
|
1556
1556
|
tmp = false;
|
|
1557
1557
|
}
|
|
@@ -1567,26 +1567,26 @@
|
|
|
1567
1567
|
}
|
|
1568
1568
|
function xyY(x, y, Y) {
|
|
1569
1569
|
Y = Y === VOID ? 1.0 : Y;
|
|
1570
|
-
this.
|
|
1571
|
-
this.
|
|
1572
|
-
this.
|
|
1570
|
+
this.d1o_1 = x;
|
|
1571
|
+
this.e1o_1 = y;
|
|
1572
|
+
this.f1o_1 = Y;
|
|
1573
1573
|
}
|
|
1574
|
-
protoOf(xyY).
|
|
1575
|
-
return 1 - this.
|
|
1574
|
+
protoOf(xyY).g1o = function () {
|
|
1575
|
+
return 1 - this.d1o_1 - this.e1o_1;
|
|
1576
1576
|
};
|
|
1577
|
-
protoOf(xyY).
|
|
1578
|
-
return this.
|
|
1577
|
+
protoOf(xyY).h1o = function () {
|
|
1578
|
+
return this.d1o_1 * this.f1o_1 / this.e1o_1;
|
|
1579
1579
|
};
|
|
1580
|
-
protoOf(xyY).
|
|
1581
|
-
return (1 - this.
|
|
1580
|
+
protoOf(xyY).i1o = function () {
|
|
1581
|
+
return (1 - this.d1o_1 - this.e1o_1) * this.f1o_1 / this.e1o_1;
|
|
1582
1582
|
};
|
|
1583
1583
|
protoOf(xyY).toString = function () {
|
|
1584
|
-
return 'xyY(x=' + this.
|
|
1584
|
+
return 'xyY(x=' + this.d1o_1 + ', y=' + this.e1o_1 + ', Y=' + this.f1o_1 + ')';
|
|
1585
1585
|
};
|
|
1586
1586
|
protoOf(xyY).hashCode = function () {
|
|
1587
|
-
var result = getNumberHashCode(this.
|
|
1588
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1589
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1587
|
+
var result = getNumberHashCode(this.d1o_1);
|
|
1588
|
+
result = imul(result, 31) + getNumberHashCode(this.e1o_1) | 0;
|
|
1589
|
+
result = imul(result, 31) + getNumberHashCode(this.f1o_1) | 0;
|
|
1590
1590
|
return result;
|
|
1591
1591
|
};
|
|
1592
1592
|
protoOf(xyY).equals = function (other) {
|
|
@@ -1595,30 +1595,30 @@
|
|
|
1595
1595
|
if (!(other instanceof xyY))
|
|
1596
1596
|
return false;
|
|
1597
1597
|
var tmp0_other_with_cast = other instanceof xyY ? other : THROW_CCE();
|
|
1598
|
-
if (!equals(this.
|
|
1598
|
+
if (!equals(this.d1o_1, tmp0_other_with_cast.d1o_1))
|
|
1599
1599
|
return false;
|
|
1600
|
-
if (!equals(this.
|
|
1600
|
+
if (!equals(this.e1o_1, tmp0_other_with_cast.e1o_1))
|
|
1601
1601
|
return false;
|
|
1602
|
-
if (!equals(this.
|
|
1602
|
+
if (!equals(this.f1o_1, tmp0_other_with_cast.f1o_1))
|
|
1603
1603
|
return false;
|
|
1604
1604
|
return true;
|
|
1605
1605
|
};
|
|
1606
1606
|
//region block: post-declaration
|
|
1607
|
-
protoOf(Ansi16).
|
|
1608
|
-
protoOf(Ansi256).
|
|
1609
|
-
protoOf(HSV).
|
|
1610
|
-
protoOf(Companion_2).
|
|
1611
|
-
protoOf(Companion_2).
|
|
1612
|
-
protoOf(Companion_2).
|
|
1613
|
-
protoOf(SRGB).
|
|
1614
|
-
protoOf(SRGB).
|
|
1615
|
-
protoOf(SRGB).
|
|
1616
|
-
protoOf(RGBColorSpaceImpl).
|
|
1617
|
-
protoOf(RGBColorSpaceImpl).
|
|
1618
|
-
protoOf(RGBColorSpaceImpl).
|
|
1619
|
-
protoOf(RGBColorSpaceImpl).
|
|
1620
|
-
protoOf(RGBColorSpaceImpl).
|
|
1621
|
-
protoOf(RGBColorSpaceImpl).
|
|
1607
|
+
protoOf(Ansi16).w1j = toXYZ;
|
|
1608
|
+
protoOf(Ansi256).w1j = toXYZ;
|
|
1609
|
+
protoOf(HSV).w1j = toXYZ;
|
|
1610
|
+
protoOf(Companion_2).v1k = invoke$default;
|
|
1611
|
+
protoOf(Companion_2).a1l = invoke$default_0;
|
|
1612
|
+
protoOf(Companion_2).w1k = from255$default;
|
|
1613
|
+
protoOf(SRGB).v1k = invoke$default;
|
|
1614
|
+
protoOf(SRGB).a1l = invoke$default_0;
|
|
1615
|
+
protoOf(SRGB).w1k = from255$default;
|
|
1616
|
+
protoOf(RGBColorSpaceImpl).v1k = invoke$default;
|
|
1617
|
+
protoOf(RGBColorSpaceImpl).m1m = invoke;
|
|
1618
|
+
protoOf(RGBColorSpaceImpl).a1l = invoke$default_0;
|
|
1619
|
+
protoOf(RGBColorSpaceImpl).o1m = invoke_0;
|
|
1620
|
+
protoOf(RGBColorSpaceImpl).n1m = from255;
|
|
1621
|
+
protoOf(RGBColorSpaceImpl).w1k = from255$default;
|
|
1622
1622
|
//endregion
|
|
1623
1623
|
//region block: init
|
|
1624
1624
|
PqNonlinearity_instance = new PqNonlinearity();
|