@courthive/scoring-visualizations 0.2.2 → 0.2.4

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.
@@ -857,20 +857,20 @@ function Oe() {
857
857
  }
858
858
  let p = n.width - (n.margins.left + n.margins.right), h = n.width * .9;
859
859
  a = (h + p) / 2 * .03;
860
- let g = T.map(function(e) {
860
+ let g = C.map(function(e) {
861
861
  return e.id;
862
862
  }), v = Ee(g.map(function(e) {
863
863
  return isNaN(o.p[e]) ? 0 : o.p[e];
864
864
  })), y = Te([Te(g.map(function(e) {
865
865
  return isNaN(o.p[e]) ? 0 : o.p[e];
866
- })), n.minMax]), b = _().domain([v, y]).range([0, a * 2]);
867
- if (i.transition().duration(0).attr("width", p).attr("height", h), i.selectAll(".gradient").data(T, De).join("linearGradient").attr("id", (e) => "gradient" + c(e.id)).attr("class", "gradient").attr("gradientUnits", "userSpaceOnUse").attr("x1", (e) => e.start.x * p).attr("y1", (e) => e.start.y * h).attr("x2", (e) => e.end.x * p).attr("y2", (e) => e.end.y * h).selectAll(".points_stop").data((e) => m(e)).join("stop").attr("class", "points_stop").attr("offset", (e) => e.offset).attr("stop-color", (e) => e.color), i.selectAll(".line").data(T).join((e) => e.append("line").attr("class", "line").attr("id", (e) => c(e.id)).attr("x1", (e) => e.start.x * p).attr("y1", (e) => e.start.y * h).attr("x2", (e) => e.end.x * p).attr("y2", (e) => e.end.y * h).attr("stroke-width", (e) => e.width ? e.width : 0).attr("stroke", (e) => "url(#gradient" + c(e.id) + ")").on("mousemove", function(e, t) {
866
+ })), n.minMax]), S = _().domain([v, y]).range([0, a * 2]);
867
+ if (i.transition().duration(0).attr("width", p).attr("height", h), i.selectAll(".gradient").data(C, De).join("linearGradient").attr("id", (e) => "gradient" + c(e.id)).attr("class", "gradient").attr("gradientUnits", "userSpaceOnUse").attr("x1", (e) => e.start.x * p).attr("y1", (e) => e.start.y * h).attr("x2", (e) => e.end.x * p).attr("y2", (e) => e.end.y * h).selectAll(".points_stop").data((e) => m(e)).join("stop").attr("class", "points_stop").attr("offset", (e) => e.offset).attr("stop-color", (e) => e.color), i.selectAll(".line").data(C).join((e) => e.append("line").attr("class", "line").attr("id", (e) => c(e.id)).attr("x1", (e) => e.start.x * p).attr("y1", (e) => e.start.y * h).attr("x2", (e) => e.end.x * p).attr("y2", (e) => e.end.y * h).attr("stroke-width", (e) => e.width ? e.width : 0).attr("stroke", (e) => "url(#gradient" + c(e.id) + ")").on("mousemove", function(e, t) {
868
868
  l.point.mousemove && l.point.mousemove(t, e);
869
869
  }).on("mouseout", function(e, t) {
870
870
  l.point.mouseout && l.point.mouseout(t, e);
871
871
  }).on("click", function(e, t) {
872
872
  l.point.click && l.point.click(t, e);
873
- }), (e) => e).transition().duration(n.lines.easing || r && r.easing ? n.lines.duration : 0).attr("x1", (e) => e.start.x * p).attr("y1", (e) => e.start.y * h).attr("x2", (e) => e.end.x * p).attr("y2", (e) => e.end.y * h).attr("stroke-width", (e) => o.p[e.id] ? b(o.p[e.id]) : 0), i.selectAll(".uline").data(E).join((e) => e.append("line").attr("class", "uline").attr("stroke", function() {
873
+ }), (e) => e).transition().duration(n.lines.easing || r && r.easing ? n.lines.duration : 0).attr("x1", (e) => e.start.x * p).attr("y1", (e) => e.start.y * h).attr("x2", (e) => e.end.x * p).attr("y2", (e) => e.end.y * h).attr("stroke-width", (e) => o.p[e.id] ? S(o.p[e.id]) : 0), i.selectAll(".uline").data(w).join((e) => e.append("line").attr("class", "uline").attr("stroke", function() {
874
874
  return n.lines.colors.underlines;
875
875
  })).transition().duration(0).attr("id", function(e) {
876
876
  return c(e.id);
@@ -882,7 +882,7 @@ function Oe() {
882
882
  return e.end.x * p;
883
883
  }).attr("y2", function(e) {
884
884
  return e.end.y * h;
885
- }).attr("stroke-width", (e) => e.width ? e.width : 0), i.selectAll(".node").data(w).join((e) => e.append("circle").attr("class", "node").attr("stroke", function(e) {
885
+ }).attr("stroke-width", (e) => e.width ? e.width : 0), i.selectAll(".node").data(x).join((e) => e.append("circle").attr("class", "node").attr("stroke", function(e) {
886
886
  return e.color_pct == null ? n.nodes.colors.neutral : Ce(we(n.nodes.colors[e.player]), e.color_pct);
887
887
  }).attr("fill", function(e) {
888
888
  return e.color_pct == null ? n.nodes.colors.neutral : Ce(we(n.nodes.colors[e.player]), e.color_pct);
@@ -901,10 +901,10 @@ function Oe() {
901
901
  }), s) {
902
902
  let e = "p" + s;
903
903
  i.selectAll(".node").filter(function(t) {
904
- return t.pos === C[e];
904
+ return t.pos === b[e];
905
905
  }).transition().duration(200).attr("r", a * 1.8).transition().duration(300).attr("r", a);
906
906
  }
907
- i.selectAll(".score").data(D).join((e) => e.append("text").attr("class", "score").attr("font-family", "Lato, Arial, sans-serif").attr("text-anchor", "middle").attr("alignment-baseline", "central").attr("stroke", (e) => e.stroke).attr("fill", (e) => e.fill).on("mousemove", function(e, t) {
907
+ i.selectAll(".score").data(T).join((e) => e.append("text").attr("class", "score").attr("font-family", "Lato, Arial, sans-serif").attr("text-anchor", "middle").attr("alignment-baseline", "central").attr("stroke", (e) => e.stroke).attr("fill", (e) => e.fill).on("mousemove", function(e, t) {
908
908
  l.score.mousemove && l.score.mousemove(e, t);
909
909
  }).on("mouseout", function(e, t) {
910
910
  l.score.mouseout && l.score.mouseout(e, t);
@@ -912,11 +912,11 @@ function Oe() {
912
912
  l.score.click && l.score.click(e, t);
913
913
  })).transition().duration(0).attr("x", (e) => e.pos.x * p).attr("y", (e) => e.pos.y * h).attr("font-size", (e) => a * e.fontsize + "px").text((e) => {
914
914
  if (a * e.fontsize > 5) return e.text;
915
- }), i.selectAll(".gt_label").data(O).join((e) => e.append("text").attr("class", "gt_label").attr("alignment-baseline", (e) => e.baseline ? e.baseline : void 0).attr("text-anchor", (e) => e.anchor ? e.anchor : void 0).attr("font-family", "Lato, Arial, sans-serif").attr("stroke", (e) => e.stroke).attr("fill", (e) => e.fill).attr("selector", (e) => e.id).on("click", function(e, t) {
915
+ }), i.selectAll(".gt_label").data(E).join((e) => e.append("text").attr("class", "gt_label").attr("alignment-baseline", (e) => e.baseline ? e.baseline : void 0).attr("text-anchor", (e) => e.anchor ? e.anchor : void 0).attr("font-family", "Lato, Arial, sans-serif").attr("stroke", (e) => e.stroke).attr("fill", (e) => e.fill).attr("selector", (e) => e.id).on("click", function(e, t) {
916
916
  l.label.click && l.label.click(e, t, this);
917
917
  })).transition().duration(0).attr("x", (e) => e.pos.x * p).attr("y", (e) => e.pos.y * h).attr("font-size", (e) => a * e.fontsize + "px").text((e) => {
918
918
  if (a * e.fontsize > 5) return n.labels[e.id];
919
- }), i.selectAll(".selector").data(k).join((e) => e.append("circle").attr("class", "selector").attr("status", function(e) {
919
+ }), i.selectAll(".selector").data(D).join((e) => e.append("circle").attr("class", "selector").attr("status", function(e) {
920
920
  return e.status;
921
921
  }).attr("id", function(e) {
922
922
  return c(e.id);
@@ -1049,587 +1049,587 @@ function Oe() {
1049
1049
  }
1050
1050
  ];
1051
1051
  }
1052
- let h = .07, g = .14, y = .05, b = .21, x = {
1052
+ let h = .07, g = .05, y = {
1053
1053
  col1: h,
1054
- col2: h + g,
1055
- col3: h + 2 * g,
1056
- col4: h + 3 * g,
1057
- col5: h + 4 * g,
1058
- col6: h + 5 * g,
1059
- col7: h + 6 * g,
1060
- row1: y,
1061
- row2: y + b,
1062
- row3: y + 2 * b,
1063
- row4: y + 3 * b,
1064
- row5: y + 4 * b,
1065
- foot: y + 4.1 * b,
1066
- adr1: y + 3.5 * b,
1067
- adc1: h + g * 2.5,
1068
- adc2: h + g * 3.5,
1054
+ col2: .21000000000000002,
1055
+ col3: .35000000000000003,
1056
+ col4: .49000000000000005,
1057
+ col5: .6300000000000001,
1058
+ col6: .77,
1059
+ col7: .9100000000000001,
1060
+ row1: g,
1061
+ row2: .26,
1062
+ row3: .47,
1063
+ row4: .68,
1064
+ row5: .89,
1065
+ foot: .9109999999999999,
1066
+ adr1: .785,
1067
+ adc1: .42000000000000004,
1068
+ adc2: .56,
1069
1069
  selc: h * .8,
1070
1070
  tslc: h,
1071
- sl1r: y / 2,
1072
- sl2r: y * 1.5,
1071
+ sl1r: g / 2,
1072
+ sl2r: g * 1.5,
1073
1073
  plr1: h * .8,
1074
- plr2: h + 4 * g,
1075
- plrs: y + 4.25 * b
1076
- }, C = {
1074
+ plr2: .6300000000000001,
1075
+ plrs: .9425
1076
+ }, b = {
1077
1077
  "p0-0": {
1078
- x: x.col4,
1079
- y: x.row1
1078
+ x: y.col4,
1079
+ y: y.row1
1080
1080
  },
1081
1081
  "p1-1": {
1082
- x: x.col4,
1083
- y: x.row2
1082
+ x: y.col4,
1083
+ y: y.row2
1084
1084
  },
1085
1085
  "p2-2": {
1086
- x: x.col4,
1087
- y: x.row3
1086
+ x: y.col4,
1087
+ y: y.row3
1088
1088
  },
1089
1089
  "p3-3": {
1090
- x: x.col4,
1091
- y: x.row4
1090
+ x: y.col4,
1091
+ y: y.row4
1092
1092
  },
1093
1093
  "p1-0": {
1094
- x: x.col3,
1095
- y: x.row2
1094
+ x: y.col3,
1095
+ y: y.row2
1096
1096
  },
1097
1097
  "p0-1": {
1098
- x: x.col5,
1099
- y: x.row2
1098
+ x: y.col5,
1099
+ y: y.row2
1100
1100
  },
1101
1101
  "p2-1": {
1102
- x: x.col3,
1103
- y: x.row3
1102
+ x: y.col3,
1103
+ y: y.row3
1104
1104
  },
1105
1105
  "p1-2": {
1106
- x: x.col5,
1107
- y: x.row3
1106
+ x: y.col5,
1107
+ y: y.row3
1108
1108
  },
1109
1109
  "p2-0": {
1110
- x: x.col2,
1111
- y: x.row3
1110
+ x: y.col2,
1111
+ y: y.row3
1112
1112
  },
1113
1113
  "p0-2": {
1114
- x: x.col6,
1115
- y: x.row3
1114
+ x: y.col6,
1115
+ y: y.row3
1116
1116
  },
1117
1117
  "p3-2": {
1118
- x: x.col3,
1119
- y: x.row4
1118
+ x: y.col3,
1119
+ y: y.row4
1120
1120
  },
1121
1121
  "p2-3": {
1122
- x: x.col5,
1123
- y: x.row4
1122
+ x: y.col5,
1123
+ y: y.row4
1124
1124
  },
1125
1125
  "p3-1": {
1126
- x: x.col2,
1127
- y: x.row4
1126
+ x: y.col2,
1127
+ y: y.row4
1128
1128
  },
1129
1129
  "p1-3": {
1130
- x: x.col6,
1131
- y: x.row4
1130
+ x: y.col6,
1131
+ y: y.row4
1132
1132
  },
1133
1133
  "p3-0": {
1134
- x: x.col1,
1135
- y: x.row4
1134
+ x: y.col1,
1135
+ y: y.row4
1136
1136
  },
1137
1137
  "p0-3": {
1138
- x: x.col7,
1139
- y: x.row4
1138
+ x: y.col7,
1139
+ y: y.row4
1140
1140
  },
1141
1141
  "p3-4": {
1142
- x: x.adc1,
1143
- y: x.adr1
1142
+ x: y.adc1,
1143
+ y: y.adr1
1144
1144
  },
1145
1145
  "p4-3": {
1146
- x: x.adc2,
1147
- y: x.adr1
1146
+ x: y.adc2,
1147
+ y: y.adr1
1148
1148
  },
1149
1149
  "p5-3": {
1150
- x: x.adc2,
1151
- y: x.row5
1150
+ x: y.adc2,
1151
+ y: y.row5
1152
1152
  },
1153
1153
  "p3-5": {
1154
- x: x.adc1,
1155
- y: x.row5
1154
+ x: y.adc1,
1155
+ y: y.row5
1156
1156
  },
1157
1157
  "p4-1": {
1158
- x: x.col2,
1159
- y: x.row5
1158
+ x: y.col2,
1159
+ y: y.row5
1160
1160
  },
1161
1161
  "p1-4": {
1162
- x: x.col6,
1163
- y: x.row5
1162
+ x: y.col6,
1163
+ y: y.row5
1164
1164
  },
1165
1165
  "p4-2": {
1166
- x: x.col3,
1167
- y: x.row5
1166
+ x: y.col3,
1167
+ y: y.row5
1168
1168
  },
1169
1169
  "p2-4": {
1170
- x: x.col5,
1171
- y: x.row5
1170
+ x: y.col5,
1171
+ y: y.row5
1172
1172
  },
1173
1173
  "p4-0": {
1174
- x: x.col1,
1175
- y: x.row5
1174
+ x: y.col1,
1175
+ y: y.row5
1176
1176
  },
1177
1177
  "p0-4": {
1178
- x: x.col7,
1179
- y: x.row5
1178
+ x: y.col7,
1179
+ y: y.row5
1180
1180
  },
1181
1181
  "pG-3": {
1182
- x: x.col4,
1183
- y: x.row5
1182
+ x: y.col4,
1183
+ y: y.row5
1184
1184
  },
1185
1185
  "p3-G": {
1186
- x: x.col4,
1187
- y: x.row5
1186
+ x: y.col4,
1187
+ y: y.row5
1188
1188
  },
1189
1189
  sPlyr: {
1190
- x: x.adc1,
1191
- y: x.plrs
1190
+ x: y.adc1,
1191
+ y: y.plrs
1192
1192
  },
1193
1193
  tPlyr: {
1194
- x: x.col2,
1195
- y: x.plrs
1194
+ x: y.col2,
1195
+ y: y.plrs
1196
1196
  },
1197
1197
  sOpp: {
1198
- x: x.adc2,
1199
- y: x.plrs
1198
+ x: y.adc2,
1199
+ y: y.plrs
1200
1200
  },
1201
1201
  tOpp: {
1202
- x: x.col6,
1203
- y: x.plrs
1202
+ x: y.col6,
1203
+ y: y.plrs
1204
1204
  },
1205
1205
  GAME: {
1206
- x: x.col4,
1207
- y: x.foot
1206
+ x: y.col4,
1207
+ y: y.foot
1208
1208
  },
1209
1209
  L1s: {
1210
- x: x.col1,
1211
- y: x.foot
1210
+ x: y.col1,
1211
+ y: y.foot
1212
1212
  },
1213
1213
  L1e: {
1214
- x: x.adc1,
1215
- y: x.foot
1214
+ x: y.adc1,
1215
+ y: y.foot
1216
1216
  },
1217
1217
  L2s: {
1218
- x: x.adc2,
1219
- y: x.foot
1218
+ x: y.adc2,
1219
+ y: y.foot
1220
1220
  },
1221
1221
  L2e: {
1222
- x: x.col7,
1223
- y: x.foot
1222
+ x: y.col7,
1223
+ y: y.foot
1224
1224
  }
1225
- }, w = [
1225
+ }, x = [
1226
1226
  {
1227
1227
  name: "0-0",
1228
- pos: C["p0-0"],
1228
+ pos: b["p0-0"],
1229
1229
  player: 0
1230
1230
  },
1231
1231
  {
1232
1232
  name: "15-15",
1233
- pos: C["p1-1"],
1233
+ pos: b["p1-1"],
1234
1234
  player: 0
1235
1235
  },
1236
1236
  {
1237
1237
  name: "30-30",
1238
- pos: C["p2-2"],
1238
+ pos: b["p2-2"],
1239
1239
  player: 0
1240
1240
  },
1241
1241
  {
1242
1242
  name: "40-40",
1243
- pos: C["p3-3"],
1243
+ pos: b["p3-3"],
1244
1244
  player: 0
1245
1245
  },
1246
1246
  {
1247
1247
  name: "0-15",
1248
- pos: C["p0-1"],
1248
+ pos: b["p0-1"],
1249
1249
  color_pct: .4,
1250
1250
  player: 1
1251
1251
  },
1252
1252
  {
1253
1253
  name: "15-30",
1254
- pos: C["p1-2"],
1254
+ pos: b["p1-2"],
1255
1255
  color_pct: .4,
1256
1256
  player: 1
1257
1257
  },
1258
1258
  {
1259
1259
  name: "0-30",
1260
- pos: C["p0-2"],
1260
+ pos: b["p0-2"],
1261
1261
  color_pct: .2,
1262
1262
  player: 1
1263
1263
  },
1264
1264
  {
1265
1265
  name: "30-40",
1266
- pos: C["p2-3"],
1266
+ pos: b["p2-3"],
1267
1267
  color_pct: .4,
1268
1268
  player: 1
1269
1269
  },
1270
1270
  {
1271
1271
  name: "15-40",
1272
- pos: C["p1-3"],
1272
+ pos: b["p1-3"],
1273
1273
  color_pct: .2,
1274
1274
  player: 1
1275
1275
  },
1276
1276
  {
1277
1277
  name: "0-40",
1278
- pos: C["p0-3"],
1278
+ pos: b["p0-3"],
1279
1279
  color_pct: 0,
1280
1280
  player: 1
1281
1281
  },
1282
1282
  {
1283
1283
  name: "40-A",
1284
- pos: C["p4-3"],
1284
+ pos: b["p4-3"],
1285
1285
  color_pct: .5,
1286
1286
  player: 1
1287
1287
  },
1288
1288
  {
1289
1289
  name: "15-0",
1290
- pos: C["p1-0"],
1290
+ pos: b["p1-0"],
1291
1291
  color_pct: .4,
1292
1292
  player: 0
1293
1293
  },
1294
1294
  {
1295
1295
  name: "30-15",
1296
- pos: C["p2-1"],
1296
+ pos: b["p2-1"],
1297
1297
  color_pct: .4,
1298
1298
  player: 0
1299
1299
  },
1300
1300
  {
1301
1301
  name: "30-0",
1302
- pos: C["p2-0"],
1302
+ pos: b["p2-0"],
1303
1303
  color_pct: .2,
1304
1304
  player: 0
1305
1305
  },
1306
1306
  {
1307
1307
  name: "40-30",
1308
- pos: C["p3-2"],
1308
+ pos: b["p3-2"],
1309
1309
  color_pct: .4,
1310
1310
  player: 0
1311
1311
  },
1312
1312
  {
1313
1313
  name: "40-15",
1314
- pos: C["p3-1"],
1314
+ pos: b["p3-1"],
1315
1315
  color_pct: .2,
1316
1316
  player: 0
1317
1317
  },
1318
1318
  {
1319
1319
  name: "40-0",
1320
- pos: C["p3-0"],
1320
+ pos: b["p3-0"],
1321
1321
  color_pct: 0,
1322
1322
  player: 0
1323
1323
  },
1324
1324
  {
1325
1325
  name: "A-40",
1326
- pos: C["p3-4"],
1326
+ pos: b["p3-4"],
1327
1327
  color_pct: .5,
1328
1328
  player: 0
1329
1329
  }
1330
- ], T = [
1330
+ ], C = [
1331
1331
  {
1332
1332
  id: "L0-0x0-1",
1333
- start: C["p0-0"],
1334
- end: C["p0-1"]
1333
+ start: b["p0-0"],
1334
+ end: b["p0-1"]
1335
1335
  },
1336
1336
  {
1337
1337
  id: "L0-0x1-0",
1338
- start: C["p0-0"],
1339
- end: C["p1-0"]
1338
+ start: b["p0-0"],
1339
+ end: b["p1-0"]
1340
1340
  },
1341
1341
  {
1342
1342
  id: "L0-1x0-2",
1343
- start: C["p0-1"],
1344
- end: C["p0-2"]
1343
+ start: b["p0-1"],
1344
+ end: b["p0-2"]
1345
1345
  },
1346
1346
  {
1347
1347
  id: "L0-1x1-1",
1348
- start: C["p0-1"],
1349
- end: C["p1-1"]
1348
+ start: b["p0-1"],
1349
+ end: b["p1-1"]
1350
1350
  },
1351
1351
  {
1352
1352
  id: "L1-0x2-0",
1353
- start: C["p1-0"],
1354
- end: C["p2-0"]
1353
+ start: b["p1-0"],
1354
+ end: b["p2-0"]
1355
1355
  },
1356
1356
  {
1357
1357
  id: "L1-0x1-1",
1358
- start: C["p1-0"],
1359
- end: C["p1-1"]
1358
+ start: b["p1-0"],
1359
+ end: b["p1-1"]
1360
1360
  },
1361
1361
  {
1362
1362
  id: "L1-1x1-2",
1363
- start: C["p1-1"],
1364
- end: C["p1-2"]
1363
+ start: b["p1-1"],
1364
+ end: b["p1-2"]
1365
1365
  },
1366
1366
  {
1367
1367
  id: "L1-1x2-1",
1368
- start: C["p1-1"],
1369
- end: C["p2-1"]
1368
+ start: b["p1-1"],
1369
+ end: b["p2-1"]
1370
1370
  },
1371
1371
  {
1372
1372
  id: "L2-0x2-1",
1373
- start: C["p2-0"],
1374
- end: C["p2-1"]
1373
+ start: b["p2-0"],
1374
+ end: b["p2-1"]
1375
1375
  },
1376
1376
  {
1377
1377
  id: "L2-0x3-0",
1378
- start: C["p2-0"],
1379
- end: C["p3-0"]
1378
+ start: b["p2-0"],
1379
+ end: b["p3-0"]
1380
1380
  },
1381
1381
  {
1382
1382
  id: "L2-1x2-2",
1383
- start: C["p2-1"],
1384
- end: C["p2-2"]
1383
+ start: b["p2-1"],
1384
+ end: b["p2-2"]
1385
1385
  },
1386
1386
  {
1387
1387
  id: "L2-1x3-1",
1388
- start: C["p2-1"],
1389
- end: C["p3-1"]
1388
+ start: b["p2-1"],
1389
+ end: b["p3-1"]
1390
1390
  },
1391
1391
  {
1392
1392
  id: "L2-2x2-3",
1393
- start: C["p2-2"],
1394
- end: C["p2-3"]
1393
+ start: b["p2-2"],
1394
+ end: b["p2-3"]
1395
1395
  },
1396
1396
  {
1397
1397
  id: "L2-2x3-2",
1398
- start: C["p2-2"],
1399
- end: C["p3-2"]
1398
+ start: b["p2-2"],
1399
+ end: b["p3-2"]
1400
1400
  },
1401
1401
  {
1402
1402
  id: "L0-2x0-3",
1403
- start: C["p0-2"],
1404
- end: C["p0-3"]
1403
+ start: b["p0-2"],
1404
+ end: b["p0-3"]
1405
1405
  },
1406
1406
  {
1407
1407
  id: "L0-2x1-2",
1408
- start: C["p0-2"],
1409
- end: C["p1-2"]
1408
+ start: b["p0-2"],
1409
+ end: b["p1-2"]
1410
1410
  },
1411
1411
  {
1412
1412
  id: "L0-3x0-4",
1413
- start: C["p0-3"],
1414
- end: C["p0-4"]
1413
+ start: b["p0-3"],
1414
+ end: b["p0-4"]
1415
1415
  },
1416
1416
  {
1417
1417
  id: "L0-3x1-3",
1418
- start: C["p0-3"],
1419
- end: C["p1-3"]
1418
+ start: b["p0-3"],
1419
+ end: b["p1-3"]
1420
1420
  },
1421
1421
  {
1422
1422
  id: "L1-2x2-2",
1423
- start: C["p1-2"],
1424
- end: C["p2-2"]
1423
+ start: b["p1-2"],
1424
+ end: b["p2-2"]
1425
1425
  },
1426
1426
  {
1427
1427
  id: "L1-2x1-3",
1428
- start: C["p1-2"],
1429
- end: C["p1-3"]
1428
+ start: b["p1-2"],
1429
+ end: b["p1-3"]
1430
1430
  },
1431
1431
  {
1432
1432
  id: "L1-3x2-3",
1433
- start: C["p1-3"],
1434
- end: C["p2-3"]
1433
+ start: b["p1-3"],
1434
+ end: b["p2-3"]
1435
1435
  },
1436
1436
  {
1437
1437
  id: "L1-3x1-4",
1438
- start: C["p1-3"],
1439
- end: C["p1-4"]
1438
+ start: b["p1-3"],
1439
+ end: b["p1-4"]
1440
1440
  },
1441
1441
  {
1442
1442
  id: "L2-3x3-3",
1443
- start: C["p2-3"],
1444
- end: C["p3-3"]
1443
+ start: b["p2-3"],
1444
+ end: b["p3-3"]
1445
1445
  },
1446
1446
  {
1447
1447
  id: "L2-3x2-4",
1448
- start: C["p2-3"],
1449
- end: C["p2-4"]
1448
+ start: b["p2-3"],
1449
+ end: b["p2-4"]
1450
1450
  },
1451
1451
  {
1452
1452
  id: "L3-3x3-4",
1453
- start: C["p3-3"],
1454
- end: C["p4-3"]
1453
+ start: b["p3-3"],
1454
+ end: b["p4-3"]
1455
1455
  },
1456
1456
  {
1457
1457
  id: "L3-3x4-3",
1458
- start: C["p3-3"],
1459
- end: C["p3-4"]
1458
+ start: b["p3-3"],
1459
+ end: b["p3-4"]
1460
1460
  },
1461
1461
  {
1462
1462
  id: "L3-2x3-3",
1463
- start: C["p3-2"],
1464
- end: C["p3-3"]
1463
+ start: b["p3-2"],
1464
+ end: b["p3-3"]
1465
1465
  },
1466
1466
  {
1467
1467
  id: "L3-2x4-2",
1468
- start: C["p3-2"],
1469
- end: C["p4-2"]
1468
+ start: b["p3-2"],
1469
+ end: b["p4-2"]
1470
1470
  },
1471
1471
  {
1472
1472
  id: "L3-1x3-2",
1473
- start: C["p3-1"],
1474
- end: C["p3-2"]
1473
+ start: b["p3-1"],
1474
+ end: b["p3-2"]
1475
1475
  },
1476
1476
  {
1477
1477
  id: "L3-1x4-1",
1478
- start: C["p3-1"],
1479
- end: C["p4-1"]
1478
+ start: b["p3-1"],
1479
+ end: b["p4-1"]
1480
1480
  },
1481
1481
  {
1482
1482
  id: "L3-0x3-1",
1483
- start: C["p3-0"],
1484
- end: C["p3-1"]
1483
+ start: b["p3-0"],
1484
+ end: b["p3-1"]
1485
1485
  },
1486
1486
  {
1487
1487
  id: "L3-0x4-0",
1488
- start: C["p3-0"],
1489
- end: C["p4-0"]
1488
+ start: b["p3-0"],
1489
+ end: b["p4-0"]
1490
1490
  },
1491
1491
  {
1492
1492
  id: "L3-4x3-5",
1493
- start: C["p4-3"],
1494
- end: C["p5-3"]
1493
+ start: b["p4-3"],
1494
+ end: b["p5-3"]
1495
1495
  },
1496
1496
  {
1497
1497
  id: "L4-3x5-3",
1498
- start: C["p3-4"],
1499
- end: C["p3-5"]
1498
+ start: b["p3-4"],
1499
+ end: b["p3-5"]
1500
1500
  },
1501
1501
  {
1502
1502
  id: "L3-3xG-3",
1503
- start: C["p3-3"],
1504
- end: C["pG-3"]
1503
+ start: b["p3-3"],
1504
+ end: b["pG-3"]
1505
1505
  },
1506
1506
  {
1507
1507
  id: "L3-3x3-G",
1508
- start: C["p3-3"],
1509
- end: C["p3-G"]
1508
+ start: b["p3-3"],
1509
+ end: b["p3-G"]
1510
1510
  }
1511
- ], E = [{
1511
+ ], w = [{
1512
1512
  stroke: "blue",
1513
- start: C.L1s,
1514
- end: C.L1e,
1513
+ start: b.L1s,
1514
+ end: b.L1e,
1515
1515
  width: 2
1516
1516
  }, {
1517
1517
  stroke: "blue",
1518
- start: C.L2s,
1519
- end: C.L2e,
1518
+ start: b.L2s,
1519
+ end: b.L2e,
1520
1520
  width: 2
1521
- }], D = [
1521
+ }], T = [
1522
1522
  {
1523
- pos: C["p0-0"],
1523
+ pos: b["p0-0"],
1524
1524
  fill: "black",
1525
1525
  fontsize: .7,
1526
1526
  text: "0-0"
1527
1527
  },
1528
1528
  {
1529
- pos: C["p1-1"],
1529
+ pos: b["p1-1"],
1530
1530
  fill: "black",
1531
1531
  fontsize: .7,
1532
1532
  text: "15-15"
1533
1533
  },
1534
1534
  {
1535
- pos: C["p2-2"],
1535
+ pos: b["p2-2"],
1536
1536
  fill: "black",
1537
1537
  fontsize: .7,
1538
1538
  text: "30-30"
1539
1539
  },
1540
1540
  {
1541
- pos: C["p3-3"],
1541
+ pos: b["p3-3"],
1542
1542
  fill: "black",
1543
1543
  fontsize: .7,
1544
1544
  text: "40-40"
1545
1545
  },
1546
1546
  {
1547
- pos: C["p0-1"],
1547
+ pos: b["p0-1"],
1548
1548
  fill: "white",
1549
1549
  fontsize: .7,
1550
1550
  text: "0-15"
1551
1551
  },
1552
1552
  {
1553
- pos: C["p1-2"],
1553
+ pos: b["p1-2"],
1554
1554
  fill: "white",
1555
1555
  fontsize: .7,
1556
1556
  text: "15-30"
1557
1557
  },
1558
1558
  {
1559
- pos: C["p0-2"],
1559
+ pos: b["p0-2"],
1560
1560
  fill: "white",
1561
1561
  fontsize: .7,
1562
1562
  text: "0-30"
1563
1563
  },
1564
1564
  {
1565
- pos: C["p2-3"],
1565
+ pos: b["p2-3"],
1566
1566
  fill: "white",
1567
1567
  fontsize: .7,
1568
1568
  text: "30-40"
1569
1569
  },
1570
1570
  {
1571
- pos: C["p1-3"],
1571
+ pos: b["p1-3"],
1572
1572
  fill: "white",
1573
1573
  fontsize: .7,
1574
1574
  text: "15-40"
1575
1575
  },
1576
1576
  {
1577
- pos: C["p0-3"],
1577
+ pos: b["p0-3"],
1578
1578
  fill: "white",
1579
1579
  fontsize: .7,
1580
1580
  text: "0-40"
1581
1581
  },
1582
1582
  {
1583
- pos: C["p4-3"],
1583
+ pos: b["p4-3"],
1584
1584
  fill: "white",
1585
1585
  fontsize: .7,
1586
1586
  text: "40-A"
1587
1587
  },
1588
1588
  {
1589
- pos: C["p1-0"],
1589
+ pos: b["p1-0"],
1590
1590
  fill: "white",
1591
1591
  fontsize: .7,
1592
1592
  text: "15-0"
1593
1593
  },
1594
1594
  {
1595
- pos: C["p2-1"],
1595
+ pos: b["p2-1"],
1596
1596
  fill: "white",
1597
1597
  fontsize: .7,
1598
1598
  text: "30-15"
1599
1599
  },
1600
1600
  {
1601
- pos: C["p2-0"],
1601
+ pos: b["p2-0"],
1602
1602
  fill: "white",
1603
1603
  fontsize: .7,
1604
1604
  text: "30-0"
1605
1605
  },
1606
1606
  {
1607
- pos: C["p3-2"],
1607
+ pos: b["p3-2"],
1608
1608
  fill: "white",
1609
1609
  fontsize: .7,
1610
1610
  text: "40-30"
1611
1611
  },
1612
1612
  {
1613
- pos: C["p3-1"],
1613
+ pos: b["p3-1"],
1614
1614
  fill: "white",
1615
1615
  fontsize: .7,
1616
1616
  text: "40-15"
1617
1617
  },
1618
1618
  {
1619
- pos: C["p3-0"],
1619
+ pos: b["p3-0"],
1620
1620
  fill: "white",
1621
1621
  fontsize: .7,
1622
1622
  text: "40-0"
1623
1623
  },
1624
1624
  {
1625
- pos: C["p3-4"],
1625
+ pos: b["p3-4"],
1626
1626
  fill: "white",
1627
1627
  fontsize: .7,
1628
1628
  text: "A-40"
1629
1629
  }
1630
- ], O = [
1630
+ ], E = [
1631
1631
  {
1632
- pos: C.tPlyr,
1632
+ pos: b.tPlyr,
1633
1633
  fill: "black",
1634
1634
  fontsize: .9,
1635
1635
  id: "Player",
@@ -1637,7 +1637,7 @@ function Oe() {
1637
1637
  baseline: "hanging"
1638
1638
  },
1639
1639
  {
1640
- pos: C.tOpp,
1640
+ pos: b.tOpp,
1641
1641
  fill: "black",
1642
1642
  fontsize: .9,
1643
1643
  id: "Opponent",
@@ -1645,22 +1645,22 @@ function Oe() {
1645
1645
  baseline: "hanging"
1646
1646
  },
1647
1647
  {
1648
- pos: C.GAME,
1648
+ pos: b.GAME,
1649
1649
  fill: "#555555",
1650
1650
  fontsize: .9,
1651
1651
  id: "Game",
1652
1652
  anchor: "middle",
1653
1653
  baseline: "central"
1654
1654
  }
1655
- ], k = [{
1655
+ ], D = [{
1656
1656
  id: "Player",
1657
- pos: C.sPlyr,
1657
+ pos: b.sPlyr,
1658
1658
  r_pct: .4,
1659
1659
  opacity: 1,
1660
1660
  status: "none"
1661
1661
  }, {
1662
1662
  id: "Opponent",
1663
- pos: C.sOpp,
1663
+ pos: b.sOpp,
1664
1664
  r_pct: .4,
1665
1665
  opacity: .4,
1666
1666
  status: "none"