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