@kq_npm/client3d_webgl_vue 0.9.1-beta → 0.9.2-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/index.js CHANGED
@@ -532,15 +532,12 @@ 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");
537
535
  ;// CONCATENATED MODULE: external "@kq_npm/client_common_vue/_utils/const-image"
538
536
  var const_image_namespaceObject = require("@kq_npm/client_common_vue/_utils/const-image");
539
537
  ;// CONCATENATED MODULE: ./src/webgl/scenceview/DrawManager.js
540
538
 
541
539
 
542
540
 
543
-
544
541
  //绘制操作类
545
542
 
546
543
  class DrawManager {
@@ -820,10 +817,10 @@ class DrawManager {
820
817
  if (shape) {
821
818
  if (shape.type === that._drawHandler.ShapeTypes.MARKER.type) {
822
819
  let position = that.transformPosition(shape._position);
823
- geoFeature = turf_namespaceObject.point(position);
820
+ geoFeature = window.turf.point(position);
824
821
  } else if (shape.type === that._drawHandler.ShapeTypes.CIRCLE.type) {
825
822
  let center = that.transformPosition(shape.center);
826
- geoFeature = turf_namespaceObject.circle(center, shape.radius, {
823
+ geoFeature = window.turf.circle(center, shape.radius, {
827
824
  steps: 64,
828
825
  units: "meters"
829
826
  });
@@ -832,14 +829,14 @@ class DrawManager {
832
829
  shape.controlPoints.forEach(function (val) {
833
830
  position[0].push(that.transformPosition(val));
834
831
  });
835
- geoFeature = turf_namespaceObject.lineStrings(position).features[0];
832
+ geoFeature = window.turf.lineStrings(position).features[0];
836
833
  } else if (shape.type === that._drawHandler.ShapeTypes.RECTANGLE.type) {
837
834
  let minX = shape.rectangle.west / Math.PI * 180;
838
835
  let maxX = shape.rectangle.east / Math.PI * 180;
839
836
  let minY = shape.rectangle.south / Math.PI * 180;
840
837
  let maxY = shape.rectangle.north / Math.PI * 180;
841
838
  let positions1 = [[[minX, minY], [minX, maxY], [maxX, maxY], [maxX, minY], [minX, minY]]];
842
- geoFeature = turf_namespaceObject.polygon(positions1);
839
+ geoFeature = window.turf.polygon(positions1);
843
840
  } else if (shape.type === that._drawHandler.ShapeTypes.POLYGON.type) {
844
841
  let positions = [[]];
845
842
  let posi;
@@ -855,7 +852,7 @@ class DrawManager {
855
852
  positions[0].push(posi);
856
853
  }
857
854
  });
858
- geoFeature = turf_namespaceObject.polygon(positions);
855
+ geoFeature = window.turf.polygon(positions);
859
856
  }
860
857
  }
861
858
 
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"0.9.1-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.9.2-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,15 +79,12 @@ 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");
84
82
  ;// CONCATENATED MODULE: external "@kq_npm/client_common_vue/_utils/const-image"
85
83
  var const_image_namespaceObject = require("@kq_npm/client_common_vue/_utils/const-image");
86
84
  ;// CONCATENATED MODULE: ./src/webgl/scenceview/DrawManager.js
87
85
 
88
86
 
89
87
 
90
-
91
88
  //绘制操作类
92
89
 
93
90
  class DrawManager {
@@ -367,10 +364,10 @@ class DrawManager {
367
364
  if (shape) {
368
365
  if (shape.type === that._drawHandler.ShapeTypes.MARKER.type) {
369
366
  let position = that.transformPosition(shape._position);
370
- geoFeature = turf_namespaceObject.point(position);
367
+ geoFeature = window.turf.point(position);
371
368
  } else if (shape.type === that._drawHandler.ShapeTypes.CIRCLE.type) {
372
369
  let center = that.transformPosition(shape.center);
373
- geoFeature = turf_namespaceObject.circle(center, shape.radius, {
370
+ geoFeature = window.turf.circle(center, shape.radius, {
374
371
  steps: 64,
375
372
  units: "meters"
376
373
  });
@@ -379,14 +376,14 @@ class DrawManager {
379
376
  shape.controlPoints.forEach(function (val) {
380
377
  position[0].push(that.transformPosition(val));
381
378
  });
382
- geoFeature = turf_namespaceObject.lineStrings(position).features[0];
379
+ geoFeature = window.turf.lineStrings(position).features[0];
383
380
  } else if (shape.type === that._drawHandler.ShapeTypes.RECTANGLE.type) {
384
381
  let minX = shape.rectangle.west / Math.PI * 180;
385
382
  let maxX = shape.rectangle.east / Math.PI * 180;
386
383
  let minY = shape.rectangle.south / Math.PI * 180;
387
384
  let maxY = shape.rectangle.north / Math.PI * 180;
388
385
  let positions1 = [[[minX, minY], [minX, maxY], [maxX, maxY], [maxX, minY], [minX, minY]]];
389
- geoFeature = turf_namespaceObject.polygon(positions1);
386
+ geoFeature = window.turf.polygon(positions1);
390
387
  } else if (shape.type === that._drawHandler.ShapeTypes.POLYGON.type) {
391
388
  let positions = [[]];
392
389
  let posi;
@@ -402,7 +399,7 @@ class DrawManager {
402
399
  positions[0].push(posi);
403
400
  }
404
401
  });
405
- geoFeature = turf_namespaceObject.polygon(positions);
402
+ geoFeature = window.turf.polygon(positions);
406
403
  }
407
404
  }
408
405