@operato/board 1.4.67 → 1.4.68
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 +9 -0
- package/dist/src/ox-board-player.d.ts +1 -0
- package/dist/src/ox-board-player.js +7 -1
- package/dist/src/ox-board-player.js.map +1 -1
- package/dist/src/player/ox-board-wrapper.js +6 -0
- package/dist/src/player/ox-board-wrapper.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/ox-board-player.ts +5 -1
- package/src/player/ox-board-wrapper.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@operato/board",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.68",
|
|
4
4
|
"description": "Webcomponent for board following open-wc recommendations",
|
|
5
5
|
"author": "heartyoh",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -148,5 +148,5 @@
|
|
|
148
148
|
"prettier --write"
|
|
149
149
|
]
|
|
150
150
|
},
|
|
151
|
-
"gitHead": "
|
|
151
|
+
"gitHead": "95fda8794a2f0c7442e4f3123fef8ff39f83db5e"
|
|
152
152
|
}
|
package/src/ox-board-player.ts
CHANGED
|
@@ -25,6 +25,7 @@ export class BoardPlayer extends LitElement {
|
|
|
25
25
|
@property({ type: Boolean }) started = false
|
|
26
26
|
@property({ type: Boolean }) playing = false
|
|
27
27
|
@property({ type: Object }) provider: any
|
|
28
|
+
@property({ type: Object }) data: any
|
|
28
29
|
|
|
29
30
|
@state() _controlAnimation?: Animation
|
|
30
31
|
@state() _transferTimer?: any
|
|
@@ -43,7 +44,10 @@ export class BoardPlayer extends LitElement {
|
|
|
43
44
|
<ox-board-player-carousel axis="y" .rows=${this.rows} .columns=${this.columns} player>
|
|
44
45
|
${this.boards.map(
|
|
45
46
|
item =>
|
|
46
|
-
html`
|
|
47
|
+
html`
|
|
48
|
+
<ox-board-wrapper page .sceneId=${item.id} .data=${this.data} .provider=${this.provider}>
|
|
49
|
+
</ox-board-wrapper>
|
|
50
|
+
`
|
|
47
51
|
)}
|
|
48
52
|
</ox-board-player-carousel>
|
|
49
53
|
`
|
|
@@ -25,6 +25,7 @@ class BoardWrapper extends LitElement {
|
|
|
25
25
|
|
|
26
26
|
@property({ type: String }) sceneId!: string
|
|
27
27
|
@property({ type: Object }) provider!: any
|
|
28
|
+
@property({ type: Object }) data: any
|
|
28
29
|
|
|
29
30
|
@state() _scene: any
|
|
30
31
|
|
|
@@ -78,6 +79,9 @@ class BoardWrapper extends LitElement {
|
|
|
78
79
|
(scene: any) => {
|
|
79
80
|
this._scene = scene
|
|
80
81
|
this._scene.target = this._targetEl
|
|
82
|
+
if (this.data) {
|
|
83
|
+
this._scene.data = this.data
|
|
84
|
+
}
|
|
81
85
|
|
|
82
86
|
/* 이 컴포넌트의 폭이 값을 가지고 있으면 - 화면상에 자리를 잡고 보여지고 있음을 의미한다.
|
|
83
87
|
* 이 때는 정상적으로 그려주고,
|