@operato/board 1.1.38 → 1.1.39
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@operato/board",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.39",
|
|
4
4
|
"description": "Webcomponent for board following open-wc recommendations",
|
|
5
5
|
"author": "heartyoh",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"devDependencies": {
|
|
111
111
|
"@custom-elements-manifest/analyzer": "^0.4.17",
|
|
112
112
|
"@hatiolab/prettier-config": "^1.0.0",
|
|
113
|
-
"@hatiolab/things-scene": "^3.0
|
|
113
|
+
"@hatiolab/things-scene": "^3.2.0",
|
|
114
114
|
"@material/mwc-fab": "^0.27.0",
|
|
115
115
|
"@material/mwc-icon": "^0.27.0",
|
|
116
116
|
"@open-wc/eslint-config": "^4.3.0",
|
|
@@ -146,5 +146,5 @@
|
|
|
146
146
|
"prettier --write"
|
|
147
147
|
]
|
|
148
148
|
},
|
|
149
|
-
"gitHead": "
|
|
149
|
+
"gitHead": "f482cfb98b0bb24ff637196cedc2a632ecffacb2"
|
|
150
150
|
}
|
package/src/ox-board-viewer.ts
CHANGED
|
@@ -92,6 +92,7 @@ export class BoardViewer extends LitElement {
|
|
|
92
92
|
@property({ type: Object }) board: any = {}
|
|
93
93
|
@property({ type: Object }) provider: ReferenceProvider | null = null
|
|
94
94
|
@property({ type: Object }) data: any
|
|
95
|
+
@property({ type: Object }) values: any
|
|
95
96
|
|
|
96
97
|
@property({ type: Boolean, reflect: true, attribute: 'hide-fullscreen' }) hideFullscreen = false
|
|
97
98
|
@property({ type: Boolean, reflect: true, attribute: 'hide-navigation' }) hideNavigation = false
|
|
@@ -203,6 +204,10 @@ export class BoardViewer extends LitElement {
|
|
|
203
204
|
if (changes.has('data') && this._scene && this.data) {
|
|
204
205
|
this._scene.data = this.data
|
|
205
206
|
}
|
|
207
|
+
|
|
208
|
+
if (changes.has('values') && this._scene && this.values) {
|
|
209
|
+
this._scene.values = this.values
|
|
210
|
+
}
|
|
206
211
|
}
|
|
207
212
|
|
|
208
213
|
async initSceneAsync() {
|
|
@@ -486,6 +491,10 @@ export class BoardViewer extends LitElement {
|
|
|
486
491
|
return this._scene?.data
|
|
487
492
|
}
|
|
488
493
|
|
|
494
|
+
getSceneValues() {
|
|
495
|
+
return this._scene?.values
|
|
496
|
+
}
|
|
497
|
+
|
|
489
498
|
async getSceneImageData(base64 = false) {
|
|
490
499
|
if (!this._scene) {
|
|
491
500
|
return
|