remove console log
This commit is contained in:
@@ -84,14 +84,12 @@ export class MCDioramaElement extends HTMLElement {
|
|||||||
if (this.hasAttribute('phi')) diorama.phi = parseFloat(this.getAttribute('phi'));
|
if (this.hasAttribute('phi')) diorama.phi = parseFloat(this.getAttribute('phi'));
|
||||||
|
|
||||||
if (this.hasAttribute('target')) {
|
if (this.hasAttribute('target')) {
|
||||||
console.log('target:', this.getAttribute('target'));
|
|
||||||
const [x, y, z] = this.getAttribute('target').trim().split(/\s+/);
|
const [x, y, z] = this.getAttribute('target').trim().split(/\s+/);
|
||||||
diorama.target = [
|
diorama.target = [
|
||||||
parseFloat(x),
|
parseFloat(x),
|
||||||
parseFloat(y),
|
parseFloat(y),
|
||||||
parseFloat(z),
|
parseFloat(z),
|
||||||
];
|
];
|
||||||
console.log('target:', diorama.target);
|
|
||||||
} else {
|
} else {
|
||||||
diorama.centerView();
|
diorama.centerView();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user