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('target')) {
|
||||
console.log('target:', this.getAttribute('target'));
|
||||
const [x, y, z] = this.getAttribute('target').trim().split(/\s+/);
|
||||
diorama.target = [
|
||||
parseFloat(x),
|
||||
parseFloat(y),
|
||||
parseFloat(z),
|
||||
];
|
||||
console.log('target:', diorama.target);
|
||||
} else {
|
||||
diorama.centerView();
|
||||
}
|
||||
@@ -134,4 +132,4 @@ export class MCDioramaElement extends HTMLElement {
|
||||
// Register Elements
|
||||
customElements.define('mc-world', MCWorldElement);
|
||||
customElements.define('mc-frame', MCFrameElement);
|
||||
customElements.define('mc-diorama', MCDioramaElement);
|
||||
customElements.define('mc-diorama', MCDioramaElement);
|
||||
|
||||
Reference in New Issue
Block a user