@rasamjs/core 0.1.1 → 0.1.2
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 +13 -1
- package/README.md +1 -1
- package/RELEASING.md +13 -10
- package/dist/changes/restore.js +2 -0
- package/dist/changes/restore.js.map +1 -1
- package/dist/elements/text.js +4 -4
- package/dist/elements/text.js.map +1 -1
- package/dist/text/rich-textual.js +3 -3
- package/dist/text/rich-textual.js.map +1 -1
- package/package.json +1 -1
- package/reports/adoption.json +20 -20
- package/reports/animation-benchmark.json +617 -617
- package/reports/benchmark.json +42 -42
- package/reports/creation.json +26 -26
- package/reports/interchange-benchmark.json +85 -85
- package/reports/size-parity.json +4 -4
- package/reports/svgjs-comparison.json +3245 -3245
- package/reports/svgjs-comparison.md +17 -17
- package/reports/svgjs-parity-current.json +16 -19
- package/src/changes/restore.ts +2 -0
- package/src/elements/text.ts +3 -3
- package/src/text/rich-textual.ts +2 -2
package/reports/benchmark.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"fixture": "scripts/benchmark.mjs",
|
|
3
|
-
"date": "2026-
|
|
3
|
+
"date": "2026-11-02T00:13:34.754Z",
|
|
4
4
|
"browser": "Chromium 156.0.8078.4",
|
|
5
5
|
"node": "v24.21.0",
|
|
6
6
|
"os": "win32 10.0.26200",
|
|
@@ -9,11 +9,48 @@
|
|
|
9
9
|
"count": 1000,
|
|
10
10
|
"warmup": 20,
|
|
11
11
|
"iterations": 100,
|
|
12
|
-
"medianMs": 0.
|
|
13
|
-
"p95Ms": 0.
|
|
12
|
+
"medianMs": 0.5,
|
|
13
|
+
"p95Ms": 0.699999988079071,
|
|
14
14
|
"targetMedianMs": 16,
|
|
15
15
|
"includes": "logical mutations and synchronous DOM commit; excludes paint",
|
|
16
16
|
"timings": [
|
|
17
|
+
0.3999999761581421,
|
|
18
|
+
0.3999999761581421,
|
|
19
|
+
0.3999999761581421,
|
|
20
|
+
0.3999999761581421,
|
|
21
|
+
0.3999999761581421,
|
|
22
|
+
0.3999999761581421,
|
|
23
|
+
0.3999999761581421,
|
|
24
|
+
0.3999999761581421,
|
|
25
|
+
0.3999999761581421,
|
|
26
|
+
0.3999999761581421,
|
|
27
|
+
0.40000003576278687,
|
|
28
|
+
0.40000003576278687,
|
|
29
|
+
0.40000003576278687,
|
|
30
|
+
0.40000003576278687,
|
|
31
|
+
0.40000003576278687,
|
|
32
|
+
0.5,
|
|
33
|
+
0.5,
|
|
34
|
+
0.5,
|
|
35
|
+
0.5,
|
|
36
|
+
0.5,
|
|
37
|
+
0.5,
|
|
38
|
+
0.5,
|
|
39
|
+
0.5,
|
|
40
|
+
0.5,
|
|
41
|
+
0.5,
|
|
42
|
+
0.5,
|
|
43
|
+
0.5,
|
|
44
|
+
0.5,
|
|
45
|
+
0.5,
|
|
46
|
+
0.5,
|
|
47
|
+
0.5,
|
|
48
|
+
0.5,
|
|
49
|
+
0.5,
|
|
50
|
+
0.5,
|
|
51
|
+
0.5,
|
|
52
|
+
0.5,
|
|
53
|
+
0.5,
|
|
17
54
|
0.5,
|
|
18
55
|
0.5,
|
|
19
56
|
0.5,
|
|
@@ -35,13 +72,6 @@
|
|
|
35
72
|
0.5,
|
|
36
73
|
0.5,
|
|
37
74
|
0.5,
|
|
38
|
-
0.5999999642372131,
|
|
39
|
-
0.5999999642372131,
|
|
40
|
-
0.5999999642372131,
|
|
41
|
-
0.5999999642372131,
|
|
42
|
-
0.5999999642372131,
|
|
43
|
-
0.5999999642372131,
|
|
44
|
-
0.5999999642372131,
|
|
45
75
|
0.5999999642372131,
|
|
46
76
|
0.5999999642372131,
|
|
47
77
|
0.5999999642372131,
|
|
@@ -74,18 +104,6 @@
|
|
|
74
104
|
0.6000000238418579,
|
|
75
105
|
0.6000000238418579,
|
|
76
106
|
0.6000000238418579,
|
|
77
|
-
0.6000000238418579,
|
|
78
|
-
0.6000000238418579,
|
|
79
|
-
0.699999988079071,
|
|
80
|
-
0.699999988079071,
|
|
81
|
-
0.699999988079071,
|
|
82
|
-
0.699999988079071,
|
|
83
|
-
0.699999988079071,
|
|
84
|
-
0.699999988079071,
|
|
85
|
-
0.699999988079071,
|
|
86
|
-
0.699999988079071,
|
|
87
|
-
0.699999988079071,
|
|
88
|
-
0.699999988079071,
|
|
89
107
|
0.699999988079071,
|
|
90
108
|
0.699999988079071,
|
|
91
109
|
0.699999988079071,
|
|
@@ -93,26 +111,8 @@
|
|
|
93
111
|
0.699999988079071,
|
|
94
112
|
0.7000000476837158,
|
|
95
113
|
0.7000000476837158,
|
|
96
|
-
0.7000000476837158,
|
|
97
|
-
0.7000000476837158,
|
|
98
|
-
0.7999999523162842,
|
|
99
|
-
0.800000011920929,
|
|
100
|
-
0.800000011920929,
|
|
101
|
-
0.800000011920929,
|
|
102
|
-
0.800000011920929,
|
|
103
|
-
0.800000011920929,
|
|
104
|
-
0.800000011920929,
|
|
105
|
-
0.800000011920929,
|
|
106
114
|
0.800000011920929,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
0.8999999761581421,
|
|
110
|
-
0.9000000357627869,
|
|
111
|
-
0.9000000357627869,
|
|
112
|
-
1,
|
|
113
|
-
1,
|
|
114
|
-
1.100000023841858,
|
|
115
|
-
1.199999988079071,
|
|
116
|
-
1.4000000357627869
|
|
115
|
+
1.0999999642372131,
|
|
116
|
+
1.399999976158142
|
|
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-
|
|
3
|
+
"date": "2026-11-02T00:13:22.779Z",
|
|
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":
|
|
13
|
-
"medianPointerMovesMs":
|
|
12
|
+
"medianCreationMs": 26.705100000000016,
|
|
13
|
+
"medianPointerMovesMs": 8.671500000000037,
|
|
14
14
|
"samples": [
|
|
15
15
|
{
|
|
16
|
-
"creationMs":
|
|
17
|
-
"pointerMovesMs": 15.
|
|
16
|
+
"creationMs": 33.11779999999999,
|
|
17
|
+
"pointerMovesMs": 15.405399999999986
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
|
-
"creationMs":
|
|
21
|
-
"pointerMovesMs":
|
|
20
|
+
"creationMs": 26.705100000000016,
|
|
21
|
+
"pointerMovesMs": 8.671500000000037
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
"creationMs":
|
|
25
|
-
"pointerMovesMs": 12.
|
|
24
|
+
"creationMs": 28.883399999999938,
|
|
25
|
+
"pointerMovesMs": 12.037599999999998
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
|
-
"creationMs": 24.
|
|
29
|
-
"pointerMovesMs": 8.
|
|
28
|
+
"creationMs": 24.3522999999999,
|
|
29
|
+
"pointerMovesMs": 8.336500000000001
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
|
-
"creationMs":
|
|
33
|
-
"pointerMovesMs": 7.
|
|
32
|
+
"creationMs": 24.069499999999948,
|
|
33
|
+
"pointerMovesMs": 7.400499999999965
|
|
34
34
|
}
|
|
35
35
|
]
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"count": 8000,
|
|
39
|
-
"medianCreationMs":
|
|
40
|
-
"medianPointerMovesMs": 6.
|
|
39
|
+
"medianCreationMs": 78.9511,
|
|
40
|
+
"medianPointerMovesMs": 6.612600000000157,
|
|
41
41
|
"samples": [
|
|
42
42
|
{
|
|
43
|
-
"creationMs":
|
|
44
|
-
"pointerMovesMs": 7.
|
|
43
|
+
"creationMs": 96.93219999999985,
|
|
44
|
+
"pointerMovesMs": 7.832300000000032
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
|
-
"creationMs":
|
|
48
|
-
"pointerMovesMs":
|
|
47
|
+
"creationMs": 81.06889999999999,
|
|
48
|
+
"pointerMovesMs": 6.612600000000157
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
|
-
"creationMs":
|
|
52
|
-
"pointerMovesMs": 6.
|
|
51
|
+
"creationMs": 61.077400000000125,
|
|
52
|
+
"pointerMovesMs": 6.204999999999927
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
|
-
"creationMs":
|
|
56
|
-
"pointerMovesMs": 6.
|
|
55
|
+
"creationMs": 78.9511,
|
|
56
|
+
"pointerMovesMs": 6.264099999999871
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
|
-
"creationMs":
|
|
60
|
-
"pointerMovesMs": 6.
|
|
59
|
+
"creationMs": 70.96590000000015,
|
|
60
|
+
"pointerMovesMs": 6.688599999999951
|
|
61
61
|
}
|
|
62
62
|
]
|
|
63
63
|
}
|
|
64
64
|
],
|
|
65
|
-
"creationGrowth": 2.
|
|
65
|
+
"creationGrowth": 2.956405330816958,
|
|
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-
|
|
3
|
+
"date": "2026-11-02T00:13:31.392Z",
|
|
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": 23.380999999999972,
|
|
17
|
+
"p95Ms": 38.50459999999998,
|
|
18
18
|
"samples": [
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
23.380999999999972,
|
|
20
|
+
20.48440000000005,
|
|
21
|
+
26.748000000000047,
|
|
22
|
+
36.8599999999999,
|
|
23
|
+
18.861400000000003,
|
|
24
|
+
22.280199999999923,
|
|
25
|
+
38.50459999999998
|
|
26
26
|
]
|
|
27
27
|
},
|
|
28
28
|
"export": {
|
|
29
|
-
"medianMs":
|
|
30
|
-
"p95Ms":
|
|
29
|
+
"medianMs": 11.591599999999971,
|
|
30
|
+
"p95Ms": 94.22260000000006,
|
|
31
31
|
"samples": [
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
32
|
+
23.898900000000026,
|
|
33
|
+
94.22260000000006,
|
|
34
|
+
7.6426000000001295,
|
|
35
|
+
14.268799999999828,
|
|
36
|
+
9.160500000000184,
|
|
37
|
+
11.591599999999971,
|
|
38
|
+
8.695199999999886
|
|
39
39
|
]
|
|
40
40
|
},
|
|
41
41
|
"import": {
|
|
42
|
-
"medianMs":
|
|
43
|
-
"p95Ms":
|
|
42
|
+
"medianMs": 32.36749999999995,
|
|
43
|
+
"p95Ms": 61.8922,
|
|
44
44
|
"samples": [
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
32.36749999999995,
|
|
46
|
+
38.87099999999987,
|
|
47
|
+
32.03800000000001,
|
|
48
|
+
61.8922,
|
|
49
|
+
31.651000000000067,
|
|
50
|
+
37.60699999999997,
|
|
51
|
+
28.491300000000138
|
|
52
52
|
]
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
"count": 500,
|
|
57
57
|
"clone": {
|
|
58
|
-
"medianMs":
|
|
59
|
-
"p95Ms":
|
|
58
|
+
"medianMs": 31.575600000000122,
|
|
59
|
+
"p95Ms": 84.21369999999979,
|
|
60
60
|
"samples": [
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
61
|
+
31.575600000000122,
|
|
62
|
+
29.292899999999918,
|
|
63
|
+
84.21369999999979,
|
|
64
|
+
30.08069999999998,
|
|
65
|
+
28.73829999999998,
|
|
66
|
+
43.51350000000002,
|
|
67
|
+
44.92489999999998
|
|
68
68
|
]
|
|
69
69
|
},
|
|
70
70
|
"export": {
|
|
71
|
-
"medianMs":
|
|
72
|
-
"p95Ms":
|
|
71
|
+
"medianMs": 29.19920000000002,
|
|
72
|
+
"p95Ms": 48.35719999999992,
|
|
73
73
|
"samples": [
|
|
74
|
-
13.
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
74
|
+
13.85089999999991,
|
|
75
|
+
32.823199999999815,
|
|
76
|
+
48.35719999999992,
|
|
77
|
+
28.33600000000024,
|
|
78
|
+
29.19920000000002,
|
|
79
|
+
34.56640000000016,
|
|
80
|
+
12.802100000000337
|
|
81
81
|
]
|
|
82
82
|
},
|
|
83
83
|
"import": {
|
|
84
|
-
"medianMs":
|
|
85
|
-
"p95Ms":
|
|
84
|
+
"medianMs": 53.96369999999979,
|
|
85
|
+
"p95Ms": 76.07709999999997,
|
|
86
86
|
"samples": [
|
|
87
|
-
|
|
88
|
-
49.
|
|
89
|
-
52.
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
87
|
+
53.96369999999979,
|
|
88
|
+
49.51159999999982,
|
|
89
|
+
52.294200000000274,
|
|
90
|
+
76.07709999999997,
|
|
91
|
+
66.52050000000008,
|
|
92
|
+
51.23730000000023,
|
|
93
|
+
63.930199999999786
|
|
94
94
|
]
|
|
95
95
|
}
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
"count": 1000,
|
|
99
99
|
"clone": {
|
|
100
|
-
"medianMs":
|
|
101
|
-
"p95Ms":
|
|
100
|
+
"medianMs": 92.53090000000066,
|
|
101
|
+
"p95Ms": 107.92509999999993,
|
|
102
102
|
"samples": [
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
103
|
+
107.92509999999993,
|
|
104
|
+
105.73300000000017,
|
|
105
|
+
89.36130000000048,
|
|
106
|
+
92.53090000000066,
|
|
107
|
+
79.21529999999984,
|
|
108
|
+
90.03070000000025,
|
|
109
|
+
94.65950000000066
|
|
110
110
|
]
|
|
111
111
|
},
|
|
112
112
|
"export": {
|
|
113
|
-
"medianMs":
|
|
114
|
-
"p95Ms":
|
|
113
|
+
"medianMs": 53.40429999999924,
|
|
114
|
+
"p95Ms": 99.54770000000008,
|
|
115
115
|
"samples": [
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
40.
|
|
121
|
-
|
|
122
|
-
|
|
116
|
+
43.141299999999774,
|
|
117
|
+
53.40429999999924,
|
|
118
|
+
99.54770000000008,
|
|
119
|
+
49.497699999999895,
|
|
120
|
+
40.45460000000003,
|
|
121
|
+
55.76590000000033,
|
|
122
|
+
54.46190000000024
|
|
123
123
|
]
|
|
124
124
|
},
|
|
125
125
|
"import": {
|
|
126
|
-
"medianMs":
|
|
127
|
-
"p95Ms":
|
|
126
|
+
"medianMs": 159.21590000000015,
|
|
127
|
+
"p95Ms": 175.88940000000002,
|
|
128
128
|
"samples": [
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
129
|
+
175.88940000000002,
|
|
130
|
+
164.67600000000039,
|
|
131
|
+
139.2474000000002,
|
|
132
|
+
136.66079999999965,
|
|
133
|
+
137.1938,
|
|
134
|
+
166.03060000000005,
|
|
135
|
+
159.21590000000015
|
|
136
136
|
]
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
],
|
|
140
140
|
"growth": {
|
|
141
|
-
"clone":
|
|
142
|
-
"export":
|
|
143
|
-
"import":
|
|
141
|
+
"clone": 3.9575253410889513,
|
|
142
|
+
"export": 4.607155181338157,
|
|
143
|
+
"import": 4.919005174944014
|
|
144
144
|
},
|
|
145
145
|
"maxGrowth": 8
|
|
146
146
|
}
|
package/reports/size-parity.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
3
|
"fixture": "fixtures/size-catalog.ts",
|
|
4
|
-
"rawBytes":
|
|
5
|
-
"gzipBytes":
|
|
4
|
+
"rawBytes": 109089,
|
|
5
|
+
"gzipBytes": 32518,
|
|
6
6
|
"budgetBytes": 32768,
|
|
7
7
|
"included": [
|
|
8
8
|
"src/changes/mutation.ts",
|
|
@@ -157,8 +157,8 @@
|
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
159
|
"fixture": "fixtures/size-text.ts",
|
|
160
|
-
"rawBytes":
|
|
161
|
-
"gzipBytes":
|
|
160
|
+
"rawBytes": 36832,
|
|
161
|
+
"gzipBytes": 11727,
|
|
162
162
|
"budgetBytes": 12288,
|
|
163
163
|
"included": [
|
|
164
164
|
"src/changes/mutation.ts",
|