git-digger 1.7.27 → 1.7.29
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 +677 -465
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/kotlin/clikt-clikt-mordant.js +50 -50
- package/kotlin/clikt-clikt-mordant.js.map +1 -1
- package/kotlin/clikt-clikt.js +196 -196
- package/kotlin/clikt-clikt.js.map +1 -1
- package/kotlin/colormath-root-colormath.js +368 -339
- package/kotlin/colormath-root-colormath.js.map +1 -1
- package/kotlin/command-line-tools-digger-cli.js +329 -249
- package/kotlin/command-line-tools-digger-cli.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +356 -419
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +100 -93
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +31 -31
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/kotlin/mordant-mordant.js +1195 -1215
- package/kotlin/mordant-mordant.js.map +1 -1
- package/kotlin/tools-cli-tools.js +1 -1
- package/kotlin/tools-digger-core.js +25 -26
- package/kotlin/tools-digger-core.js.map +1 -1
- package/kotlin/tools-digger-json.js +15 -15
- package/kotlin/tools-digger-model.js +8 -8
- package/kotlin/tools-git-adapter.js +14 -14
- package/kotlin/tools-git-adapter.js.map +1 -1
- package/package.json +1 -2
|
@@ -3,42 +3,43 @@
|
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
5
|
var log2 = Math.log2;
|
|
6
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
8
|
-
var toString = kotlin_kotlin.$_$.
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.s8;
|
|
7
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.w7;
|
|
8
|
+
var toString = kotlin_kotlin.$_$.v8;
|
|
9
9
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.d1;
|
|
10
10
|
var Unit_instance = kotlin_kotlin.$_$.j3;
|
|
11
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
12
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
13
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
14
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
11
|
+
var initMetadataForClass = kotlin_kotlin.$_$.t7;
|
|
12
|
+
var getStringHashCode = kotlin_kotlin.$_$.r7;
|
|
13
|
+
var THROW_CCE = kotlin_kotlin.$_$.cc;
|
|
14
|
+
var initMetadataForObject = kotlin_kotlin.$_$.y7;
|
|
15
15
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
16
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
17
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
16
|
+
var charSequenceLength = kotlin_kotlin.$_$.k7;
|
|
17
|
+
var charSequenceGet = kotlin_kotlin.$_$.j7;
|
|
18
18
|
var toString_0 = kotlin_kotlin.$_$.t1;
|
|
19
19
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.q1;
|
|
20
20
|
var arrayConcat = kotlin_kotlin.$_$.a;
|
|
21
21
|
var listOf = kotlin_kotlin.$_$.j5;
|
|
22
|
-
var withSign = kotlin_kotlin.$_$.
|
|
23
|
-
var trimMargin = kotlin_kotlin.$_$.
|
|
24
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
25
|
-
var equals = kotlin_kotlin.$_$.
|
|
22
|
+
var withSign = kotlin_kotlin.$_$.x8;
|
|
23
|
+
var trimMargin = kotlin_kotlin.$_$.kb;
|
|
24
|
+
var hashCode = kotlin_kotlin.$_$.s7;
|
|
25
|
+
var equals = kotlin_kotlin.$_$.n7;
|
|
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
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
var
|
|
27
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.u7;
|
|
28
|
+
var coerceAtLeast = kotlin_kotlin.$_$.y8;
|
|
29
|
+
var getNumberHashCode = kotlin_kotlin.$_$.p7;
|
|
30
|
+
var numberToDouble = kotlin_kotlin.$_$.o8;
|
|
31
|
+
var roundToInt = kotlin_kotlin.$_$.w8;
|
|
32
|
+
var coerceIn = kotlin_kotlin.$_$.c9;
|
|
33
|
+
var charCodeAt = kotlin_kotlin.$_$.i7;
|
|
34
|
+
var Char = kotlin_kotlin.$_$.qb;
|
|
35
|
+
var toInt = kotlin_kotlin.$_$.ib;
|
|
36
|
+
var numberRangeToNumber = kotlin_kotlin.$_$.m8;
|
|
37
|
+
var slice = kotlin_kotlin.$_$.xa;
|
|
38
|
+
var startsWith = kotlin_kotlin.$_$.za;
|
|
39
|
+
var isInterface = kotlin_kotlin.$_$.h8;
|
|
39
40
|
var contentEquals = kotlin_kotlin.$_$.j4;
|
|
40
|
-
var coerceAtLeast_0 = kotlin_kotlin.$_$.
|
|
41
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
41
|
+
var coerceAtLeast_0 = kotlin_kotlin.$_$.a9;
|
|
42
|
+
var objectCreate = kotlin_kotlin.$_$.r8;
|
|
42
43
|
//endregion
|
|
43
44
|
//region block: pre-declaration
|
|
44
45
|
function toXYZ() {
|
|
@@ -49,6 +50,7 @@
|
|
|
49
50
|
initMetadataForClass(WhitePoint, 'WhitePoint');
|
|
50
51
|
initMetadataForObject(Illuminant, 'Illuminant');
|
|
51
52
|
initMetadataForClass(Matrix, 'Matrix');
|
|
53
|
+
initMetadataForClass(Vector, 'Vector');
|
|
52
54
|
initMetadataForCompanion(Companion);
|
|
53
55
|
initMetadataForClass(Ansi16, 'Ansi16', VOID, VOID, [Color]);
|
|
54
56
|
initMetadataForCompanion(Companion_0);
|
|
@@ -61,21 +63,21 @@
|
|
|
61
63
|
initMetadataForObject(LinearTransferFunctions, 'LinearTransferFunctions');
|
|
62
64
|
function invoke$default(r, g, b, alpha, $super) {
|
|
63
65
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
64
|
-
return $super === VOID ? this.
|
|
66
|
+
return $super === VOID ? this.n20(r, g, b, alpha) : $super.n20.call(this, r, g, b, alpha);
|
|
65
67
|
}
|
|
66
68
|
function invoke(r, g, b, alpha) {
|
|
67
|
-
return this.
|
|
69
|
+
return this.n20(numberToDouble(r), numberToDouble(g), numberToDouble(b), numberToDouble(alpha));
|
|
68
70
|
}
|
|
69
71
|
function invoke$default_0(r, g, b, alpha, $super) {
|
|
70
72
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
71
|
-
return $super === VOID ? this.
|
|
73
|
+
return $super === VOID ? this.s21(r, g, b, alpha) : invoke(r, g, b, alpha);
|
|
72
74
|
}
|
|
73
75
|
function from255(r, g, b, alpha) {
|
|
74
|
-
return this.
|
|
76
|
+
return this.n20(r / 255.0, g / 255.0, b / 255.0, alpha / 255.0);
|
|
75
77
|
}
|
|
76
78
|
function from255$default(r, g, b, alpha, $super) {
|
|
77
79
|
alpha = alpha === VOID ? 255 : alpha;
|
|
78
|
-
return $super === VOID ? this.
|
|
80
|
+
return $super === VOID ? this.t21(r, g, b, alpha) : from255(r, g, b, alpha);
|
|
79
81
|
}
|
|
80
82
|
function invoke_0(hex) {
|
|
81
83
|
var tmp = parseHex(validateHex(hex), 0);
|
|
@@ -89,7 +91,7 @@
|
|
|
89
91
|
} else {
|
|
90
92
|
tmp_2 = 255;
|
|
91
93
|
}
|
|
92
|
-
return this.
|
|
94
|
+
return this.t21(tmp, tmp_0, tmp_1, tmp_2);
|
|
93
95
|
}
|
|
94
96
|
initMetadataForInterface(RGBColorSpace, 'RGBColorSpace');
|
|
95
97
|
initMetadataForCompanion(Companion_2, VOID, [RGBColorSpace]);
|
|
@@ -367,22 +369,48 @@
|
|
|
367
369
|
function _Vector___get_s__impl__pzuljk($this) {
|
|
368
370
|
return _Vector___get_values__impl__3gdbp5($this)[2];
|
|
369
371
|
}
|
|
372
|
+
function Vector__toString_impl_hn2ybi($this) {
|
|
373
|
+
return 'Vector(values=' + toString($this) + ')';
|
|
374
|
+
}
|
|
375
|
+
function Vector__hashCode_impl_442yhd($this) {
|
|
376
|
+
return hashCode($this);
|
|
377
|
+
}
|
|
378
|
+
function Vector__equals_impl_hy6igl($this, other) {
|
|
379
|
+
if (!(other instanceof Vector))
|
|
380
|
+
return false;
|
|
381
|
+
var tmp0_other_with_cast = other instanceof Vector ? other.x1z_1 : THROW_CCE();
|
|
382
|
+
if (!equals($this, tmp0_other_with_cast))
|
|
383
|
+
return false;
|
|
384
|
+
return true;
|
|
385
|
+
}
|
|
386
|
+
function Vector(values) {
|
|
387
|
+
this.x1z_1 = values;
|
|
388
|
+
}
|
|
389
|
+
protoOf(Vector).toString = function () {
|
|
390
|
+
return Vector__toString_impl_hn2ybi(this.x1z_1);
|
|
391
|
+
};
|
|
392
|
+
protoOf(Vector).hashCode = function () {
|
|
393
|
+
return Vector__hashCode_impl_442yhd(this.x1z_1);
|
|
394
|
+
};
|
|
395
|
+
protoOf(Vector).equals = function (other) {
|
|
396
|
+
return Vector__equals_impl_hy6igl(this.x1z_1, other);
|
|
397
|
+
};
|
|
370
398
|
function dot_0(_this__u8e3s4, v0, v1, v2) {
|
|
371
399
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
372
|
-
var
|
|
373
|
-
var
|
|
400
|
+
var tmp0 = Matrix__get_impl_xogbpk(_this__u8e3s4, 0, 0) * v0 + Matrix__get_impl_xogbpk(_this__u8e3s4, 1, 0) * v1 + Matrix__get_impl_xogbpk(_this__u8e3s4, 2, 0) * v2;
|
|
401
|
+
var tmp2 = Matrix__get_impl_xogbpk(_this__u8e3s4, 0, 1) * v0 + Matrix__get_impl_xogbpk(_this__u8e3s4, 1, 1) * v1 + Matrix__get_impl_xogbpk(_this__u8e3s4, 2, 1) * v2;
|
|
374
402
|
var p2 = Matrix__get_impl_xogbpk(_this__u8e3s4, 0, 2) * v0 + Matrix__get_impl_xogbpk(_this__u8e3s4, 1, 2) * v1 + Matrix__get_impl_xogbpk(_this__u8e3s4, 2, 2) * v2;
|
|
375
|
-
return _Vector___init__impl__y7x4qq_0(
|
|
403
|
+
return _Vector___init__impl__y7x4qq_0(tmp0, tmp2, p2);
|
|
376
404
|
}
|
|
377
405
|
function dot$f($this_dot, $other, x, y) {
|
|
378
406
|
return Matrix__get_impl_xogbpk($this_dot, 0, y) * Matrix__get_impl_xogbpk($other, x, 0) + Matrix__get_impl_xogbpk($this_dot, 1, y) * Matrix__get_impl_xogbpk($other, x, 1) + Matrix__get_impl_xogbpk($this_dot, 2, y) * Matrix__get_impl_xogbpk($other, x, 2);
|
|
379
407
|
}
|
|
380
408
|
function Companion() {
|
|
381
409
|
Companion_instance = this;
|
|
382
|
-
this.
|
|
410
|
+
this.y1z_1 = componentInfoList([new ColorComponentInfo('code', false, 30.0, 107.0)]);
|
|
383
411
|
}
|
|
384
|
-
protoOf(Companion).
|
|
385
|
-
return this.
|
|
412
|
+
protoOf(Companion).z1z = function () {
|
|
413
|
+
return this.y1z_1;
|
|
386
414
|
};
|
|
387
415
|
var Companion_instance;
|
|
388
416
|
function Companion_getInstance() {
|
|
@@ -392,38 +420,38 @@
|
|
|
392
420
|
}
|
|
393
421
|
function Ansi16(code) {
|
|
394
422
|
Companion_getInstance();
|
|
395
|
-
this.
|
|
423
|
+
this.a20_1 = code;
|
|
396
424
|
}
|
|
397
425
|
protoOf(Ansi16).a1z = function () {
|
|
398
426
|
return Companion_getInstance();
|
|
399
427
|
};
|
|
400
428
|
protoOf(Ansi16).b1z = function () {
|
|
401
|
-
switch (this.
|
|
429
|
+
switch (this.a20_1) {
|
|
402
430
|
case 30:
|
|
403
431
|
case 40:
|
|
404
|
-
return Companion_getInstance_2().
|
|
432
|
+
return Companion_getInstance_2().b20(0.0, 0.0, 0.0);
|
|
405
433
|
case 90:
|
|
406
434
|
case 100:
|
|
407
|
-
return Companion_getInstance_2().
|
|
435
|
+
return Companion_getInstance_2().c20(128, 128, 128);
|
|
408
436
|
case 37:
|
|
409
437
|
case 47:
|
|
410
|
-
return Companion_getInstance_2().
|
|
438
|
+
return Companion_getInstance_2().c20(192, 192, 192);
|
|
411
439
|
case 97:
|
|
412
440
|
case 107:
|
|
413
|
-
return Companion_getInstance_2().
|
|
441
|
+
return Companion_getInstance_2().b20(1.0, 1.0, 1.0);
|
|
414
442
|
}
|
|
415
|
-
var color = this.
|
|
416
|
-
var mul = this.
|
|
443
|
+
var color = this.a20_1 % 10 | 0;
|
|
444
|
+
var mul = this.a20_1 > 50 ? 1.0 : 0.5;
|
|
417
445
|
var r = (color % 2 | 0) * mul;
|
|
418
446
|
var g = ((color / 2 | 0) % 2 | 0) * mul;
|
|
419
447
|
var b = ((color / 4 | 0) % 2 | 0) * mul;
|
|
420
|
-
return Companion_getInstance_2().
|
|
448
|
+
return Companion_getInstance_2().b20(r, g, b);
|
|
421
449
|
};
|
|
422
450
|
protoOf(Ansi16).toString = function () {
|
|
423
|
-
return 'Ansi16(code=' + this.
|
|
451
|
+
return 'Ansi16(code=' + this.a20_1 + ')';
|
|
424
452
|
};
|
|
425
453
|
protoOf(Ansi16).hashCode = function () {
|
|
426
|
-
return this.
|
|
454
|
+
return this.a20_1;
|
|
427
455
|
};
|
|
428
456
|
protoOf(Ansi16).equals = function (other) {
|
|
429
457
|
if (this === other)
|
|
@@ -431,16 +459,16 @@
|
|
|
431
459
|
if (!(other instanceof Ansi16))
|
|
432
460
|
return false;
|
|
433
461
|
var tmp0_other_with_cast = other instanceof Ansi16 ? other : THROW_CCE();
|
|
434
|
-
if (!(this.
|
|
462
|
+
if (!(this.a20_1 === tmp0_other_with_cast.a20_1))
|
|
435
463
|
return false;
|
|
436
464
|
return true;
|
|
437
465
|
};
|
|
438
466
|
function Companion_0() {
|
|
439
467
|
Companion_instance_0 = this;
|
|
440
|
-
this.
|
|
468
|
+
this.d20_1 = componentInfoList([new ColorComponentInfo('code', false, 0.0, 255.0)]);
|
|
441
469
|
}
|
|
442
|
-
protoOf(Companion_0).
|
|
443
|
-
return this.
|
|
470
|
+
protoOf(Companion_0).z1z = function () {
|
|
471
|
+
return this.d20_1;
|
|
444
472
|
};
|
|
445
473
|
var Companion_instance_0;
|
|
446
474
|
function Companion_getInstance_0() {
|
|
@@ -450,19 +478,19 @@
|
|
|
450
478
|
}
|
|
451
479
|
function Ansi256(code) {
|
|
452
480
|
Companion_getInstance_0();
|
|
453
|
-
this.
|
|
481
|
+
this.e20_1 = code;
|
|
454
482
|
}
|
|
455
483
|
protoOf(Ansi256).a1z = function () {
|
|
456
484
|
return Companion_getInstance_0();
|
|
457
485
|
};
|
|
458
486
|
protoOf(Ansi256).b1z = function () {
|
|
459
|
-
if (this.
|
|
460
|
-
return this.
|
|
461
|
-
if (this.
|
|
462
|
-
var c = imul(this.
|
|
463
|
-
return Companion_getInstance_2().
|
|
487
|
+
if (this.e20_1 < 16)
|
|
488
|
+
return this.f20().b1z();
|
|
489
|
+
if (this.e20_1 >= 232) {
|
|
490
|
+
var c = imul(this.e20_1 - 232 | 0, 10) + 8 | 0;
|
|
491
|
+
return Companion_getInstance_2().c20(c, c, c);
|
|
464
492
|
}
|
|
465
|
-
var c_0 = this.
|
|
493
|
+
var c_0 = this.e20_1 - 16 | 0;
|
|
466
494
|
var rem = c_0 % 36 | 0;
|
|
467
495
|
// Inline function 'kotlin.math.floor' call
|
|
468
496
|
var x = c_0 / 36.0;
|
|
@@ -471,16 +499,16 @@
|
|
|
471
499
|
var x_0 = rem / 6.0;
|
|
472
500
|
var g = Math.floor(x_0) / 5.0;
|
|
473
501
|
var b = (rem % 6 | 0) / 5.0;
|
|
474
|
-
return Companion_getInstance_2().
|
|
502
|
+
return Companion_getInstance_2().g20(r, g, b);
|
|
475
503
|
};
|
|
476
|
-
protoOf(Ansi256).
|
|
477
|
-
return this.
|
|
504
|
+
protoOf(Ansi256).f20 = function () {
|
|
505
|
+
return this.e20_1 < 8 ? new Ansi16(this.e20_1 + 30 | 0) : this.e20_1 < 16 ? new Ansi16((this.e20_1 - 8 | 0) + 90 | 0) : this.b1z().f20();
|
|
478
506
|
};
|
|
479
507
|
protoOf(Ansi256).toString = function () {
|
|
480
|
-
return 'Ansi256(code=' + this.
|
|
508
|
+
return 'Ansi256(code=' + this.e20_1 + ')';
|
|
481
509
|
};
|
|
482
510
|
protoOf(Ansi256).hashCode = function () {
|
|
483
|
-
return this.
|
|
511
|
+
return this.e20_1;
|
|
484
512
|
};
|
|
485
513
|
protoOf(Ansi256).equals = function (other) {
|
|
486
514
|
if (this === other)
|
|
@@ -488,16 +516,16 @@
|
|
|
488
516
|
if (!(other instanceof Ansi256))
|
|
489
517
|
return false;
|
|
490
518
|
var tmp0_other_with_cast = other instanceof Ansi256 ? other : THROW_CCE();
|
|
491
|
-
if (!(this.
|
|
519
|
+
if (!(this.e20_1 === tmp0_other_with_cast.e20_1))
|
|
492
520
|
return false;
|
|
493
521
|
return true;
|
|
494
522
|
};
|
|
495
523
|
function Companion_1() {
|
|
496
524
|
Companion_instance_1 = this;
|
|
497
|
-
this.
|
|
525
|
+
this.h20_1 = polarComponentInfo('HSV', 0.0, 1.0);
|
|
498
526
|
}
|
|
499
|
-
protoOf(Companion_1).
|
|
500
|
-
return this.
|
|
527
|
+
protoOf(Companion_1).z1z = function () {
|
|
528
|
+
return this.h20_1;
|
|
501
529
|
};
|
|
502
530
|
var Companion_instance_1;
|
|
503
531
|
function Companion_getInstance_1() {
|
|
@@ -516,30 +544,30 @@
|
|
|
516
544
|
function HSV(h, s, v, alpha) {
|
|
517
545
|
Companion_getInstance_1();
|
|
518
546
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
519
|
-
this.
|
|
520
|
-
this.
|
|
521
|
-
this.
|
|
522
|
-
this.
|
|
547
|
+
this.i20_1 = h;
|
|
548
|
+
this.j20_1 = s;
|
|
549
|
+
this.k20_1 = v;
|
|
550
|
+
this.l20_1 = alpha;
|
|
523
551
|
}
|
|
524
552
|
protoOf(HSV).a1z = function () {
|
|
525
553
|
return Companion_getInstance_1();
|
|
526
554
|
};
|
|
527
555
|
protoOf(HSV).b1z = function () {
|
|
528
|
-
if (this.
|
|
529
|
-
return Companion_getInstance_2().
|
|
530
|
-
var v = this.
|
|
531
|
-
var h = normalizeDeg_0(this.
|
|
532
|
-
var s = this.
|
|
533
|
-
return SRGB_getInstance().
|
|
556
|
+
if (this.j20_1 < 1.0E-7)
|
|
557
|
+
return Companion_getInstance_2().n20(this.k20_1, this.k20_1, this.k20_1, this.l20_1);
|
|
558
|
+
var v = this.k20_1;
|
|
559
|
+
var h = normalizeDeg_0(this.i20_1) / 60.0;
|
|
560
|
+
var s = this.j20_1;
|
|
561
|
+
return SRGB_getInstance().n20(toSRGB$f(h, v, s, 5), toSRGB$f(h, v, s, 3), toSRGB$f(h, v, s, 1), this.l20_1);
|
|
534
562
|
};
|
|
535
563
|
protoOf(HSV).toString = function () {
|
|
536
|
-
return 'HSV(h=' + this.
|
|
564
|
+
return 'HSV(h=' + this.i20_1 + ', s=' + this.j20_1 + ', v=' + this.k20_1 + ', alpha=' + this.l20_1 + ')';
|
|
537
565
|
};
|
|
538
566
|
protoOf(HSV).hashCode = function () {
|
|
539
|
-
var result = getNumberHashCode(this.
|
|
540
|
-
result = imul(result, 31) + getNumberHashCode(this.i20_1) | 0;
|
|
567
|
+
var result = getNumberHashCode(this.i20_1);
|
|
541
568
|
result = imul(result, 31) + getNumberHashCode(this.j20_1) | 0;
|
|
542
569
|
result = imul(result, 31) + getNumberHashCode(this.k20_1) | 0;
|
|
570
|
+
result = imul(result, 31) + getNumberHashCode(this.l20_1) | 0;
|
|
543
571
|
return result;
|
|
544
572
|
};
|
|
545
573
|
protoOf(HSV).equals = function (other) {
|
|
@@ -548,14 +576,14 @@
|
|
|
548
576
|
if (!(other instanceof HSV))
|
|
549
577
|
return false;
|
|
550
578
|
var tmp0_other_with_cast = other instanceof HSV ? other : THROW_CCE();
|
|
551
|
-
if (!equals(this.h20_1, tmp0_other_with_cast.h20_1))
|
|
552
|
-
return false;
|
|
553
579
|
if (!equals(this.i20_1, tmp0_other_with_cast.i20_1))
|
|
554
580
|
return false;
|
|
555
581
|
if (!equals(this.j20_1, tmp0_other_with_cast.j20_1))
|
|
556
582
|
return false;
|
|
557
583
|
if (!equals(this.k20_1, tmp0_other_with_cast.k20_1))
|
|
558
584
|
return false;
|
|
585
|
+
if (!equals(this.l20_1, tmp0_other_with_cast.l20_1))
|
|
586
|
+
return false;
|
|
559
587
|
return true;
|
|
560
588
|
};
|
|
561
589
|
function get_ICTCP_RGB_TO_LMS() {
|
|
@@ -596,43 +624,43 @@
|
|
|
596
624
|
var ICTCP_LMS_TO_XYZ;
|
|
597
625
|
function ICtCp() {
|
|
598
626
|
}
|
|
599
|
-
protoOf(ICtCp).
|
|
600
|
-
var fo = RGBColorSpaces_getInstance().
|
|
627
|
+
protoOf(ICtCp).t20 = function () {
|
|
628
|
+
var fo = RGBColorSpaces_getInstance().b21_1.g21();
|
|
601
629
|
var tmp0 = get_ICTCP_ICTCP_to_LMS();
|
|
602
|
-
var tmp1 = this.o20_1;
|
|
603
630
|
var tmp2 = this.p20_1;
|
|
631
|
+
var tmp4 = this.q20_1;
|
|
604
632
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
605
|
-
var v2 = this.
|
|
606
|
-
var
|
|
607
|
-
var
|
|
608
|
-
var s = Matrix__get_impl_xogbpk(tmp0, 0, 2) *
|
|
609
|
-
var
|
|
610
|
-
var
|
|
611
|
-
var
|
|
633
|
+
var v2 = this.r20_1;
|
|
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
|
+
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
|
+
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
|
+
var tmp0_1 = get_ICTCP_LMS_to_RGB();
|
|
638
|
+
var tmp2_1 = PqNonlinearity_instance.p21(tmp0_0);
|
|
639
|
+
var tmp4_0 = PqNonlinearity_instance.p21(tmp2_0);
|
|
612
640
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
613
|
-
var v2_0 = PqNonlinearity_instance.
|
|
614
|
-
var
|
|
615
|
-
var
|
|
616
|
-
var b = Matrix__get_impl_xogbpk(
|
|
617
|
-
return RGBColorSpaces_getInstance().
|
|
641
|
+
var v2_0 = PqNonlinearity_instance.p21(s);
|
|
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
|
+
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
|
+
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().b21_1.n20(fo.q21(tmp0_2), fo.q21(tmp2_2), fo.q21(b), this.s20_1);
|
|
618
646
|
};
|
|
619
647
|
function PqNonlinearity() {
|
|
620
|
-
this.
|
|
621
|
-
this.
|
|
622
|
-
this.
|
|
623
|
-
this.
|
|
624
|
-
this.
|
|
625
|
-
this.
|
|
626
|
-
this.
|
|
627
|
-
this.
|
|
628
|
-
}
|
|
629
|
-
protoOf(PqNonlinearity).
|
|
648
|
+
this.h21_1 = 0.1593017578125;
|
|
649
|
+
this.i21_1 = 78.84375;
|
|
650
|
+
this.j21_1 = 0.8359375;
|
|
651
|
+
this.k21_1 = 18.8515625;
|
|
652
|
+
this.l21_1 = 18.6875;
|
|
653
|
+
this.m21_1 = 10000.0;
|
|
654
|
+
this.n21_1 = 6.277394636015326;
|
|
655
|
+
this.o21_1 = 0.012683313515655966;
|
|
656
|
+
}
|
|
657
|
+
protoOf(PqNonlinearity).p21 = function (x) {
|
|
630
658
|
var vp = spow(x, 0.012683313515655966);
|
|
631
659
|
var n = coerceAtLeast(vp - 0.8359375, 0.0);
|
|
632
660
|
var l = spow_0(n / (18.8515625 - 18.6875 * vp), 6.277394636015326);
|
|
633
661
|
return 10000.0 * l;
|
|
634
662
|
};
|
|
635
|
-
protoOf(PqNonlinearity).
|
|
663
|
+
protoOf(PqNonlinearity).q21 = function (x) {
|
|
636
664
|
var yp = spow_0(x / 10000.0, 0.1593017578125);
|
|
637
665
|
return spow_0((0.8359375 + 18.8515625 * yp) / (1.0 + 18.6875 * yp), 78.84375);
|
|
638
666
|
};
|
|
@@ -655,19 +683,19 @@
|
|
|
655
683
|
}
|
|
656
684
|
}
|
|
657
685
|
function GammaTransferFunctions(gamma) {
|
|
658
|
-
this.
|
|
686
|
+
this.r21_1 = gamma;
|
|
659
687
|
}
|
|
660
|
-
protoOf(GammaTransferFunctions).o21 = function (x) {
|
|
661
|
-
return spow(x, this.q21_1);
|
|
662
|
-
};
|
|
663
688
|
protoOf(GammaTransferFunctions).p21 = function (x) {
|
|
664
|
-
return spow(x,
|
|
689
|
+
return spow(x, this.r21_1);
|
|
690
|
+
};
|
|
691
|
+
protoOf(GammaTransferFunctions).q21 = function (x) {
|
|
692
|
+
return spow(x, 1.0 / this.r21_1);
|
|
665
693
|
};
|
|
666
694
|
protoOf(GammaTransferFunctions).toString = function () {
|
|
667
|
-
return 'GammaTransferFunctions(gamma=' + this.
|
|
695
|
+
return 'GammaTransferFunctions(gamma=' + this.r21_1 + ')';
|
|
668
696
|
};
|
|
669
697
|
protoOf(GammaTransferFunctions).hashCode = function () {
|
|
670
|
-
return getNumberHashCode(this.
|
|
698
|
+
return getNumberHashCode(this.r21_1);
|
|
671
699
|
};
|
|
672
700
|
protoOf(GammaTransferFunctions).equals = function (other) {
|
|
673
701
|
if (this === other)
|
|
@@ -675,16 +703,16 @@
|
|
|
675
703
|
if (!(other instanceof GammaTransferFunctions))
|
|
676
704
|
return false;
|
|
677
705
|
var tmp0_other_with_cast = other instanceof GammaTransferFunctions ? other : THROW_CCE();
|
|
678
|
-
if (!equals(this.
|
|
706
|
+
if (!equals(this.r21_1, tmp0_other_with_cast.r21_1))
|
|
679
707
|
return false;
|
|
680
708
|
return true;
|
|
681
709
|
};
|
|
682
710
|
function LinearTransferFunctions() {
|
|
683
711
|
}
|
|
684
|
-
protoOf(LinearTransferFunctions).
|
|
712
|
+
protoOf(LinearTransferFunctions).p21 = function (x) {
|
|
685
713
|
return x;
|
|
686
714
|
};
|
|
687
|
-
protoOf(LinearTransferFunctions).
|
|
715
|
+
protoOf(LinearTransferFunctions).q21 = function (x) {
|
|
688
716
|
return x;
|
|
689
717
|
};
|
|
690
718
|
var LinearTransferFunctions_instance;
|
|
@@ -695,43 +723,43 @@
|
|
|
695
723
|
}
|
|
696
724
|
function Companion_2() {
|
|
697
725
|
Companion_instance_2 = this;
|
|
698
|
-
this.
|
|
726
|
+
this.m20_1 = RGBColorSpaces_getInstance().u20_1;
|
|
699
727
|
}
|
|
700
|
-
protoOf(Companion_2).
|
|
701
|
-
return this.
|
|
702
|
-
};
|
|
703
|
-
protoOf(Companion_2).r21 = function (r, g, b, alpha) {
|
|
704
|
-
return this.l20_1.r21(r, g, b, alpha);
|
|
705
|
-
};
|
|
706
|
-
protoOf(Companion_2).t21 = function (hex) {
|
|
707
|
-
return this.l20_1.t21(hex);
|
|
728
|
+
protoOf(Companion_2).n20 = function (r, g, b, alpha) {
|
|
729
|
+
return this.m20_1.n20(r, g, b, alpha);
|
|
708
730
|
};
|
|
709
731
|
protoOf(Companion_2).s21 = function (r, g, b, alpha) {
|
|
710
|
-
return this.
|
|
732
|
+
return this.m20_1.s21(r, g, b, alpha);
|
|
711
733
|
};
|
|
712
|
-
protoOf(Companion_2).
|
|
713
|
-
return this.
|
|
734
|
+
protoOf(Companion_2).u21 = function (hex) {
|
|
735
|
+
return this.m20_1.u21(hex);
|
|
714
736
|
};
|
|
715
|
-
protoOf(Companion_2).
|
|
716
|
-
return this.
|
|
737
|
+
protoOf(Companion_2).t21 = function (r, g, b, alpha) {
|
|
738
|
+
return this.m20_1.t21(r, g, b, alpha);
|
|
739
|
+
};
|
|
740
|
+
protoOf(Companion_2).g21 = function () {
|
|
741
|
+
return this.m20_1.g21();
|
|
717
742
|
};
|
|
718
743
|
protoOf(Companion_2).v21 = function () {
|
|
719
|
-
return this.
|
|
744
|
+
return this.m20_1.v21();
|
|
720
745
|
};
|
|
721
746
|
protoOf(Companion_2).w21 = function () {
|
|
722
|
-
return this.
|
|
747
|
+
return this.m20_1.w21();
|
|
748
|
+
};
|
|
749
|
+
protoOf(Companion_2).x21 = function () {
|
|
750
|
+
return this.m20_1.x21();
|
|
723
751
|
};
|
|
724
752
|
protoOf(Companion_2).u15 = function () {
|
|
725
|
-
return this.
|
|
753
|
+
return this.m20_1.u15();
|
|
726
754
|
};
|
|
727
|
-
protoOf(Companion_2).
|
|
728
|
-
return this.
|
|
755
|
+
protoOf(Companion_2).z1z = function () {
|
|
756
|
+
return this.m20_1.z1z();
|
|
729
757
|
};
|
|
730
758
|
protoOf(Companion_2).equals = function (other) {
|
|
731
|
-
return equals(RGBColorSpaces_getInstance().
|
|
759
|
+
return equals(RGBColorSpaces_getInstance().u20_1, other);
|
|
732
760
|
};
|
|
733
761
|
protoOf(Companion_2).hashCode = function () {
|
|
734
|
-
return hashCode(RGBColorSpaces_getInstance().
|
|
762
|
+
return hashCode(RGBColorSpaces_getInstance().u20_1);
|
|
735
763
|
};
|
|
736
764
|
var Companion_instance_2;
|
|
737
765
|
function Companion_getInstance_2() {
|
|
@@ -739,9 +767,6 @@
|
|
|
739
767
|
new Companion_2();
|
|
740
768
|
return Companion_instance_2;
|
|
741
769
|
}
|
|
742
|
-
function clamp$copy(receiver, p0, p1, p2, p3) {
|
|
743
|
-
return receiver.x21(p0, p1, p2, p3);
|
|
744
|
-
}
|
|
745
770
|
function RGB(r, g, b, alpha, space) {
|
|
746
771
|
Companion_getInstance_2();
|
|
747
772
|
this.d1z_1 = r;
|
|
@@ -769,8 +794,8 @@
|
|
|
769
794
|
return roundToInt(this_0);
|
|
770
795
|
};
|
|
771
796
|
protoOf(RGB).b22 = function (space) {
|
|
772
|
-
var f = SRGB_getInstance().
|
|
773
|
-
return equals(this.h1z_1, space) ? this : equals(this.h1z_1, SRGB_getInstance()) && equals(space, RGBColorSpaces_getInstance().
|
|
797
|
+
var f = SRGB_getInstance().g21();
|
|
798
|
+
return equals(this.h1z_1, space) ? this : equals(this.h1z_1, SRGB_getInstance()) && equals(space, RGBColorSpaces_getInstance().v20_1) ? space.n20(f.p21(this.d1z_1), f.p21(this.e1z_1), f.p21(this.f1z_1), this.g1z_1) : equals(this.h1z_1, RGBColorSpaces_getInstance().v20_1) && equals(space, SRGB_getInstance()) ? space.n20(f.q21(this.d1z_1), f.q21(this.e1z_1), f.q21(this.f1z_1), this.g1z_1) : this.c1z().h22(space);
|
|
774
799
|
};
|
|
775
800
|
protoOf(RGB).i22 = function () {
|
|
776
801
|
var tmp$ret$3;
|
|
@@ -795,22 +820,22 @@
|
|
|
795
820
|
return tmp$ret$3;
|
|
796
821
|
};
|
|
797
822
|
protoOf(RGB).c1z = function () {
|
|
798
|
-
var f = this.h1z_1.
|
|
799
|
-
var tmp0 = _Matrix___init__impl__q3kp4w(this.h1z_1.
|
|
800
|
-
var
|
|
801
|
-
var
|
|
823
|
+
var f = this.h1z_1.g21();
|
|
824
|
+
var tmp0 = _Matrix___init__impl__q3kp4w(this.h1z_1.v21());
|
|
825
|
+
var tmp2 = f.p21(this.d1z_1);
|
|
826
|
+
var tmp4 = f.p21(this.e1z_1);
|
|
802
827
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
803
|
-
var v2 = f.
|
|
804
|
-
var
|
|
805
|
-
var
|
|
806
|
-
var z = Matrix__get_impl_xogbpk(tmp0, 0, 2) *
|
|
807
|
-
return XYZColorSpace_0(this.h1z_1.
|
|
828
|
+
var v2 = f.p21(this.f1z_1);
|
|
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
|
+
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
|
+
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.h1z_1.x21()).n20(tmp0_0, tmp2_0, z, this.g1z_1);
|
|
808
833
|
};
|
|
809
|
-
protoOf(RGB).
|
|
834
|
+
protoOf(RGB).f20 = function () {
|
|
810
835
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
811
836
|
var $this$toSRGB = this.b22(SRGB_getInstance());
|
|
812
837
|
// Inline function 'kotlin.math.roundToInt' call
|
|
813
|
-
var this_0 = $this$toSRGB.i22().
|
|
838
|
+
var this_0 = $this$toSRGB.i22().k20_1 * 100;
|
|
814
839
|
var value = roundToInt(this_0);
|
|
815
840
|
if (value === 30)
|
|
816
841
|
return new Ansi16(30);
|
|
@@ -854,15 +879,15 @@
|
|
|
854
879
|
return new Ansi256(code);
|
|
855
880
|
};
|
|
856
881
|
protoOf(RGB).b1z = function () {
|
|
857
|
-
return this.b22(RGBColorSpaces_getInstance().
|
|
882
|
+
return this.b22(RGBColorSpaces_getInstance().u20_1);
|
|
858
883
|
};
|
|
859
884
|
protoOf(RGB).k22 = function () {
|
|
860
|
-
var
|
|
861
|
-
var
|
|
862
|
-
var
|
|
885
|
+
var tmp2 = this.d1z_1;
|
|
886
|
+
var tmp4 = this.e1z_1;
|
|
887
|
+
var tmp6 = this.f1z_1;
|
|
863
888
|
// Inline function 'com.github.ajalt.colormath.internal.clamp3' call
|
|
864
889
|
var alpha = this.g1z_1;
|
|
865
|
-
var _destruct__k2r9zo = this.a1z().
|
|
890
|
+
var _destruct__k2r9zo = this.a1z().z1z();
|
|
866
891
|
// Inline function 'kotlin.collections.component1' call
|
|
867
892
|
var c1 = _destruct__k2r9zo.t(0);
|
|
868
893
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -874,15 +899,15 @@
|
|
|
874
899
|
var tmp_1;
|
|
875
900
|
var tmp_2;
|
|
876
901
|
var containsLower = c1.k1z_1;
|
|
877
|
-
if (
|
|
902
|
+
if (tmp2 <= c1.l1z_1 ? containsLower <= tmp2 : false) {
|
|
878
903
|
var containsLower_0 = c2.k1z_1;
|
|
879
|
-
tmp_2 =
|
|
904
|
+
tmp_2 = tmp4 <= c2.l1z_1 ? containsLower_0 <= tmp4 : false;
|
|
880
905
|
} else {
|
|
881
906
|
tmp_2 = false;
|
|
882
907
|
}
|
|
883
908
|
if (tmp_2) {
|
|
884
909
|
var containsLower_1 = c3.k1z_1;
|
|
885
|
-
tmp_1 =
|
|
910
|
+
tmp_1 = tmp6 <= c3.l1z_1 ? containsLower_1 <= tmp6 : false;
|
|
886
911
|
} else {
|
|
887
912
|
tmp_1 = false;
|
|
888
913
|
}
|
|
@@ -894,20 +919,24 @@
|
|
|
894
919
|
if (tmp_0) {
|
|
895
920
|
tmp = this;
|
|
896
921
|
} else {
|
|
897
|
-
|
|
922
|
+
var tmp2_0 = coerceIn(tmp2, c1.k1z_1, c1.l1z_1);
|
|
923
|
+
var tmp4_0 = coerceIn(tmp4, c2.k1z_1, c2.l1z_1);
|
|
924
|
+
var tmp6_0 = coerceIn(tmp6, c3.k1z_1, c3.l1z_1);
|
|
925
|
+
var p3 = coerceIn(alpha, 0.0, 1.0);
|
|
926
|
+
tmp = this.l22(tmp2_0, tmp4_0, tmp6_0, p3);
|
|
898
927
|
}
|
|
899
928
|
return tmp;
|
|
900
929
|
};
|
|
901
|
-
protoOf(RGB).
|
|
930
|
+
protoOf(RGB).m22 = function (r, g, b, alpha, space) {
|
|
902
931
|
return new RGB(r, g, b, alpha, space);
|
|
903
932
|
};
|
|
904
|
-
protoOf(RGB).
|
|
933
|
+
protoOf(RGB).l22 = function (r, g, b, alpha, space, $super) {
|
|
905
934
|
r = r === VOID ? this.d1z_1 : r;
|
|
906
935
|
g = g === VOID ? this.e1z_1 : g;
|
|
907
936
|
b = b === VOID ? this.f1z_1 : b;
|
|
908
937
|
alpha = alpha === VOID ? this.g1z_1 : alpha;
|
|
909
938
|
space = space === VOID ? this.h1z_1 : space;
|
|
910
|
-
return $super === VOID ? this.
|
|
939
|
+
return $super === VOID ? this.m22(r, g, b, alpha, space) : $super.m22.call(this, r, g, b, alpha, space);
|
|
911
940
|
};
|
|
912
941
|
protoOf(RGB).toString = function () {
|
|
913
942
|
return 'RGB(r=' + this.d1z_1 + ', g=' + this.e1z_1 + ', b=' + this.f1z_1 + ', alpha=' + this.g1z_1 + ', space=' + toString(this.h1z_1) + ')';
|
|
@@ -941,12 +970,12 @@
|
|
|
941
970
|
function parseHex(_this__u8e3s4, startIndex) {
|
|
942
971
|
var tmp;
|
|
943
972
|
if (get_hexLength(_this__u8e3s4) > 4) {
|
|
944
|
-
var i =
|
|
973
|
+
var i = charCodeAt(_this__u8e3s4, 0) === _Char___init__impl__6a9atx(35) ? imul(startIndex, 2) + 1 | 0 : imul(startIndex, 2);
|
|
945
974
|
tmp = toInt(slice(_this__u8e3s4, numberRangeToNumber(i, i + 1 | 0)), 16);
|
|
946
975
|
} else {
|
|
947
|
-
var i_0 =
|
|
976
|
+
var i_0 = charCodeAt(_this__u8e3s4, 0) === _Char___init__impl__6a9atx(35) ? startIndex + 1 | 0 : startIndex;
|
|
948
977
|
// Inline function 'kotlin.let' call
|
|
949
|
-
var it =
|
|
978
|
+
var it = charCodeAt(_this__u8e3s4, i_0);
|
|
950
979
|
var tmp$ret$1 = toString_0(it) + toString_0(it);
|
|
951
980
|
tmp = toInt(tmp$ret$1, 16);
|
|
952
981
|
}
|
|
@@ -1025,7 +1054,7 @@
|
|
|
1025
1054
|
tmp = color.b22($this$RGBColorSpaceImpl);
|
|
1026
1055
|
} else {
|
|
1027
1056
|
if (color instanceof ICtCp) {
|
|
1028
|
-
tmp = color.
|
|
1057
|
+
tmp = color.t20();
|
|
1029
1058
|
} else {
|
|
1030
1059
|
tmp = color.c1z().h22($this$RGBColorSpaceImpl);
|
|
1031
1060
|
}
|
|
@@ -1040,24 +1069,24 @@
|
|
|
1040
1069
|
var tmp_2 = get_SRGB_R();
|
|
1041
1070
|
var tmp_3 = get_SRGB_G();
|
|
1042
1071
|
var tmp_4 = get_SRGB_B();
|
|
1043
|
-
tmp.
|
|
1044
|
-
this.
|
|
1045
|
-
this.
|
|
1046
|
-
this.
|
|
1047
|
-
this.
|
|
1048
|
-
this.
|
|
1049
|
-
this.
|
|
1072
|
+
tmp.u20_1 = new RGBColorSpaceImpl('sRGB', tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, RGBColorSpaces$SRGB$lambda);
|
|
1073
|
+
this.v20_1 = RGBColorSpace_0('Linear sRGB', Illuminant_getInstance().t1z_1, LinearTransferFunctions_instance, get_SRGB_R(), get_SRGB_G(), get_SRGB_B());
|
|
1074
|
+
this.w20_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.x20_1 = RGBColorSpace_0('ACEScc', get_ACES_WHITE_POINT(), ACESccTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
1076
|
+
this.y20_1 = RGBColorSpace_0('ACEScct', get_ACES_WHITE_POINT(), ACEScctTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
1077
|
+
this.z20_1 = RGBColorSpace_0('ACEScg', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
1078
|
+
this.a21_1 = RGBColorSpace_0('Adobe RGB', Illuminant_getInstance().t1z_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));
|
|
1050
1079
|
var tmp_5 = this;
|
|
1051
1080
|
var tmp_6 = Illuminant_getInstance().t1z_1;
|
|
1052
1081
|
var tmp_7 = BT2020TransferFunctions_getInstance();
|
|
1053
1082
|
var tmp_8 = xyY_init_$Create$(0.708, 0.292);
|
|
1054
1083
|
var tmp_9 = xyY_init_$Create$(0.17, 0.797);
|
|
1055
1084
|
var tmp_10 = xyY_init_$Create$(0.131, 0.046);
|
|
1056
|
-
tmp_5.
|
|
1057
|
-
this.
|
|
1058
|
-
this.
|
|
1059
|
-
this.
|
|
1060
|
-
this.
|
|
1085
|
+
tmp_5.b21_1 = new RGBColorSpaceImpl('BT.2020', tmp_6, tmp_7, tmp_8, tmp_9, tmp_10, RGBColorSpaces$BT2020$lambda);
|
|
1086
|
+
this.c21_1 = RGBColorSpace_0('BT.709', Illuminant_getInstance().t1z_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.d21_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.e21_1 = RGBColorSpace_0('Display P3', Illuminant_getInstance().t1z_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.f21_1 = RGBColorSpace_0('ROMM RGB', Illuminant_getInstance().r1z_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));
|
|
1061
1090
|
}
|
|
1062
1091
|
var RGBColorSpaces_instance;
|
|
1063
1092
|
function RGBColorSpaces_getInstance() {
|
|
@@ -1067,43 +1096,43 @@
|
|
|
1067
1096
|
}
|
|
1068
1097
|
function SRGB() {
|
|
1069
1098
|
SRGB_instance = this;
|
|
1070
|
-
this.
|
|
1099
|
+
this.o20_1 = RGBColorSpaces_getInstance().u20_1;
|
|
1071
1100
|
}
|
|
1072
|
-
protoOf(SRGB).
|
|
1073
|
-
return this.
|
|
1074
|
-
};
|
|
1075
|
-
protoOf(SRGB).r21 = function (r, g, b, alpha) {
|
|
1076
|
-
return this.n20_1.r21(r, g, b, alpha);
|
|
1077
|
-
};
|
|
1078
|
-
protoOf(SRGB).t21 = function (hex) {
|
|
1079
|
-
return this.n20_1.t21(hex);
|
|
1101
|
+
protoOf(SRGB).n20 = function (r, g, b, alpha) {
|
|
1102
|
+
return this.o20_1.n20(r, g, b, alpha);
|
|
1080
1103
|
};
|
|
1081
1104
|
protoOf(SRGB).s21 = function (r, g, b, alpha) {
|
|
1082
|
-
return this.
|
|
1105
|
+
return this.o20_1.s21(r, g, b, alpha);
|
|
1083
1106
|
};
|
|
1084
|
-
protoOf(SRGB).
|
|
1085
|
-
return this.
|
|
1107
|
+
protoOf(SRGB).u21 = function (hex) {
|
|
1108
|
+
return this.o20_1.u21(hex);
|
|
1086
1109
|
};
|
|
1087
|
-
protoOf(SRGB).
|
|
1088
|
-
return this.
|
|
1110
|
+
protoOf(SRGB).t21 = function (r, g, b, alpha) {
|
|
1111
|
+
return this.o20_1.t21(r, g, b, alpha);
|
|
1112
|
+
};
|
|
1113
|
+
protoOf(SRGB).g21 = function () {
|
|
1114
|
+
return this.o20_1.g21();
|
|
1089
1115
|
};
|
|
1090
1116
|
protoOf(SRGB).v21 = function () {
|
|
1091
|
-
return this.
|
|
1117
|
+
return this.o20_1.v21();
|
|
1092
1118
|
};
|
|
1093
1119
|
protoOf(SRGB).w21 = function () {
|
|
1094
|
-
return this.
|
|
1120
|
+
return this.o20_1.w21();
|
|
1121
|
+
};
|
|
1122
|
+
protoOf(SRGB).x21 = function () {
|
|
1123
|
+
return this.o20_1.x21();
|
|
1095
1124
|
};
|
|
1096
1125
|
protoOf(SRGB).u15 = function () {
|
|
1097
|
-
return this.
|
|
1126
|
+
return this.o20_1.u15();
|
|
1098
1127
|
};
|
|
1099
|
-
protoOf(SRGB).
|
|
1100
|
-
return this.
|
|
1128
|
+
protoOf(SRGB).z1z = function () {
|
|
1129
|
+
return this.o20_1.z1z();
|
|
1101
1130
|
};
|
|
1102
1131
|
protoOf(SRGB).equals = function (other) {
|
|
1103
|
-
return equals(RGBColorSpaces_getInstance().
|
|
1132
|
+
return equals(RGBColorSpaces_getInstance().u20_1, other);
|
|
1104
1133
|
};
|
|
1105
1134
|
protoOf(SRGB).hashCode = function () {
|
|
1106
|
-
return hashCode(RGBColorSpaces_getInstance().
|
|
1135
|
+
return hashCode(RGBColorSpaces_getInstance().u20_1);
|
|
1107
1136
|
};
|
|
1108
1137
|
protoOf(SRGB).toString = function () {
|
|
1109
1138
|
return 'sRGB';
|
|
@@ -1115,39 +1144,39 @@
|
|
|
1115
1144
|
return SRGB_instance;
|
|
1116
1145
|
}
|
|
1117
1146
|
function RGBColorSpaceImpl(name, whitePoint, transferFunctions, r, g, b, convertImpl) {
|
|
1118
|
-
this.
|
|
1119
|
-
this.
|
|
1120
|
-
this.
|
|
1121
|
-
this.
|
|
1122
|
-
this.
|
|
1123
|
-
this.
|
|
1124
|
-
this.
|
|
1125
|
-
this.
|
|
1126
|
-
this.
|
|
1127
|
-
this.
|
|
1147
|
+
this.n22_1 = name;
|
|
1148
|
+
this.o22_1 = whitePoint;
|
|
1149
|
+
this.p22_1 = transferFunctions;
|
|
1150
|
+
this.q22_1 = r;
|
|
1151
|
+
this.r22_1 = g;
|
|
1152
|
+
this.s22_1 = b;
|
|
1153
|
+
this.t22_1 = convertImpl;
|
|
1154
|
+
this.u22_1 = zeroOneComponentInfo('RGB');
|
|
1155
|
+
this.v22_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.o22_1, this.q22_1, this.r22_1, this.s22_1));
|
|
1156
|
+
this.w22_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.v22_1)));
|
|
1128
1157
|
}
|
|
1129
1158
|
protoOf(RGBColorSpaceImpl).u15 = function () {
|
|
1130
|
-
return this.m22_1;
|
|
1131
|
-
};
|
|
1132
|
-
protoOf(RGBColorSpaceImpl).w21 = function () {
|
|
1133
1159
|
return this.n22_1;
|
|
1134
1160
|
};
|
|
1135
|
-
protoOf(RGBColorSpaceImpl).
|
|
1161
|
+
protoOf(RGBColorSpaceImpl).x21 = function () {
|
|
1136
1162
|
return this.o22_1;
|
|
1137
1163
|
};
|
|
1138
|
-
protoOf(RGBColorSpaceImpl).
|
|
1139
|
-
return this.
|
|
1164
|
+
protoOf(RGBColorSpaceImpl).g21 = function () {
|
|
1165
|
+
return this.p22_1;
|
|
1140
1166
|
};
|
|
1141
|
-
protoOf(RGBColorSpaceImpl).
|
|
1167
|
+
protoOf(RGBColorSpaceImpl).z1z = function () {
|
|
1142
1168
|
return this.u22_1;
|
|
1143
1169
|
};
|
|
1144
1170
|
protoOf(RGBColorSpaceImpl).v21 = function () {
|
|
1145
1171
|
return this.v22_1;
|
|
1146
1172
|
};
|
|
1173
|
+
protoOf(RGBColorSpaceImpl).w21 = function () {
|
|
1174
|
+
return this.w22_1;
|
|
1175
|
+
};
|
|
1147
1176
|
protoOf(RGBColorSpaceImpl).toString = function () {
|
|
1148
|
-
return this.
|
|
1177
|
+
return this.n22_1;
|
|
1149
1178
|
};
|
|
1150
|
-
protoOf(RGBColorSpaceImpl).
|
|
1179
|
+
protoOf(RGBColorSpaceImpl).n20 = function (r, g, b, alpha) {
|
|
1151
1180
|
return new RGB(r, g, b, alpha, this);
|
|
1152
1181
|
};
|
|
1153
1182
|
protoOf(RGBColorSpaceImpl).equals = function (other) {
|
|
@@ -1155,42 +1184,42 @@
|
|
|
1155
1184
|
return true;
|
|
1156
1185
|
if (!(!(other == null) ? isInterface(other, RGBColorSpace) : false))
|
|
1157
1186
|
return false;
|
|
1158
|
-
if (!(this.
|
|
1187
|
+
if (!(this.n22_1 === other.u15()))
|
|
1159
1188
|
return false;
|
|
1160
|
-
if (!this.
|
|
1189
|
+
if (!this.o22_1.equals(other.x21()))
|
|
1161
1190
|
return false;
|
|
1162
|
-
if (!equals(this.
|
|
1191
|
+
if (!equals(this.p22_1, other.g21()))
|
|
1163
1192
|
return false;
|
|
1164
1193
|
if (other instanceof RGBColorSpaceImpl) {
|
|
1165
|
-
if (!this.p22_1.equals(other.p22_1))
|
|
1166
|
-
return false;
|
|
1167
1194
|
if (!this.q22_1.equals(other.q22_1))
|
|
1168
1195
|
return false;
|
|
1169
1196
|
if (!this.r22_1.equals(other.r22_1))
|
|
1170
1197
|
return false;
|
|
1171
|
-
|
|
1172
|
-
if (!contentEquals(this.u22_1, other.u21()))
|
|
1198
|
+
if (!this.s22_1.equals(other.s22_1))
|
|
1173
1199
|
return false;
|
|
1200
|
+
} else {
|
|
1174
1201
|
if (!contentEquals(this.v22_1, other.v21()))
|
|
1175
1202
|
return false;
|
|
1203
|
+
if (!contentEquals(this.w22_1, other.w21()))
|
|
1204
|
+
return false;
|
|
1176
1205
|
}
|
|
1177
1206
|
return true;
|
|
1178
1207
|
};
|
|
1179
1208
|
protoOf(RGBColorSpaceImpl).hashCode = function () {
|
|
1180
|
-
var result = getStringHashCode(this.
|
|
1181
|
-
result = imul(31, result) + this.
|
|
1182
|
-
result = imul(31, result) + hashCode(this.
|
|
1183
|
-
result = imul(31, result) + this.p22_1.hashCode() | 0;
|
|
1209
|
+
var result = getStringHashCode(this.n22_1);
|
|
1210
|
+
result = imul(31, result) + this.o22_1.hashCode() | 0;
|
|
1211
|
+
result = imul(31, result) + hashCode(this.p22_1) | 0;
|
|
1184
1212
|
result = imul(31, result) + this.q22_1.hashCode() | 0;
|
|
1185
1213
|
result = imul(31, result) + this.r22_1.hashCode() | 0;
|
|
1214
|
+
result = imul(31, result) + this.s22_1.hashCode() | 0;
|
|
1186
1215
|
return result;
|
|
1187
1216
|
};
|
|
1188
1217
|
function SRGBTransferFunctions() {
|
|
1189
1218
|
}
|
|
1190
|
-
protoOf(SRGBTransferFunctions).
|
|
1219
|
+
protoOf(SRGBTransferFunctions).q21 = function (x) {
|
|
1191
1220
|
return x <= 0.0031308 ? x * 12.92 : 1.055 * spow(x, 1 / 2.4) - 0.055;
|
|
1192
1221
|
};
|
|
1193
|
-
protoOf(SRGBTransferFunctions).
|
|
1222
|
+
protoOf(SRGBTransferFunctions).p21 = function (x) {
|
|
1194
1223
|
return x <= 0.04045 ? x / 12.92 : spow_0((x + 0.055) / 1.055, 2.4);
|
|
1195
1224
|
};
|
|
1196
1225
|
var SRGBTransferFunctions_instance;
|
|
@@ -1203,18 +1232,18 @@
|
|
|
1203
1232
|
}
|
|
1204
1233
|
function ACESccTransferFunctions() {
|
|
1205
1234
|
ACESccTransferFunctions_instance = this;
|
|
1206
|
-
this.
|
|
1207
|
-
this.
|
|
1208
|
-
this.
|
|
1235
|
+
this.x22_1 = 3.0517578125E-5;
|
|
1236
|
+
this.y22_1 = 1.52587890625E-5;
|
|
1237
|
+
this.z22_1 = -0.3013698630136986;
|
|
1209
1238
|
var tmp = this;
|
|
1210
1239
|
// Inline function 'kotlin.math.log2' call
|
|
1211
|
-
tmp.
|
|
1240
|
+
tmp.a23_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
1212
1241
|
}
|
|
1213
|
-
protoOf(ACESccTransferFunctions).
|
|
1242
|
+
protoOf(ACESccTransferFunctions).p21 = function (x) {
|
|
1214
1243
|
var tmp;
|
|
1215
1244
|
if (x <= -0.3013698630136986) {
|
|
1216
1245
|
tmp = (spow_0(2.0, x * 17.52 - 9.72) - 1.52587890625E-5) * 2.0;
|
|
1217
|
-
} else if (x < this.
|
|
1246
|
+
} else if (x < this.a23_1) {
|
|
1218
1247
|
// Inline function 'kotlin.math.pow' call
|
|
1219
1248
|
var x_0 = x * 17.52 - 9.72;
|
|
1220
1249
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -1223,7 +1252,7 @@
|
|
|
1223
1252
|
}
|
|
1224
1253
|
return tmp;
|
|
1225
1254
|
};
|
|
1226
|
-
protoOf(ACESccTransferFunctions).
|
|
1255
|
+
protoOf(ACESccTransferFunctions).q21 = function (x) {
|
|
1227
1256
|
var tmp;
|
|
1228
1257
|
if (x < 3.0517578125E-5) {
|
|
1229
1258
|
// Inline function 'kotlin.math.log2' call
|
|
@@ -1243,17 +1272,17 @@
|
|
|
1243
1272
|
}
|
|
1244
1273
|
function ACEScctTransferFunctions() {
|
|
1245
1274
|
ACEScctTransferFunctions_instance = this;
|
|
1246
|
-
this.
|
|
1247
|
-
this.
|
|
1275
|
+
this.b23_1 = 10.5402377416545;
|
|
1276
|
+
this.c23_1 = 0.0729055341958355;
|
|
1248
1277
|
var tmp = this;
|
|
1249
1278
|
// Inline function 'kotlin.math.log2' call
|
|
1250
|
-
tmp.
|
|
1279
|
+
tmp.d23_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
1251
1280
|
}
|
|
1252
|
-
protoOf(ACEScctTransferFunctions).
|
|
1281
|
+
protoOf(ACEScctTransferFunctions).p21 = function (x) {
|
|
1253
1282
|
var tmp;
|
|
1254
1283
|
if (x <= 0.155251141552511) {
|
|
1255
1284
|
tmp = (x - 0.0729055341958355) / 10.5402377416545;
|
|
1256
|
-
} else if (x < this.
|
|
1285
|
+
} else if (x < this.d23_1) {
|
|
1257
1286
|
// Inline function 'kotlin.math.pow' call
|
|
1258
1287
|
var x_0 = x * 17.52 - 9.72;
|
|
1259
1288
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -1262,7 +1291,7 @@
|
|
|
1262
1291
|
}
|
|
1263
1292
|
return tmp;
|
|
1264
1293
|
};
|
|
1265
|
-
protoOf(ACEScctTransferFunctions).
|
|
1294
|
+
protoOf(ACEScctTransferFunctions).q21 = function (x) {
|
|
1266
1295
|
var tmp;
|
|
1267
1296
|
if (x < 0.0078125) {
|
|
1268
1297
|
tmp = 10.5402377416545 * x + 0.0729055341958355;
|
|
@@ -1280,16 +1309,16 @@
|
|
|
1280
1309
|
}
|
|
1281
1310
|
function BT2020TransferFunctions() {
|
|
1282
1311
|
BT2020TransferFunctions_instance = this;
|
|
1283
|
-
this.
|
|
1284
|
-
this.
|
|
1312
|
+
this.e23_1 = 1.0993;
|
|
1313
|
+
this.f23_1 = 0.0181;
|
|
1285
1314
|
var tmp = this;
|
|
1286
1315
|
// Inline function 'kotlin.math.pow' call
|
|
1287
|
-
tmp.
|
|
1316
|
+
tmp.g23_1 = 1.0993 * Math.pow(0.0181, 0.45) - (1.0993 - 1);
|
|
1288
1317
|
}
|
|
1289
|
-
protoOf(BT2020TransferFunctions).o21 = function (x) {
|
|
1290
|
-
return numberToDouble(x < this.f23_1 ? x / 4.5 : spow_0((x + (1.0993 - 1)) / 1.0993, 1 / 0.45));
|
|
1291
|
-
};
|
|
1292
1318
|
protoOf(BT2020TransferFunctions).p21 = function (x) {
|
|
1319
|
+
return numberToDouble(x < this.g23_1 ? x / 4.5 : spow_0((x + (1.0993 - 1)) / 1.0993, 1 / 0.45));
|
|
1320
|
+
};
|
|
1321
|
+
protoOf(BT2020TransferFunctions).q21 = function (x) {
|
|
1293
1322
|
return x < 0.0181 ? 4.5 * x : 1.0993 * spow(x, 0.45) - (1.0993 - 1);
|
|
1294
1323
|
};
|
|
1295
1324
|
var BT2020TransferFunctions_instance;
|
|
@@ -1300,12 +1329,12 @@
|
|
|
1300
1329
|
}
|
|
1301
1330
|
function BT709TransferFunctions() {
|
|
1302
1331
|
BT709TransferFunctions_instance = this;
|
|
1303
|
-
this.
|
|
1332
|
+
this.h23_1 = 1.099 * spow_0(0.018, 0.45) - 0.099;
|
|
1304
1333
|
}
|
|
1305
|
-
protoOf(BT709TransferFunctions).o21 = function (x) {
|
|
1306
|
-
return numberToDouble(x < this.g23_1 ? x / 4.5 : spow_0((x + 0.099) / 1.099, 1 / 0.45));
|
|
1307
|
-
};
|
|
1308
1334
|
protoOf(BT709TransferFunctions).p21 = function (x) {
|
|
1335
|
+
return numberToDouble(x < this.h23_1 ? x / 4.5 : spow_0((x + 0.099) / 1.099, 1 / 0.45));
|
|
1336
|
+
};
|
|
1337
|
+
protoOf(BT709TransferFunctions).q21 = function (x) {
|
|
1309
1338
|
return x < 0.018 ? 4.5 * x : 1.099 * spow(x, 0.45) - 0.099;
|
|
1310
1339
|
};
|
|
1311
1340
|
var BT709TransferFunctions_instance;
|
|
@@ -1315,12 +1344,12 @@
|
|
|
1315
1344
|
return BT709TransferFunctions_instance;
|
|
1316
1345
|
}
|
|
1317
1346
|
function ROMMTransferFunctions() {
|
|
1318
|
-
this.
|
|
1347
|
+
this.i23_1 = 0.001953;
|
|
1319
1348
|
}
|
|
1320
|
-
protoOf(ROMMTransferFunctions).
|
|
1349
|
+
protoOf(ROMMTransferFunctions).p21 = function (x) {
|
|
1321
1350
|
return x < 16 * 0.001953 ? x / 16.0 : spow(x, 1.8);
|
|
1322
1351
|
};
|
|
1323
|
-
protoOf(ROMMTransferFunctions).
|
|
1352
|
+
protoOf(ROMMTransferFunctions).q21 = function (x) {
|
|
1324
1353
|
return x < 0.001953 ? x * 16.0 : spow(x, 1.0 / 1.8);
|
|
1325
1354
|
};
|
|
1326
1355
|
var ROMMTransferFunctions_instance;
|
|
@@ -1329,17 +1358,17 @@
|
|
|
1329
1358
|
}
|
|
1330
1359
|
function rgbToXyzMatrix(whitePoint, r, g, b) {
|
|
1331
1360
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
1332
|
-
var primaries = _Matrix___init__impl__q3kp4w_0(r.
|
|
1361
|
+
var primaries = _Matrix___init__impl__q3kp4w_0(r.j23_1, g.j23_1, b.j23_1, r.k23_1, g.k23_1, b.k23_1, r.m23(), g.m23(), b.m23());
|
|
1333
1362
|
var wp = whitePoint.n1z_1;
|
|
1334
1363
|
var tmp0 = inverse(primaries);
|
|
1335
|
-
var
|
|
1336
|
-
var
|
|
1364
|
+
var tmp2 = wp.n23();
|
|
1365
|
+
var tmp4 = wp.l23_1;
|
|
1337
1366
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1338
|
-
var v2 = wp.
|
|
1339
|
-
var
|
|
1340
|
-
var
|
|
1341
|
-
var z = Matrix__get_impl_xogbpk(tmp0, 0, 2) *
|
|
1342
|
-
return dotDiagonal(primaries,
|
|
1367
|
+
var v2 = wp.o23();
|
|
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
|
+
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
|
+
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;
|
|
1371
|
+
return dotDiagonal(primaries, tmp0_0, tmp2_0, z);
|
|
1343
1372
|
}
|
|
1344
1373
|
function RGBColorSpace$lambda($this$RGBColorSpaceImpl, color) {
|
|
1345
1374
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
@@ -1369,22 +1398,22 @@
|
|
|
1369
1398
|
}
|
|
1370
1399
|
function Companion_3() {
|
|
1371
1400
|
Companion_instance_3 = this;
|
|
1372
|
-
this.
|
|
1401
|
+
this.p23_1 = XYZColorSpaces_getInstance().q23_1;
|
|
1373
1402
|
}
|
|
1374
|
-
protoOf(Companion_3).
|
|
1375
|
-
return this.
|
|
1403
|
+
protoOf(Companion_3).n20 = function (x, y, z, alpha) {
|
|
1404
|
+
return this.p23_1.n20(x, y, z, alpha);
|
|
1376
1405
|
};
|
|
1377
|
-
protoOf(Companion_3).
|
|
1378
|
-
return this.
|
|
1406
|
+
protoOf(Companion_3).x21 = function () {
|
|
1407
|
+
return this.p23_1.x21();
|
|
1379
1408
|
};
|
|
1380
|
-
protoOf(Companion_3).
|
|
1381
|
-
return this.
|
|
1409
|
+
protoOf(Companion_3).z1z = function () {
|
|
1410
|
+
return this.p23_1.z1z();
|
|
1382
1411
|
};
|
|
1383
1412
|
protoOf(Companion_3).hashCode = function () {
|
|
1384
|
-
return hashCode(XYZColorSpaces_getInstance().
|
|
1413
|
+
return hashCode(XYZColorSpaces_getInstance().q23_1);
|
|
1385
1414
|
};
|
|
1386
1415
|
protoOf(Companion_3).equals = function (other) {
|
|
1387
|
-
return equals(XYZColorSpaces_getInstance().
|
|
1416
|
+
return equals(XYZColorSpaces_getInstance().q23_1, other);
|
|
1388
1417
|
};
|
|
1389
1418
|
var Companion_instance_3;
|
|
1390
1419
|
function Companion_getInstance_3() {
|
|
@@ -1393,17 +1422,17 @@
|
|
|
1393
1422
|
return Companion_instance_3;
|
|
1394
1423
|
}
|
|
1395
1424
|
function adaptToM($this, space, m, mi) {
|
|
1396
|
-
if (space.
|
|
1425
|
+
if (space.x21().equals($this.g22_1.x21()))
|
|
1397
1426
|
return $this;
|
|
1398
|
-
var transform = chromaticAdaptationMatrix(space, $this.g22_1.
|
|
1399
|
-
var
|
|
1400
|
-
var
|
|
1427
|
+
var transform = chromaticAdaptationMatrix(space, $this.g22_1.x21().n1z_1, m, mi);
|
|
1428
|
+
var tmp2 = $this.c22_1;
|
|
1429
|
+
var tmp4 = $this.d22_1;
|
|
1401
1430
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1402
1431
|
var v2 = $this.e22_1;
|
|
1403
|
-
var
|
|
1404
|
-
var
|
|
1405
|
-
var zz = Matrix__get_impl_xogbpk(transform, 0, 2) *
|
|
1406
|
-
return space.
|
|
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
|
+
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
|
+
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.n20(tmp0, tmp2_0, zz, $this.f22_1);
|
|
1407
1436
|
}
|
|
1408
1437
|
function XYZ(x, y, z, alpha, space) {
|
|
1409
1438
|
Companion_getInstance_3();
|
|
@@ -1416,24 +1445,24 @@
|
|
|
1416
1445
|
protoOf(XYZ).a1z = function () {
|
|
1417
1446
|
return this.g22_1;
|
|
1418
1447
|
};
|
|
1419
|
-
protoOf(XYZ).
|
|
1448
|
+
protoOf(XYZ).s23 = function (space) {
|
|
1420
1449
|
return adaptToM(this, space, get_CAT02_XYZ_TO_LMS(), get_CAT02_LMS_TO_XYZ());
|
|
1421
1450
|
};
|
|
1422
1451
|
protoOf(XYZ).h22 = function (space) {
|
|
1423
|
-
var _destruct__k2r9zo = this.
|
|
1452
|
+
var _destruct__k2r9zo = this.s23(XYZColorSpace_0(space.x21()));
|
|
1424
1453
|
var x = _destruct__k2r9zo.w9();
|
|
1425
1454
|
var y = _destruct__k2r9zo.x9();
|
|
1426
1455
|
var z = _destruct__k2r9zo.oh();
|
|
1427
|
-
var f = space.
|
|
1456
|
+
var f = space.g21();
|
|
1428
1457
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1429
|
-
var this_0 = _Matrix___init__impl__q3kp4w(space.
|
|
1430
|
-
var
|
|
1431
|
-
var
|
|
1458
|
+
var this_0 = _Matrix___init__impl__q3kp4w(space.w21());
|
|
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
|
+
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;
|
|
1432
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;
|
|
1433
|
-
return space.
|
|
1462
|
+
return space.n20(f.q21(tmp0), f.q21(tmp2), f.q21(b), this.f22_1);
|
|
1434
1463
|
};
|
|
1435
1464
|
protoOf(XYZ).b1z = function () {
|
|
1436
|
-
return this.h22(RGBColorSpaces_getInstance().
|
|
1465
|
+
return this.h22(RGBColorSpaces_getInstance().u20_1);
|
|
1437
1466
|
};
|
|
1438
1467
|
protoOf(XYZ).c1z = function () {
|
|
1439
1468
|
return this;
|
|
@@ -1479,12 +1508,12 @@
|
|
|
1479
1508
|
function XYZColorSpace() {
|
|
1480
1509
|
}
|
|
1481
1510
|
function XYZColorSpace_0(whitePoint) {
|
|
1482
|
-
return whitePoint.equals(Illuminant_getInstance().t1z_1) ? XYZColorSpaces_getInstance().
|
|
1511
|
+
return whitePoint.equals(Illuminant_getInstance().t1z_1) ? XYZColorSpaces_getInstance().q23_1 : whitePoint.equals(Illuminant_getInstance().r1z_1) ? XYZColorSpaces_getInstance().r23_1 : new XYZColorSpaceImpl(whitePoint);
|
|
1483
1512
|
}
|
|
1484
1513
|
function XYZColorSpaces() {
|
|
1485
1514
|
XYZColorSpaces_instance = this;
|
|
1486
|
-
this.
|
|
1487
|
-
this.
|
|
1515
|
+
this.q23_1 = new XYZColorSpaceImpl(Illuminant_getInstance().t1z_1);
|
|
1516
|
+
this.r23_1 = new XYZColorSpaceImpl(Illuminant_getInstance().r1z_1);
|
|
1488
1517
|
}
|
|
1489
1518
|
var XYZColorSpaces_instance;
|
|
1490
1519
|
function XYZColorSpaces_getInstance() {
|
|
@@ -1495,34 +1524,34 @@
|
|
|
1495
1524
|
function chromaticAdaptationMatrix(_this__u8e3s4, srcWp, xyzToLms, lmsToXyz) {
|
|
1496
1525
|
xyzToLms = xyzToLms === VOID ? get_CAT02_XYZ_TO_LMS() : xyzToLms;
|
|
1497
1526
|
lmsToXyz = lmsToXyz === VOID ? get_CAT02_LMS_TO_XYZ() : lmsToXyz;
|
|
1498
|
-
var dstWp = _this__u8e3s4.
|
|
1499
|
-
var src = dot_0(xyzToLms, srcWp.
|
|
1500
|
-
var dst = dot_0(xyzToLms, dstWp.
|
|
1527
|
+
var dstWp = _this__u8e3s4.x21().n1z_1;
|
|
1528
|
+
var src = dot_0(xyzToLms, srcWp.n23(), srcWp.l23_1, srcWp.o23());
|
|
1529
|
+
var dst = dot_0(xyzToLms, dstWp.n23(), dstWp.l23_1, dstWp.o23());
|
|
1501
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);
|
|
1502
1531
|
}
|
|
1503
1532
|
function XYZColorSpaceImpl(whitePoint) {
|
|
1504
|
-
this.
|
|
1505
|
-
this.
|
|
1533
|
+
this.t23_1 = whitePoint;
|
|
1534
|
+
this.u23_1 = zeroOneComponentInfo('XYZ');
|
|
1506
1535
|
}
|
|
1507
|
-
protoOf(XYZColorSpaceImpl).
|
|
1508
|
-
return this.s23_1;
|
|
1509
|
-
};
|
|
1510
|
-
protoOf(XYZColorSpaceImpl).y1z = function () {
|
|
1536
|
+
protoOf(XYZColorSpaceImpl).x21 = function () {
|
|
1511
1537
|
return this.t23_1;
|
|
1512
1538
|
};
|
|
1539
|
+
protoOf(XYZColorSpaceImpl).z1z = function () {
|
|
1540
|
+
return this.u23_1;
|
|
1541
|
+
};
|
|
1513
1542
|
protoOf(XYZColorSpaceImpl).toString = function () {
|
|
1514
|
-
return 'XYZColorSpace(' + this.
|
|
1543
|
+
return 'XYZColorSpace(' + this.t23_1.toString() + ')';
|
|
1515
1544
|
};
|
|
1516
|
-
protoOf(XYZColorSpaceImpl).
|
|
1545
|
+
protoOf(XYZColorSpaceImpl).n20 = function (x, y, z, alpha) {
|
|
1517
1546
|
return new XYZ(x, y, z, alpha, this);
|
|
1518
1547
|
};
|
|
1519
1548
|
protoOf(XYZColorSpaceImpl).hashCode = function () {
|
|
1520
|
-
return this.
|
|
1549
|
+
return this.t23_1.hashCode();
|
|
1521
1550
|
};
|
|
1522
1551
|
protoOf(XYZColorSpaceImpl).equals = function (other) {
|
|
1523
1552
|
var tmp;
|
|
1524
1553
|
if (!(other == null) ? isInterface(other, XYZColorSpace) : false) {
|
|
1525
|
-
tmp = this.
|
|
1554
|
+
tmp = this.t23_1.equals(other.x21());
|
|
1526
1555
|
} else {
|
|
1527
1556
|
tmp = false;
|
|
1528
1557
|
}
|
|
@@ -1538,26 +1567,26 @@
|
|
|
1538
1567
|
}
|
|
1539
1568
|
function xyY(x, y, Y) {
|
|
1540
1569
|
Y = Y === VOID ? 1.0 : Y;
|
|
1541
|
-
this.
|
|
1542
|
-
this.
|
|
1543
|
-
this.
|
|
1570
|
+
this.j23_1 = x;
|
|
1571
|
+
this.k23_1 = y;
|
|
1572
|
+
this.l23_1 = Y;
|
|
1544
1573
|
}
|
|
1545
|
-
protoOf(xyY).l23 = function () {
|
|
1546
|
-
return 1 - this.i23_1 - this.j23_1;
|
|
1547
|
-
};
|
|
1548
1574
|
protoOf(xyY).m23 = function () {
|
|
1549
|
-
return
|
|
1575
|
+
return 1 - this.j23_1 - this.k23_1;
|
|
1550
1576
|
};
|
|
1551
1577
|
protoOf(xyY).n23 = function () {
|
|
1552
|
-
return
|
|
1578
|
+
return this.j23_1 * this.l23_1 / this.k23_1;
|
|
1579
|
+
};
|
|
1580
|
+
protoOf(xyY).o23 = function () {
|
|
1581
|
+
return (1 - this.j23_1 - this.k23_1) * this.l23_1 / this.k23_1;
|
|
1553
1582
|
};
|
|
1554
1583
|
protoOf(xyY).toString = function () {
|
|
1555
|
-
return 'xyY(x=' + this.
|
|
1584
|
+
return 'xyY(x=' + this.j23_1 + ', y=' + this.k23_1 + ', Y=' + this.l23_1 + ')';
|
|
1556
1585
|
};
|
|
1557
1586
|
protoOf(xyY).hashCode = function () {
|
|
1558
|
-
var result = getNumberHashCode(this.
|
|
1559
|
-
result = imul(result, 31) + getNumberHashCode(this.j23_1) | 0;
|
|
1587
|
+
var result = getNumberHashCode(this.j23_1);
|
|
1560
1588
|
result = imul(result, 31) + getNumberHashCode(this.k23_1) | 0;
|
|
1589
|
+
result = imul(result, 31) + getNumberHashCode(this.l23_1) | 0;
|
|
1561
1590
|
return result;
|
|
1562
1591
|
};
|
|
1563
1592
|
protoOf(xyY).equals = function (other) {
|
|
@@ -1566,30 +1595,30 @@
|
|
|
1566
1595
|
if (!(other instanceof xyY))
|
|
1567
1596
|
return false;
|
|
1568
1597
|
var tmp0_other_with_cast = other instanceof xyY ? other : THROW_CCE();
|
|
1569
|
-
if (!equals(this.i23_1, tmp0_other_with_cast.i23_1))
|
|
1570
|
-
return false;
|
|
1571
1598
|
if (!equals(this.j23_1, tmp0_other_with_cast.j23_1))
|
|
1572
1599
|
return false;
|
|
1573
1600
|
if (!equals(this.k23_1, tmp0_other_with_cast.k23_1))
|
|
1574
1601
|
return false;
|
|
1602
|
+
if (!equals(this.l23_1, tmp0_other_with_cast.l23_1))
|
|
1603
|
+
return false;
|
|
1575
1604
|
return true;
|
|
1576
1605
|
};
|
|
1577
1606
|
//region block: post-declaration
|
|
1578
1607
|
protoOf(Ansi16).c1z = toXYZ;
|
|
1579
1608
|
protoOf(Ansi256).c1z = toXYZ;
|
|
1580
1609
|
protoOf(HSV).c1z = toXYZ;
|
|
1581
|
-
protoOf(Companion_2).
|
|
1582
|
-
protoOf(Companion_2).
|
|
1583
|
-
protoOf(Companion_2).
|
|
1584
|
-
protoOf(SRGB).
|
|
1585
|
-
protoOf(SRGB).
|
|
1586
|
-
protoOf(SRGB).
|
|
1587
|
-
protoOf(RGBColorSpaceImpl).
|
|
1588
|
-
protoOf(RGBColorSpaceImpl).
|
|
1589
|
-
protoOf(RGBColorSpaceImpl).
|
|
1590
|
-
protoOf(RGBColorSpaceImpl).
|
|
1591
|
-
protoOf(RGBColorSpaceImpl).
|
|
1592
|
-
protoOf(RGBColorSpaceImpl).
|
|
1610
|
+
protoOf(Companion_2).b20 = invoke$default;
|
|
1611
|
+
protoOf(Companion_2).g20 = invoke$default_0;
|
|
1612
|
+
protoOf(Companion_2).c20 = from255$default;
|
|
1613
|
+
protoOf(SRGB).b20 = invoke$default;
|
|
1614
|
+
protoOf(SRGB).g20 = invoke$default_0;
|
|
1615
|
+
protoOf(SRGB).c20 = from255$default;
|
|
1616
|
+
protoOf(RGBColorSpaceImpl).b20 = invoke$default;
|
|
1617
|
+
protoOf(RGBColorSpaceImpl).s21 = invoke;
|
|
1618
|
+
protoOf(RGBColorSpaceImpl).g20 = invoke$default_0;
|
|
1619
|
+
protoOf(RGBColorSpaceImpl).u21 = invoke_0;
|
|
1620
|
+
protoOf(RGBColorSpaceImpl).t21 = from255;
|
|
1621
|
+
protoOf(RGBColorSpaceImpl).c20 = from255$default;
|
|
1593
1622
|
//endregion
|
|
1594
1623
|
//region block: init
|
|
1595
1624
|
PqNonlinearity_instance = new PqNonlinearity();
|