@rezi-ui/ink-compat 0.1.0-alpha.60 → 0.1.0-alpha.63
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rezi-ui/ink-compat",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.63",
|
|
4
4
|
"description": "Drop-in Ink compatibility layer powered by Rezi's rendering engine.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"test": "CONCURRENCY=$(node -p \"parseInt(process.versions.node)>=19?'--test-concurrency=1':''\") && node --test $CONCURRENCY $(find dist -type f -path '*/__tests__/*.test.js' | LC_ALL=C sort)"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@rezi-ui/core": "0.1.0-alpha.
|
|
42
|
-
"@rezi-ui/node": "0.1.0-alpha.
|
|
41
|
+
"@rezi-ui/core": "0.1.0-alpha.63",
|
|
42
|
+
"@rezi-ui/node": "0.1.0-alpha.63"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/react": "^18.2.0 || ^19.0.0",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const layoutCounters: {
|
|
2
|
-
layoutNodeCalls: number;
|
|
3
|
-
measureNodeCalls: number;
|
|
4
|
-
measureCacheHits: number;
|
|
5
|
-
layoutCacheHits: number;
|
|
6
|
-
constraintPassCount: number;
|
|
7
|
-
textMeasureCalls: number;
|
|
8
|
-
textMeasureTotalChars: number;
|
|
9
|
-
textMeasureTotalMs: number;
|
|
10
|
-
stackLayoutCalls: number;
|
|
11
|
-
leafLayoutCalls: number;
|
|
12
|
-
frameCount: number;
|
|
13
|
-
};
|
|
14
|
-
export declare function resetLayoutCounters(): void;
|
|
15
|
-
export declare function dumpLayoutCounters(label: string): string;
|
|
16
|
-
//# sourceMappingURL=_bench_layout_profile.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_bench_layout_profile.d.ts","sourceRoot":"","sources":["../src/_bench_layout_profile.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,cAAc;;;;;;;;;;;;CAY1B,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,IAAI,CAY1C;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAexD"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// Counters for profiling the layout pass
|
|
2
|
-
export const layoutCounters = {
|
|
3
|
-
layoutNodeCalls: 0,
|
|
4
|
-
measureNodeCalls: 0,
|
|
5
|
-
measureCacheHits: 0,
|
|
6
|
-
layoutCacheHits: 0,
|
|
7
|
-
constraintPassCount: 0,
|
|
8
|
-
textMeasureCalls: 0,
|
|
9
|
-
textMeasureTotalChars: 0,
|
|
10
|
-
textMeasureTotalMs: 0,
|
|
11
|
-
stackLayoutCalls: 0,
|
|
12
|
-
leafLayoutCalls: 0,
|
|
13
|
-
frameCount: 0,
|
|
14
|
-
};
|
|
15
|
-
export function resetLayoutCounters() {
|
|
16
|
-
layoutCounters.layoutNodeCalls = 0;
|
|
17
|
-
layoutCounters.measureNodeCalls = 0;
|
|
18
|
-
layoutCounters.measureCacheHits = 0;
|
|
19
|
-
layoutCounters.layoutCacheHits = 0;
|
|
20
|
-
layoutCounters.constraintPassCount = 0;
|
|
21
|
-
layoutCounters.textMeasureCalls = 0;
|
|
22
|
-
layoutCounters.textMeasureTotalChars = 0;
|
|
23
|
-
layoutCounters.textMeasureTotalMs = 0;
|
|
24
|
-
layoutCounters.stackLayoutCalls = 0;
|
|
25
|
-
layoutCounters.leafLayoutCalls = 0;
|
|
26
|
-
layoutCounters.frameCount += 1;
|
|
27
|
-
}
|
|
28
|
-
export function dumpLayoutCounters(label) {
|
|
29
|
-
const c = layoutCounters;
|
|
30
|
-
return [
|
|
31
|
-
`=== Layout Profile: ${label} ===`,
|
|
32
|
-
` layoutNode calls: ${c.layoutNodeCalls}`,
|
|
33
|
-
` measureNode calls: ${c.measureNodeCalls}`,
|
|
34
|
-
` measure cache hits: ${c.measureCacheHits}`,
|
|
35
|
-
` layout cache hits: ${c.layoutCacheHits}`,
|
|
36
|
-
` constraint pass count: ${c.constraintPassCount}`,
|
|
37
|
-
` stack layout calls: ${c.stackLayoutCalls}`,
|
|
38
|
-
` leaf layout calls: ${c.leafLayoutCalls}`,
|
|
39
|
-
` text measure calls: ${c.textMeasureCalls}`,
|
|
40
|
-
` text measure total chars: ${c.textMeasureTotalChars}`,
|
|
41
|
-
` text measure total ms: ${c.textMeasureTotalMs.toFixed(3)}`,
|
|
42
|
-
].join("\n");
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=_bench_layout_profile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_bench_layout_profile.js","sourceRoot":"","sources":["../src/_bench_layout_profile.ts"],"names":[],"mappings":"AAWA,yCAAyC;AACzC,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,eAAe,EAAE,CAAC;IAClB,gBAAgB,EAAE,CAAC;IACnB,gBAAgB,EAAE,CAAC;IACnB,eAAe,EAAE,CAAC;IAClB,mBAAmB,EAAE,CAAC;IACtB,gBAAgB,EAAE,CAAC;IACnB,qBAAqB,EAAE,CAAC;IACxB,kBAAkB,EAAE,CAAC;IACrB,gBAAgB,EAAE,CAAC;IACnB,eAAe,EAAE,CAAC;IAClB,UAAU,EAAE,CAAC;CACd,CAAC;AAEF,MAAM,UAAU,mBAAmB;IACjC,cAAc,CAAC,eAAe,GAAG,CAAC,CAAC;IACnC,cAAc,CAAC,gBAAgB,GAAG,CAAC,CAAC;IACpC,cAAc,CAAC,gBAAgB,GAAG,CAAC,CAAC;IACpC,cAAc,CAAC,eAAe,GAAG,CAAC,CAAC;IACnC,cAAc,C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