@felfhenor/ui 0.1.1 → 0.2.0

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.
@@ -1,8 +1,9 @@
1
+ import { FF_DIRECTIONS, FF_GAMEPAD_PRIORITY, ffActionDispatch, ffActionForButton, ffActionMap, ffActivePrompts, ffAxesActive, ffButtonsJustPressed, ffButtonsJustReleased, ffControllerFamily, ffCreateGlyphElement, ffCycleStep, ffGamepadMayTakeInput, ffGamepadSnapshot, ffGlyph, ffGroupSelectOptions, ffHeldDirection, ffHotkeyMatches, ffIsPageVisible, ffModalClose, ffModalCloseTop, ffModalIsOpen, ffModalIsTopmost, ffModalOpen, ffNearestControlLabel, ffNearestInDirection, ffNearestTo, ffReducedMotionSignal, ffRepeatFires, ffSelectSearchMatches, ffSelectSearchTextDefault, ffSelectTitleFromPlaceholder, ffSpotlightCalloutPosition, ffSpotlightTargetRegister, ffSpotlightTargetUnregister, ffSpriteFrameDefault, ffStepNumber, ffStickVector, ffTitleCase, ffTranslateDefault } from "@felfhenor/ui/core";
1
2
  import * as i0 from "@angular/core";
2
3
  import { ChangeDetectionStrategy, Component, DestroyRef, Directive, ElementRef, Injectable, InjectionToken, Injector, LOCALE_ID, Pipe, TemplateRef, ViewContainerRef, afterNextRender, afterRenderEffect, booleanAttribute, computed, contentChildren, effect, forwardRef, inject, input, linkedSignal, output, signal, untracked, viewChild } from "@angular/core";
3
- import { clamp, get, sortBy } from "es-toolkit/compat";
4
4
  import { DecimalPipe, NgClass, NgTemplateOutlet, formatNumber } from "@angular/common";
5
5
  import { animate } from "animejs";
6
+ import { clamp, sortBy } from "es-toolkit/compat";
6
7
  import { TippyDirective, TippyService } from "@ngneat/helipopper";
7
8
  import { HotkeysService } from "@ngneat/hotkeys";
8
9
  import { tablerChevronDown, tablerChevronLeft, tablerChevronRight, tablerExclamationCircle, tablerExternalLink, tablerHelpCircle, tablerInfoCircle, tablerX } from "@ng-icons/tabler-icons";
@@ -11,6 +12,7 @@ import { hostBinding } from "ngxtension/host-binding";
11
12
  import { NgSelectComponent } from "@ng-select/ng-select";
12
13
  import { SweetAlert2LoaderService } from "@sweetalert2/ngx-sweetalert2";
13
14
  import { CdkDrag } from "@angular/cdk/drag-drop";
15
+ export * from "@felfhenor/ui/core";
14
16
  var FFAlertComponent = class FFAlertComponent {
15
17
  color = input("info", ...ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []);
16
18
  role = input("alert", ...ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []);
@@ -100,50 +102,6 @@ i0.ɵɵngDeclareClassMetadata({
100
102
  }]
101
103
  }
102
104
  });
103
- const FF_PLACEHOLDER_PATTERN = /\{\{\s*([\w.]+)\s*\}\}/g;
104
- const FF_I18N_DEFAULTS = {
105
- "gamepad.adjust": "Adjust",
106
- "gamepad.back": "Back",
107
- "gamepad.cancel": "Cancel",
108
- "gamepad.choose": "Choose",
109
- "gamepad.drop": "Drop",
110
- "gamepad.edit": "Edit",
111
- "gamepad.move": "Move",
112
- "gamepad.none": "None",
113
- "gamepad.page": "Page",
114
- "gamepad.select": "Select",
115
- "gamepad.type": "Type",
116
- "numberPopup.done": "Done",
117
- "ffTriggerTabsDirective.switchTab": "Switch Tab",
118
- "gamepad.close": "Close",
119
- "pagePagedGrid.previousPage": "Previous Page",
120
- "pagePagedGrid.nextPage": "Next Page",
121
- "pagePagedGrid.page": "Page",
122
- "pagePagedGrid.page2": "Page {{ page }} / {{ totalPages }}",
123
- "pagePagedGrid.searchByNameOr": "Search by name or description...",
124
- "pagePagedGrid.noResultsFound": "No results found.",
125
- "gamepad.confirm": "Confirm",
126
- "gamepad.inspect": "Inspect",
127
- "gamepad.browse": "Browse"
128
- };
129
- function ffFillPlaceholders(template, params = {}) {
130
- return template.replace(FF_PLACEHOLDER_PATTERN, (match, key) => key in params ? String(params[key] ?? "") : match);
131
- }
132
- function ffTranslateDefault(key, params) {
133
- return ffFillPlaceholders(FF_I18N_DEFAULTS[key], params);
134
- }
135
- function ffSpriteFrameDefault() {}
136
- function ffReducedMotionSignal() {
137
- const query = matchMedia("(prefers-reduced-motion: reduce)");
138
- const reduced = signal(query.matches, ...ngDevMode ? [{ debugName: "reduced" }] : /* istanbul ignore next */ []);
139
- query.addEventListener("change", (event) => reduced.set(event.matches));
140
- return reduced.asReadonly();
141
- }
142
- function ffSelectSearchTextDefault(option, bindLabel) {
143
- if (typeof option !== "object" || option === null) return String(option ?? "");
144
- const label = bindLabel ? get(option, bindLabel) : void 0;
145
- return typeof label === "string" || typeof label === "number" ? String(label) : "";
146
- }
147
105
  const FF_ICONS = new InjectionToken("FF_ICONS", {
148
106
  providedIn: "root",
149
107
  factory: () => ({})
@@ -987,3069 +945,6 @@ i0.ɵɵngDeclareClassMetadata({
987
945
  }]
988
946
  }
989
947
  });
990
- const FF_DIRECTIONS = [
991
- "up",
992
- "down",
993
- "left",
994
- "right"
995
- ];
996
- const FF_STANDARD_BUTTON = {
997
- south: 0,
998
- east: 1,
999
- west: 2,
1000
- north: 3,
1001
- lb: 4,
1002
- rb: 5,
1003
- lt: 6,
1004
- rt: 7,
1005
- select: 8,
1006
- start: 9,
1007
- l3: 10,
1008
- r3: 11,
1009
- up: 12,
1010
- down: 13,
1011
- left: 14,
1012
- right: 15
1013
- };
1014
- const FF_DPAD_ALL_BUTTON = 99;
1015
- const B = FF_STANDARD_BUTTON;
1016
- const DEFAULT_ACTION_MAP = {
1017
- confirm: B.south,
1018
- back: B.east,
1019
- context: B.west,
1020
- details: B.north,
1021
- tabPrev: B.lb,
1022
- tabNext: B.rb,
1023
- subPrev: B.lt,
1024
- subNext: B.rt,
1025
- pause: B.select,
1026
- menu: B.start,
1027
- rightStick: B.r3,
1028
- leftStick: B.l3,
1029
- up: B.up,
1030
- down: B.down,
1031
- left: B.left,
1032
- right: B.right,
1033
- dpad: 99
1034
- };
1035
- const NINTENDO_FACE = {
1036
- confirm: B.east,
1037
- back: B.south,
1038
- context: B.north,
1039
- details: B.west
1040
- };
1041
- const FAMILY_OVERRIDES = {
1042
- switch: NINTENDO_FACE,
1043
- switch2: NINTENDO_FACE
1044
- };
1045
- function ffActionMap(family) {
1046
- return {
1047
- ...DEFAULT_ACTION_MAP,
1048
- ...FAMILY_OVERRIDES[family]
1049
- };
1050
- }
1051
- function ffActionForButton(actionMap, button) {
1052
- return Object.keys(actionMap).find((action) => actionMap[action] === button);
1053
- }
1054
- const FF_GLYPH_XBOX = {
1055
- button_a: {
1056
- code: 57348,
1057
- inkHeight: 983
1058
- },
1059
- button_a_outline: {
1060
- code: 57349,
1061
- inkHeight: 983
1062
- },
1063
- button_b: {
1064
- code: 57350,
1065
- inkHeight: 983
1066
- },
1067
- button_b_outline: {
1068
- code: 57351,
1069
- inkHeight: 983
1070
- },
1071
- button_back: {
1072
- code: 57352,
1073
- inkHeight: 655
1074
- },
1075
- button_back_icon: {
1076
- code: 57353,
1077
- inkHeight: 655
1078
- },
1079
- button_back_icon_outline: {
1080
- code: 57354,
1081
- inkHeight: 655
1082
- },
1083
- button_back_outline: {
1084
- code: 57355,
1085
- inkHeight: 655
1086
- },
1087
- button_color_a: {
1088
- code: 57356,
1089
- inkHeight: 983
1090
- },
1091
- button_color_a_outline: {
1092
- code: 57357,
1093
- inkHeight: 983
1094
- },
1095
- button_color_b: {
1096
- code: 57358,
1097
- inkHeight: 983
1098
- },
1099
- button_color_b_outline: {
1100
- code: 57359,
1101
- inkHeight: 983
1102
- },
1103
- button_color_x: {
1104
- code: 57360,
1105
- inkHeight: 983
1106
- },
1107
- button_color_x_outline: {
1108
- code: 57361,
1109
- inkHeight: 983
1110
- },
1111
- button_color_y: {
1112
- code: 57362,
1113
- inkHeight: 983
1114
- },
1115
- button_color_y_outline: {
1116
- code: 57363,
1117
- inkHeight: 983
1118
- },
1119
- button_menu: {
1120
- code: 57364,
1121
- inkHeight: 983
1122
- },
1123
- button_menu_outline: {
1124
- code: 57365,
1125
- inkHeight: 983
1126
- },
1127
- button_share: {
1128
- code: 57366,
1129
- inkHeight: 655
1130
- },
1131
- button_share_outline: {
1132
- code: 57367,
1133
- inkHeight: 655
1134
- },
1135
- button_start: {
1136
- code: 57368,
1137
- inkHeight: 655
1138
- },
1139
- button_start_icon: {
1140
- code: 57369,
1141
- inkHeight: 655
1142
- },
1143
- button_start_icon_outline: {
1144
- code: 57370,
1145
- inkHeight: 655
1146
- },
1147
- button_start_outline: {
1148
- code: 57371,
1149
- inkHeight: 655
1150
- },
1151
- button_view: {
1152
- code: 57372,
1153
- inkHeight: 983
1154
- },
1155
- button_view_outline: {
1156
- code: 57373,
1157
- inkHeight: 983
1158
- },
1159
- button_x: {
1160
- code: 57374,
1161
- inkHeight: 983
1162
- },
1163
- button_x_outline: {
1164
- code: 57375,
1165
- inkHeight: 983
1166
- },
1167
- button_y: {
1168
- code: 57376,
1169
- inkHeight: 983
1170
- },
1171
- button_y_outline: {
1172
- code: 57377,
1173
- inkHeight: 983
1174
- },
1175
- controller_xbox360: {
1176
- code: 57344,
1177
- inkHeight: 683
1178
- },
1179
- controller_xbox_adaptive: {
1180
- code: 57345,
1181
- inkHeight: 492
1182
- },
1183
- controller_xboxone: {
1184
- code: 57346,
1185
- inkHeight: 696
1186
- },
1187
- controller_xboxseries: {
1188
- code: 57347,
1189
- inkHeight: 676
1190
- },
1191
- dpad: {
1192
- code: 57378,
1193
- inkHeight: 983
1194
- },
1195
- dpad_all: {
1196
- code: 57379,
1197
- inkHeight: 983
1198
- },
1199
- dpad_down: {
1200
- code: 57380,
1201
- inkHeight: 983
1202
- },
1203
- dpad_down_outline: {
1204
- code: 57381,
1205
- inkHeight: 983
1206
- },
1207
- dpad_horizontal: {
1208
- code: 57382,
1209
- inkHeight: 983
1210
- },
1211
- dpad_horizontal_outline: {
1212
- code: 57383,
1213
- inkHeight: 983
1214
- },
1215
- dpad_left: {
1216
- code: 57384,
1217
- inkHeight: 983
1218
- },
1219
- dpad_left_outline: {
1220
- code: 57385,
1221
- inkHeight: 983
1222
- },
1223
- dpad_none: {
1224
- code: 57386,
1225
- inkHeight: 983
1226
- },
1227
- dpad_right: {
1228
- code: 57387,
1229
- inkHeight: 983
1230
- },
1231
- dpad_right_outline: {
1232
- code: 57388,
1233
- inkHeight: 983
1234
- },
1235
- dpad_round: {
1236
- code: 57389,
1237
- inkHeight: 983
1238
- },
1239
- dpad_round_all: {
1240
- code: 57390,
1241
- inkHeight: 983
1242
- },
1243
- dpad_round_down: {
1244
- code: 57391,
1245
- inkHeight: 983
1246
- },
1247
- dpad_round_horizontal: {
1248
- code: 57392,
1249
- inkHeight: 983
1250
- },
1251
- dpad_round_left: {
1252
- code: 57393,
1253
- inkHeight: 983
1254
- },
1255
- dpad_round_right: {
1256
- code: 57394,
1257
- inkHeight: 983
1258
- },
1259
- dpad_round_up: {
1260
- code: 57395,
1261
- inkHeight: 983
1262
- },
1263
- dpad_round_vertical: {
1264
- code: 57396,
1265
- inkHeight: 983
1266
- },
1267
- dpad_up: {
1268
- code: 57397,
1269
- inkHeight: 983
1270
- },
1271
- dpad_up_outline: {
1272
- code: 57398,
1273
- inkHeight: 983
1274
- },
1275
- dpad_vertical: {
1276
- code: 57399,
1277
- inkHeight: 983
1278
- },
1279
- dpad_vertical_outline: {
1280
- code: 57400,
1281
- inkHeight: 983
1282
- },
1283
- elite_paddle_bottom_left: {
1284
- code: 57401,
1285
- inkHeight: 734
1286
- },
1287
- elite_paddle_bottom_left_outline: {
1288
- code: 57402,
1289
- inkHeight: 734
1290
- },
1291
- elite_paddle_bottom_right: {
1292
- code: 57403,
1293
- inkHeight: 737
1294
- },
1295
- elite_paddle_bottom_right_outline: {
1296
- code: 57404,
1297
- inkHeight: 737
1298
- },
1299
- elite_paddle_top_left: {
1300
- code: 57405,
1301
- inkHeight: 409
1302
- },
1303
- elite_paddle_top_left_outline: {
1304
- code: 57406,
1305
- inkHeight: 409
1306
- },
1307
- elite_paddle_top_right: {
1308
- code: 57407,
1309
- inkHeight: 409
1310
- },
1311
- elite_paddle_top_right_outline: {
1312
- code: 57408,
1313
- inkHeight: 409
1314
- },
1315
- guide: {
1316
- code: 57409,
1317
- inkHeight: 981
1318
- },
1319
- guide_outline: {
1320
- code: 57410,
1321
- inkHeight: 983
1322
- },
1323
- lb: {
1324
- code: 57411,
1325
- inkHeight: 655
1326
- },
1327
- lb_outline: {
1328
- code: 57412,
1329
- inkHeight: 655
1330
- },
1331
- ls: {
1332
- code: 57413,
1333
- inkHeight: 983
1334
- },
1335
- ls_outline: {
1336
- code: 57414,
1337
- inkHeight: 983
1338
- },
1339
- lt: {
1340
- code: 57415,
1341
- inkHeight: 901
1342
- },
1343
- lt_outline: {
1344
- code: 57416,
1345
- inkHeight: 901
1346
- },
1347
- rb: {
1348
- code: 57417,
1349
- inkHeight: 655
1350
- },
1351
- rb_outline: {
1352
- code: 57418,
1353
- inkHeight: 655
1354
- },
1355
- rs: {
1356
- code: 57419,
1357
- inkHeight: 983
1358
- },
1359
- rs_outline: {
1360
- code: 57420,
1361
- inkHeight: 983
1362
- },
1363
- rt: {
1364
- code: 57421,
1365
- inkHeight: 901
1366
- },
1367
- rt_outline: {
1368
- code: 57422,
1369
- inkHeight: 901
1370
- },
1371
- stick_l: {
1372
- code: 57423,
1373
- inkHeight: 983
1374
- },
1375
- stick_l_down: {
1376
- code: 57424,
1377
- inkHeight: 983
1378
- },
1379
- stick_l_horizontal: {
1380
- code: 57425,
1381
- inkHeight: 983
1382
- },
1383
- stick_l_left: {
1384
- code: 57426,
1385
- inkHeight: 983
1386
- },
1387
- stick_l_press: {
1388
- code: 57427,
1389
- inkHeight: 1065
1390
- },
1391
- stick_l_right: {
1392
- code: 57428,
1393
- inkHeight: 983
1394
- },
1395
- stick_l_up: {
1396
- code: 57429,
1397
- inkHeight: 1106
1398
- },
1399
- stick_l_vertical: {
1400
- code: 57430,
1401
- inkHeight: 1106
1402
- },
1403
- stick_r: {
1404
- code: 57431,
1405
- inkHeight: 983
1406
- },
1407
- stick_r_down: {
1408
- code: 57432,
1409
- inkHeight: 983
1410
- },
1411
- stick_r_horizontal: {
1412
- code: 57433,
1413
- inkHeight: 983
1414
- },
1415
- stick_r_left: {
1416
- code: 57434,
1417
- inkHeight: 983
1418
- },
1419
- stick_r_press: {
1420
- code: 57435,
1421
- inkHeight: 1065
1422
- },
1423
- stick_r_right: {
1424
- code: 57436,
1425
- inkHeight: 983
1426
- },
1427
- stick_r_up: {
1428
- code: 57437,
1429
- inkHeight: 1106
1430
- },
1431
- stick_r_vertical: {
1432
- code: 57438,
1433
- inkHeight: 1106
1434
- },
1435
- stick_side_l: {
1436
- code: 57439,
1437
- inkHeight: 983
1438
- },
1439
- stick_side_r: {
1440
- code: 57440,
1441
- inkHeight: 983
1442
- },
1443
- stick_top_l: {
1444
- code: 57441,
1445
- inkHeight: 983
1446
- },
1447
- stick_top_r: {
1448
- code: 57442,
1449
- inkHeight: 983
1450
- }
1451
- };
1452
- const FF_GLYPH_PLAYSTATION = {
1453
- button_analog: {
1454
- code: 57407,
1455
- inkHeight: 737
1456
- },
1457
- button_analog_outline: {
1458
- code: 57408,
1459
- inkHeight: 737
1460
- },
1461
- button_circle: {
1462
- code: 57409,
1463
- inkHeight: 983
1464
- },
1465
- button_circle_outline: {
1466
- code: 57410,
1467
- inkHeight: 983
1468
- },
1469
- button_color_circle: {
1470
- code: 57411,
1471
- inkHeight: 983
1472
- },
1473
- button_color_circle_outline: {
1474
- code: 57412,
1475
- inkHeight: 983
1476
- },
1477
- button_color_cross: {
1478
- code: 57413,
1479
- inkHeight: 983
1480
- },
1481
- button_color_cross_outline: {
1482
- code: 57414,
1483
- inkHeight: 983
1484
- },
1485
- button_color_square: {
1486
- code: 57415,
1487
- inkHeight: 983
1488
- },
1489
- button_color_square_outline: {
1490
- code: 57416,
1491
- inkHeight: 983
1492
- },
1493
- button_color_triangle: {
1494
- code: 57417,
1495
- inkHeight: 983
1496
- },
1497
- button_color_triangle_outline: {
1498
- code: 57418,
1499
- inkHeight: 983
1500
- },
1501
- button_cross: {
1502
- code: 57419,
1503
- inkHeight: 983
1504
- },
1505
- button_cross_outline: {
1506
- code: 57420,
1507
- inkHeight: 983
1508
- },
1509
- button_l3: {
1510
- code: 57421,
1511
- inkHeight: 983
1512
- },
1513
- button_l3_outline: {
1514
- code: 57422,
1515
- inkHeight: 983
1516
- },
1517
- button_r3: {
1518
- code: 57423,
1519
- inkHeight: 983
1520
- },
1521
- button_r3_outline: {
1522
- code: 57424,
1523
- inkHeight: 983
1524
- },
1525
- button_square: {
1526
- code: 57425,
1527
- inkHeight: 983
1528
- },
1529
- button_square_outline: {
1530
- code: 57426,
1531
- inkHeight: 983
1532
- },
1533
- button_triangle: {
1534
- code: 57427,
1535
- inkHeight: 983
1536
- },
1537
- button_triangle_outline: {
1538
- code: 57428,
1539
- inkHeight: 983
1540
- },
1541
- controller_playstation1: {
1542
- code: 57344,
1543
- inkHeight: 614
1544
- },
1545
- controller_playstation2: {
1546
- code: 57345,
1547
- inkHeight: 614
1548
- },
1549
- controller_playstation3: {
1550
- code: 57346,
1551
- inkHeight: 614
1552
- },
1553
- controller_playstation4: {
1554
- code: 57347,
1555
- inkHeight: 615
1556
- },
1557
- controller_playstation5: {
1558
- code: 57348,
1559
- inkHeight: 654
1560
- },
1561
- dpad: {
1562
- code: 57429,
1563
- inkHeight: 983
1564
- },
1565
- dpad_all: {
1566
- code: 57430,
1567
- inkHeight: 983
1568
- },
1569
- dpad_down: {
1570
- code: 57431,
1571
- inkHeight: 983
1572
- },
1573
- dpad_down_outline: {
1574
- code: 57432,
1575
- inkHeight: 983
1576
- },
1577
- dpad_horizontal: {
1578
- code: 57433,
1579
- inkHeight: 983
1580
- },
1581
- dpad_horizontal_outline: {
1582
- code: 57434,
1583
- inkHeight: 983
1584
- },
1585
- dpad_left: {
1586
- code: 57435,
1587
- inkHeight: 983
1588
- },
1589
- dpad_left_outline: {
1590
- code: 57436,
1591
- inkHeight: 983
1592
- },
1593
- dpad_none: {
1594
- code: 57437,
1595
- inkHeight: 983
1596
- },
1597
- dpad_right: {
1598
- code: 57438,
1599
- inkHeight: 983
1600
- },
1601
- dpad_right_outline: {
1602
- code: 57439,
1603
- inkHeight: 983
1604
- },
1605
- dpad_up: {
1606
- code: 57440,
1607
- inkHeight: 983
1608
- },
1609
- dpad_up_outline: {
1610
- code: 57441,
1611
- inkHeight: 983
1612
- },
1613
- dpad_vertical: {
1614
- code: 57442,
1615
- inkHeight: 983
1616
- },
1617
- dpad_vertical_outline: {
1618
- code: 57443,
1619
- inkHeight: 983
1620
- },
1621
- playstation3_button_select: {
1622
- code: 57349,
1623
- inkHeight: 737
1624
- },
1625
- playstation3_button_select_outline: {
1626
- code: 57350,
1627
- inkHeight: 737
1628
- },
1629
- playstation3_button_start: {
1630
- code: 57351,
1631
- inkHeight: 732
1632
- },
1633
- playstation3_button_start_outline: {
1634
- code: 57352,
1635
- inkHeight: 732
1636
- },
1637
- playstation4_button_options: {
1638
- code: 57353,
1639
- inkHeight: 901
1640
- },
1641
- playstation4_button_options_outline: {
1642
- code: 57354,
1643
- inkHeight: 901
1644
- },
1645
- playstation4_button_share: {
1646
- code: 57355,
1647
- inkHeight: 901
1648
- },
1649
- playstation4_button_share_outline: {
1650
- code: 57356,
1651
- inkHeight: 901
1652
- },
1653
- playstation4_touchpad: {
1654
- code: 57357,
1655
- inkHeight: 655
1656
- },
1657
- playstation4_touchpad_grid: {
1658
- code: 57358,
1659
- inkHeight: 655
1660
- },
1661
- playstation4_touchpad_grid_outline: {
1662
- code: 57359,
1663
- inkHeight: 655
1664
- },
1665
- playstation4_touchpad_outline: {
1666
- code: 57360,
1667
- inkHeight: 655
1668
- },
1669
- playstation4_touchpad_press: {
1670
- code: 57361,
1671
- inkHeight: 717
1672
- },
1673
- playstation4_touchpad_press_center: {
1674
- code: 57362,
1675
- inkHeight: 717
1676
- },
1677
- playstation4_touchpad_press_left: {
1678
- code: 57363,
1679
- inkHeight: 717
1680
- },
1681
- playstation4_touchpad_press_right: {
1682
- code: 57364,
1683
- inkHeight: 717
1684
- },
1685
- playstation4_touchpad_selected: {
1686
- code: 57365,
1687
- inkHeight: 655
1688
- },
1689
- playstation4_touchpad_swipe_down: {
1690
- code: 57366,
1691
- inkHeight: 717
1692
- },
1693
- playstation4_touchpad_swipe_horizontal: {
1694
- code: 57367,
1695
- inkHeight: 655
1696
- },
1697
- playstation4_touchpad_swipe_left: {
1698
- code: 57368,
1699
- inkHeight: 655
1700
- },
1701
- playstation4_touchpad_swipe_right: {
1702
- code: 57369,
1703
- inkHeight: 655
1704
- },
1705
- playstation4_touchpad_swipe_up: {
1706
- code: 57370,
1707
- inkHeight: 717
1708
- },
1709
- playstation4_touchpad_swipe_vertical: {
1710
- code: 57371,
1711
- inkHeight: 778
1712
- },
1713
- playstation4_touchpad_touch: {
1714
- code: 57372,
1715
- inkHeight: 955
1716
- },
1717
- playstation4_touchpad_touch_outline: {
1718
- code: 57373,
1719
- inkHeight: 955
1720
- },
1721
- playstation5_button_create: {
1722
- code: 57374,
1723
- inkHeight: 921
1724
- },
1725
- playstation5_button_create_alternative: {
1726
- code: 57375,
1727
- inkHeight: 738
1728
- },
1729
- playstation5_button_create_alternative_outline: {
1730
- code: 57376,
1731
- inkHeight: 738
1732
- },
1733
- playstation5_button_create_outline: {
1734
- code: 57377,
1735
- inkHeight: 921
1736
- },
1737
- playstation5_button_mute: {
1738
- code: 57378,
1739
- inkHeight: 819
1740
- },
1741
- playstation5_button_mute_outline: {
1742
- code: 57379,
1743
- inkHeight: 819
1744
- },
1745
- playstation5_button_options: {
1746
- code: 57380,
1747
- inkHeight: 941
1748
- },
1749
- playstation5_button_options_alternative: {
1750
- code: 57381,
1751
- inkHeight: 738
1752
- },
1753
- playstation5_button_options_alternative_outline: {
1754
- code: 57382,
1755
- inkHeight: 738
1756
- },
1757
- playstation5_button_options_outline: {
1758
- code: 57383,
1759
- inkHeight: 941
1760
- },
1761
- playstation5_elite_fn_l: {
1762
- code: 57384,
1763
- inkHeight: 983
1764
- },
1765
- playstation5_elite_fn_l_outline: {
1766
- code: 57385,
1767
- inkHeight: 983
1768
- },
1769
- playstation5_elite_fn_r: {
1770
- code: 57386,
1771
- inkHeight: 983
1772
- },
1773
- playstation5_elite_fn_r_outline: {
1774
- code: 57387,
1775
- inkHeight: 983
1776
- },
1777
- playstation5_elite_lb: {
1778
- code: 57388,
1779
- inkHeight: 983
1780
- },
1781
- playstation5_elite_lb_outline: {
1782
- code: 57389,
1783
- inkHeight: 983
1784
- },
1785
- playstation5_elite_rb: {
1786
- code: 57390,
1787
- inkHeight: 983
1788
- },
1789
- playstation5_elite_rb_outline: {
1790
- code: 57391,
1791
- inkHeight: 983
1792
- },
1793
- playstation5_touchpad: {
1794
- code: 57392,
1795
- inkHeight: 655
1796
- },
1797
- playstation5_touchpad_outline: {
1798
- code: 57393,
1799
- inkHeight: 655
1800
- },
1801
- playstation5_touchpad_press: {
1802
- code: 57394,
1803
- inkHeight: 717
1804
- },
1805
- playstation5_touchpad_press_center: {
1806
- code: 57395,
1807
- inkHeight: 717
1808
- },
1809
- playstation5_touchpad_press_left: {
1810
- code: 57396,
1811
- inkHeight: 717
1812
- },
1813
- playstation5_touchpad_press_right: {
1814
- code: 57397,
1815
- inkHeight: 717
1816
- },
1817
- playstation5_touchpad_selected: {
1818
- code: 57398,
1819
- inkHeight: 655
1820
- },
1821
- playstation5_touchpad_swipe_down: {
1822
- code: 57399,
1823
- inkHeight: 717
1824
- },
1825
- playstation5_touchpad_swipe_horizontal: {
1826
- code: 57400,
1827
- inkHeight: 655
1828
- },
1829
- playstation5_touchpad_swipe_left: {
1830
- code: 57401,
1831
- inkHeight: 655
1832
- },
1833
- playstation5_touchpad_swipe_right: {
1834
- code: 57402,
1835
- inkHeight: 655
1836
- },
1837
- playstation5_touchpad_swipe_up: {
1838
- code: 57403,
1839
- inkHeight: 717
1840
- },
1841
- playstation5_touchpad_swipe_vertical: {
1842
- code: 57404,
1843
- inkHeight: 778
1844
- },
1845
- playstation5_touchpad_touch: {
1846
- code: 57405,
1847
- inkHeight: 955
1848
- },
1849
- playstation5_touchpad_touch_outline: {
1850
- code: 57406,
1851
- inkHeight: 955
1852
- },
1853
- stick_l: {
1854
- code: 57444,
1855
- inkHeight: 983
1856
- },
1857
- stick_l_down: {
1858
- code: 57445,
1859
- inkHeight: 983
1860
- },
1861
- stick_l_horizontal: {
1862
- code: 57446,
1863
- inkHeight: 983
1864
- },
1865
- stick_l_left: {
1866
- code: 57447,
1867
- inkHeight: 983
1868
- },
1869
- stick_l_press: {
1870
- code: 57448,
1871
- inkHeight: 1065
1872
- },
1873
- stick_l_right: {
1874
- code: 57449,
1875
- inkHeight: 983
1876
- },
1877
- stick_l_up: {
1878
- code: 57450,
1879
- inkHeight: 1106
1880
- },
1881
- stick_l_vertical: {
1882
- code: 57451,
1883
- inkHeight: 1106
1884
- },
1885
- stick_r: {
1886
- code: 57452,
1887
- inkHeight: 983
1888
- },
1889
- stick_r_down: {
1890
- code: 57453,
1891
- inkHeight: 983
1892
- },
1893
- stick_r_horizontal: {
1894
- code: 57454,
1895
- inkHeight: 983
1896
- },
1897
- stick_r_left: {
1898
- code: 57455,
1899
- inkHeight: 983
1900
- },
1901
- stick_r_press: {
1902
- code: 57456,
1903
- inkHeight: 1065
1904
- },
1905
- stick_r_right: {
1906
- code: 57457,
1907
- inkHeight: 983
1908
- },
1909
- stick_r_up: {
1910
- code: 57458,
1911
- inkHeight: 1106
1912
- },
1913
- stick_r_vertical: {
1914
- code: 57459,
1915
- inkHeight: 1106
1916
- },
1917
- stick_side_l: {
1918
- code: 57460,
1919
- inkHeight: 983
1920
- },
1921
- stick_side_r: {
1922
- code: 57461,
1923
- inkHeight: 983
1924
- },
1925
- stick_top_l: {
1926
- code: 57462,
1927
- inkHeight: 983
1928
- },
1929
- stick_top_r: {
1930
- code: 57463,
1931
- inkHeight: 983
1932
- },
1933
- trigger_l1: {
1934
- code: 57464,
1935
- inkHeight: 901
1936
- },
1937
- trigger_l1_alternative: {
1938
- code: 57465,
1939
- inkHeight: 819
1940
- },
1941
- trigger_l1_alternative_outline: {
1942
- code: 57466,
1943
- inkHeight: 819
1944
- },
1945
- trigger_l1_outline: {
1946
- code: 57467,
1947
- inkHeight: 901
1948
- },
1949
- trigger_l2: {
1950
- code: 57468,
1951
- inkHeight: 983
1952
- },
1953
- trigger_l2_alternative: {
1954
- code: 57469,
1955
- inkHeight: 819
1956
- },
1957
- trigger_l2_alternative_outline: {
1958
- code: 57470,
1959
- inkHeight: 819
1960
- },
1961
- trigger_l2_outline: {
1962
- code: 57471,
1963
- inkHeight: 983
1964
- },
1965
- trigger_r1: {
1966
- code: 57472,
1967
- inkHeight: 901
1968
- },
1969
- trigger_r1_alternative: {
1970
- code: 57473,
1971
- inkHeight: 819
1972
- },
1973
- trigger_r1_alternative_outline: {
1974
- code: 57474,
1975
- inkHeight: 819
1976
- },
1977
- trigger_r1_outline: {
1978
- code: 57475,
1979
- inkHeight: 901
1980
- },
1981
- trigger_r2: {
1982
- code: 57476,
1983
- inkHeight: 983
1984
- },
1985
- trigger_r2_alternative: {
1986
- code: 57477,
1987
- inkHeight: 819
1988
- },
1989
- trigger_r2_alternative_outline: {
1990
- code: 57478,
1991
- inkHeight: 819
1992
- },
1993
- trigger_r2_outline: {
1994
- code: 57479,
1995
- inkHeight: 983
1996
- }
1997
- };
1998
- const FF_GLYPH_SWITCH = {
1999
- button_a: {
2000
- code: 57348,
2001
- inkHeight: 983
2002
- },
2003
- button_a_outline: {
2004
- code: 57349,
2005
- inkHeight: 983
2006
- },
2007
- button_b: {
2008
- code: 57350,
2009
- inkHeight: 983
2010
- },
2011
- button_b_outline: {
2012
- code: 57351,
2013
- inkHeight: 983
2014
- },
2015
- button_home: {
2016
- code: 57352,
2017
- inkHeight: 983
2018
- },
2019
- button_home_outline: {
2020
- code: 57353,
2021
- inkHeight: 983
2022
- },
2023
- button_l: {
2024
- code: 57354,
2025
- inkHeight: 819
2026
- },
2027
- button_l_outline: {
2028
- code: 57355,
2029
- inkHeight: 819
2030
- },
2031
- button_minus: {
2032
- code: 57356,
2033
- inkHeight: 983
2034
- },
2035
- button_minus_outline: {
2036
- code: 57357,
2037
- inkHeight: 983
2038
- },
2039
- button_plus: {
2040
- code: 57358,
2041
- inkHeight: 983
2042
- },
2043
- button_plus_outline: {
2044
- code: 57359,
2045
- inkHeight: 983
2046
- },
2047
- button_r: {
2048
- code: 57360,
2049
- inkHeight: 819
2050
- },
2051
- button_r_outline: {
2052
- code: 57361,
2053
- inkHeight: 819
2054
- },
2055
- button_sl: {
2056
- code: 57362,
2057
- inkHeight: 655
2058
- },
2059
- button_sl_outline: {
2060
- code: 57363,
2061
- inkHeight: 655
2062
- },
2063
- button_sr: {
2064
- code: 57364,
2065
- inkHeight: 655
2066
- },
2067
- button_sr_outline: {
2068
- code: 57365,
2069
- inkHeight: 655
2070
- },
2071
- button_sync: {
2072
- code: 57366,
2073
- inkHeight: 983
2074
- },
2075
- button_sync_outline: {
2076
- code: 57367,
2077
- inkHeight: 983
2078
- },
2079
- button_x: {
2080
- code: 57368,
2081
- inkHeight: 983
2082
- },
2083
- button_x_outline: {
2084
- code: 57369,
2085
- inkHeight: 983
2086
- },
2087
- button_y: {
2088
- code: 57370,
2089
- inkHeight: 983
2090
- },
2091
- button_y_outline: {
2092
- code: 57371,
2093
- inkHeight: 983
2094
- },
2095
- button_zl: {
2096
- code: 57372,
2097
- inkHeight: 901
2098
- },
2099
- button_zl_outline: {
2100
- code: 57373,
2101
- inkHeight: 901
2102
- },
2103
- button_zr: {
2104
- code: 57374,
2105
- inkHeight: 901
2106
- },
2107
- button_zr_outline: {
2108
- code: 57375,
2109
- inkHeight: 901
2110
- },
2111
- buttons: {
2112
- code: 57376,
2113
- inkHeight: 983
2114
- },
2115
- buttons_all: {
2116
- code: 57377,
2117
- inkHeight: 983
2118
- },
2119
- buttons_down: {
2120
- code: 57378,
2121
- inkHeight: 983
2122
- },
2123
- buttons_down_outline: {
2124
- code: 57379,
2125
- inkHeight: 983
2126
- },
2127
- buttons_horizontal: {
2128
- code: 57380,
2129
- inkHeight: 983
2130
- },
2131
- buttons_horizontal_outline: {
2132
- code: 57381,
2133
- inkHeight: 983
2134
- },
2135
- buttons_left: {
2136
- code: 57382,
2137
- inkHeight: 983
2138
- },
2139
- buttons_left_outline: {
2140
- code: 57383,
2141
- inkHeight: 983
2142
- },
2143
- buttons_none: {
2144
- code: 57384,
2145
- inkHeight: 983
2146
- },
2147
- buttons_right: {
2148
- code: 57385,
2149
- inkHeight: 983
2150
- },
2151
- buttons_right_outline: {
2152
- code: 57386,
2153
- inkHeight: 983
2154
- },
2155
- buttons_up: {
2156
- code: 57387,
2157
- inkHeight: 983
2158
- },
2159
- buttons_up_outline: {
2160
- code: 57388,
2161
- inkHeight: 983
2162
- },
2163
- buttons_vertical: {
2164
- code: 57389,
2165
- inkHeight: 983
2166
- },
2167
- buttons_vertical_outline: {
2168
- code: 57390,
2169
- inkHeight: 983
2170
- },
2171
- controller_switch: {
2172
- code: 57344,
2173
- inkHeight: 451
2174
- },
2175
- controller_switch_joycon_down: {
2176
- code: 57345,
2177
- inkHeight: 860
2178
- },
2179
- controller_switch_joycon_up: {
2180
- code: 57346,
2181
- inkHeight: 840
2182
- },
2183
- controller_switch_pro: {
2184
- code: 57347,
2185
- inkHeight: 676
2186
- },
2187
- down: {
2188
- code: 57391,
2189
- inkHeight: 983
2190
- },
2191
- down_outline: {
2192
- code: 57392,
2193
- inkHeight: 983
2194
- },
2195
- dpad: {
2196
- code: 57393,
2197
- inkHeight: 983
2198
- },
2199
- dpad_all: {
2200
- code: 57394,
2201
- inkHeight: 983
2202
- },
2203
- dpad_down: {
2204
- code: 57395,
2205
- inkHeight: 983
2206
- },
2207
- dpad_down_outline: {
2208
- code: 57396,
2209
- inkHeight: 983
2210
- },
2211
- dpad_horizontal: {
2212
- code: 57397,
2213
- inkHeight: 983
2214
- },
2215
- dpad_horizontal_outline: {
2216
- code: 57398,
2217
- inkHeight: 983
2218
- },
2219
- dpad_left: {
2220
- code: 57399,
2221
- inkHeight: 983
2222
- },
2223
- dpad_left_outline: {
2224
- code: 57400,
2225
- inkHeight: 983
2226
- },
2227
- dpad_none: {
2228
- code: 57401,
2229
- inkHeight: 983
2230
- },
2231
- dpad_right: {
2232
- code: 57402,
2233
- inkHeight: 983
2234
- },
2235
- dpad_right_outline: {
2236
- code: 57403,
2237
- inkHeight: 983
2238
- },
2239
- dpad_up: {
2240
- code: 57404,
2241
- inkHeight: 983
2242
- },
2243
- dpad_up_outline: {
2244
- code: 57405,
2245
- inkHeight: 983
2246
- },
2247
- dpad_vertical: {
2248
- code: 57406,
2249
- inkHeight: 983
2250
- },
2251
- dpad_vertical_outline: {
2252
- code: 57407,
2253
- inkHeight: 983
2254
- },
2255
- joycon: {
2256
- code: 57408,
2257
- inkHeight: 983
2258
- },
2259
- joycon_left: {
2260
- code: 57409,
2261
- inkHeight: 983
2262
- },
2263
- joycon_left_diagonal: {
2264
- code: 57410,
2265
- inkHeight: 956
2266
- },
2267
- joycon_left_diagonal_outline: {
2268
- code: 57411,
2269
- inkHeight: 985
2270
- },
2271
- joycon_left_horizontal: {
2272
- code: 57412,
2273
- inkHeight: 983
2274
- },
2275
- joycon_left_horizontal_outline: {
2276
- code: 57413,
2277
- inkHeight: 983
2278
- },
2279
- joycon_left_outline: {
2280
- code: 57414,
2281
- inkHeight: 983
2282
- },
2283
- joycon_left_rotate: {
2284
- code: 57415,
2285
- inkHeight: 996
2286
- },
2287
- joycon_left_rotate_outline: {
2288
- code: 57416,
2289
- inkHeight: 1004
2290
- },
2291
- joycon_left_vertical: {
2292
- code: 57417,
2293
- inkHeight: 983
2294
- },
2295
- joycon_left_vertical_outline: {
2296
- code: 57418,
2297
- inkHeight: 983
2298
- },
2299
- joycon_outline: {
2300
- code: 57419,
2301
- inkHeight: 983
2302
- },
2303
- joycon_right: {
2304
- code: 57420,
2305
- inkHeight: 983
2306
- },
2307
- joycon_right_diagonal: {
2308
- code: 57421,
2309
- inkHeight: 956
2310
- },
2311
- joycon_right_diagonal_outline: {
2312
- code: 57422,
2313
- inkHeight: 985
2314
- },
2315
- joycon_right_horizontal: {
2316
- code: 57423,
2317
- inkHeight: 983
2318
- },
2319
- joycon_right_horizontal_outline: {
2320
- code: 57424,
2321
- inkHeight: 983
2322
- },
2323
- joycon_right_outline: {
2324
- code: 57425,
2325
- inkHeight: 983
2326
- },
2327
- joycon_right_rotate: {
2328
- code: 57426,
2329
- inkHeight: 1004
2330
- },
2331
- joycon_right_rotate_outline: {
2332
- code: 57427,
2333
- inkHeight: 1004
2334
- },
2335
- joycon_right_vertical: {
2336
- code: 57428,
2337
- inkHeight: 983
2338
- },
2339
- joycon_right_vertical_outline: {
2340
- code: 57429,
2341
- inkHeight: 983
2342
- },
2343
- left: {
2344
- code: 57430,
2345
- inkHeight: 983
2346
- },
2347
- left_outline: {
2348
- code: 57431,
2349
- inkHeight: 983
2350
- },
2351
- right: {
2352
- code: 57432,
2353
- inkHeight: 983
2354
- },
2355
- right_outline: {
2356
- code: 57433,
2357
- inkHeight: 983
2358
- },
2359
- stick_l: {
2360
- code: 57434,
2361
- inkHeight: 983
2362
- },
2363
- stick_l_down: {
2364
- code: 57435,
2365
- inkHeight: 983
2366
- },
2367
- stick_l_horizontal: {
2368
- code: 57436,
2369
- inkHeight: 983
2370
- },
2371
- stick_l_left: {
2372
- code: 57437,
2373
- inkHeight: 983
2374
- },
2375
- stick_l_press: {
2376
- code: 57438,
2377
- inkHeight: 1065
2378
- },
2379
- stick_l_right: {
2380
- code: 57439,
2381
- inkHeight: 983
2382
- },
2383
- stick_l_up: {
2384
- code: 57440,
2385
- inkHeight: 1106
2386
- },
2387
- stick_l_vertical: {
2388
- code: 57441,
2389
- inkHeight: 1106
2390
- },
2391
- stick_r: {
2392
- code: 57442,
2393
- inkHeight: 983
2394
- },
2395
- stick_r_down: {
2396
- code: 57443,
2397
- inkHeight: 983
2398
- },
2399
- stick_r_horizontal: {
2400
- code: 57444,
2401
- inkHeight: 983
2402
- },
2403
- stick_r_left: {
2404
- code: 57445,
2405
- inkHeight: 983
2406
- },
2407
- stick_r_press: {
2408
- code: 57446,
2409
- inkHeight: 1065
2410
- },
2411
- stick_r_right: {
2412
- code: 57447,
2413
- inkHeight: 983
2414
- },
2415
- stick_r_up: {
2416
- code: 57448,
2417
- inkHeight: 1106
2418
- },
2419
- stick_r_vertical: {
2420
- code: 57449,
2421
- inkHeight: 1106
2422
- },
2423
- stick_side_l: {
2424
- code: 57450,
2425
- inkHeight: 983
2426
- },
2427
- stick_side_r: {
2428
- code: 57451,
2429
- inkHeight: 983
2430
- },
2431
- stick_top_l: {
2432
- code: 57452,
2433
- inkHeight: 983
2434
- },
2435
- stick_top_r: {
2436
- code: 57453,
2437
- inkHeight: 983
2438
- },
2439
- up: {
2440
- code: 57454,
2441
- inkHeight: 983
2442
- },
2443
- up_outline: {
2444
- code: 57455,
2445
- inkHeight: 983
2446
- }
2447
- };
2448
- const FF_GLYPH_SWITCH2 = {
2449
- button_a: {
2450
- code: 57348,
2451
- inkHeight: 983
2452
- },
2453
- button_a_outline: {
2454
- code: 57349,
2455
- inkHeight: 983
2456
- },
2457
- button_b: {
2458
- code: 57350,
2459
- inkHeight: 983
2460
- },
2461
- button_b_outline: {
2462
- code: 57351,
2463
- inkHeight: 983
2464
- },
2465
- button_c: {
2466
- code: 57352,
2467
- inkHeight: 983
2468
- },
2469
- button_c_outline: {
2470
- code: 57353,
2471
- inkHeight: 983
2472
- },
2473
- button_gl: {
2474
- code: 57354,
2475
- inkHeight: 982
2476
- },
2477
- button_gl_outline: {
2478
- code: 57355,
2479
- inkHeight: 982
2480
- },
2481
- button_gr: {
2482
- code: 57356,
2483
- inkHeight: 982
2484
- },
2485
- button_gr_outline: {
2486
- code: 57357,
2487
- inkHeight: 982
2488
- },
2489
- button_home: {
2490
- code: 57358,
2491
- inkHeight: 983
2492
- },
2493
- button_home_outline: {
2494
- code: 57359,
2495
- inkHeight: 983
2496
- },
2497
- button_l: {
2498
- code: 57360,
2499
- inkHeight: 819
2500
- },
2501
- button_l_outline: {
2502
- code: 57361,
2503
- inkHeight: 819
2504
- },
2505
- button_minus: {
2506
- code: 57362,
2507
- inkHeight: 983
2508
- },
2509
- button_minus_outline: {
2510
- code: 57363,
2511
- inkHeight: 983
2512
- },
2513
- button_plus: {
2514
- code: 57364,
2515
- inkHeight: 983
2516
- },
2517
- button_plus_outline: {
2518
- code: 57365,
2519
- inkHeight: 983
2520
- },
2521
- button_r: {
2522
- code: 57366,
2523
- inkHeight: 819
2524
- },
2525
- button_r_outline: {
2526
- code: 57367,
2527
- inkHeight: 819
2528
- },
2529
- button_sl: {
2530
- code: 57368,
2531
- inkHeight: 655
2532
- },
2533
- button_sl_outline: {
2534
- code: 57369,
2535
- inkHeight: 655
2536
- },
2537
- button_sr: {
2538
- code: 57370,
2539
- inkHeight: 655
2540
- },
2541
- button_sr_outline: {
2542
- code: 57371,
2543
- inkHeight: 655
2544
- },
2545
- button_sync: {
2546
- code: 57372,
2547
- inkHeight: 983
2548
- },
2549
- button_sync_outline: {
2550
- code: 57373,
2551
- inkHeight: 983
2552
- },
2553
- button_x: {
2554
- code: 57374,
2555
- inkHeight: 983
2556
- },
2557
- button_x_outline: {
2558
- code: 57375,
2559
- inkHeight: 983
2560
- },
2561
- button_y: {
2562
- code: 57376,
2563
- inkHeight: 983
2564
- },
2565
- button_y_outline: {
2566
- code: 57377,
2567
- inkHeight: 983
2568
- },
2569
- button_zl: {
2570
- code: 57378,
2571
- inkHeight: 901
2572
- },
2573
- button_zl_outline: {
2574
- code: 57379,
2575
- inkHeight: 901
2576
- },
2577
- button_zr: {
2578
- code: 57380,
2579
- inkHeight: 901
2580
- },
2581
- button_zr_outline: {
2582
- code: 57381,
2583
- inkHeight: 901
2584
- },
2585
- buttons: {
2586
- code: 57382,
2587
- inkHeight: 983
2588
- },
2589
- buttons_all: {
2590
- code: 57383,
2591
- inkHeight: 983
2592
- },
2593
- buttons_down: {
2594
- code: 57384,
2595
- inkHeight: 983
2596
- },
2597
- buttons_down_outline: {
2598
- code: 57385,
2599
- inkHeight: 983
2600
- },
2601
- buttons_horizontal: {
2602
- code: 57386,
2603
- inkHeight: 983
2604
- },
2605
- buttons_horizontal_outline: {
2606
- code: 57387,
2607
- inkHeight: 983
2608
- },
2609
- buttons_left: {
2610
- code: 57388,
2611
- inkHeight: 983
2612
- },
2613
- buttons_left_outline: {
2614
- code: 57389,
2615
- inkHeight: 983
2616
- },
2617
- buttons_none: {
2618
- code: 57390,
2619
- inkHeight: 983
2620
- },
2621
- buttons_right: {
2622
- code: 57391,
2623
- inkHeight: 983
2624
- },
2625
- buttons_right_outline: {
2626
- code: 57392,
2627
- inkHeight: 983
2628
- },
2629
- buttons_up: {
2630
- code: 57393,
2631
- inkHeight: 983
2632
- },
2633
- buttons_up_outline: {
2634
- code: 57394,
2635
- inkHeight: 983
2636
- },
2637
- buttons_vertical: {
2638
- code: 57395,
2639
- inkHeight: 983
2640
- },
2641
- buttons_vertical_outline: {
2642
- code: 57396,
2643
- inkHeight: 983
2644
- },
2645
- controller_switch: {
2646
- code: 57344,
2647
- inkHeight: 451
2648
- },
2649
- controller_switch_joycon_down: {
2650
- code: 57345,
2651
- inkHeight: 778
2652
- },
2653
- controller_switch_joycon_up: {
2654
- code: 57346,
2655
- inkHeight: 758
2656
- },
2657
- controller_switch_pro: {
2658
- code: 57347,
2659
- inkHeight: 717
2660
- },
2661
- down: {
2662
- code: 57397,
2663
- inkHeight: 983
2664
- },
2665
- down_outline: {
2666
- code: 57398,
2667
- inkHeight: 983
2668
- },
2669
- dpad: {
2670
- code: 57399,
2671
- inkHeight: 983
2672
- },
2673
- dpad_all: {
2674
- code: 57400,
2675
- inkHeight: 983
2676
- },
2677
- dpad_down: {
2678
- code: 57401,
2679
- inkHeight: 983
2680
- },
2681
- dpad_down_outline: {
2682
- code: 57402,
2683
- inkHeight: 983
2684
- },
2685
- dpad_horizontal: {
2686
- code: 57403,
2687
- inkHeight: 983
2688
- },
2689
- dpad_horizontal_outline: {
2690
- code: 57404,
2691
- inkHeight: 983
2692
- },
2693
- dpad_left: {
2694
- code: 57405,
2695
- inkHeight: 983
2696
- },
2697
- dpad_left_outline: {
2698
- code: 57406,
2699
- inkHeight: 983
2700
- },
2701
- dpad_none: {
2702
- code: 57407,
2703
- inkHeight: 983
2704
- },
2705
- dpad_right: {
2706
- code: 57408,
2707
- inkHeight: 983
2708
- },
2709
- dpad_right_outline: {
2710
- code: 57409,
2711
- inkHeight: 983
2712
- },
2713
- dpad_up: {
2714
- code: 57410,
2715
- inkHeight: 983
2716
- },
2717
- dpad_up_outline: {
2718
- code: 57411,
2719
- inkHeight: 983
2720
- },
2721
- dpad_vertical: {
2722
- code: 57412,
2723
- inkHeight: 983
2724
- },
2725
- dpad_vertical_outline: {
2726
- code: 57413,
2727
- inkHeight: 983
2728
- },
2729
- joycon: {
2730
- code: 57414,
2731
- inkHeight: 983
2732
- },
2733
- joycon_left: {
2734
- code: 57415,
2735
- inkHeight: 983
2736
- },
2737
- joycon_left_diagonal: {
2738
- code: 57416,
2739
- inkHeight: 956
2740
- },
2741
- joycon_left_diagonal_outline: {
2742
- code: 57417,
2743
- inkHeight: 985
2744
- },
2745
- joycon_left_horizontal: {
2746
- code: 57418,
2747
- inkHeight: 983
2748
- },
2749
- joycon_left_horizontal_outline: {
2750
- code: 57419,
2751
- inkHeight: 983
2752
- },
2753
- joycon_left_mouse: {
2754
- code: 57420,
2755
- inkHeight: 983
2756
- },
2757
- joycon_left_mouse_outline: {
2758
- code: 57421,
2759
- inkHeight: 983
2760
- },
2761
- joycon_left_outline: {
2762
- code: 57422,
2763
- inkHeight: 983
2764
- },
2765
- joycon_left_rotate: {
2766
- code: 57423,
2767
- inkHeight: 996
2768
- },
2769
- joycon_left_rotate_outline: {
2770
- code: 57424,
2771
- inkHeight: 1004
2772
- },
2773
- joycon_left_vertical: {
2774
- code: 57425,
2775
- inkHeight: 983
2776
- },
2777
- joycon_left_vertical_outline: {
2778
- code: 57426,
2779
- inkHeight: 983
2780
- },
2781
- joycon_outline: {
2782
- code: 57427,
2783
- inkHeight: 983
2784
- },
2785
- joycon_right: {
2786
- code: 57428,
2787
- inkHeight: 983
2788
- },
2789
- joycon_right_diagonal: {
2790
- code: 57429,
2791
- inkHeight: 956
2792
- },
2793
- joycon_right_diagonal_outline: {
2794
- code: 57430,
2795
- inkHeight: 985
2796
- },
2797
- joycon_right_horizontal: {
2798
- code: 57431,
2799
- inkHeight: 983
2800
- },
2801
- joycon_right_horizontal_outline: {
2802
- code: 57432,
2803
- inkHeight: 983
2804
- },
2805
- joycon_right_mouse: {
2806
- code: 57433,
2807
- inkHeight: 983
2808
- },
2809
- joycon_right_mouse_outline: {
2810
- code: 57434,
2811
- inkHeight: 983
2812
- },
2813
- joycon_right_outline: {
2814
- code: 57435,
2815
- inkHeight: 983
2816
- },
2817
- joycon_right_rotate: {
2818
- code: 57436,
2819
- inkHeight: 1004
2820
- },
2821
- joycon_right_rotate_outline: {
2822
- code: 57437,
2823
- inkHeight: 1004
2824
- },
2825
- joycon_right_vertical: {
2826
- code: 57438,
2827
- inkHeight: 983
2828
- },
2829
- joycon_right_vertical_outline: {
2830
- code: 57439,
2831
- inkHeight: 983
2832
- },
2833
- left: {
2834
- code: 57440,
2835
- inkHeight: 983
2836
- },
2837
- left_outline: {
2838
- code: 57441,
2839
- inkHeight: 983
2840
- },
2841
- right: {
2842
- code: 57442,
2843
- inkHeight: 983
2844
- },
2845
- right_outline: {
2846
- code: 57443,
2847
- inkHeight: 983
2848
- },
2849
- stick_l: {
2850
- code: 57444,
2851
- inkHeight: 983
2852
- },
2853
- stick_l_down: {
2854
- code: 57445,
2855
- inkHeight: 983
2856
- },
2857
- stick_l_horizontal: {
2858
- code: 57446,
2859
- inkHeight: 983
2860
- },
2861
- stick_l_left: {
2862
- code: 57447,
2863
- inkHeight: 983
2864
- },
2865
- stick_l_press: {
2866
- code: 57448,
2867
- inkHeight: 1065
2868
- },
2869
- stick_l_right: {
2870
- code: 57449,
2871
- inkHeight: 983
2872
- },
2873
- stick_l_up: {
2874
- code: 57450,
2875
- inkHeight: 1106
2876
- },
2877
- stick_l_vertical: {
2878
- code: 57451,
2879
- inkHeight: 1106
2880
- },
2881
- stick_r: {
2882
- code: 57452,
2883
- inkHeight: 983
2884
- },
2885
- stick_r_down: {
2886
- code: 57453,
2887
- inkHeight: 983
2888
- },
2889
- stick_r_horizontal: {
2890
- code: 57454,
2891
- inkHeight: 983
2892
- },
2893
- stick_r_left: {
2894
- code: 57455,
2895
- inkHeight: 983
2896
- },
2897
- stick_r_press: {
2898
- code: 57456,
2899
- inkHeight: 1065
2900
- },
2901
- stick_r_right: {
2902
- code: 57457,
2903
- inkHeight: 983
2904
- },
2905
- stick_r_up: {
2906
- code: 57458,
2907
- inkHeight: 1106
2908
- },
2909
- stick_r_vertical: {
2910
- code: 57459,
2911
- inkHeight: 1106
2912
- },
2913
- stick_side_l: {
2914
- code: 57460,
2915
- inkHeight: 983
2916
- },
2917
- stick_side_r: {
2918
- code: 57461,
2919
- inkHeight: 983
2920
- },
2921
- stick_top_l: {
2922
- code: 57462,
2923
- inkHeight: 983
2924
- },
2925
- stick_top_r: {
2926
- code: 57463,
2927
- inkHeight: 983
2928
- },
2929
- up: {
2930
- code: 57464,
2931
- inkHeight: 983
2932
- },
2933
- up_outline: {
2934
- code: 57465,
2935
- inkHeight: 983
2936
- }
2937
- };
2938
- const FF_GLYPH_STEAM_CONTROLLER = {
2939
- button_a: {
2940
- code: 57378,
2941
- inkHeight: 983
2942
- },
2943
- button_a_outline: {
2944
- code: 57379,
2945
- inkHeight: 983
2946
- },
2947
- button_b: {
2948
- code: 57380,
2949
- inkHeight: 983
2950
- },
2951
- button_b_outline: {
2952
- code: 57381,
2953
- inkHeight: 983
2954
- },
2955
- button_back_icon: {
2956
- code: 57382,
2957
- inkHeight: 655
2958
- },
2959
- button_back_icon_outline: {
2960
- code: 57383,
2961
- inkHeight: 655
2962
- },
2963
- button_color_a: {
2964
- code: 57384,
2965
- inkHeight: 983
2966
- },
2967
- button_color_a_outline: {
2968
- code: 57385,
2969
- inkHeight: 983
2970
- },
2971
- button_color_b: {
2972
- code: 57386,
2973
- inkHeight: 983
2974
- },
2975
- button_color_b_outline: {
2976
- code: 57387,
2977
- inkHeight: 983
2978
- },
2979
- button_color_x: {
2980
- code: 57388,
2981
- inkHeight: 983
2982
- },
2983
- button_color_x_outline: {
2984
- code: 57389,
2985
- inkHeight: 983
2986
- },
2987
- button_color_y: {
2988
- code: 57390,
2989
- inkHeight: 983
2990
- },
2991
- button_color_y_outline: {
2992
- code: 57391,
2993
- inkHeight: 983
2994
- },
2995
- button_lp: {
2996
- code: 57392,
2997
- inkHeight: 983
2998
- },
2999
- button_lp_outline: {
3000
- code: 57393,
3001
- inkHeight: 983
3002
- },
3003
- button_rp: {
3004
- code: 57394,
3005
- inkHeight: 983
3006
- },
3007
- button_rp_outline: {
3008
- code: 57395,
3009
- inkHeight: 983
3010
- },
3011
- button_start_icon: {
3012
- code: 57396,
3013
- inkHeight: 655
3014
- },
3015
- button_start_icon_outline: {
3016
- code: 57397,
3017
- inkHeight: 655
3018
- },
3019
- button_x: {
3020
- code: 57398,
3021
- inkHeight: 983
3022
- },
3023
- button_x_outline: {
3024
- code: 57399,
3025
- inkHeight: 983
3026
- },
3027
- button_y: {
3028
- code: 57400,
3029
- inkHeight: 983
3030
- },
3031
- button_y_outline: {
3032
- code: 57401,
3033
- inkHeight: 983
3034
- },
3035
- controller_button_l1: {
3036
- code: 57344,
3037
- inkHeight: 983
3038
- },
3039
- controller_button_l1_outline: {
3040
- code: 57345,
3041
- inkHeight: 983
3042
- },
3043
- controller_button_l2: {
3044
- code: 57346,
3045
- inkHeight: 984
3046
- },
3047
- controller_button_l2_outline: {
3048
- code: 57347,
3049
- inkHeight: 984
3050
- },
3051
- controller_button_l4: {
3052
- code: 57348,
3053
- inkHeight: 983
3054
- },
3055
- controller_button_l4_outline: {
3056
- code: 57349,
3057
- inkHeight: 983
3058
- },
3059
- controller_button_l5: {
3060
- code: 57350,
3061
- inkHeight: 983
3062
- },
3063
- controller_button_l5_outline: {
3064
- code: 57351,
3065
- inkHeight: 983
3066
- },
3067
- controller_button_options: {
3068
- code: 57352,
3069
- inkHeight: 410
3070
- },
3071
- controller_button_options_outline: {
3072
- code: 57353,
3073
- inkHeight: 410
3074
- },
3075
- controller_button_quickaccess: {
3076
- code: 57354,
3077
- inkHeight: 492
3078
- },
3079
- controller_button_quickaccess_outline: {
3080
- code: 57355,
3081
- inkHeight: 492
3082
- },
3083
- controller_button_r1: {
3084
- code: 57356,
3085
- inkHeight: 983
3086
- },
3087
- controller_button_r1_outline: {
3088
- code: 57357,
3089
- inkHeight: 983
3090
- },
3091
- controller_button_r2: {
3092
- code: 57358,
3093
- inkHeight: 984
3094
- },
3095
- controller_button_r2_outline: {
3096
- code: 57359,
3097
- inkHeight: 984
3098
- },
3099
- controller_button_r4: {
3100
- code: 57360,
3101
- inkHeight: 983
3102
- },
3103
- controller_button_r4_outline: {
3104
- code: 57361,
3105
- inkHeight: 983
3106
- },
3107
- controller_button_r5: {
3108
- code: 57362,
3109
- inkHeight: 983
3110
- },
3111
- controller_button_r5_outline: {
3112
- code: 57363,
3113
- inkHeight: 983
3114
- },
3115
- controller_button_view: {
3116
- code: 57364,
3117
- inkHeight: 410
3118
- },
3119
- controller_button_view_outline: {
3120
- code: 57365,
3121
- inkHeight: 410
3122
- },
3123
- controller_icon: {
3124
- code: 57366,
3125
- inkHeight: 983
3126
- },
3127
- controller_icon_outline: {
3128
- code: 57367,
3129
- inkHeight: 983
3130
- },
3131
- controller_lg: {
3132
- code: 57368,
3133
- inkHeight: 982
3134
- },
3135
- controller_lg_gradient: {
3136
- code: 57369,
3137
- inkHeight: 983
3138
- },
3139
- controller_lg_gradient_outline: {
3140
- code: 57370,
3141
- inkHeight: 982
3142
- },
3143
- controller_lg_outline: {
3144
- code: 57371,
3145
- inkHeight: 982
3146
- },
3147
- controller_rg: {
3148
- code: 57372,
3149
- inkHeight: 982
3150
- },
3151
- controller_rg_gradient: {
3152
- code: 57373,
3153
- inkHeight: 982
3154
- },
3155
- controller_rg_gradient_outline: {
3156
- code: 57374,
3157
- inkHeight: 982
3158
- },
3159
- controller_rg_outline: {
3160
- code: 57375,
3161
- inkHeight: 982
3162
- },
3163
- controller_steam: {
3164
- code: 57376,
3165
- inkHeight: 676
3166
- },
3167
- controller_steam_new: {
3168
- code: 57377,
3169
- inkHeight: 691
3170
- },
3171
- dpad: {
3172
- code: 57402,
3173
- inkHeight: 983
3174
- },
3175
- dpad_all: {
3176
- code: 57403,
3177
- inkHeight: 983
3178
- },
3179
- dpad_down: {
3180
- code: 57404,
3181
- inkHeight: 983
3182
- },
3183
- dpad_down_outline: {
3184
- code: 57405,
3185
- inkHeight: 983
3186
- },
3187
- dpad_horizontal: {
3188
- code: 57406,
3189
- inkHeight: 983
3190
- },
3191
- dpad_horizontal_outline: {
3192
- code: 57407,
3193
- inkHeight: 983
3194
- },
3195
- dpad_left: {
3196
- code: 57408,
3197
- inkHeight: 983
3198
- },
3199
- dpad_left_outline: {
3200
- code: 57409,
3201
- inkHeight: 983
3202
- },
3203
- dpad_none: {
3204
- code: 57410,
3205
- inkHeight: 983
3206
- },
3207
- dpad_right: {
3208
- code: 57411,
3209
- inkHeight: 983
3210
- },
3211
- dpad_right_outline: {
3212
- code: 57412,
3213
- inkHeight: 983
3214
- },
3215
- dpad_up: {
3216
- code: 57413,
3217
- inkHeight: 983
3218
- },
3219
- dpad_up_outline: {
3220
- code: 57414,
3221
- inkHeight: 983
3222
- },
3223
- dpad_vertical: {
3224
- code: 57415,
3225
- inkHeight: 983
3226
- },
3227
- dpad_vertical_outline: {
3228
- code: 57416,
3229
- inkHeight: 983
3230
- },
3231
- lb: {
3232
- code: 57417,
3233
- inkHeight: 771
3234
- },
3235
- lb_outline: {
3236
- code: 57418,
3237
- inkHeight: 771
3238
- },
3239
- lg: {
3240
- code: 57419,
3241
- inkHeight: 983
3242
- },
3243
- lg_outline: {
3244
- code: 57420,
3245
- inkHeight: 983
3246
- },
3247
- lt: {
3248
- code: 57421,
3249
- inkHeight: 982
3250
- },
3251
- lt_outline: {
3252
- code: 57422,
3253
- inkHeight: 982
3254
- },
3255
- pad: {
3256
- code: 57423,
3257
- inkHeight: 983
3258
- },
3259
- pad_center: {
3260
- code: 57424,
3261
- inkHeight: 983
3262
- },
3263
- pad_down: {
3264
- code: 57425,
3265
- inkHeight: 983
3266
- },
3267
- pad_left: {
3268
- code: 57426,
3269
- inkHeight: 983
3270
- },
3271
- pad_right: {
3272
- code: 57427,
3273
- inkHeight: 983
3274
- },
3275
- pad_up: {
3276
- code: 57428,
3277
- inkHeight: 983
3278
- },
3279
- rb: {
3280
- code: 57429,
3281
- inkHeight: 771
3282
- },
3283
- rb_outline: {
3284
- code: 57430,
3285
- inkHeight: 771
3286
- },
3287
- rg: {
3288
- code: 57431,
3289
- inkHeight: 982
3290
- },
3291
- rg_outline: {
3292
- code: 57432,
3293
- inkHeight: 982
3294
- },
3295
- rt: {
3296
- code: 57433,
3297
- inkHeight: 982
3298
- },
3299
- rt_outline: {
3300
- code: 57434,
3301
- inkHeight: 982
3302
- },
3303
- stick: {
3304
- code: 57435,
3305
- inkHeight: 983
3306
- },
3307
- stick_down: {
3308
- code: 57436,
3309
- inkHeight: 983
3310
- },
3311
- stick_horizontal: {
3312
- code: 57437,
3313
- inkHeight: 983
3314
- },
3315
- stick_l_press: {
3316
- code: 57438,
3317
- inkHeight: 1065
3318
- },
3319
- stick_left: {
3320
- code: 57439,
3321
- inkHeight: 983
3322
- },
3323
- stick_right: {
3324
- code: 57440,
3325
- inkHeight: 983
3326
- },
3327
- stick_side_l: {
3328
- code: 57441,
3329
- inkHeight: 983
3330
- },
3331
- stick_up: {
3332
- code: 57442,
3333
- inkHeight: 1106
3334
- },
3335
- stick_vertical: {
3336
- code: 57443,
3337
- inkHeight: 1106
3338
- }
3339
- };
3340
- const FF_GLYPH_STEAM_DECK = {
3341
- button_a: {
3342
- code: 57345,
3343
- inkHeight: 983
3344
- },
3345
- button_a_outline: {
3346
- code: 57346,
3347
- inkHeight: 983
3348
- },
3349
- button_b: {
3350
- code: 57347,
3351
- inkHeight: 983
3352
- },
3353
- button_b_outline: {
3354
- code: 57348,
3355
- inkHeight: 983
3356
- },
3357
- button_guide: {
3358
- code: 57349,
3359
- inkHeight: 492
3360
- },
3361
- button_guide_outline: {
3362
- code: 57350,
3363
- inkHeight: 492
3364
- },
3365
- button_l1: {
3366
- code: 57351,
3367
- inkHeight: 983
3368
- },
3369
- button_l1_outline: {
3370
- code: 57352,
3371
- inkHeight: 983
3372
- },
3373
- button_l2: {
3374
- code: 57353,
3375
- inkHeight: 983
3376
- },
3377
- button_l2_outline: {
3378
- code: 57354,
3379
- inkHeight: 983
3380
- },
3381
- button_l4: {
3382
- code: 57355,
3383
- inkHeight: 983
3384
- },
3385
- button_l4_outline: {
3386
- code: 57356,
3387
- inkHeight: 983
3388
- },
3389
- button_l5: {
3390
- code: 57357,
3391
- inkHeight: 983
3392
- },
3393
- button_l5_outline: {
3394
- code: 57358,
3395
- inkHeight: 983
3396
- },
3397
- button_options: {
3398
- code: 57359,
3399
- inkHeight: 410
3400
- },
3401
- button_options_outline: {
3402
- code: 57360,
3403
- inkHeight: 410
3404
- },
3405
- button_quickaccess: {
3406
- code: 57361,
3407
- inkHeight: 492
3408
- },
3409
- button_quickaccess_outline: {
3410
- code: 57362,
3411
- inkHeight: 492
3412
- },
3413
- button_r1: {
3414
- code: 57363,
3415
- inkHeight: 983
3416
- },
3417
- button_r1_outline: {
3418
- code: 57364,
3419
- inkHeight: 983
3420
- },
3421
- button_r2: {
3422
- code: 57365,
3423
- inkHeight: 983
3424
- },
3425
- button_r2_outline: {
3426
- code: 57366,
3427
- inkHeight: 983
3428
- },
3429
- button_r4: {
3430
- code: 57367,
3431
- inkHeight: 983
3432
- },
3433
- button_r4_outline: {
3434
- code: 57368,
3435
- inkHeight: 983
3436
- },
3437
- button_r5: {
3438
- code: 57369,
3439
- inkHeight: 983
3440
- },
3441
- button_r5_outline: {
3442
- code: 57370,
3443
- inkHeight: 983
3444
- },
3445
- button_view: {
3446
- code: 57371,
3447
- inkHeight: 410
3448
- },
3449
- button_view_outline: {
3450
- code: 57372,
3451
- inkHeight: 410
3452
- },
3453
- button_x: {
3454
- code: 57373,
3455
- inkHeight: 983
3456
- },
3457
- button_x_outline: {
3458
- code: 57374,
3459
- inkHeight: 983
3460
- },
3461
- button_y: {
3462
- code: 57375,
3463
- inkHeight: 983
3464
- },
3465
- button_y_outline: {
3466
- code: 57376,
3467
- inkHeight: 983
3468
- },
3469
- controller_steamdeck: {
3470
- code: 57344,
3471
- inkHeight: 492
3472
- },
3473
- dpad: {
3474
- code: 57377,
3475
- inkHeight: 983
3476
- },
3477
- dpad_all: {
3478
- code: 57378,
3479
- inkHeight: 983
3480
- },
3481
- dpad_down: {
3482
- code: 57379,
3483
- inkHeight: 983
3484
- },
3485
- dpad_down_outline: {
3486
- code: 57380,
3487
- inkHeight: 983
3488
- },
3489
- dpad_horizontal: {
3490
- code: 57381,
3491
- inkHeight: 983
3492
- },
3493
- dpad_horizontal_outline: {
3494
- code: 57382,
3495
- inkHeight: 983
3496
- },
3497
- dpad_left: {
3498
- code: 57383,
3499
- inkHeight: 983
3500
- },
3501
- dpad_left_outline: {
3502
- code: 57384,
3503
- inkHeight: 983
3504
- },
3505
- dpad_none: {
3506
- code: 57385,
3507
- inkHeight: 983
3508
- },
3509
- dpad_right: {
3510
- code: 57386,
3511
- inkHeight: 983
3512
- },
3513
- dpad_right_outline: {
3514
- code: 57387,
3515
- inkHeight: 983
3516
- },
3517
- dpad_up: {
3518
- code: 57388,
3519
- inkHeight: 983
3520
- },
3521
- dpad_up_outline: {
3522
- code: 57389,
3523
- inkHeight: 983
3524
- },
3525
- dpad_vertical: {
3526
- code: 57390,
3527
- inkHeight: 983
3528
- },
3529
- dpad_vertical_outline: {
3530
- code: 57391,
3531
- inkHeight: 983
3532
- },
3533
- stick_l: {
3534
- code: 57392,
3535
- inkHeight: 983
3536
- },
3537
- stick_l_down: {
3538
- code: 57393,
3539
- inkHeight: 983
3540
- },
3541
- stick_l_horizontal: {
3542
- code: 57394,
3543
- inkHeight: 983
3544
- },
3545
- stick_l_left: {
3546
- code: 57395,
3547
- inkHeight: 983
3548
- },
3549
- stick_l_press: {
3550
- code: 57396,
3551
- inkHeight: 1065
3552
- },
3553
- stick_l_right: {
3554
- code: 57397,
3555
- inkHeight: 983
3556
- },
3557
- stick_l_up: {
3558
- code: 57398,
3559
- inkHeight: 1106
3560
- },
3561
- stick_l_vertical: {
3562
- code: 57399,
3563
- inkHeight: 1106
3564
- },
3565
- stick_r: {
3566
- code: 57400,
3567
- inkHeight: 983
3568
- },
3569
- stick_r_down: {
3570
- code: 57401,
3571
- inkHeight: 983
3572
- },
3573
- stick_r_horizontal: {
3574
- code: 57402,
3575
- inkHeight: 983
3576
- },
3577
- stick_r_left: {
3578
- code: 57403,
3579
- inkHeight: 983
3580
- },
3581
- stick_r_press: {
3582
- code: 57404,
3583
- inkHeight: 1065
3584
- },
3585
- stick_r_right: {
3586
- code: 57405,
3587
- inkHeight: 983
3588
- },
3589
- stick_r_up: {
3590
- code: 57406,
3591
- inkHeight: 1106
3592
- },
3593
- stick_r_vertical: {
3594
- code: 57407,
3595
- inkHeight: 1106
3596
- },
3597
- stick_side_l: {
3598
- code: 57408,
3599
- inkHeight: 983
3600
- },
3601
- stick_side_r: {
3602
- code: 57409,
3603
- inkHeight: 983
3604
- },
3605
- stick_top_l: {
3606
- code: 57410,
3607
- inkHeight: 983
3608
- },
3609
- stick_top_r: {
3610
- code: 57411,
3611
- inkHeight: 983
3612
- },
3613
- trackpad: {
3614
- code: 57412,
3615
- inkHeight: 983
3616
- },
3617
- trackpad_all: {
3618
- code: 57413,
3619
- inkHeight: 1188
3620
- },
3621
- trackpad_all_outline: {
3622
- code: 57414,
3623
- inkHeight: 1188
3624
- },
3625
- trackpad_down: {
3626
- code: 57415,
3627
- inkHeight: 1085
3628
- },
3629
- trackpad_down_outline: {
3630
- code: 57416,
3631
- inkHeight: 1085
3632
- },
3633
- trackpad_horizontal: {
3634
- code: 57417,
3635
- inkHeight: 983
3636
- },
3637
- trackpad_horizontal_outline: {
3638
- code: 57418,
3639
- inkHeight: 983
3640
- },
3641
- trackpad_l: {
3642
- code: 57419,
3643
- inkHeight: 983
3644
- },
3645
- trackpad_l_all: {
3646
- code: 57420,
3647
- inkHeight: 1188
3648
- },
3649
- trackpad_l_all_outline: {
3650
- code: 57421,
3651
- inkHeight: 1188
3652
- },
3653
- trackpad_l_down: {
3654
- code: 57422,
3655
- inkHeight: 1085
3656
- },
3657
- trackpad_l_down_outline: {
3658
- code: 57423,
3659
- inkHeight: 1085
3660
- },
3661
- trackpad_l_horizontal: {
3662
- code: 57424,
3663
- inkHeight: 983
3664
- },
3665
- trackpad_l_horizontal_outline: {
3666
- code: 57425,
3667
- inkHeight: 983
3668
- },
3669
- trackpad_l_left: {
3670
- code: 57426,
3671
- inkHeight: 983
3672
- },
3673
- trackpad_l_left_outline: {
3674
- code: 57427,
3675
- inkHeight: 983
3676
- },
3677
- trackpad_l_outline: {
3678
- code: 57428,
3679
- inkHeight: 983
3680
- },
3681
- trackpad_l_right: {
3682
- code: 57429,
3683
- inkHeight: 983
3684
- },
3685
- trackpad_l_right_outline: {
3686
- code: 57430,
3687
- inkHeight: 983
3688
- },
3689
- trackpad_l_up: {
3690
- code: 57431,
3691
- inkHeight: 1085
3692
- },
3693
- trackpad_l_up_outline: {
3694
- code: 57432,
3695
- inkHeight: 1085
3696
- },
3697
- trackpad_l_vertical: {
3698
- code: 57433,
3699
- inkHeight: 1188
3700
- },
3701
- trackpad_l_vertical_outline: {
3702
- code: 57434,
3703
- inkHeight: 1188
3704
- },
3705
- trackpad_left: {
3706
- code: 57435,
3707
- inkHeight: 983
3708
- },
3709
- trackpad_left_outline: {
3710
- code: 57436,
3711
- inkHeight: 983
3712
- },
3713
- trackpad_outline: {
3714
- code: 57437,
3715
- inkHeight: 983
3716
- },
3717
- trackpad_r: {
3718
- code: 57438,
3719
- inkHeight: 983
3720
- },
3721
- trackpad_r_all: {
3722
- code: 57439,
3723
- inkHeight: 1188
3724
- },
3725
- trackpad_r_all_outline: {
3726
- code: 57440,
3727
- inkHeight: 1188
3728
- },
3729
- trackpad_r_down: {
3730
- code: 57441,
3731
- inkHeight: 1085
3732
- },
3733
- trackpad_r_down_outline: {
3734
- code: 57442,
3735
- inkHeight: 1085
3736
- },
3737
- trackpad_r_horizontal: {
3738
- code: 57443,
3739
- inkHeight: 983
3740
- },
3741
- trackpad_r_horizontal_outline: {
3742
- code: 57444,
3743
- inkHeight: 983
3744
- },
3745
- trackpad_r_left: {
3746
- code: 57445,
3747
- inkHeight: 983
3748
- },
3749
- trackpad_r_left_outline: {
3750
- code: 57446,
3751
- inkHeight: 983
3752
- },
3753
- trackpad_r_outline: {
3754
- code: 57447,
3755
- inkHeight: 983
3756
- },
3757
- trackpad_r_right: {
3758
- code: 57448,
3759
- inkHeight: 983
3760
- },
3761
- trackpad_r_right_outline: {
3762
- code: 57449,
3763
- inkHeight: 983
3764
- },
3765
- trackpad_r_up: {
3766
- code: 57450,
3767
- inkHeight: 1085
3768
- },
3769
- trackpad_r_up_outline: {
3770
- code: 57451,
3771
- inkHeight: 1085
3772
- },
3773
- trackpad_r_vertical: {
3774
- code: 57452,
3775
- inkHeight: 1188
3776
- },
3777
- trackpad_r_vertical_outline: {
3778
- code: 57453,
3779
- inkHeight: 1188
3780
- },
3781
- trackpad_right: {
3782
- code: 57454,
3783
- inkHeight: 983
3784
- },
3785
- trackpad_right_outline: {
3786
- code: 57455,
3787
- inkHeight: 983
3788
- },
3789
- trackpad_up: {
3790
- code: 57456,
3791
- inkHeight: 1085
3792
- },
3793
- trackpad_up_outline: {
3794
- code: 57457,
3795
- inkHeight: 1085
3796
- },
3797
- trackpad_vertical: {
3798
- code: 57458,
3799
- inkHeight: 1188
3800
- },
3801
- trackpad_vertical_outline: {
3802
- code: 57459,
3803
- inkHeight: 1188
3804
- }
3805
- };
3806
- const UNITS_PER_EM = 2048;
3807
- const CENTERING_OFFSET_EM = (1228 - UNITS_PER_EM / 2) / UNITS_PER_EM;
3808
- const GLYPHS = {
3809
- xbox: [
3810
- FF_GLYPH_XBOX.button_a,
3811
- FF_GLYPH_XBOX.button_b,
3812
- FF_GLYPH_XBOX.button_x,
3813
- FF_GLYPH_XBOX.button_y,
3814
- FF_GLYPH_XBOX.lb,
3815
- FF_GLYPH_XBOX.rb,
3816
- FF_GLYPH_XBOX.lt,
3817
- FF_GLYPH_XBOX.rt,
3818
- FF_GLYPH_XBOX.button_view,
3819
- FF_GLYPH_XBOX.button_menu,
3820
- FF_GLYPH_XBOX.stick_l_press,
3821
- FF_GLYPH_XBOX.stick_r_press,
3822
- FF_GLYPH_XBOX.dpad_up_outline,
3823
- FF_GLYPH_XBOX.dpad_down_outline,
3824
- FF_GLYPH_XBOX.dpad_left_outline,
3825
- FF_GLYPH_XBOX.dpad_right_outline
3826
- ],
3827
- playstation: [
3828
- FF_GLYPH_PLAYSTATION.button_cross,
3829
- FF_GLYPH_PLAYSTATION.button_circle,
3830
- FF_GLYPH_PLAYSTATION.button_square,
3831
- FF_GLYPH_PLAYSTATION.button_triangle,
3832
- FF_GLYPH_PLAYSTATION.trigger_l1,
3833
- FF_GLYPH_PLAYSTATION.trigger_r1,
3834
- FF_GLYPH_PLAYSTATION.trigger_l2,
3835
- FF_GLYPH_PLAYSTATION.trigger_r2,
3836
- FF_GLYPH_PLAYSTATION.playstation5_button_create,
3837
- FF_GLYPH_PLAYSTATION.playstation5_button_options,
3838
- FF_GLYPH_PLAYSTATION.button_l3,
3839
- FF_GLYPH_PLAYSTATION.button_r3,
3840
- FF_GLYPH_PLAYSTATION.dpad_up_outline,
3841
- FF_GLYPH_PLAYSTATION.dpad_down_outline,
3842
- FF_GLYPH_PLAYSTATION.dpad_left_outline,
3843
- FF_GLYPH_PLAYSTATION.dpad_right_outline
3844
- ],
3845
- switch: [
3846
- FF_GLYPH_SWITCH.button_b,
3847
- FF_GLYPH_SWITCH.button_a,
3848
- FF_GLYPH_SWITCH.button_y,
3849
- FF_GLYPH_SWITCH.button_x,
3850
- FF_GLYPH_SWITCH.button_l,
3851
- FF_GLYPH_SWITCH.button_r,
3852
- FF_GLYPH_SWITCH.button_zl,
3853
- FF_GLYPH_SWITCH.button_zr,
3854
- FF_GLYPH_SWITCH.button_minus,
3855
- FF_GLYPH_SWITCH.button_plus,
3856
- FF_GLYPH_SWITCH.stick_l_press,
3857
- FF_GLYPH_SWITCH.stick_r_press,
3858
- FF_GLYPH_SWITCH.dpad_up_outline,
3859
- FF_GLYPH_SWITCH.dpad_down_outline,
3860
- FF_GLYPH_SWITCH.dpad_left_outline,
3861
- FF_GLYPH_SWITCH.dpad_right_outline
3862
- ],
3863
- switch2: [
3864
- FF_GLYPH_SWITCH2.button_b,
3865
- FF_GLYPH_SWITCH2.button_a,
3866
- FF_GLYPH_SWITCH2.button_y,
3867
- FF_GLYPH_SWITCH2.button_x,
3868
- FF_GLYPH_SWITCH2.button_l,
3869
- FF_GLYPH_SWITCH2.button_r,
3870
- FF_GLYPH_SWITCH2.button_zl,
3871
- FF_GLYPH_SWITCH2.button_zr,
3872
- FF_GLYPH_SWITCH2.button_minus,
3873
- FF_GLYPH_SWITCH2.button_plus,
3874
- FF_GLYPH_SWITCH2.stick_l_press,
3875
- FF_GLYPH_SWITCH2.stick_r_press,
3876
- FF_GLYPH_SWITCH2.dpad_up_outline,
3877
- FF_GLYPH_SWITCH2.dpad_down_outline,
3878
- FF_GLYPH_SWITCH2.dpad_left_outline,
3879
- FF_GLYPH_SWITCH2.dpad_right_outline
3880
- ],
3881
- "steam-controller": [
3882
- FF_GLYPH_STEAM_CONTROLLER.button_a,
3883
- FF_GLYPH_STEAM_CONTROLLER.button_b,
3884
- FF_GLYPH_STEAM_CONTROLLER.button_x,
3885
- FF_GLYPH_STEAM_CONTROLLER.button_y,
3886
- FF_GLYPH_STEAM_CONTROLLER.lb,
3887
- FF_GLYPH_STEAM_CONTROLLER.rb,
3888
- FF_GLYPH_STEAM_CONTROLLER.lt,
3889
- FF_GLYPH_STEAM_CONTROLLER.rt,
3890
- FF_GLYPH_STEAM_CONTROLLER.button_back_icon,
3891
- FF_GLYPH_STEAM_CONTROLLER.button_start_icon,
3892
- FF_GLYPH_STEAM_CONTROLLER.stick_l_press,
3893
- FF_GLYPH_STEAM_CONTROLLER.pad,
3894
- FF_GLYPH_STEAM_CONTROLLER.dpad_up_outline,
3895
- FF_GLYPH_STEAM_CONTROLLER.dpad_down_outline,
3896
- FF_GLYPH_STEAM_CONTROLLER.dpad_left_outline,
3897
- FF_GLYPH_STEAM_CONTROLLER.dpad_right_outline
3898
- ],
3899
- "steam-deck": [
3900
- FF_GLYPH_STEAM_DECK.button_a,
3901
- FF_GLYPH_STEAM_DECK.button_b,
3902
- FF_GLYPH_STEAM_DECK.button_x,
3903
- FF_GLYPH_STEAM_DECK.button_y,
3904
- FF_GLYPH_STEAM_DECK.button_l1,
3905
- FF_GLYPH_STEAM_DECK.button_r1,
3906
- FF_GLYPH_STEAM_DECK.button_l2,
3907
- FF_GLYPH_STEAM_DECK.button_r2,
3908
- FF_GLYPH_STEAM_DECK.button_view,
3909
- FF_GLYPH_STEAM_DECK.button_options,
3910
- FF_GLYPH_STEAM_DECK.stick_l_press,
3911
- FF_GLYPH_STEAM_DECK.stick_r_press,
3912
- FF_GLYPH_STEAM_DECK.dpad_up_outline,
3913
- FF_GLYPH_STEAM_DECK.dpad_down_outline,
3914
- FF_GLYPH_STEAM_DECK.dpad_left_outline,
3915
- FF_GLYPH_STEAM_DECK.dpad_right_outline
3916
- ]
3917
- };
3918
- const DPAD_ALL_GLYPHS = {
3919
- xbox: FF_GLYPH_XBOX.dpad_all,
3920
- playstation: FF_GLYPH_PLAYSTATION.dpad_all,
3921
- switch: FF_GLYPH_SWITCH.dpad_all,
3922
- switch2: FF_GLYPH_SWITCH2.dpad_all,
3923
- "steam-controller": FF_GLYPH_STEAM_CONTROLLER.dpad_all,
3924
- "steam-deck": FF_GLYPH_STEAM_DECK.dpad_all
3925
- };
3926
- function ffGlyph(family, button) {
3927
- const glyph = button === 99 ? DPAD_ALL_GLYPHS[family] : GLYPHS[family][button];
3928
- if (!glyph) return void 0;
3929
- return {
3930
- text: String.fromCodePoint(glyph.code),
3931
- lineHeightEm: glyph.inkHeight / UNITS_PER_EM - CENTERING_OFFSET_EM
3932
- };
3933
- }
3934
- function ffCreateGlyphElement(family, button) {
3935
- const glyph = ffGlyph(family, button);
3936
- if (!glyph) return void 0;
3937
- const element = document.createElement("span");
3938
- element.className = `ff-glyph ff-glyph-${family}`;
3939
- element.style.lineHeight = `${glyph.lineHeightEm}em`;
3940
- element.textContent = glyph.text;
3941
- element.setAttribute("aria-hidden", "true");
3942
- return element;
3943
- }
3944
- function ffActionCandidates(registrations, action, isElementActive) {
3945
- const candidates = registrations.filter((registration) => registration.action === action && (registration.enabled?.() ?? true) && (!registration.element || isElementActive(registration.element)));
3946
- return sortBy(candidates, [(registration) => -registration.priority, (registration) => -registration.order]);
3947
- }
3948
- function ffActionDispatch(registrations, action, isElementActive) {
3949
- return ffActionCandidates(registrations, action, isElementActive).find((registration) => registration.handler() !== false);
3950
- }
3951
- function ffRegistrationLabel(registration) {
3952
- const label = registration?.label;
3953
- return typeof label === "function" ? label() : label;
3954
- }
3955
- function ffActivePrompts(registrations, actions, isElementActive) {
3956
- return actions.reduce((prompts, action) => {
3957
- const top = ffActionCandidates(registrations, action, isElementActive)[0];
3958
- const label = ffRegistrationLabel(top);
3959
- if (!label) return prompts;
3960
- const existing = prompts.find((prompt) => prompt.label === label);
3961
- if (existing) existing.actions.push(action);
3962
- else prompts.push({
3963
- actions: [action],
3964
- label
3965
- });
3966
- return prompts;
3967
- }, []).map(ffCollapseDirections);
3968
- }
3969
- function ffCollapseDirections(prompt) {
3970
- const isDirection = (action) => FF_DIRECTIONS.includes(action);
3971
- if (!FF_DIRECTIONS.every((direction) => prompt.actions.includes(direction))) return prompt;
3972
- return {
3973
- ...prompt,
3974
- actions: [...prompt.actions.filter((action) => !isDirection(action)), "dpad"]
3975
- };
3976
- }
3977
- const VENDOR_SONY = 1356;
3978
- const VENDOR_NINTENDO = 1406;
3979
- const VENDOR_VALVE = 10462;
3980
- const PRODUCT_STEAM_DECK = 4613;
3981
- const PRODUCT_STEAM_VIRTUAL_GAMEPAD = 4607;
3982
- const PRODUCTS_SWITCH2 = /* @__PURE__ */ new Set([
3983
- 8294,
3984
- 8295,
3985
- 8297,
3986
- 8307
3987
- ]);
3988
- const ID_PATTERNS = [/Vendor:\s*([0-9a-f]{4})\s*Product:\s*([0-9a-f]{4})/i, /^([0-9a-f]{1,4})-([0-9a-f]{1,4})-/i];
3989
- const NAME_FAMILIES = [[/dualsense|dualshock|playstation/i, "playstation"], [/nintendo|joy-con/i, "switch"]];
3990
- function ffVendorProduct(id) {
3991
- const match = ID_PATTERNS.map((pattern) => id.match(pattern)).find(Boolean);
3992
- return match ? [parseInt(match[1], 16), parseInt(match[2], 16)] : void 0;
3993
- }
3994
- function ffValveFamily(product) {
3995
- if (product === PRODUCT_STEAM_DECK) return "steam-deck";
3996
- if (product === PRODUCT_STEAM_VIRTUAL_GAMEPAD) return "xbox";
3997
- return "steam-controller";
3998
- }
3999
- function ffFamilyFromIds(vendor, product) {
4000
- if (vendor === VENDOR_SONY) return "playstation";
4001
- if (vendor === VENDOR_NINTENDO) return PRODUCTS_SWITCH2.has(product) ? "switch2" : "switch";
4002
- if (vendor === VENDOR_VALVE) return ffValveFamily(product);
4003
- }
4004
- function ffControllerFamily(id) {
4005
- const ids = ffVendorProduct(id);
4006
- return (ids ? ffFamilyFromIds(ids[0], ids[1]) : void 0) ?? NAME_FAMILIES.find(([pattern]) => pattern.test(id))?.[1] ?? "xbox";
4007
- }
4008
- const ANALOG_PRESS_THRESHOLD = .5;
4009
- function ffGamepadSnapshot(gamepad) {
4010
- return {
4011
- buttons: gamepad.buttons.map((button) => button.pressed || button.value > ANALOG_PRESS_THRESHOLD),
4012
- axes: [...gamepad.axes]
4013
- };
4014
- }
4015
- function ffButtonsJustPressed(previous, next) {
4016
- return next.buttons.flatMap((pressed, index) => pressed && !previous?.buttons[index] ? [index] : []);
4017
- }
4018
- function ffButtonsJustReleased(previous, next) {
4019
- return (previous?.buttons ?? []).flatMap((pressed, index) => pressed && !next.buttons[index] ? [index] : []);
4020
- }
4021
- const STANDARD_AXIS_COUNT = 4;
4022
- function ffAxesActive(axes, deadzone) {
4023
- return axes.slice(0, STANDARD_AXIS_COUNT).some((axis) => Math.abs(axis) > deadzone);
4024
- }
4025
- function ffGamepadMayTakeInput(activeIndex, index, msSinceActiveInput, takeoverMs) {
4026
- return activeIndex === void 0 || activeIndex === index || msSinceActiveInput >= takeoverMs;
4027
- }
4028
- function ffStickDirection(x, y, deadzone) {
4029
- if (Math.max(Math.abs(x), Math.abs(y)) <= deadzone) return void 0;
4030
- if (Math.abs(x) > Math.abs(y)) return x > 0 ? "right" : "left";
4031
- return y > 0 ? "down" : "up";
4032
- }
4033
- function ffHeldDirection(snapshot, actionMap, deadzone, useStick = true) {
4034
- const dpad = FF_DIRECTIONS.find((direction) => snapshot.buttons[actionMap[direction]]);
4035
- if (dpad || !useStick) return dpad;
4036
- return ffStickDirection(snapshot.axes[0] ?? 0, snapshot.axes[1] ?? 0, deadzone);
4037
- }
4038
- function ffStickVector(x, y, deadzone) {
4039
- const length = Math.hypot(x, y);
4040
- if (length <= deadzone) return {
4041
- x: 0,
4042
- y: 0
4043
- };
4044
- const scale = Math.min(1, (length - deadzone) / (1 - deadzone)) / length;
4045
- return {
4046
- x: x * scale,
4047
- y: y * scale
4048
- };
4049
- }
4050
- function ffRepeatFires(heldMs, delayMs, intervalMs) {
4051
- return heldMs < delayMs ? 1 : 2 + Math.floor((heldMs - delayMs) / intervalMs);
4052
- }
4053
948
  const MODE_SWITCH_DEADZONE = .5;
4054
949
  const STICK_DEADZONE = .2;
4055
950
  const MOUSE_MOVE_THRESHOLD = 3;
@@ -4635,18 +1530,6 @@ i0.ɵɵngDeclareClassMetadata({
4635
1530
  }],
4636
1531
  ctorParameters: () => []
4637
1532
  });
4638
- const MODIFIER_KEYS = {
4639
- control: (event) => event.ctrlKey,
4640
- alt: (event) => event.altKey,
4641
- shift: (event) => event.shiftKey,
4642
- meta: (event) => event.metaKey
4643
- };
4644
- function ffHotkeyMatches(event, key) {
4645
- const segments = key.toLowerCase().split(".");
4646
- const targetKey = segments.pop() ?? "";
4647
- if (!(targetKey === "space" ? event.key === " " : event.key.toLowerCase() === targetKey)) return false;
4648
- return segments.every((modifier) => MODIFIER_KEYS[modifier]?.(event) ?? false);
4649
- }
4650
1533
  var FFButtonComponent = class FFButtonComponent {
4651
1534
  host = inject(ElementRef).nativeElement;
4652
1535
  feedback = inject(FF_BUTTON_FEEDBACK, { optional: true });
@@ -5366,76 +2249,6 @@ i0.ɵɵngDeclareClassMetadata({
5366
2249
  }]
5367
2250
  }
5368
2251
  });
5369
- const DIRECTION_AXES = {
5370
- up: {
5371
- axis: "y",
5372
- sign: -1
5373
- },
5374
- down: {
5375
- axis: "y",
5376
- sign: 1
5377
- },
5378
- left: {
5379
- axis: "x",
5380
- sign: -1
5381
- },
5382
- right: {
5383
- axis: "x",
5384
- sign: 1
5385
- }
5386
- };
5387
- const CROSS_AXIS_WEIGHT = 2;
5388
- const CROSS_CENTER_WEIGHT = .1;
5389
- const EDGE_TOLERANCE = 2;
5390
- function ffSpan(rect, axis) {
5391
- return axis === "x" ? [rect.left, rect.right] : [rect.top, rect.bottom];
5392
- }
5393
- function ffSpanGap([aStart, aEnd], [bStart, bEnd]) {
5394
- return Math.max(0, bStart - aEnd, aStart - bEnd);
5395
- }
5396
- function ffSpanCenter([start, end]) {
5397
- return (start + end) / 2;
5398
- }
5399
- function ffDirectionalScore(from, to, direction) {
5400
- const { axis, sign } = DIRECTION_AXES[direction];
5401
- const cross = axis === "x" ? "y" : "x";
5402
- const [fromStart, fromEnd] = ffSpan(from, axis);
5403
- const [toStart, toEnd] = ffSpan(to, axis);
5404
- if (!(sign > 0 ? toStart >= fromEnd - EDGE_TOLERANCE : toEnd <= fromStart + EDGE_TOLERANCE)) return void 0;
5405
- const distance = Math.max(0, sign > 0 ? toStart - fromEnd : fromStart - toEnd);
5406
- const drift = ffSpanGap(ffSpan(from, cross), ffSpan(to, cross));
5407
- const centerDrift = Math.abs(ffSpanCenter(ffSpan(to, cross)) - ffSpanCenter(ffSpan(from, cross)));
5408
- return distance + drift * CROSS_AXIS_WEIGHT + centerDrift * CROSS_CENTER_WEIGHT;
5409
- }
5410
- function ffNearestInDirection(from, candidates, direction) {
5411
- return candidates.reduce((best, candidate, index) => {
5412
- const score = ffDirectionalScore(from, candidate, direction);
5413
- return score !== void 0 && score < best.score ? {
5414
- index,
5415
- score
5416
- } : best;
5417
- }, {
5418
- index: -1,
5419
- score: Infinity
5420
- }).index;
5421
- }
5422
- function ffCenterDistance(a, b) {
5423
- const dx = (a.left + a.right - b.left - b.right) / 2;
5424
- const dy = (a.top + a.bottom - b.top - b.bottom) / 2;
5425
- return Math.hypot(dx, dy);
5426
- }
5427
- function ffNearestTo(from, candidates) {
5428
- return candidates.reduce((best, candidate, index) => {
5429
- const distance = ffCenterDistance(from, candidate);
5430
- return distance < best.distance ? {
5431
- index,
5432
- distance
5433
- } : best;
5434
- }, {
5435
- index: -1,
5436
- distance: Infinity
5437
- }).index;
5438
- }
5439
2252
  const FF_FOCUS_EDGE_EVENT = "ffFocusEdge";
5440
2253
  const FOCUS_PRIORITY = -100;
5441
2254
  const FOCUSABLE_SELECTOR = [
@@ -5701,17 +2514,6 @@ i0.ɵɵngDeclareClassMetadata({
5701
2514
  }],
5702
2515
  ctorParameters: () => []
5703
2516
  });
5704
- const FF_GAMEPAD_PRIORITY = {
5705
- dialog: 300,
5706
- tutorial: 275,
5707
- popover: 260,
5708
- pauseMenu: 250,
5709
- modal: 200,
5710
- overlay: 100,
5711
- pageMode: 10,
5712
- page: 0,
5713
- global: -50
5714
- };
5715
2517
  var FFButtonMenuComponent = class FFButtonMenuComponent {
5716
2518
  anim = inject(FFMotionService);
5717
2519
  t = inject(FF_TRANSLATE);
@@ -6718,29 +3520,6 @@ i0.ɵɵngDeclareClassMetadata({
6718
3520
  }]
6719
3521
  }] }
6720
3522
  });
6721
- const modalStack = signal([], ...ngDevMode ? [{ debugName: "modalStack" }] : /* istanbul ignore next */ []);
6722
- function ffModalOpen(id) {
6723
- modalStack.update((stack) => stack.includes(id) ? stack : [...stack, id]);
6724
- }
6725
- function ffModalClose(id) {
6726
- modalStack.update((stack) => stack.filter((openId) => openId !== id));
6727
- }
6728
- function ffModalCloseTop() {
6729
- modalStack.update((stack) => stack.slice(0, -1));
6730
- }
6731
- function ffModalCloseAll() {
6732
- modalStack.set([]);
6733
- }
6734
- function ffModalIsOpen(id) {
6735
- return modalStack().includes(id);
6736
- }
6737
- function ffModalIsTopmost(id) {
6738
- const stack = modalStack();
6739
- return stack.length > 0 && stack[stack.length - 1] === id;
6740
- }
6741
- function ffModalHasAnyOpen() {
6742
- return modalStack().length > 0;
6743
- }
6744
3523
  var FFModalComponent = class FFModalComponent {
6745
3524
  modalId = input.required(...ngDevMode ? [{ debugName: "modalId" }] : /* istanbul ignore next */ []);
6746
3525
  allowEscToClose = input(true, ...ngDevMode ? [{ debugName: "allowEscToClose" }] : /* istanbul ignore next */ []);
@@ -7564,16 +4343,6 @@ i0.ɵɵngDeclareClassMetadata({
7564
4343
  }]
7565
4344
  }
7566
4345
  });
7567
- const CALLOUT_WIDTH = 320;
7568
- const CALLOUT_HEIGHT_ESTIMATE = 160;
7569
- const CALLOUT_GAP = 12;
7570
- function ffSpotlightCalloutPosition(rect, viewportWidth, viewportHeight) {
7571
- if (!rect) return void 0;
7572
- return {
7573
- top: viewportHeight - rect.bottom > 172 ? rect.bottom + CALLOUT_GAP : Math.max(rect.top - CALLOUT_HEIGHT_ESTIMATE - CALLOUT_GAP, CALLOUT_GAP),
7574
- left: clamp(rect.left, CALLOUT_GAP, viewportWidth - CALLOUT_WIDTH - CALLOUT_GAP)
7575
- };
7576
- }
7577
4346
  var FFSpotlightComponent = class FFSpotlightComponent {
7578
4347
  anim = inject(FFMotionService);
7579
4348
  rect = input(...ngDevMode ? [void 0, { debugName: "rect" }] : /* istanbul ignore next */ []);
@@ -7775,18 +4544,6 @@ i0.ɵɵngDeclareClassMetadata({
7775
4544
  }]
7776
4545
  }
7777
4546
  });
7778
- const LABEL_SELECTOR = ".type-label, .label-text, label, .type-section-title";
7779
- const LABEL_SEARCH_DEPTH = 4;
7780
- function ffNearestControlLabel(element) {
7781
- let node = element;
7782
- for (let depth = 0; node && depth < LABEL_SEARCH_DEPTH; depth++) {
7783
- for (let sibling = node.previousElementSibling; sibling; sibling = sibling.previousElementSibling) {
7784
- const text = (sibling.matches(LABEL_SELECTOR) ? sibling : sibling.querySelector(LABEL_SELECTOR))?.textContent?.trim();
7785
- if (text) return text;
7786
- }
7787
- node = node.parentElement;
7788
- }
7789
- }
7790
4547
  var FFListRowDirective = class FFListRowDirective {
7791
4548
  ffListRowSelected = input(false, ...ngDevMode ? [{ debugName: "ffListRowSelected" }] : /* istanbul ignore next */ []);
7792
4549
  disabled = input(false, ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
@@ -7918,14 +4675,6 @@ i0.ɵɵngDeclareClassMetadata({
7918
4675
  args: [{ providedIn: "root" }]
7919
4676
  }]
7920
4677
  });
7921
- function ffStepDecimals(step) {
7922
- const [, fraction = ""] = String(step).split(".");
7923
- return fraction.length;
7924
- }
7925
- function ffStepNumber(value, steps, { min, max, step }) {
7926
- const next = clamp(value + steps * step, min ?? -Infinity, max ?? Infinity);
7927
- return Number(next.toFixed(ffStepDecimals(step)));
7928
- }
7929
4678
  var FFPadActionDirective = class FFPadActionDirective {
7930
4679
  host = inject(ElementRef).nativeElement;
7931
4680
  row = inject(FFFocusRowDirective, { optional: true });
@@ -8255,18 +5004,6 @@ i0.ɵɵngDeclareClassMetadata({
8255
5004
  }]
8256
5005
  }] }
8257
5006
  });
8258
- function ffGroupSelectOptions(options) {
8259
- return options.reduce((groups, option) => {
8260
- if (option.children) return [...groups, {
8261
- header: option,
8262
- items: []
8263
- }];
8264
- const last = groups.at(-1);
8265
- if (last) last.items.push(option);
8266
- else groups.push({ items: [option] });
8267
- return groups;
8268
- }, []);
8269
- }
8270
5007
  var FFSelectPopupService = class FFSelectPopupService {
8271
5008
  requestSignal = signal(void 0, ...ngDevMode ? [{ debugName: "requestSignal" }] : /* istanbul ignore next */ []);
8272
5009
  request = this.requestSignal.asReadonly();
@@ -8305,19 +5042,6 @@ i0.ɵɵngDeclareClassMetadata({
8305
5042
  args: [{ providedIn: "root" }]
8306
5043
  }]
8307
5044
  });
8308
- function ffSearchFold(text) {
8309
- return text.normalize("NFD").replace(/\p{Diacritic}/gu, "").toLowerCase();
8310
- }
8311
- function ffSelectSearchMatches(term, text) {
8312
- return ffSearchFold(text).includes(ffSearchFold(term));
8313
- }
8314
- function ffTitleCase(text) {
8315
- return text.replace(/(^|\s)(\p{L})/gu, (_, space, letter) => space + letter.toUpperCase());
8316
- }
8317
- function ffSelectTitleFromPlaceholder(placeholder) {
8318
- const core = (placeholder ?? "").replace(/^\s*(select|choose|pick)\s+(an?\s+|the\s+)?/i, "").replace(/(\.{3}|…)\s*$/, "").trim();
8319
- return core ? ffTitleCase(core) : void 0;
8320
- }
8321
5045
  var FFSelectDirective = class FFSelectDirective {
8322
5046
  t = inject(FF_TRANSLATE);
8323
5047
  searchText = inject(FF_SELECT_SEARCH_TEXT);
@@ -9496,18 +6220,6 @@ i0.ɵɵngDeclareClassMetadata({
9496
6220
  }]
9497
6221
  }
9498
6222
  });
9499
- const cssColorCache = /* @__PURE__ */ new Map();
9500
- function ffCssColorVar(variable) {
9501
- const cached = cssColorCache.get(variable);
9502
- if (cached) return cached;
9503
- const color = getComputedStyle(document.documentElement).getPropertyValue(variable).trim();
9504
- if (!color) return "#ffffff";
9505
- cssColorCache.set(variable, color);
9506
- return color;
9507
- }
9508
- function ffCssColorCacheClear() {
9509
- cssColorCache.clear();
9510
- }
9511
6223
  function ffBindDocumentTheme(config) {
9512
6224
  const reducedMotion = inject(FF_REDUCED_MOTION);
9513
6225
  effect(() => {
@@ -9520,9 +6232,6 @@ function ffBindDocumentTheme(config) {
9520
6232
  document.documentElement.style.setProperty("--ui-scale", String(config.uiScale()));
9521
6233
  });
9522
6234
  }
9523
- function ffIsPageVisible() {
9524
- return !document.hidden;
9525
- }
9526
6235
  var FFDisallowFocusDirective = class FFDisallowFocusDirective {
9527
6236
  ffDisallowFocus = input(true, {
9528
6237
  ...ngDevMode ? { debugName: "ffDisallowFocus" } : /* istanbul ignore next */ {},
@@ -9817,11 +6526,6 @@ i0.ɵɵngDeclareClassMetadata({
9817
6526
  }],
9818
6527
  ctorParameters: () => []
9819
6528
  });
9820
- function ffCycleStep(items, current, direction) {
9821
- const index = items.indexOf(current);
9822
- if (index === -1) return items[0];
9823
- return items[(index + direction + items.length) % items.length];
9824
- }
9825
6529
  const OVERLAY_BLOCKED_ACTIONS = [
9826
6530
  "tabPrev",
9827
6531
  "tabNext",
@@ -9922,20 +6626,6 @@ function ffGamepadConfirmFirst(mode, swal, run) {
9922
6626
  }
9923
6627
  run();
9924
6628
  }
9925
- function inSwal(event) {
9926
- return !!event.target?.closest?.(".swal2-container");
9927
- }
9928
- function ffHotkeysBlockOutside(host) {
9929
- const onKeydown = (event) => {
9930
- if (event.key === "Escape" || ffModalHasAnyOpen() || inSwal(event)) return;
9931
- event.stopImmediatePropagation();
9932
- const isShortcut = event.ctrlKey || event.metaKey;
9933
- if (event.key === "Tab" || isShortcut || host.contains(event.target)) return;
9934
- event.preventDefault();
9935
- };
9936
- window.addEventListener("keydown", onKeydown, { capture: true });
9937
- return () => window.removeEventListener("keydown", onKeydown, { capture: true });
9938
- }
9939
6629
  var FFModalCloseDirective = class FFModalCloseDirective {
9940
6630
  ffModalCloseTop = ffModalCloseTop;
9941
6631
  static ɵfac = i0.ɵɵngDeclareFactory({
@@ -10422,24 +7112,6 @@ i0.ɵɵngDeclareClassMetadata({
10422
7112
  }]
10423
7113
  }] }
10424
7114
  });
10425
- const targets = /* @__PURE__ */ new Map();
10426
- const registryVersion = signal(0, ...ngDevMode ? [{ debugName: "registryVersion" }] : /* istanbul ignore next */ []);
10427
- function ffSpotlightTargetRegister(key, elementRef) {
10428
- targets.set(key, elementRef);
10429
- registryVersion.update((v) => v + 1);
10430
- }
10431
- function ffSpotlightTargetUnregister(key) {
10432
- targets.delete(key);
10433
- registryVersion.update((v) => v + 1);
10434
- }
10435
- function ffSpotlightTargetHas(key) {
10436
- registryVersion();
10437
- return targets.has(key);
10438
- }
10439
- function ffSpotlightTargetRect(key) {
10440
- registryVersion();
10441
- return targets.get(key)?.nativeElement?.getBoundingClientRect();
10442
- }
10443
7115
  var FFSpotlightTargetDirective = class FFSpotlightTargetDirective {
10444
7116
  elementRef = inject(ElementRef);
10445
7117
  onTargetClick = inject(FF_SPOTLIGHT_TARGET_CLICK, { optional: true });
@@ -10501,6 +7173,6 @@ i0.ɵɵngDeclareClassMetadata({
10501
7173
  }]
10502
7174
  }] }
10503
7175
  });
10504
- export { FFAlertComponent, FFAllowFocusDirective, FFAtlasAnimationComponent, FFAtlasImageComponent, FFBadgeCountComponent, FFBarProgressComponent, FFBarPromptsComponent, FFBlankSlateComponent, FFButtonCloseComponent, FFButtonComponent, FFButtonExternalLinkComponent, FFButtonGlowDirective, FFButtonMenuComponent, FFButtonSplitComponent, FFCardPageComponent, FFCardSectionComponent, FFDisallowFocusDirective, FFFadeInDirective, FFFloatDeltaDirective, FFFocusMemoryDirective, FFFocusOnChangeDirective, FFFocusRowDirective, FFFocusScopeDirective, FFFocusService, FFFocusSkipDirective, FFIconComponent, FFIconHelpComponent, FFIconNoteComponent, FFIconUnknownComponent, FFInputPromptComponent, FFInputService, FFKeyboardDirective, FFListReflowDirective, FFListReflowDragDirective, FFListRowDirective, FFModalCloseDirective, FFModalComponent, FFModalOpenDirective, FFMotionService, FFNumberPopupComponent, FFNumberPopupService, FFPadActionDirective, FFPageBlankComponent, FFPagePagedGridComponent, FFReorderItemDirective, FFReorderListDirective, FFSelectDirective, FFSelectPopupComponent, FFSelectPopupService, FFSfxDirective, FFShimmerDirective, FFSignedNumberPipe, FFSlotIconBlankComponent, FFSpotlightComponent, FFSpotlightTargetDirective, FFStepperDirective, FFTabDirective, FFTabsDirective, FFTeleportOutletDirective, FFTeleportService, FFTeleportToDirective, FFTextNumberTweenComponent, FFTranslatePipe, FFTriggerTabsDirective, FF_BUTTON_FEEDBACK, FF_CONTROLLER_FAMILY_RESOLVER, FF_DEFAULT_ICONS, FF_DIRECTIONS, FF_DPAD_ALL_BUTTON, FF_FOCUS_EDGE_EVENT, FF_GAMEPAD_PRIORITY, FF_GLYPH_PLAYSTATION, FF_GLYPH_STEAM_CONTROLLER, FF_GLYPH_STEAM_DECK, FF_GLYPH_SWITCH, FF_GLYPH_SWITCH2, FF_GLYPH_XBOX, FF_I18N_DEFAULTS, FF_ICONS, FF_ICON_SIZE_VALUES, FF_PLACEHOLDER_PATTERN, FF_REDUCED_MOTION, FF_SELECT_SEARCH_TEXT, FF_SPOTLIGHT_TARGET_CLICK, FF_SPRITE_FRAMES, FF_STANDARD_BUTTON, FF_TEXT_KEYBOARD, FF_TRANSLATE, ffActionCandidates, ffActionDispatch, ffActionForButton, ffActionMap, ffActivePrompts, ffAxesActive, ffBindDisabledTooltip, ffBindDocumentTheme, ffBindSwalGamepad, ffButtonsJustPressed, ffButtonsJustReleased, ffControllerFamily, ffCreateGlyphElement, ffCssColorCacheClear, ffCssColorVar, ffCycleStep, ffFillPlaceholders, ffGamepadBindFocusTips, ffGamepadBindInspectTips, ffGamepadBlockBehindOverlay, ffGamepadConfirmFirst, ffGamepadMayTakeInput, ffGamepadOn, ffGamepadSnapshot, ffGlyph, ffGroupSelectOptions, ffHeldDirection, ffHotkeyMatches, ffHotkeysBlockOutside, ffInjectTweenedNumber, ffIsPageVisible, ffModalClose, ffModalCloseAll, ffModalCloseTop, ffModalHasAnyOpen, ffModalIsOpen, ffModalIsTopmost, ffModalOpen, ffNearestControlLabel, ffNearestInDirection, ffNearestTo, ffReducedMotionSignal, ffRepeatFires, ffSelectSearchMatches, ffSelectSearchTextDefault, ffSelectTitleFromPlaceholder, ffSpotlightCalloutPosition, ffSpotlightTargetHas, ffSpotlightTargetRect, ffSpotlightTargetRegister, ffSpotlightTargetUnregister, ffSpriteFrameDefault, ffStepNumber, ffStickDirection, ffStickVector, ffSwalGamepadShown, ffTitleCase, ffTranslateDefault };
7176
+ export { FFAlertComponent, FFAllowFocusDirective, FFAtlasAnimationComponent, FFAtlasImageComponent, FFBadgeCountComponent, FFBarProgressComponent, FFBarPromptsComponent, FFBlankSlateComponent, FFButtonCloseComponent, FFButtonComponent, FFButtonExternalLinkComponent, FFButtonGlowDirective, FFButtonMenuComponent, FFButtonSplitComponent, FFCardPageComponent, FFCardSectionComponent, FFDisallowFocusDirective, FFFadeInDirective, FFFloatDeltaDirective, FFFocusMemoryDirective, FFFocusOnChangeDirective, FFFocusRowDirective, FFFocusScopeDirective, FFFocusService, FFFocusSkipDirective, FFIconComponent, FFIconHelpComponent, FFIconNoteComponent, FFIconUnknownComponent, FFInputPromptComponent, FFInputService, FFKeyboardDirective, FFListReflowDirective, FFListReflowDragDirective, FFListRowDirective, FFModalCloseDirective, FFModalComponent, FFModalOpenDirective, FFMotionService, FFNumberPopupComponent, FFNumberPopupService, FFPadActionDirective, FFPageBlankComponent, FFPagePagedGridComponent, FFReorderItemDirective, FFReorderListDirective, FFSelectDirective, FFSelectPopupComponent, FFSelectPopupService, FFSfxDirective, FFShimmerDirective, FFSignedNumberPipe, FFSlotIconBlankComponent, FFSpotlightComponent, FFSpotlightTargetDirective, FFStepperDirective, FFTabDirective, FFTabsDirective, FFTeleportOutletDirective, FFTeleportService, FFTeleportToDirective, FFTextNumberTweenComponent, FFTranslatePipe, FFTriggerTabsDirective, FF_BUTTON_FEEDBACK, FF_CONTROLLER_FAMILY_RESOLVER, FF_DEFAULT_ICONS, FF_FOCUS_EDGE_EVENT, FF_ICONS, FF_ICON_SIZE_VALUES, FF_REDUCED_MOTION, FF_SELECT_SEARCH_TEXT, FF_SPOTLIGHT_TARGET_CLICK, FF_SPRITE_FRAMES, FF_TEXT_KEYBOARD, FF_TRANSLATE, ffBindDisabledTooltip, ffBindDocumentTheme, ffBindSwalGamepad, ffGamepadBindFocusTips, ffGamepadBindInspectTips, ffGamepadBlockBehindOverlay, ffGamepadConfirmFirst, ffGamepadOn, ffInjectTweenedNumber, ffSwalGamepadShown };
10505
7177
 
10506
7178
  //# sourceMappingURL=felfhenor-ui.mjs.map