Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

36.0 KB
Raw Blame
/**
 * Switch Joy-Con pair line-art from the colleague SVG (viewBox 0 0 1050 660).
 * Stroke/fill theming happens in JoyConGamepadLayout — geometry only.
 */

import type { GamepadGeom } from "./gamepadSilhouetteGeom";

export const R_BUTTON: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M640.2606201171875,26.356687545776367s-1.22283935546875,7.788949966430664.839111328125,11.957586288452148,10.84326171875,8.184467315673828,27.53253173828125,7.847846984863281c16.68927001953125-.336624145507812,38.8468017578125-1.11920166015625,52.08026123046875,2.374099731445312s43.5457763671875,14.818721771240234,55.7781982421875,25.179996490478516,27.22406005859375,27.60595703125,32.38592529296875,35.009765625c5.16192626953125,7.40380859375,3.283203125,4.690994262695312,3.283203125,4.690994262695312l7.88214111328125-2.695587158203125s-17.50933837890625-29.475013732910156-34.07135009765625-41.125259399414062c-16.56207275390625-11.650245666503906-37.2427978515625-22.606044769287109-47.15252685546875-25.823482513427734s-26.33984375-7.666534423828125-40.729736328125-7.983814239501953-29.23785400390625-.425468444824219-38.58349609375-1.193378448486328-14.9434814453125-1.638980865478516-16.5509033203125-7.084476470947266c0,0-1.8936767578125-4.607303619384766-1.45904541015625-5.931156158447266s2.25677490234375-2.220256805419922,12.43975830078125-1.878545761108398,28.4986572265625.303871154785156,39.638427734375.937870025634766,25.57904052734375,2.618518829345703,38.2716064453125,6.072431564331055c0,0,13.46337890625,4.47117805480957,16.74383544921875,6.043048858642578,3.28045654296875,1.571872711181641,16.9488525390625,8.269397735595703,21.8011474609375,11.071426391601562s11.1397705078125,6.834213256835938,13.73675537109375,8.816135406494141" };

export const BODY_RIGHT: GamepadGeom[] = [
  { kind: "path", paint: "stroke", strokeWidth: 3, d: "M583.913818359375,600.78106689453125c.33148193359375-.00927734375,10.3612060546875-.0775146484375,10.3612060546875-.0775146484375l-.13397216796875,33.27691650390625.62420654296875,16.57147216796875c.06732177734375,1.78692626953125.84039306640625,4.014892578125,1.7203369140625,5.88702392578125l67.9659423828125-.1478271484375,14.16046142578125-.786376953125c26.8846435546875-2.70489501953125,52.45819091796875-10.42022705078125,75.3951416015625-24.72900390625,39.83001708984375-24.84716796875,65.690673828125-65.48602294921875,67.454833984375-112.65325927734375l.76715087890625-20.511810302734375.80364990234375-22.856689453125.853759765625-25.684814453125.61236572265625-16.719482421875.29400634765625-8.021209716796875,2.9478759765625-87.9898681640625.82293701171875-19.80706787109375.89056396484375-27.16510009765625.60601806640625-18.8985595703125.85174560546875-25.216812133789062.78204345703125-23.357711791992188.86993408203125-20.76422119140625.4161376953125-16.3153076171875c.6539306640625-25.638214111328125-3.11859130859375-50.490768432617188-12.93817138671875-74.092582702636719,1.79547119140625-2.032379150390625,2.87640380859375-4.587921142578125,2.27679443359375-6.889068603515625-1.2818603515625-4.919319152832031-2.3131103515625-9.855751037597656-4.7532958984375-14.234458923339844-8.3529052734375-14.988441467285156-19.81646728515625-27.258743286132812-33.48992919921875-37.571342468261719-8.53314208984375-12.216461181640625-18.69036865234375-22.406028747558594-31.6846923828125-29.943378448486328-24.56829833984375-14.2508544921875-46.9310302734375-17.689556121826172-75.0335693359375-18.233757019042969-9.86614990234375-.191056251525879-19.57147216796875,1.515433788299561-28.17449951171875,5.717433929443359-6.638916015625,3.242653846740723-8.9385986328125,17.07618522644043-8.73699951171875,15.921897888183594-1.811767578125-3.07000732421875-3.2890625-4.843395233154297-6.5009765625-4.849571228027344l-28.536376953125-.054868698120117c-5.34674072265625-.010280609130859-8.7073974609375,3.153087615966797-8.828369140625,8.563459396362305l.3089599609375,22.419731140136719-12.658203125.151153564453125c-3.48089599609375.04156494140625-5.57562255859375,3.41119384765625-5.6036376953125,6.599441528320312l-.29669189453125,62.729736328125,6.12847900390625,12.89697265625-6.48724365234375,8.206405639648438-.12982177734375,84.234054565429688,6.07183837890625,9.037506103515625-6.634033203125,9.21270751953125-.32489013671875,166.2012939453125,6.4896240234375,12.59228515625-6.90167236328125,7.2412109375-.05499267578125,83.77923583984375,6.46978759765625,6.59967041015625-6.77099609375,23.114013671875,1.320556640625,52.2774658203125c.19720458984375,3.289306640625,2.498291015625,4.45013427734375,6.4066162109375,4.3404541015625l.00006103515625.0001220703125Z" },
  { kind: "line", paint: "stroke", strokeWidth: 2, x1: 596.485595703125, y1: 656.43902587890625, x2: 604.99298095703125, y2: 53.959815979003906 },
  { kind: "path", paint: "stroke", strokeWidth: 2, d: "M832.98016357421875,184.81396484375s2.64306640625-23.314727783203125-18.94970703125-58.800376892089844c-8.22210693359375-13.51214599609375-27.02545166015625-43.08807373046875-75.59478759765625-63.014865875244141-22.07562255859375-9.057086944580078-77.65069580078125-7.821281433105469-77.65069580078125-7.821281433105469l-55.569580078125.438087463378906-4.47613525390625-33.319240570068359" },
  { kind: "path", paint: "stroke", strokeWidth: 2, d: "M633.94482421875,20.639141082763672s.3070068359375,7.776758193969727,2.04058837890625,13.860149383544922c.7750244140625,2.719650268554688,2.52484130859375,5.375648498535156,6.968505859375,6.935218811035156s2.17791748046875.667522430419922,2.17791748046875.667522430419922" },
  { kind: "path", paint: "stroke", strokeWidth: 2, d: "M812.15985107421875,113.416969299316406s2.74481201171875,4.389785766601562,4.83026123046875,6.797096252441406,4.86871337890625,4.326057434082031,6.69183349609375,5.398460388183594,3.5252685546875,6.358970642089844,3.5252685546875,6.358970642089844" },
];

export const RAIL_RIGHT: GamepadGeom[] = [
  { kind: "polyline", paint: "stroke", strokeWidth: 2, points: "584.23089599609375 51.718616485595703 585.79669189453125 71.131202697753906 583.913818359375 600.78106689453125" },
  { kind: "polyline", paint: "stroke", strokeWidth: 3, points: "585.79669189453125 71.131202697753906 603.46087646484375 71.131202697753906 596.485595703125 50.451766967773438" },
];

/** [cap, inner, highlight, ring, well] */
export const RIGHT_STICK: GamepadGeom[] = [
  { kind: "path", paint: "stroke", strokeWidth: 2, d: "M705.06982421875,443.334075927734375c-24.6722412109375,0-44.74456787109375-18.640655517578125-44.74456787109375-41.553131103515625,0-22.912689208984375,20.072265625-41.553375244140625,44.74456787109375-41.553375244140625s44.74456787109375,18.64068603515625,44.74456787109375,41.553375244140625c0,22.9124755859375-20.072265625,41.553131103515625-44.74456787109375,41.553131103515625Z" },
  { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 705.06982421875, cy: 406.242279052734375, rx: 30.0360107421875, ry: 26.844696044921875 },
  { kind: "path", paint: "stroke", strokeWidth: 2, d: "M676.42742919921875,369.52801513671875c-.6351318359375-2.996826171875,12.19488525390625-15.5576171875,27.6614990234375-15.5576171875s28.12469482421875,9.81500244140625,28.12469482421875,15.3594970703125" },
  { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 705.06982421875, cy: 394.63330078125, rx: 50.59356689453125, ry: 48.76324462890625 },
  { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 705.06982421875, cy: 387.857421875, rx: 57.60394287109375, ry: 55.520019531250007 },
];

export const PLUS: GamepadGeom[] = [
  { kind: "polygon", paint: "stroke", strokeWidth: 2, points: "653.86798095703125 105.753700256347656 653.86798095703125 115.80059814453125 639.90533447265625 115.80059814453125 639.90533447265625 128.576766967773438 631.24285888671875 128.576766967773438 631.24285888671875 115.80059814453125 618.84246826171875 115.80059814453125 618.84246826171875 105.753700256347656 631.24285888671875 105.753700256347656 631.24285888671875 93.056716918945312 639.90533447265625 93.056716918945312 639.90533447265625 105.753700256347656 653.86798095703125 105.753700256347656" },
  { kind: "polyline", paint: "stroke", strokeWidth: 2, points: "618.84246826171875 105.521476745605469 618.84246826171875 102.743934631347656 631.24285888671875 102.743934631347656 631.24285888671875 90.046951293945312 639.90533447265625 90.046951293945312 639.90533447265625 102.743934631347656 653.86798095703125 102.743934631347656 653.86798095703125 105.521476745605469" },
];

/** Physical X (top) */
export const FACE_X: GamepadGeom[] = [
  { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 707.63134765625, cy: 163.347686767578125, rx: 24.080322265625, ry: 21.807891845703125 },
  { kind: "path", paint: "stroke", strokeWidth: 2, d: "M707.487548828125,185.236251831054688c-14.542236328125,0-26.33099365234375-10.676300048828125-26.33099365234375-23.84619140625s11.788818359375-23.846176147460938,26.33099365234375-23.846176147460938c14.542236328125,0,26.33099365234375,10.676300048828125,26.33099365234375,23.846176147460938s-11.788818359375,23.84619140625-26.33099365234375,23.84619140625" },
  { kind: "path", paint: "fill", d: "M714.6466064453125,151.35931396484375l-7.02764892578125,10.148468017578125-5.8631591796875-9.56622314453125h-3.49346923828125l6.4395751953125,12.541488647460938-.58221435546875.582244873046875-7.6331787109375,10.165939331054688h4.657958984375l5.85736083984375-7.761276245117188,5.886474609375,7.761276245117188h4.07568359375l-7.03350830078125-10.7481689453125,8.82098388671875-13.123733520507812h-4.10479736328125l-.00006103515625-.000015258789062Z" },
];

/** Physical Y (left) */
export const FACE_Y: GamepadGeom[] = [
  { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 651.97607421875, cy: 211.659957885742188, rx: 24.080322265625, ry: 21.807891845703125 },
  { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 651.83221435546875, cy: 209.702316284179688, rx: 26.33099365234375, ry: 23.84619140625 },
  { kind: "path", paint: "fill", d: "M646.2939453125,199.981460571289062l5.43756103515625,12.181869506835938,8.14825439453125-12.732650756835938h3.77984619140625l-10.3243408203125,17.165863037109375v7.754058837890625h-3.77984619140625v-8.31024169921875l-7.08453369140625-16.05889892578125h3.82305908203125Z" },
];

/** Physical B (bottom) */
export const FACE_B: GamepadGeom[] = [
  { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 706.5601806640625, cy: 260.40643310546875, rx: 24.080322265625, ry: 21.807891845703125 },
  { kind: "path", paint: "stroke", strokeWidth: 2, d: "M706.4163818359375,282.29498291015625c-14.542236328125,0-26.33099365234375-10.676300048828125-26.33099365234375-23.84619140625,0-13.169876098632812,11.788818359375-23.84619140625,26.33099365234375-23.84619140625,14.542236328125,0,26.33099365234375,10.676300048828125,26.33099365234375,23.84619140625,0,13.16986083984375-11.788818359375,23.84619140625-26.33099365234375,23.84619140625" },
  { kind: "path", paint: "fill", d: "M711.25262451171875,259.27783203125s5.52874755859375-4.249557495117188,2.71014404296875-9.68072509765625c-1.6640625-1.73992919921875-6.27679443359375-1.729095458984375-14.67828369140625-.878097534179688l-.51495361328125,23.795333862304688s6.55859375.856414794921875,11.45318603515625-1.669464111328125,8.57501220703125-8.276885986328125,1.0299072265625-11.567047119140625ZM703.62078857421875,252.610809326171875c7.10064697265625-1.084075927734375,6.57489013671875,2.119354248046875,6.57489013671875,2.119354248046875,0,5.268585205078125-7.08984375,3.886383056640625-7.08984375,3.886383056640625l.51495361328125-6.005752563476562v.000015258789062ZM711.29058837890625,265.28900146484375c-.85101318359375,3.864715576171875-8.72674560546875,4.4447021484375-8.72674560546875,4.4447021484375l.54205322265625-7.225311279296875c8.54791259765625-1.22503662109375,8.1846923828125,2.780609130859375,8.1846923828125,2.780609130859375v.000030517578125-.000030517578125Z" },
];

/** Physical A (right) */
export const FACE_A: GamepadGeom[] = [
  { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 761.70849609375, cy: 210.971038818359375, rx: 24.080322265625, ry: 21.807891845703125 },
  { kind: "path", paint: "stroke", strokeWidth: 2, d: "M761.564697265625,232.859588623046875c-14.542236328125,0-26.33099365234375-10.676300048828125-26.33099365234375-23.84619140625,0-13.169876098632812,11.788818359375-23.84619140625,26.33099365234375-23.84619140625,14.542236328125,0,26.33099365234375,10.676300048828125,26.33099365234375,23.84619140625,0,13.169876098632812-11.788818359375,23.84619140625-26.33099365234375,23.84619140625" },
  { kind: "path", paint: "fill", d: "M760.3472900390625,199.314315795898438l-9.81732177734375,23.906326293945312h3.2525634765625s1.1275634765625-2.439422607421875,2.5640869140625-5.5618896484375h10.55999755859375l1.62628173828125,4.445175170898438h4.33673095703125l-8.18023681640625-22.767929077148438-4.3421630859375-.021682739257812h.00006103515625ZM765.96337890625,214.791091918945312h-8.25067138671875v-.048782348632812l4.808349609375-10.408203125,3.3609619140625,10.272674560546875c.0433349609375.048782348632812.05963134765625.108413696289062.081298828125.184310913085938h.00006103515625Z" },
];

export const HOME: GamepadGeom[] = [
  { kind: "path", paint: "stroke", strokeWidth: 2, d: "M668.8114013671875,524.11053466796875c13.97686767578125-3.59539794921875,22.72589111328125-16.91119384765625,19.56219482421875-29.741302490234375s-17.08660888671875-20.304229736328125-31.02972412109375-16.708831787109375-22.7191162109375,16.917938232421875-19.56219482421875,29.741302490234375c3.15692138671875,12.823333740234375,17.0595703125,20.304229736328125,31.02972412109375,16.708831787109375Z" },
  { kind: "path", paint: "stroke", strokeWidth: 2, d: "M669.000244140625,523.46295166015625c12.6884765625-3.2716064453125,20.6280517578125-15.40692138671875,17.7274169921875-27.103759765625-2.90057373046875-11.69683837890625-15.51483154296875-18.536865234375-28.237060546875-15.2652587890625-12.72216796875,3.2716064453125-20.6280517578125,15.400177001953125-17.7274169921875,27.103759765625,2.90057373046875,11.70361328125,15.54180908203125,18.5301513671875,28.237060546875,15.2652587890625Z" },
  { kind: "path", paint: "fill", d: "M679.10211181640625,499.706512451171875l-5.90899658203125-4.818145751953125-9.313232421875-6.4703369140625-13.738525390625,9.814178466796875c-.45452880859375.3245849609375-1.31646728515625,1.6806640625-1.3841552734375,2.11065673828125-.07220458984375.45733642578125.2491455078125.784332275390625.6807861328125.802398681640625l2.40435791015625.10015869140625.349853515625,12.3507080078125,23.31500244140625.22064208984375.322509765625-12.37469482421875,3.17315673828125-.2691650390625c.32220458984375-.027374267578125.15740966796875-.703643798828125.09930419921875-1.466400146484375h-.00006103515625ZM658.814697265625,508.14105224609375l-.07562255859375-7.823455810546875,9.9866943359375.041046142578125.29852294921875,7.838531494140625-10.2095947265625-.05615234375v.000030517578125Z" },
];

export const L_BUTTON: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M409.7393798828125,26.082656860351562s1.222808837890625,7.788951873779297-.839141845703125,11.957588195800781-10.84326171875,8.184471130371094-27.532501220703125,7.847846984863281-38.8468017578125-1.11920166015625-52.080291748046875,2.374099731445312-43.545745849609375,14.818717956542969-55.778167724609375,25.17999267578125-27.224044799804688,27.60595703125-32.385940551757812,35.009765625-3.283172607421875,4.690994262695312-3.283172607421875,4.690994262695312l-7.88214111328125-2.695587158203125s17.509307861328125-29.475013732910156,34.071365356445312-41.125259399414062c16.56207275390625-11.650245666503906,37.2427978515625-22.606044769287109,47.15252685546875-25.823482513427734s26.339874267578125-7.666534423828125,40.729736328125-7.983814239501953c14.389892578125-.317279815673828,29.23785400390625-.425468444824219,38.58349609375-1.193378448486328s14.9434814453125-1.638980865478516,16.5509033203125-7.084476470947266c0,0,1.893707275390625-4.607303619384766,1.459075927734375-5.931156158447266s-2.256805419921875-2.220256805419922-12.439788818359375-1.878545761108398-28.498687744140625.303871154785156-39.638458251953125.937870025634766-25.57904052734375,2.618518829345703-38.2716064453125,6.072431564331055c0,0-13.463409423828125,4.47117805480957-16.74383544921875,6.043048858642578-3.280426025390625,1.571868896484375-16.9488525390625,8.269397735595703-21.8011474609375,11.071426391601562s-11.1397705078125,6.834213256835938-13.736785888671875,8.816135406494141" };

export const BODY_LEFT: GamepadGeom[] = [
  { kind: "path", paint: "stroke", strokeWidth: 3, d: "M466.086151123046875,600.507080078125c-.331451416015625-.00927734375-10.361175537109375-.0775146484375-10.361175537109375-.0775146484375l.13397216796875,33.27691650390625-.624176025390625,16.57147216796875c-.06732177734375,1.78692626953125-.84039306640625,4.014892578125-1.7203369140625,5.88702392578125l-67.965972900390625-.1478271484375-14.16046142578125-.786376953125c-26.8846435546875-2.70489501953125-52.45819091796875-10.42022705078125-75.3951416015625-24.72900390625-39.83001708984375-24.84716796875-65.690689086914062-65.48602294921875-67.454833984375-112.65325927734375l-.767181396484375-20.511810302734375-.80364990234375-22.856689453125-.853790283203125-25.684814453125-.612350463867188-16.719482421875-.293975830078125-8.021209716796875-2.947860717773438-87.9898681640625-.822921752929688-19.80706787109375-.890579223632812-27.16510009765625-.60601806640625-18.8985595703125-.85174560546875-25.216812133789062-.782028198242188-23.357711791992188-.869918823242188-20.76422119140625-.416152954101562-16.3153076171875c-.653961181640625-25.638214111328125,3.11859130859375-50.490768432617188,12.938186645507812-74.092582702636719-1.795455932617188-2.032379150390625-2.876419067382812-4.587921142578125-2.276809692382812-6.889068603515625,1.281829833984375-4.919319152832031,2.313095092773438-9.855751037597656,4.7532958984375-14.234458923339844,8.352890014648438-14.988441467285156,19.816482543945312-27.258743286132812,33.489913940429688-37.571342468261719,8.53314208984375-12.216461181640625,18.690399169921875-22.406028747558594,31.6846923828125-29.943378448486328,24.568328857421875-14.2508544921875,46.931060791015625-17.689556121826172,75.033599853515625-18.233757019042969,9.866119384765625-.191056251525879,19.571441650390625,1.515433788299561,28.174468994140625,5.717433929443359,6.638916015625,3.242653846740723,8.9385986328125,17.07618522644043,8.736968994140625,15.921897888183594,1.811798095703125-3.07000732421875,3.2890625-4.843395233154297,6.501007080078125-4.849571228027344l28.536346435546875-.054868698120117c5.346771240234375-.010280609130859,8.7073974609375,3.153087615966797,8.828338623046875,8.563459396362305l-.308990478515625,22.419731140136719,12.658233642578125.151153564453125c3.48089599609375.04156494140625,5.575653076171875,3.41119384765625,5.603607177734375,6.599441528320312l.29669189453125,62.729736328125-6.12847900390625,12.89697265625,6.48724365234375,8.206405639648438.12982177734375,84.234054565429688-6.071807861328125,9.037506103515625,6.634033203125,9.21270751953125.32489013671875,166.2012939453125-6.4896240234375,12.59228515625,6.90167236328125,7.2412109375.055023193359375,83.77923583984375-6.469757080078125,6.59967041015625,6.77099609375,23.114013671875-1.320556640625,52.2774658203125c-.19720458984375,3.289306640625-2.498291015625,4.45013427734375-6.406646728515625,4.3404541015625l-.00006103515625.0001220703125Z" },
  { kind: "line", paint: "stroke", strokeWidth: 2, x1: 453.514434814453125, y1: 656.16497802734375, x2: 445.006988525390625, y2: 53.685787200927734 },
  { kind: "path", paint: "stroke", strokeWidth: 2, d: "M217.01983642578125,184.539932250976562s-2.643051147460938-23.314727783203125,18.949722290039062-58.800376892089844c8.22210693359375-13.51214599609375,27.025436401367188-43.08807373046875,75.594772338867188-63.014865875244141,22.07562255859375-9.057086944580078,77.65069580078125-7.821281433105469,77.65069580078125-7.821281433105469l55.569549560546875.438087463378906,4.47613525390625-33.319240570068359" },
  { kind: "path", paint: "stroke", strokeWidth: 2, d: "M416.05517578125,20.365110397338867s-.3070068359375,7.776758193969727-2.04058837890625,13.860151290893555c-.7750244140625,2.719654083251953-2.52484130859375,5.375648498535156-6.968475341796875,6.935218811035156-4.44366455078125,1.5595703125-2.177947998046875.667522430419922-2.177947998046875.667522430419922" },
  { kind: "path", paint: "stroke", strokeWidth: 2, d: "M237.840179443359375,113.1429443359375s-2.744796752929688,4.389785766601562-4.830245971679688,6.797096252441406-4.868728637695312,4.326057434082031-6.691818237304688,5.398460388183594-3.525283813476562,6.358963012695312-3.525283813476562,6.358963012695312" },
];

export const RAIL_LEFT: GamepadGeom[] = [
  { kind: "polyline", paint: "stroke", strokeWidth: 2, points: "465.769134521484375 51.444587707519531 464.20330810546875 70.857170104980469 466.086151123046875 600.507080078125" },
  { kind: "polyline", paint: "stroke", strokeWidth: 3, points: "464.20330810546875 70.857170104980469 446.53912353515625 70.857170104980469 453.514434814453125 50.177738189697266" },
];

/** [cap, inner, highlight, ring, well] */
export const LEFT_STICK: GamepadGeom[] = [
  { kind: "path", paint: "stroke", strokeWidth: 2, d: "M343.099822998046875,265.0296630859375c24.672271728515625,0,44.744537353515625-18.640655517578125,44.744537353515625-41.553131103515625,0-22.912704467773438-20.072265625-41.553375244140625-44.744537353515625-41.553375244140625s-44.744537353515625,18.640670776367188-44.744537353515625,41.553375244140625c0,22.912490844726562,20.072265625,41.553131103515625,44.744537353515625,41.553131103515625Z" },
  { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 343.099822998046875, cy: 227.937896728515625, rx: 30.036041259765621, ry: 26.844680786132812 },
  { kind: "path", paint: "stroke", strokeWidth: 2, d: "M371.74224853515625,191.223617553710938c.6351318359375-2.996841430664062-12.194915771484375-15.5576171875-27.6614990234375-15.5576171875s-28.12469482421875,9.81500244140625-28.12469482421875,15.3594970703125" },
  { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 343.099822998046875, cy: 216.328903198242188, rx: 50.59356689453125, ry: 48.763259887695312 },
  { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 343.099822998046875, cy: 209.553024291992188, rx: 57.60394287109375, ry: 55.520004272460938 },
];

/** Socket behind the cap, sized like Xbox (~r 34.7) so the carved cap reveals the hole when it moves. */
export const STICK_LEFT_SOCKET = { cx: 343.1, cy: 209.62, r: 34.7 };
export const STICK_RIGHT_SOCKET = { cx: 705.07, cy: 387.93, r: 34.7 };

export const DPAD_UP: GamepadGeom[] = [
  { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 345.31011962890625, cy: 338.752044677734375, rx: 24.080322265625, ry: 21.807891845703125 },
  { kind: "path", paint: "stroke", strokeWidth: 2, d: "M345.45391845703125,360.640594482421875c14.542236328125,0,26.330963134765625-10.676300048828125,26.330963134765625-23.84619140625s-11.788787841796875-23.84619140625-26.330963134765625-23.84619140625c-14.542236328125,0-26.330963134765625,10.676300048828125-26.330963134765625,23.84619140625,0,13.16986083984375,11.788787841796875,23.84619140625,26.330963134765625,23.84619140625" },
  { kind: "polygon", paint: "fill", points: "345.240631103515625 329.26300048828125 356.854522705078125 346.93865966796875 333.62677001953125 346.93865966796875 345.240631103515625 329.26300048828125" },
];

export const DPAD_RIGHT: GamepadGeom[] = [
  { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 400.965423583984375, cy: 387.064300537109375, rx: 24.080322265625, ry: 21.807891845703125 },
  { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 401.1092529296875, cy: 385.106658935546875, rx: 26.330963134765625, ry: 23.84619140625 },
  { kind: "polygon", paint: "fill", points: "411.76416015625 387.701904296875 394.0885009765625 376.088043212890625 394.0885009765625 399.3157958984375 411.76416015625 387.701904296875" },
];

export const DPAD_DOWN: GamepadGeom[] = [
  { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 346.381317138671875, cy: 435.810760498046875, rx: 24.080322265625, ry: 21.807891845703125 },
  { kind: "path", paint: "stroke", strokeWidth: 2, d: "M346.525115966796875,457.699310302734375c14.542236328125,0,26.330963134765625-10.676300048828125,26.330963134765625-23.84619140625,0-13.16986083984375-11.788787841796875-23.84619140625-26.330963134765625-23.84619140625-14.542236328125,0-26.330963134765625,10.676300048828125-26.330963134765625,23.84619140625,0,13.16986083984375,11.788787841796875,23.84619140625,26.330963134765625,23.84619140625" },
  { kind: "polygon", paint: "fill", points: "346.829193115234375 446.746795654296875 358.44305419921875 429.0711669921875 335.21533203125 429.0711669921875 346.829193115234375 446.746795654296875" },
];

export const DPAD_LEFT: GamepadGeom[] = [
  { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 291.233001708984375, cy: 386.375396728515625, rx: 24.080322265625, ry: 21.807891845703125 },
  { kind: "path", paint: "stroke", strokeWidth: 2, d: "M291.376800537109375,408.263946533203125c14.542236328125,0,26.330963134765625-10.676300048828125,26.330963134765625-23.84619140625,0-13.16986083984375-11.788787841796875-23.84619140625-26.330963134765625-23.84619140625-14.542236328125,0-26.330963134765625,10.676300048828125-26.330963134765625,23.84619140625,0,13.16986083984375,11.788787841796875,23.84619140625,26.330963134765625,23.84619140625" },
  { kind: "polygon", paint: "fill", points: "280.67962646484375 387.064300537109375 298.35528564453125 398.67816162109375 298.35528564453125 375.450408935546875 280.67962646484375 387.064300537109375" },
];

/** Decoration; no binding slot */
export const CAPTURE: GamepadGeom[] = [
  { kind: "path", paint: "stroke", strokeWidth: 2, d: "M373.988555908203125,519.715576171875h28.132171630859375c2.965789794921875,0,5.370025634765625-2.40423583984375,5.370025634765625-5.3699951171875v-25.174774169921875c0-2.965789794921875-2.40423583984375-5.370025634765625-5.370025634765625-5.370025634765625h-28.132171630859375c-2.965789794921875,0-5.370025634765625,2.40423583984375-5.370025634765625,5.370025634765625v25.174774169921875c0,2.96575927734375,2.40423583984375,5.3699951171875,5.370025634765625,5.3699951171875ZM373.88507080078125,519.72918701171875h28.132171630859375c2.965789794921875,0,5.370025634765625-2.40423583984375,5.370025634765625-5.3699951171875v-28.132171630859375c0-2.965789794921875-2.40423583984375-5.370025634765625-5.370025634765625-5.370025634765625h-28.132171630859375c-2.965789794921875,0-5.370025634765625,2.40423583984375-5.370025634765625,5.370025634765625v28.132171630859375c0,2.96575927734375,2.40423583984375,5.3699951171875,5.370025634765625,5.3699951171875Z" },
  { kind: "ellipse", paint: "stroke", strokeWidth: 4, cx: 388.69573974609375, cy: 501.100578308105469, rx: 12.424316406252622, ry: 11.743293762207031 },
];

export const MINUS: GamepadGeom[] = [
  { kind: "rect", paint: "stroke", strokeWidth: 2, x: 396.115234375, y: 105.406425476074219, width: 35.025482177734375, height: 10.046897888183594 },
  { kind: "rect", paint: "stroke", strokeWidth: 2, x: 396.115234375, y: 102.326187133789062, width: 35.025482177734375, height: 13.12713623046875 },
];

export const PRESS_STICK_LEFT: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M342.142269192011554,265.0296630859375c24.672271728515625,0,44.744537353515625-18.640655517578125,44.744537353515625-41.553131103515625,0-22.912704467773438-20.072265625-41.553375244140625-44.744537353515625-41.553375244140625s-44.744537353515625,18.640670776367188-44.744537353515625,41.553375244140625c0,22.912490844726562,20.072265625,41.553131103515625,44.744537353515625,41.553131103515625Z" };

export const PRESS_DPAD_UP: GamepadGeom = { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 345.45391845703125, cy: 338.752044677734375, rx: 24.080322265625, ry: 21.807891845703125 };

export const PRESS_DPAD_RIGHT: GamepadGeom = { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 401.1092529296875, cy: 387.064300537109375, rx: 24.080322265625, ry: 21.807891845703125 };

export const PRESS_DPAD_DOWN: GamepadGeom = { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 346.381317138671875, cy: 435.810760498046875, rx: 24.080322265625, ry: 21.807891845703125 };

export const PRESS_DPAD_LEFT: GamepadGeom = { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 291.233001708984375, cy: 386.375396728515625, rx: 24.080322265625, ry: 21.807891845703125 };

export const PRESS_STICK_RIGHT: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M706.592700900760974,360.154632568359375c-24.672271728515625,0-44.744537353515625,18.640655517578125-44.744537353515625,41.553131103515625,0,22.912704467773438,20.072265625,41.553375244140625,44.744537353515625,41.553375244140625,24.672271728517444,0,44.744537353517444-18.640670776367188,44.744537353517444-41.553375244140625-.000000000001819-22.912490844726562-20.072265625-41.553131103515625-44.744537353517444-41.553131103515625Z" };

/** Physical B → binding a */
export const PRESS_B: GamepadGeom = { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 707.133590698242188, cy: 259.986724099554522, rx: 24.080322265625, ry: 21.807891845703125 };

/** Physical Y → binding x */
export const PRESS_Y: GamepadGeom = { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 651.478256225585938, cy: 211.674468240179522, rx: 24.080322265625, ry: 21.807891845703125 };

/** Physical X → binding y */
export const PRESS_X: GamepadGeom = { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 707.487548828125, cy: 163.295272827148438, rx: 24.080322265625, ry: 21.807891845703125 };

/** Physical A → binding b */
export const PRESS_A: GamepadGeom = { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 761.838043212890625, cy: 210.971038818359375, rx: 24.080322265625, ry: 21.807891845703125 };

/** Decoration */
export const PRESS_CAPTURE: GamepadGeom = { kind: "rect", paint: "stroke", strokeWidth: 2, rx: 5.3699951171875, ry: 5.3699951171875, x: 368.6185302734375, y: 483.80078125, width: 38.872222900390625, height: 35.914794921875 };

export const PRESS_HOME: GamepadGeom = { kind: "ellipse", paint: "stroke", strokeWidth: 2, cx: 664.592118231203131, cy: 502.50577603699594, rx: 24.428219707175231, ry: 22.229517617710826 };

export const PRESS_PLUS: GamepadGeom = { kind: "polygon", paint: "stroke", strokeWidth: 2, points: "653.86798095703125 105.753700256347656 653.86798095703125 115.80059814453125 639.90533447265625 115.80059814453125 639.90533447265625 128.576766967773438 631.24285888671875 128.576766967773438 631.24285888671875 115.80059814453125 618.84246826171875 115.80059814453125 618.84246826171875 105.753700256347656 631.24285888671875 105.753700256347656 631.24285888671875 93.056716918945312 639.90533447265625 93.056716918945312 639.90533447265625 105.753700256347656 653.86798095703125 105.753700256347656" };

export const PRESS_MINUS: GamepadGeom = { kind: "rect", paint: "stroke", strokeWidth: 2, x: 396.115234375, y: 105.406425476074219, width: 35.025482177734375, height: 10.046897888183594 };

export const PRESS_L: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M407.739545845989596,20.365110397338867h-20.846708516245599s-41.080035771534313.148488171624194-58.615693327878034,4.242564315880372c-15.64083981771455,3.651690218521253-31.507264208347806,9.990997615739616-38.95059978781228,13.839030090402957s-26.054756539186201,16.338220597663167-29.669407113890884,19.808285149378207-15.320506395637494,12.422953090608644-21.816957656803424,22.844591632128868-7.882156372070312,16.771978666626637-7.882156372070312,16.771978666626637c0,0-2.1676361452528,4.601130908356936-1.820638982545461,7.53486522431831s1.820638982545461,2.441570361865161,1.820638982545461,2.441570361865161l1.938597615146136,2.581878582226636,5.942988800533385,2.713870930633675s4.661988470814322-8.362281364424234,11.957324571390018-17.084646118587443c11.239097721329927-13.437559076322941,26.29760123773849-25.444969588180356,36.385057840574518-31.259856500083515,13.309876533749957-7.672442113246689,41.547060983723895-16.844552882897915,48.289023591298246-17.961680407990571,14.283372501537997-2.366721606359533,41.999358287371251-.738245188342262,43.451353465749889-1.022193791219252s18.582082734328651.490721923085403,23.980441220476678-2.617115764476694,7.583727193341474-6.170041463888992,7.61715990896937-7.617343995278134c.219409797385197-9.49825191281252-1.780424239437707-15.215798375825216-1.780424239437707-15.215798375825216Z" };

export const PRESS_ZL: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M406.791973940576099,18.701564106316255s-32.884973898887438.41952629676598-42.29649841540504.65265841974815-23.25200174668953,1.340370301395524-35.431621709240972,3.776294293906176-26.02009719272337,8.093023753965099-26.02009719272337,8.093023753965099c0,0-22.144763568276176,10.840749096910258-27.570230642502793,13.941015996469105s-6.089809981274811,3.875333624448103-6.089809981274811,3.875333624448103c0,0,2.878819263875812-4.282866736442884,5.204019438544492-6.957919444321305s14.172648683696025-13.636710674174537,14.172648683696025-13.636710674174537c0,0,15.720949348570684-10.694337345660642,21.276217271381029-13.026996786241398s24.359610164309743-8.252019746812948,30.333176464600911-9.158282410043284,20.453294438808371-2.414096000135942,27.32766876063215-2.555248214011954,17.392659025382272,1.045630392241947,20.825097378465216,1.931420934973175,10.075867423565796,3.432438353082944,10.075867423565796,3.432438353082944c0,0,5.335266483304622,2.746951851491758,5.692190978976214,3.231488235036522s2.39064772344409,2.304702657032976,2.501371541285152,6.401483917163205Z" };

export const PRESS_R: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M642.550577527959831,20.506790349365474h20.846708516244689s41.080035771534313.148488171624194,58.615693327878034,4.242564315880372c15.640839817713641,3.651690218521253,31.507264208348715,9.990997615739616,38.950599787813189,13.839030090402957,7.443335579462655,3.848032474663341,26.054756539184382,16.338220597663167,29.669407113889974,19.808285149378207s15.320506395637494,12.422953090608644,21.816957656803424,22.844591632128868,7.882156372070312,16.771978666626637,7.882156372070312,16.771978666626637c0,0,2.16763614525189,4.601130908356936,1.82063898254637,7.53486522431831-.346997162709158,2.933734315961374-1.82063898254637,2.441570361865161-1.82063898254637,2.441570361865161l-1.938597615146136,2.581878582226636-5.942988800532476,2.713870930633675s-4.661988470816141-8.362281364424234-11.957324571390927-17.084646118587443c-11.239097721329017-13.437559076322941-26.29760123773849-25.444969588180356-36.385057840574518-31.259856500083515-13.309876533749048-7.672442113246689-41.547060983724805-16.844552882897915-48.289023591298246-17.961680407990571-14.283372501538906-2.366721606359533-41.999358287370342-.738245188342262-43.451353465750799-1.022193791219252-1.451995178376819-.28394860287699-18.582082734326832.490721923085403-23.980441220475768-2.617115764476694s-7.583727193341474-6.170041463888992-7.617159908968461-7.617343995278134c-.219409797386106-9.49825191281252,1.780424239437707-15.215798375825216,1.780424239437707-15.215798375825216Z" };

export const PRESS_ZR: GamepadGeom = { kind: "path", paint: "stroke", strokeWidth: 2, d: "M643.395165675272438,19.20750447663886s32.987957656987419.055265878469982,42.399482173505021.288398001452151,23.252001746690439,1.340370301395524,35.431621709240062,3.776294293906176c12.179619962553261,2.435923992510652,26.020097192724279,8.093023753965099,26.020097192724279,8.093023753965099,0,0,21.682881916236511,10.731248547886935,27.108348990463128,13.831515447445781s6.691426836920073,4.602580432841933,6.691426836920073,4.602580432841933c.44537353515625-.1563720703125-2.7943115234375-4.9793701171875-5.34375-7.57568359375-2.4832763671875-2.5289306640625-14.172653325846113-13.636692784116349-14.172653325846113-13.636692784116349,0,0-15.720949348569775-10.694337345660642-21.276217271381029-13.026996786241398s-24.359610164310652-8.252019746812948-30.333176464600911-9.158282410043284-20.453294438808371-2.414096000135942-27.32766876063215-2.555248214011954-17.392659025381363,1.045630392241947-20.825097378465216,1.931420934973175-10.075867423565796,3.432438353082944-10.075867423565796,3.432438353082944c0,0-5.335266483303712,2.746951851491758-5.692190978976214,3.231488235036522s-2.493631481544071,2.668963075328975-2.604355299385134,6.765744335459203Z" };