vis-core 0.12.29 → 0.12.31
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.module.js
CHANGED
|
@@ -40524,10 +40524,10 @@ class Sc extends X0 {
|
|
|
40524
40524
|
const e = this.options;
|
|
40525
40525
|
if (e.type === "AmbientLight") {
|
|
40526
40526
|
const b = new Ch(e.color);
|
|
40527
|
-
b.name = "
|
|
40527
|
+
b.name = "环境光", this.object3d = b;
|
|
40528
40528
|
} else if (e.type === "DirectionalLight") {
|
|
40529
40529
|
const b = new Vc(e.color, e.intensity);
|
|
40530
|
-
b.name = "
|
|
40530
|
+
b.name = "平行光", b.target.position.set(0, 0, 0), this.object3d = b, b.target.name = "平行光目标", this.pencil.scene.add(b.target), this.directionalLight = b;
|
|
40531
40531
|
} else if (e.type === "PointLight") {
|
|
40532
40532
|
const b = new yc(
|
|
40533
40533
|
(i = e.color) != null ? i : 16777215,
|
|
@@ -40535,7 +40535,7 @@ class Sc extends X0 {
|
|
|
40535
40535
|
(l = e.distance) != null ? l : 0,
|
|
40536
40536
|
(a = e.decay) != null ? a : 2
|
|
40537
40537
|
);
|
|
40538
|
-
b.name = "
|
|
40538
|
+
b.name = "点光源", this.object3d = b, this.pointLight = b;
|
|
40539
40539
|
} else if (e.type === "SpotLight") {
|
|
40540
40540
|
const b = new Wc(
|
|
40541
40541
|
(o = e.color) != null ? o : 16777215,
|
|
@@ -40545,31 +40545,31 @@ class Sc extends X0 {
|
|
|
40545
40545
|
(r = e.penumbra) != null ? r : 1,
|
|
40546
40546
|
(u = e.decay) != null ? u : 2
|
|
40547
40547
|
);
|
|
40548
|
-
b.name = "
|
|
40548
|
+
b.name = "聚光灯", this.object3d = b, this.spotLight = b, b.target.name = "聚光灯目标", this.pencil.scene.add(b.target);
|
|
40549
40549
|
} else if (e.type === "HemisphereLight") {
|
|
40550
40550
|
const b = new Z2(
|
|
40551
40551
|
(m = e.color) != null ? m : 16777215,
|
|
40552
40552
|
(p = e.groundColor) != null ? p : 16777215,
|
|
40553
40553
|
(G = e.intensity) != null ? G : 1
|
|
40554
40554
|
);
|
|
40555
|
-
b.name = "
|
|
40555
|
+
b.name = "半球光", this.object3d = b, this.hemisphereLight = b;
|
|
40556
40556
|
}
|
|
40557
40557
|
}
|
|
40558
40558
|
render() {
|
|
40559
|
-
const e = this.object3d, i = this.pencil.installPlugins.get("materialList");
|
|
40560
|
-
i.setObject3d(e,
|
|
40559
|
+
const e = this.object3d, i = this.pencil.installPlugins.get("materialList"), s = this.options.type;
|
|
40560
|
+
i.setObject3d(e, s, {
|
|
40561
40561
|
baseObject: this
|
|
40562
|
-
}), e.target && i.setObject3d(e.target,
|
|
40562
|
+
}), e.target && i.setObject3d(e.target, s + "Target", {
|
|
40563
40563
|
baseObject: this,
|
|
40564
40564
|
parent: e,
|
|
40565
40565
|
remove: !1
|
|
40566
40566
|
});
|
|
40567
|
-
const
|
|
40567
|
+
const l = this.pencil.cameraControls.getTarget(new Y());
|
|
40568
40568
|
if (this.spotLight || this.directionalLight) {
|
|
40569
|
-
const
|
|
40570
|
-
|
|
40569
|
+
const a = this.spotLight || this.directionalLight;
|
|
40570
|
+
a.position.copy(l), a.target.position.copy(l);
|
|
40571
40571
|
} else
|
|
40572
|
-
this.pointLight && this.pointLight.position.copy(
|
|
40572
|
+
this.pointLight && this.pointLight.position.copy(l);
|
|
40573
40573
|
}
|
|
40574
40574
|
dispose() {
|
|
40575
40575
|
const e = this.object3d;
|
|
@@ -40885,14 +40885,6 @@ const BM = {
|
|
|
40885
40885
|
Point: RM,
|
|
40886
40886
|
Arc: CM
|
|
40887
40887
|
}, EM = {
|
|
40888
|
-
Box: SM,
|
|
40889
|
-
Capsule: YM,
|
|
40890
|
-
Circle: NM,
|
|
40891
|
-
Cylinder: IM,
|
|
40892
|
-
Dodecahedron: MM,
|
|
40893
|
-
Icosahedron: FM,
|
|
40894
|
-
Lathe: TM,
|
|
40895
|
-
Octahedron: vM,
|
|
40896
40888
|
Plane: wM,
|
|
40897
40889
|
Ring: HM,
|
|
40898
40890
|
Sphere: q2,
|
|
@@ -40900,7 +40892,15 @@ const BM = {
|
|
|
40900
40892
|
Tetrahedron: kM,
|
|
40901
40893
|
Torus: JM,
|
|
40902
40894
|
TorusKnot: KM,
|
|
40903
|
-
Tube: UM
|
|
40895
|
+
Tube: UM,
|
|
40896
|
+
Box: SM,
|
|
40897
|
+
Capsule: YM,
|
|
40898
|
+
Circle: NM,
|
|
40899
|
+
Cylinder: IM,
|
|
40900
|
+
Dodecahedron: MM,
|
|
40901
|
+
Icosahedron: FM,
|
|
40902
|
+
Lathe: TM,
|
|
40903
|
+
Octahedron: vM
|
|
40904
40904
|
}, cn = new Ca(Bt(Bt({}, BM), EM));
|
|
40905
40905
|
cn.pluginName += "_all";
|
|
40906
40906
|
class PM {
|
|
@@ -40910,6 +40910,7 @@ class PM {
|
|
|
40910
40910
|
P(this, "materialList", /* @__PURE__ */ new Map());
|
|
40911
40911
|
//兼容旧版本
|
|
40912
40912
|
P(this, "showMaterialList", /* @__PURE__ */ new Map());
|
|
40913
|
+
P(this, "showMaterialListTitle", /* @__PURE__ */ new Map());
|
|
40913
40914
|
P(this, "objectList", /* @__PURE__ */ new Map());
|
|
40914
40915
|
}
|
|
40915
40916
|
install(t) {
|
|
@@ -40979,7 +40980,7 @@ class PM {
|
|
|
40979
40980
|
t.material && Mh({
|
|
40980
40981
|
material: t.material
|
|
40981
40982
|
});
|
|
40982
|
-
}), this.materialList.clear(), this.objectList.clear(), this.showMaterialList.clear(), this.pencil.event.emit("materialListChange");
|
|
40983
|
+
}), this.materialList.clear(), this.objectList.clear(), this.showMaterialList.clear(), this.showMaterialListTitle.clear(), this.pencil.event.emit("materialListChange");
|
|
40983
40984
|
}
|
|
40984
40985
|
}
|
|
40985
40986
|
class QM extends $s {
|
|
@@ -41032,7 +41033,7 @@ function Ql(n) {
|
|
|
41032
41033
|
const t = new t0();
|
|
41033
41034
|
return t.color.setScalar(n), t;
|
|
41034
41035
|
}
|
|
41035
|
-
const GX = "0.12.
|
|
41036
|
+
const GX = "0.12.31", a1 = !1;
|
|
41036
41037
|
class pl {
|
|
41037
41038
|
constructor(t, e = {}) {
|
|
41038
41039
|
P(this, "container");
|
|
@@ -41740,6 +41741,18 @@ class yX extends X0 {
|
|
|
41740
41741
|
}
|
|
41741
41742
|
}
|
|
41742
41743
|
}
|
|
41744
|
+
render() {
|
|
41745
|
+
const e = this.pencil.installPlugins.get("materialList");
|
|
41746
|
+
e.setObject3d(this.object3d, "continents-group", {
|
|
41747
|
+
baseObject: this,
|
|
41748
|
+
remove: !1
|
|
41749
|
+
}), this.mapArr.forEach((i) => {
|
|
41750
|
+
e.setObject3d(i.object3d, "continents-" + i.userData.name, {
|
|
41751
|
+
baseObject: i,
|
|
41752
|
+
remove: !1
|
|
41753
|
+
});
|
|
41754
|
+
});
|
|
41755
|
+
}
|
|
41743
41756
|
dispose() {
|
|
41744
41757
|
this.mapArr.forEach((e) => {
|
|
41745
41758
|
e.dispose();
|
|
@@ -41750,7 +41763,7 @@ class VX extends X0 {
|
|
|
41750
41763
|
create() {
|
|
41751
41764
|
return Gt(this, null, function* () {
|
|
41752
41765
|
const t = new Oi(100, 100, 1, 1), e = new h2();
|
|
41753
|
-
e.opacity = 0.5, this.createMesh(t, e), this.object3d.receiveShadow = !0, this.position.z = 1e-3;
|
|
41766
|
+
e.opacity = 0.5, this.createMesh(t, e), this.object3d.receiveShadow = !0, this.position.z = 1e-3, this.object3d.name = "阴影接受";
|
|
41754
41767
|
});
|
|
41755
41768
|
}
|
|
41756
41769
|
}
|
|
@@ -41907,7 +41920,7 @@ const jM = {
|
|
|
41907
41920
|
this.mList.showMaterialList.set(h + "area", [
|
|
41908
41921
|
"parentPlane#topMat",
|
|
41909
41922
|
"parentPlane#sideMat"
|
|
41910
|
-
]), this.mList.showMaterialList.set(h + "line", "parentPlane#lineMat");
|
|
41923
|
+
]), this.mList.showMaterialList.set(h + "line", "parentPlane#lineMat"), this.mList.showMaterialListTitle.set(h + "area", "背景板块"), this.mList.showMaterialListTitle.set(h + "line", "背景线");
|
|
41911
41924
|
const r = yield this.drawController.draw("PlaneMap", {
|
|
41912
41925
|
geojson: o,
|
|
41913
41926
|
projection: {
|
|
@@ -41927,19 +41940,7 @@ const jM = {
|
|
|
41927
41940
|
depth: this.options.continentsBgDepth,
|
|
41928
41941
|
equirectangular: this.options.equirectangular,
|
|
41929
41942
|
scale: this.pscale
|
|
41930
|
-
}), this.continentsBg.position.z = 0.1, this.
|
|
41931
|
-
baseObject: this.continentsBg,
|
|
41932
|
-
remove: !1
|
|
41933
|
-
}), this.continentsBg.mapArr.forEach((a) => {
|
|
41934
|
-
this.mList.setObject3d(
|
|
41935
|
-
a.object3d,
|
|
41936
|
-
"continents-" + a.userData.name,
|
|
41937
|
-
{
|
|
41938
|
-
baseObject: a,
|
|
41939
|
-
remove: !1
|
|
41940
|
-
}
|
|
41941
|
-
);
|
|
41942
|
-
})), yield this.setAdcode({
|
|
41943
|
+
}), this.continentsBg.position.z = 0.1), yield this.setAdcode({
|
|
41943
41944
|
adcodes: [e],
|
|
41944
41945
|
duration: 0
|
|
41945
41946
|
});
|
|
@@ -42026,7 +42027,7 @@ const jM = {
|
|
|
42026
42027
|
this.mList.setMaterialObj("continents", l), this.mList.showMaterialList.set("continentsArea", [
|
|
42027
42028
|
"continents#topMat",
|
|
42028
42029
|
"continents#sideMat"
|
|
42029
|
-
]), this.mList.showMaterialList.set("continentsLine", "continents#lineMat");
|
|
42030
|
+
]), this.mList.showMaterialList.set("continentsLine", "continents#lineMat"), this.mList.showMaterialListTitle.set("continentsArea", "大洲"), this.mList.showMaterialListTitle.set("continentsLine", "大洲线");
|
|
42030
42031
|
}
|
|
42031
42032
|
const s = (() => {
|
|
42032
42033
|
const l = e === 1e5 ? new le({
|
|
@@ -42055,7 +42056,7 @@ const jM = {
|
|
|
42055
42056
|
extrudeLineMat: c
|
|
42056
42057
|
};
|
|
42057
42058
|
})();
|
|
42058
|
-
this.mList.setMaterialObj("plane", s), this.mList.showMaterialList.set("area", ["plane#topMat", "plane#sideMat"]), this.mList.showMaterialList.set("line", "plane#lineMat"), this.mList.showMaterialList.set("extrudeline", "plane#extrudeLineMat");
|
|
42059
|
+
this.mList.setMaterialObj("plane", s), this.mList.showMaterialList.set("area", ["plane#topMat", "plane#sideMat"]), this.mList.showMaterialList.set("line", "plane#lineMat"), this.mList.showMaterialList.set("extrudeline", "plane#extrudeLineMat"), this.mList.showMaterialListTitle.set("area", "板块"), this.mList.showMaterialListTitle.set("line", "板块线"), this.mList.showMaterialListTitle.set("extrudeline", "板块边线");
|
|
42059
42060
|
});
|
|
42060
42061
|
}
|
|
42061
42062
|
setAreaColor(e, i) {
|
|
@@ -42113,7 +42114,10 @@ const jM = {
|
|
|
42113
42114
|
}), i = e.object3d;
|
|
42114
42115
|
this.mList.changeObject3dName(i, "Shadow$1"), this.mList.changeObject3dName(i.target, "Shadow$1"), this.shadowMapLight = e, e.object3d.position.set(0.281, 32.487, 43.077), e.object3d.castShadow = !0;
|
|
42115
42116
|
const s = yield this.drawController.draw("PlaneShadow");
|
|
42116
|
-
this.mList.setObject3d(s.object3d, "PlaneShadow"
|
|
42117
|
+
this.mList.setObject3d(s.object3d, "PlaneShadow", {
|
|
42118
|
+
baseObject: s,
|
|
42119
|
+
remove: !1
|
|
42120
|
+
}), this.map && this.map.areaArr.forEach((l) => {
|
|
42117
42121
|
l.object3d.castShadow = !0;
|
|
42118
42122
|
});
|
|
42119
42123
|
});
|
|
@@ -42143,7 +42147,10 @@ const jM = {
|
|
|
42143
42147
|
}
|
|
42144
42148
|
handleClick(e) {
|
|
42145
42149
|
var l;
|
|
42146
|
-
const { drillDownRestrictions: i } = this.options
|
|
42150
|
+
const { drillDownRestrictions: i } = this.options;
|
|
42151
|
+
if (this.isAnimating)
|
|
42152
|
+
return;
|
|
42153
|
+
const s = (l = this.map) == null ? void 0 : l.pickArea(e);
|
|
42147
42154
|
if (s && s.userData.adcode && this.getAdcodeShowLevel(s.userData.adcode) !== i)
|
|
42148
42155
|
this.clickArea({
|
|
42149
42156
|
adcodes: [...this.adcodes, s.userData.adcode]
|
|
@@ -42639,7 +42646,7 @@ const Go = class Go extends pl {
|
|
|
42639
42646
|
lineMat: o
|
|
42640
42647
|
};
|
|
42641
42648
|
})();
|
|
42642
|
-
i.setMaterialObj("plane", s), i.showMaterialList.set("area", ["plane#topMat", "plane#sideMat"]), i.showMaterialList.set("line", "plane#lineMat");
|
|
42649
|
+
i.setMaterialObj("plane", s), i.showMaterialList.set("area", ["plane#topMat", "plane#sideMat"]), i.showMaterialList.set("line", "plane#lineMat"), this.mList.showMaterialListTitle.set("area", "板块"), this.mList.showMaterialListTitle.set("line", "板块线");
|
|
42643
42650
|
});
|
|
42644
42651
|
}
|
|
42645
42652
|
eraseLabels() {
|
|
@@ -43698,11 +43705,11 @@ const nF = {
|
|
|
43698
43705
|
const a = this.loader.getAsset(`/image/city/${l}-1.jpg`), o = this.loader.getAsset(`/image/city/${l}.webp`);
|
|
43699
43706
|
return s[l] = [
|
|
43700
43707
|
new t0({
|
|
43701
|
-
name: "
|
|
43708
|
+
name: "建筑顶面-板块内" + l + "高",
|
|
43702
43709
|
color: "#00a3bc"
|
|
43703
43710
|
}),
|
|
43704
43711
|
new le({
|
|
43705
|
-
name: "
|
|
43712
|
+
name: "建筑侧面-板块内" + l + "高",
|
|
43706
43713
|
map: a,
|
|
43707
43714
|
normalMap: o,
|
|
43708
43715
|
envMap: this.getRoomEnvMap()
|
|
@@ -43727,11 +43734,11 @@ const nF = {
|
|
|
43727
43734
|
const a = this.loader.getAsset(`/image/city/${l}-1.jpg`), o = this.loader.getAsset(`/image/city/${l}.webp`);
|
|
43728
43735
|
return s[l] = [
|
|
43729
43736
|
new t0({
|
|
43730
|
-
name: "
|
|
43737
|
+
name: "建筑顶面-板块外" + l + "高",
|
|
43731
43738
|
color: "#133144"
|
|
43732
43739
|
}),
|
|
43733
43740
|
new le({
|
|
43734
|
-
name: "
|
|
43741
|
+
name: "建筑侧面-块外" + l + "高",
|
|
43735
43742
|
map: a,
|
|
43736
43743
|
normalMap: o,
|
|
43737
43744
|
envMap: this.getRoomEnvMap()
|
|
@@ -43754,10 +43761,14 @@ const nF = {
|
|
|
43754
43761
|
}
|
|
43755
43762
|
if (!this.mList.getMaterialObj("road")) {
|
|
43756
43763
|
const e = new z0({
|
|
43764
|
+
//@ts-ignore
|
|
43765
|
+
name: "道路-板块内",
|
|
43757
43766
|
color: "#ffc457",
|
|
43758
43767
|
sizeAttenuation: 0,
|
|
43759
43768
|
lineWidth: 40
|
|
43760
43769
|
}), i = new z0({
|
|
43770
|
+
//@ts-ignore
|
|
43771
|
+
name: "道路-板块外",
|
|
43761
43772
|
color: "#4a3f15",
|
|
43762
43773
|
sizeAttenuation: 0,
|
|
43763
43774
|
lineWidth: 40
|
|
@@ -43770,16 +43781,20 @@ const nF = {
|
|
|
43770
43781
|
}
|
|
43771
43782
|
if (this.mList.getMaterialObj("area") || (this.mList.setMaterialObj("area", {
|
|
43772
43783
|
river: new t0({
|
|
43784
|
+
name: "河流-板块内",
|
|
43773
43785
|
color: "#115d8a"
|
|
43774
43786
|
}),
|
|
43775
43787
|
grassland: new t0({
|
|
43788
|
+
name: "绿地-板块内",
|
|
43776
43789
|
color: "#043141"
|
|
43777
43790
|
})
|
|
43778
43791
|
}), this.mList.setMaterialObj("area-grey", {
|
|
43779
43792
|
river: new t0({
|
|
43793
|
+
name: "河流-板块外",
|
|
43780
43794
|
color: "#19354f"
|
|
43781
43795
|
}),
|
|
43782
43796
|
grassland: new t0({
|
|
43797
|
+
name: "绿地-板块外",
|
|
43783
43798
|
color: "#133341"
|
|
43784
43799
|
})
|
|
43785
43800
|
})), !this.mList.getMaterial("city-plane")) {
|
|
@@ -44744,15 +44759,17 @@ class yF extends Ao {
|
|
|
44744
44759
|
if (this.options.adcode !== 1e5) {
|
|
44745
44760
|
const l = (() => {
|
|
44746
44761
|
const a = new le({
|
|
44747
|
-
name: "
|
|
44762
|
+
name: "父级板块顶面",
|
|
44748
44763
|
color: "#031529",
|
|
44749
44764
|
emissive: "#010f1f",
|
|
44750
44765
|
envMap: e
|
|
44751
44766
|
}), o = new t0({
|
|
44752
|
-
name: "
|
|
44767
|
+
name: "父级板块侧面",
|
|
44753
44768
|
color: "#064d73",
|
|
44754
44769
|
side: K0
|
|
44755
44770
|
}), c = new z0({
|
|
44771
|
+
//@ts-ignore
|
|
44772
|
+
name: "父级板块线",
|
|
44756
44773
|
color: new rt("#3f648c"),
|
|
44757
44774
|
lineWidth: 4,
|
|
44758
44775
|
sizeAttenuation: 0
|
|
@@ -44767,15 +44784,17 @@ class yF extends Ao {
|
|
|
44767
44784
|
}
|
|
44768
44785
|
const s = (() => {
|
|
44769
44786
|
const l = new le({
|
|
44770
|
-
name: "
|
|
44787
|
+
name: "世界板块顶面",
|
|
44771
44788
|
color: "#031529",
|
|
44772
44789
|
emissive: "#010f1f",
|
|
44773
44790
|
envMap: e
|
|
44774
44791
|
}), a = new t0({
|
|
44775
|
-
name: "
|
|
44792
|
+
name: "世界板块侧面",
|
|
44776
44793
|
color: "#064d73",
|
|
44777
44794
|
side: K0
|
|
44778
44795
|
}), o = new z0({
|
|
44796
|
+
//@ts-ignore
|
|
44797
|
+
name: "世界板块线",
|
|
44779
44798
|
color: new rt("#3f648c"),
|
|
44780
44799
|
lineWidth: 4,
|
|
44781
44800
|
sizeAttenuation: 0
|
|
@@ -44791,13 +44810,15 @@ class yF extends Ao {
|
|
|
44791
44810
|
if (this.options.continentsBg) {
|
|
44792
44811
|
const s = (() => {
|
|
44793
44812
|
const l = new le({
|
|
44794
|
-
name: "
|
|
44813
|
+
name: "大洲板块顶面",
|
|
44795
44814
|
emissive: "#235278"
|
|
44796
44815
|
}), a = new t0({
|
|
44797
|
-
name: "
|
|
44816
|
+
name: "大洲板块侧面",
|
|
44798
44817
|
color: "#0c1528"
|
|
44799
44818
|
}), o = new z0({
|
|
44800
44819
|
// color: new THREE.Color('#0a88e5'),
|
|
44820
|
+
//@ts-ignore
|
|
44821
|
+
name: "大洲板块线",
|
|
44801
44822
|
color: new rt("#1488e0"),
|
|
44802
44823
|
sizeAttenuation: 0,
|
|
44803
44824
|
lineWidth: this.options.lineWidth
|
|
@@ -44812,25 +44833,37 @@ class yF extends Ao {
|
|
|
44812
44833
|
}
|
|
44813
44834
|
const i = (() => {
|
|
44814
44835
|
const s = new t0({
|
|
44815
|
-
name: "
|
|
44836
|
+
name: "板块顶面",
|
|
44816
44837
|
color: new rt("#064773")
|
|
44817
44838
|
}), l = new t0({
|
|
44818
|
-
name: "
|
|
44839
|
+
name: "板块侧面",
|
|
44819
44840
|
color: new rt("#064d73"),
|
|
44820
44841
|
side: K0
|
|
44821
44842
|
}), a = new z0({
|
|
44843
|
+
//@ts-ignore
|
|
44844
|
+
name: "板块线",
|
|
44822
44845
|
color: new rt("#02BAF7"),
|
|
44823
44846
|
lineWidth: 3,
|
|
44824
44847
|
sizeAttenuation: 0
|
|
44825
44848
|
}), o = new z0({
|
|
44849
|
+
//@ts-ignore
|
|
44850
|
+
name: "板块边框线",
|
|
44826
44851
|
color: new rt("#02BAF7"),
|
|
44827
44852
|
lineWidth: 3,
|
|
44828
44853
|
sizeAttenuation: 0
|
|
44829
|
-
}), c = s.clone()
|
|
44854
|
+
}), c = s.clone();
|
|
44855
|
+
c.name = "板块下钻背景顶面";
|
|
44856
|
+
const d = l.clone();
|
|
44857
|
+
d.name = "板块下钻背景侧面";
|
|
44858
|
+
const h = new z0({
|
|
44859
|
+
//@ts-ignore
|
|
44860
|
+
name: "板块下钻背景线",
|
|
44830
44861
|
color: new rt("#3773b0"),
|
|
44831
44862
|
lineWidth: 2,
|
|
44832
44863
|
sizeAttenuation: 0
|
|
44833
44864
|
}), r = new z0({
|
|
44865
|
+
//@ts-ignore
|
|
44866
|
+
name: "板块下钻背景边框线",
|
|
44834
44867
|
color: new rt("#3773b0"),
|
|
44835
44868
|
lineWidth: 4,
|
|
44836
44869
|
sizeAttenuation: 0
|
|
@@ -44903,19 +44936,7 @@ class yF extends Ao {
|
|
|
44903
44936
|
scale: this.pscale
|
|
44904
44937
|
},
|
|
44905
44938
|
this.group
|
|
44906
|
-
), this.continentsBg.position.z = 0.1, this.
|
|
44907
|
-
baseObject: this.continentsBg,
|
|
44908
|
-
remove: !1
|
|
44909
|
-
}), this.continentsBg.mapArr.forEach((a) => {
|
|
44910
|
-
this.mList.setObject3d(
|
|
44911
|
-
a.object3d,
|
|
44912
|
-
"continents-" + a.userData.name,
|
|
44913
|
-
{
|
|
44914
|
-
baseObject: a,
|
|
44915
|
-
remove: !1
|
|
44916
|
-
}
|
|
44917
|
-
);
|
|
44918
|
-
})), yield this.setAdcode({
|
|
44939
|
+
), this.continentsBg.position.z = 0.1), yield this.setAdcode({
|
|
44919
44940
|
adcodes: [e],
|
|
44920
44941
|
duration: 0
|
|
44921
44942
|
}), this.options.bottomPlane) {
|
|
@@ -45205,12 +45226,15 @@ const VF = (n) => {
|
|
|
45205
45226
|
return Gt(this, null, function* () {
|
|
45206
45227
|
const t = n.loader, e = (() => {
|
|
45207
45228
|
const i = new t0({
|
|
45229
|
+
name: "板块顶面",
|
|
45208
45230
|
color: "#094253"
|
|
45209
45231
|
}), s = new t0({
|
|
45210
|
-
name: "
|
|
45232
|
+
name: "板块侧面",
|
|
45211
45233
|
map: t.getAsset("/image/map2/side.png"),
|
|
45212
45234
|
side: K0
|
|
45213
45235
|
}), l = new z0({
|
|
45236
|
+
// @ts-ignore
|
|
45237
|
+
name: "板块边框",
|
|
45214
45238
|
color: new rt("#02f7eb"),
|
|
45215
45239
|
lineWidth: 6,
|
|
45216
45240
|
sizeAttenuation: 0,
|
|
@@ -45659,10 +45683,10 @@ class MF extends ke {
|
|
|
45659
45683
|
super(t), this.type = "SetMaterialValue", this.name = `Set Material.${i}`, this.updatable = !0, this.object = e, this.materialSlot = l, this.material = this.editor.getObjectMaterial(e, l), this.oldValue = this.material !== void 0 ? this.material[i] : void 0, this.newValue = s, this.attributeName = i;
|
|
45660
45684
|
}
|
|
45661
45685
|
execute() {
|
|
45662
|
-
this.material[this.attributeName] = this.newValue, J5.includes(this.attributeName) && (this.material.needsUpdate = !0), this.editor.emit("objectChanged", this.object), this.editor.emit("materialChanged", this.material);
|
|
45686
|
+
this.material[this.attributeName] = this.newValue, J5.includes(this.attributeName) && (this.material.needsUpdate = !0), this.editor.emit("objectChanged", this.object), this.editor.emit("materialChanged", this.material), this.attributeName === "name" && this.editor.pencil.event.emit("object3dListChange");
|
|
45663
45687
|
}
|
|
45664
45688
|
undo() {
|
|
45665
|
-
this.material[this.attributeName] = this.oldValue, J5.includes(this.attributeName) && (this.material.needsUpdate = !0), this.editor.emit("objectChanged", this.object), this.editor.emit("materialChanged", this.material);
|
|
45689
|
+
this.material[this.attributeName] = this.oldValue, J5.includes(this.attributeName) && (this.material.needsUpdate = !0), this.editor.emit("objectChanged", this.object), this.editor.emit("materialChanged", this.material), this.attributeName === "name" && this.editor.pencil.event.emit("object3dListChange");
|
|
45666
45690
|
}
|
|
45667
45691
|
update(t) {
|
|
45668
45692
|
this.newValue = t.newValue;
|
|
@@ -45815,11 +45839,11 @@ class vF extends ke {
|
|
|
45815
45839
|
}
|
|
45816
45840
|
execute() {
|
|
45817
45841
|
const t = this.properties ? this.object[this.properties] : this.object;
|
|
45818
|
-
t && (t[this.attributeName] = this.newValue, this.editor.emit("objectChanged", this.object));
|
|
45842
|
+
t && (t[this.attributeName] = this.newValue, this.editor.emit("objectChanged", this.object), this.attributeName === "name" && this.editor.pencil.event.emit("object3dListChange"));
|
|
45819
45843
|
}
|
|
45820
45844
|
undo() {
|
|
45821
45845
|
const t = this.properties ? this.object[this.properties] : this.object;
|
|
45822
|
-
t[this.attributeName] = this.oldValue, this.editor.emit("objectChanged", this.object);
|
|
45846
|
+
t[this.attributeName] = this.oldValue, this.editor.emit("objectChanged", this.object), this.attributeName === "name" && this.editor.pencil.event.emit("object3dListChange");
|
|
45823
45847
|
}
|
|
45824
45848
|
update(t) {
|
|
45825
45849
|
this.newValue = t.newValue;
|
|
@@ -46604,8 +46628,12 @@ class gT {
|
|
|
46604
46628
|
changeSelectOption() {
|
|
46605
46629
|
const t = this.viewport.vis, { pencil: e, mList: i } = t, s = i == null ? void 0 : i.showMaterialList.size, l = (s ? [...i.showMaterialList.keys()] : [...i.materialList.keys()]).map((c) => {
|
|
46606
46630
|
const d = s ? i.getShowMaterial(c) : i.getMaterial(c), h = new yt(this.fixBufferGeometry, d);
|
|
46607
|
-
|
|
46608
|
-
|
|
46631
|
+
h.userData.fixBufferGeometry = !0;
|
|
46632
|
+
const r = c.replace(c[0], c[0].toLowerCase());
|
|
46633
|
+
let u;
|
|
46634
|
+
return s && i.showMaterialListTitle.has(c) ? u = i.showMaterialListTitle.get(c) : !s && (d != null && d.name) && (u = d == null ? void 0 : d.name), {
|
|
46635
|
+
uuid: r,
|
|
46636
|
+
name: u,
|
|
46609
46637
|
object: h
|
|
46610
46638
|
};
|
|
46611
46639
|
}), a = [...i.objectList.keys()].map(
|
|
@@ -46614,14 +46642,15 @@ class gT {
|
|
|
46614
46642
|
let r = !1;
|
|
46615
46643
|
return h != null && h.baseObject && h.remove !== !1 && (r = !0), We(Bt({
|
|
46616
46644
|
uuid: d.replace(d[0], d[0].toLowerCase()),
|
|
46617
|
-
object: c
|
|
46645
|
+
object: c,
|
|
46646
|
+
name: c.name
|
|
46618
46647
|
}, h), {
|
|
46619
46648
|
remove: r
|
|
46620
46649
|
});
|
|
46621
46650
|
}
|
|
46622
46651
|
), o = [...l, ...a];
|
|
46623
46652
|
if (o.unshift({
|
|
46624
|
-
name: "
|
|
46653
|
+
name: "相机",
|
|
46625
46654
|
object: e.camera,
|
|
46626
46655
|
uuid: "camera"
|
|
46627
46656
|
}), !this.jsonVersion) {
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.12.
|
|
1
|
+
declare const _default: "0.12.31";
|
|
2
2
|
export default _default;
|
|
@@ -20,14 +20,6 @@ import Torus from './Torus';
|
|
|
20
20
|
import TorusKnot from './TorusKnot';
|
|
21
21
|
import Tube from './Tube';
|
|
22
22
|
export declare const objs2: {
|
|
23
|
-
Box: typeof Box;
|
|
24
|
-
Capsule: typeof Capsule;
|
|
25
|
-
Circle: typeof Circle;
|
|
26
|
-
Cylinder: typeof Cylinder;
|
|
27
|
-
Dodecahedron: typeof Dodecahedron;
|
|
28
|
-
Icosahedron: typeof Icosahedron;
|
|
29
|
-
Lathe: typeof Lathe;
|
|
30
|
-
Octahedron: typeof Octahedron;
|
|
31
23
|
Plane: typeof Plane;
|
|
32
24
|
Ring: typeof Ring;
|
|
33
25
|
Sphere: typeof Sphere;
|
|
@@ -36,8 +28,6 @@ export declare const objs2: {
|
|
|
36
28
|
Torus: typeof Torus;
|
|
37
29
|
TorusKnot: typeof TorusKnot;
|
|
38
30
|
Tube: typeof Tube;
|
|
39
|
-
};
|
|
40
|
-
declare const d: DrawController<{
|
|
41
31
|
Box: typeof Box;
|
|
42
32
|
Capsule: typeof Capsule;
|
|
43
33
|
Circle: typeof Circle;
|
|
@@ -46,6 +36,8 @@ declare const d: DrawController<{
|
|
|
46
36
|
Icosahedron: typeof Icosahedron;
|
|
47
37
|
Lathe: typeof Lathe;
|
|
48
38
|
Octahedron: typeof Octahedron;
|
|
39
|
+
};
|
|
40
|
+
declare const d: DrawController<{
|
|
49
41
|
Plane: typeof Plane;
|
|
50
42
|
Ring: typeof Ring;
|
|
51
43
|
Sphere: typeof Sphere;
|
|
@@ -54,6 +46,14 @@ declare const d: DrawController<{
|
|
|
54
46
|
Torus: typeof Torus;
|
|
55
47
|
TorusKnot: typeof TorusKnot;
|
|
56
48
|
Tube: typeof Tube;
|
|
49
|
+
Box: typeof Box;
|
|
50
|
+
Capsule: typeof Capsule;
|
|
51
|
+
Circle: typeof Circle;
|
|
52
|
+
Cylinder: typeof Cylinder;
|
|
53
|
+
Dodecahedron: typeof Dodecahedron;
|
|
54
|
+
Icosahedron: typeof Icosahedron;
|
|
55
|
+
Lathe: typeof Lathe;
|
|
56
|
+
Octahedron: typeof Octahedron;
|
|
57
57
|
Node: typeof Node;
|
|
58
58
|
Image: typeof Image;
|
|
59
59
|
Line: typeof Line;
|