vis-core 0.22.14 → 0.22.15
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/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/index.module.js +93 -45
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.module.js
CHANGED
|
@@ -90,7 +90,7 @@ const publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRz
|
|
|
90
90
|
).toString(CryptoJS.enc.Utf8), qe = JSON.parse($e), st = Date.now();
|
|
91
91
|
return !qe.s || qe.s > st ? (this.token = void 0, "") : qe.e && qe.e < st ? (this.token = void 0, "") : (qe.isValid = Qe, qe);
|
|
92
92
|
}
|
|
93
|
-
}, version = "0.22.
|
|
93
|
+
}, version = "0.22.15";
|
|
94
94
|
/**
|
|
95
95
|
* @license
|
|
96
96
|
* Copyright 2010-2024 Three.js Authors
|
|
@@ -38160,21 +38160,23 @@ class Arc extends A$1 {
|
|
|
38160
38160
|
}
|
|
38161
38161
|
update() {
|
|
38162
38162
|
var s;
|
|
38163
|
-
(s = this.helperMesh) != null && s.length && this.helperMesh.
|
|
38164
|
-
|
|
38165
|
-
|
|
38166
|
-
|
|
38167
|
-
|
|
38168
|
-
|
|
38169
|
-
|
|
38170
|
-
|
|
38171
|
-
|
|
38172
|
-
|
|
38173
|
-
|
|
38174
|
-
|
|
38175
|
-
|
|
38176
|
-
|
|
38177
|
-
|
|
38163
|
+
if ((s = this.helperMesh) != null && s.length && this.helperMesh.find(
|
|
38164
|
+
(T, de) => T.position.distanceTo(this.helperMeshPosition[de]) > 0.01
|
|
38165
|
+
)) {
|
|
38166
|
+
this.helperMesh.forEach((Xe, Ke) => {
|
|
38167
|
+
this.helperMeshPosition[Ke].copy(Xe.position);
|
|
38168
|
+
});
|
|
38169
|
+
const de = new CubicBezierCurve3(
|
|
38170
|
+
this.helperMeshPosition[0],
|
|
38171
|
+
this.helperMeshPosition[1],
|
|
38172
|
+
this.helperMeshPosition[2],
|
|
38173
|
+
this.helperMeshPosition[3]
|
|
38174
|
+
).getPoints(1500);
|
|
38175
|
+
this.line.setGeometry(
|
|
38176
|
+
de,
|
|
38177
|
+
this.line.object3d.geometry.widthCallback
|
|
38178
|
+
);
|
|
38179
|
+
}
|
|
38178
38180
|
}
|
|
38179
38181
|
setMList() {
|
|
38180
38182
|
var r;
|
|
@@ -129774,14 +129776,11 @@ const objs$4 = Ki(ai({}, objs$5), {
|
|
|
129774
129776
|
}, c.initMaterial = function() {
|
|
129775
129777
|
return ei(this, null, function* () {
|
|
129776
129778
|
const e = this.loader, s = (() => {
|
|
129777
|
-
const
|
|
129779
|
+
const T = new MeshStandardMaterial({
|
|
129778
129780
|
name: "顶面",
|
|
129779
129781
|
map: e.getAsset("/image/map/hp.webp"),
|
|
129780
129782
|
normalMap: e.getAsset("/image/map/shuchu2.webp")
|
|
129781
|
-
}),
|
|
129782
|
-
name: "二级顶面",
|
|
129783
|
-
color: new Color$1("#0d2425")
|
|
129784
|
-
}) : null, de = new MeshBasicMaterial({
|
|
129783
|
+
}), de = new MeshBasicMaterial({
|
|
129785
129784
|
name: "侧面",
|
|
129786
129785
|
map: e.getAsset("/image/map/jianbian.webp")
|
|
129787
129786
|
}), Xe = new it$1({
|
|
@@ -129799,14 +129798,41 @@ const objs$4 = Ki(ai({}, objs$5), {
|
|
|
129799
129798
|
depthWrite: !1
|
|
129800
129799
|
});
|
|
129801
129800
|
return {
|
|
129802
|
-
topMat:
|
|
129803
|
-
topMatTwo: T,
|
|
129801
|
+
topMat: T,
|
|
129804
129802
|
sideMat: de,
|
|
129805
129803
|
lineMat: Xe,
|
|
129806
129804
|
extrudeLineMat: Ke
|
|
129807
129805
|
};
|
|
129808
|
-
})()
|
|
129809
|
-
|
|
129806
|
+
})(), r = this.options.drillDownTopMatTwo ? (() => {
|
|
129807
|
+
const T = new MeshBasicMaterial({
|
|
129808
|
+
name: "二级顶面",
|
|
129809
|
+
color: new Color$1("#0d2425")
|
|
129810
|
+
}), de = new MeshBasicMaterial({
|
|
129811
|
+
name: "二级侧面",
|
|
129812
|
+
color: new Color$1("#0d2425")
|
|
129813
|
+
}), Xe = new it$1({
|
|
129814
|
+
name: "二级线",
|
|
129815
|
+
color: new Color$1("#73FEDD"),
|
|
129816
|
+
sizeAttenuation: 0,
|
|
129817
|
+
lineWidth: this.options.lineWidth,
|
|
129818
|
+
//@ts-ignore
|
|
129819
|
+
depthWrite: !1
|
|
129820
|
+
}), Ke = new it$1({
|
|
129821
|
+
name: "二级边线",
|
|
129822
|
+
color: new Color$1("#00FFED"),
|
|
129823
|
+
sizeAttenuation: 0,
|
|
129824
|
+
lineWidth: this.options.extrudeLineWidth,
|
|
129825
|
+
//@ts-ignore
|
|
129826
|
+
depthWrite: !1
|
|
129827
|
+
});
|
|
129828
|
+
return {
|
|
129829
|
+
topMat: T,
|
|
129830
|
+
sideMat: de,
|
|
129831
|
+
lineMat: Xe,
|
|
129832
|
+
extrudeLineMat: Ke
|
|
129833
|
+
};
|
|
129834
|
+
})() : null;
|
|
129835
|
+
this.mList.setMaterialObj("plane", s), r && this.mList.setMaterialObj("secondPlane", r), this.mList.setShowMaterialList("area", ["plane#topMat", "plane#sideMat"], {
|
|
129810
129836
|
name: "板块"
|
|
129811
129837
|
}), this.mList.setShowMaterialList("line", "plane#lineMat", {
|
|
129812
129838
|
name: "板块线"
|
|
@@ -129821,13 +129847,10 @@ const objs$4 = Ki(ai({}, objs$5), {
|
|
|
129821
129847
|
}, c.initMaterial = function() {
|
|
129822
129848
|
return ei(this, null, function* () {
|
|
129823
129849
|
const e = this.loader, s = (() => {
|
|
129824
|
-
const
|
|
129850
|
+
const T = new MeshBasicMaterial({
|
|
129825
129851
|
name: "顶面",
|
|
129826
129852
|
color: new Color$1("#0d2425")
|
|
129827
|
-
}),
|
|
129828
|
-
name: "二级顶面",
|
|
129829
|
-
color: new Color$1("#0d2425")
|
|
129830
|
-
}) : null, de = new MeshBasicMaterial({
|
|
129853
|
+
}), de = new MeshBasicMaterial({
|
|
129831
129854
|
name: "侧面",
|
|
129832
129855
|
map: e.getAsset("/image/map/jianbian.webp")
|
|
129833
129856
|
}), Xe = new it$1({
|
|
@@ -129844,14 +129867,41 @@ const objs$4 = Ki(ai({}, objs$5), {
|
|
|
129844
129867
|
depthWrite: !1
|
|
129845
129868
|
});
|
|
129846
129869
|
return {
|
|
129847
|
-
|
|
129848
|
-
topMat: r,
|
|
129870
|
+
topMat: T,
|
|
129849
129871
|
sideMat: de,
|
|
129850
129872
|
lineMat: Xe,
|
|
129851
129873
|
extrudeLineMat: Ke
|
|
129852
129874
|
};
|
|
129853
|
-
})()
|
|
129854
|
-
|
|
129875
|
+
})(), r = this.options.drillDownTopMatTwo ? (() => {
|
|
129876
|
+
const T = new MeshBasicMaterial({
|
|
129877
|
+
name: "二级顶面",
|
|
129878
|
+
color: new Color$1("#0d2425")
|
|
129879
|
+
}), de = new MeshBasicMaterial({
|
|
129880
|
+
name: "二级侧面",
|
|
129881
|
+
color: new Color$1("#0d2425")
|
|
129882
|
+
}), Xe = new it$1({
|
|
129883
|
+
name: "二级线",
|
|
129884
|
+
color: new Color$1("#73FEDD"),
|
|
129885
|
+
sizeAttenuation: 0,
|
|
129886
|
+
lineWidth: this.options.lineWidth,
|
|
129887
|
+
//@ts-ignore
|
|
129888
|
+
depthWrite: !1
|
|
129889
|
+
}), Ke = new it$1({
|
|
129890
|
+
name: "二级边线",
|
|
129891
|
+
color: new Color$1("#00FFED"),
|
|
129892
|
+
sizeAttenuation: 0,
|
|
129893
|
+
lineWidth: this.options.extrudeLineWidth,
|
|
129894
|
+
//@ts-ignore
|
|
129895
|
+
depthWrite: !1
|
|
129896
|
+
});
|
|
129897
|
+
return {
|
|
129898
|
+
topMat: T,
|
|
129899
|
+
sideMat: de,
|
|
129900
|
+
lineMat: Xe,
|
|
129901
|
+
extrudeLineMat: Ke
|
|
129902
|
+
};
|
|
129903
|
+
})() : null;
|
|
129904
|
+
this.mList.setMaterialObj("plane", s), r && this.mList.setMaterialObj("secondPlane", r), this.mList.setShowMaterialList("area", ["plane#topMat", "plane#sideMat"], {
|
|
129855
129905
|
name: "板块"
|
|
129856
129906
|
}), this.mList.setShowMaterialList("line", "plane#lineMat", {
|
|
129857
129907
|
name: "板块线"
|
|
@@ -130671,9 +130721,7 @@ const objs$4 = Ki(ai({}, objs$5), {
|
|
|
130671
130721
|
depth: de,
|
|
130672
130722
|
adcode: Xe
|
|
130673
130723
|
}) {
|
|
130674
|
-
const Je = this.mapHistory.length
|
|
130675
|
-
!Je && _e.topMatTwo && (_e.topMat = _e.topMatTwo);
|
|
130676
|
-
const $e = yield this.drawController.draw(
|
|
130724
|
+
const Je = this.mapHistory.length !== 0 && this.options.drillDownTopMatTwo, Qe = Je ? "secondPlane" : "plane", _e = this.mList.getMaterialObj(Qe), $e = ai({}, _e), qe = yield this.drawController.draw(
|
|
130677
130725
|
"PlaneMap",
|
|
130678
130726
|
{
|
|
130679
130727
|
geojson: s,
|
|
@@ -130685,7 +130733,7 @@ const objs$4 = Ki(ai({}, objs$5), {
|
|
|
130685
130733
|
rotate: this.options.worldPacificCentre ? [-160, 0] : void 0,
|
|
130686
130734
|
projectionType: this.options.projectionType
|
|
130687
130735
|
},
|
|
130688
|
-
materialOptions:
|
|
130736
|
+
materialOptions: $e,
|
|
130689
130737
|
bbox: T,
|
|
130690
130738
|
topSegments: this.options.topSegments,
|
|
130691
130739
|
lineOffset: this.options.lineOffset,
|
|
@@ -130693,19 +130741,19 @@ const objs$4 = Ki(ai({}, objs$5), {
|
|
|
130693
130741
|
},
|
|
130694
130742
|
this.group
|
|
130695
130743
|
);
|
|
130696
|
-
return
|
|
130697
|
-
|
|
130698
|
-
baseObject:
|
|
130744
|
+
return Je || (qe.extrudelineArr && qe.extrudelineArr.forEach((st) => {
|
|
130745
|
+
st.object3d.name = "板块边线", this.mList.setObject3d(st.object3d, "extrudeLine", {
|
|
130746
|
+
baseObject: st,
|
|
130699
130747
|
replace: !0
|
|
130700
|
-
}), this.initBaseObjectUserData(
|
|
130748
|
+
}), this.initBaseObjectUserData(st);
|
|
130701
130749
|
}), this.mList.setObject3d(
|
|
130702
|
-
|
|
130750
|
+
qe.object3d,
|
|
130703
130751
|
Xe === 1e5 ? "chinaGroup" : "planeMapGroup",
|
|
130704
130752
|
{
|
|
130705
|
-
baseObject:
|
|
130753
|
+
baseObject: qe,
|
|
130706
130754
|
replace: !0
|
|
130707
130755
|
}
|
|
130708
|
-
),
|
|
130756
|
+
)), qe;
|
|
130709
130757
|
});
|
|
130710
130758
|
}
|
|
130711
130759
|
handleBack() {
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.22.
|
|
1
|
+
declare const _default: "0.22.15";
|
|
2
2
|
export default _default;
|