This commit is contained in:
ann 2023-03-03 23:27:02 +08:00
parent fe9baeb6e4
commit f6f5db632b
4 changed files with 500 additions and 24198 deletions

2
.gitignore vendored
View File

@ -4,6 +4,8 @@ node_modules
*.zip
*.rar
package-lock.json
# local env files
.env.local
.env.*.local

24646
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -149,7 +149,7 @@ export default {
},
created() {
this.getTend()
this.getAccrueCenter()
// this.getAccrueCenter()
this.getTrainJob()
},
mounted() {
@ -215,16 +215,16 @@ export default {
})
},
getTaskTotal() {
getAccrueCenter().then((res) => {
if (res.perCenterComputerPowers) {
const data = res.accOtJobInfo
this.accrueData = {
config1: data.accCardRunSec,
config2: data.accOtJobNum,
config3: data.accRunSec
}
}
})
// getAccrueCenter().then((res) => {
// if (res.perCenterComputerPowers) {
// const data = res.accOtJobInfo
// this.accrueData = {
// config1: data.accCardRunSec,
// config2: data.accOtJobNum,
// config3: data.accRunSec
// }
// }
// })
},
getAccrueCenter() {
getAccrueCenter().then((res) => {

View File

@ -25,7 +25,8 @@ export default {
mouse: undefined,
aniId: '',
saaniId: '',
groupDots: []
groupDots: [],
dynamicMaterial: undefined
}
},
mounted() {
@ -191,17 +192,24 @@ export default {
texture.wrapS = Three.RepeatWrapping
texture.wrapT = Three.RepeatWrapping
const material = new MeshLineMaterial({
this.dynamicMaterial = new MeshLineMaterial({
map: texture, //
useMap: true, // 使
lineWidth: 2, // 线
sizeAttenuation: false, //
transparent: true //
useMap: 0, // 使
color: color,
lineWidth: 0.5, // 线
sizeAttenuation: 1, //
transparent: true, //
dashOffset: 0,
dashArray: 0.5,
dashRatio: 0.1,
repeat: new Three.Vector2(2, 1)
})
this.flyLineAnimate()
// const { width, height } = getCanvasSize()
// material.uniforms.resolution.value.set(width, height)
const mesh = new Three.Mesh(meshLine.geometry, material)
const mesh = new Three.Mesh(meshLine.geometry, this.dynamicMaterial)
// const tween = new TWEEN.Tween(material.uniforms.offset.value) // 线
// .to({ x: material.uniforms.offset.value.x - 1 }, duration)
@ -211,6 +219,12 @@ export default {
return mesh
},
flyLineAnimate() {
requestAnimationFrame(this.flyLineAnimate)
if (this.dynamicMaterial) {
this.dynamicMaterial.uniforms.dashOffset.value -= 0.005
}
},
zoomAnimate() {
this.render()
// this.controls.update()