@momo2555/koppeliajs 0.0.121 → 0.0.123
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.
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
let koppelia = Koppelia.instance;
|
|
11
11
|
|
|
12
12
|
koppelia.onReady(async () => {
|
|
13
|
-
await koppelia.registerNewResizableText(id,
|
|
13
|
+
await koppelia.registerNewResizableText(id, defaultFontSize, (newFontSize: number) => {
|
|
14
14
|
fontSize = newFontSize;
|
|
15
15
|
});
|
|
16
16
|
});
|
package/dist/scripts/koppelia.js
CHANGED
|
@@ -216,7 +216,7 @@ export class Koppelia {
|
|
|
216
216
|
*/
|
|
217
217
|
async registerNewResizableText(id, defaultSize, onTextResized) {
|
|
218
218
|
return new Promise((resolve, reject) => {
|
|
219
|
-
if (get(routeType) == "
|
|
219
|
+
if (get(routeType) == "monitor") {
|
|
220
220
|
let addGrowableElRequest = new Message();
|
|
221
221
|
addGrowableElRequest.setRequest("addResizableText");
|
|
222
222
|
addGrowableElRequest.addParam("id", id);
|