@rasamjs/core 0.1.0 → 0.1.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/CHANGELOG.md +9 -0
- package/README.md +2 -2
- package/RELEASING.md +15 -8
- package/dist/mixins/sizable.js +8 -6
- package/dist/mixins/sizable.js.map +1 -1
- package/package.json +1 -1
- package/reports/adoption.json +20 -20
- package/reports/animation-benchmark.json +614 -614
- package/reports/benchmark.json +65 -65
- package/reports/creation.json +26 -26
- package/reports/interchange-benchmark.json +85 -85
- package/reports/size-parity.json +4 -4
- package/reports/size.json +1 -1
- package/reports/svgjs-comparison.json +3509 -3509
- package/reports/svgjs-comparison.md +19 -19
- package/reports/svgjs-parity-current.json +26 -27
- package/src/mixins/sizable.ts +6 -6
package/reports/benchmark.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"fixture": "scripts/benchmark.mjs",
|
|
3
|
-
"date": "2026-10-
|
|
3
|
+
"date": "2026-10-31T17:41:50.469Z",
|
|
4
4
|
"browser": "Chromium 156.0.8078.4",
|
|
5
5
|
"node": "v24.21.0",
|
|
6
6
|
"os": "win32 10.0.26200",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"count": 1000,
|
|
10
10
|
"warmup": 20,
|
|
11
11
|
"iterations": 100,
|
|
12
|
-
"medianMs": 0.
|
|
13
|
-
"p95Ms":
|
|
12
|
+
"medianMs": 0.6000000238418579,
|
|
13
|
+
"p95Ms": 0.9000000357627869,
|
|
14
14
|
"targetMedianMs": 16,
|
|
15
15
|
"includes": "logical mutations and synchronous DOM commit; excludes paint",
|
|
16
16
|
"timings": [
|
|
@@ -35,56 +35,33 @@
|
|
|
35
35
|
0.5,
|
|
36
36
|
0.5,
|
|
37
37
|
0.5,
|
|
38
|
-
0.
|
|
39
|
-
0.
|
|
40
|
-
0.
|
|
41
|
-
0.
|
|
42
|
-
0.
|
|
43
|
-
0.
|
|
44
|
-
0.
|
|
45
|
-
0.
|
|
46
|
-
0.
|
|
47
|
-
0.
|
|
48
|
-
0.
|
|
49
|
-
0.
|
|
50
|
-
0.
|
|
51
|
-
0.
|
|
52
|
-
0.
|
|
53
|
-
0.
|
|
54
|
-
0.
|
|
55
|
-
0.
|
|
56
|
-
0.
|
|
57
|
-
0.
|
|
58
|
-
0.
|
|
59
|
-
0.
|
|
60
|
-
0.
|
|
61
|
-
0.
|
|
62
|
-
0.
|
|
63
|
-
0.
|
|
64
|
-
0.
|
|
65
|
-
0.5999999940395355,
|
|
66
|
-
0.5999999940395355,
|
|
67
|
-
0.5999999940395355,
|
|
68
|
-
0.5999999940395355,
|
|
69
|
-
0.5999999940395355,
|
|
70
|
-
0.5999999940395355,
|
|
71
|
-
0.5999999940395355,
|
|
72
|
-
0.5999999940395355,
|
|
73
|
-
0.5999999940395355,
|
|
74
|
-
0.5999999940395355,
|
|
75
|
-
0.5999999940395355,
|
|
76
|
-
0.5999999940395355,
|
|
77
|
-
0.5999999940395355,
|
|
78
|
-
0.5999999940395355,
|
|
79
|
-
0.5999999940395355,
|
|
80
|
-
0.5999999940395355,
|
|
81
|
-
0.5999999940395355,
|
|
82
|
-
0.5999999940395355,
|
|
83
|
-
0.5999999940395355,
|
|
84
|
-
0.5999999940395355,
|
|
85
|
-
0.5999999940395355,
|
|
86
|
-
0.5999999940395355,
|
|
87
|
-
0.5999999940395355,
|
|
38
|
+
0.5999999642372131,
|
|
39
|
+
0.5999999642372131,
|
|
40
|
+
0.5999999642372131,
|
|
41
|
+
0.5999999642372131,
|
|
42
|
+
0.5999999642372131,
|
|
43
|
+
0.5999999642372131,
|
|
44
|
+
0.5999999642372131,
|
|
45
|
+
0.5999999642372131,
|
|
46
|
+
0.5999999642372131,
|
|
47
|
+
0.5999999642372131,
|
|
48
|
+
0.5999999642372131,
|
|
49
|
+
0.5999999642372131,
|
|
50
|
+
0.5999999642372131,
|
|
51
|
+
0.5999999642372131,
|
|
52
|
+
0.5999999642372131,
|
|
53
|
+
0.5999999642372131,
|
|
54
|
+
0.5999999642372131,
|
|
55
|
+
0.5999999642372131,
|
|
56
|
+
0.5999999642372131,
|
|
57
|
+
0.6000000238418579,
|
|
58
|
+
0.6000000238418579,
|
|
59
|
+
0.6000000238418579,
|
|
60
|
+
0.6000000238418579,
|
|
61
|
+
0.6000000238418579,
|
|
62
|
+
0.6000000238418579,
|
|
63
|
+
0.6000000238418579,
|
|
64
|
+
0.6000000238418579,
|
|
88
65
|
0.6000000238418579,
|
|
89
66
|
0.6000000238418579,
|
|
90
67
|
0.6000000238418579,
|
|
@@ -92,27 +69,50 @@
|
|
|
92
69
|
0.6000000238418579,
|
|
93
70
|
0.6000000238418579,
|
|
94
71
|
0.6000000238418579,
|
|
72
|
+
0.6000000238418579,
|
|
73
|
+
0.6000000238418579,
|
|
74
|
+
0.6000000238418579,
|
|
75
|
+
0.6000000238418579,
|
|
76
|
+
0.6000000238418579,
|
|
77
|
+
0.6000000238418579,
|
|
78
|
+
0.6000000238418579,
|
|
79
|
+
0.699999988079071,
|
|
80
|
+
0.699999988079071,
|
|
81
|
+
0.699999988079071,
|
|
82
|
+
0.699999988079071,
|
|
83
|
+
0.699999988079071,
|
|
95
84
|
0.699999988079071,
|
|
96
85
|
0.699999988079071,
|
|
97
86
|
0.699999988079071,
|
|
98
87
|
0.699999988079071,
|
|
99
88
|
0.699999988079071,
|
|
100
|
-
0.
|
|
101
|
-
0.
|
|
102
|
-
0.
|
|
103
|
-
0.
|
|
104
|
-
0.
|
|
105
|
-
0.
|
|
89
|
+
0.699999988079071,
|
|
90
|
+
0.699999988079071,
|
|
91
|
+
0.699999988079071,
|
|
92
|
+
0.699999988079071,
|
|
93
|
+
0.699999988079071,
|
|
94
|
+
0.7000000476837158,
|
|
95
|
+
0.7000000476837158,
|
|
96
|
+
0.7000000476837158,
|
|
97
|
+
0.7000000476837158,
|
|
98
|
+
0.7999999523162842,
|
|
99
|
+
0.800000011920929,
|
|
106
100
|
0.800000011920929,
|
|
107
101
|
0.800000011920929,
|
|
108
102
|
0.800000011920929,
|
|
109
|
-
0.
|
|
110
|
-
0.
|
|
103
|
+
0.800000011920929,
|
|
104
|
+
0.800000011920929,
|
|
105
|
+
0.800000011920929,
|
|
106
|
+
0.800000011920929,
|
|
107
|
+
0.8999999761581421,
|
|
108
|
+
0.8999999761581421,
|
|
109
|
+
0.8999999761581421,
|
|
110
|
+
0.9000000357627869,
|
|
111
|
+
0.9000000357627869,
|
|
112
|
+
1,
|
|
111
113
|
1,
|
|
112
|
-
1.0999999940395355,
|
|
113
114
|
1.100000023841858,
|
|
114
|
-
1.
|
|
115
|
-
1.
|
|
116
|
-
1.5
|
|
115
|
+
1.199999988079071,
|
|
116
|
+
1.4000000357627869
|
|
117
117
|
]
|
|
118
118
|
}
|
package/reports/creation.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"fixture": "scripts/benchmark-creation.mjs",
|
|
3
|
-
"date": "2026-10-
|
|
3
|
+
"date": "2026-10-31T17:41:39.778Z",
|
|
4
4
|
"node": "v24.21.0",
|
|
5
5
|
"os": "win32 10.0.26200",
|
|
6
6
|
"cpu": "Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz",
|
|
@@ -9,60 +9,60 @@
|
|
|
9
9
|
"results": [
|
|
10
10
|
{
|
|
11
11
|
"count": 2000,
|
|
12
|
-
"medianCreationMs": 24.
|
|
13
|
-
"medianPointerMovesMs":
|
|
12
|
+
"medianCreationMs": 24.234699999999975,
|
|
13
|
+
"medianPointerMovesMs": 12.174800000000005,
|
|
14
14
|
"samples": [
|
|
15
15
|
{
|
|
16
|
-
"creationMs":
|
|
17
|
-
"pointerMovesMs":
|
|
16
|
+
"creationMs": 32.91459999999995,
|
|
17
|
+
"pointerMovesMs": 15.681800000000067
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
|
-
"creationMs":
|
|
21
|
-
"pointerMovesMs":
|
|
20
|
+
"creationMs": 24.583600000000047,
|
|
21
|
+
"pointerMovesMs": 14.334299999999985
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
"creationMs":
|
|
25
|
-
"pointerMovesMs":
|
|
24
|
+
"creationMs": 23.18640000000005,
|
|
25
|
+
"pointerMovesMs": 12.174800000000005
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
|
-
"creationMs":
|
|
29
|
-
"pointerMovesMs": 8.
|
|
28
|
+
"creationMs": 24.234699999999975,
|
|
29
|
+
"pointerMovesMs": 8.607499999999959
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
|
-
"creationMs": 23.
|
|
33
|
-
"pointerMovesMs":
|
|
32
|
+
"creationMs": 23.999599999999987,
|
|
33
|
+
"pointerMovesMs": 7.295199999999909
|
|
34
34
|
}
|
|
35
35
|
]
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"count": 8000,
|
|
39
|
-
"medianCreationMs":
|
|
40
|
-
"medianPointerMovesMs":
|
|
39
|
+
"medianCreationMs": 67.95839999999998,
|
|
40
|
+
"medianPointerMovesMs": 6.303200000000061,
|
|
41
41
|
"samples": [
|
|
42
42
|
{
|
|
43
|
-
"creationMs":
|
|
44
|
-
"pointerMovesMs":
|
|
43
|
+
"creationMs": 112.0308,
|
|
44
|
+
"pointerMovesMs": 7.958700000000135
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
|
-
"creationMs":
|
|
48
|
-
"pointerMovesMs":
|
|
47
|
+
"creationMs": 67.95839999999998,
|
|
48
|
+
"pointerMovesMs": 29.208000000000084
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
|
-
"creationMs":
|
|
52
|
-
"pointerMovesMs":
|
|
51
|
+
"creationMs": 65.25170000000003,
|
|
52
|
+
"pointerMovesMs": 6.303200000000061
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
|
-
"creationMs":
|
|
56
|
-
"pointerMovesMs": 6.
|
|
55
|
+
"creationMs": 54.209299999999985,
|
|
56
|
+
"pointerMovesMs": 6.035499999999956
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
|
-
"creationMs":
|
|
60
|
-
"pointerMovesMs":
|
|
59
|
+
"creationMs": 81.11660000000006,
|
|
60
|
+
"pointerMovesMs": 6.156099999999924
|
|
61
61
|
}
|
|
62
62
|
]
|
|
63
63
|
}
|
|
64
64
|
],
|
|
65
|
-
"creationGrowth":
|
|
65
|
+
"creationGrowth": 2.804177481049902,
|
|
66
66
|
"maxCreationGrowth": 8,
|
|
67
67
|
"includes": "logical creation and native append; excludes final frame commit, paint and destruction"
|
|
68
68
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"fixture": "scripts/benchmark-interchange.mjs",
|
|
3
|
-
"date": "2026-10-
|
|
3
|
+
"date": "2026-10-31T17:41:46.938Z",
|
|
4
4
|
"node": "v24.21.0",
|
|
5
5
|
"os": "win32 10.0.26200",
|
|
6
6
|
"cpu": "Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz",
|
|
@@ -13,134 +13,134 @@
|
|
|
13
13
|
{
|
|
14
14
|
"count": 250,
|
|
15
15
|
"clone": {
|
|
16
|
-
"medianMs":
|
|
17
|
-
"p95Ms":
|
|
16
|
+
"medianMs": 15.192800000000034,
|
|
17
|
+
"p95Ms": 19.029499999999985,
|
|
18
18
|
"samples": [
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
19.029499999999985,
|
|
20
|
+
17.752700000000004,
|
|
21
|
+
15.192800000000034,
|
|
22
|
+
14.218999999999937,
|
|
23
|
+
15.405200000000036,
|
|
24
|
+
14.449899999999843,
|
|
25
|
+
13.832000000000107
|
|
26
26
|
]
|
|
27
27
|
},
|
|
28
28
|
"export": {
|
|
29
|
-
"medianMs":
|
|
30
|
-
"p95Ms":
|
|
29
|
+
"medianMs": 7.225299999999834,
|
|
30
|
+
"p95Ms": 66.19130000000007,
|
|
31
31
|
"samples": [
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
6.
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
6.
|
|
38
|
-
6.
|
|
32
|
+
22.054499999999962,
|
|
33
|
+
66.19130000000007,
|
|
34
|
+
6.383600000000001,
|
|
35
|
+
7.630699999999933,
|
|
36
|
+
7.225299999999834,
|
|
37
|
+
6.538099999999986,
|
|
38
|
+
6.597099999999955
|
|
39
39
|
]
|
|
40
40
|
},
|
|
41
41
|
"import": {
|
|
42
|
-
"medianMs":
|
|
43
|
-
"p95Ms":
|
|
42
|
+
"medianMs": 39.42650000000003,
|
|
43
|
+
"p95Ms": 50.12569999999994,
|
|
44
44
|
"samples": [
|
|
45
|
-
28.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
28.03589999999997,
|
|
46
|
+
27.06490000000008,
|
|
47
|
+
39.42650000000003,
|
|
48
|
+
50.12569999999994,
|
|
49
|
+
40.90090000000009,
|
|
50
|
+
42.54500000000007,
|
|
51
|
+
25.43029999999999
|
|
52
52
|
]
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
"count": 500,
|
|
57
57
|
"clone": {
|
|
58
|
-
"medianMs":
|
|
59
|
-
"p95Ms":
|
|
58
|
+
"medianMs": 42.58919999999989,
|
|
59
|
+
"p95Ms": 77.36059999999998,
|
|
60
60
|
"samples": [
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
61
|
+
45.20119999999997,
|
|
62
|
+
27.24500000000012,
|
|
63
|
+
77.36059999999998,
|
|
64
|
+
42.58919999999989,
|
|
65
|
+
42.67599999999993,
|
|
66
|
+
25.58349999999973,
|
|
67
|
+
26.126600000000053
|
|
68
68
|
]
|
|
69
69
|
},
|
|
70
70
|
"export": {
|
|
71
|
-
"medianMs":
|
|
72
|
-
"p95Ms": 33.
|
|
71
|
+
"medianMs": 28.847999999999956,
|
|
72
|
+
"p95Ms": 33.63689999999997,
|
|
73
73
|
"samples": [
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
74
|
+
13.430200000000013,
|
|
75
|
+
28.847999999999956,
|
|
76
|
+
13.799299999999903,
|
|
77
|
+
33.25420000000008,
|
|
78
|
+
12.216199999999844,
|
|
79
|
+
33.63689999999997,
|
|
80
|
+
29.007800000000316
|
|
81
81
|
]
|
|
82
82
|
},
|
|
83
83
|
"import": {
|
|
84
|
-
"medianMs":
|
|
85
|
-
"p95Ms": 67.
|
|
84
|
+
"medianMs": 52.136400000000094,
|
|
85
|
+
"p95Ms": 67.91799999999967,
|
|
86
86
|
"samples": [
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
52.
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
87
|
+
63.91820000000007,
|
|
88
|
+
49.559299999999894,
|
|
89
|
+
52.136400000000094,
|
|
90
|
+
47.43359999999984,
|
|
91
|
+
63.53829999999971,
|
|
92
|
+
67.91799999999967,
|
|
93
|
+
45.48579999999993
|
|
94
94
|
]
|
|
95
95
|
}
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
"count": 1000,
|
|
99
99
|
"clone": {
|
|
100
|
-
"medianMs":
|
|
101
|
-
"p95Ms":
|
|
100
|
+
"medianMs": 81.37660000000005,
|
|
101
|
+
"p95Ms": 116.55470000000014,
|
|
102
102
|
"samples": [
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
103
|
+
89.22820000000002,
|
|
104
|
+
77.06989999999996,
|
|
105
|
+
116.55470000000014,
|
|
106
|
+
81.37660000000005,
|
|
107
|
+
58.0021999999999,
|
|
108
|
+
70.65490000000045,
|
|
109
|
+
81.68069999999989
|
|
110
110
|
]
|
|
111
111
|
},
|
|
112
112
|
"export": {
|
|
113
|
-
"medianMs":
|
|
114
|
-
"p95Ms":
|
|
113
|
+
"medianMs": 41.614300000000185,
|
|
114
|
+
"p95Ms": 49.92590000000018,
|
|
115
115
|
"samples": [
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
116
|
+
46.092699999999695,
|
|
117
|
+
29.53839999999991,
|
|
118
|
+
29.11279999999988,
|
|
119
|
+
41.614300000000185,
|
|
120
|
+
40.93419999999969,
|
|
121
|
+
49.92590000000018,
|
|
122
|
+
43.43040000000019
|
|
123
123
|
]
|
|
124
124
|
},
|
|
125
125
|
"import": {
|
|
126
|
-
"medianMs":
|
|
127
|
-
"p95Ms":
|
|
126
|
+
"medianMs": 135.04780000000028,
|
|
127
|
+
"p95Ms": 169.56860000000006,
|
|
128
128
|
"samples": [
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
129
|
+
142.11339999999973,
|
|
130
|
+
169.56860000000006,
|
|
131
|
+
149.2601999999997,
|
|
132
|
+
135.04780000000028,
|
|
133
|
+
120.63550000000032,
|
|
134
|
+
121.02990000000045,
|
|
135
|
+
128.70439999999962
|
|
136
136
|
]
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
],
|
|
140
140
|
"growth": {
|
|
141
|
-
"clone":
|
|
142
|
-
"export": 5.
|
|
143
|
-
"import":
|
|
141
|
+
"clone": 5.356260860407553,
|
|
142
|
+
"export": 5.759525556032433,
|
|
143
|
+
"import": 3.4253053149531447
|
|
144
144
|
},
|
|
145
145
|
"maxGrowth": 8
|
|
146
146
|
}
|
package/reports/size-parity.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
{
|
|
3
3
|
"fixture": "fixtures/size-catalog.ts",
|
|
4
4
|
"rawBytes": 109101,
|
|
5
|
-
"gzipBytes":
|
|
5
|
+
"gzipBytes": 32515,
|
|
6
6
|
"budgetBytes": 32768,
|
|
7
7
|
"included": [
|
|
8
8
|
"src/changes/mutation.ts",
|
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
{
|
|
334
334
|
"fixture": "fixtures/size-interchange.ts",
|
|
335
335
|
"rawBytes": 58750,
|
|
336
|
-
"gzipBytes":
|
|
336
|
+
"gzipBytes": 17853,
|
|
337
337
|
"budgetBytes": 18432,
|
|
338
338
|
"included": [
|
|
339
339
|
"src/changes/mutation.ts",
|
|
@@ -383,7 +383,7 @@
|
|
|
383
383
|
{
|
|
384
384
|
"fixture": "fixtures/size-masks.ts",
|
|
385
385
|
"rawBytes": 43460,
|
|
386
|
-
"gzipBytes":
|
|
386
|
+
"gzipBytes": 13066,
|
|
387
387
|
"budgetBytes": 13312,
|
|
388
388
|
"included": [
|
|
389
389
|
"src/changes/mutation.ts",
|
|
@@ -428,7 +428,7 @@
|
|
|
428
428
|
{
|
|
429
429
|
"fixture": "fixtures/size-patterns.ts",
|
|
430
430
|
"rawBytes": 42320,
|
|
431
|
-
"gzipBytes":
|
|
431
|
+
"gzipBytes": 12606,
|
|
432
432
|
"budgetBytes": 13312,
|
|
433
433
|
"included": [
|
|
434
434
|
"src/changes/mutation.ts",
|