bruce-cesium 2.4.0 → 2.4.1

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.
@@ -823,6 +823,8 @@
823
823
  processKey("point", "color");
824
824
  processKey("ellipse");
825
825
  processKey("model", "color");
826
+ processKey("corridor");
827
+ processKey("billboard", "color");
826
828
  }
827
829
  else if (entity instanceof Cesium.Cesium3DTileFeature) {
828
830
  var orgOpacity = entity[ORG_OPACITY_KEY];
@@ -859,6 +861,8 @@
859
861
  processKey("point", "color");
860
862
  processKey("ellipse");
861
863
  processKey("model", "color");
864
+ processKey("corridor");
865
+ processKey("billboard", "color");
862
866
  }
863
867
  else if (entity instanceof Cesium.Cesium3DTileFeature) {
864
868
  var orgOpacity = entity[ORG_OPACITY_KEY];
@@ -918,6 +922,9 @@
918
922
  else if (visual.billboard) {
919
923
  visualHeightRef = GetValue(viewer, visual.billboard.heightReference);
920
924
  }
925
+ else if (visual.corridor) {
926
+ visualHeightRef = GetValue(viewer, visual.corridor.heightReference);
927
+ }
921
928
  else if (visual.ellipse) {
922
929
  visualHeightRef = GetValue(viewer, visual.ellipse.heightReference);
923
930
  }
@@ -2481,16 +2488,27 @@
2481
2488
  bruceModels.Cartes.CloseRing3(borderPosses);
2482
2489
  }
2483
2490
  var cEntityBorder = new Cesium.Entity({
2484
- polyline: new Cesium.PolylineGraphics({
2491
+ // polyline: new Cesium.PolylineGraphics({
2492
+ // positions: borderPosses,
2493
+ // material: <Cesium.MaterialProperty><any>cLineColor,
2494
+ // width: width,
2495
+ // clampToGround: heightRef == Cesium.HeightReference.CLAMP_TO_GROUND,
2496
+ // classificationType: Cesium.ClassificationType.TERRAIN,
2497
+ // arcType: Cesium.ArcType.GEODESIC,
2498
+ // zIndex: zIndex,
2499
+ // distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance)
2500
+ // }),
2501
+ corridor: {
2485
2502
  positions: borderPosses,
2486
2503
  material: cLineColor,
2504
+ heightReference: heightRef,
2487
2505
  width: width,
2488
- clampToGround: heightRef == Cesium.HeightReference.CLAMP_TO_GROUND,
2489
- classificationType: Cesium.ClassificationType.TERRAIN,
2490
- arcType: Cesium.ArcType.GEODESIC,
2506
+ fill: true,
2491
2507
  zIndex: zIndex,
2492
- distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance)
2493
- }),
2508
+ classificationType: Cesium.ClassificationType.TERRAIN,
2509
+ distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance),
2510
+ shadows: Cesium.ShadowMode.ENABLED
2511
+ },
2494
2512
  show: false
2495
2513
  });
2496
2514
  params.viewer.entities.add(cEntityBorder);
@@ -2500,16 +2518,27 @@
2500
2518
  var posses_1 = holePosses[i];
2501
2519
  bruceModels.Cartes.CloseRing3(posses_1);
2502
2520
  var cEntityHole = new Cesium.Entity({
2503
- polyline: new Cesium.PolylineGraphics({
2504
- positions: posses_1,
2521
+ // polyline: new Cesium.PolylineGraphics({
2522
+ // positions: posses,
2523
+ // material: <Cesium.MaterialProperty><any>cLineColor,
2524
+ // width: width,
2525
+ // clampToGround: heightRef == Cesium.HeightReference.CLAMP_TO_GROUND,
2526
+ // classificationType: Cesium.ClassificationType.TERRAIN,
2527
+ // arcType: Cesium.ArcType.GEODESIC,
2528
+ // zIndex: zIndex,
2529
+ // distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance)
2530
+ // }),
2531
+ corridor: {
2532
+ positions: borderPosses,
2505
2533
  material: cLineColor,
2534
+ heightReference: heightRef,
2506
2535
  width: width,
2507
- clampToGround: heightRef == Cesium.HeightReference.CLAMP_TO_GROUND,
2508
- classificationType: Cesium.ClassificationType.TERRAIN,
2509
- arcType: Cesium.ArcType.GEODESIC,
2536
+ fill: true,
2510
2537
  zIndex: zIndex,
2511
- distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance)
2512
- }),
2538
+ classificationType: Cesium.ClassificationType.TERRAIN,
2539
+ distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance),
2540
+ shadows: Cesium.ShadowMode.ENABLED
2541
+ },
2513
2542
  show: false
2514
2543
  });
2515
2544
  cEntity._siblingGraphics.push(cEntityHole);
@@ -4916,6 +4945,7 @@
4916
4945
  "polyline": "material",
4917
4946
  "model": "color",
4918
4947
  "billboard": "color",
4948
+ "corridor": "material",
4919
4949
  "ellipse": "material"
4920
4950
  };
4921
4951
  var _loop_1 = function (i) {
@@ -4975,6 +5005,7 @@
4975
5005
  "polyline": "material",
4976
5006
  "model": "color",
4977
5007
  "billboard": "color",
5008
+ "corridor": "material",
4978
5009
  "ellipse": "material"
4979
5010
  };
4980
5011
  var _loop_2 = function (i) {
@@ -14345,7 +14376,7 @@
14345
14376
  ViewerUtils.CreateWidgets = CreateWidgets;
14346
14377
  })(exports.ViewerUtils || (exports.ViewerUtils = {}));
14347
14378
 
14348
- var VERSION$1 = "2.4.0";
14379
+ var VERSION$1 = "2.4.1";
14349
14380
 
14350
14381
  exports.VERSION = VERSION$1;
14351
14382
  exports.CesiumViewMonitor = CesiumViewMonitor;