bruce-cesium 5.3.3 → 5.3.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.
@@ -1537,12 +1537,12 @@
1537
1537
  storeColor(key, color, graphic);
1538
1538
  }
1539
1539
  }
1540
- else if (key == "select") {
1541
- color = _selectColor;
1542
- }
1543
1540
  else if (key == "highlight") {
1544
1541
  color = _highlightColor;
1545
1542
  }
1543
+ else if (key == "select") {
1544
+ color = _selectColor;
1545
+ }
1546
1546
  }
1547
1547
  return color;
1548
1548
  }
@@ -1568,19 +1568,19 @@
1568
1568
  var _a, _b;
1569
1569
  // Calculate what color key we should apply.
1570
1570
  let key = "default";
1571
- if (getKeyState(graphic, "select")) {
1572
- key = "select";
1573
- }
1574
- else if (getKeyState(graphic, "highlight")) {
1571
+ if (getKeyState(graphic, "highlight")) {
1575
1572
  key = "highlight";
1576
1573
  }
1574
+ else if (getKeyState(graphic, "select")) {
1575
+ key = "select";
1576
+ }
1577
1577
  // This ensures that the default color is always stored prior to applying a new color.
1578
1578
  if (key != "default") {
1579
1579
  getColor$1(viewer, "default", graphic);
1580
1580
  }
1581
1581
  let color = (_a = getColor$1(viewer, key, graphic)) !== null && _a !== void 0 ? _a : Cesium.Color.WHITE;
1582
- // If we're highlighting and it's selected, don't change the color.
1583
- if (key != "highlight" || getKeyState(graphic, "select") == false) {
1582
+ // If we're selecting and it's highlighted, don't change the color.
1583
+ if (key != "select" || getKeyState(graphic, "highlight") == false) {
1584
1584
  let animateMs = key == "highlight" ? ANIMATE_COLOR_HIGHLIGHT_MS : ANIMATE_COLOR_MS;
1585
1585
  color = color.clone();
1586
1586
  // Multiply opacity if one is set.
@@ -1731,12 +1731,12 @@
1731
1731
  }
1732
1732
  (function (CesiumEntityStyler) {
1733
1733
  function UpdateColorSetting(key, color) {
1734
- if (key == "select") {
1735
- _selectColor = color.clone();
1736
- }
1737
- else if (key == "highlight") {
1734
+ if (key == "highlight") {
1738
1735
  _highlightColor = color.clone();
1739
1736
  }
1737
+ else if (key == "select") {
1738
+ _selectColor = color.clone();
1739
+ }
1740
1740
  }
1741
1741
  CesiumEntityStyler.UpdateColorSetting = UpdateColorSetting;
1742
1742
  function Refresh(params) {
@@ -29993,7 +29993,7 @@
29993
29993
  }
29994
29994
  }
29995
29995
 
29996
- const VERSION = "5.3.3";
29996
+ const VERSION = "5.3.4";
29997
29997
 
29998
29998
  exports.VERSION = VERSION;
29999
29999
  exports.isHistoricMetadataChanged = isHistoricMetadataChanged;