@momo2555/koppeliajs 0.0.96 → 0.0.98
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/device.d.ts
CHANGED
|
@@ -14,8 +14,8 @@ export declare class Device {
|
|
|
14
14
|
private _console;
|
|
15
15
|
private _attachedEvents;
|
|
16
16
|
constructor(console: Console, address?: string);
|
|
17
|
-
set color(color: Color);
|
|
18
17
|
get color(): Color;
|
|
18
|
+
get name(): string;
|
|
19
19
|
ping(): void;
|
|
20
20
|
onEvent(eventName: string, callback: () => void): void;
|
|
21
21
|
onZPosition(callback: (z: number) => void): void;
|
package/dist/scripts/device.js
CHANGED
|
@@ -13,13 +13,20 @@ export class Device {
|
|
|
13
13
|
this._console = console;
|
|
14
14
|
this._attachedEvents = [];
|
|
15
15
|
}
|
|
16
|
-
set color(color) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
16
|
+
// public set color(color: Color) {
|
|
17
|
+
// this._color = color;
|
|
18
|
+
// // TODO : send a request to change the color
|
|
19
|
+
// }
|
|
20
20
|
get color() {
|
|
21
21
|
return this._color;
|
|
22
22
|
}
|
|
23
|
+
// public set name(name: string) {
|
|
24
|
+
// this._name = name;
|
|
25
|
+
// // TODO : send a request to change the name
|
|
26
|
+
// }
|
|
27
|
+
get name() {
|
|
28
|
+
return this._name;
|
|
29
|
+
}
|
|
23
30
|
ping() {
|
|
24
31
|
}
|
|
25
32
|
onEvent(eventName, callback) {
|
package/dist/scripts/state.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@momo2555/koppeliajs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.98",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite dev",
|
|
6
6
|
"build": "vite build && npm run package",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
11
11
|
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
12
12
|
"format": "prettier --write .",
|
|
13
|
-
"lint": "prettier --check . && eslint ."
|
|
13
|
+
"lint": "prettier --check . && eslint .",
|
|
14
|
+
"pub": "vite build && npm publish --access public"
|
|
14
15
|
},
|
|
15
16
|
"files": [
|
|
16
17
|
"dist",
|