@workadventure/iframe-api-typings 1.21.1 → 1.22.0
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 +1 -1
- package/play/src/front/Api/Iframe/Player/ProximityMeeting.d.ts +3 -3
- package/play/src/front/Api/Iframe/Ui/UIWebsite.d.ts +3 -3
- package/play/src/front/Api/Iframe/area.d.ts +5 -5
- package/play/src/front/Api/Iframe/camera.d.ts +3 -3
- package/play/src/front/Api/Iframe/chat.d.ts +3 -3
- package/play/src/front/Api/Iframe/controls.d.ts +22 -22
- package/play/src/front/Api/Iframe/mapEditor.d.ts +2 -2
- package/play/src/front/Api/Iframe/nav.d.ts +5 -5
- package/play/src/front/Api/Iframe/player.d.ts +14 -14
- package/play/src/front/Api/Iframe/players.d.ts +7 -7
- package/play/src/front/Api/Iframe/room.d.ts +10 -10
- package/play/src/front/Api/Iframe/sound.d.ts +1 -1
- package/play/src/front/Api/Iframe/ui.d.ts +4 -4
- package/play/src/front/Api/Iframe/website.d.ts +3 -3
- package/play/src/iframe_api.d.ts +3 -3
package/package.json
CHANGED
|
@@ -99,21 +99,21 @@ export declare class WorkadventureProximityMeetingCommands extends IframeApiCont
|
|
|
99
99
|
})[];
|
|
100
100
|
/**
|
|
101
101
|
* Detecting when the user enter on a meeting.
|
|
102
|
-
* {@link https://workadventu.re/map-building/api-player.md#detecting-when-the-user-entersleaves-a-meeting | Website documentation}
|
|
102
|
+
* {@link https://docs.workadventu.re/map-building/api-player.md#detecting-when-the-user-entersleaves-a-meeting | Website documentation}
|
|
103
103
|
*
|
|
104
104
|
* @returns {Subject<RemotePlayer[]>} Observable who return the joined users
|
|
105
105
|
*/
|
|
106
106
|
onJoin(): Subject<RemotePlayer[]>;
|
|
107
107
|
/**
|
|
108
108
|
* Detecting when a participant joined on the current meeting.
|
|
109
|
-
* {@link https://workadventu.re/map-building/api-player.md#detecting-when-a-participant-entersleaves-the-current-meeting | Website documentation}
|
|
109
|
+
* {@link https://docs.workadventu.re/map-building/api-player.md#detecting-when-a-participant-entersleaves-the-current-meeting | Website documentation}
|
|
110
110
|
*
|
|
111
111
|
* @returns {Subject<RemotePlayer>} Observable who return the joined user
|
|
112
112
|
*/
|
|
113
113
|
onParticipantJoin(): Subject<RemotePlayer>;
|
|
114
114
|
/**
|
|
115
115
|
* Detecting when a participant left on the current meeting.
|
|
116
|
-
* {@link https://workadventu.re/map-building/api-player.md#detecting-when-a-participant-entersleaves-the-current-meeting | Website documentation}
|
|
116
|
+
* {@link https://docs.workadventu.re/map-building/api-player.md#detecting-when-a-participant-entersleaves-the-current-meeting | Website documentation}
|
|
117
117
|
*
|
|
118
118
|
* @returns {Subject<RemotePlayer>} Observable who return the left user
|
|
119
119
|
*/
|
|
@@ -28,7 +28,7 @@ export declare class UIWebsiteCommands extends IframeApiContribution<UIWebsiteCo
|
|
|
28
28
|
callbacks: never[];
|
|
29
29
|
/**
|
|
30
30
|
* Open an iFrame that is fixed in the viewport. Use this for advanced popups, additional buttons in the UI, HUD, etc... Returns a promise of a UIWebsite instance.
|
|
31
|
-
* {@link https://workadventu.re/map-building/api-ui.md#display-a-ui-website | Website documentation}
|
|
31
|
+
* {@link https://docs.workadventu.re/map-building/api-ui.md#display-a-ui-website | Website documentation}
|
|
32
32
|
*
|
|
33
33
|
* @param {CreateUIWebsiteEvent} createUIWebsite The details of the UIWebsite to create
|
|
34
34
|
* @returns {Promise<UIWebsite>} Promise to return a UIWebsite
|
|
@@ -36,14 +36,14 @@ export declare class UIWebsiteCommands extends IframeApiContribution<UIWebsiteCo
|
|
|
36
36
|
open(createUIWebsite: CreateUIWebsiteEvent): Promise<UIWebsite>;
|
|
37
37
|
/**
|
|
38
38
|
* Returns all UI websites (iframes positionned on the viewport)
|
|
39
|
-
* {@link https://workadventu.re/map-building/api-ui.md#get-all-ui-websites | Website documentation}
|
|
39
|
+
* {@link https://docs.workadventu.re/map-building/api-ui.md#get-all-ui-websites | Website documentation}
|
|
40
40
|
*
|
|
41
41
|
* @returns {Promise<UIWebsite[]>} Promise to return all UI websites
|
|
42
42
|
*/
|
|
43
43
|
getAll(): Promise<UIWebsite[]>;
|
|
44
44
|
/**
|
|
45
45
|
* Returns one UI website (iframe positionned on the viewport) by ID.
|
|
46
|
-
* {@link https://workadventu.re/map-building/api-ui.md#get-all-ui-websites | Website documentation}
|
|
46
|
+
* {@link https://docs.workadventu.re/map-building/api-ui.md#get-all-ui-websites | Website documentation}
|
|
47
47
|
* @param {string} id The id of the UIWebsite
|
|
48
48
|
* @returns {Promise<UIWebsite | undefined>} Promise to return UI website
|
|
49
49
|
*/
|
|
@@ -16,7 +16,7 @@ export declare class WorkadventureAreaCommands extends IframeApiContribution<Wor
|
|
|
16
16
|
})[];
|
|
17
17
|
/**
|
|
18
18
|
* Create a new Area object (currently limited to rectangular shapes).
|
|
19
|
-
* {@link https://workadventu.re/map-building/api-room.md#create-area | Website documentation}
|
|
19
|
+
* {@link https://docs.workadventu.re/map-building/api-room.md#create-area | Website documentation}
|
|
20
20
|
*
|
|
21
21
|
* @param {{name: string, x: number, y: number, width: number, height: number}} createAreaEvent Define the name, position and size of the area
|
|
22
22
|
* @returns {Area} Area object
|
|
@@ -24,7 +24,7 @@ export declare class WorkadventureAreaCommands extends IframeApiContribution<Wor
|
|
|
24
24
|
create(createAreaEvent: CreateDynamicAreaEvent): Area;
|
|
25
25
|
/**
|
|
26
26
|
* Get an existing Area object.
|
|
27
|
-
* {@link https://workadventu.re/map-building/api-room.md#get-an-area | Website documentation}
|
|
27
|
+
* {@link https://docs.workadventu.re/map-building/api-room.md#get-an-area | Website documentation}
|
|
28
28
|
*
|
|
29
29
|
* @param {string} name Name of the area searched
|
|
30
30
|
* @returns {Area} Area found
|
|
@@ -32,7 +32,7 @@ export declare class WorkadventureAreaCommands extends IframeApiContribution<Wor
|
|
|
32
32
|
get(name: string): Promise<Area>;
|
|
33
33
|
/**
|
|
34
34
|
* Delete Area by it's name.
|
|
35
|
-
* {@link https://workadventu.re/map-building/api-room.md#delete-area | Website documentation}
|
|
35
|
+
* {@link https://docs.workadventu.re/map-building/api-room.md#delete-area | Website documentation}
|
|
36
36
|
*
|
|
37
37
|
* @param {string} name Area name
|
|
38
38
|
* @returns {Promise<void>} Promise resolved when the removing is finished
|
|
@@ -40,7 +40,7 @@ export declare class WorkadventureAreaCommands extends IframeApiContribution<Wor
|
|
|
40
40
|
delete(name: string): Promise<void>;
|
|
41
41
|
/**
|
|
42
42
|
* Listens to the position of the current user. The event is triggered when the user enters a given area.
|
|
43
|
-
* {@link https://workadventu.re/map-building/api-room.md#detecting-when-the-user-entersleaves-an-area | Website documentation}
|
|
43
|
+
* {@link https://docs.workadventu.re/map-building/api-room.md#detecting-when-the-user-entersleaves-an-area | Website documentation}
|
|
44
44
|
*
|
|
45
45
|
* @param {string} areaName Area name
|
|
46
46
|
* @returns {Subject<void>} An observable fired when someone enters the area
|
|
@@ -48,7 +48,7 @@ export declare class WorkadventureAreaCommands extends IframeApiContribution<Wor
|
|
|
48
48
|
onEnter(areaName: string): Observable<void>;
|
|
49
49
|
/**
|
|
50
50
|
* Listens to the position of the current user. The event is triggered when the user leaves a given area.
|
|
51
|
-
* {@link https://workadventu.re/map-building/api-room.md#detecting-when-the-user-entersleaves-an-area | Website documentation}
|
|
51
|
+
* {@link https://docs.workadventu.re/map-building/api-room.md#detecting-when-the-user-entersleaves-an-area | Website documentation}
|
|
52
52
|
*
|
|
53
53
|
* @param {string} areaName Area name
|
|
54
54
|
* @returns {Subject<void>} An observable fired when someone leaves the area
|
|
@@ -14,7 +14,7 @@ export declare class WorkAdventureCameraCommands extends IframeApiContribution<W
|
|
|
14
14
|
}[];
|
|
15
15
|
/**
|
|
16
16
|
* Set camera to follow the player.
|
|
17
|
-
* {@link https://workadventu.re/map-building/api-camera.md#start-following-player | Website documentation}
|
|
17
|
+
* {@link https://docs.workadventu.re/map-building/api-camera.md#start-following-player | Website documentation}
|
|
18
18
|
*
|
|
19
19
|
* @param smooth Smooth transition
|
|
20
20
|
*/
|
|
@@ -23,7 +23,7 @@ export declare class WorkAdventureCameraCommands extends IframeApiContribution<W
|
|
|
23
23
|
* Set camera to look at given spot. Setting width and height will adjust zoom.
|
|
24
24
|
* Set lock to true to lock camera in this position.
|
|
25
25
|
* Set smooth to true for smooth transition.
|
|
26
|
-
* {@link https://workadventu.re/map-building/api-camera.md#set-spot-for-camera-to-look-at | Website documentation}
|
|
26
|
+
* {@link https://docs.workadventu.re/map-building/api-camera.md#set-spot-for-camera-to-look-at | Website documentation}
|
|
27
27
|
*
|
|
28
28
|
* @param {number} x Horizontal position
|
|
29
29
|
* @param {number} y Vertical position
|
|
@@ -36,7 +36,7 @@ export declare class WorkAdventureCameraCommands extends IframeApiContribution<W
|
|
|
36
36
|
/**
|
|
37
37
|
* Listens to updates of the camera viewport.
|
|
38
38
|
* It will trigger for every update of the camera's properties (position or scale for instance).
|
|
39
|
-
* {@link https://workadventu.re/map-building/api-camera.md#listen-to-camera-updates | Website documentation}
|
|
39
|
+
* {@link https://docs.workadventu.re/map-building/api-camera.md#listen-to-camera-updates | Website documentation}
|
|
40
40
|
*
|
|
41
41
|
* @returns {Subject<WasCameraUpdatedEvent>} An observable firing event when the camera is updated
|
|
42
42
|
*/
|
|
@@ -18,12 +18,12 @@ export declare class WorkadventureChatCommands<PublicState extends {
|
|
|
18
18
|
}[];
|
|
19
19
|
/**
|
|
20
20
|
* Open instantly the chat window.
|
|
21
|
-
* {@link https://workadventu.re/map-building/api-chat.md#open-the-chat-window | Website documentation}
|
|
21
|
+
* {@link https://docs.workadventu.re/map-building/api-chat.md#open-the-chat-window | Website documentation}
|
|
22
22
|
*/
|
|
23
23
|
open(): void;
|
|
24
24
|
/**
|
|
25
25
|
* Close instantly the chat window.
|
|
26
|
-
* {@link https://workadventu.re/map-building/api-chat.md#close-the-chat-window | Website documentation}
|
|
26
|
+
* {@link https://docs.workadventu.re/map-building/api-chat.md#close-the-chat-window | Website documentation}
|
|
27
27
|
*/
|
|
28
28
|
close(): void;
|
|
29
29
|
/**
|
|
@@ -54,7 +54,7 @@ export declare class WorkadventureChatCommands<PublicState extends {
|
|
|
54
54
|
stopTyping(options: SendChatMessageOptions): void;
|
|
55
55
|
/**
|
|
56
56
|
* Listens to messages typed in the chat history.
|
|
57
|
-
* {@link https://workadventu.re/map-building/api-chat.md#listening-to-messages-from-the-chat | Website documentation}
|
|
57
|
+
* {@link https://docs.workadventu.re/map-building/api-chat.md#listening-to-messages-from-the-chat | Website documentation}
|
|
58
58
|
*
|
|
59
59
|
* @param {function(message: string, event: { authorId: number|undefined, user: RemotePlayerInterface|undefined }): void} callback Function that will be called when a message is received. It contains the message typed by the user
|
|
60
60
|
* @param {OnChatMessageOptions} options Options to decide if we listen only to messages from the local user (default) or from all users in the bubble.
|
|
@@ -3,112 +3,112 @@ export declare class WorkadventureControlsCommands extends IframeApiContribution
|
|
|
3
3
|
callbacks: never[];
|
|
4
4
|
/**
|
|
5
5
|
* Disable player controls.
|
|
6
|
-
* {@link https://workadventu.re/map-building/api-controls.md#disabling--restoring-controls | Website documentation}
|
|
6
|
+
* {@link https://docs.workadventu.re/map-building/api-controls.md#disabling--restoring-controls | Website documentation}
|
|
7
7
|
*/
|
|
8
8
|
disablePlayerControls(): void;
|
|
9
9
|
/**
|
|
10
10
|
* Restore player controls.
|
|
11
|
-
* {@link https://workadventu.re/map-building/api-controls.md#disabling--restoring-controls | Website documentation}
|
|
11
|
+
* {@link https://docs.workadventu.re/map-building/api-controls.md#disabling--restoring-controls | Website documentation}
|
|
12
12
|
*/
|
|
13
13
|
restorePlayerControls(): void;
|
|
14
14
|
/**
|
|
15
15
|
* Turn off player microphone.
|
|
16
|
-
* {@link https://workadventu.re/map-building/api-controls.md#turn-off-webcam-or-microphone | Website documentation}
|
|
16
|
+
* {@link https://docs.workadventu.re/map-building/api-controls.md#turn-off-webcam-or-microphone | Website documentation}
|
|
17
17
|
*/
|
|
18
18
|
turnOffMicrophone(): void;
|
|
19
19
|
/**
|
|
20
20
|
* Turn off player webcam.
|
|
21
|
-
* {@link https://workadventu.re/map-building/api-controls.md#turn-off-webcam-or-microphone | Website documentation}
|
|
21
|
+
* {@link https://docs.workadventu.re/map-building/api-controls.md#turn-off-webcam-or-microphone | Website documentation}
|
|
22
22
|
*/
|
|
23
23
|
turnOffWebcam(): void;
|
|
24
24
|
/**
|
|
25
25
|
* Disable player microphone.
|
|
26
|
-
* {@link https://workadventu.re/map-building/api-controls.md#disabling--restoring-webcam-or-microphone | Website documentation}
|
|
26
|
+
* {@link https://docs.workadventu.re/map-building/api-controls.md#disabling--restoring-webcam-or-microphone | Website documentation}
|
|
27
27
|
*/
|
|
28
28
|
disableMicrophone(): void;
|
|
29
29
|
/**
|
|
30
30
|
* Restore player microphone.
|
|
31
|
-
* {@link https://workadventu.re/map-building/api-controls.md#disabling--restoring-webcam-or-microphone | Website documentation}
|
|
31
|
+
* {@link https://docs.workadventu.re/map-building/api-controls.md#disabling--restoring-webcam-or-microphone | Website documentation}
|
|
32
32
|
*/
|
|
33
33
|
restoreMicrophone(): void;
|
|
34
34
|
/**
|
|
35
35
|
* Disable player webcam.
|
|
36
|
-
* {@link https://workadventu.re/map-building/api-controls.md#disabling--restoring-webcam-or-microphone | Website documentation}
|
|
36
|
+
* {@link https://docs.workadventu.re/map-building/api-controls.md#disabling--restoring-webcam-or-microphone | Website documentation}
|
|
37
37
|
*/
|
|
38
38
|
disableWebcam(): void;
|
|
39
39
|
/**
|
|
40
40
|
* Disable player webcam.
|
|
41
|
-
* {@link https://workadventu.re/map-building/api-controls.md#disabling--restoring-webcam-or-microphone | Website documentation}
|
|
41
|
+
* {@link https://docs.workadventu.re/map-building/api-controls.md#disabling--restoring-webcam-or-microphone | Website documentation}
|
|
42
42
|
*/
|
|
43
43
|
restoreWebcam(): void;
|
|
44
44
|
/**
|
|
45
45
|
* Disable proximity meetings.
|
|
46
|
-
* {@link https://workadventu.re/map-building/api-controls.md#disabling--restoring-proximity-meeting | Website documentation}
|
|
46
|
+
* {@link https://docs.workadventu.re/map-building/api-controls.md#disabling--restoring-proximity-meeting | Website documentation}
|
|
47
47
|
*/
|
|
48
48
|
disablePlayerProximityMeeting(): void;
|
|
49
49
|
/**
|
|
50
50
|
* Restore proximity meettings.
|
|
51
|
-
* {@link https://workadventu.re/map-building/api-controls.md#disabling--restoring-proximity-meeting | Website documentation}
|
|
51
|
+
* {@link https://docs.workadventu.re/map-building/api-controls.md#disabling--restoring-proximity-meeting | Website documentation}
|
|
52
52
|
*/
|
|
53
53
|
restorePlayerProximityMeeting(): void;
|
|
54
54
|
/**
|
|
55
55
|
* Disable map editor mode.
|
|
56
|
-
* {@link https://workadventu.re/map-building/api-controls.md#disabling--restoring-map-editor | Website documentation}
|
|
56
|
+
* {@link https://docs.workadventu.re/map-building/api-controls.md#disabling--restoring-map-editor | Website documentation}
|
|
57
57
|
*/
|
|
58
58
|
disableMapEditor(): void;
|
|
59
59
|
/**
|
|
60
60
|
* Restore map editor mode.
|
|
61
|
-
* {@link https://workadventu.re/map-building/api-controls.md#disabling--restoring-map-editor | Website documentation}
|
|
61
|
+
* {@link https://docs.workadventu.re/map-building/api-controls.md#disabling--restoring-map-editor | Website documentation}
|
|
62
62
|
*/
|
|
63
63
|
restoreMapEditor(): void;
|
|
64
64
|
/**
|
|
65
65
|
* Disable screen sharing.
|
|
66
|
-
* {@link https://workadventu.re/map-building/api-controls.md#disabling--restoring-screen-sharing | Website documentation}
|
|
66
|
+
* {@link https://docs.workadventu.re/map-building/api-controls.md#disabling--restoring-screen-sharing | Website documentation}
|
|
67
67
|
*/
|
|
68
68
|
disableScreenSharing(): void;
|
|
69
69
|
/**
|
|
70
70
|
* Restore screen sharing.
|
|
71
|
-
* {@link https://workadventu.re/map-building/api-controls.md#disabling--restoring-screen-sharing | Website documentation}
|
|
71
|
+
* {@link https://docs.workadventu.re/map-building/api-controls.md#disabling--restoring-screen-sharing | Website documentation}
|
|
72
72
|
*/
|
|
73
73
|
restoreScreenSharing(): void;
|
|
74
74
|
/**
|
|
75
75
|
* Disable wheel zoom.
|
|
76
|
-
* {@link https://workadventu.re/map-building/api-controls.md#disabling--restoring-wheel-zoom | Website documentation}
|
|
76
|
+
* {@link https://docs.workadventu.re/map-building/api-controls.md#disabling--restoring-wheel-zoom | Website documentation}
|
|
77
77
|
*/
|
|
78
78
|
disableWheelZoom(): void;
|
|
79
79
|
/**
|
|
80
80
|
* Restore wheel zoom.
|
|
81
|
-
* {@link https://workadventu.re/map-building/api-controls.md#disabling--restoring-wheel-zoom | Website documentation}
|
|
81
|
+
* {@link https://docs.workadventu.re/map-building/api-controls.md#disabling--restoring-wheel-zoom | Website documentation}
|
|
82
82
|
*/
|
|
83
83
|
restoreWheelZoom(): void;
|
|
84
84
|
/**
|
|
85
85
|
* Disable Right Click.
|
|
86
|
-
* {@link https://workadventu.re/map-building/api-controls.md#disabling--restoring-right-click | Website documentation}
|
|
86
|
+
* {@link https://docs.workadventu.re/map-building/api-controls.md#disabling--restoring-right-click | Website documentation}
|
|
87
87
|
*/
|
|
88
88
|
disableRightClick(): void;
|
|
89
89
|
/**
|
|
90
90
|
* Restore Right Click.
|
|
91
|
-
* {@link https://workadventu.re/map-building/api-controls.md#disabling--restoring-right-click | Website documentation}
|
|
91
|
+
* {@link https://docs.workadventu.re/map-building/api-controls.md#disabling--restoring-right-click | Website documentation}
|
|
92
92
|
*/
|
|
93
93
|
restoreRightClick(): void;
|
|
94
94
|
/**
|
|
95
95
|
* Disable invite button.
|
|
96
|
-
* {@link https://workadventu.re/map-building/api-controls.md#disabling--restoring-invite-button | Website documentation}
|
|
96
|
+
* {@link https://docs.workadventu.re/map-building/api-controls.md#disabling--restoring-invite-button | Website documentation}
|
|
97
97
|
*/
|
|
98
98
|
disableInviteButton(): void;
|
|
99
99
|
/**
|
|
100
100
|
* Restore invite button.
|
|
101
|
-
* {@link https://workadventu.re/map-building/api-controls.md#disabling--restoring-invite-user-button | Website documentation}
|
|
101
|
+
* {@link https://docs.workadventu.re/map-building/api-controls.md#disabling--restoring-invite-user-button | Website documentation}
|
|
102
102
|
*/
|
|
103
103
|
restoreInviteButton(): void;
|
|
104
104
|
/**
|
|
105
105
|
* Disable room list.
|
|
106
|
-
* {@link https://workadventu.re/map-building/api-controls.md#disabling--restoring-room-list | Website documentation}
|
|
106
|
+
* {@link https://docs.workadventu.re/map-building/api-controls.md#disabling--restoring-room-list | Website documentation}
|
|
107
107
|
*/
|
|
108
108
|
disableRoomList(): void;
|
|
109
109
|
/**
|
|
110
110
|
* Restore room list.
|
|
111
|
-
* {@link https://workadventu.re/map-building/api-controls.md#disabling--restoring-room-list | Website documentation}
|
|
111
|
+
* {@link https://docs.workadventu.re/map-building/api-controls.md#disabling--restoring-room-list | Website documentation}
|
|
112
112
|
*/
|
|
113
113
|
restoreRoomList(): void;
|
|
114
114
|
}
|
|
@@ -14,7 +14,7 @@ declare class WorkadventureMapEditorAreaCommands extends IframeApiContribution<W
|
|
|
14
14
|
})[];
|
|
15
15
|
/**
|
|
16
16
|
* Listens to the position of the current user. The event is triggered when the user enters a given area.
|
|
17
|
-
* {@link https://workadventu.re/map-building/api-mapeditor.md#detecting-when-the-user-entersleaves-an-area | Website documentation}
|
|
17
|
+
* {@link https://docs.workadventu.re/map-building/api-mapeditor.md#detecting-when-the-user-entersleaves-an-area | Website documentation}
|
|
18
18
|
*
|
|
19
19
|
* @param {string} areaName Area name
|
|
20
20
|
* @returns {Subject<void>} An observable fired when someone enters the area
|
|
@@ -22,7 +22,7 @@ declare class WorkadventureMapEditorAreaCommands extends IframeApiContribution<W
|
|
|
22
22
|
onEnter(areaName: string): Observable<void>;
|
|
23
23
|
/**
|
|
24
24
|
* Listens to the position of the current user. The event is triggered when the user leaves a given area.
|
|
25
|
-
* {@link https://workadventu.re/map-building/api-mapeditor.md#detecting-when-the-user-entersleaves-an-area | Website documentation}
|
|
25
|
+
* {@link https://docs.workadventu.re/map-building/api-mapeditor.md#detecting-when-the-user-entersleaves-an-area | Website documentation}
|
|
26
26
|
*
|
|
27
27
|
* @param {string} areaName Area name
|
|
28
28
|
* @returns {Subject<void>} An observable fired when someone leaves the area
|
|
@@ -8,14 +8,14 @@ export declare class WorkadventureNavigationCommands extends IframeApiContributi
|
|
|
8
8
|
callbacks: never[];
|
|
9
9
|
/**
|
|
10
10
|
* Opens the webpage at "url" in your browser, in a new tab.
|
|
11
|
-
* {@link https://workadventu.re/map-building/api-nav.md#opening-a-web-page-in-a-new-tab | Website documentation}
|
|
11
|
+
* {@link https://docs.workadventu.re/map-building/api-nav.md#opening-a-web-page-in-a-new-tab | Website documentation}
|
|
12
12
|
*
|
|
13
13
|
* @param {string} url Url of the web page
|
|
14
14
|
*/
|
|
15
15
|
openTab(url: string): void;
|
|
16
16
|
/**
|
|
17
17
|
* Opens the webpage at "url" in your browser in place of WorkAdventure. WorkAdventure will be completely unloaded.
|
|
18
|
-
* {@link https://workadventu.re/map-building/api-nav.md#opening-a-web-page-in-the-current-tab | Website documentation}
|
|
18
|
+
* {@link https://docs.workadventu.re/map-building/api-nav.md#opening-a-web-page-in-the-current-tab | Website documentation}
|
|
19
19
|
*
|
|
20
20
|
* @param {string} url Url of the web page
|
|
21
21
|
*/
|
|
@@ -23,14 +23,14 @@ export declare class WorkadventureNavigationCommands extends IframeApiContributi
|
|
|
23
23
|
/**
|
|
24
24
|
* Load the map at url without unloading workadventure.
|
|
25
25
|
* relative urls: "../subFolder/map.json[#start-layer-name]" global urls: "/_/global/domain/path/map.json[#start-layer-name]"
|
|
26
|
-
* {@link https://workadventu.re/map-building/api-nav.md#going-to-a-different-map-from-the-script | Website documentation}
|
|
26
|
+
* {@link https://docs.workadventu.re/map-building/api-nav.md#going-to-a-different-map-from-the-script | Website documentation}
|
|
27
27
|
*
|
|
28
28
|
* @param {string} url Url of the web page
|
|
29
29
|
*/
|
|
30
30
|
goToRoom(url: string): void;
|
|
31
31
|
/**
|
|
32
32
|
* Opens the webpage at "url" in an iFrame (on the right side of the screen) or close that iFrame.
|
|
33
|
-
* {@link https://workadventu.re/map-building/api-nav.md#openingclosing-web-page-in-co-websites | Website documentation}
|
|
33
|
+
* {@link https://docs.workadventu.re/map-building/api-nav.md#openingclosing-web-page-in-co-websites | Website documentation}
|
|
34
34
|
*
|
|
35
35
|
* @param {string} url Url of the web page
|
|
36
36
|
* @param {boolean|undefined} allowApi Allows the webpage to use the "IFrame API" and execute script (it is equivalent to putting the openWebsiteAllowApi property in the map)
|
|
@@ -44,7 +44,7 @@ export declare class WorkadventureNavigationCommands extends IframeApiContributi
|
|
|
44
44
|
openCoWebSite(url: string, allowApi?: boolean, allowPolicy?: string, widthPercent?: number, position?: number, closable?: boolean, lazy?: boolean): Promise<CoWebsite>;
|
|
45
45
|
/**
|
|
46
46
|
* Get all opened co-websites with their ids and positions.
|
|
47
|
-
* {@link https://workadventu.re/map-building/api-nav.md#get-all-co-websites | Website documentation}
|
|
47
|
+
* {@link https://docs.workadventu.re/map-building/api-nav.md#get-all-co-websites | Website documentation}
|
|
48
48
|
*
|
|
49
49
|
* @returns {CoWebsite[]} All Cowebsites
|
|
50
50
|
*/
|
|
@@ -26,7 +26,7 @@ export declare class WorkadventurePlayerCommands extends IframeApiContribution<W
|
|
|
26
26
|
/**
|
|
27
27
|
* Get the player name.
|
|
28
28
|
* Important: You need to wait for the end of the initialization before accessing.
|
|
29
|
-
* {@link https://workadventu.re/map-building/api-player.md#get-the-player-name | Website documentation}
|
|
29
|
+
* {@link https://docs.workadventu.re/map-building/api-player.md#get-the-player-name | Website documentation}
|
|
30
30
|
*
|
|
31
31
|
* @returns {string} Player name
|
|
32
32
|
*/
|
|
@@ -34,7 +34,7 @@ export declare class WorkadventurePlayerCommands extends IframeApiContribution<W
|
|
|
34
34
|
/**
|
|
35
35
|
* Get the player UUID.
|
|
36
36
|
* Important: You need to wait for the end of the initialization before accessing.
|
|
37
|
-
* {@link https://workadventu.re/map-building/api-player.md#get-the-player-uuid | Website documentation}
|
|
37
|
+
* {@link https://docs.workadventu.re/map-building/api-player.md#get-the-player-uuid | Website documentation}
|
|
38
38
|
* @deprecated Use WA.player.uuid instead
|
|
39
39
|
*
|
|
40
40
|
* @returns {string|undefined} Player UUID
|
|
@@ -43,7 +43,7 @@ export declare class WorkadventurePlayerCommands extends IframeApiContribution<W
|
|
|
43
43
|
/**
|
|
44
44
|
* Get the player id.
|
|
45
45
|
* Important: You need to wait for the end of the initialization before accessing.
|
|
46
|
-
* {@link https://workadventu.re/map-building/api-player.md#get-the-player-id | Website documentation}
|
|
46
|
+
* {@link https://docs.workadventu.re/map-building/api-player.md#get-the-player-id | Website documentation}
|
|
47
47
|
*
|
|
48
48
|
* @returns {number} Player id
|
|
49
49
|
*/
|
|
@@ -51,7 +51,7 @@ export declare class WorkadventurePlayerCommands extends IframeApiContribution<W
|
|
|
51
51
|
/**
|
|
52
52
|
* Get the player UUID.
|
|
53
53
|
* Important: You need to wait for the end of the initialization before accessing.
|
|
54
|
-
* {@link https://workadventu.re/map-building/api-player.md#get-the-player-uuid | Website documentation}
|
|
54
|
+
* {@link https://docs.workadventu.re/map-building/api-player.md#get-the-player-uuid | Website documentation}
|
|
55
55
|
*
|
|
56
56
|
* @returns {string|undefined} Player UUID
|
|
57
57
|
*/
|
|
@@ -59,7 +59,7 @@ export declare class WorkadventurePlayerCommands extends IframeApiContribution<W
|
|
|
59
59
|
/**
|
|
60
60
|
* Get the player language.
|
|
61
61
|
* Important: You need to wait for the end of the initialization before accessing.
|
|
62
|
-
* {@link https://workadventu.re/map-building/api-player.md#get-the-player-language | Website documentation}
|
|
62
|
+
* {@link https://docs.workadventu.re/map-building/api-player.md#get-the-player-language | Website documentation}
|
|
63
63
|
*
|
|
64
64
|
* @returns {string} Player language
|
|
65
65
|
*/
|
|
@@ -67,7 +67,7 @@ export declare class WorkadventurePlayerCommands extends IframeApiContribution<W
|
|
|
67
67
|
/**
|
|
68
68
|
* Get the player tags.
|
|
69
69
|
* Important: You need to wait for the end of the initialization before accessing.
|
|
70
|
-
* {@link https://workadventu.re/map-building/api-player.md#get-the-tags-of-the-player | Website documentation}
|
|
70
|
+
* {@link https://docs.workadventu.re/map-building/api-player.md#get-the-tags-of-the-player | Website documentation}
|
|
71
71
|
*
|
|
72
72
|
* @returns {string[]} Player tags
|
|
73
73
|
*/
|
|
@@ -75,7 +75,7 @@ export declare class WorkadventurePlayerCommands extends IframeApiContribution<W
|
|
|
75
75
|
/**
|
|
76
76
|
* Get the player position.
|
|
77
77
|
* Important: You need to wait for the end of the initialization before accessing.
|
|
78
|
-
* {@link https://workadventu.re/map-building/api-player.md#get-the-position-of-the-player | Website documentation}
|
|
78
|
+
* {@link https://docs.workadventu.re/map-building/api-player.md#get-the-position-of-the-player | Website documentation}
|
|
79
79
|
*
|
|
80
80
|
* @returns {Position} Player position
|
|
81
81
|
*/
|
|
@@ -83,7 +83,7 @@ export declare class WorkadventurePlayerCommands extends IframeApiContribution<W
|
|
|
83
83
|
/**
|
|
84
84
|
* Listens to the movement of the current user and calls the callback.
|
|
85
85
|
* Sends an event when the user stops moving, changes direction and every 200ms when moving in the same direction.
|
|
86
|
-
* {@link https://workadventu.re/map-building/api-player.md#listen-to-player-movement | Website documentation}
|
|
86
|
+
* {@link https://docs.workadventu.re/map-building/api-player.md#listen-to-player-movement | Website documentation}
|
|
87
87
|
*
|
|
88
88
|
* @param {HasPlayerMovedEventCallback} callback Function that will be called when the current player is moving. It contains the event
|
|
89
89
|
* @return {Subscription} Subscription to the stream. Use ".unsubscribe()" to stop listening.
|
|
@@ -91,7 +91,7 @@ export declare class WorkadventurePlayerCommands extends IframeApiContribution<W
|
|
|
91
91
|
onPlayerMove(callback: HasPlayerMovedEventCallback): Subscription;
|
|
92
92
|
/**
|
|
93
93
|
* Player will try to find the shortest path to the destination point and proceed to move there.
|
|
94
|
-
* {@link https://workadventu.re/map-building/api-player.md#move-player-to-position | Website documentation}
|
|
94
|
+
* {@link https://docs.workadventu.re/map-building/api-player.md#move-player-to-position | Website documentation}
|
|
95
95
|
*
|
|
96
96
|
* @param {number} x Horizontal position
|
|
97
97
|
* @param {number} y Vertical position
|
|
@@ -112,14 +112,14 @@ export declare class WorkadventurePlayerCommands extends IframeApiContribution<W
|
|
|
112
112
|
*
|
|
113
113
|
* If you are using the self-hosted version of WorkAdventure and you developed your own administration panel, the token can be anything.
|
|
114
114
|
* By default, self-hosted versions of WorkAdventure don't come with an administration panel, so the token string will be empty.
|
|
115
|
-
* {@link https://workadventu.re/map-building/api-player.md#get-the-user-room-token-of-the-player | Website documentation}
|
|
115
|
+
* {@link https://docs.workadventu.re/map-building/api-player.md#get-the-user-room-token-of-the-player | Website documentation}
|
|
116
116
|
*
|
|
117
117
|
* @returns {string|undefined} User room token
|
|
118
118
|
*/
|
|
119
119
|
get userRoomToken(): string | undefined;
|
|
120
120
|
/**
|
|
121
121
|
* Display a thin line around your player's name (the "outline").
|
|
122
|
-
* {@link https://workadventu.re/map-building/api-player.md#set-the-outline-color-of-the-player | Website documentation}
|
|
122
|
+
* {@link https://docs.workadventu.re/map-building/api-player.md#set-the-outline-color-of-the-player | Website documentation}
|
|
123
123
|
*
|
|
124
124
|
* @param {number} red
|
|
125
125
|
* @param {number} green
|
|
@@ -129,7 +129,7 @@ export declare class WorkadventurePlayerCommands extends IframeApiContribution<W
|
|
|
129
129
|
setOutlineColor(red: number, green: number, blue: number): Promise<void>;
|
|
130
130
|
/**
|
|
131
131
|
* Remove the thin line around your player's name (the "outline").
|
|
132
|
-
* {@link https://workadventu.re/map-building/api-player.md#set-the-outline-color-of-the-player | Website documentation}
|
|
132
|
+
* {@link https://docs.workadventu.re/map-building/api-player.md#set-the-outline-color-of-the-player | Website documentation}
|
|
133
133
|
*
|
|
134
134
|
* @returns {Promise<void>} Promise to await to known when the outline has been removed
|
|
135
135
|
*/
|
|
@@ -138,7 +138,7 @@ export declare class WorkadventurePlayerCommands extends IframeApiContribution<W
|
|
|
138
138
|
/**
|
|
139
139
|
* Get a value to provide connected status for the current player.
|
|
140
140
|
* Important: You need to wait for the end of the initialization before accessing.
|
|
141
|
-
* {@link https://workadventu.re/map-building/api-player.md#get-the-tags-of-the-player | Website documentation}
|
|
141
|
+
* {@link https://docs.workadventu.re/map-building/api-player.md#get-the-tags-of-the-player | Website documentation}
|
|
142
142
|
*
|
|
143
143
|
* @returns {boolean} Player tags
|
|
144
144
|
*/
|
|
@@ -147,7 +147,7 @@ export declare class WorkadventurePlayerCommands extends IframeApiContribution<W
|
|
|
147
147
|
* Get a base64 string of the Woka image of the current player.
|
|
148
148
|
* The Woka is in "still" position facing south.
|
|
149
149
|
* @returns {Promise<string>}
|
|
150
|
-
* {@link https://workadventu.re/map-building/api-player.md#get-the-woka-of-the-player | Website documentation}
|
|
150
|
+
* {@link https://docs.workadventu.re/map-building/api-player.md#get-the-woka-of-the-player | Website documentation}
|
|
151
151
|
*
|
|
152
152
|
* @returns {Promise<string>} Current player woka in base64
|
|
153
153
|
*/
|
|
@@ -61,7 +61,7 @@ export declare class WorkadventurePlayersCommands extends IframeApiContribution<
|
|
|
61
61
|
private registerRemotePlayer;
|
|
62
62
|
/**
|
|
63
63
|
* Start the tracking players. You need to call this method before being able to listen to players positions.
|
|
64
|
-
* {@link https://workadventu.re/map-building/api-players.md#enabling-players-tracking | Website documentation}
|
|
64
|
+
* {@link https://docs.workadventu.re/map-building/api-players.md#enabling-players-tracking | Website documentation}
|
|
65
65
|
*
|
|
66
66
|
* ```ts
|
|
67
67
|
* await WA.players.configureTracking({
|
|
@@ -78,7 +78,7 @@ export declare class WorkadventurePlayersCommands extends IframeApiContribution<
|
|
|
78
78
|
}): Promise<void>;
|
|
79
79
|
/**
|
|
80
80
|
* Listens to a given variable change on all available players.
|
|
81
|
-
* {@link https://workadventu.re/map-building/api-players.md#listen-to-a-remote-player-variable-changes | Website documentation}
|
|
81
|
+
* {@link https://docs.workadventu.re/map-building/api-players.md#listen-to-a-remote-player-variable-changes | Website documentation}
|
|
82
82
|
*
|
|
83
83
|
* ```ts
|
|
84
84
|
* WA.players.onVariableChange("score").subscribe({ player, value } => {
|
|
@@ -94,7 +94,7 @@ export declare class WorkadventurePlayersCommands extends IframeApiContribution<
|
|
|
94
94
|
* These will be triggered when a remote player is entering our "zone" (zone ~= viewport)
|
|
95
95
|
* This means this will NOT be triggered when a remote player enters the map, but when the remote player is
|
|
96
96
|
* getting visible.
|
|
97
|
-
* {@link https://workadventu.re/map-building/api-players.md#tracking-players-in-real-time | Website documentation}
|
|
97
|
+
* {@link https://docs.workadventu.re/map-building/api-players.md#tracking-players-in-real-time | Website documentation}
|
|
98
98
|
*
|
|
99
99
|
* Usage:
|
|
100
100
|
*
|
|
@@ -108,7 +108,7 @@ export declare class WorkadventurePlayersCommands extends IframeApiContribution<
|
|
|
108
108
|
* These will be triggered when a remote player is leaving our "zone" (zone ~= viewport)
|
|
109
109
|
* This means this will be triggered when a remote player leaves the map, but ALSO when the remote player is
|
|
110
110
|
* walking away and is no longer visible.
|
|
111
|
-
* {@link https://workadventu.re/map-building/api-players.md#tracking-players-in-real-time | Website documentation}
|
|
111
|
+
* {@link https://docs.workadventu.re/map-building/api-players.md#tracking-players-in-real-time | Website documentation}
|
|
112
112
|
*
|
|
113
113
|
* Usage:
|
|
114
114
|
*
|
|
@@ -120,7 +120,7 @@ export declare class WorkadventurePlayersCommands extends IframeApiContribution<
|
|
|
120
120
|
/**
|
|
121
121
|
* Listens to movement from all players who are in our zone (zone ~= viewport)
|
|
122
122
|
* This means this may NOT be triggered when a remote player moves but is far away from us.
|
|
123
|
-
* {@link https://workadventu.re/map-building/api-players.md#tracking-players-movement | Website documentation}
|
|
123
|
+
* {@link https://docs.workadventu.re/map-building/api-players.md#tracking-players-movement | Website documentation}
|
|
124
124
|
*
|
|
125
125
|
* Usage:
|
|
126
126
|
*
|
|
@@ -131,7 +131,7 @@ export declare class WorkadventurePlayersCommands extends IframeApiContribution<
|
|
|
131
131
|
get onPlayerMoves(): Observable<RemotePlayerMoved>;
|
|
132
132
|
/**
|
|
133
133
|
* Returns a RemotePlayer by its id.
|
|
134
|
-
* {@link https://workadventu.re/map-building/api-players.md#getting-a-remote-player-by-id | Website documentation}
|
|
134
|
+
* {@link https://docs.workadventu.re/map-building/api-players.md#getting-a-remote-player-by-id | Website documentation}
|
|
135
135
|
*
|
|
136
136
|
* Note: if the same user is connected twice, it will be considered as 2 different players with 2 different IDs.
|
|
137
137
|
*/
|
|
@@ -139,7 +139,7 @@ export declare class WorkadventurePlayersCommands extends IframeApiContribution<
|
|
|
139
139
|
/**
|
|
140
140
|
* Returns the list of all nearby remote players.
|
|
141
141
|
* The list only contains the players in the same zone as the current player (where zone ~= viewport).
|
|
142
|
-
* {@link https://workadventu.re/map-building/api-players.md#getting-a-list-of-players-around-me | Website documentation}
|
|
142
|
+
* {@link https://docs.workadventu.re/map-building/api-players.md#getting-a-list-of-players-around-me | Website documentation}
|
|
143
143
|
*/
|
|
144
144
|
list(): IterableIterator<RemotePlayerInterface>;
|
|
145
145
|
}
|
|
@@ -45,7 +45,7 @@ export declare class WorkadventureRoomCommands extends IframeApiContribution<Wor
|
|
|
45
45
|
onLeaveZone(name: string, callback: () => void): Subscription;
|
|
46
46
|
/**
|
|
47
47
|
* Listens to the position of the current user. The event is triggered when the user enters a given layer.
|
|
48
|
-
* {@link https://workadventu.re/map-building/api-room.md#detecting-when-the-user-entersleaves-a-layer | Website documentation}
|
|
48
|
+
* {@link https://docs.workadventu.re/map-building/api-room.md#detecting-when-the-user-entersleaves-a-layer | Website documentation}
|
|
49
49
|
*
|
|
50
50
|
* @param {string} layerName Name of the layer who as defined in Tiled
|
|
51
51
|
* @returns {Subject<void>} Event subject can be listen by a subscribtion
|
|
@@ -53,7 +53,7 @@ export declare class WorkadventureRoomCommands extends IframeApiContribution<Wor
|
|
|
53
53
|
onEnterLayer(layerName: string): Observable<void>;
|
|
54
54
|
/**
|
|
55
55
|
* Listens to the position of the current user. The event is triggered when the user leaves a given layer.
|
|
56
|
-
* {@link https://workadventu.re/map-building/api-room.md#detecting-when-the-user-entersleaves-a-layer | Website documentation}
|
|
56
|
+
* {@link https://docs.workadventu.re/map-building/api-room.md#detecting-when-the-user-entersleaves-a-layer | Website documentation}
|
|
57
57
|
*
|
|
58
58
|
* @param {string} layerName Name of the layer who as defined in Tiled
|
|
59
59
|
* @returns {Subject<void>} Event subject can be listen by a subscribtion
|
|
@@ -61,14 +61,14 @@ export declare class WorkadventureRoomCommands extends IframeApiContribution<Wor
|
|
|
61
61
|
onLeaveLayer(layerName: string): Observable<void>;
|
|
62
62
|
/**
|
|
63
63
|
* This methods can be used to show a layer. if layerName is the name of a group layer, show all the layer in that group layer.
|
|
64
|
-
* {@link https://workadventu.re/map-building/api-room.md#show--hide-a-layer | Website documentation}
|
|
64
|
+
* {@link https://docs.workadventu.re/map-building/api-room.md#show--hide-a-layer | Website documentation}
|
|
65
65
|
*
|
|
66
66
|
* @param {string} layerName Name of the layer/group layer who as defined in Tiled
|
|
67
67
|
*/
|
|
68
68
|
showLayer(layerName: string): void;
|
|
69
69
|
/**
|
|
70
70
|
* This methods can be used to hide a layer. if layerName is the name of a group layer, hide all the layer in that group layer.
|
|
71
|
-
* {@link https://workadventu.re/map-building/api-room.md#show--hide-a-layer | Website documentation}
|
|
71
|
+
* {@link https://docs.workadventu.re/map-building/api-room.md#show--hide-a-layer | Website documentation}
|
|
72
72
|
*
|
|
73
73
|
* @param {string} layerName Name of the layer/group layer who as defined in Tiled
|
|
74
74
|
*/
|
|
@@ -77,7 +77,7 @@ export declare class WorkadventureRoomCommands extends IframeApiContribution<Wor
|
|
|
77
77
|
* Set the value of the propertyName property of the layer layerName at propertyValue.
|
|
78
78
|
* If the property doesn't exist, create the property propertyName and set the value of the property at propertyValue.
|
|
79
79
|
* Note : To unset a property from a layer, use setProperty with propertyValue set to undefined.
|
|
80
|
-
* {@link https://workadventu.re/map-building/api-room.md#setcreate-properties-in-a-layer | Website documentation}
|
|
80
|
+
* {@link https://docs.workadventu.re/map-building/api-room.md#setcreate-properties-in-a-layer | Website documentation}
|
|
81
81
|
*
|
|
82
82
|
* @param {string} layerName Name of the layer who as defined in Tiled
|
|
83
83
|
* @param {string} propertyName Name of the property
|
|
@@ -87,14 +87,14 @@ export declare class WorkadventureRoomCommands extends IframeApiContribution<Wor
|
|
|
87
87
|
/**
|
|
88
88
|
* Returns a promise that resolves to the JSON map file.
|
|
89
89
|
* Check the {@link https://doc.mapeditor.org/en/stable/reference/json-map-format/ | Tiled documentation to learn more about the format of the JSON map}.
|
|
90
|
-
* {@link https://workadventu.re/map-building/api-room.md#getting-map-data | Website documentation}
|
|
90
|
+
* {@link https://docs.workadventu.re/map-building/api-room.md#getting-map-data | Website documentation}
|
|
91
91
|
*
|
|
92
92
|
* @returns {Promise<ITiledMap>} Map in Tiled JSON format
|
|
93
93
|
*/
|
|
94
94
|
getTiledMap(): Promise<ITiledMap>;
|
|
95
95
|
/**
|
|
96
96
|
* Replace the tile at the x and y coordinates in the layer named layer by the tile with the id tile.
|
|
97
|
-
* {@link https://workadventu.re/map-building/api-room.md#changing-tiles | Website documentation}
|
|
97
|
+
* {@link https://docs.workadventu.re/map-building/api-room.md#changing-tiles | Website documentation}
|
|
98
98
|
*
|
|
99
99
|
* @param {TileDescriptor[]} tiles Description of a tile
|
|
100
100
|
*/
|
|
@@ -102,7 +102,7 @@ export declare class WorkadventureRoomCommands extends IframeApiContribution<Wor
|
|
|
102
102
|
/**
|
|
103
103
|
* The ID of the current room is available from the WA.room.id property.
|
|
104
104
|
* Important: You need to wait for the end of the initialization before accessing.
|
|
105
|
-
* {@link https://workadventu.re/map-building/api-room.md#get-the-room-id | Website documentation}
|
|
105
|
+
* {@link https://docs.workadventu.re/map-building/api-room.md#get-the-room-id | Website documentation}
|
|
106
106
|
*
|
|
107
107
|
* @returns {string} Id of the room
|
|
108
108
|
*/
|
|
@@ -110,7 +110,7 @@ export declare class WorkadventureRoomCommands extends IframeApiContribution<Wor
|
|
|
110
110
|
/**
|
|
111
111
|
* The URL of the map is available from the WA.room.mapURL property.
|
|
112
112
|
* Important: You need to wait for the end of the initialization before accessing.
|
|
113
|
-
* {@link https://workadventu.re/map-building/api-room.md#get-the-map-url | Website documentation}
|
|
113
|
+
* {@link https://docs.workadventu.re/map-building/api-room.md#get-the-map-url | Website documentation}
|
|
114
114
|
*
|
|
115
115
|
* @returns {string} Url of the map
|
|
116
116
|
*/
|
|
@@ -122,7 +122,7 @@ export declare class WorkadventureRoomCommands extends IframeApiContribution<Wor
|
|
|
122
122
|
get hashParameters(): Record<string, string>;
|
|
123
123
|
/**
|
|
124
124
|
* Load a tileset in JSON format from an url and return the id of the first tile of the loaded tileset.
|
|
125
|
-
* {@link https://workadventu.re/map-building/api-room.md#loading-a-tileset | Website documentation}
|
|
125
|
+
* {@link https://docs.workadventu.re/map-building/api-room.md#loading-a-tileset | Website documentation}
|
|
126
126
|
*
|
|
127
127
|
* @param {string} url Url of the tileset
|
|
128
128
|
* @returns {Promise<number>} Promise to return the id of the tileset
|
|
@@ -10,7 +10,7 @@ export declare class WorkadventureSoundCommands extends IframeApiContribution<Wo
|
|
|
10
10
|
* The Sound class that represents a loaded sound contains two methods: play(soundConfig : SoundConfig|undefined) and stop().
|
|
11
11
|
*
|
|
12
12
|
* The parameter soundConfig is optional, if you call play without a Sound config the sound will be played with the basic configuration.
|
|
13
|
-
* {@link https://workadventu.re/map-building/api-sound.md#load-a-sound-from-an-url | Website documentation}
|
|
13
|
+
* {@link https://docs.workadventu.re/map-building/api-sound.md#load-a-sound-from-an-url | Website documentation}
|
|
14
14
|
*
|
|
15
15
|
* @param url
|
|
16
16
|
* @returns
|
|
@@ -85,7 +85,7 @@ export declare class WorkAdventureUiCommands extends IframeApiContribution<WorkA
|
|
|
85
85
|
})[];
|
|
86
86
|
/**
|
|
87
87
|
* Open a popup in front of the game.
|
|
88
|
-
* {@link https://workadventu.re/map-building/api-ui.md#opening-a-popup | Website documentation}
|
|
88
|
+
* {@link https://docs.workadventu.re/map-building/api-ui.md#opening-a-popup | Website documentation}
|
|
89
89
|
*
|
|
90
90
|
* @param {string} targetObject Targeted object name
|
|
91
91
|
* @param {string} message Message to display
|
|
@@ -95,7 +95,7 @@ export declare class WorkAdventureUiCommands extends IframeApiContribution<WorkA
|
|
|
95
95
|
openPopup(targetObject: string, message: string, buttons: ButtonDescriptor[]): Popup;
|
|
96
96
|
/**
|
|
97
97
|
* Add a custom menu item containing the text commandDescriptor in the navbar of the menu. options attribute accepts an object.
|
|
98
|
-
* {@link https://workadventu.re/map-building/api-ui.md#add-custom-menu | Website documentation}
|
|
98
|
+
* {@link https://docs.workadventu.re/map-building/api-ui.md#add-custom-menu | Website documentation}
|
|
99
99
|
*
|
|
100
100
|
* @param {string} commandDescriptor Command description
|
|
101
101
|
* @param {MenuOptions | ((commandDescriptor: string) => void)} options Manu options
|
|
@@ -122,7 +122,7 @@ export declare class WorkAdventureUiCommands extends IframeApiContribution<WorkA
|
|
|
122
122
|
removeBubble(): void;
|
|
123
123
|
/**
|
|
124
124
|
* Displays a message at the bottom of the screen (that will disappear when space bar is pressed).
|
|
125
|
-
* {@link https://workadventu.re/map-building/api-ui.md#awaiting-user-confirmation-with-space-bar | Website documentation}
|
|
125
|
+
* {@link https://docs.workadventu.re/map-building/api-ui.md#awaiting-user-confirmation-with-space-bar | Website documentation}
|
|
126
126
|
*
|
|
127
127
|
* @param {ActionMessageOptions} actionMessageOptions Action options
|
|
128
128
|
* @returns {ActionMessage} Trigger action message
|
|
@@ -130,7 +130,7 @@ export declare class WorkAdventureUiCommands extends IframeApiContribution<WorkA
|
|
|
130
130
|
displayActionMessage(actionMessageOptions: ActionMessageOptions): ActionMessage;
|
|
131
131
|
/**
|
|
132
132
|
* Displays a player message at the top of the user head (that will disappear when space bar is pressed).
|
|
133
|
-
* {@link https://workadventu.re/map-building/api-ui.md#awaiting-user-confirmation-with-space-bar | Website documentation}
|
|
133
|
+
* {@link https://docs.workadventu.re/map-building/api-ui.md#awaiting-user-confirmation-with-space-bar | Website documentation}
|
|
134
134
|
*
|
|
135
135
|
* @param {PlayerMessageOptions} playerMessageOptions player options
|
|
136
136
|
* @returns {PlayerMessage} Trigger player message
|
|
@@ -5,7 +5,7 @@ export declare class WorkadventureRoomWebsiteCommands extends IframeApiContribut
|
|
|
5
5
|
callbacks: never[];
|
|
6
6
|
/**
|
|
7
7
|
* You can get an instance of an embedded website by using the WA.room.website.get() method. It returns a promise of an EmbeddedWebsite instance.
|
|
8
|
-
* {@link https://workadventu.re/map-building/api-room.md#getting-an-instance-of-a-website-already-embedded-in-the-map | Website documentation}
|
|
8
|
+
* {@link https://docs.workadventu.re/map-building/api-room.md#getting-an-instance-of-a-website-already-embedded-in-the-map | Website documentation}
|
|
9
9
|
*
|
|
10
10
|
* @param {string} objectName Object name
|
|
11
11
|
* @returns {Promise<EmbeddedWebsite>} Promise to get a embed website
|
|
@@ -13,7 +13,7 @@ export declare class WorkadventureRoomWebsiteCommands extends IframeApiContribut
|
|
|
13
13
|
get(objectName: string): Promise<EmbeddedWebsite>;
|
|
14
14
|
/**
|
|
15
15
|
* You can create an instance of an embedded website by using the WA.room.website.create() method. It returns an EmbeddedWebsite instance.
|
|
16
|
-
* {@link https://workadventu.re/map-building/api-room.md#adding-a-new-website-in-a-map | Website documentation}
|
|
16
|
+
* {@link https://docs.workadventu.re/map-building/api-room.md#adding-a-new-website-in-a-map | Website documentation}
|
|
17
17
|
*
|
|
18
18
|
* @param createEmbeddedWebsiteEvent
|
|
19
19
|
* @returns {EmbeddedWebsite} Created embed website
|
|
@@ -21,7 +21,7 @@ export declare class WorkadventureRoomWebsiteCommands extends IframeApiContribut
|
|
|
21
21
|
create(createEmbeddedWebsiteEvent: CreateEmbeddedWebsiteEvent): EmbeddedWebsite;
|
|
22
22
|
/**
|
|
23
23
|
* Use WA.room.website.delete to completely remove an embedded website from your map.
|
|
24
|
-
* {@link https://workadventu.re/map-building/api-room.md#deleting-a-website-from-a-map | Website documentation}
|
|
24
|
+
* {@link https://docs.workadventu.re/map-building/api-room.md#deleting-a-website-from-a-map | Website documentation}
|
|
25
25
|
*
|
|
26
26
|
* @param {string} objectName Object name
|
|
27
27
|
* @returns {Promise<void>} Promise to away to known when the object has been deleted
|
package/play/src/iframe_api.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ declare const wa: {
|
|
|
36
36
|
* When your script / iFrame loads WorkAdventure, it takes a few milliseconds for your
|
|
37
37
|
* script / iFrame to exchange data with WorkAdventure. You should wait for the WorkAdventure
|
|
38
38
|
* API to be fully ready using the WA.onInit() method.
|
|
39
|
-
* {@link https://workadventu.re/map-building/api-start.md#waiting-for-workadventure-api-to-be-available | Website documentation}
|
|
39
|
+
* {@link https://docs.workadventu.re/map-building/api-start.md#waiting-for-workadventure-api-to-be-available | Website documentation}
|
|
40
40
|
*
|
|
41
41
|
* Some properties (like the current username, or the room ID) are not available until WA.onInit has completed.
|
|
42
42
|
*
|
|
@@ -46,7 +46,7 @@ declare const wa: {
|
|
|
46
46
|
/**
|
|
47
47
|
* The metadata sent by the administration website.
|
|
48
48
|
* Important: You need to wait for the end of the initialization before accessing.
|
|
49
|
-
* {@link https://workadventu.re/map-building/api-metadata.md | Website documentation}
|
|
49
|
+
* {@link https://docs.workadventu.re/map-building/api-metadata.md | Website documentation}
|
|
50
50
|
*
|
|
51
51
|
* @returns {unknown|undefined} Metadata
|
|
52
52
|
*/
|
|
@@ -54,7 +54,7 @@ declare const wa: {
|
|
|
54
54
|
/**
|
|
55
55
|
* The iframeId (only set if the code is executed from a UIWebsite iframe)
|
|
56
56
|
* Important: You need to wait for the end of the initialization before accessing.
|
|
57
|
-
* {@link https://workadventu.re/map-building/api-ui.md#get-ui-website-by-id | Website documentation}
|
|
57
|
+
* {@link https://docs.workadventu.re/map-building/api-ui.md#get-ui-website-by-id | Website documentation}
|
|
58
58
|
*
|
|
59
59
|
* @returns {string|undefined} IframeId
|
|
60
60
|
*/
|