@kq_npm/client3d_webgl_vue 0.8.4-beta → 0.8.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.
@@ -78,8 +78,6 @@ function _defineProperty(obj, key, value) {
78
78
  }
79
79
  ;// CONCATENATED MODULE: ./src/webgl/excavatefillanalysis/ExcavateFillAnalysisViewModel.js
80
80
 
81
- // import * as turf from "@turf/turf";
82
- // window.turf = turf;
83
81
  //填挖方分析逻辑类
84
82
  class ExcavateFillAnalysisViewModel {
85
83
  //填挖方分析三维对象
package/index.js CHANGED
@@ -532,13 +532,15 @@ var mitt_default = /*#__PURE__*/__webpack_require__.n(mitt_namespaceObject);
532
532
  var web_dom_exception_stack_js_namespaceObject = require("core-js/modules/web.dom-exception.stack.js");
533
533
  ;// CONCATENATED MODULE: external "core-js/modules/es.array.includes.js"
534
534
  var es_array_includes_js_namespaceObject = require("core-js/modules/es.array.includes.js");
535
+ ;// CONCATENATED MODULE: external "@turf/turf"
536
+ var turf_namespaceObject = require("@turf/turf");
535
537
  ;// CONCATENATED MODULE: external "@kq_npm/client_common_vue/_utils/const-image"
536
538
  var const_image_namespaceObject = require("@kq_npm/client_common_vue/_utils/const-image");
537
539
  ;// CONCATENATED MODULE: ./src/webgl/scenceview/DrawManager.js
538
540
 
539
541
 
540
542
 
541
- // import * as turf from "@turf/turf";
543
+
542
544
  //绘制操作类
543
545
 
544
546
  class DrawManager {
@@ -818,10 +820,10 @@ class DrawManager {
818
820
  if (shape) {
819
821
  if (shape.type === that._drawHandler.ShapeTypes.MARKER.type) {
820
822
  let position = that.transformPosition(shape._position);
821
- geoFeature = window.turf.point(position);
823
+ geoFeature = turf_namespaceObject.point(position);
822
824
  } else if (shape.type === that._drawHandler.ShapeTypes.CIRCLE.type) {
823
825
  let center = that.transformPosition(shape.center);
824
- geoFeature = window.turf.circle(center, shape.radius, {
826
+ geoFeature = turf_namespaceObject.circle(center, shape.radius, {
825
827
  steps: 64,
826
828
  units: "meters"
827
829
  });
@@ -830,14 +832,14 @@ class DrawManager {
830
832
  shape.controlPoints.forEach(function (val) {
831
833
  position[0].push(that.transformPosition(val));
832
834
  });
833
- geoFeature = window.turf.lineStrings(position).features[0];
835
+ geoFeature = turf_namespaceObject.lineStrings(position).features[0];
834
836
  } else if (shape.type === that._drawHandler.ShapeTypes.RECTANGLE.type) {
835
837
  let minX = shape.rectangle.west / Math.PI * 180;
836
838
  let maxX = shape.rectangle.east / Math.PI * 180;
837
839
  let minY = shape.rectangle.south / Math.PI * 180;
838
840
  let maxY = shape.rectangle.north / Math.PI * 180;
839
841
  let positions1 = [[[minX, minY], [minX, maxY], [maxX, maxY], [maxX, minY], [minX, minY]]];
840
- geoFeature = window.turf.polygon(positions1);
842
+ geoFeature = turf_namespaceObject.polygon(positions1);
841
843
  } else if (shape.type === that._drawHandler.ShapeTypes.POLYGON.type) {
842
844
  let positions = [[]];
843
845
  let posi;
@@ -853,7 +855,7 @@ class DrawManager {
853
855
  positions[0].push(posi);
854
856
  }
855
857
  });
856
- geoFeature = window.turf.polygon(positions);
858
+ geoFeature = turf_namespaceObject.polygon(positions);
857
859
  }
858
860
  }
859
861
 
@@ -10113,8 +10115,6 @@ TerrainOperation.install = (Vue, opts) => {
10113
10115
 
10114
10116
  ;// CONCATENATED MODULE: ./src/webgl/excavatefillanalysis/ExcavateFillAnalysisViewModel.js
10115
10117
 
10116
- // import * as turf from "@turf/turf";
10117
- // window.turf = turf;
10118
10118
  //填挖方分析逻辑类
10119
10119
  class ExcavateFillAnalysisViewModel {
10120
10120
  //填挖方分析三维对象
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"0.8.4-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":"0.8.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"}}
@@ -79,13 +79,15 @@ var mitt_default = /*#__PURE__*/__webpack_require__.n(mitt_namespaceObject);
79
79
  var web_dom_exception_stack_js_namespaceObject = require("core-js/modules/web.dom-exception.stack.js");
80
80
  ;// CONCATENATED MODULE: external "core-js/modules/es.array.includes.js"
81
81
  var es_array_includes_js_namespaceObject = require("core-js/modules/es.array.includes.js");
82
+ ;// CONCATENATED MODULE: external "@turf/turf"
83
+ var turf_namespaceObject = require("@turf/turf");
82
84
  ;// CONCATENATED MODULE: external "@kq_npm/client_common_vue/_utils/const-image"
83
85
  var const_image_namespaceObject = require("@kq_npm/client_common_vue/_utils/const-image");
84
86
  ;// CONCATENATED MODULE: ./src/webgl/scenceview/DrawManager.js
85
87
 
86
88
 
87
89
 
88
- // import * as turf from "@turf/turf";
90
+
89
91
  //绘制操作类
90
92
 
91
93
  class DrawManager {
@@ -365,10 +367,10 @@ class DrawManager {
365
367
  if (shape) {
366
368
  if (shape.type === that._drawHandler.ShapeTypes.MARKER.type) {
367
369
  let position = that.transformPosition(shape._position);
368
- geoFeature = window.turf.point(position);
370
+ geoFeature = turf_namespaceObject.point(position);
369
371
  } else if (shape.type === that._drawHandler.ShapeTypes.CIRCLE.type) {
370
372
  let center = that.transformPosition(shape.center);
371
- geoFeature = window.turf.circle(center, shape.radius, {
373
+ geoFeature = turf_namespaceObject.circle(center, shape.radius, {
372
374
  steps: 64,
373
375
  units: "meters"
374
376
  });
@@ -377,14 +379,14 @@ class DrawManager {
377
379
  shape.controlPoints.forEach(function (val) {
378
380
  position[0].push(that.transformPosition(val));
379
381
  });
380
- geoFeature = window.turf.lineStrings(position).features[0];
382
+ geoFeature = turf_namespaceObject.lineStrings(position).features[0];
381
383
  } else if (shape.type === that._drawHandler.ShapeTypes.RECTANGLE.type) {
382
384
  let minX = shape.rectangle.west / Math.PI * 180;
383
385
  let maxX = shape.rectangle.east / Math.PI * 180;
384
386
  let minY = shape.rectangle.south / Math.PI * 180;
385
387
  let maxY = shape.rectangle.north / Math.PI * 180;
386
388
  let positions1 = [[[minX, minY], [minX, maxY], [maxX, maxY], [maxX, minY], [minX, minY]]];
387
- geoFeature = window.turf.polygon(positions1);
389
+ geoFeature = turf_namespaceObject.polygon(positions1);
388
390
  } else if (shape.type === that._drawHandler.ShapeTypes.POLYGON.type) {
389
391
  let positions = [[]];
390
392
  let posi;
@@ -400,7 +402,7 @@ class DrawManager {
400
402
  positions[0].push(posi);
401
403
  }
402
404
  });
403
- geoFeature = window.turf.polygon(positions);
405
+ geoFeature = turf_namespaceObject.polygon(positions);
404
406
  }
405
407
  }
406
408