@momo2555/koppeliajs 0.0.129 → 0.0.131
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/dist/scripts/console.js
CHANGED
|
@@ -222,4 +222,10 @@ export class Console {
|
|
|
222
222
|
handler(request, params, from, address);
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
+
destroyEvents() {
|
|
226
|
+
this._deviceEventHandlers = [];
|
|
227
|
+
this._deviceDataHandlers = [];
|
|
228
|
+
this._dataExchangeHandlers = [];
|
|
229
|
+
this._anyRequestHandlers = [];
|
|
230
|
+
}
|
|
225
231
|
}
|
|
@@ -29,6 +29,7 @@ export declare class Koppelia {
|
|
|
29
29
|
init(defaultState: AnyState, stages: string[]): void;
|
|
30
30
|
/**
|
|
31
31
|
* Go to a stage, the stage must be in the stage list
|
|
32
|
+
* Before changing the staging all callbacks will be destroyed
|
|
32
33
|
* If the stage list is empty the console will return an error
|
|
33
34
|
* @param stageName
|
|
34
35
|
*/
|
package/dist/scripts/koppelia.js
CHANGED
|
@@ -76,10 +76,12 @@ export class Koppelia {
|
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
78
78
|
* Go to a stage, the stage must be in the stage list
|
|
79
|
+
* Before changing the staging all callbacks will be destroyed
|
|
79
80
|
* If the stage list is empty the console will return an error
|
|
80
81
|
* @param stageName
|
|
81
82
|
*/
|
|
82
83
|
goto(stageName) {
|
|
84
|
+
this._console.destroyEvents();
|
|
83
85
|
this._stage.goto(stageName);
|
|
84
86
|
}
|
|
85
87
|
fixMediaUrl(mediaUrl) {
|
package/dist/scripts/resident.js
CHANGED
|
@@ -3,6 +3,7 @@ export class Resident {
|
|
|
3
3
|
_name = "";
|
|
4
4
|
_id = "";
|
|
5
5
|
_image = "";
|
|
6
|
+
_residenceId = "";
|
|
6
7
|
constructor() {
|
|
7
8
|
}
|
|
8
9
|
get id() {
|
|
@@ -13,12 +14,13 @@ export class Resident {
|
|
|
13
14
|
}
|
|
14
15
|
get imageUrl() {
|
|
15
16
|
let koppelia = Koppelia.instance;
|
|
16
|
-
let path = "/media/residence/" + this._id + "/" + this._image;
|
|
17
|
+
let path = "/media/residence/" + this._residenceId + "/resident/" + this._id + "/" + this._image;
|
|
17
18
|
return koppelia.getMediaLink(path);
|
|
18
19
|
}
|
|
19
20
|
fromObject(object) {
|
|
20
21
|
this._name = object["resident_name"];
|
|
21
22
|
this._id = object["resident_id"];
|
|
22
23
|
this._image = object["resident_image"];
|
|
24
|
+
this._residenceId = object["resident_residence_id"];
|
|
23
25
|
}
|
|
24
26
|
}
|
package/package.json
CHANGED