mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-22 10:35:16 +01:00
Update ThreeJS to latest
This commit is contained in:
parent
f274ceeefe
commit
5124e613c2
390
BlueMapCommon/webapp/package-lock.json
generated
390
BlueMapCommon/webapp/package-lock.json
generated
@ -10,7 +10,7 @@
|
||||
"dependencies": {
|
||||
"hammerjs": "^2.0.8",
|
||||
"hocon-parser": "^1.0.1",
|
||||
"three": "~0.123.0",
|
||||
"three": "^0.147.0",
|
||||
"vue": "^3.2.45",
|
||||
"vue-i18n": "^9.2.2"
|
||||
},
|
||||
@ -34,9 +34,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/android-arm": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.16.9.tgz",
|
||||
"integrity": "sha512-kW5ccqWHVOOTGUkkJbtfoImtqu3kA1PFkivM+9QPFSHphPfPBlBalX9eDRqPK+wHCqKhU48/78T791qPgC9e9A==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.16.10.tgz",
|
||||
"integrity": "sha512-RmJjQTRrO6VwUWDrzTBLmV4OJZTarYsiepLGlF2rYTVB701hSorPywPGvP6d8HCuuRibyXa5JX4s3jN2kHEtjQ==",
|
||||
"cpu": [
|
||||
"arm"
|
||||
],
|
||||
@ -50,9 +50,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/android-arm64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.16.9.tgz",
|
||||
"integrity": "sha512-ndIAZJUeLx4O+4AJbFQCurQW4VRUXjDsUvt1L+nP8bVELOWdmdCEOtlIweCUE6P+hU0uxYbEK2AEP0n5IVQvhg==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.16.10.tgz",
|
||||
"integrity": "sha512-47Y+NwVKTldTlDhSgJHZ/RpvBQMUDG7eKihqaF/u6g7s0ZPz4J1vy8A3rwnnUOF2CuDn7w7Gj/QcMoWz3U3SJw==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
@ -66,9 +66,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/android-x64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.16.9.tgz",
|
||||
"integrity": "sha512-UbMcJB4EHrAVOnknQklREPgclNU2CPet2h+sCBCXmF2mfoYWopBn/CfTfeyOkb/JglOcdEADqAljFndMKnFtOw==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.16.10.tgz",
|
||||
"integrity": "sha512-C4PfnrBMcuAcOurQzpF1tTtZz94IXO5JmICJJ3NFJRHbXXsQUg9RFG45KvydKqtFfBaFLCHpduUkUfXwIvGnRg==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@ -82,9 +82,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/darwin-arm64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.16.9.tgz",
|
||||
"integrity": "sha512-d7D7/nrt4CxPul98lx4PXhyNZwTYtbdaHhOSdXlZuu5zZIznjqtMqLac8Bv+IuT6SVHiHUwrkL6ywD7mOgLW+A==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.16.10.tgz",
|
||||
"integrity": "sha512-bH/bpFwldyOKdi9HSLCLhhKeVgRYr9KblchwXgY2NeUHBB/BzTUHtUSBgGBmpydB1/4E37m+ggXXfSrnD7/E7g==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
@ -98,9 +98,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/darwin-x64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.16.9.tgz",
|
||||
"integrity": "sha512-LZc+Wlz06AkJYtwWsBM3x2rSqTG8lntDuftsUNQ3fCx9ZttYtvlDcVtgb+NQ6t9s6K5No5zutN3pcjZEC2a4iQ==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.16.10.tgz",
|
||||
"integrity": "sha512-OXt7ijoLuy+AjDSKQWu+KdDFMBbdeaL6wtgMKtDUXKWHiAMKHan5+R1QAG6HD4+K0nnOvEJXKHeA9QhXNAjOTQ==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@ -114,9 +114,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/freebsd-arm64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.16.9.tgz",
|
||||
"integrity": "sha512-gIj0UQZlQo93CHYouHKkpzP7AuruSaMIm1etcWIxccFEVqCN1xDr6BWlN9bM+ol/f0W9w3hx3HDuEwcJVtGneQ==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.16.10.tgz",
|
||||
"integrity": "sha512-shSQX/3GHuspE3Uxtq5kcFG/zqC+VuMnJkqV7LczO41cIe6CQaXHD3QdMLA4ziRq/m0vZo7JdterlgbmgNIAlQ==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
@ -130,9 +130,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/freebsd-x64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.16.9.tgz",
|
||||
"integrity": "sha512-GNors4vaMJ7lzGOuhzNc7jvgsQZqErGA8rsW+nck8N1nYu86CvsJW2seigVrQQWOV4QzEP8Zf3gm+QCjA2hnBQ==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.16.10.tgz",
|
||||
"integrity": "sha512-5YVc1zdeaJGASijZmTzSO4h6uKzsQGG3pkjI6fuXvolhm3hVRhZwnHJkforaZLmzvNv5Tb7a3QL2FAVmrgySIA==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@ -146,9 +146,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/linux-arm": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.16.9.tgz",
|
||||
"integrity": "sha512-cNx1EF99c2t1Ztn0lk9N+MuwBijGF8mH6nx9GFsB3e0lpUpPkCE/yt5d+7NP9EwJf5uzqdjutgVYoH1SNqzudA==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.16.10.tgz",
|
||||
"integrity": "sha512-c360287ZWI2miBnvIj23bPyVctgzeMT2kQKR+x94pVqIN44h3GF8VMEs1SFPH1UgyDr3yBbx3vowDS1SVhyVhA==",
|
||||
"cpu": [
|
||||
"arm"
|
||||
],
|
||||
@ -162,9 +162,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/linux-arm64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.16.9.tgz",
|
||||
"integrity": "sha512-YPxQunReYp8RQ1FvexFrOEqqf+nLbS3bKVZF5FRT2uKM7Wio7BeATqAwO02AyrdSEntt3I5fhFsujUChIa8CZg==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.16.10.tgz",
|
||||
"integrity": "sha512-2aqeNVxIaRfPcIaMZIFoblLh588sWyCbmj1HHCCs9WmeNWm+EIN0SmvsmPvTa/TsNZFKnxTcvkX2eszTcCqIrA==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
@ -178,9 +178,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/linux-ia32": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.16.9.tgz",
|
||||
"integrity": "sha512-zb12ixDIKNwFpIqR00J88FFitVwOEwO78EiUi8wi8FXlmSc3GtUuKV/BSO+730Kglt0B47+ZrJN1BhhOxZaVrw==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.16.10.tgz",
|
||||
"integrity": "sha512-sqMIEWeyrLGU7J5RB5fTkLRIFwsgsQ7ieWXlDLEmC2HblPYGb3AucD7inw2OrKFpRPKsec1l+lssiM3+NV5aOw==",
|
||||
"cpu": [
|
||||
"ia32"
|
||||
],
|
||||
@ -194,9 +194,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/linux-loong64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.16.9.tgz",
|
||||
"integrity": "sha512-X8te4NLxtHiNT6H+4Pfm5RklzItA1Qy4nfyttihGGX+Koc53Ar20ViC+myY70QJ8PDEOehinXZj/F7QK3A+MKQ==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.16.10.tgz",
|
||||
"integrity": "sha512-O7Pd5hLEtTg37NC73pfhUOGTjx/+aXu5YoSq3ahCxcN7Bcr2F47mv+kG5t840thnsEzrv0oB70+LJu3gUgchvg==",
|
||||
"cpu": [
|
||||
"loong64"
|
||||
],
|
||||
@ -210,9 +210,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/linux-mips64el": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.16.9.tgz",
|
||||
"integrity": "sha512-ZqyMDLt02c5smoS3enlF54ndK5zK4IpClLTxF0hHfzHJlfm4y8IAkIF8LUW0W7zxcKy7oAwI7BRDqeVvC120SA==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.16.10.tgz",
|
||||
"integrity": "sha512-FN8mZOH7531iPHM0kaFhAOqqNHoAb6r/YHW2ZIxNi0a85UBi2DO4Vuyn7t1p4UN8a4LoAnLOT1PqNgHkgBJgbA==",
|
||||
"cpu": [
|
||||
"mips64el"
|
||||
],
|
||||
@ -226,9 +226,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/linux-ppc64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.16.9.tgz",
|
||||
"integrity": "sha512-k+ca5W5LDBEF3lfDwMV6YNXwm4wEpw9krMnNvvlNz3MrKSD2Eb2c861O0MaKrZkG/buTQAP4vkavbLwgIe6xjg==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.16.10.tgz",
|
||||
"integrity": "sha512-Dg9RiqdvHOAWnOKIOTsIx8dFX9EDlY2IbPEY7YFzchrCiTZmMkD7jWA9UdZbNUygPjdmQBVPRCrLydReFlX9yg==",
|
||||
"cpu": [
|
||||
"ppc64"
|
||||
],
|
||||
@ -242,9 +242,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/linux-riscv64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.16.9.tgz",
|
||||
"integrity": "sha512-GuInVdogjmg9DhgkEmNipHkC+3tzkanPJzgzTC2ihsvrruLyFoR1YrTGixblNSMPudQLpiqkcwGwwe0oqfrvfA==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.16.10.tgz",
|
||||
"integrity": "sha512-XMqtpjwzbmlar0BJIxmzu/RZ7EWlfVfH68Vadrva0Wj5UKOdKvqskuev2jY2oPV3aoQUyXwnMbMrFmloO2GfAw==",
|
||||
"cpu": [
|
||||
"riscv64"
|
||||
],
|
||||
@ -258,9 +258,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/linux-s390x": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.16.9.tgz",
|
||||
"integrity": "sha512-49wQ0aYkvwXonGsxc7LuuLNICMX8XtO92Iqmug5Qau0kpnV6SP34jk+jIeu4suHwAbSbRhVFtDv75yRmyfQcHw==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.16.10.tgz",
|
||||
"integrity": "sha512-fu7XtnoeRNFMx8DjK3gPWpFBDM2u5ba+FYwg27SjMJwKvJr4bDyKz5c+FLXLUSSAkMAt/UL+cUbEbra+rYtUgw==",
|
||||
"cpu": [
|
||||
"s390x"
|
||||
],
|
||||
@ -274,9 +274,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/linux-x64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.16.9.tgz",
|
||||
"integrity": "sha512-Nx4oKEAJ6EcQlt4dK7qJyuZUoXZG7CAeY22R7rqZijFzwFfMOD+gLP56uV7RrV86jGf8PeRY8TBsRmOcZoG42w==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.16.10.tgz",
|
||||
"integrity": "sha512-61lcjVC/RldNNMUzQQdyCWjCxp9YLEQgIxErxU9XluX7juBdGKb0pvddS0vPNuCvotRbzijZ1pzII+26haWzbA==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@ -290,9 +290,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/netbsd-x64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.16.9.tgz",
|
||||
"integrity": "sha512-d0WnpgJ+FTiMZXEQ1NOv9+0gvEhttbgKEvVqWWAtl1u9AvlspKXbodKHzQ5MLP6YV1y52Xp+p8FMYqj8ykTahg==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.16.10.tgz",
|
||||
"integrity": "sha512-JeZXCX3viSA9j4HqSoygjssdqYdfHd6yCFWyfSekLbz4Ef+D2EjvsN02ZQPwYl5a5gg/ehdHgegHhlfOFP0HCA==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@ -306,9 +306,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/openbsd-x64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.16.9.tgz",
|
||||
"integrity": "sha512-jccK11278dvEscHFfMk5EIPjF4wv1qGD0vps7mBV1a6TspdR36O28fgPem/SA/0pcsCPHjww5ouCLwP+JNAFlw==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.16.10.tgz",
|
||||
"integrity": "sha512-3qpxQKuEVIIg8SebpXsp82OBrqjPV/OwNWmG+TnZDr3VGyChNnGMHccC1xkbxCHDQNnnXjxhMQNyHmdFJbmbRA==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@ -322,9 +322,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/sunos-x64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.16.9.tgz",
|
||||
"integrity": "sha512-OetwTSsv6mIDLqN7I7I2oX9MmHGwG+AP+wKIHvq+6sIHwcPPJqRx+DJB55jy9JG13CWcdcQno/7V5MTJ5a0xfQ==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.16.10.tgz",
|
||||
"integrity": "sha512-z+q0xZ+et/7etz7WoMyXTHZ1rB8PMSNp/FOqURLJLOPb3GWJ2aj4oCqFCjPwEbW1rsT7JPpxeH/DwGAWk/I1Bg==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@ -338,9 +338,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/win32-arm64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.16.9.tgz",
|
||||
"integrity": "sha512-tKSSSK6unhxbGbHg+Cc+JhRzemkcsX0tPBvG0m5qsWbkShDK9c+/LSb13L18LWVdOQZwuA55Vbakxmt6OjBDOQ==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.16.10.tgz",
|
||||
"integrity": "sha512-+YYu5sbQ9npkNT9Dec+tn1F/kjg6SMgr6bfi/6FpXYZvCRfu2YFPZGb+3x8K30s8eRxFpoG4sGhiSUkr1xbHEw==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
@ -354,9 +354,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/win32-ia32": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.16.9.tgz",
|
||||
"integrity": "sha512-ZTQ5vhNS5gli0KK8I6/s6+LwXmNEfq1ftjnSVyyNm33dBw8zDpstqhGXYUbZSWWLvkqiRRjgxgmoncmi6Yy7Ng==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.16.10.tgz",
|
||||
"integrity": "sha512-Aw7Fupk7XNehR1ftHGYwUteyJ2q+em/aE+fVU3YMTBN2V5A7Z4aVCSV+SvCp9HIIHZavPFBpbdP3VfjQpdf6Xg==",
|
||||
"cpu": [
|
||||
"ia32"
|
||||
],
|
||||
@ -370,9 +370,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/win32-x64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.16.9.tgz",
|
||||
"integrity": "sha512-C4ZX+YFIp6+lPrru3tpH6Gaapy8IBRHw/e7l63fzGDhn/EaiGpQgbIlT5paByyy+oMvRFQoxxyvC4LE0AjJMqQ==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.16.10.tgz",
|
||||
"integrity": "sha512-qddWullt3sC1EIpfHvCRBq3H4g3L86DZpD6n8k2XFjFVyp01D++uNbN1hT/JRsHxTbyyemZcpwL5aRlJwc/zFw==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@ -949,9 +949,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/esbuild": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.16.9.tgz",
|
||||
"integrity": "sha512-gkH83yHyijMSZcZFs1IWew342eMdFuWXmQo3zkDPTre25LIPBJsXryg02M3u8OpTwCJdBkdaQwqKkDLnAsAeLQ==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.16.10.tgz",
|
||||
"integrity": "sha512-z5dIViHoVnw2l+NCJ3zj5behdXjYvXne9gL18OOivCadXDUhyDkeSvEtLcGVAJW2fNmh33TDUpsi704XYlDodw==",
|
||||
"dev": true,
|
||||
"hasInstallScript": true,
|
||||
"bin": {
|
||||
@ -961,28 +961,28 @@
|
||||
"node": ">=12"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@esbuild/android-arm": "0.16.9",
|
||||
"@esbuild/android-arm64": "0.16.9",
|
||||
"@esbuild/android-x64": "0.16.9",
|
||||
"@esbuild/darwin-arm64": "0.16.9",
|
||||
"@esbuild/darwin-x64": "0.16.9",
|
||||
"@esbuild/freebsd-arm64": "0.16.9",
|
||||
"@esbuild/freebsd-x64": "0.16.9",
|
||||
"@esbuild/linux-arm": "0.16.9",
|
||||
"@esbuild/linux-arm64": "0.16.9",
|
||||
"@esbuild/linux-ia32": "0.16.9",
|
||||
"@esbuild/linux-loong64": "0.16.9",
|
||||
"@esbuild/linux-mips64el": "0.16.9",
|
||||
"@esbuild/linux-ppc64": "0.16.9",
|
||||
"@esbuild/linux-riscv64": "0.16.9",
|
||||
"@esbuild/linux-s390x": "0.16.9",
|
||||
"@esbuild/linux-x64": "0.16.9",
|
||||
"@esbuild/netbsd-x64": "0.16.9",
|
||||
"@esbuild/openbsd-x64": "0.16.9",
|
||||
"@esbuild/sunos-x64": "0.16.9",
|
||||
"@esbuild/win32-arm64": "0.16.9",
|
||||
"@esbuild/win32-ia32": "0.16.9",
|
||||
"@esbuild/win32-x64": "0.16.9"
|
||||
"@esbuild/android-arm": "0.16.10",
|
||||
"@esbuild/android-arm64": "0.16.10",
|
||||
"@esbuild/android-x64": "0.16.10",
|
||||
"@esbuild/darwin-arm64": "0.16.10",
|
||||
"@esbuild/darwin-x64": "0.16.10",
|
||||
"@esbuild/freebsd-arm64": "0.16.10",
|
||||
"@esbuild/freebsd-x64": "0.16.10",
|
||||
"@esbuild/linux-arm": "0.16.10",
|
||||
"@esbuild/linux-arm64": "0.16.10",
|
||||
"@esbuild/linux-ia32": "0.16.10",
|
||||
"@esbuild/linux-loong64": "0.16.10",
|
||||
"@esbuild/linux-mips64el": "0.16.10",
|
||||
"@esbuild/linux-ppc64": "0.16.10",
|
||||
"@esbuild/linux-riscv64": "0.16.10",
|
||||
"@esbuild/linux-s390x": "0.16.10",
|
||||
"@esbuild/linux-x64": "0.16.10",
|
||||
"@esbuild/netbsd-x64": "0.16.10",
|
||||
"@esbuild/openbsd-x64": "0.16.10",
|
||||
"@esbuild/sunos-x64": "0.16.10",
|
||||
"@esbuild/win32-arm64": "0.16.10",
|
||||
"@esbuild/win32-ia32": "0.16.10",
|
||||
"@esbuild/win32-x64": "0.16.10"
|
||||
}
|
||||
},
|
||||
"node_modules/escape-string-regexp": {
|
||||
@ -1441,9 +1441,9 @@
|
||||
"integrity": "sha512-qMKuQh6pLPQc0gXsl91hAJEjD4JghV1VukO5gKOzjolCnupCbGHpERzMCkZLwVDLq7sL8xR6P4iWhcM1my3HtA=="
|
||||
},
|
||||
"node_modules/ignore": {
|
||||
"version": "5.2.1",
|
||||
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.1.tgz",
|
||||
"integrity": "sha512-d2qQLzTJ9WxQftPAuEQpSPmKqzxePjzVbpAVv62AQ64NTL+wR4JkrVqR/LqFsFEUsHDAiId52mJteHDFuDkElA==",
|
||||
"version": "5.2.4",
|
||||
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz",
|
||||
"integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">= 4"
|
||||
@ -2172,9 +2172,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/three": {
|
||||
"version": "0.123.0",
|
||||
"resolved": "https://registry.npmjs.org/three/-/three-0.123.0.tgz",
|
||||
"integrity": "sha512-KNnx/IbilvoHRkxOtL0ouozoDoElyuvAXhFB21RK7F5IPWSmqyFelICK6x3hJerLNSlAdHxR0hkuvMMhH9pqXg=="
|
||||
"version": "0.147.0",
|
||||
"resolved": "https://registry.npmjs.org/three/-/three-0.147.0.tgz",
|
||||
"integrity": "sha512-LPTOslYQXFkmvceQjFTNnVVli2LaVF6C99Pv34fJypp8NbQLbTlu3KinZ0zURghS5zEehK+VQyvWuPZ/Sm8fzw=="
|
||||
},
|
||||
"node_modules/to-regex-range": {
|
||||
"version": "5.0.1",
|
||||
@ -2400,156 +2400,156 @@
|
||||
"integrity": "sha512-r27t/cy/m9uKLXQNWWebeCUHgnAZq0CpG1OwKRxzJMP1vpSU4bSIK2hq+/cp0bQxetkXx38n09rNu8jVkcK/zA=="
|
||||
},
|
||||
"@esbuild/android-arm": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.16.9.tgz",
|
||||
"integrity": "sha512-kW5ccqWHVOOTGUkkJbtfoImtqu3kA1PFkivM+9QPFSHphPfPBlBalX9eDRqPK+wHCqKhU48/78T791qPgC9e9A==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.16.10.tgz",
|
||||
"integrity": "sha512-RmJjQTRrO6VwUWDrzTBLmV4OJZTarYsiepLGlF2rYTVB701hSorPywPGvP6d8HCuuRibyXa5JX4s3jN2kHEtjQ==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"@esbuild/android-arm64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.16.9.tgz",
|
||||
"integrity": "sha512-ndIAZJUeLx4O+4AJbFQCurQW4VRUXjDsUvt1L+nP8bVELOWdmdCEOtlIweCUE6P+hU0uxYbEK2AEP0n5IVQvhg==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.16.10.tgz",
|
||||
"integrity": "sha512-47Y+NwVKTldTlDhSgJHZ/RpvBQMUDG7eKihqaF/u6g7s0ZPz4J1vy8A3rwnnUOF2CuDn7w7Gj/QcMoWz3U3SJw==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"@esbuild/android-x64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.16.9.tgz",
|
||||
"integrity": "sha512-UbMcJB4EHrAVOnknQklREPgclNU2CPet2h+sCBCXmF2mfoYWopBn/CfTfeyOkb/JglOcdEADqAljFndMKnFtOw==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.16.10.tgz",
|
||||
"integrity": "sha512-C4PfnrBMcuAcOurQzpF1tTtZz94IXO5JmICJJ3NFJRHbXXsQUg9RFG45KvydKqtFfBaFLCHpduUkUfXwIvGnRg==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"@esbuild/darwin-arm64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.16.9.tgz",
|
||||
"integrity": "sha512-d7D7/nrt4CxPul98lx4PXhyNZwTYtbdaHhOSdXlZuu5zZIznjqtMqLac8Bv+IuT6SVHiHUwrkL6ywD7mOgLW+A==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.16.10.tgz",
|
||||
"integrity": "sha512-bH/bpFwldyOKdi9HSLCLhhKeVgRYr9KblchwXgY2NeUHBB/BzTUHtUSBgGBmpydB1/4E37m+ggXXfSrnD7/E7g==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"@esbuild/darwin-x64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.16.9.tgz",
|
||||
"integrity": "sha512-LZc+Wlz06AkJYtwWsBM3x2rSqTG8lntDuftsUNQ3fCx9ZttYtvlDcVtgb+NQ6t9s6K5No5zutN3pcjZEC2a4iQ==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.16.10.tgz",
|
||||
"integrity": "sha512-OXt7ijoLuy+AjDSKQWu+KdDFMBbdeaL6wtgMKtDUXKWHiAMKHan5+R1QAG6HD4+K0nnOvEJXKHeA9QhXNAjOTQ==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"@esbuild/freebsd-arm64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.16.9.tgz",
|
||||
"integrity": "sha512-gIj0UQZlQo93CHYouHKkpzP7AuruSaMIm1etcWIxccFEVqCN1xDr6BWlN9bM+ol/f0W9w3hx3HDuEwcJVtGneQ==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.16.10.tgz",
|
||||
"integrity": "sha512-shSQX/3GHuspE3Uxtq5kcFG/zqC+VuMnJkqV7LczO41cIe6CQaXHD3QdMLA4ziRq/m0vZo7JdterlgbmgNIAlQ==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"@esbuild/freebsd-x64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.16.9.tgz",
|
||||
"integrity": "sha512-GNors4vaMJ7lzGOuhzNc7jvgsQZqErGA8rsW+nck8N1nYu86CvsJW2seigVrQQWOV4QzEP8Zf3gm+QCjA2hnBQ==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.16.10.tgz",
|
||||
"integrity": "sha512-5YVc1zdeaJGASijZmTzSO4h6uKzsQGG3pkjI6fuXvolhm3hVRhZwnHJkforaZLmzvNv5Tb7a3QL2FAVmrgySIA==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"@esbuild/linux-arm": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.16.9.tgz",
|
||||
"integrity": "sha512-cNx1EF99c2t1Ztn0lk9N+MuwBijGF8mH6nx9GFsB3e0lpUpPkCE/yt5d+7NP9EwJf5uzqdjutgVYoH1SNqzudA==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.16.10.tgz",
|
||||
"integrity": "sha512-c360287ZWI2miBnvIj23bPyVctgzeMT2kQKR+x94pVqIN44h3GF8VMEs1SFPH1UgyDr3yBbx3vowDS1SVhyVhA==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"@esbuild/linux-arm64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.16.9.tgz",
|
||||
"integrity": "sha512-YPxQunReYp8RQ1FvexFrOEqqf+nLbS3bKVZF5FRT2uKM7Wio7BeATqAwO02AyrdSEntt3I5fhFsujUChIa8CZg==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.16.10.tgz",
|
||||
"integrity": "sha512-2aqeNVxIaRfPcIaMZIFoblLh588sWyCbmj1HHCCs9WmeNWm+EIN0SmvsmPvTa/TsNZFKnxTcvkX2eszTcCqIrA==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"@esbuild/linux-ia32": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.16.9.tgz",
|
||||
"integrity": "sha512-zb12ixDIKNwFpIqR00J88FFitVwOEwO78EiUi8wi8FXlmSc3GtUuKV/BSO+730Kglt0B47+ZrJN1BhhOxZaVrw==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.16.10.tgz",
|
||||
"integrity": "sha512-sqMIEWeyrLGU7J5RB5fTkLRIFwsgsQ7ieWXlDLEmC2HblPYGb3AucD7inw2OrKFpRPKsec1l+lssiM3+NV5aOw==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"@esbuild/linux-loong64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.16.9.tgz",
|
||||
"integrity": "sha512-X8te4NLxtHiNT6H+4Pfm5RklzItA1Qy4nfyttihGGX+Koc53Ar20ViC+myY70QJ8PDEOehinXZj/F7QK3A+MKQ==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.16.10.tgz",
|
||||
"integrity": "sha512-O7Pd5hLEtTg37NC73pfhUOGTjx/+aXu5YoSq3ahCxcN7Bcr2F47mv+kG5t840thnsEzrv0oB70+LJu3gUgchvg==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"@esbuild/linux-mips64el": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.16.9.tgz",
|
||||
"integrity": "sha512-ZqyMDLt02c5smoS3enlF54ndK5zK4IpClLTxF0hHfzHJlfm4y8IAkIF8LUW0W7zxcKy7oAwI7BRDqeVvC120SA==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.16.10.tgz",
|
||||
"integrity": "sha512-FN8mZOH7531iPHM0kaFhAOqqNHoAb6r/YHW2ZIxNi0a85UBi2DO4Vuyn7t1p4UN8a4LoAnLOT1PqNgHkgBJgbA==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"@esbuild/linux-ppc64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.16.9.tgz",
|
||||
"integrity": "sha512-k+ca5W5LDBEF3lfDwMV6YNXwm4wEpw9krMnNvvlNz3MrKSD2Eb2c861O0MaKrZkG/buTQAP4vkavbLwgIe6xjg==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.16.10.tgz",
|
||||
"integrity": "sha512-Dg9RiqdvHOAWnOKIOTsIx8dFX9EDlY2IbPEY7YFzchrCiTZmMkD7jWA9UdZbNUygPjdmQBVPRCrLydReFlX9yg==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"@esbuild/linux-riscv64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.16.9.tgz",
|
||||
"integrity": "sha512-GuInVdogjmg9DhgkEmNipHkC+3tzkanPJzgzTC2ihsvrruLyFoR1YrTGixblNSMPudQLpiqkcwGwwe0oqfrvfA==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.16.10.tgz",
|
||||
"integrity": "sha512-XMqtpjwzbmlar0BJIxmzu/RZ7EWlfVfH68Vadrva0Wj5UKOdKvqskuev2jY2oPV3aoQUyXwnMbMrFmloO2GfAw==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"@esbuild/linux-s390x": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.16.9.tgz",
|
||||
"integrity": "sha512-49wQ0aYkvwXonGsxc7LuuLNICMX8XtO92Iqmug5Qau0kpnV6SP34jk+jIeu4suHwAbSbRhVFtDv75yRmyfQcHw==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.16.10.tgz",
|
||||
"integrity": "sha512-fu7XtnoeRNFMx8DjK3gPWpFBDM2u5ba+FYwg27SjMJwKvJr4bDyKz5c+FLXLUSSAkMAt/UL+cUbEbra+rYtUgw==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"@esbuild/linux-x64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.16.9.tgz",
|
||||
"integrity": "sha512-Nx4oKEAJ6EcQlt4dK7qJyuZUoXZG7CAeY22R7rqZijFzwFfMOD+gLP56uV7RrV86jGf8PeRY8TBsRmOcZoG42w==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.16.10.tgz",
|
||||
"integrity": "sha512-61lcjVC/RldNNMUzQQdyCWjCxp9YLEQgIxErxU9XluX7juBdGKb0pvddS0vPNuCvotRbzijZ1pzII+26haWzbA==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"@esbuild/netbsd-x64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.16.9.tgz",
|
||||
"integrity": "sha512-d0WnpgJ+FTiMZXEQ1NOv9+0gvEhttbgKEvVqWWAtl1u9AvlspKXbodKHzQ5MLP6YV1y52Xp+p8FMYqj8ykTahg==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.16.10.tgz",
|
||||
"integrity": "sha512-JeZXCX3viSA9j4HqSoygjssdqYdfHd6yCFWyfSekLbz4Ef+D2EjvsN02ZQPwYl5a5gg/ehdHgegHhlfOFP0HCA==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"@esbuild/openbsd-x64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.16.9.tgz",
|
||||
"integrity": "sha512-jccK11278dvEscHFfMk5EIPjF4wv1qGD0vps7mBV1a6TspdR36O28fgPem/SA/0pcsCPHjww5ouCLwP+JNAFlw==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.16.10.tgz",
|
||||
"integrity": "sha512-3qpxQKuEVIIg8SebpXsp82OBrqjPV/OwNWmG+TnZDr3VGyChNnGMHccC1xkbxCHDQNnnXjxhMQNyHmdFJbmbRA==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"@esbuild/sunos-x64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.16.9.tgz",
|
||||
"integrity": "sha512-OetwTSsv6mIDLqN7I7I2oX9MmHGwG+AP+wKIHvq+6sIHwcPPJqRx+DJB55jy9JG13CWcdcQno/7V5MTJ5a0xfQ==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.16.10.tgz",
|
||||
"integrity": "sha512-z+q0xZ+et/7etz7WoMyXTHZ1rB8PMSNp/FOqURLJLOPb3GWJ2aj4oCqFCjPwEbW1rsT7JPpxeH/DwGAWk/I1Bg==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"@esbuild/win32-arm64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.16.9.tgz",
|
||||
"integrity": "sha512-tKSSSK6unhxbGbHg+Cc+JhRzemkcsX0tPBvG0m5qsWbkShDK9c+/LSb13L18LWVdOQZwuA55Vbakxmt6OjBDOQ==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.16.10.tgz",
|
||||
"integrity": "sha512-+YYu5sbQ9npkNT9Dec+tn1F/kjg6SMgr6bfi/6FpXYZvCRfu2YFPZGb+3x8K30s8eRxFpoG4sGhiSUkr1xbHEw==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"@esbuild/win32-ia32": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.16.9.tgz",
|
||||
"integrity": "sha512-ZTQ5vhNS5gli0KK8I6/s6+LwXmNEfq1ftjnSVyyNm33dBw8zDpstqhGXYUbZSWWLvkqiRRjgxgmoncmi6Yy7Ng==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.16.10.tgz",
|
||||
"integrity": "sha512-Aw7Fupk7XNehR1ftHGYwUteyJ2q+em/aE+fVU3YMTBN2V5A7Z4aVCSV+SvCp9HIIHZavPFBpbdP3VfjQpdf6Xg==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"@esbuild/win32-x64": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.16.9.tgz",
|
||||
"integrity": "sha512-C4ZX+YFIp6+lPrru3tpH6Gaapy8IBRHw/e7l63fzGDhn/EaiGpQgbIlT5paByyy+oMvRFQoxxyvC4LE0AjJMqQ==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.16.10.tgz",
|
||||
"integrity": "sha512-qddWullt3sC1EIpfHvCRBq3H4g3L86DZpD6n8k2XFjFVyp01D++uNbN1hT/JRsHxTbyyemZcpwL5aRlJwc/zFw==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
@ -2991,33 +2991,33 @@
|
||||
}
|
||||
},
|
||||
"esbuild": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.16.9.tgz",
|
||||
"integrity": "sha512-gkH83yHyijMSZcZFs1IWew342eMdFuWXmQo3zkDPTre25LIPBJsXryg02M3u8OpTwCJdBkdaQwqKkDLnAsAeLQ==",
|
||||
"version": "0.16.10",
|
||||
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.16.10.tgz",
|
||||
"integrity": "sha512-z5dIViHoVnw2l+NCJ3zj5behdXjYvXne9gL18OOivCadXDUhyDkeSvEtLcGVAJW2fNmh33TDUpsi704XYlDodw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@esbuild/android-arm": "0.16.9",
|
||||
"@esbuild/android-arm64": "0.16.9",
|
||||
"@esbuild/android-x64": "0.16.9",
|
||||
"@esbuild/darwin-arm64": "0.16.9",
|
||||
"@esbuild/darwin-x64": "0.16.9",
|
||||
"@esbuild/freebsd-arm64": "0.16.9",
|
||||
"@esbuild/freebsd-x64": "0.16.9",
|
||||
"@esbuild/linux-arm": "0.16.9",
|
||||
"@esbuild/linux-arm64": "0.16.9",
|
||||
"@esbuild/linux-ia32": "0.16.9",
|
||||
"@esbuild/linux-loong64": "0.16.9",
|
||||
"@esbuild/linux-mips64el": "0.16.9",
|
||||
"@esbuild/linux-ppc64": "0.16.9",
|
||||
"@esbuild/linux-riscv64": "0.16.9",
|
||||
"@esbuild/linux-s390x": "0.16.9",
|
||||
"@esbuild/linux-x64": "0.16.9",
|
||||
"@esbuild/netbsd-x64": "0.16.9",
|
||||
"@esbuild/openbsd-x64": "0.16.9",
|
||||
"@esbuild/sunos-x64": "0.16.9",
|
||||
"@esbuild/win32-arm64": "0.16.9",
|
||||
"@esbuild/win32-ia32": "0.16.9",
|
||||
"@esbuild/win32-x64": "0.16.9"
|
||||
"@esbuild/android-arm": "0.16.10",
|
||||
"@esbuild/android-arm64": "0.16.10",
|
||||
"@esbuild/android-x64": "0.16.10",
|
||||
"@esbuild/darwin-arm64": "0.16.10",
|
||||
"@esbuild/darwin-x64": "0.16.10",
|
||||
"@esbuild/freebsd-arm64": "0.16.10",
|
||||
"@esbuild/freebsd-x64": "0.16.10",
|
||||
"@esbuild/linux-arm": "0.16.10",
|
||||
"@esbuild/linux-arm64": "0.16.10",
|
||||
"@esbuild/linux-ia32": "0.16.10",
|
||||
"@esbuild/linux-loong64": "0.16.10",
|
||||
"@esbuild/linux-mips64el": "0.16.10",
|
||||
"@esbuild/linux-ppc64": "0.16.10",
|
||||
"@esbuild/linux-riscv64": "0.16.10",
|
||||
"@esbuild/linux-s390x": "0.16.10",
|
||||
"@esbuild/linux-x64": "0.16.10",
|
||||
"@esbuild/netbsd-x64": "0.16.10",
|
||||
"@esbuild/openbsd-x64": "0.16.10",
|
||||
"@esbuild/sunos-x64": "0.16.10",
|
||||
"@esbuild/win32-arm64": "0.16.10",
|
||||
"@esbuild/win32-ia32": "0.16.10",
|
||||
"@esbuild/win32-x64": "0.16.10"
|
||||
}
|
||||
},
|
||||
"escape-string-regexp": {
|
||||
@ -3365,9 +3365,9 @@
|
||||
"integrity": "sha512-qMKuQh6pLPQc0gXsl91hAJEjD4JghV1VukO5gKOzjolCnupCbGHpERzMCkZLwVDLq7sL8xR6P4iWhcM1my3HtA=="
|
||||
},
|
||||
"ignore": {
|
||||
"version": "5.2.1",
|
||||
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.1.tgz",
|
||||
"integrity": "sha512-d2qQLzTJ9WxQftPAuEQpSPmKqzxePjzVbpAVv62AQ64NTL+wR4JkrVqR/LqFsFEUsHDAiId52mJteHDFuDkElA==",
|
||||
"version": "5.2.4",
|
||||
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz",
|
||||
"integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==",
|
||||
"dev": true
|
||||
},
|
||||
"immutable": {
|
||||
@ -3866,9 +3866,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"three": {
|
||||
"version": "0.123.0",
|
||||
"resolved": "https://registry.npmjs.org/three/-/three-0.123.0.tgz",
|
||||
"integrity": "sha512-KNnx/IbilvoHRkxOtL0ouozoDoElyuvAXhFB21RK7F5IPWSmqyFelICK6x3hJerLNSlAdHxR0hkuvMMhH9pqXg=="
|
||||
"version": "0.147.0",
|
||||
"resolved": "https://registry.npmjs.org/three/-/three-0.147.0.tgz",
|
||||
"integrity": "sha512-LPTOslYQXFkmvceQjFTNnVVli2LaVF6C99Pv34fJypp8NbQLbTlu3KinZ0zURghS5zEehK+VQyvWuPZ/Sm8fzw=="
|
||||
},
|
||||
"to-regex-range": {
|
||||
"version": "5.0.1",
|
||||
|
@ -10,7 +10,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"hammerjs": "^2.0.8",
|
||||
"three": "~0.123.0",
|
||||
"three": "^0.147.0",
|
||||
"vue": "^3.2.45",
|
||||
"vue-i18n": "^9.2.2",
|
||||
"hocon-parser": "^1.0.1"
|
||||
|
@ -26,8 +26,7 @@ import {pathFromCoords} from "../util/Utils";
|
||||
import {
|
||||
TextureLoader,
|
||||
Mesh,
|
||||
PlaneBufferGeometry,
|
||||
VertexColors,
|
||||
PlaneGeometry,
|
||||
FrontSide,
|
||||
ShaderMaterial,
|
||||
NearestFilter,
|
||||
@ -52,7 +51,7 @@ export class LowresTileLoader {
|
||||
this.uniforms = uniforms;
|
||||
|
||||
this.textureLoader = new TextureLoader();
|
||||
this.geometry = new PlaneBufferGeometry(
|
||||
this.geometry = new PlaneGeometry(
|
||||
tileSettings.tileSize.x + 1, tileSettings.tileSize.z + 1,
|
||||
Math.ceil(100 / (lod * 2)), Math.ceil(100 / (lod * 2))
|
||||
);
|
||||
@ -109,10 +108,9 @@ export class LowresTileLoader {
|
||||
},
|
||||
vertexShader: this.vertexShader,
|
||||
fragmentShader: this.fragmentShader,
|
||||
transparent: false,
|
||||
depthWrite: true,
|
||||
depthTest: true,
|
||||
vertexColors: VertexColors,
|
||||
vertexColors: true,
|
||||
side: FrontSide,
|
||||
wireframe: false,
|
||||
});
|
||||
|
@ -30,11 +30,9 @@ import {
|
||||
NearestFilter,
|
||||
NearestMipMapLinearFilter,
|
||||
Raycaster,
|
||||
Scene,
|
||||
ShaderMaterial,
|
||||
Texture,
|
||||
Vector3,
|
||||
VertexColors
|
||||
Vector3
|
||||
} from "three";
|
||||
import {alert, dispatchEvent, generateCacheHash, getPixel, hashTile, stringToImage, vecArrToObj} from "../util/Utils";
|
||||
import {TileManager} from "./TileManager";
|
||||
@ -119,12 +117,12 @@ export class Map {
|
||||
this.hiresMaterial = this.createHiresMaterial(hiresVertexShader, hiresFragmentShader, uniforms, textures);
|
||||
|
||||
this.hiresTileManager = new TileManager(new TileLoader(`${this.data.dataUrl}tiles/0/`, this.hiresMaterial, this.data.hires, this.loadBlocker, tileCacheHash), this.onTileLoad("hires"), this.onTileUnload("hires"), this.events);
|
||||
this.hiresTileManager.scene.autoUpdate = false;
|
||||
this.hiresTileManager.scene.matrixWorldAutoUpdate = false;
|
||||
|
||||
this.lowresTileManager = [];
|
||||
for (let i = 0; i < this.data.lowres.lodCount; i++) {
|
||||
this.lowresTileManager[i] = new TileManager(new LowresTileLoader(`${this.data.dataUrl}tiles/`, this.data.lowres, i + 1, lowresVertexShader, lowresFragmentShader, uniforms, async () => {}, tileCacheHash), this.onTileLoad("lowres"), this.onTileUnload("lowres"), this.events);
|
||||
this.lowresTileManager[i].scene.autoUpdate = false;
|
||||
this.lowresTileManager[i].scene.matrixWorldAutoUpdate = false;
|
||||
}
|
||||
|
||||
alert(this.events, `Map '${this.data.id}' is loaded.`, "fine");
|
||||
@ -304,7 +302,7 @@ export class Map {
|
||||
transparent: transparent,
|
||||
depthWrite: true,
|
||||
depthTest: true,
|
||||
vertexColors: VertexColors,
|
||||
vertexColors: true,
|
||||
side: FrontSide,
|
||||
wireframe: false,
|
||||
});
|
||||
@ -331,7 +329,7 @@ export class Map {
|
||||
transparent: false,
|
||||
depthWrite: true,
|
||||
depthTest: true,
|
||||
vertexColors: VertexColors,
|
||||
vertexColors: true,
|
||||
side: FrontSide,
|
||||
wireframe: false
|
||||
});
|
||||
|
@ -81,6 +81,8 @@ void main() {
|
||||
if (vDistance < 900.0 && texture(hiresTileMap.map, ((vWorldPosition.xz - hiresTileMap.translate) / hiresTileMap.scale - hiresTileMap.pos) / hiresTileMap.size + 0.5).r > 0.75) discard;
|
||||
|
||||
vec4 color = texture(textureImage, posToColorUV(vPosition.xz));
|
||||
color.a = 1.0; // don't use alpha channel
|
||||
|
||||
vec4 meta = texture(textureImage, posToMetaUV(vPosition.xz));
|
||||
|
||||
float height = metaToHeight(meta);
|
||||
|
@ -22,14 +22,15 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
import {Color, DoubleSide, ExtrudeBufferGeometry, Mesh, ShaderMaterial, Shape, Vector2} from "three";
|
||||
import {LineMaterial} from "../util/lines/LineMaterial";
|
||||
import {Color, DoubleSide, ExtrudeGeometry, Mesh, ShaderMaterial, Shape, UniformsUtils, Vector2} from "three";
|
||||
import {LineMaterial} from "three/examples/jsm/lines/LineMaterial";
|
||||
import {MARKER_FILL_VERTEX_SHADER} from "./MarkerFillVertexShader";
|
||||
import {MARKER_FILL_FRAGMENT_SHADER} from "./MarkerFillFragmentShader";
|
||||
import {Line2} from "../util/lines/Line2";
|
||||
import {Line2} from "three/examples/jsm/lines/Line2";
|
||||
import {deepEquals} from "../util/Utils";
|
||||
import {LineSegmentsGeometry} from "../util/lines/LineSegmentsGeometry";
|
||||
import {LineSegmentsGeometry} from "three/examples/jsm/lines/LineSegmentsGeometry";
|
||||
import {ObjectMarker} from "./ObjectMarker";
|
||||
import {lineShader} from "../util/LineShader";
|
||||
|
||||
export class ExtrudeMarker extends ObjectMarker {
|
||||
|
||||
@ -281,10 +282,10 @@ class ExtrudeMarkerFill extends Mesh {
|
||||
|
||||
/**
|
||||
* @param shape {Shape}
|
||||
* @returns {ExtrudeBufferGeometry}
|
||||
* @returns {ExtrudeGeometry}
|
||||
*/
|
||||
static createGeometry(shape) {
|
||||
let geometry = new ExtrudeBufferGeometry(shape, {
|
||||
let geometry = new ExtrudeGeometry(shape, {
|
||||
depth: 1,
|
||||
steps: 5,
|
||||
bevelEnabled: false
|
||||
@ -313,6 +314,9 @@ class ExtrudeMarkerBorder extends Line2 {
|
||||
depthTest: true,
|
||||
vertexColors: false,
|
||||
dashed: false,
|
||||
uniforms: UniformsUtils.clone( lineShader.uniforms ),
|
||||
vertexShader: lineShader.vertexShader,
|
||||
fragmentShader: lineShader.fragmentShader
|
||||
});
|
||||
material.uniforms.fadeDistanceMin = { value: 0 };
|
||||
material.uniforms.fadeDistanceMax = { value: Number.MAX_VALUE };
|
||||
|
@ -22,12 +22,13 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
import {Color} from "three";
|
||||
import {LineMaterial} from "../util/lines/LineMaterial";
|
||||
import {LineGeometry} from "../util/lines/LineGeometry";
|
||||
import {Line2} from "../util/lines/Line2";
|
||||
import {Color, UniformsUtils} from "three";
|
||||
import {LineMaterial} from "three/examples/jsm/lines/LineMaterial";
|
||||
import {LineGeometry} from "three/examples/jsm/lines/LineGeometry";
|
||||
import {Line2} from "three/examples/jsm/lines/Line2";
|
||||
import {deepEquals} from "../util/Utils";
|
||||
import {ObjectMarker} from "./ObjectMarker";
|
||||
import {lineShader} from "../util/LineShader";
|
||||
|
||||
export class LineMarker extends ObjectMarker {
|
||||
|
||||
@ -174,6 +175,9 @@ class LineMarkerLine extends Line2 {
|
||||
depthTest: true,
|
||||
vertexColors: false,
|
||||
dashed: false,
|
||||
uniforms: UniformsUtils.clone( lineShader.uniforms ),
|
||||
vertexShader: lineShader.vertexShader,
|
||||
fragmentShader: lineShader.fragmentShader
|
||||
});
|
||||
material.uniforms.fadeDistanceMin = { value: 0 };
|
||||
material.uniforms.fadeDistanceMax = { value: Number.MAX_VALUE };
|
||||
|
@ -22,14 +22,15 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
import {Color, DoubleSide, Mesh, ShaderMaterial, Shape, ShapeBufferGeometry, Vector2} from "three";
|
||||
import {LineMaterial} from "../util/lines/LineMaterial";
|
||||
import {Color, DoubleSide, Mesh, ShaderMaterial, Shape, ShapeGeometry, UniformsUtils, Vector2} from "three";
|
||||
import {LineMaterial} from "three/examples/jsm/lines/LineMaterial";
|
||||
import {MARKER_FILL_VERTEX_SHADER} from "./MarkerFillVertexShader";
|
||||
import {MARKER_FILL_FRAGMENT_SHADER} from "./MarkerFillFragmentShader";
|
||||
import {LineGeometry} from "../util/lines/LineGeometry";
|
||||
import {Line2} from "../util/lines/Line2";
|
||||
import {LineGeometry} from "three/examples/jsm/lines/LineGeometry";
|
||||
import {Line2} from "three/examples/jsm/lines/Line2";
|
||||
import {deepEquals} from "../util/Utils";
|
||||
import {ObjectMarker} from "./ObjectMarker";
|
||||
import {lineShader} from "../util/LineShader";
|
||||
|
||||
export class ShapeMarker extends ObjectMarker {
|
||||
|
||||
@ -278,10 +279,10 @@ class ShapeMarkerFill extends Mesh {
|
||||
|
||||
/**
|
||||
* @param shape {Shape}
|
||||
* @returns {ShapeBufferGeometry}
|
||||
* @returns {ShapeGeometry}
|
||||
*/
|
||||
static createGeometry(shape) {
|
||||
let geometry = new ShapeBufferGeometry(shape, 5);
|
||||
let geometry = new ShapeGeometry(shape, 5);
|
||||
geometry.rotateX(Math.PI / 2); //make y to z
|
||||
|
||||
return geometry;
|
||||
@ -306,6 +307,9 @@ class ShapeMarkerBorder extends Line2 {
|
||||
depthTest: true,
|
||||
vertexColors: false,
|
||||
dashed: false,
|
||||
uniforms: UniformsUtils.clone( lineShader.uniforms ),
|
||||
vertexShader: lineShader.vertexShader,
|
||||
fragmentShader: lineShader.fragmentShader
|
||||
});
|
||||
material.uniforms.fadeDistanceMin = { value: 0 };
|
||||
material.uniforms.fadeDistanceMax = { value: Number.MAX_VALUE };
|
||||
|
@ -32,7 +32,7 @@ export class SkyboxScene extends Scene {
|
||||
constructor(uniforms) {
|
||||
super();
|
||||
|
||||
this.autoUpdate = false;
|
||||
this.matrixWorldAutoUpdate = false;
|
||||
|
||||
Object.defineProperty(this, 'isSkyboxScene', {value: true});
|
||||
|
||||
|
@ -9,69 +9,68 @@ import {
|
||||
Object3D, Vector2,
|
||||
Vector3
|
||||
} from "three";
|
||||
import {dispatchEvent, htmlToElement} from "./Utils";
|
||||
import {dispatchEvent} from "./Utils";
|
||||
|
||||
var CSS2DObject = function ( element ) {
|
||||
class CSS2DObject extends Object3D {
|
||||
|
||||
Object3D.call( this );
|
||||
constructor(element) {
|
||||
super();
|
||||
|
||||
this.element = document.createElement("div");
|
||||
let parent = element.parentNode;
|
||||
parent.replaceChild(this.element, element);
|
||||
this.element.appendChild(element);
|
||||
this.element = document.createElement("div");
|
||||
let parent = element.parentNode;
|
||||
parent.replaceChild(this.element, element);
|
||||
this.element.appendChild(element);
|
||||
|
||||
this.element.style.position = 'absolute';
|
||||
this.element.style.position = 'absolute';
|
||||
|
||||
this.anchor = new Vector2();
|
||||
this.anchor = new Vector2();
|
||||
|
||||
this.events = null;
|
||||
this.events = null;
|
||||
|
||||
this.addEventListener( 'removed', function () {
|
||||
this.addEventListener('removed', function () {
|
||||
|
||||
this.traverse( function ( object ) {
|
||||
this.traverse(function (object) {
|
||||
|
||||
if ( object.element instanceof Element && object.element.parentNode !== null ) {
|
||||
if (object.element instanceof Element && object.element.parentNode !== null) {
|
||||
|
||||
object.element.parentNode.removeChild( object.element );
|
||||
object.element.parentNode.removeChild(object.element);
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
let lastClick = -1;
|
||||
let handleClick = event => {
|
||||
let doubleTap = false;
|
||||
|
||||
let now = Date.now();
|
||||
if (now - lastClick < 500) {
|
||||
doubleTap = true;
|
||||
}
|
||||
|
||||
} );
|
||||
lastClick = now;
|
||||
|
||||
} );
|
||||
let data = {doubleTap: doubleTap};
|
||||
|
||||
let lastClick = -1;
|
||||
let handleClick = event => {
|
||||
let doubleTap = false;
|
||||
|
||||
let now = Date.now();
|
||||
if (now - lastClick < 500){
|
||||
doubleTap = true;
|
||||
if (this.onClick({event: event, data: data})) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
} else {
|
||||
// fire event
|
||||
dispatchEvent(this.events, "bluemapMapInteraction", {
|
||||
data: data,
|
||||
object: this,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
lastClick = now;
|
||||
|
||||
let data = {doubleTap: doubleTap};
|
||||
|
||||
if (this.onClick( {event: event, data: data} )) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
} else {
|
||||
// fire event
|
||||
dispatchEvent(this.events, "bluemapMapInteraction", {
|
||||
data: data,
|
||||
object: this,
|
||||
});
|
||||
}
|
||||
this.element.addEventListener("click", handleClick);
|
||||
this.element.addEventListener("touch", handleClick);
|
||||
}
|
||||
|
||||
this.element.addEventListener("click", handleClick);
|
||||
this.element.addEventListener("touch", handleClick);
|
||||
|
||||
};
|
||||
|
||||
CSS2DObject.prototype = Object.create( Object3D.prototype );
|
||||
CSS2DObject.prototype.constructor = CSS2DObject;
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
@ -217,7 +216,7 @@ var CSS2DRenderer = function (events = null) {
|
||||
|
||||
this.render = function ( scene, camera ) {
|
||||
|
||||
if ( scene.autoUpdate === true ) scene.updateMatrixWorld();
|
||||
if ( scene.matrixWorldAutoUpdate === true ) scene.updateMatrixWorld();
|
||||
if ( camera.parent === null ) camera.updateMatrixWorld();
|
||||
|
||||
viewMatrix.copy( camera.matrixWorldInverse );
|
||||
|
@ -136,6 +136,8 @@ export class CombinedCamera extends PerspectiveCamera {
|
||||
return this.ortho < 1;
|
||||
}
|
||||
|
||||
set isPerspectiveCamera(value) {}
|
||||
|
||||
/**
|
||||
* @returns {boolean}
|
||||
*/
|
||||
@ -143,6 +145,8 @@ export class CombinedCamera extends PerspectiveCamera {
|
||||
return !this.isPerspectiveCamera;
|
||||
}
|
||||
|
||||
set isOrthographicCamera(value) {}
|
||||
|
||||
/**
|
||||
* @returns {string}
|
||||
*/
|
||||
|
@ -1,43 +1,15 @@
|
||||
import {
|
||||
ShaderLib,
|
||||
ShaderMaterial,
|
||||
UniformsLib,
|
||||
UniformsUtils,
|
||||
Vector2
|
||||
} from "three";
|
||||
/**
|
||||
* parameters = {
|
||||
* color: <hex>,
|
||||
* linewidth: <float>,
|
||||
* dashed: <boolean>,
|
||||
* dashScale: <float>,
|
||||
* dashSize: <float>,
|
||||
* gapSize: <float>,
|
||||
* resolution: <Vector2>, // to be set by renderer
|
||||
* }
|
||||
*/
|
||||
import {UniformsLib, UniformsUtils} from "three";
|
||||
|
||||
UniformsLib.line = {
|
||||
export const lineShader = {
|
||||
|
||||
linewidth: { value: 1 },
|
||||
resolution: { value: new Vector2( 1, 1 ) },
|
||||
dashScale: { value: 1 },
|
||||
dashSize: { value: 1 },
|
||||
gapSize: { value: 1 },
|
||||
opacity: { value: 1 }
|
||||
uniforms: UniformsUtils.merge( [
|
||||
UniformsLib.common,
|
||||
UniformsLib.fog,
|
||||
UniformsLib.line
|
||||
] ),
|
||||
|
||||
};
|
||||
|
||||
ShaderLib[ 'line' ] = {
|
||||
|
||||
uniforms: UniformsUtils.merge( [
|
||||
UniformsLib.common,
|
||||
UniformsLib.fog,
|
||||
UniformsLib.line
|
||||
] ),
|
||||
|
||||
vertexShader:
|
||||
`
|
||||
vertexShader:
|
||||
`
|
||||
#include <common>
|
||||
#include <color_pars_vertex>
|
||||
#include <fog_pars_vertex>
|
||||
@ -187,8 +159,8 @@ ShaderLib[ 'line' ] = {
|
||||
}
|
||||
`,
|
||||
|
||||
fragmentShader:
|
||||
`
|
||||
fragmentShader:
|
||||
`
|
||||
#define FLT_MAX 3.402823466e+38
|
||||
|
||||
uniform vec3 diffuse;
|
||||
@ -264,161 +236,3 @@ ShaderLib[ 'line' ] = {
|
||||
}
|
||||
`
|
||||
};
|
||||
|
||||
var LineMaterial = function ( parameters ) {
|
||||
|
||||
ShaderMaterial.call( this, {
|
||||
|
||||
type: 'LineMaterial',
|
||||
|
||||
uniforms: UniformsUtils.clone( ShaderLib[ 'line' ].uniforms ),
|
||||
|
||||
vertexShader: ShaderLib[ 'line' ].vertexShader,
|
||||
fragmentShader: ShaderLib[ 'line' ].fragmentShader,
|
||||
|
||||
clipping: true // required for clipping support
|
||||
|
||||
} );
|
||||
|
||||
this.dashed = false;
|
||||
|
||||
Object.defineProperties( this, {
|
||||
|
||||
color: {
|
||||
|
||||
enumerable: true,
|
||||
|
||||
get: function () {
|
||||
|
||||
return this.uniforms.diffuse.value;
|
||||
|
||||
},
|
||||
|
||||
set: function ( value ) {
|
||||
|
||||
this.uniforms.diffuse.value = value;
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
linewidth: {
|
||||
|
||||
enumerable: true,
|
||||
|
||||
get: function () {
|
||||
|
||||
return this.uniforms.linewidth.value;
|
||||
|
||||
},
|
||||
|
||||
set: function ( value ) {
|
||||
|
||||
this.uniforms.linewidth.value = value;
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
dashScale: {
|
||||
|
||||
enumerable: true,
|
||||
|
||||
get: function () {
|
||||
|
||||
return this.uniforms.dashScale.value;
|
||||
|
||||
},
|
||||
|
||||
set: function ( value ) {
|
||||
|
||||
this.uniforms.dashScale.value = value;
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
dashSize: {
|
||||
|
||||
enumerable: true,
|
||||
|
||||
get: function () {
|
||||
|
||||
return this.uniforms.dashSize.value;
|
||||
|
||||
},
|
||||
|
||||
set: function ( value ) {
|
||||
|
||||
this.uniforms.dashSize.value = value;
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
gapSize: {
|
||||
|
||||
enumerable: true,
|
||||
|
||||
get: function () {
|
||||
|
||||
return this.uniforms.gapSize.value;
|
||||
|
||||
},
|
||||
|
||||
set: function ( value ) {
|
||||
|
||||
this.uniforms.gapSize.value = value;
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
opacity: {
|
||||
|
||||
enumerable: true,
|
||||
|
||||
get: function () {
|
||||
|
||||
return this.uniforms.opacity.value;
|
||||
|
||||
},
|
||||
|
||||
set: function ( value ) {
|
||||
|
||||
this.uniforms.opacity.value = value;
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
resolution: {
|
||||
|
||||
enumerable: true,
|
||||
|
||||
get: function () {
|
||||
|
||||
return this.uniforms.resolution.value;
|
||||
|
||||
},
|
||||
|
||||
set: function ( value ) {
|
||||
|
||||
this.uniforms.resolution.value.copy( value );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
} );
|
||||
|
||||
this.setValues( parameters );
|
||||
|
||||
};
|
||||
|
||||
LineMaterial.prototype = Object.create( ShaderMaterial.prototype );
|
||||
LineMaterial.prototype.constructor = LineMaterial;
|
||||
|
||||
LineMaterial.prototype.isLineMaterial = true;
|
||||
|
||||
export { LineMaterial };
|
@ -1,25 +0,0 @@
|
||||
|
||||
import { LineSegments2 } from "./LineSegments2";
|
||||
import { LineGeometry } from "./LineGeometry";
|
||||
import { LineMaterial } from "./LineMaterial";
|
||||
|
||||
var Line2 = function ( geometry, material ) {
|
||||
|
||||
if ( geometry === undefined ) geometry = new LineGeometry();
|
||||
if ( material === undefined ) material = new LineMaterial( { color: Math.random() * 0xffffff } );
|
||||
|
||||
LineSegments2.call( this, geometry, material );
|
||||
|
||||
this.type = 'Line2';
|
||||
|
||||
};
|
||||
|
||||
Line2.prototype = Object.assign( Object.create( LineSegments2.prototype ), {
|
||||
|
||||
constructor: Line2,
|
||||
|
||||
isLine2: true
|
||||
|
||||
} );
|
||||
|
||||
export { Line2 };
|
@ -1,96 +0,0 @@
|
||||
|
||||
import { LineSegmentsGeometry } from "./LineSegmentsGeometry";
|
||||
|
||||
var LineGeometry = function () {
|
||||
|
||||
LineSegmentsGeometry.call( this );
|
||||
|
||||
this.type = 'LineGeometry';
|
||||
|
||||
};
|
||||
|
||||
LineGeometry.prototype = Object.assign( Object.create( LineSegmentsGeometry.prototype ), {
|
||||
|
||||
constructor: LineGeometry,
|
||||
|
||||
isLineGeometry: true,
|
||||
|
||||
setPositions: function ( array ) {
|
||||
|
||||
// converts [ x1, y1, z1, x2, y2, z2, ... ] to pairs format
|
||||
|
||||
var length = array.length - 3;
|
||||
var points = new Float32Array( 2 * length );
|
||||
|
||||
for ( var i = 0; i < length; i += 3 ) {
|
||||
|
||||
points[ 2 * i ] = array[ i ];
|
||||
points[ 2 * i + 1 ] = array[ i + 1 ];
|
||||
points[ 2 * i + 2 ] = array[ i + 2 ];
|
||||
|
||||
points[ 2 * i + 3 ] = array[ i + 3 ];
|
||||
points[ 2 * i + 4 ] = array[ i + 4 ];
|
||||
points[ 2 * i + 5 ] = array[ i + 5 ];
|
||||
|
||||
}
|
||||
|
||||
LineSegmentsGeometry.prototype.setPositions.call( this, points );
|
||||
|
||||
return this;
|
||||
|
||||
},
|
||||
|
||||
setColors: function ( array ) {
|
||||
|
||||
// converts [ r1, g1, b1, r2, g2, b2, ... ] to pairs format
|
||||
|
||||
var length = array.length - 3;
|
||||
var colors = new Float32Array( 2 * length );
|
||||
|
||||
for ( var i = 0; i < length; i += 3 ) {
|
||||
|
||||
colors[ 2 * i ] = array[ i ];
|
||||
colors[ 2 * i + 1 ] = array[ i + 1 ];
|
||||
colors[ 2 * i + 2 ] = array[ i + 2 ];
|
||||
|
||||
colors[ 2 * i + 3 ] = array[ i + 3 ];
|
||||
colors[ 2 * i + 4 ] = array[ i + 4 ];
|
||||
colors[ 2 * i + 5 ] = array[ i + 5 ];
|
||||
|
||||
}
|
||||
|
||||
LineSegmentsGeometry.prototype.setColors.call( this, colors );
|
||||
|
||||
return this;
|
||||
|
||||
},
|
||||
|
||||
fromLine: function ( line ) {
|
||||
|
||||
var geometry = line.geometry;
|
||||
|
||||
if ( geometry.isGeometry ) {
|
||||
|
||||
this.setPositions( geometry.vertices );
|
||||
|
||||
} else if ( geometry.isBufferGeometry ) {
|
||||
|
||||
this.setPositions( geometry.attributes.position.array ); // assumes non-indexed
|
||||
|
||||
}
|
||||
|
||||
// set colors, maybe
|
||||
|
||||
return this;
|
||||
|
||||
},
|
||||
|
||||
copy: function ( /* source */ ) {
|
||||
|
||||
return this;
|
||||
|
||||
}
|
||||
|
||||
} );
|
||||
|
||||
export { LineGeometry };
|
@ -1,209 +0,0 @@
|
||||
import {
|
||||
InstancedInterleavedBuffer,
|
||||
InterleavedBufferAttribute,
|
||||
Line3,
|
||||
MathUtils,
|
||||
Matrix4,
|
||||
Mesh,
|
||||
Vector3,
|
||||
Vector4
|
||||
} from "three";
|
||||
import { LineSegmentsGeometry } from "./LineSegmentsGeometry";
|
||||
import { LineMaterial } from "./LineMaterial";
|
||||
|
||||
var LineSegments2 = function ( geometry, material ) {
|
||||
|
||||
if ( geometry === undefined ) geometry = new LineSegmentsGeometry();
|
||||
if ( material === undefined ) material = new LineMaterial( { color: Math.random() * 0xffffff } );
|
||||
|
||||
Mesh.call( this, geometry, material );
|
||||
|
||||
this.type = 'LineSegments2';
|
||||
|
||||
};
|
||||
|
||||
LineSegments2.prototype = Object.assign( Object.create( Mesh.prototype ), {
|
||||
|
||||
constructor: LineSegments2,
|
||||
|
||||
isLineSegments2: true,
|
||||
|
||||
computeLineDistances: ( function () { // for backwards-compatability, but could be a method of LineSegmentsGeometry...
|
||||
|
||||
var start = new Vector3();
|
||||
var end = new Vector3();
|
||||
|
||||
return function computeLineDistances() {
|
||||
|
||||
var geometry = this.geometry;
|
||||
|
||||
var instanceStart = geometry.attributes.instanceStart;
|
||||
var instanceEnd = geometry.attributes.instanceEnd;
|
||||
var lineDistances = new Float32Array( 2 * instanceStart.data.count );
|
||||
|
||||
for ( var i = 0, j = 0, l = instanceStart.data.count; i < l; i ++, j += 2 ) {
|
||||
|
||||
start.fromBufferAttribute( instanceStart, i );
|
||||
end.fromBufferAttribute( instanceEnd, i );
|
||||
|
||||
lineDistances[ j ] = ( j === 0 ) ? 0 : lineDistances[ j - 1 ];
|
||||
lineDistances[ j + 1 ] = lineDistances[ j ] + start.distanceTo( end );
|
||||
|
||||
}
|
||||
|
||||
var instanceDistanceBuffer = new InstancedInterleavedBuffer( lineDistances, 2, 1 ); // d0, d1
|
||||
|
||||
geometry.setAttribute( 'instanceDistanceStart', new InterleavedBufferAttribute( instanceDistanceBuffer, 1, 0 ) ); // d0
|
||||
geometry.setAttribute( 'instanceDistanceEnd', new InterleavedBufferAttribute( instanceDistanceBuffer, 1, 1 ) ); // d1
|
||||
|
||||
return this;
|
||||
|
||||
};
|
||||
|
||||
}() ),
|
||||
|
||||
raycast: ( function () {
|
||||
|
||||
var start = new Vector4();
|
||||
var end = new Vector4();
|
||||
|
||||
var ssOrigin = new Vector4();
|
||||
var ssOrigin3 = new Vector3();
|
||||
var mvMatrix = new Matrix4();
|
||||
var line = new Line3();
|
||||
var closestPoint = new Vector3();
|
||||
|
||||
return function raycast( raycaster, intersects ) {
|
||||
|
||||
if ( raycaster.camera === null ) {
|
||||
|
||||
console.error( 'LineSegments2: "Raycaster.camera" needs to be set in order to raycast against LineSegments2.' );
|
||||
|
||||
}
|
||||
|
||||
var threshold = ( raycaster.params.Line2 !== undefined ) ? raycaster.params.Line2.threshold || 0 : 0;
|
||||
|
||||
var ray = raycaster.ray;
|
||||
var camera = raycaster.camera;
|
||||
var projectionMatrix = camera.projectionMatrix;
|
||||
|
||||
var geometry = this.geometry;
|
||||
var material = this.material;
|
||||
var resolution = material.resolution;
|
||||
var lineWidth = material.linewidth + threshold;
|
||||
|
||||
var instanceStart = geometry.attributes.instanceStart;
|
||||
var instanceEnd = geometry.attributes.instanceEnd;
|
||||
|
||||
// pick a point 1 unit out along the ray to avoid the ray origin
|
||||
// sitting at the camera origin which will cause "w" to be 0 when
|
||||
// applying the projection matrix.
|
||||
ray.at( 1, ssOrigin );
|
||||
|
||||
// ndc space [ - 1.0, 1.0 ]
|
||||
ssOrigin.w = 1;
|
||||
ssOrigin.applyMatrix4( camera.matrixWorldInverse );
|
||||
ssOrigin.applyMatrix4( projectionMatrix );
|
||||
ssOrigin.multiplyScalar( 1 / ssOrigin.w );
|
||||
|
||||
// screen space
|
||||
ssOrigin.x *= resolution.x / 2;
|
||||
ssOrigin.y *= resolution.y / 2;
|
||||
ssOrigin.z = 0;
|
||||
|
||||
ssOrigin3.copy( ssOrigin );
|
||||
|
||||
var matrixWorld = this.matrixWorld;
|
||||
mvMatrix.multiplyMatrices( camera.matrixWorldInverse, matrixWorld );
|
||||
|
||||
for ( var i = 0, l = instanceStart.count; i < l; i ++ ) {
|
||||
|
||||
start.fromBufferAttribute( instanceStart, i );
|
||||
end.fromBufferAttribute( instanceEnd, i );
|
||||
|
||||
start.w = 1;
|
||||
end.w = 1;
|
||||
|
||||
// camera space
|
||||
start.applyMatrix4( mvMatrix );
|
||||
end.applyMatrix4( mvMatrix );
|
||||
|
||||
// clip space
|
||||
start.applyMatrix4( projectionMatrix );
|
||||
end.applyMatrix4( projectionMatrix );
|
||||
|
||||
// ndc space [ - 1.0, 1.0 ]
|
||||
start.multiplyScalar( 1 / start.w );
|
||||
end.multiplyScalar( 1 / end.w );
|
||||
|
||||
// skip the segment if it's outside the camera near and far planes
|
||||
var isBehindCameraNear = start.z < - 1 && end.z < - 1;
|
||||
var isPastCameraFar = start.z > 1 && end.z > 1;
|
||||
if ( isBehindCameraNear || isPastCameraFar ) {
|
||||
|
||||
continue;
|
||||
|
||||
}
|
||||
|
||||
// screen space
|
||||
start.x *= resolution.x / 2;
|
||||
start.y *= resolution.y / 2;
|
||||
|
||||
end.x *= resolution.x / 2;
|
||||
end.y *= resolution.y / 2;
|
||||
|
||||
// create 2d segment
|
||||
line.start.copy( start );
|
||||
line.start.z = 0;
|
||||
|
||||
line.end.copy( end );
|
||||
line.end.z = 0;
|
||||
|
||||
// get closest point on ray to segment
|
||||
var param = line.closestPointToPointParameter( ssOrigin3, true );
|
||||
line.at( param, closestPoint );
|
||||
|
||||
// check if the intersection point is within clip space
|
||||
var zPos = MathUtils.lerp( start.z, end.z, param );
|
||||
var isInClipSpace = zPos >= - 1 && zPos <= 1;
|
||||
|
||||
var isInside = ssOrigin3.distanceTo( closestPoint ) < lineWidth * 0.5;
|
||||
|
||||
if ( isInClipSpace && isInside ) {
|
||||
|
||||
line.start.fromBufferAttribute( instanceStart, i );
|
||||
line.end.fromBufferAttribute( instanceEnd, i );
|
||||
|
||||
line.start.applyMatrix4( matrixWorld );
|
||||
line.end.applyMatrix4( matrixWorld );
|
||||
|
||||
var pointOnLine = new Vector3();
|
||||
var point = new Vector3();
|
||||
|
||||
ray.distanceSqToSegment( line.start, line.end, point, pointOnLine );
|
||||
|
||||
intersects.push( {
|
||||
|
||||
point: point,
|
||||
pointOnLine: pointOnLine,
|
||||
distance: ray.origin.distanceTo( point ),
|
||||
|
||||
object: this,
|
||||
face: null,
|
||||
faceIndex: i,
|
||||
uv: null,
|
||||
uv2: null,
|
||||
|
||||
} );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
}() )
|
||||
|
||||
} );
|
||||
|
||||
export { LineSegments2 };
|
@ -1,258 +0,0 @@
|
||||
import {
|
||||
Box3,
|
||||
Float32BufferAttribute,
|
||||
InstancedBufferGeometry,
|
||||
InstancedInterleavedBuffer,
|
||||
InterleavedBufferAttribute,
|
||||
Sphere,
|
||||
Vector3,
|
||||
WireframeGeometry
|
||||
} from "three";
|
||||
|
||||
var LineSegmentsGeometry = function () {
|
||||
|
||||
InstancedBufferGeometry.call( this );
|
||||
|
||||
this.type = 'LineSegmentsGeometry';
|
||||
|
||||
var positions = [ - 1, 2, 0, 1, 2, 0, - 1, 1, 0, 1, 1, 0, - 1, 0, 0, 1, 0, 0, - 1, - 1, 0, 1, - 1, 0 ];
|
||||
var uvs = [ - 1, 2, 1, 2, - 1, 1, 1, 1, - 1, - 1, 1, - 1, - 1, - 2, 1, - 2 ];
|
||||
var index = [ 0, 2, 1, 2, 3, 1, 2, 4, 3, 4, 5, 3, 4, 6, 5, 6, 7, 5 ];
|
||||
|
||||
this.setIndex( index );
|
||||
this.setAttribute( 'position', new Float32BufferAttribute( positions, 3 ) );
|
||||
this.setAttribute( 'uv', new Float32BufferAttribute( uvs, 2 ) );
|
||||
|
||||
};
|
||||
|
||||
LineSegmentsGeometry.prototype = Object.assign( Object.create( InstancedBufferGeometry.prototype ), {
|
||||
|
||||
constructor: LineSegmentsGeometry,
|
||||
|
||||
isLineSegmentsGeometry: true,
|
||||
|
||||
applyMatrix4: function ( matrix ) {
|
||||
|
||||
var start = this.attributes.instanceStart;
|
||||
var end = this.attributes.instanceEnd;
|
||||
|
||||
if ( start !== undefined ) {
|
||||
|
||||
start.applyMatrix4( matrix );
|
||||
|
||||
end.applyMatrix4( matrix );
|
||||
|
||||
start.needsUpdate = true;
|
||||
|
||||
}
|
||||
|
||||
if ( this.boundingBox !== null ) {
|
||||
|
||||
this.computeBoundingBox();
|
||||
|
||||
}
|
||||
|
||||
if ( this.boundingSphere !== null ) {
|
||||
|
||||
this.computeBoundingSphere();
|
||||
|
||||
}
|
||||
|
||||
return this;
|
||||
|
||||
},
|
||||
|
||||
setPositions: function ( array ) {
|
||||
|
||||
var lineSegments;
|
||||
|
||||
if ( array instanceof Float32Array ) {
|
||||
|
||||
lineSegments = array;
|
||||
|
||||
} else if ( Array.isArray( array ) ) {
|
||||
|
||||
lineSegments = new Float32Array( array );
|
||||
|
||||
}
|
||||
|
||||
var instanceBuffer = new InstancedInterleavedBuffer( lineSegments, 6, 1 ); // xyz, xyz
|
||||
|
||||
this.setAttribute( 'instanceStart', new InterleavedBufferAttribute( instanceBuffer, 3, 0 ) ); // xyz
|
||||
this.setAttribute( 'instanceEnd', new InterleavedBufferAttribute( instanceBuffer, 3, 3 ) ); // xyz
|
||||
|
||||
//
|
||||
|
||||
this.computeBoundingBox();
|
||||
this.computeBoundingSphere();
|
||||
|
||||
return this;
|
||||
|
||||
},
|
||||
|
||||
setColors: function ( array ) {
|
||||
|
||||
var colors;
|
||||
|
||||
if ( array instanceof Float32Array ) {
|
||||
|
||||
colors = array;
|
||||
|
||||
} else if ( Array.isArray( array ) ) {
|
||||
|
||||
colors = new Float32Array( array );
|
||||
|
||||
}
|
||||
|
||||
var instanceColorBuffer = new InstancedInterleavedBuffer( colors, 6, 1 ); // rgb, rgb
|
||||
|
||||
this.setAttribute( 'instanceColorStart', new InterleavedBufferAttribute( instanceColorBuffer, 3, 0 ) ); // rgb
|
||||
this.setAttribute( 'instanceColorEnd', new InterleavedBufferAttribute( instanceColorBuffer, 3, 3 ) ); // rgb
|
||||
|
||||
return this;
|
||||
|
||||
},
|
||||
|
||||
fromWireframeGeometry: function ( geometry ) {
|
||||
|
||||
this.setPositions( geometry.attributes.position.array );
|
||||
|
||||
return this;
|
||||
|
||||
},
|
||||
|
||||
fromEdgesGeometry: function ( geometry ) {
|
||||
|
||||
this.setPositions( geometry.attributes.position.array );
|
||||
|
||||
return this;
|
||||
|
||||
},
|
||||
|
||||
fromMesh: function ( mesh ) {
|
||||
|
||||
this.fromWireframeGeometry( new WireframeGeometry( mesh.geometry ) );
|
||||
|
||||
// set colors, maybe
|
||||
|
||||
return this;
|
||||
|
||||
},
|
||||
|
||||
fromLineSegments: function ( lineSegments ) {
|
||||
|
||||
var geometry = lineSegments.geometry;
|
||||
|
||||
if ( geometry.isGeometry ) {
|
||||
|
||||
this.setPositions( geometry.vertices );
|
||||
|
||||
} else if ( geometry.isBufferGeometry ) {
|
||||
|
||||
this.setPositions( geometry.attributes.position.array ); // assumes non-indexed
|
||||
|
||||
}
|
||||
|
||||
// set colors, maybe
|
||||
|
||||
return this;
|
||||
|
||||
},
|
||||
|
||||
computeBoundingBox: function () {
|
||||
|
||||
var box = new Box3();
|
||||
|
||||
return function computeBoundingBox() {
|
||||
|
||||
if ( this.boundingBox === null ) {
|
||||
|
||||
this.boundingBox = new Box3();
|
||||
|
||||
}
|
||||
|
||||
var start = this.attributes.instanceStart;
|
||||
var end = this.attributes.instanceEnd;
|
||||
|
||||
if ( start !== undefined && end !== undefined ) {
|
||||
|
||||
this.boundingBox.setFromBufferAttribute( start );
|
||||
|
||||
box.setFromBufferAttribute( end );
|
||||
|
||||
this.boundingBox.union( box );
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
}(),
|
||||
|
||||
computeBoundingSphere: function () {
|
||||
|
||||
var vector = new Vector3();
|
||||
|
||||
return function computeBoundingSphere() {
|
||||
|
||||
if ( this.boundingSphere === null ) {
|
||||
|
||||
this.boundingSphere = new Sphere();
|
||||
|
||||
}
|
||||
|
||||
if ( this.boundingBox === null ) {
|
||||
|
||||
this.computeBoundingBox();
|
||||
|
||||
}
|
||||
|
||||
var start = this.attributes.instanceStart;
|
||||
var end = this.attributes.instanceEnd;
|
||||
|
||||
if ( start !== undefined && end !== undefined ) {
|
||||
|
||||
var center = this.boundingSphere.center;
|
||||
|
||||
this.boundingBox.getCenter( center );
|
||||
|
||||
var maxRadiusSq = 0;
|
||||
|
||||
for ( var i = 0, il = start.count; i < il; i ++ ) {
|
||||
|
||||
vector.fromBufferAttribute( start, i );
|
||||
maxRadiusSq = Math.max( maxRadiusSq, center.distanceToSquared( vector ) );
|
||||
|
||||
vector.fromBufferAttribute( end, i );
|
||||
maxRadiusSq = Math.max( maxRadiusSq, center.distanceToSquared( vector ) );
|
||||
|
||||
}
|
||||
|
||||
this.boundingSphere.radius = Math.sqrt( maxRadiusSq );
|
||||
|
||||
if ( isNaN( this.boundingSphere.radius ) ) {
|
||||
|
||||
console.error( 'THREE.LineSegmentsGeometry.computeBoundingSphere(): Computed radius is NaN. The instanced position data is likely to have NaN values.', this );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
}(),
|
||||
|
||||
toJSON: function () {
|
||||
|
||||
},
|
||||
|
||||
applyMatrix: function ( matrix ) {
|
||||
|
||||
console.warn( 'THREE.LineSegmentsGeometry: applyMatrix() has been renamed to applyMatrix4().' );
|
||||
|
||||
return this.applyMatrix4( matrix );
|
||||
|
||||
}
|
||||
|
||||
} );
|
||||
|
||||
export { LineSegmentsGeometry };
|
Loading…
Reference in New Issue
Block a user