@viamrobotics/test-widgets 0.9.1 → 0.9.2
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.
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { ViamObject3D } from '@viamrobotics/three';
|
|
2
1
|
export const createGeometry = (type, size = 5, rotation = 0) => {
|
|
3
|
-
const pose =
|
|
4
|
-
pose.orientationVector.th = rotation;
|
|
2
|
+
const pose = { orientationVector: { th: rotation } };
|
|
5
3
|
switch (type) {
|
|
6
4
|
case 'box': {
|
|
7
5
|
return {
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import type { ViamObject3D } from '@viamrobotics/three';
|
|
2
1
|
import type { LngLat } from 'maplibre-gl';
|
|
2
|
+
/** Client-side pose for a navigation-map geometry. Rotation only; never serialized. */
|
|
3
|
+
export interface GeometryPose {
|
|
4
|
+
/** Orientation vector; only the theta rotation (radians) is used on the map. */
|
|
5
|
+
orientationVector: {
|
|
6
|
+
th: number;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
3
9
|
interface BaseGeometry {
|
|
4
|
-
pose:
|
|
10
|
+
pose: GeometryPose;
|
|
5
11
|
}
|
|
6
12
|
export declare const NavigationTab: {
|
|
7
13
|
readonly Waypoints: "Waypoints";
|
package/package.json
CHANGED
|
@@ -1,8 +1,165 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viamrobotics/test-widgets",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"wireit": {
|
|
7
|
+
"build": {
|
|
8
|
+
"dependencies": [
|
|
9
|
+
"vite-build",
|
|
10
|
+
"package"
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
"package": {
|
|
14
|
+
"command": "svelte-package && publint",
|
|
15
|
+
"files": [
|
|
16
|
+
"src/lib/**",
|
|
17
|
+
"svelte.config.js",
|
|
18
|
+
"tsconfig.json",
|
|
19
|
+
"package.json"
|
|
20
|
+
],
|
|
21
|
+
"output": [
|
|
22
|
+
"dist/**"
|
|
23
|
+
],
|
|
24
|
+
"dependencies": [
|
|
25
|
+
"svelte-sync"
|
|
26
|
+
],
|
|
27
|
+
"packageLocks": [
|
|
28
|
+
"pnpm-lock.yaml"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"vite-build": {
|
|
32
|
+
"command": "vite build",
|
|
33
|
+
"files": [
|
|
34
|
+
"src/**",
|
|
35
|
+
"static/**",
|
|
36
|
+
".env",
|
|
37
|
+
".env.*",
|
|
38
|
+
"vite.config.ts",
|
|
39
|
+
"svelte.config.js",
|
|
40
|
+
"postcss.config.js",
|
|
41
|
+
"tsconfig.json",
|
|
42
|
+
"package.json"
|
|
43
|
+
],
|
|
44
|
+
"output": [
|
|
45
|
+
"build/**",
|
|
46
|
+
".svelte-kit/output/**"
|
|
47
|
+
],
|
|
48
|
+
"dependencies": [
|
|
49
|
+
"svelte-sync",
|
|
50
|
+
"package"
|
|
51
|
+
],
|
|
52
|
+
"packageLocks": [
|
|
53
|
+
"pnpm-lock.yaml"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
"svelte-sync": {
|
|
57
|
+
"command": "svelte-kit sync",
|
|
58
|
+
"files": [
|
|
59
|
+
"svelte.config.js",
|
|
60
|
+
"src/**",
|
|
61
|
+
"tsconfig.json",
|
|
62
|
+
"package.json"
|
|
63
|
+
],
|
|
64
|
+
"output": [
|
|
65
|
+
".svelte-kit/generated/**",
|
|
66
|
+
".svelte-kit/types/**",
|
|
67
|
+
".svelte-kit/ambient.d.ts",
|
|
68
|
+
".svelte-kit/non-ambient.d.ts",
|
|
69
|
+
".svelte-kit/tsconfig.json"
|
|
70
|
+
],
|
|
71
|
+
"packageLocks": [
|
|
72
|
+
"pnpm-lock.yaml"
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"prepack": {
|
|
76
|
+
"dependencies": [
|
|
77
|
+
"package"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"check": {
|
|
81
|
+
"command": "svelte-check --tsconfig ./tsconfig.json --fail-on-warnings",
|
|
82
|
+
"files": [
|
|
83
|
+
"src/**",
|
|
84
|
+
"tsconfig.json",
|
|
85
|
+
"svelte.config.js",
|
|
86
|
+
"package.json"
|
|
87
|
+
],
|
|
88
|
+
"output": [],
|
|
89
|
+
"dependencies": [
|
|
90
|
+
"svelte-sync"
|
|
91
|
+
],
|
|
92
|
+
"packageLocks": [
|
|
93
|
+
"pnpm-lock.yaml"
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
"lint": {
|
|
97
|
+
"command": "eslint . --concurrency auto",
|
|
98
|
+
"files": [
|
|
99
|
+
"**",
|
|
100
|
+
"!build/**",
|
|
101
|
+
"!dist/**",
|
|
102
|
+
"!.svelte-kit/**",
|
|
103
|
+
"!coverage/**",
|
|
104
|
+
"!test-results/**",
|
|
105
|
+
"!.env*",
|
|
106
|
+
"!**/*.tgz"
|
|
107
|
+
],
|
|
108
|
+
"output": [],
|
|
109
|
+
"packageLocks": [
|
|
110
|
+
"pnpm-lock.yaml"
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"format": {
|
|
114
|
+
"command": "prettier --check .",
|
|
115
|
+
"files": [
|
|
116
|
+
"**",
|
|
117
|
+
"!build/**",
|
|
118
|
+
"!dist/**",
|
|
119
|
+
"!.svelte-kit/**",
|
|
120
|
+
"!coverage/**",
|
|
121
|
+
"!test-results/**",
|
|
122
|
+
"!.env*",
|
|
123
|
+
"!**/*.tgz"
|
|
124
|
+
],
|
|
125
|
+
"output": [],
|
|
126
|
+
"packageLocks": [
|
|
127
|
+
"pnpm-lock.yaml"
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
"test": {
|
|
131
|
+
"command": "vitest --run",
|
|
132
|
+
"files": [
|
|
133
|
+
"src/**",
|
|
134
|
+
"vite.config.ts",
|
|
135
|
+
"svelte.config.js",
|
|
136
|
+
"postcss.config.js",
|
|
137
|
+
"tsconfig.json",
|
|
138
|
+
"package.json"
|
|
139
|
+
],
|
|
140
|
+
"output": [],
|
|
141
|
+
"packageLocks": [
|
|
142
|
+
"pnpm-lock.yaml"
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
"test:coverage": {
|
|
146
|
+
"command": "vitest run --coverage",
|
|
147
|
+
"files": [
|
|
148
|
+
"src/**",
|
|
149
|
+
"vite.config.ts",
|
|
150
|
+
"svelte.config.js",
|
|
151
|
+
"postcss.config.js",
|
|
152
|
+
"tsconfig.json",
|
|
153
|
+
"package.json"
|
|
154
|
+
],
|
|
155
|
+
"output": [
|
|
156
|
+
"coverage/**"
|
|
157
|
+
],
|
|
158
|
+
"packageLocks": [
|
|
159
|
+
"pnpm-lock.yaml"
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
},
|
|
6
163
|
"files": [
|
|
7
164
|
"dist",
|
|
8
165
|
"!dist/**/*.test.*",
|
|
@@ -37,7 +194,6 @@
|
|
|
37
194
|
"@viamrobotics/prime-core": ">=0.1",
|
|
38
195
|
"@viamrobotics/sdk": ">=0.68",
|
|
39
196
|
"@viamrobotics/svelte-sdk": ">=1.1",
|
|
40
|
-
"@viamrobotics/three": ">=0.0.9",
|
|
41
197
|
"lodash-es": ">=4",
|
|
42
198
|
"maplibre-gl": ">=5",
|
|
43
199
|
"runed": ">=0.28",
|
|
@@ -46,9 +202,6 @@
|
|
|
46
202
|
"threlte-uikit": ">=2"
|
|
47
203
|
},
|
|
48
204
|
"peerDependenciesMeta": {
|
|
49
|
-
"@viamrobotics/three": {
|
|
50
|
-
"optional": true
|
|
51
|
-
},
|
|
52
205
|
"maplibre-gl": {
|
|
53
206
|
"optional": true
|
|
54
207
|
}
|
|
@@ -87,8 +240,7 @@
|
|
|
87
240
|
"@viamrobotics/sdk": "^0.69.0",
|
|
88
241
|
"@viamrobotics/svelte-sdk": "^1.2.1",
|
|
89
242
|
"@viamrobotics/tailwind-config": "^1.0.0",
|
|
90
|
-
"@
|
|
91
|
-
"@vitest/browser": "^4.1.8",
|
|
243
|
+
"@vitest/browser": "^4.1.10",
|
|
92
244
|
"@vitest/browser-playwright": "^4.1.5",
|
|
93
245
|
"@vitest/coverage-v8": "^4.1.5",
|
|
94
246
|
"@zag-js/dialog": "^1.37.0",
|
|
@@ -121,7 +273,8 @@
|
|
|
121
273
|
"vite-plugin-devtools-json": "^1.0.0",
|
|
122
274
|
"vite-plugin-glsl": "^1.6.0",
|
|
123
275
|
"vitest": "^4.1.5",
|
|
124
|
-
"vitest-browser-svelte": "^2.1.1"
|
|
276
|
+
"vitest-browser-svelte": "^2.1.1",
|
|
277
|
+
"wireit": "^0.14.13"
|
|
125
278
|
},
|
|
126
279
|
"engines": {
|
|
127
280
|
"node": ">=22.12.0"
|
|
@@ -131,16 +284,20 @@
|
|
|
131
284
|
},
|
|
132
285
|
"scripts": {
|
|
133
286
|
"dev": "vite dev",
|
|
134
|
-
"build": "
|
|
287
|
+
"build": "wireit",
|
|
288
|
+
"vite-build": "wireit",
|
|
289
|
+
"package": "wireit",
|
|
290
|
+
"svelte-sync": "wireit",
|
|
135
291
|
"preview": "vite preview",
|
|
136
|
-
"check": "
|
|
292
|
+
"check": "wireit",
|
|
137
293
|
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
138
|
-
"lint": "
|
|
294
|
+
"lint": "wireit",
|
|
139
295
|
"lint:fix": "eslint . --fix --concurrency auto",
|
|
140
|
-
"format": "
|
|
296
|
+
"format": "wireit",
|
|
141
297
|
"format:fix": "prettier --write .",
|
|
142
298
|
"test:unit": "vitest",
|
|
143
|
-
"test": "
|
|
299
|
+
"test": "wireit",
|
|
300
|
+
"test:coverage": "wireit",
|
|
144
301
|
"test:e2e": "playwright test",
|
|
145
302
|
"release": "changeset publish"
|
|
146
303
|
}
|