vis-core 0.29.7 → 0.29.9
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 +22 -22
- package/dist/index.module.js +6 -8
- package/dist/version.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.module.js
CHANGED
|
@@ -63,7 +63,7 @@ import { continentsCountriesIso2 } from "geojson-cn";
|
|
|
63
63
|
Array.prototype.at || (Array.prototype.at = function(v) {
|
|
64
64
|
return v < 0 && (v = this.length + v), this[v];
|
|
65
65
|
});
|
|
66
|
-
const version = "0.29.
|
|
66
|
+
const version = "0.29.9", publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUEyTG1aVVQzVG9LZEVRRUdrdUU1QQo3dnlYTzRMM1Z6NDA5RFF2a2xzRHZ2SytNM2M2OGl4ZEVhZDZFcnZGS2FKQ1QrNTZNdU1XSXhUTnlDZDVQSkFGCjVYdzI4cW1iVkVCR3FGdXVIZTltSm5GUmRXN1NpK1Z1cTZvRWxwQkRkeEFIQ0dsWVVpU1R3WmhBbjJaVXJLSUYKd1J2c1k1bi9uWWNhZnl5QW9tRjhmNVRsTkpwS1JtbDU3WlRSWjBMdzdQRDFSeHFIbmJ0YWFETkpiSDV5eFd6cQpaVTBwQWhxMFNkNHdlOW1DUTJWWXc5czhtUERLbW4rU083eGovSUsrR1ZEaEJNOUpaZ3VIcGFZUGt3bWd5UkdwCkx6V0tHMkZULzJRalZUT1dRT09mRFVtVitDSVlsN1hVVlh1Q0toYWFNQ0ZVa1JQOHg4aEZucmNFeklHQ1JpM3IKK3dJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0t", accessToken = {
|
|
67
67
|
token: void 0,
|
|
68
68
|
getInfo() {
|
|
69
69
|
if (!this.token)
|
|
@@ -36931,8 +36931,9 @@ let st$1 = class extends nt {
|
|
|
36931
36931
|
get scale() {
|
|
36932
36932
|
return this.object3d.scale;
|
|
36933
36933
|
}
|
|
36934
|
-
|
|
36935
|
-
|
|
36934
|
+
lookAt(e) {
|
|
36935
|
+
const n = e instanceof Vector3 ? e : new Vector3(...e);
|
|
36936
|
+
this.object3d.lookAt(n);
|
|
36936
36937
|
}
|
|
36937
36938
|
add(...e) {
|
|
36938
36939
|
[...e].forEach((n) => {
|
|
@@ -58024,10 +58025,7 @@ class Model extends pe$1 {
|
|
|
58024
58025
|
}
|
|
58025
58026
|
create() {
|
|
58026
58027
|
return E0(this, null, function* () {
|
|
58027
|
-
const n =
|
|
58028
|
-
type: "gltf",
|
|
58029
|
-
cache: !1
|
|
58030
|
-
});
|
|
58028
|
+
const n = new GLTFLoader(), r = this.options.src, C = yield n.loadAsync(r);
|
|
58031
58029
|
this.object3d = C.scene;
|
|
58032
58030
|
const w = C.animations || [];
|
|
58033
58031
|
this.setClips(w), this.options.autoPlay && this.clips.length > 0 && this.playAllClips();
|
|
@@ -59444,7 +59442,7 @@ function applyFixes(v, e) {
|
|
|
59444
59442
|
version: "0.29.6",
|
|
59445
59443
|
fix: () => {
|
|
59446
59444
|
e.h.u[0] && e.h.u[0].visType === "earth" && e.h.u.forEach((E) => {
|
|
59447
|
-
E.objectUuid === "plane#borderMat" ? E.objectUuid = "plane#sideMat" : E.objectUuid === "plane#outLine" ? E.objectUuid = "plane#lineMat" : E.objectUuid === "china#outLine" ? E.objectUuid = "plane#extrudeLineMat" : E.objectUuid === "world#outLine" ? E.objectUuid = "world#lineMat" : E.objectUuid === "line#chinaOutLine-100000" ? E.objectUuid = "line#china-extrudeLine" : E.objectUuid === "conicPolygon#countries-conicPolygon" ? E.objectUuid = "extrudePolygon#countries-all" : E.objectUuid === "line#countries-conicLine" && (E.objectUuid = "line#countries-all"), E.newValue === "plane#borderMat" && (E.newValue = "plane#sideMat");
|
|
59445
|
+
E.objectUuid === "plane#borderMat" ? E.objectUuid = "plane#sideMat" : E.objectUuid === "plane#outLine" ? E.objectUuid = "plane#lineMat" : E.objectUuid === "china#outLine" ? E.objectUuid = "plane#extrudeLineMat" : E.objectUuid === "world#outLine" ? E.objectUuid = "world#lineMat" : E.objectUuid === "world#borderMat" ? E.objectUuid = "world#sideMat" : E.objectUuid === "line#chinaOutLine-100000" ? E.objectUuid = "line#china-extrudeLine" : E.objectUuid === "conicPolygon#countries-conicPolygon" ? E.objectUuid = "extrudePolygon#countries-all" : E.objectUuid === "line#countries-conicLine" && (E.objectUuid = "line#countries-all"), E.newValue === "plane#borderMat" && (E.newValue = "plane#sideMat");
|
|
59448
59446
|
});
|
|
59449
59447
|
}
|
|
59450
59448
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.29.
|
|
1
|
+
declare const _default: "0.29.9";
|
|
2
2
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vis-core",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.9",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "npm run version && PORT=5173 bundler-dev",
|
|
6
6
|
"build:site": "npm run version && PUBLIC_EXCLUDE=true bundler",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"esus-lite": "^0.2.8",
|
|
67
67
|
"events": "^3.3.0",
|
|
68
68
|
"geojson-cn": "^0.2.5",
|
|
69
|
-
"gl-draw": "0.16.
|
|
69
|
+
"gl-draw": "0.16.3",
|
|
70
70
|
"jsrsasign": "^11.1.0",
|
|
71
71
|
"lodash-es": "^4.17.21"
|
|
72
72
|
},
|