MCPcopy Create free account
hub / github.com/cursorless-dev/cursorless / main

Function main

src/scripts/hatAdjustments/add.ts:34–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32}
33
34function main() {
35 const finalMap = Object.fromEntries(
36 HAT_SHAPES.map((shape) => {
37 const adjustmentsList = adjustments.map(
38 (adjustment) => adjustment[shape] ?? {}
39 );
40
41 return [
42 shape,
43 {
44 sizeAdjustment: processProperty(adjustmentsList, "sizeAdjustment"),
45 verticalOffset: processProperty(adjustmentsList, "verticalOffset"),
46 },
47 ];
48 })
49 ) as IndividualHatAdjustmentMap;
50
51 console.log(JSON.stringify(finalMap, null, 2));
52}
53
54main();

Callers 1

add.tsFile · 0.70

Calls 2

logMethod · 0.80
processPropertyFunction · 0.70

Tested by

no test coverage detected