@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.
- package/CHANGELOG.md +25 -0
- package/dist/src/ox-board-viewer.js +3 -3
- package/dist/src/ox-board-viewer.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -11
- package/src/ox-board-viewer.ts +3 -4
- package/yarn-error.log +0 -16185
package/src/ox-board-viewer.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import '@material/mwc-fab'
|
|
2
2
|
import '@material/mwc-icon'
|
|
3
3
|
|
|
4
|
-
import {
|
|
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.
|
|
496
|
+
viewTarget = (this.renderRoot as ShadowRoot)!.getElementById('target')
|
|
498
497
|
this.renderRoot.replaceChild(printTarget!, viewTarget!)
|
|
499
498
|
}
|
|
500
499
|
} else {
|