@momo2555/koppeliajs 0.0.120 → 0.0.122

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/index.d.ts CHANGED
@@ -2,11 +2,12 @@ import "./styles/fonts.css";
2
2
  import KBase from "./components/KBase.svelte";
3
3
  import GrowableElement from "./components/GrowableElement.svelte";
4
4
  import Button from "./components/Button.svelte";
5
+ import ResizableText from "./components/ResizableText.svelte";
5
6
  import { Koppelia } from "./scripts/koppelia.js";
6
7
  import { Console } from "./scripts/console.js";
7
8
  import { Message } from "./scripts/message.js";
8
9
  import { Device } from "./scripts/device.js";
9
10
  import { Play } from "./scripts/play.js";
10
11
  import { updateRoute, routeType } from './stores/routeStore.js';
11
- export { KBase, GrowableElement, Button };
12
+ export { KBase, GrowableElement, Button, ResizableText };
12
13
  export { updateRoute, routeType, Koppelia, Console, Message, Device, Play };
package/dist/index.js CHANGED
@@ -3,11 +3,12 @@ import "./styles/fonts.css";
3
3
  import KBase from "./components/KBase.svelte";
4
4
  import GrowableElement from "./components/GrowableElement.svelte";
5
5
  import Button from "./components/Button.svelte";
6
+ import ResizableText from "./components/ResizableText.svelte";
6
7
  import { Koppelia } from "./scripts/koppelia.js";
7
8
  import { Console } from "./scripts/console.js";
8
9
  import { Message } from "./scripts/message.js";
9
10
  import { Device } from "./scripts/device.js";
10
11
  import { Play } from "./scripts/play.js";
11
12
  import { updateRoute, routeType } from './stores/routeStore.js';
12
- export { KBase, GrowableElement, Button }; // Compoenents
13
+ export { KBase, GrowableElement, Button, ResizableText }; // Compoenents
13
14
  export { updateRoute, routeType, Koppelia, Console, Message, Device, Play }; // libraries and stores
@@ -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) == "controller") {
219
+ if (get(routeType) == "monitor") {
220
220
  let addGrowableElRequest = new Message();
221
221
  addGrowableElRequest.setRequest("addResizableText");
222
222
  addGrowableElRequest.addParam("id", id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo2555/koppeliajs",
3
- "version": "0.0.120",
3
+ "version": "0.0.122",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",