We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// vue文件使用 onLoaded1() { this.viewer1 = this.$refs.viewer1.GetViewer(); const layers1 = this.viewer1.GetLayers(); layers1.forEach(lyr => Vue.set(lyr, 'isVisible', true)); this.layers1 = layers1; this.canvas1 = this.viewer1.GetCanvas(); this.scene1 = this.viewer1.GetScene(); this.camera1 = this.viewer1.GetCamera(); this.renderer1 = this.viewer1.GetRenderer(); this.$nextTick(() => { this.controls1 = this.viewer1.GetControls(); this.controls1.addEventListener('change', () => { this.camera.position.copy(this.camera1.position); this.camera.zoom = this.camera1.zoom; this.camera.updateProjectionMatrix(); this.viewer.Render(); }); }); },
//DxfViewer.js中添加 GetControls(){ return this.controls }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
// vue文件使用
onLoaded1() {
this.viewer1 = this.$refs.viewer1.GetViewer();
const layers1 = this.viewer1.GetLayers();
layers1.forEach(lyr => Vue.set(lyr, 'isVisible', true));
this.layers1 = layers1;
this.canvas1 = this.viewer1.GetCanvas();
this.scene1 = this.viewer1.GetScene();
this.camera1 = this.viewer1.GetCamera();
this.renderer1 = this.viewer1.GetRenderer();
this.$nextTick(() => {
this.controls1 = this.viewer1.GetControls();
this.controls1.addEventListener('change', () => {
this.camera.position.copy(this.camera1.position);
this.camera.zoom = this.camera1.zoom;
this.camera.updateProjectionMatrix();
this.viewer.Render();
});
});
},
//DxfViewer.js中添加
GetControls(){
return this.controls
}
The text was updated successfully, but these errors were encountered: