@operato/board 0.4.2 → 1.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,9 @@
1
1
  import '@material/mwc-fab'
2
2
  import '@material/mwc-icon'
3
3
 
4
- import { css, html, LitElement, PropertyValues } from 'lit'
4
+ import { LitElement, PropertyValues, css, html } from 'lit'
5
+ import { SCENE_MODE, create } from '@hatiolab/things-scene'
5
6
  import { customElement, property, query, state } from 'lit/decorators.js'
6
-
7
- import { create, SCENE_MODE } from '@hatiolab/things-scene'
8
7
  import { isIOS, togglefullscreen } from '@operato/utils'
9
8
 
10
9
  @customElement('ox-board-viewer')
@@ -494,7 +493,7 @@ export class BoardViewer extends LitElement {
494
493
  const x = (mql: MediaQueryListEvent) => {
495
494
  if (mql.matches) {
496
495
  if (!viewTarget) {
497
- viewTarget = this.shadowRoot!.getElementById('target')
496
+ viewTarget = (this.renderRoot as ShadowRoot)!.getElementById('target')
498
497
  this.renderRoot.replaceChild(printTarget!, viewTarget!)
499
498
  }
500
499
  } else {