poi-plugin-compass 0.1.1 → 0.1.3

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.
@@ -220,6 +220,7 @@
220
220
 
221
221
  .compass-edge {
222
222
  outline: none;
223
+ cursor: pointer;
223
224
  }
224
225
 
225
226
  .compass-edge line {
@@ -275,12 +276,27 @@
275
276
  cursor: pointer;
276
277
  }
277
278
 
279
+ .compass-edge.is-selected line,
280
+ .compass-edge:hover line,
281
+ .compass-edge:focus line,
278
282
  .compass-edge.is-manual-choice:hover line,
279
283
  .compass-edge.is-manual-choice:focus line {
280
284
  stroke: #f4d476;
281
285
  stroke-width: 8;
282
286
  }
283
287
 
288
+ .compass-edge-id-label {
289
+ fill: #ffffff;
290
+ font-size: 14px;
291
+ font-weight: 800;
292
+ text-anchor: middle;
293
+ paint-order: stroke;
294
+ stroke: #151a22;
295
+ stroke-width: 4px;
296
+ stroke-linejoin: round;
297
+ pointer-events: none;
298
+ }
299
+
284
300
  .compass-edge-label {
285
301
  fill: #e2e8f0;
286
302
  font-size: 18px;
@@ -485,7 +501,10 @@
485
501
  }
486
502
 
487
503
  .compass-condition:hover,
488
- .compass-condition:focus {
504
+ .compass-condition:focus,
505
+ .compass-condition:focus-within {
506
+ position: relative;
507
+ z-index: 20;
489
508
  background: #3a4655;
490
509
  }
491
510
 
@@ -530,7 +549,9 @@
530
549
  top: calc(100% + 4px);
531
550
  right: 0;
532
551
  display: none;
533
- width: 260px;
552
+ width: min(480px, calc(100vw - 48px));
553
+ max-height: min(60vh, 420px);
554
+ box-sizing: border-box;
534
555
  padding: 8px 9px;
535
556
  border: 1px solid #8392a5;
536
557
  border-radius: 3px;
@@ -538,6 +559,12 @@
538
559
  background: #252c36;
539
560
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.35);
540
561
  line-height: 1.5;
562
+ overflow: auto;
563
+ overscroll-behavior: contain;
564
+ white-space: normal;
565
+ overflow-wrap: anywhere;
566
+ word-break: break-word;
567
+ pointer-events: auto;
541
568
  }
542
569
 
543
570
  .compass-condition:hover .compass-condition-popover,
@@ -545,6 +572,10 @@
545
572
  display: block;
546
573
  }
547
574
 
575
+ .compass-condition-note {
576
+ color: #c9d8e7;
577
+ }
578
+
548
579
  .compass-manual {
549
580
  flex-wrap: wrap;
550
581
  gap: 6px;
package/data/maps.json CHANGED
@@ -283,7 +283,7 @@
283
283
  "id": "2-5-E-cv-ca",
284
284
  "node": "E",
285
285
  "priority": 30,
286
- "predicate": { "kind": "count", "category": ["CV_MAIN", "CA", "CAV"], "op": ">=", "value": 2, "label": "空母/重巡系 ≥ 2" },
286
+ "predicate": { "kind": "count", "category": ["CV_MAIN", "CA_ALL"], "op": ">=", "value": 2, "label": "空母/重巡系 ≥ 2" },
287
287
  "outcomes": [{ "to": "G", "probability": 1 }],
288
288
  "confidence": "verified"
289
289
  },
@@ -481,11 +481,8 @@
481
481
  "node": "J",
482
482
  "priority": 20,
483
483
  "predicate": { "kind": "losRange", "min": 42, "max": 49, "label": "33 式索敌 42~49:H 概率随索敌升高而下降" },
484
- "outcomes": [
485
- { "to": "H", "probability": null },
486
- { "to": "M", "probability": null },
487
- { "to": "O", "probability": null }
488
- ],
484
+ "outcomes": [{ "to": "H", "probability": null }],
485
+ "continueOnFailure": true,
489
486
  "confidence": "unknown"
490
487
  },
491
488
  {
@@ -494,9 +491,8 @@
494
491
  "priority": 30,
495
492
  "predicate": {
496
493
  "kind": "all",
497
- "label": "33 式索敌 ≥ 49 且 潜水系 ≥ 1",
494
+ "label": "去 H 判定失败或 33 式索敌 ≥ 49,且潜水系 ≥ 1",
498
495
  "predicates": [
499
- { "kind": "los", "op": ">=", "value": 49 },
500
496
  { "kind": "count", "category": "SS", "op": ">=", "value": 1 }
501
497
  ]
502
498
  },
@@ -512,9 +508,8 @@
512
508
  "priority": 40,
513
509
  "predicate": {
514
510
  "kind": "all",
515
- "label": "33 式索敌 ≥ 49 且 海防 ≥ 3",
511
+ "label": "去 H 判定失败或 33 式索敌 ≥ 49,且海防 ≥ 3",
516
512
  "predicates": [
517
- { "kind": "los", "op": ">=", "value": 49 },
518
513
  { "kind": "count", "category": "DE", "op": ">=", "value": 3 }
519
514
  ]
520
515
  },
@@ -527,9 +522,8 @@
527
522
  "priority": 50,
528
523
  "predicate": {
529
524
  "kind": "all",
530
- "label": "33 式索敌 ≥ 49 且 战舰系 ≤ 3",
525
+ "label": "去 H 判定失败或 33 式索敌 ≥ 49,且战舰系 ≤ 3",
531
526
  "predicates": [
532
- { "kind": "los", "op": ">=", "value": 49 },
533
527
  { "kind": "count", "category": "BB_ALL", "op": "<=", "value": 3 }
534
528
  ]
535
529
  },
@@ -540,7 +534,7 @@
540
534
  "id": "2-5-J-los-high-random",
541
535
  "node": "J",
542
536
  "priority": 999,
543
- "predicate": { "kind": "always", "label": "33 式索敌 ≥ 49 的其余编成:随机 M/O" },
537
+ "predicate": { "kind": "always", "label": "去 H 判定失败或 33 式索敌 ≥ 49 的其余编成:随机 M/O" },
544
538
  "outcomes": [
545
539
  { "to": "M", "probability": null },
546
540
  { "to": "O", "probability": null }