bruce-cesium 2.4.0 → 2.4.2

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,28 @@
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,
2506
+ fill: true,
2507
+ zIndex: zIndex + 1,
2508
+ cornerType: Cesium.CornerType.MITERED,
2489
2509
  classificationType: Cesium.ClassificationType.TERRAIN,
2490
- arcType: Cesium.ArcType.GEODESIC,
2491
- zIndex: zIndex,
2492
- distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance)
2493
- }),
2510
+ distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance),
2511
+ shadows: Cesium.ShadowMode.ENABLED
2512
+ },
2494
2513
  show: false
2495
2514
  });
2496
2515
  params.viewer.entities.add(cEntityBorder);
@@ -2500,16 +2519,28 @@
2500
2519
  var posses_1 = holePosses[i];
2501
2520
  bruceModels.Cartes.CloseRing3(posses_1);
2502
2521
  var cEntityHole = new Cesium.Entity({
2503
- polyline: new Cesium.PolylineGraphics({
2504
- positions: posses_1,
2522
+ // polyline: new Cesium.PolylineGraphics({
2523
+ // positions: posses,
2524
+ // material: <Cesium.MaterialProperty><any>cLineColor,
2525
+ // width: width,
2526
+ // clampToGround: heightRef == Cesium.HeightReference.CLAMP_TO_GROUND,
2527
+ // classificationType: Cesium.ClassificationType.TERRAIN,
2528
+ // arcType: Cesium.ArcType.GEODESIC,
2529
+ // zIndex: zIndex,
2530
+ // distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance)
2531
+ // }),
2532
+ corridor: {
2533
+ positions: borderPosses,
2505
2534
  material: cLineColor,
2535
+ heightReference: heightRef,
2506
2536
  width: width,
2507
- clampToGround: heightRef == Cesium.HeightReference.CLAMP_TO_GROUND,
2537
+ fill: true,
2538
+ zIndex: zIndex + 1,
2539
+ cornerType: Cesium.CornerType.MITERED,
2508
2540
  classificationType: Cesium.ClassificationType.TERRAIN,
2509
- arcType: Cesium.ArcType.GEODESIC,
2510
- zIndex: zIndex,
2511
- distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance)
2512
- }),
2541
+ distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance),
2542
+ shadows: Cesium.ShadowMode.ENABLED,
2543
+ },
2513
2544
  show: false
2514
2545
  });
2515
2546
  cEntity._siblingGraphics.push(cEntityHole);
@@ -4916,6 +4947,7 @@
4916
4947
  "polyline": "material",
4917
4948
  "model": "color",
4918
4949
  "billboard": "color",
4950
+ "corridor": "material",
4919
4951
  "ellipse": "material"
4920
4952
  };
4921
4953
  var _loop_1 = function (i) {
@@ -4975,6 +5007,7 @@
4975
5007
  "polyline": "material",
4976
5008
  "model": "color",
4977
5009
  "billboard": "color",
5010
+ "corridor": "material",
4978
5011
  "ellipse": "material"
4979
5012
  };
4980
5013
  var _loop_2 = function (i) {
@@ -14345,7 +14378,7 @@
14345
14378
  ViewerUtils.CreateWidgets = CreateWidgets;
14346
14379
  })(exports.ViewerUtils || (exports.ViewerUtils = {}));
14347
14380
 
14348
- var VERSION$1 = "2.4.0";
14381
+ var VERSION$1 = "2.4.2";
14349
14382
 
14350
14383
  exports.VERSION = VERSION$1;
14351
14384
  exports.CesiumViewMonitor = CesiumViewMonitor;