documentation of getCurrentUser, getCurrentRoom and on working with group layer

This commit is contained in:
GRL 2021-05-26 10:41:33 +02:00
parent b4fa38bf8c
commit c8e2416e08
2 changed files with 44 additions and 71 deletions

View file

@ -201,6 +201,7 @@ window.WA = {
} as ChatEvent
}, '*');
},
showLayer(layer: string) : void {
window.parent.postMessage({
'type' : 'showLayer',
@ -209,6 +210,7 @@ window.WA = {
} as LayerEvent
}, '*');
},
hideLayer(layer: string) : void {
window.parent.postMessage({
'type' : 'hideLayer',
@ -217,6 +219,7 @@ window.WA = {
} as LayerEvent
}, '*');
},
setProperty(layerName: string, propertyName: string, propertyValue: string | number | boolean | undefined): void {
window.parent.postMessage({
'type' : 'setProperty',
@ -227,6 +230,7 @@ window.WA = {
} as SetPropertyEvent
}, '*');
},
disablePlayerControls(): void {
window.parent.postMessage({ 'type': 'disablePlayerControls' }, '*');
},