@kq_npm/client3d_webgl_vue 2.4.3-beta → 2.4.5-beta

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.
package/adddata/index.js CHANGED
@@ -135,14 +135,15 @@ class AddDataViewModel {
135
135
  },
136
136
  polyline: {
137
137
  width: 2.0,
138
- material: Cesium.Color.RED
138
+ material: Cesium.Color.RED,
139
+ clampToGround: true
139
140
  },
140
141
  polygon: {
141
142
  material: Cesium.Color.BLUE.withAlpha(0.3),
142
143
  outline: true,
143
144
  outlineWidth: 1,
144
145
  outlineColor: Cesium.Color.YELLOW,
145
- perPositionHeight: true
146
+ perPositionHeight: false
146
147
  }
147
148
  });
148
149
 
@@ -186,6 +187,16 @@ class AddDataViewModel {
186
187
 
187
188
  var ds = new Cesium.Kq3dGeoJsonDataSource(name);
188
189
  ds.load(ret, that._geojsonStyle).then(ds => {
190
+ ds.entities.values.forEach(entity => {
191
+ if (entity.polygon) {
192
+ entity.polyline = {
193
+ positions: entity.polygon.hierarchy._value.positions,
194
+ width: that._geojsonStyle.polygon.outlineWidth,
195
+ material: that._geojsonStyle.polygon.outlineColor
196
+ };
197
+ }
198
+ });
199
+
189
200
  that._viewer.dataSources.add(ds);
190
201
 
191
202
  ds.autoAvoid(that._viewer);
package/index.js CHANGED
@@ -1085,14 +1085,15 @@ class LayerManager {
1085
1085
  },
1086
1086
  polyline: {
1087
1087
  width: 2.0,
1088
- material: Cesium.Color.RED
1088
+ material: Cesium.Color.RED,
1089
+ clampToGround: true
1089
1090
  },
1090
1091
  polygon: {
1091
1092
  material: Cesium.Color.BLUE.withAlpha(0.3),
1092
1093
  outline: true,
1093
1094
  outlineWidth: 1,
1094
1095
  outlineColor: Cesium.Color.YELLOW,
1095
- perPositionHeight: true
1096
+ perPositionHeight: false
1096
1097
  }
1097
1098
  });
1098
1099
 
@@ -1521,6 +1522,16 @@ class LayerManager {
1521
1522
  case "geojson":
1522
1523
  var ds = new Cesium.Kq3dGeoJsonDataSource(name);
1523
1524
  promise = ds.load(url, this._geojsonStyle).then(ds => {
1525
+ ds.entities.values.forEach(entity => {
1526
+ if (entity.polygon) {
1527
+ entity.polyline = {
1528
+ positions: entity.polygon.hierarchy._value.positions,
1529
+ width: this._geojsonStyle.polygon.outlineWidth,
1530
+ material: this._geojsonStyle.polygon.outlineColor
1531
+ };
1532
+ }
1533
+ }, this);
1534
+
1524
1535
  this._viewer.dataSources.add(ds);
1525
1536
 
1526
1537
  ds.autoAvoid(this._viewer);
@@ -17555,14 +17566,15 @@ class AddDataViewModel {
17555
17566
  },
17556
17567
  polyline: {
17557
17568
  width: 2.0,
17558
- material: Cesium.Color.RED
17569
+ material: Cesium.Color.RED,
17570
+ clampToGround: true
17559
17571
  },
17560
17572
  polygon: {
17561
17573
  material: Cesium.Color.BLUE.withAlpha(0.3),
17562
17574
  outline: true,
17563
17575
  outlineWidth: 1,
17564
17576
  outlineColor: Cesium.Color.YELLOW,
17565
- perPositionHeight: true
17577
+ perPositionHeight: false
17566
17578
  }
17567
17579
  });
17568
17580
 
@@ -17606,6 +17618,16 @@ class AddDataViewModel {
17606
17618
 
17607
17619
  var ds = new Cesium.Kq3dGeoJsonDataSource(name);
17608
17620
  ds.load(ret, that._geojsonStyle).then(ds => {
17621
+ ds.entities.values.forEach(entity => {
17622
+ if (entity.polygon) {
17623
+ entity.polyline = {
17624
+ positions: entity.polygon.hierarchy._value.positions,
17625
+ width: that._geojsonStyle.polygon.outlineWidth,
17626
+ material: that._geojsonStyle.polygon.outlineColor
17627
+ };
17628
+ }
17629
+ });
17630
+
17609
17631
  that._viewer.dataSources.add(ds);
17610
17632
 
17611
17633
  ds.autoAvoid(that._viewer);
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"2.4.3-beta","homepage":"","keywords":["KQGIS","webGL","Vue"],"browserslist":["> 1%","last 2 versions","not dead","not ie 11"],"author":"KQWEB GROUP","license":"Apache-2.0","dependencies":{"colorcolor":"^1.1.1","echarts":"^5.3.3","js-cookie":"^3.0.1","omit.js":"^2.0.2","save":"^2.5.0","tinycolor2":"^1.4.2","vue-i18n":"^9.2.0-beta.36","xlsx":"^0.18.5","css-vars-ponyfill":"^2.4.8","xe-utils":"^3.5.4"}}
1
+ {"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"2.4.5-beta","homepage":"","keywords":["KQGIS","webGL","Vue"],"browserslist":["> 1%","last 2 versions","not dead","not ie 11"],"author":"KQWEB GROUP","license":"Apache-2.0","dependencies":{"colorcolor":"^1.1.1","echarts":"^5.3.3","js-cookie":"^3.0.1","omit.js":"^2.0.2","save":"^2.5.0","tinycolor2":"^1.4.2","vue-i18n":"^9.2.0-beta.36","xlsx":"^0.18.5","css-vars-ponyfill":"^2.4.8","xe-utils":"^3.5.4"}}
@@ -610,14 +610,15 @@ class LayerManager {
610
610
  },
611
611
  polyline: {
612
612
  width: 2.0,
613
- material: Cesium.Color.RED
613
+ material: Cesium.Color.RED,
614
+ clampToGround: true
614
615
  },
615
616
  polygon: {
616
617
  material: Cesium.Color.BLUE.withAlpha(0.3),
617
618
  outline: true,
618
619
  outlineWidth: 1,
619
620
  outlineColor: Cesium.Color.YELLOW,
620
- perPositionHeight: true
621
+ perPositionHeight: false
621
622
  }
622
623
  });
623
624
 
@@ -1046,6 +1047,16 @@ class LayerManager {
1046
1047
  case "geojson":
1047
1048
  var ds = new Cesium.Kq3dGeoJsonDataSource(name);
1048
1049
  promise = ds.load(url, this._geojsonStyle).then(ds => {
1050
+ ds.entities.values.forEach(entity => {
1051
+ if (entity.polygon) {
1052
+ entity.polyline = {
1053
+ positions: entity.polygon.hierarchy._value.positions,
1054
+ width: this._geojsonStyle.polygon.outlineWidth,
1055
+ material: this._geojsonStyle.polygon.outlineColor
1056
+ };
1057
+ }
1058
+ }, this);
1059
+
1049
1060
  this._viewer.dataSources.add(ds);
1050
1061
 
1051
1062
  ds.autoAvoid(this._viewer);