@sbb-esta/lyne-elements-experimental 5.2.0 → 5.4.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.
- package/custom-elements.json +865 -4
- package/development/easter-egg/easter-egg.component.d.ts +80 -0
- package/development/easter-egg/i18n.d.ts +10 -0
- package/development/easter-egg/svgs.d.ts +10 -0
- package/development/easter-egg.d.ts +1 -0
- package/development/easter-egg.js +9 -0
- package/development/easter-egg.pure.d.ts +2 -0
- package/development/easter-egg.pure.js +758 -0
- package/development/seat-reservation.pure.js +6 -6
- package/easter-egg.js +1 -0
- package/easter-egg.pure.js +567 -0
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/package.json +12 -2
- package/seat-reservation.pure.js +1 -1
package/custom-elements.json
CHANGED
|
@@ -952,6 +952,867 @@
|
|
|
952
952
|
}
|
|
953
953
|
]
|
|
954
954
|
},
|
|
955
|
+
{
|
|
956
|
+
"kind": "javascript-module",
|
|
957
|
+
"path": "easter-egg/i18n.js",
|
|
958
|
+
"declarations": [
|
|
959
|
+
{
|
|
960
|
+
"kind": "variable",
|
|
961
|
+
"name": "i18nSnakeTitle",
|
|
962
|
+
"type": {
|
|
963
|
+
"text": "Record<string, string>"
|
|
964
|
+
},
|
|
965
|
+
"default": "{ de: 'Swiss Boa Express.', en: 'Swiss Boa Express.', fr: 'Swiss Boa Express.', it: 'Swiss Boa Express.', }",
|
|
966
|
+
"description": "Localized dialog title."
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
"kind": "variable",
|
|
970
|
+
"name": "i18nSnakeScore",
|
|
971
|
+
"type": {
|
|
972
|
+
"text": "Record<string, string>"
|
|
973
|
+
},
|
|
974
|
+
"default": "{ de: 'Punkte', en: 'Score', fr: 'Score', it: 'Punteggio', }",
|
|
975
|
+
"description": "Localized label shown next to the current score value."
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
"kind": "variable",
|
|
979
|
+
"name": "i18nSnakeHighScore",
|
|
980
|
+
"type": {
|
|
981
|
+
"text": "Record<string, string>"
|
|
982
|
+
},
|
|
983
|
+
"default": "{ de: 'Highscore', en: 'Best', fr: 'Record', it: 'Record', }",
|
|
984
|
+
"description": "Localized label shown next to the current session's high score value."
|
|
985
|
+
},
|
|
986
|
+
{
|
|
987
|
+
"kind": "variable",
|
|
988
|
+
"name": "i18nSnakeStart",
|
|
989
|
+
"type": {
|
|
990
|
+
"text": "Record<string, string>"
|
|
991
|
+
},
|
|
992
|
+
"default": "{ de: 'Starten', en: 'Start', fr: 'Démarrer', it: 'Avvia', }",
|
|
993
|
+
"description": "Localized label for the button that starts the game."
|
|
994
|
+
},
|
|
995
|
+
{
|
|
996
|
+
"kind": "variable",
|
|
997
|
+
"name": "i18nSnakeRestart",
|
|
998
|
+
"type": {
|
|
999
|
+
"text": "Record<string, string>"
|
|
1000
|
+
},
|
|
1001
|
+
"default": "{ de: 'Neu starten', en: 'Restart', fr: 'Recommencer', it: 'Ricomincia', }",
|
|
1002
|
+
"description": "Localized label for the button that restarts the game after game-over."
|
|
1003
|
+
}
|
|
1004
|
+
],
|
|
1005
|
+
"exports": [
|
|
1006
|
+
{
|
|
1007
|
+
"kind": "js",
|
|
1008
|
+
"name": "i18nSnakeTitle",
|
|
1009
|
+
"declaration": {
|
|
1010
|
+
"name": "i18nSnakeTitle",
|
|
1011
|
+
"module": "easter-egg/i18n.js"
|
|
1012
|
+
}
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
"kind": "js",
|
|
1016
|
+
"name": "i18nSnakeScore",
|
|
1017
|
+
"declaration": {
|
|
1018
|
+
"name": "i18nSnakeScore",
|
|
1019
|
+
"module": "easter-egg/i18n.js"
|
|
1020
|
+
}
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
"kind": "js",
|
|
1024
|
+
"name": "i18nSnakeHighScore",
|
|
1025
|
+
"declaration": {
|
|
1026
|
+
"name": "i18nSnakeHighScore",
|
|
1027
|
+
"module": "easter-egg/i18n.js"
|
|
1028
|
+
}
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
"kind": "js",
|
|
1032
|
+
"name": "i18nSnakeStart",
|
|
1033
|
+
"declaration": {
|
|
1034
|
+
"name": "i18nSnakeStart",
|
|
1035
|
+
"module": "easter-egg/i18n.js"
|
|
1036
|
+
}
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
"kind": "js",
|
|
1040
|
+
"name": "i18nSnakeRestart",
|
|
1041
|
+
"declaration": {
|
|
1042
|
+
"name": "i18nSnakeRestart",
|
|
1043
|
+
"module": "easter-egg/i18n.js"
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
]
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
"kind": "javascript-module",
|
|
1050
|
+
"path": "easter-egg/svgs.js",
|
|
1051
|
+
"declarations": [
|
|
1052
|
+
{
|
|
1053
|
+
"kind": "variable",
|
|
1054
|
+
"name": "gridSvgUrl",
|
|
1055
|
+
"type": {
|
|
1056
|
+
"text": "string"
|
|
1057
|
+
},
|
|
1058
|
+
"description": "The game board (grid) background image."
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
"kind": "variable",
|
|
1062
|
+
"name": "trainSvgUrls",
|
|
1063
|
+
"type": {
|
|
1064
|
+
"text": "readonly string[]"
|
|
1065
|
+
},
|
|
1066
|
+
"description": "The 14 train sprite images, indexed the same way as the original snake.js\nspritesheet: 0/1 straight body segments, 2..5 corner pieces, 6..9 heads,\n10..13 tails."
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
"kind": "variable",
|
|
1070
|
+
"name": "foodSvgUrls",
|
|
1071
|
+
"type": {
|
|
1072
|
+
"text": "readonly string[]"
|
|
1073
|
+
},
|
|
1074
|
+
"description": "The 8 food sprite images."
|
|
1075
|
+
}
|
|
1076
|
+
],
|
|
1077
|
+
"exports": [
|
|
1078
|
+
{
|
|
1079
|
+
"kind": "js",
|
|
1080
|
+
"name": "gridSvgUrl",
|
|
1081
|
+
"declaration": {
|
|
1082
|
+
"name": "gridSvgUrl",
|
|
1083
|
+
"module": "easter-egg/svgs.js"
|
|
1084
|
+
}
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
"kind": "js",
|
|
1088
|
+
"name": "trainSvgUrls",
|
|
1089
|
+
"declaration": {
|
|
1090
|
+
"name": "trainSvgUrls",
|
|
1091
|
+
"module": "easter-egg/svgs.js"
|
|
1092
|
+
}
|
|
1093
|
+
},
|
|
1094
|
+
{
|
|
1095
|
+
"kind": "js",
|
|
1096
|
+
"name": "foodSvgUrls",
|
|
1097
|
+
"declaration": {
|
|
1098
|
+
"name": "foodSvgUrls",
|
|
1099
|
+
"module": "easter-egg/svgs.js"
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
]
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
"kind": "javascript-module",
|
|
1106
|
+
"path": "easter-egg/easter-egg.component.js",
|
|
1107
|
+
"declarations": [
|
|
1108
|
+
{
|
|
1109
|
+
"kind": "class",
|
|
1110
|
+
"description": "A hidden easter egg dialog rendering a canvas-based Snake game.\n\nUse the inherited `open()`, `close()` methods and the `isOpen` getter\nto control the dialog. The dialog can also be triggered from any element\nvia the inherited `trigger` id-reference attribute. Score is exposed via\nthe readonly `score` getter.",
|
|
1111
|
+
"name": "SbbEasterEggElement",
|
|
1112
|
+
"members": [
|
|
1113
|
+
{
|
|
1114
|
+
"kind": "field",
|
|
1115
|
+
"name": "elementName",
|
|
1116
|
+
"type": {
|
|
1117
|
+
"text": "string"
|
|
1118
|
+
},
|
|
1119
|
+
"privacy": "public",
|
|
1120
|
+
"static": true,
|
|
1121
|
+
"readonly": true,
|
|
1122
|
+
"default": "'sbb-easter-egg'"
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
"kind": "field",
|
|
1126
|
+
"name": "elementDependencies",
|
|
1127
|
+
"type": {
|
|
1128
|
+
"text": "SbbElementType[]"
|
|
1129
|
+
},
|
|
1130
|
+
"privacy": "public",
|
|
1131
|
+
"static": true,
|
|
1132
|
+
"default": "[ SbbDialogCloseButtonElement, SbbDialogTitleElement, SbbDialogContentElement, SbbButtonElement, ]"
|
|
1133
|
+
},
|
|
1134
|
+
{
|
|
1135
|
+
"kind": "field",
|
|
1136
|
+
"name": "score",
|
|
1137
|
+
"type": {
|
|
1138
|
+
"text": "number"
|
|
1139
|
+
},
|
|
1140
|
+
"privacy": "public",
|
|
1141
|
+
"description": "The current game score (number of food items eaten in the current run).",
|
|
1142
|
+
"readonly": true,
|
|
1143
|
+
"default": "0"
|
|
1144
|
+
},
|
|
1145
|
+
{
|
|
1146
|
+
"kind": "field",
|
|
1147
|
+
"name": "highScore",
|
|
1148
|
+
"type": {
|
|
1149
|
+
"text": "number"
|
|
1150
|
+
},
|
|
1151
|
+
"privacy": "public",
|
|
1152
|
+
"description": "The highest score reached in the current dialog session. Reset on close.",
|
|
1153
|
+
"readonly": true,
|
|
1154
|
+
"default": "0"
|
|
1155
|
+
},
|
|
1156
|
+
{
|
|
1157
|
+
"kind": "field",
|
|
1158
|
+
"name": "_score",
|
|
1159
|
+
"type": {
|
|
1160
|
+
"text": "number"
|
|
1161
|
+
},
|
|
1162
|
+
"privacy": "private",
|
|
1163
|
+
"default": "0"
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
"kind": "field",
|
|
1167
|
+
"name": "_highScore",
|
|
1168
|
+
"type": {
|
|
1169
|
+
"text": "number"
|
|
1170
|
+
},
|
|
1171
|
+
"privacy": "private",
|
|
1172
|
+
"default": "0"
|
|
1173
|
+
},
|
|
1174
|
+
{
|
|
1175
|
+
"kind": "field",
|
|
1176
|
+
"name": "_gameOver",
|
|
1177
|
+
"type": {
|
|
1178
|
+
"text": "boolean"
|
|
1179
|
+
},
|
|
1180
|
+
"privacy": "private",
|
|
1181
|
+
"default": "false"
|
|
1182
|
+
},
|
|
1183
|
+
{
|
|
1184
|
+
"kind": "field",
|
|
1185
|
+
"name": "_started",
|
|
1186
|
+
"type": {
|
|
1187
|
+
"text": "boolean"
|
|
1188
|
+
},
|
|
1189
|
+
"privacy": "private",
|
|
1190
|
+
"default": "false"
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
"kind": "field",
|
|
1194
|
+
"name": "_canvas",
|
|
1195
|
+
"type": {
|
|
1196
|
+
"text": "HTMLCanvasElement | null"
|
|
1197
|
+
},
|
|
1198
|
+
"privacy": "private",
|
|
1199
|
+
"default": "null"
|
|
1200
|
+
},
|
|
1201
|
+
{
|
|
1202
|
+
"kind": "field",
|
|
1203
|
+
"name": "_ctx",
|
|
1204
|
+
"type": {
|
|
1205
|
+
"text": "CanvasRenderingContext2D | null"
|
|
1206
|
+
},
|
|
1207
|
+
"privacy": "private",
|
|
1208
|
+
"default": "null"
|
|
1209
|
+
},
|
|
1210
|
+
{
|
|
1211
|
+
"kind": "field",
|
|
1212
|
+
"name": "_cellSize",
|
|
1213
|
+
"type": {
|
|
1214
|
+
"text": "number"
|
|
1215
|
+
},
|
|
1216
|
+
"privacy": "private",
|
|
1217
|
+
"default": "20"
|
|
1218
|
+
},
|
|
1219
|
+
{
|
|
1220
|
+
"kind": "field",
|
|
1221
|
+
"name": "_snake",
|
|
1222
|
+
"type": {
|
|
1223
|
+
"text": "Cell[]"
|
|
1224
|
+
},
|
|
1225
|
+
"privacy": "private",
|
|
1226
|
+
"default": "[]"
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
"kind": "field",
|
|
1230
|
+
"name": "_currentDir",
|
|
1231
|
+
"type": {
|
|
1232
|
+
"text": "Vector"
|
|
1233
|
+
},
|
|
1234
|
+
"privacy": "private",
|
|
1235
|
+
"default": "{ x: 0, y: 0 }"
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
"kind": "field",
|
|
1239
|
+
"name": "_nextDir",
|
|
1240
|
+
"type": {
|
|
1241
|
+
"text": "Vector"
|
|
1242
|
+
},
|
|
1243
|
+
"privacy": "private",
|
|
1244
|
+
"default": "{ x: 0, y: 0 }"
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
"kind": "field",
|
|
1248
|
+
"name": "_snakePresence",
|
|
1249
|
+
"type": {
|
|
1250
|
+
"text": "Uint8Array"
|
|
1251
|
+
},
|
|
1252
|
+
"privacy": "private",
|
|
1253
|
+
"default": "new Uint8Array(ROWS * ROWS)"
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
"kind": "field",
|
|
1257
|
+
"name": "_foodPixel",
|
|
1258
|
+
"type": {
|
|
1259
|
+
"text": "[number, number]"
|
|
1260
|
+
},
|
|
1261
|
+
"privacy": "private",
|
|
1262
|
+
"default": "[5, 5]"
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
"kind": "field",
|
|
1266
|
+
"name": "_currentFoodIndex",
|
|
1267
|
+
"type": {
|
|
1268
|
+
"text": "number"
|
|
1269
|
+
},
|
|
1270
|
+
"privacy": "private",
|
|
1271
|
+
"default": "0"
|
|
1272
|
+
},
|
|
1273
|
+
{
|
|
1274
|
+
"kind": "field",
|
|
1275
|
+
"name": "_currentSpeed",
|
|
1276
|
+
"type": {
|
|
1277
|
+
"text": "number"
|
|
1278
|
+
},
|
|
1279
|
+
"privacy": "private",
|
|
1280
|
+
"default": "230"
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
"kind": "field",
|
|
1284
|
+
"name": "_timerId",
|
|
1285
|
+
"type": {
|
|
1286
|
+
"text": "ReturnType<typeof setInterval> | null"
|
|
1287
|
+
},
|
|
1288
|
+
"privacy": "private",
|
|
1289
|
+
"default": "null"
|
|
1290
|
+
},
|
|
1291
|
+
{
|
|
1292
|
+
"kind": "field",
|
|
1293
|
+
"name": "_touchStart",
|
|
1294
|
+
"type": {
|
|
1295
|
+
"text": "Vector"
|
|
1296
|
+
},
|
|
1297
|
+
"privacy": "private",
|
|
1298
|
+
"default": "{ x: 0, y: 0 }"
|
|
1299
|
+
},
|
|
1300
|
+
{
|
|
1301
|
+
"kind": "field",
|
|
1302
|
+
"name": "_touchEnd",
|
|
1303
|
+
"type": {
|
|
1304
|
+
"text": "Vector"
|
|
1305
|
+
},
|
|
1306
|
+
"privacy": "private",
|
|
1307
|
+
"default": "{ x: 0, y: 0 }"
|
|
1308
|
+
},
|
|
1309
|
+
{
|
|
1310
|
+
"kind": "field",
|
|
1311
|
+
"name": "_trainImages",
|
|
1312
|
+
"type": {
|
|
1313
|
+
"text": "HTMLImageElement[]"
|
|
1314
|
+
},
|
|
1315
|
+
"privacy": "private",
|
|
1316
|
+
"default": "[]"
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
"kind": "field",
|
|
1320
|
+
"name": "_foodImages",
|
|
1321
|
+
"type": {
|
|
1322
|
+
"text": "HTMLImageElement[]"
|
|
1323
|
+
},
|
|
1324
|
+
"privacy": "private",
|
|
1325
|
+
"default": "[]"
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
"kind": "field",
|
|
1329
|
+
"name": "_gridImage",
|
|
1330
|
+
"type": {
|
|
1331
|
+
"text": "HTMLImageElement | null"
|
|
1332
|
+
},
|
|
1333
|
+
"privacy": "private",
|
|
1334
|
+
"default": "null"
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
"kind": "field",
|
|
1338
|
+
"name": "_imagesReady",
|
|
1339
|
+
"type": {
|
|
1340
|
+
"text": "boolean"
|
|
1341
|
+
},
|
|
1342
|
+
"privacy": "private",
|
|
1343
|
+
"default": "false"
|
|
1344
|
+
},
|
|
1345
|
+
{
|
|
1346
|
+
"kind": "field",
|
|
1347
|
+
"name": "_openAbortController",
|
|
1348
|
+
"type": {
|
|
1349
|
+
"text": "AbortController | null"
|
|
1350
|
+
},
|
|
1351
|
+
"privacy": "private",
|
|
1352
|
+
"default": "null"
|
|
1353
|
+
},
|
|
1354
|
+
{
|
|
1355
|
+
"kind": "field",
|
|
1356
|
+
"name": "_prevTailCell",
|
|
1357
|
+
"type": {
|
|
1358
|
+
"text": "Cell | null"
|
|
1359
|
+
},
|
|
1360
|
+
"privacy": "private",
|
|
1361
|
+
"default": "null"
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
"kind": "field",
|
|
1365
|
+
"name": "_ateFoodThisFrame",
|
|
1366
|
+
"type": {
|
|
1367
|
+
"text": "boolean"
|
|
1368
|
+
},
|
|
1369
|
+
"privacy": "private",
|
|
1370
|
+
"default": "false"
|
|
1371
|
+
},
|
|
1372
|
+
{
|
|
1373
|
+
"kind": "field",
|
|
1374
|
+
"name": "_needsFullRedraw",
|
|
1375
|
+
"type": {
|
|
1376
|
+
"text": "boolean"
|
|
1377
|
+
},
|
|
1378
|
+
"privacy": "private",
|
|
1379
|
+
"default": "true"
|
|
1380
|
+
},
|
|
1381
|
+
{
|
|
1382
|
+
"kind": "method",
|
|
1383
|
+
"name": "handleOpening",
|
|
1384
|
+
"privacy": "protected",
|
|
1385
|
+
"return": {
|
|
1386
|
+
"type": {
|
|
1387
|
+
"text": "void"
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
},
|
|
1391
|
+
{
|
|
1392
|
+
"kind": "method",
|
|
1393
|
+
"name": "handleClosing",
|
|
1394
|
+
"privacy": "protected",
|
|
1395
|
+
"return": {
|
|
1396
|
+
"type": {
|
|
1397
|
+
"text": "void"
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
},
|
|
1401
|
+
{
|
|
1402
|
+
"kind": "method",
|
|
1403
|
+
"name": "_initGame",
|
|
1404
|
+
"privacy": "private",
|
|
1405
|
+
"return": {
|
|
1406
|
+
"type": {
|
|
1407
|
+
"text": "Promise<void>"
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
},
|
|
1411
|
+
{
|
|
1412
|
+
"kind": "method",
|
|
1413
|
+
"name": "_loadImage",
|
|
1414
|
+
"privacy": "private",
|
|
1415
|
+
"return": {
|
|
1416
|
+
"type": {
|
|
1417
|
+
"text": "Promise<HTMLImageElement>"
|
|
1418
|
+
}
|
|
1419
|
+
},
|
|
1420
|
+
"parameters": [
|
|
1421
|
+
{
|
|
1422
|
+
"name": "src",
|
|
1423
|
+
"type": {
|
|
1424
|
+
"text": "string"
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
]
|
|
1428
|
+
},
|
|
1429
|
+
{
|
|
1430
|
+
"kind": "method",
|
|
1431
|
+
"name": "_attachInputListeners",
|
|
1432
|
+
"privacy": "private",
|
|
1433
|
+
"return": {
|
|
1434
|
+
"type": {
|
|
1435
|
+
"text": "void"
|
|
1436
|
+
}
|
|
1437
|
+
}
|
|
1438
|
+
},
|
|
1439
|
+
{
|
|
1440
|
+
"kind": "method",
|
|
1441
|
+
"name": "_onTouchStart",
|
|
1442
|
+
"privacy": "private",
|
|
1443
|
+
"return": {
|
|
1444
|
+
"type": {
|
|
1445
|
+
"text": "void"
|
|
1446
|
+
}
|
|
1447
|
+
},
|
|
1448
|
+
"parameters": [
|
|
1449
|
+
{
|
|
1450
|
+
"name": "e",
|
|
1451
|
+
"type": {
|
|
1452
|
+
"text": "TouchEvent"
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
]
|
|
1456
|
+
},
|
|
1457
|
+
{
|
|
1458
|
+
"kind": "method",
|
|
1459
|
+
"name": "_onTouchEnd",
|
|
1460
|
+
"privacy": "private",
|
|
1461
|
+
"return": {
|
|
1462
|
+
"type": {
|
|
1463
|
+
"text": "void"
|
|
1464
|
+
}
|
|
1465
|
+
},
|
|
1466
|
+
"parameters": [
|
|
1467
|
+
{
|
|
1468
|
+
"name": "e",
|
|
1469
|
+
"type": {
|
|
1470
|
+
"text": "TouchEvent"
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1473
|
+
]
|
|
1474
|
+
},
|
|
1475
|
+
{
|
|
1476
|
+
"kind": "method",
|
|
1477
|
+
"name": "_handleSwipe",
|
|
1478
|
+
"privacy": "private",
|
|
1479
|
+
"return": {
|
|
1480
|
+
"type": {
|
|
1481
|
+
"text": "void"
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
},
|
|
1485
|
+
{
|
|
1486
|
+
"kind": "method",
|
|
1487
|
+
"name": "_onKeydown",
|
|
1488
|
+
"privacy": "private",
|
|
1489
|
+
"return": {
|
|
1490
|
+
"type": {
|
|
1491
|
+
"text": "void"
|
|
1492
|
+
}
|
|
1493
|
+
},
|
|
1494
|
+
"parameters": [
|
|
1495
|
+
{
|
|
1496
|
+
"name": "e",
|
|
1497
|
+
"type": {
|
|
1498
|
+
"text": "KeyboardEvent"
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
]
|
|
1502
|
+
},
|
|
1503
|
+
{
|
|
1504
|
+
"kind": "method",
|
|
1505
|
+
"name": "_applyDirectionKey",
|
|
1506
|
+
"privacy": "private",
|
|
1507
|
+
"return": {
|
|
1508
|
+
"type": {
|
|
1509
|
+
"text": "void"
|
|
1510
|
+
}
|
|
1511
|
+
},
|
|
1512
|
+
"parameters": [
|
|
1513
|
+
{
|
|
1514
|
+
"name": "key",
|
|
1515
|
+
"type": {
|
|
1516
|
+
"text": "string"
|
|
1517
|
+
}
|
|
1518
|
+
}
|
|
1519
|
+
]
|
|
1520
|
+
},
|
|
1521
|
+
{
|
|
1522
|
+
"kind": "method",
|
|
1523
|
+
"name": "_resetGame",
|
|
1524
|
+
"privacy": "private",
|
|
1525
|
+
"return": {
|
|
1526
|
+
"type": {
|
|
1527
|
+
"text": "void"
|
|
1528
|
+
}
|
|
1529
|
+
},
|
|
1530
|
+
"parameters": [
|
|
1531
|
+
{
|
|
1532
|
+
"name": "withoutStart",
|
|
1533
|
+
"optional": true,
|
|
1534
|
+
"type": {
|
|
1535
|
+
"text": "boolean"
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
]
|
|
1539
|
+
},
|
|
1540
|
+
{
|
|
1541
|
+
"kind": "field",
|
|
1542
|
+
"name": "_handleStartClick",
|
|
1543
|
+
"privacy": "private"
|
|
1544
|
+
},
|
|
1545
|
+
{
|
|
1546
|
+
"kind": "method",
|
|
1547
|
+
"name": "_startGame",
|
|
1548
|
+
"privacy": "private",
|
|
1549
|
+
"return": {
|
|
1550
|
+
"type": {
|
|
1551
|
+
"text": "void"
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1554
|
+
},
|
|
1555
|
+
{
|
|
1556
|
+
"kind": "method",
|
|
1557
|
+
"name": "_stopGame",
|
|
1558
|
+
"privacy": "private",
|
|
1559
|
+
"return": {
|
|
1560
|
+
"type": {
|
|
1561
|
+
"text": "void"
|
|
1562
|
+
}
|
|
1563
|
+
}
|
|
1564
|
+
},
|
|
1565
|
+
{
|
|
1566
|
+
"kind": "method",
|
|
1567
|
+
"name": "_setGameOver",
|
|
1568
|
+
"privacy": "private",
|
|
1569
|
+
"return": {
|
|
1570
|
+
"type": {
|
|
1571
|
+
"text": "void"
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
},
|
|
1575
|
+
{
|
|
1576
|
+
"kind": "method",
|
|
1577
|
+
"name": "_focusStartButton",
|
|
1578
|
+
"privacy": "private",
|
|
1579
|
+
"return": {
|
|
1580
|
+
"type": {
|
|
1581
|
+
"text": "Promise<void>"
|
|
1582
|
+
}
|
|
1583
|
+
}
|
|
1584
|
+
},
|
|
1585
|
+
{
|
|
1586
|
+
"kind": "method",
|
|
1587
|
+
"name": "_updatePoints",
|
|
1588
|
+
"privacy": "private",
|
|
1589
|
+
"return": {
|
|
1590
|
+
"type": {
|
|
1591
|
+
"text": "void"
|
|
1592
|
+
}
|
|
1593
|
+
}
|
|
1594
|
+
},
|
|
1595
|
+
{
|
|
1596
|
+
"kind": "method",
|
|
1597
|
+
"name": "_hasCollided",
|
|
1598
|
+
"privacy": "private",
|
|
1599
|
+
"return": {
|
|
1600
|
+
"type": {
|
|
1601
|
+
"text": "boolean"
|
|
1602
|
+
}
|
|
1603
|
+
},
|
|
1604
|
+
"parameters": [
|
|
1605
|
+
{
|
|
1606
|
+
"name": "head",
|
|
1607
|
+
"type": {
|
|
1608
|
+
"text": "Vector"
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
]
|
|
1612
|
+
},
|
|
1613
|
+
{
|
|
1614
|
+
"kind": "method",
|
|
1615
|
+
"name": "_placeFood",
|
|
1616
|
+
"privacy": "private",
|
|
1617
|
+
"return": {
|
|
1618
|
+
"type": {
|
|
1619
|
+
"text": "void"
|
|
1620
|
+
}
|
|
1621
|
+
}
|
|
1622
|
+
},
|
|
1623
|
+
{
|
|
1624
|
+
"kind": "method",
|
|
1625
|
+
"name": "_isReverse",
|
|
1626
|
+
"privacy": "private",
|
|
1627
|
+
"return": {
|
|
1628
|
+
"type": {
|
|
1629
|
+
"text": "boolean"
|
|
1630
|
+
}
|
|
1631
|
+
},
|
|
1632
|
+
"parameters": [
|
|
1633
|
+
{
|
|
1634
|
+
"name": "a",
|
|
1635
|
+
"type": {
|
|
1636
|
+
"text": "Vector"
|
|
1637
|
+
}
|
|
1638
|
+
},
|
|
1639
|
+
{
|
|
1640
|
+
"name": "b",
|
|
1641
|
+
"type": {
|
|
1642
|
+
"text": "Vector"
|
|
1643
|
+
}
|
|
1644
|
+
}
|
|
1645
|
+
]
|
|
1646
|
+
},
|
|
1647
|
+
{
|
|
1648
|
+
"kind": "method",
|
|
1649
|
+
"name": "_idx",
|
|
1650
|
+
"privacy": "private",
|
|
1651
|
+
"return": {
|
|
1652
|
+
"type": {
|
|
1653
|
+
"text": "number"
|
|
1654
|
+
}
|
|
1655
|
+
},
|
|
1656
|
+
"parameters": [
|
|
1657
|
+
{
|
|
1658
|
+
"name": "x",
|
|
1659
|
+
"type": {
|
|
1660
|
+
"text": "number"
|
|
1661
|
+
}
|
|
1662
|
+
},
|
|
1663
|
+
{
|
|
1664
|
+
"name": "y",
|
|
1665
|
+
"type": {
|
|
1666
|
+
"text": "number"
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
1669
|
+
]
|
|
1670
|
+
},
|
|
1671
|
+
{
|
|
1672
|
+
"kind": "method",
|
|
1673
|
+
"name": "_getSecondSnakeCellDir",
|
|
1674
|
+
"privacy": "private",
|
|
1675
|
+
"return": {
|
|
1676
|
+
"type": {
|
|
1677
|
+
"text": "Direction | null"
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
"kind": "method",
|
|
1683
|
+
"name": "_update",
|
|
1684
|
+
"privacy": "private",
|
|
1685
|
+
"return": {
|
|
1686
|
+
"type": {
|
|
1687
|
+
"text": "void"
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
},
|
|
1691
|
+
{
|
|
1692
|
+
"kind": "method",
|
|
1693
|
+
"name": "_clearTile",
|
|
1694
|
+
"privacy": "private",
|
|
1695
|
+
"return": {
|
|
1696
|
+
"type": {
|
|
1697
|
+
"text": "void"
|
|
1698
|
+
}
|
|
1699
|
+
},
|
|
1700
|
+
"parameters": [
|
|
1701
|
+
{
|
|
1702
|
+
"name": "x",
|
|
1703
|
+
"type": {
|
|
1704
|
+
"text": "number"
|
|
1705
|
+
}
|
|
1706
|
+
},
|
|
1707
|
+
{
|
|
1708
|
+
"name": "y",
|
|
1709
|
+
"type": {
|
|
1710
|
+
"text": "number"
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1713
|
+
]
|
|
1714
|
+
},
|
|
1715
|
+
{
|
|
1716
|
+
"kind": "method",
|
|
1717
|
+
"name": "_draw",
|
|
1718
|
+
"privacy": "private",
|
|
1719
|
+
"return": {
|
|
1720
|
+
"type": {
|
|
1721
|
+
"text": "void"
|
|
1722
|
+
}
|
|
1723
|
+
}
|
|
1724
|
+
},
|
|
1725
|
+
{
|
|
1726
|
+
"kind": "method",
|
|
1727
|
+
"name": "_getTrainHeadDir",
|
|
1728
|
+
"privacy": "private",
|
|
1729
|
+
"return": {
|
|
1730
|
+
"type": {
|
|
1731
|
+
"text": "number"
|
|
1732
|
+
}
|
|
1733
|
+
}
|
|
1734
|
+
},
|
|
1735
|
+
{
|
|
1736
|
+
"kind": "method",
|
|
1737
|
+
"name": "_getTrainTailDir",
|
|
1738
|
+
"privacy": "private",
|
|
1739
|
+
"return": {
|
|
1740
|
+
"type": {
|
|
1741
|
+
"text": "number"
|
|
1742
|
+
}
|
|
1743
|
+
},
|
|
1744
|
+
"parameters": [
|
|
1745
|
+
{
|
|
1746
|
+
"name": "tailIndex",
|
|
1747
|
+
"type": {
|
|
1748
|
+
"text": "number"
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
]
|
|
1752
|
+
},
|
|
1753
|
+
{
|
|
1754
|
+
"kind": "field",
|
|
1755
|
+
"name": "backdropAction",
|
|
1756
|
+
"type": {
|
|
1757
|
+
"text": "string"
|
|
1758
|
+
},
|
|
1759
|
+
"default": "'none'"
|
|
1760
|
+
},
|
|
1761
|
+
{
|
|
1762
|
+
"kind": "field",
|
|
1763
|
+
"name": "accessibilityLabel",
|
|
1764
|
+
"default": "i18nSnakeTitle[this.language.current]"
|
|
1765
|
+
}
|
|
1766
|
+
],
|
|
1767
|
+
"superclass": {
|
|
1768
|
+
"name": "SbbDialogElement",
|
|
1769
|
+
"package": "@sbb-esta/lyne-elements/dialog.pure.js"
|
|
1770
|
+
},
|
|
1771
|
+
"tagName": "sbb-easter-egg",
|
|
1772
|
+
"customElement": true
|
|
1773
|
+
}
|
|
1774
|
+
],
|
|
1775
|
+
"exports": [
|
|
1776
|
+
{
|
|
1777
|
+
"kind": "js",
|
|
1778
|
+
"name": "SbbEasterEggElement",
|
|
1779
|
+
"declaration": {
|
|
1780
|
+
"name": "SbbEasterEggElement",
|
|
1781
|
+
"module": "easter-egg/easter-egg.component.js"
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
]
|
|
1785
|
+
},
|
|
1786
|
+
{
|
|
1787
|
+
"kind": "javascript-module",
|
|
1788
|
+
"path": "easter-egg.pure.js",
|
|
1789
|
+
"declarations": [],
|
|
1790
|
+
"exports": [
|
|
1791
|
+
{
|
|
1792
|
+
"kind": "js",
|
|
1793
|
+
"name": "*",
|
|
1794
|
+
"declaration": {
|
|
1795
|
+
"name": "*",
|
|
1796
|
+
"module": "easter-egg/easter-egg.component.js"
|
|
1797
|
+
}
|
|
1798
|
+
}
|
|
1799
|
+
]
|
|
1800
|
+
},
|
|
1801
|
+
{
|
|
1802
|
+
"kind": "javascript-module",
|
|
1803
|
+
"path": "easter-egg.js",
|
|
1804
|
+
"declarations": [],
|
|
1805
|
+
"exports": [
|
|
1806
|
+
{
|
|
1807
|
+
"kind": "js",
|
|
1808
|
+
"name": "*",
|
|
1809
|
+
"declaration": {
|
|
1810
|
+
"name": "*",
|
|
1811
|
+
"module": "easter-egg.pure.js"
|
|
1812
|
+
}
|
|
1813
|
+
}
|
|
1814
|
+
]
|
|
1815
|
+
},
|
|
955
1816
|
{
|
|
956
1817
|
"kind": "javascript-module",
|
|
957
1818
|
"path": "pearl-chain/pearl-chain.component.js",
|
|
@@ -4949,9 +5810,9 @@
|
|
|
4949
5810
|
}
|
|
4950
5811
|
},
|
|
4951
5812
|
{
|
|
4952
|
-
"name": "
|
|
5813
|
+
"name": "elementType",
|
|
4953
5814
|
"type": {
|
|
4954
|
-
"text": "
|
|
5815
|
+
"text": "GraphicalElementType"
|
|
4955
5816
|
}
|
|
4956
5817
|
}
|
|
4957
5818
|
],
|
|
@@ -7500,9 +8361,9 @@
|
|
|
7500
8361
|
}
|
|
7501
8362
|
},
|
|
7502
8363
|
{
|
|
7503
|
-
"name": "
|
|
8364
|
+
"name": "elementType",
|
|
7504
8365
|
"type": {
|
|
7505
|
-
"text": "
|
|
8366
|
+
"text": "GraphicalElementType"
|
|
7506
8367
|
}
|
|
7507
8368
|
}
|
|
7508
8369
|
],
|