@design-edito/tools 0.3.0 → 0.3.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/agnostic/arrays/is-array-of/index.js +1 -1
- package/agnostic/colors/channels/index.js +3 -3
- package/agnostic/colors/contrast/index.js +3 -3
- package/agnostic/colors/convert/index.js +2 -2
- package/agnostic/colors/distance/index.js +2 -2
- package/agnostic/colors/grayscale/index.js +2 -2
- package/agnostic/colors/invert/index.js +2 -2
- package/agnostic/colors/lerp/index.js +2 -2
- package/agnostic/colors/luminance/index.js +3 -3
- package/agnostic/colors/palette/index.js +4 -4
- package/agnostic/colors/rotate/index.js +4 -4
- package/agnostic/colors/tidy/index.js +2 -2
- package/agnostic/css/bem/index.js +3 -3
- package/agnostic/{numbers/responsive-harmonics → css/scale}/index.d.ts +7 -17
- package/agnostic/{numbers/responsive-harmonics → css/scale}/index.js +18 -30
- package/agnostic/css/scale/index.test.d.ts +1 -0
- package/agnostic/html/hyper-json/cast/index.js +7 -7
- package/agnostic/html/hyper-json/index.js +9 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjparse/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjstringify/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +7 -7
- package/agnostic/html/hyper-json/tree/index.js +7 -7
- package/agnostic/html/hyper-json/utils/index.js +7 -7
- package/agnostic/misc/crawler/index.d.ts +2 -2
- package/agnostic/misc/crawler/index.js +1 -1
- package/agnostic/misc/is-constructor-function/index.js +1 -1
- package/agnostic/numbers/geometric-progressions/index.d.ts +14 -0
- package/agnostic/numbers/geometric-progressions/index.js +7 -0
- package/agnostic/numbers/geometric-progressions/index.test.d.ts +1 -0
- package/chunks/chunk-5H3IRSOB.js +8 -0
- package/chunks/{chunk-P6K7NPUZ.js → chunk-6KOJFWH3.js} +1 -1
- package/chunks/chunk-ASXK7XCC.js +18 -0
- package/chunks/{chunk-PC62QFWI.js → chunk-FXISVWGE.js} +1 -1
- package/chunks/{chunk-ASNS7K6J.js → chunk-HMPY32F7.js} +1 -1
- package/chunks/{chunk-UL4SNGRK.js → chunk-MSAAQTCE.js} +4 -4
- package/chunks/{chunk-33SNWUIB.js → chunk-MZYCKOLN.js} +1 -1
- package/chunks/{chunk-AOR2M2H3.js → chunk-QFBVETGF.js} +1 -1
- package/chunks/{chunk-RJK53Q5I.js → chunk-TLWVLCIQ.js} +1 -1
- package/chunks/{chunk-THWQ7NVE.js → chunk-TTJXJX4E.js} +2 -2
- package/chunks/{chunk-QWBT7W6I.js → chunk-UR5BUIPU.js} +1 -1
- package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +3 -3
- package/node/cloud-storage/operations/copy-dir/index.js +6 -6
- package/node/cloud-storage/operations/copy-file/index.js +3 -3
- package/node/cloud-storage/operations/download-file/index.js +3 -3
- package/node/cloud-storage/operations/exists-file/index.js +3 -3
- package/node/cloud-storage/operations/list-dir/index.js +3 -3
- package/node/cloud-storage/operations/move-dir/index.js +3 -3
- package/node/cloud-storage/operations/move-file/index.js +3 -3
- package/node/cloud-storage/operations/remove-dir/index.js +3 -3
- package/node/cloud-storage/operations/remove-file/index.js +3 -3
- package/node/cloud-storage/operations/stat-file/index.js +3 -3
- package/node/images/create/index.js +3 -3
- package/node/images/format/index.js +3 -3
- package/node/images/metadata/index.js +3 -3
- package/node/images/transform/index.js +38 -38
- package/node/images/transform/operations/extend/index.js +4 -4
- package/node/images/transform/operations/flatten/index.js +4 -4
- package/node/images/transform/operations/overlay/index.js +4 -4
- package/node/images/transform/operations/resize/index.js +4 -4
- package/node/images/transform/operations/rotate/index.js +4 -4
- package/node/images/utils/index.js +3 -3
- package/package.json +1 -1
- package/agnostic/misc/elo/index.d.ts +0 -29
- package/agnostic/misc/elo/index.js +0 -31
- package/chunks/chunk-RCO57B6F.js +0 -9
- package/chunks/{chunk-QQO4QKH2.js → chunk-7NIIWL3S.js} +18 -18
- package/chunks/{chunk-LU47ASMQ.js → chunk-RNXRHCHQ.js} +3 -3
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
import {
|
|
2
|
-
isNormalizeOperationParams,
|
|
3
|
-
normalize
|
|
4
|
-
} from "../../../chunks/chunk-MHNUCHPP.js";
|
|
5
|
-
import {
|
|
6
|
-
isResizeOperationParams,
|
|
7
|
-
resize
|
|
8
|
-
} from "../../../chunks/chunk-PC62QFWI.js";
|
|
9
1
|
import {
|
|
10
2
|
isOverlayOperationParams,
|
|
11
3
|
overlay
|
|
12
|
-
} from "../../../chunks/chunk-
|
|
4
|
+
} from "../../../chunks/chunk-MZYCKOLN.js";
|
|
13
5
|
import {
|
|
14
6
|
isRotateOperationParams,
|
|
15
7
|
rotate
|
|
16
|
-
} from "../../../chunks/chunk-
|
|
8
|
+
} from "../../../chunks/chunk-QFBVETGF.js";
|
|
17
9
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
isResizeOperationParams,
|
|
11
|
+
resize
|
|
12
|
+
} from "../../../chunks/chunk-FXISVWGE.js";
|
|
20
13
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "../../../chunks/chunk-
|
|
14
|
+
isSaturateOperationParams,
|
|
15
|
+
saturate
|
|
16
|
+
} from "../../../chunks/chunk-AYGAQQXD.js";
|
|
24
17
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "../../../chunks/chunk-
|
|
18
|
+
extract,
|
|
19
|
+
isExtractOperationParams
|
|
20
|
+
} from "../../../chunks/chunk-NR7STUY3.js";
|
|
21
|
+
import {
|
|
22
|
+
flop
|
|
23
|
+
} from "../../../chunks/chunk-YA2YCZUF.js";
|
|
28
24
|
import {
|
|
29
25
|
hue,
|
|
30
26
|
isHueOperationParams
|
|
31
27
|
} from "../../../chunks/chunk-ASWI3EO6.js";
|
|
32
28
|
import {
|
|
33
|
-
|
|
34
|
-
} from "../../../chunks/chunk-
|
|
35
|
-
import {
|
|
36
|
-
isLevelOperationParams,
|
|
37
|
-
level
|
|
38
|
-
} from "../../../chunks/chunk-IK2S6ZYP.js";
|
|
29
|
+
flip
|
|
30
|
+
} from "../../../chunks/chunk-WNDMYNDU.js";
|
|
39
31
|
import {
|
|
40
32
|
isLightenOperationParams,
|
|
41
33
|
lighten
|
|
42
34
|
} from "../../../chunks/chunk-65BFQP3T.js";
|
|
43
35
|
import {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
} from "../../../chunks/chunk-
|
|
36
|
+
isLevelOperationParams,
|
|
37
|
+
level
|
|
38
|
+
} from "../../../chunks/chunk-IK2S6ZYP.js";
|
|
47
39
|
import {
|
|
48
|
-
|
|
49
|
-
|
|
40
|
+
flatten,
|
|
41
|
+
isFlattenOperationParams
|
|
42
|
+
} from "../../../chunks/chunk-HMPY32F7.js";
|
|
43
|
+
import {
|
|
44
|
+
isNormalizeOperationParams,
|
|
45
|
+
normalize
|
|
46
|
+
} from "../../../chunks/chunk-MHNUCHPP.js";
|
|
50
47
|
import {
|
|
51
48
|
blur,
|
|
52
49
|
isBlurOperationParams
|
|
53
50
|
} from "../../../chunks/chunk-PTJO2TGI.js";
|
|
54
|
-
import {
|
|
55
|
-
extract,
|
|
56
|
-
isExtractOperationParams
|
|
57
|
-
} from "../../../chunks/chunk-NR7STUY3.js";
|
|
58
51
|
import {
|
|
59
52
|
brighten,
|
|
60
53
|
isBrightenOperationParams
|
|
61
54
|
} from "../../../chunks/chunk-5CFQCSKJ.js";
|
|
55
|
+
import {
|
|
56
|
+
extend,
|
|
57
|
+
isExtendOperationParams
|
|
58
|
+
} from "../../../chunks/chunk-TLWVLCIQ.js";
|
|
59
|
+
import {
|
|
60
|
+
toSharpInstance
|
|
61
|
+
} from "../../../chunks/chunk-6KOJFWH3.js";
|
|
62
62
|
import "../../../chunks/chunk-LFHDJTZJ.js";
|
|
63
63
|
import "../../../chunks/chunk-5NTPCRFH.js";
|
|
64
64
|
import {
|
|
65
65
|
makeFailure,
|
|
66
66
|
makeSuccess
|
|
67
67
|
} from "../../../chunks/chunk-QEKI6WGQ.js";
|
|
68
|
-
import
|
|
69
|
-
unknownToString
|
|
70
|
-
} from "../../../chunks/chunk-FENXVJYO.js";
|
|
71
|
-
import "../../../chunks/chunk-LU47ASMQ.js";
|
|
72
|
-
import "../../../chunks/chunk-OSAXBA7G.js";
|
|
68
|
+
import "../../../chunks/chunk-RNXRHCHQ.js";
|
|
73
69
|
import "../../../chunks/chunk-DNIOWD7K.js";
|
|
70
|
+
import "../../../chunks/chunk-OSAXBA7G.js";
|
|
74
71
|
import "../../../chunks/chunk-JDINERKY.js";
|
|
75
72
|
import {
|
|
76
73
|
isNonNullObject
|
|
77
74
|
} from "../../../chunks/chunk-HQLRJ7XW.js";
|
|
78
75
|
import "../../../chunks/chunk-KRYJVBO5.js";
|
|
76
|
+
import {
|
|
77
|
+
unknownToString
|
|
78
|
+
} from "../../../chunks/chunk-FENXVJYO.js";
|
|
79
79
|
import "../../../chunks/chunk-XCBH6NLF.js";
|
|
80
80
|
|
|
81
81
|
// src/node/images/transform/index.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
extend,
|
|
3
3
|
isExtendOperationParams
|
|
4
|
-
} from "../../../../../chunks/chunk-
|
|
5
|
-
import "../../../../../chunks/chunk-
|
|
4
|
+
} from "../../../../../chunks/chunk-TLWVLCIQ.js";
|
|
5
|
+
import "../../../../../chunks/chunk-6KOJFWH3.js";
|
|
6
6
|
import "../../../../../chunks/chunk-LFHDJTZJ.js";
|
|
7
7
|
import "../../../../../chunks/chunk-QEKI6WGQ.js";
|
|
8
|
-
import "../../../../../chunks/chunk-
|
|
9
|
-
import "../../../../../chunks/chunk-OSAXBA7G.js";
|
|
8
|
+
import "../../../../../chunks/chunk-RNXRHCHQ.js";
|
|
10
9
|
import "../../../../../chunks/chunk-DNIOWD7K.js";
|
|
10
|
+
import "../../../../../chunks/chunk-OSAXBA7G.js";
|
|
11
11
|
import "../../../../../chunks/chunk-JDINERKY.js";
|
|
12
12
|
import "../../../../../chunks/chunk-HQLRJ7XW.js";
|
|
13
13
|
import "../../../../../chunks/chunk-KRYJVBO5.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
flatten,
|
|
3
3
|
isFlattenOperationParams
|
|
4
|
-
} from "../../../../../chunks/chunk-
|
|
5
|
-
import "../../../../../chunks/chunk-
|
|
4
|
+
} from "../../../../../chunks/chunk-HMPY32F7.js";
|
|
5
|
+
import "../../../../../chunks/chunk-6KOJFWH3.js";
|
|
6
6
|
import "../../../../../chunks/chunk-LFHDJTZJ.js";
|
|
7
7
|
import "../../../../../chunks/chunk-QEKI6WGQ.js";
|
|
8
|
-
import "../../../../../chunks/chunk-
|
|
9
|
-
import "../../../../../chunks/chunk-OSAXBA7G.js";
|
|
8
|
+
import "../../../../../chunks/chunk-RNXRHCHQ.js";
|
|
10
9
|
import "../../../../../chunks/chunk-DNIOWD7K.js";
|
|
10
|
+
import "../../../../../chunks/chunk-OSAXBA7G.js";
|
|
11
11
|
import "../../../../../chunks/chunk-JDINERKY.js";
|
|
12
12
|
import "../../../../../chunks/chunk-HQLRJ7XW.js";
|
|
13
13
|
import "../../../../../chunks/chunk-KRYJVBO5.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isOverlayOperationParams,
|
|
3
3
|
overlay
|
|
4
|
-
} from "../../../../../chunks/chunk-
|
|
5
|
-
import "../../../../../chunks/chunk-
|
|
4
|
+
} from "../../../../../chunks/chunk-MZYCKOLN.js";
|
|
5
|
+
import "../../../../../chunks/chunk-6KOJFWH3.js";
|
|
6
6
|
import "../../../../../chunks/chunk-LFHDJTZJ.js";
|
|
7
7
|
import "../../../../../chunks/chunk-QEKI6WGQ.js";
|
|
8
|
-
import "../../../../../chunks/chunk-
|
|
9
|
-
import "../../../../../chunks/chunk-OSAXBA7G.js";
|
|
8
|
+
import "../../../../../chunks/chunk-RNXRHCHQ.js";
|
|
10
9
|
import "../../../../../chunks/chunk-DNIOWD7K.js";
|
|
10
|
+
import "../../../../../chunks/chunk-OSAXBA7G.js";
|
|
11
11
|
import "../../../../../chunks/chunk-JDINERKY.js";
|
|
12
12
|
import "../../../../../chunks/chunk-HQLRJ7XW.js";
|
|
13
13
|
import "../../../../../chunks/chunk-KRYJVBO5.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isResizeOperationParams,
|
|
3
3
|
resize
|
|
4
|
-
} from "../../../../../chunks/chunk-
|
|
5
|
-
import "../../../../../chunks/chunk-
|
|
4
|
+
} from "../../../../../chunks/chunk-FXISVWGE.js";
|
|
5
|
+
import "../../../../../chunks/chunk-6KOJFWH3.js";
|
|
6
6
|
import "../../../../../chunks/chunk-LFHDJTZJ.js";
|
|
7
7
|
import "../../../../../chunks/chunk-QEKI6WGQ.js";
|
|
8
|
-
import "../../../../../chunks/chunk-
|
|
9
|
-
import "../../../../../chunks/chunk-OSAXBA7G.js";
|
|
8
|
+
import "../../../../../chunks/chunk-RNXRHCHQ.js";
|
|
10
9
|
import "../../../../../chunks/chunk-DNIOWD7K.js";
|
|
10
|
+
import "../../../../../chunks/chunk-OSAXBA7G.js";
|
|
11
11
|
import "../../../../../chunks/chunk-JDINERKY.js";
|
|
12
12
|
import "../../../../../chunks/chunk-HQLRJ7XW.js";
|
|
13
13
|
import "../../../../../chunks/chunk-KRYJVBO5.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isRotateOperationParams,
|
|
3
3
|
rotate
|
|
4
|
-
} from "../../../../../chunks/chunk-
|
|
5
|
-
import "../../../../../chunks/chunk-
|
|
4
|
+
} from "../../../../../chunks/chunk-QFBVETGF.js";
|
|
5
|
+
import "../../../../../chunks/chunk-6KOJFWH3.js";
|
|
6
6
|
import "../../../../../chunks/chunk-LFHDJTZJ.js";
|
|
7
7
|
import "../../../../../chunks/chunk-QEKI6WGQ.js";
|
|
8
|
-
import "../../../../../chunks/chunk-
|
|
9
|
-
import "../../../../../chunks/chunk-OSAXBA7G.js";
|
|
8
|
+
import "../../../../../chunks/chunk-RNXRHCHQ.js";
|
|
10
9
|
import "../../../../../chunks/chunk-DNIOWD7K.js";
|
|
10
|
+
import "../../../../../chunks/chunk-OSAXBA7G.js";
|
|
11
11
|
import "../../../../../chunks/chunk-JDINERKY.js";
|
|
12
12
|
import "../../../../../chunks/chunk-HQLRJ7XW.js";
|
|
13
13
|
import "../../../../../chunks/chunk-KRYJVBO5.js";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
toCreateOptions,
|
|
4
4
|
toSharpColor,
|
|
5
5
|
toSharpInstance
|
|
6
|
-
} from "../../../chunks/chunk-
|
|
7
|
-
import "../../../chunks/chunk-
|
|
8
|
-
import "../../../chunks/chunk-OSAXBA7G.js";
|
|
6
|
+
} from "../../../chunks/chunk-6KOJFWH3.js";
|
|
7
|
+
import "../../../chunks/chunk-RNXRHCHQ.js";
|
|
9
8
|
import "../../../chunks/chunk-DNIOWD7K.js";
|
|
9
|
+
import "../../../chunks/chunk-OSAXBA7G.js";
|
|
10
10
|
import "../../../chunks/chunk-JDINERKY.js";
|
|
11
11
|
import "../../../chunks/chunk-HQLRJ7XW.js";
|
|
12
12
|
import "../../../chunks/chunk-KRYJVBO5.js";
|
package/package.json
CHANGED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export declare const K_FACTOR = 32;
|
|
2
|
-
/**
|
|
3
|
-
* Calcule la probabilité de gain de A en fonction des scores Elo de A et B.
|
|
4
|
-
* @param eloA Le score Elo du joueur A.
|
|
5
|
-
* @param eloB Le score Elo du joueur B.
|
|
6
|
-
* @returns La probabilité que le joueur A gagne contre le joueur B.
|
|
7
|
-
*/
|
|
8
|
-
export declare function getWinProbability(eloA: number, eloB: number): number;
|
|
9
|
-
/**
|
|
10
|
-
* Calcule les nouveaux classements Elo pour les scénarios de victoire de A, de B et de match nul.
|
|
11
|
-
* @param eloA Le score Elo actuel du joueur A.
|
|
12
|
-
* @param eloB Le score Elo actuel du joueur B.
|
|
13
|
-
* @param kFactor Facteur K pour les calculs Elo (facultatif, valeur par défaut = 32).
|
|
14
|
-
* @returns Un objet contenant les nouveaux classements Elo pour chaque scénario de résultat.
|
|
15
|
-
*/
|
|
16
|
-
export declare function getOutcome(eloA: number, eloB: number, kFactor?: number): {
|
|
17
|
-
aWins: {
|
|
18
|
-
eloA: number;
|
|
19
|
-
eloB: number;
|
|
20
|
-
};
|
|
21
|
-
bWins: {
|
|
22
|
-
eloA: number;
|
|
23
|
-
eloB: number;
|
|
24
|
-
};
|
|
25
|
-
null: {
|
|
26
|
-
eloA: number;
|
|
27
|
-
eloB: number;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import "../../../chunks/chunk-XCBH6NLF.js";
|
|
2
|
-
|
|
3
|
-
// src/agnostic/misc/elo/index.ts
|
|
4
|
-
var K_FACTOR = 32;
|
|
5
|
-
function getWinProbability(eloA, eloB) {
|
|
6
|
-
const exponent = (eloB - eloA) / 400;
|
|
7
|
-
return 1 / (1 + Math.pow(10, exponent));
|
|
8
|
-
}
|
|
9
|
-
function getOutcome(eloA, eloB, kFactor = K_FACTOR) {
|
|
10
|
-
const probA = getWinProbability(eloA, eloB);
|
|
11
|
-
const probB = 1 - probA;
|
|
12
|
-
return {
|
|
13
|
-
aWins: {
|
|
14
|
-
eloA: Math.round(eloA + kFactor * (1 - probA)),
|
|
15
|
-
eloB: Math.round(eloB + kFactor * (0 - probB))
|
|
16
|
-
},
|
|
17
|
-
bWins: {
|
|
18
|
-
eloA: Math.round(eloA + kFactor * (0 - probA)),
|
|
19
|
-
eloB: Math.round(eloB + kFactor * (1 - probB))
|
|
20
|
-
},
|
|
21
|
-
null: {
|
|
22
|
-
eloA: Math.round(eloA + kFactor * (0.5 - probA)),
|
|
23
|
-
eloB: Math.round(eloB + kFactor * (0.5 - probB))
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
export {
|
|
28
|
-
K_FACTOR,
|
|
29
|
-
getOutcome,
|
|
30
|
-
getWinProbability
|
|
31
|
-
};
|
package/chunks/chunk-RCO57B6F.js
DELETED
|
@@ -5,32 +5,40 @@ import {
|
|
|
5
5
|
Types
|
|
6
6
|
} from "./chunk-XEQ2PBT2.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./chunk-
|
|
8
|
+
Serialize
|
|
9
|
+
} from "./chunk-DUCLFPGE.js";
|
|
10
10
|
import {
|
|
11
11
|
any
|
|
12
12
|
} from "./chunk-ZKIQ753F.js";
|
|
13
|
+
import {
|
|
14
|
+
array
|
|
15
|
+
} from "./chunk-USIYKRNX.js";
|
|
13
16
|
import {
|
|
14
17
|
SmartTags
|
|
15
18
|
} from "./chunk-HEY7J6GI.js";
|
|
16
|
-
import {
|
|
17
|
-
insertNode
|
|
18
|
-
} from "./chunk-XA4HVHJ4.js";
|
|
19
|
-
import {
|
|
20
|
-
Serialize
|
|
21
|
-
} from "./chunk-DUCLFPGE.js";
|
|
22
19
|
import {
|
|
23
20
|
Transformer
|
|
24
21
|
} from "./chunk-JVMFT3IT.js";
|
|
25
22
|
import {
|
|
26
23
|
Method
|
|
27
24
|
} from "./chunk-RW7VAKJW.js";
|
|
25
|
+
import {
|
|
26
|
+
insertNode
|
|
27
|
+
} from "./chunk-XA4HVHJ4.js";
|
|
28
28
|
import {
|
|
29
29
|
recordMap
|
|
30
30
|
} from "./chunk-XNF5MLCQ.js";
|
|
31
31
|
import {
|
|
32
32
|
isInEnum
|
|
33
33
|
} from "./chunk-E6MSDKON.js";
|
|
34
|
+
import {
|
|
35
|
+
makeFailure,
|
|
36
|
+
makeSuccess,
|
|
37
|
+
outcome_exports
|
|
38
|
+
} from "./chunk-QEKI6WGQ.js";
|
|
39
|
+
import {
|
|
40
|
+
get
|
|
41
|
+
} from "./chunk-ROWPCMQY.js";
|
|
34
42
|
import {
|
|
35
43
|
isRecord
|
|
36
44
|
} from "./chunk-YDIBNEGA.js";
|
|
@@ -42,19 +50,11 @@ import {
|
|
|
42
50
|
trimStart
|
|
43
51
|
} from "./chunk-6XL25OZX.js";
|
|
44
52
|
import {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
outcome_exports
|
|
48
|
-
} from "./chunk-QEKI6WGQ.js";
|
|
49
|
-
import {
|
|
50
|
-
get
|
|
51
|
-
} from "./chunk-ROWPCMQY.js";
|
|
53
|
+
isNonNullObject
|
|
54
|
+
} from "./chunk-HQLRJ7XW.js";
|
|
52
55
|
import {
|
|
53
56
|
unknownToString
|
|
54
57
|
} from "./chunk-FENXVJYO.js";
|
|
55
|
-
import {
|
|
56
|
-
isNonNullObject
|
|
57
|
-
} from "./chunk-HQLRJ7XW.js";
|
|
58
58
|
|
|
59
59
|
// src/agnostic/html/hyper-json/cast/index.ts
|
|
60
60
|
var Cast;
|