bruce-cesium 0.3.4 → 0.3.5

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.
@@ -1514,7 +1514,7 @@
1514
1514
  Manager.prototype.onGetterUpdate = function (entities) {
1515
1515
  var _a;
1516
1516
  return __awaiter(this, void 0, void 0, function () {
1517
- var cEntities, i, id, cEntity, visual;
1517
+ var cEntities, i, entity, id, cEntity, visual;
1518
1518
  return __generator(this, function (_b) {
1519
1519
  switch (_b.label) {
1520
1520
  case 0:
@@ -1532,7 +1532,8 @@
1532
1532
  case 1:
1533
1533
  cEntities = _b.sent();
1534
1534
  for (i = 0; i < entities.length; i++) {
1535
- id = entities[i].Bruce.ID;
1535
+ entity = entities[i];
1536
+ id = entity.Bruce.ID;
1536
1537
  cEntity = cEntities[id];
1537
1538
  this.renderedEntities[id] = !!cEntity;
1538
1539
  if (cEntity) {
@@ -1542,7 +1543,8 @@
1542
1543
  entityId: id,
1543
1544
  menuItemId: this.item.id,
1544
1545
  visual: cEntity,
1545
- priority: 0
1546
+ priority: 0,
1547
+ entityTypeId: entity.Bruce["EntityType.ID"]
1546
1548
  });
1547
1549
  }
1548
1550
  }
@@ -1609,7 +1611,7 @@
1609
1611
  Manager.prototype.onGetterUpdate = function (entities) {
1610
1612
  var _a;
1611
1613
  return __awaiter(this, void 0, void 0, function () {
1612
- var cEntities, i, id, cEntity, visual;
1614
+ var cEntities, i, entity, id, cEntity, visual;
1613
1615
  return __generator(this, function (_b) {
1614
1616
  switch (_b.label) {
1615
1617
  case 0:
@@ -1627,7 +1629,8 @@
1627
1629
  case 1:
1628
1630
  cEntities = _b.sent();
1629
1631
  for (i = 0; i < entities.length; i++) {
1630
- id = entities[i].Bruce.ID;
1632
+ entity = entities[i];
1633
+ id = entity.Bruce.ID;
1631
1634
  cEntity = cEntities[id];
1632
1635
  this.renderedEntities[id] = !!cEntity;
1633
1636
  if (cEntity) {
@@ -1637,7 +1640,8 @@
1637
1640
  entityId: id,
1638
1641
  menuItemId: this.item.id,
1639
1642
  visual: cEntity,
1640
- priority: 0
1643
+ priority: 0,
1644
+ entityTypeId: entity.Bruce["EntityType.ID"]
1641
1645
  });
1642
1646
  }
1643
1647
  }
@@ -2083,7 +2087,7 @@
2083
2087
  Manager.prototype.onGetterUpdate = function (entityIds) {
2084
2088
  var _a;
2085
2089
  return __awaiter(this, void 0, void 0, function () {
2086
- var api, entities, cEntities, i, id, cEntity, visual;
2090
+ var api, entities, cEntities, i, entity, id, cEntity, visual;
2087
2091
  return __generator(this, function (_b) {
2088
2092
  switch (_b.label) {
2089
2093
  case 0:
@@ -2105,7 +2109,8 @@
2105
2109
  case 2:
2106
2110
  cEntities = _b.sent();
2107
2111
  for (i = 0; i < entities.length; i++) {
2108
- id = entities[i].Bruce.ID;
2112
+ entity = entities[i];
2113
+ id = entity.Bruce.ID;
2109
2114
  cEntity = cEntities[id];
2110
2115
  this.renderedEntities[id] = !!cEntity;
2111
2116
  if (cEntity) {
@@ -2115,7 +2120,8 @@
2115
2120
  entityId: id,
2116
2121
  menuItemId: this.item.id,
2117
2122
  visual: cEntity,
2118
- priority: 0
2123
+ priority: 0,
2124
+ entityTypeId: entity.Bruce["EntityType.ID"]
2119
2125
  });
2120
2126
  }
2121
2127
  }
@@ -2210,7 +2216,8 @@
2210
2216
  entityId: entity.Bruce.ID,
2211
2217
  menuItemId: this.item.id,
2212
2218
  visual: cEntity,
2213
- priority: 0
2219
+ priority: 0,
2220
+ entityTypeId: entity.Bruce["EntityType.ID"]
2214
2221
  });
2215
2222
  }
2216
2223
  }