@viamrobotics/motion-tools 1.9.1 → 1.11.0
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/HoverUpdater.svelte.d.ts +16 -0
- package/dist/HoverUpdater.svelte.js +78 -0
- package/dist/WorldObject.svelte.d.ts +27 -0
- package/dist/WorldObject.svelte.js +8 -55
- package/dist/{draw → buf/draw}/v1/drawing_pb.d.ts +6 -0
- package/dist/{draw → buf/draw}/v1/drawing_pb.js +7 -0
- package/dist/buf/draw/v1/service_connect.d.ts +122 -0
- package/dist/buf/draw/v1/service_connect.js +126 -0
- package/dist/buf/draw/v1/service_pb.d.ts +382 -0
- package/dist/buf/draw/v1/service_pb.js +612 -0
- package/dist/components/App.svelte +28 -30
- package/dist/components/Arrows/Arrows.svelte +16 -3
- package/dist/components/FileDrop/file-dropper.d.ts +1 -1
- package/dist/components/FileDrop/snapshot-dropper.js +1 -1
- package/dist/components/FileDrop/useFileDrop.svelte.d.ts +2 -1
- package/dist/components/Frame.svelte +1 -1
- package/dist/components/Geometry.svelte +113 -71
- package/dist/components/Geometry.svelte.d.ts +6 -7
- package/dist/components/MeasureTool/MeasurePoint.svelte +3 -3
- package/dist/components/MeasureTool/MeasureTool.svelte +6 -6
- package/dist/components/SceneProviders.svelte +4 -0
- package/dist/components/Snapshot.svelte +1 -1
- package/dist/components/Snapshot.svelte.d.ts +1 -1
- package/dist/components/hover/HoveredEntities.svelte +23 -0
- package/dist/components/hover/HoveredEntity.svelte +15 -0
- package/dist/components/hover/HoveredEntity.svelte.d.ts +3 -0
- package/dist/components/hover/HoveredEntityTooltip.svelte +70 -0
- package/dist/components/{HoveredEntityTooltip.svelte.d.ts → hover/HoveredEntityTooltip.svelte.d.ts} +2 -2
- package/dist/components/hover/LinkedHoveredEntity.svelte +55 -0
- package/dist/components/hover/LinkedHoveredEntity.svelte.d.ts +9 -0
- package/dist/components/overlay/AddRelationship.svelte +131 -0
- package/dist/components/overlay/AddRelationship.svelte.d.ts +7 -0
- package/dist/components/overlay/Details.svelte +55 -2
- package/dist/components/overlay/FloatingPanel.svelte +78 -0
- package/dist/components/overlay/FloatingPanel.svelte.d.ts +13 -0
- package/dist/components/overlay/{left-pane/RefreshRate.svelte → RefreshRate.svelte} +1 -1
- package/dist/components/overlay/ToggleGroup.svelte +22 -26
- package/dist/components/overlay/ToggleGroup.svelte.d.ts +6 -7
- package/dist/components/overlay/left-pane/TreeContainer.svelte +0 -4
- package/dist/components/overlay/settings/Settings.svelte +330 -0
- package/dist/components/overlay/settings/Tabs.svelte +54 -0
- package/dist/components/overlay/settings/Tabs.svelte.d.ts +12 -0
- package/dist/components/overlay/widgets/Camera.svelte +20 -12
- package/dist/components/xr/ArmTeleop.svelte +469 -0
- package/dist/components/xr/ArmTeleop.svelte.d.ts +10 -0
- package/dist/components/xr/CameraFeed.svelte +191 -47
- package/dist/components/xr/CameraFeed.svelte.d.ts +7 -0
- package/dist/components/xr/Controllers.svelte +45 -38
- package/dist/components/xr/Controllers.svelte.d.ts +2 -17
- package/dist/components/xr/Hands.svelte +2 -4
- package/dist/components/xr/JointLimitsWidget.svelte +209 -0
- package/dist/components/xr/JointLimitsWidget.svelte.d.ts +13 -0
- package/dist/components/xr/OriginMarker.svelte +1 -15
- package/dist/components/xr/XR.svelte +78 -5
- package/dist/components/xr/XRConfigPanel.svelte +449 -0
- package/dist/components/xr/XRConfigPanel.svelte.d.ts +11 -0
- package/dist/components/xr/XRControllerSettings.svelte +240 -0
- package/dist/components/xr/XRControllerSettings.svelte.d.ts +3 -0
- package/dist/components/xr/XRToast.svelte +215 -0
- package/dist/components/xr/XRToast.svelte.d.ts +3 -0
- package/dist/components/xr/math.d.ts +14 -0
- package/dist/components/xr/math.js +26 -0
- package/dist/components/xr/toasts.svelte.d.ts +20 -0
- package/dist/components/xr/toasts.svelte.js +32 -0
- package/dist/components/xr/useOrigin.svelte.d.ts +2 -2
- package/dist/components/xr/useOrigin.svelte.js +4 -4
- package/dist/ecs/index.d.ts +1 -0
- package/dist/ecs/index.js +1 -0
- package/dist/ecs/relations.d.ts +7 -0
- package/dist/ecs/relations.js +7 -0
- package/dist/ecs/traits.d.ts +15 -1
- package/dist/ecs/traits.js +19 -5
- package/dist/ecs/useTrait.svelte.d.ts +3 -3
- package/dist/frame.d.ts +0 -3
- package/dist/hooks/useArmKinematics.svelte.d.ts +12 -0
- package/dist/hooks/useArmKinematics.svelte.js +31 -0
- package/dist/hooks/useGeometries.svelte.js +47 -36
- package/dist/hooks/useLinked.svelte.d.ts +7 -0
- package/dist/hooks/useLinked.svelte.js +35 -0
- package/dist/hooks/useObjectEvents.svelte.js +52 -16
- package/dist/hooks/usePartConfig.svelte.d.ts +0 -35
- package/dist/hooks/usePartConfig.svelte.js +2 -2
- package/dist/hooks/usePointcloudObjects.svelte.js +45 -64
- package/dist/hooks/usePointclouds.svelte.js +13 -9
- package/dist/hooks/usePose.svelte.js +5 -2
- package/dist/hooks/useResourceByName.svelte.d.ts +7 -0
- package/dist/hooks/useResourceByName.svelte.js +2 -2
- package/dist/hooks/useSettings.svelte.d.ts +14 -0
- package/dist/hooks/useSettings.svelte.js +10 -0
- package/dist/hooks/useWorldState.svelte.d.ts +0 -8
- package/dist/lib.d.ts +1 -3
- package/dist/lib.js +1 -3
- package/dist/snapshot.d.ts +2 -2
- package/dist/snapshot.js +2 -2
- package/dist/three/InstancedArrows/raycast.d.ts +2 -4
- package/dist/three/InstancedArrows/raycast.js +5 -5
- package/dist/transform.js +1 -0
- package/package.json +7 -5
- package/dist/assert.d.ts +0 -14
- package/dist/assert.js +0 -21
- package/dist/components/BatchedGeometry.svelte +0 -0
- package/dist/components/BatchedGeometry.svelte.d.ts +0 -26
- package/dist/components/Detections.svelte +0 -41
- package/dist/components/Detections.svelte.d.ts +0 -3
- package/dist/components/DetectionsPlane.svelte +0 -23
- package/dist/components/DetectionsPlane.svelte.d.ts +0 -21
- package/dist/components/Geometry2.svelte +0 -211
- package/dist/components/Geometry2.svelte.d.ts +0 -19
- package/dist/components/HoveredEntities.svelte +0 -19
- package/dist/components/HoveredEntityTooltip.svelte +0 -242
- package/dist/components/overlay/left-pane/Settings.svelte +0 -221
- package/dist/components/overlay/left-pane/Widgets.svelte +0 -65
- package/dist/components/overlay/left-pane/Widgets.svelte.d.ts +0 -3
- package/dist/entries.d.ts +0 -1
- package/dist/entries.js +0 -3
- package/dist/hooks/index.d.ts +0 -0
- package/dist/hooks/index.js +0 -1
- package/dist/test.d.ts +0 -1
- package/dist/test.js +0 -1
- package/dist/three/BoxHelper.d.ts +0 -50
- package/dist/three/BoxHelper.js +0 -134
- /package/dist/{common → buf/common}/v1/common_pb.d.ts +0 -0
- /package/dist/{common → buf/common}/v1/common_pb.js +0 -0
- /package/dist/{draw → buf/draw}/v1/metadata_pb.d.ts +0 -0
- /package/dist/{draw → buf/draw}/v1/metadata_pb.js +0 -0
- /package/dist/{draw → buf/draw}/v1/scene_pb.d.ts +0 -0
- /package/dist/{draw → buf/draw}/v1/scene_pb.js +0 -0
- /package/dist/{draw → buf/draw}/v1/snapshot_pb.d.ts +0 -0
- /package/dist/{draw → buf/draw}/v1/snapshot_pb.js +0 -0
- /package/dist/{draw → buf/draw}/v1/transforms_pb.d.ts +0 -0
- /package/dist/{draw → buf/draw}/v1/transforms_pb.js +0 -0
- /package/dist/components/{HoveredEntities.svelte.d.ts → hover/HoveredEntities.svelte.d.ts} +0 -0
- /package/dist/components/overlay/{left-pane/RefreshRate.svelte.d.ts → RefreshRate.svelte.d.ts} +0 -0
- /package/dist/components/overlay/{left-pane → settings}/Settings.svelte.d.ts +0 -0
- /package/dist/components/{BentPlaneGeometry.svelte → xr/BentPlaneGeometry.svelte} +0 -0
- /package/dist/components/{BentPlaneGeometry.svelte.d.ts → xr/BentPlaneGeometry.svelte.d.ts} +0 -0
|
@@ -0,0 +1,612 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=none"
|
|
2
|
+
// @generated from file draw/v1/service.proto (package draw.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { FieldMask, Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
+
import { Transform } from "../../common/v1/common_pb";
|
|
7
|
+
import { Drawing } from "./drawing_pb";
|
|
8
|
+
import { SceneMetadata } from "./scene_pb";
|
|
9
|
+
/**
|
|
10
|
+
* @generated from enum draw.v1.ChangeType
|
|
11
|
+
*/
|
|
12
|
+
export var ChangeType;
|
|
13
|
+
(function (ChangeType) {
|
|
14
|
+
/**
|
|
15
|
+
* @generated from enum value: CHANGE_TYPE_UNSPECIFIED = 0;
|
|
16
|
+
*/
|
|
17
|
+
ChangeType[ChangeType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
18
|
+
/**
|
|
19
|
+
* @generated from enum value: CHANGE_TYPE_ADDED = 1;
|
|
20
|
+
*/
|
|
21
|
+
ChangeType[ChangeType["ADDED"] = 1] = "ADDED";
|
|
22
|
+
/**
|
|
23
|
+
* @generated from enum value: CHANGE_TYPE_REMOVED = 2;
|
|
24
|
+
*/
|
|
25
|
+
ChangeType[ChangeType["REMOVED"] = 2] = "REMOVED";
|
|
26
|
+
/**
|
|
27
|
+
* @generated from enum value: CHANGE_TYPE_UPDATED = 3;
|
|
28
|
+
*/
|
|
29
|
+
ChangeType[ChangeType["UPDATED"] = 3] = "UPDATED";
|
|
30
|
+
})(ChangeType || (ChangeType = {}));
|
|
31
|
+
// Retrieve enum metadata with: proto3.getEnumType(ChangeType)
|
|
32
|
+
proto3.util.setEnumType(ChangeType, "draw.v1.ChangeType", [
|
|
33
|
+
{ no: 0, name: "CHANGE_TYPE_UNSPECIFIED" },
|
|
34
|
+
{ no: 1, name: "CHANGE_TYPE_ADDED" },
|
|
35
|
+
{ no: 2, name: "CHANGE_TYPE_REMOVED" },
|
|
36
|
+
{ no: 3, name: "CHANGE_TYPE_UPDATED" },
|
|
37
|
+
]);
|
|
38
|
+
/**
|
|
39
|
+
* @generated from message draw.v1.AddEntityRequest
|
|
40
|
+
*/
|
|
41
|
+
export class AddEntityRequest extends Message {
|
|
42
|
+
/**
|
|
43
|
+
* @generated from oneof draw.v1.AddEntityRequest.entity
|
|
44
|
+
*/
|
|
45
|
+
entity = { case: undefined };
|
|
46
|
+
constructor(data) {
|
|
47
|
+
super();
|
|
48
|
+
proto3.util.initPartial(data, this);
|
|
49
|
+
}
|
|
50
|
+
static runtime = proto3;
|
|
51
|
+
static typeName = "draw.v1.AddEntityRequest";
|
|
52
|
+
static fields = proto3.util.newFieldList(() => [
|
|
53
|
+
{ no: 1, name: "transform", kind: "message", T: Transform, oneof: "entity" },
|
|
54
|
+
{ no: 2, name: "drawing", kind: "message", T: Drawing, oneof: "entity" },
|
|
55
|
+
]);
|
|
56
|
+
static fromBinary(bytes, options) {
|
|
57
|
+
return new AddEntityRequest().fromBinary(bytes, options);
|
|
58
|
+
}
|
|
59
|
+
static fromJson(jsonValue, options) {
|
|
60
|
+
return new AddEntityRequest().fromJson(jsonValue, options);
|
|
61
|
+
}
|
|
62
|
+
static fromJsonString(jsonString, options) {
|
|
63
|
+
return new AddEntityRequest().fromJsonString(jsonString, options);
|
|
64
|
+
}
|
|
65
|
+
static equals(a, b) {
|
|
66
|
+
return proto3.util.equals(AddEntityRequest, a, b);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* @generated from message draw.v1.AddEntityResponse
|
|
71
|
+
*/
|
|
72
|
+
export class AddEntityResponse extends Message {
|
|
73
|
+
/**
|
|
74
|
+
* @generated from field: bytes uuid = 1;
|
|
75
|
+
*/
|
|
76
|
+
uuid = new Uint8Array(0);
|
|
77
|
+
constructor(data) {
|
|
78
|
+
super();
|
|
79
|
+
proto3.util.initPartial(data, this);
|
|
80
|
+
}
|
|
81
|
+
static runtime = proto3;
|
|
82
|
+
static typeName = "draw.v1.AddEntityResponse";
|
|
83
|
+
static fields = proto3.util.newFieldList(() => [
|
|
84
|
+
{ no: 1, name: "uuid", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
85
|
+
]);
|
|
86
|
+
static fromBinary(bytes, options) {
|
|
87
|
+
return new AddEntityResponse().fromBinary(bytes, options);
|
|
88
|
+
}
|
|
89
|
+
static fromJson(jsonValue, options) {
|
|
90
|
+
return new AddEntityResponse().fromJson(jsonValue, options);
|
|
91
|
+
}
|
|
92
|
+
static fromJsonString(jsonString, options) {
|
|
93
|
+
return new AddEntityResponse().fromJsonString(jsonString, options);
|
|
94
|
+
}
|
|
95
|
+
static equals(a, b) {
|
|
96
|
+
return proto3.util.equals(AddEntityResponse, a, b);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* @generated from message draw.v1.UpdateEntityRequest
|
|
101
|
+
*/
|
|
102
|
+
export class UpdateEntityRequest extends Message {
|
|
103
|
+
/**
|
|
104
|
+
* @generated from field: bytes uuid = 1;
|
|
105
|
+
*/
|
|
106
|
+
uuid = new Uint8Array(0);
|
|
107
|
+
/**
|
|
108
|
+
* @generated from oneof draw.v1.UpdateEntityRequest.entity
|
|
109
|
+
*/
|
|
110
|
+
entity = { case: undefined };
|
|
111
|
+
/**
|
|
112
|
+
* The fields to update on the entity. If empty, all fields are replaced.
|
|
113
|
+
*
|
|
114
|
+
* @generated from field: google.protobuf.FieldMask updated_fields = 4;
|
|
115
|
+
*/
|
|
116
|
+
updatedFields;
|
|
117
|
+
constructor(data) {
|
|
118
|
+
super();
|
|
119
|
+
proto3.util.initPartial(data, this);
|
|
120
|
+
}
|
|
121
|
+
static runtime = proto3;
|
|
122
|
+
static typeName = "draw.v1.UpdateEntityRequest";
|
|
123
|
+
static fields = proto3.util.newFieldList(() => [
|
|
124
|
+
{ no: 1, name: "uuid", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
125
|
+
{ no: 2, name: "transform", kind: "message", T: Transform, oneof: "entity" },
|
|
126
|
+
{ no: 3, name: "drawing", kind: "message", T: Drawing, oneof: "entity" },
|
|
127
|
+
{ no: 4, name: "updated_fields", kind: "message", T: FieldMask },
|
|
128
|
+
]);
|
|
129
|
+
static fromBinary(bytes, options) {
|
|
130
|
+
return new UpdateEntityRequest().fromBinary(bytes, options);
|
|
131
|
+
}
|
|
132
|
+
static fromJson(jsonValue, options) {
|
|
133
|
+
return new UpdateEntityRequest().fromJson(jsonValue, options);
|
|
134
|
+
}
|
|
135
|
+
static fromJsonString(jsonString, options) {
|
|
136
|
+
return new UpdateEntityRequest().fromJsonString(jsonString, options);
|
|
137
|
+
}
|
|
138
|
+
static equals(a, b) {
|
|
139
|
+
return proto3.util.equals(UpdateEntityRequest, a, b);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* @generated from message draw.v1.UpdateEntityResponse
|
|
144
|
+
*/
|
|
145
|
+
export class UpdateEntityResponse extends Message {
|
|
146
|
+
constructor(data) {
|
|
147
|
+
super();
|
|
148
|
+
proto3.util.initPartial(data, this);
|
|
149
|
+
}
|
|
150
|
+
static runtime = proto3;
|
|
151
|
+
static typeName = "draw.v1.UpdateEntityResponse";
|
|
152
|
+
static fields = proto3.util.newFieldList(() => []);
|
|
153
|
+
static fromBinary(bytes, options) {
|
|
154
|
+
return new UpdateEntityResponse().fromBinary(bytes, options);
|
|
155
|
+
}
|
|
156
|
+
static fromJson(jsonValue, options) {
|
|
157
|
+
return new UpdateEntityResponse().fromJson(jsonValue, options);
|
|
158
|
+
}
|
|
159
|
+
static fromJsonString(jsonString, options) {
|
|
160
|
+
return new UpdateEntityResponse().fromJsonString(jsonString, options);
|
|
161
|
+
}
|
|
162
|
+
static equals(a, b) {
|
|
163
|
+
return proto3.util.equals(UpdateEntityResponse, a, b);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* @generated from message draw.v1.RemoveEntityRequest
|
|
168
|
+
*/
|
|
169
|
+
export class RemoveEntityRequest extends Message {
|
|
170
|
+
/**
|
|
171
|
+
* @generated from field: bytes uuid = 1;
|
|
172
|
+
*/
|
|
173
|
+
uuid = new Uint8Array(0);
|
|
174
|
+
constructor(data) {
|
|
175
|
+
super();
|
|
176
|
+
proto3.util.initPartial(data, this);
|
|
177
|
+
}
|
|
178
|
+
static runtime = proto3;
|
|
179
|
+
static typeName = "draw.v1.RemoveEntityRequest";
|
|
180
|
+
static fields = proto3.util.newFieldList(() => [
|
|
181
|
+
{ no: 1, name: "uuid", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
182
|
+
]);
|
|
183
|
+
static fromBinary(bytes, options) {
|
|
184
|
+
return new RemoveEntityRequest().fromBinary(bytes, options);
|
|
185
|
+
}
|
|
186
|
+
static fromJson(jsonValue, options) {
|
|
187
|
+
return new RemoveEntityRequest().fromJson(jsonValue, options);
|
|
188
|
+
}
|
|
189
|
+
static fromJsonString(jsonString, options) {
|
|
190
|
+
return new RemoveEntityRequest().fromJsonString(jsonString, options);
|
|
191
|
+
}
|
|
192
|
+
static equals(a, b) {
|
|
193
|
+
return proto3.util.equals(RemoveEntityRequest, a, b);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* @generated from message draw.v1.RemoveEntityResponse
|
|
198
|
+
*/
|
|
199
|
+
export class RemoveEntityResponse extends Message {
|
|
200
|
+
constructor(data) {
|
|
201
|
+
super();
|
|
202
|
+
proto3.util.initPartial(data, this);
|
|
203
|
+
}
|
|
204
|
+
static runtime = proto3;
|
|
205
|
+
static typeName = "draw.v1.RemoveEntityResponse";
|
|
206
|
+
static fields = proto3.util.newFieldList(() => []);
|
|
207
|
+
static fromBinary(bytes, options) {
|
|
208
|
+
return new RemoveEntityResponse().fromBinary(bytes, options);
|
|
209
|
+
}
|
|
210
|
+
static fromJson(jsonValue, options) {
|
|
211
|
+
return new RemoveEntityResponse().fromJson(jsonValue, options);
|
|
212
|
+
}
|
|
213
|
+
static fromJsonString(jsonString, options) {
|
|
214
|
+
return new RemoveEntityResponse().fromJsonString(jsonString, options);
|
|
215
|
+
}
|
|
216
|
+
static equals(a, b) {
|
|
217
|
+
return proto3.util.equals(RemoveEntityResponse, a, b);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* @generated from message draw.v1.RemoveAllTransformsRequest
|
|
222
|
+
*/
|
|
223
|
+
export class RemoveAllTransformsRequest extends Message {
|
|
224
|
+
constructor(data) {
|
|
225
|
+
super();
|
|
226
|
+
proto3.util.initPartial(data, this);
|
|
227
|
+
}
|
|
228
|
+
static runtime = proto3;
|
|
229
|
+
static typeName = "draw.v1.RemoveAllTransformsRequest";
|
|
230
|
+
static fields = proto3.util.newFieldList(() => []);
|
|
231
|
+
static fromBinary(bytes, options) {
|
|
232
|
+
return new RemoveAllTransformsRequest().fromBinary(bytes, options);
|
|
233
|
+
}
|
|
234
|
+
static fromJson(jsonValue, options) {
|
|
235
|
+
return new RemoveAllTransformsRequest().fromJson(jsonValue, options);
|
|
236
|
+
}
|
|
237
|
+
static fromJsonString(jsonString, options) {
|
|
238
|
+
return new RemoveAllTransformsRequest().fromJsonString(jsonString, options);
|
|
239
|
+
}
|
|
240
|
+
static equals(a, b) {
|
|
241
|
+
return proto3.util.equals(RemoveAllTransformsRequest, a, b);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* @generated from message draw.v1.RemoveAllTransformsResponse
|
|
246
|
+
*/
|
|
247
|
+
export class RemoveAllTransformsResponse extends Message {
|
|
248
|
+
/**
|
|
249
|
+
* @generated from field: int32 count = 1;
|
|
250
|
+
*/
|
|
251
|
+
count = 0;
|
|
252
|
+
constructor(data) {
|
|
253
|
+
super();
|
|
254
|
+
proto3.util.initPartial(data, this);
|
|
255
|
+
}
|
|
256
|
+
static runtime = proto3;
|
|
257
|
+
static typeName = "draw.v1.RemoveAllTransformsResponse";
|
|
258
|
+
static fields = proto3.util.newFieldList(() => [
|
|
259
|
+
{ no: 1, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
260
|
+
]);
|
|
261
|
+
static fromBinary(bytes, options) {
|
|
262
|
+
return new RemoveAllTransformsResponse().fromBinary(bytes, options);
|
|
263
|
+
}
|
|
264
|
+
static fromJson(jsonValue, options) {
|
|
265
|
+
return new RemoveAllTransformsResponse().fromJson(jsonValue, options);
|
|
266
|
+
}
|
|
267
|
+
static fromJsonString(jsonString, options) {
|
|
268
|
+
return new RemoveAllTransformsResponse().fromJsonString(jsonString, options);
|
|
269
|
+
}
|
|
270
|
+
static equals(a, b) {
|
|
271
|
+
return proto3.util.equals(RemoveAllTransformsResponse, a, b);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* @generated from message draw.v1.StreamTransformChangesRequest
|
|
276
|
+
*/
|
|
277
|
+
export class StreamTransformChangesRequest extends Message {
|
|
278
|
+
constructor(data) {
|
|
279
|
+
super();
|
|
280
|
+
proto3.util.initPartial(data, this);
|
|
281
|
+
}
|
|
282
|
+
static runtime = proto3;
|
|
283
|
+
static typeName = "draw.v1.StreamTransformChangesRequest";
|
|
284
|
+
static fields = proto3.util.newFieldList(() => []);
|
|
285
|
+
static fromBinary(bytes, options) {
|
|
286
|
+
return new StreamTransformChangesRequest().fromBinary(bytes, options);
|
|
287
|
+
}
|
|
288
|
+
static fromJson(jsonValue, options) {
|
|
289
|
+
return new StreamTransformChangesRequest().fromJson(jsonValue, options);
|
|
290
|
+
}
|
|
291
|
+
static fromJsonString(jsonString, options) {
|
|
292
|
+
return new StreamTransformChangesRequest().fromJsonString(jsonString, options);
|
|
293
|
+
}
|
|
294
|
+
static equals(a, b) {
|
|
295
|
+
return proto3.util.equals(StreamTransformChangesRequest, a, b);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* @generated from message draw.v1.StreamTransformChangesResponse
|
|
300
|
+
*/
|
|
301
|
+
export class StreamTransformChangesResponse extends Message {
|
|
302
|
+
/**
|
|
303
|
+
* @generated from field: draw.v1.ChangeType change_type = 1;
|
|
304
|
+
*/
|
|
305
|
+
changeType = ChangeType.UNSPECIFIED;
|
|
306
|
+
/**
|
|
307
|
+
* @generated from field: viam.common.v1.Transform transform = 2;
|
|
308
|
+
*/
|
|
309
|
+
transform;
|
|
310
|
+
constructor(data) {
|
|
311
|
+
super();
|
|
312
|
+
proto3.util.initPartial(data, this);
|
|
313
|
+
}
|
|
314
|
+
static runtime = proto3;
|
|
315
|
+
static typeName = "draw.v1.StreamTransformChangesResponse";
|
|
316
|
+
static fields = proto3.util.newFieldList(() => [
|
|
317
|
+
{ no: 1, name: "change_type", kind: "enum", T: proto3.getEnumType(ChangeType) },
|
|
318
|
+
{ no: 2, name: "transform", kind: "message", T: Transform },
|
|
319
|
+
]);
|
|
320
|
+
static fromBinary(bytes, options) {
|
|
321
|
+
return new StreamTransformChangesResponse().fromBinary(bytes, options);
|
|
322
|
+
}
|
|
323
|
+
static fromJson(jsonValue, options) {
|
|
324
|
+
return new StreamTransformChangesResponse().fromJson(jsonValue, options);
|
|
325
|
+
}
|
|
326
|
+
static fromJsonString(jsonString, options) {
|
|
327
|
+
return new StreamTransformChangesResponse().fromJsonString(jsonString, options);
|
|
328
|
+
}
|
|
329
|
+
static equals(a, b) {
|
|
330
|
+
return proto3.util.equals(StreamTransformChangesResponse, a, b);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* @generated from message draw.v1.RemoveAllDrawingsRequest
|
|
335
|
+
*/
|
|
336
|
+
export class RemoveAllDrawingsRequest extends Message {
|
|
337
|
+
constructor(data) {
|
|
338
|
+
super();
|
|
339
|
+
proto3.util.initPartial(data, this);
|
|
340
|
+
}
|
|
341
|
+
static runtime = proto3;
|
|
342
|
+
static typeName = "draw.v1.RemoveAllDrawingsRequest";
|
|
343
|
+
static fields = proto3.util.newFieldList(() => []);
|
|
344
|
+
static fromBinary(bytes, options) {
|
|
345
|
+
return new RemoveAllDrawingsRequest().fromBinary(bytes, options);
|
|
346
|
+
}
|
|
347
|
+
static fromJson(jsonValue, options) {
|
|
348
|
+
return new RemoveAllDrawingsRequest().fromJson(jsonValue, options);
|
|
349
|
+
}
|
|
350
|
+
static fromJsonString(jsonString, options) {
|
|
351
|
+
return new RemoveAllDrawingsRequest().fromJsonString(jsonString, options);
|
|
352
|
+
}
|
|
353
|
+
static equals(a, b) {
|
|
354
|
+
return proto3.util.equals(RemoveAllDrawingsRequest, a, b);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* @generated from message draw.v1.RemoveAllDrawingsResponse
|
|
359
|
+
*/
|
|
360
|
+
export class RemoveAllDrawingsResponse extends Message {
|
|
361
|
+
/**
|
|
362
|
+
* @generated from field: int32 count = 1;
|
|
363
|
+
*/
|
|
364
|
+
count = 0;
|
|
365
|
+
constructor(data) {
|
|
366
|
+
super();
|
|
367
|
+
proto3.util.initPartial(data, this);
|
|
368
|
+
}
|
|
369
|
+
static runtime = proto3;
|
|
370
|
+
static typeName = "draw.v1.RemoveAllDrawingsResponse";
|
|
371
|
+
static fields = proto3.util.newFieldList(() => [
|
|
372
|
+
{ no: 1, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
373
|
+
]);
|
|
374
|
+
static fromBinary(bytes, options) {
|
|
375
|
+
return new RemoveAllDrawingsResponse().fromBinary(bytes, options);
|
|
376
|
+
}
|
|
377
|
+
static fromJson(jsonValue, options) {
|
|
378
|
+
return new RemoveAllDrawingsResponse().fromJson(jsonValue, options);
|
|
379
|
+
}
|
|
380
|
+
static fromJsonString(jsonString, options) {
|
|
381
|
+
return new RemoveAllDrawingsResponse().fromJsonString(jsonString, options);
|
|
382
|
+
}
|
|
383
|
+
static equals(a, b) {
|
|
384
|
+
return proto3.util.equals(RemoveAllDrawingsResponse, a, b);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* @generated from message draw.v1.StreamDrawingChangesRequest
|
|
389
|
+
*/
|
|
390
|
+
export class StreamDrawingChangesRequest extends Message {
|
|
391
|
+
constructor(data) {
|
|
392
|
+
super();
|
|
393
|
+
proto3.util.initPartial(data, this);
|
|
394
|
+
}
|
|
395
|
+
static runtime = proto3;
|
|
396
|
+
static typeName = "draw.v1.StreamDrawingChangesRequest";
|
|
397
|
+
static fields = proto3.util.newFieldList(() => []);
|
|
398
|
+
static fromBinary(bytes, options) {
|
|
399
|
+
return new StreamDrawingChangesRequest().fromBinary(bytes, options);
|
|
400
|
+
}
|
|
401
|
+
static fromJson(jsonValue, options) {
|
|
402
|
+
return new StreamDrawingChangesRequest().fromJson(jsonValue, options);
|
|
403
|
+
}
|
|
404
|
+
static fromJsonString(jsonString, options) {
|
|
405
|
+
return new StreamDrawingChangesRequest().fromJsonString(jsonString, options);
|
|
406
|
+
}
|
|
407
|
+
static equals(a, b) {
|
|
408
|
+
return proto3.util.equals(StreamDrawingChangesRequest, a, b);
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* @generated from message draw.v1.StreamDrawingChangesResponse
|
|
413
|
+
*/
|
|
414
|
+
export class StreamDrawingChangesResponse extends Message {
|
|
415
|
+
/**
|
|
416
|
+
* @generated from field: draw.v1.ChangeType change_type = 1;
|
|
417
|
+
*/
|
|
418
|
+
changeType = ChangeType.UNSPECIFIED;
|
|
419
|
+
/**
|
|
420
|
+
* @generated from field: draw.v1.Drawing drawing = 2;
|
|
421
|
+
*/
|
|
422
|
+
drawing;
|
|
423
|
+
constructor(data) {
|
|
424
|
+
super();
|
|
425
|
+
proto3.util.initPartial(data, this);
|
|
426
|
+
}
|
|
427
|
+
static runtime = proto3;
|
|
428
|
+
static typeName = "draw.v1.StreamDrawingChangesResponse";
|
|
429
|
+
static fields = proto3.util.newFieldList(() => [
|
|
430
|
+
{ no: 1, name: "change_type", kind: "enum", T: proto3.getEnumType(ChangeType) },
|
|
431
|
+
{ no: 2, name: "drawing", kind: "message", T: Drawing },
|
|
432
|
+
]);
|
|
433
|
+
static fromBinary(bytes, options) {
|
|
434
|
+
return new StreamDrawingChangesResponse().fromBinary(bytes, options);
|
|
435
|
+
}
|
|
436
|
+
static fromJson(jsonValue, options) {
|
|
437
|
+
return new StreamDrawingChangesResponse().fromJson(jsonValue, options);
|
|
438
|
+
}
|
|
439
|
+
static fromJsonString(jsonString, options) {
|
|
440
|
+
return new StreamDrawingChangesResponse().fromJsonString(jsonString, options);
|
|
441
|
+
}
|
|
442
|
+
static equals(a, b) {
|
|
443
|
+
return proto3.util.equals(StreamDrawingChangesResponse, a, b);
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* @generated from message draw.v1.SetSceneMetadataRequest
|
|
448
|
+
*/
|
|
449
|
+
export class SetSceneMetadataRequest extends Message {
|
|
450
|
+
/**
|
|
451
|
+
* @generated from field: draw.v1.SceneMetadata scene_metadata = 1;
|
|
452
|
+
*/
|
|
453
|
+
sceneMetadata;
|
|
454
|
+
constructor(data) {
|
|
455
|
+
super();
|
|
456
|
+
proto3.util.initPartial(data, this);
|
|
457
|
+
}
|
|
458
|
+
static runtime = proto3;
|
|
459
|
+
static typeName = "draw.v1.SetSceneMetadataRequest";
|
|
460
|
+
static fields = proto3.util.newFieldList(() => [
|
|
461
|
+
{ no: 1, name: "scene_metadata", kind: "message", T: SceneMetadata },
|
|
462
|
+
]);
|
|
463
|
+
static fromBinary(bytes, options) {
|
|
464
|
+
return new SetSceneMetadataRequest().fromBinary(bytes, options);
|
|
465
|
+
}
|
|
466
|
+
static fromJson(jsonValue, options) {
|
|
467
|
+
return new SetSceneMetadataRequest().fromJson(jsonValue, options);
|
|
468
|
+
}
|
|
469
|
+
static fromJsonString(jsonString, options) {
|
|
470
|
+
return new SetSceneMetadataRequest().fromJsonString(jsonString, options);
|
|
471
|
+
}
|
|
472
|
+
static equals(a, b) {
|
|
473
|
+
return proto3.util.equals(SetSceneMetadataRequest, a, b);
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
/**
|
|
477
|
+
* @generated from message draw.v1.SetSceneMetadataResponse
|
|
478
|
+
*/
|
|
479
|
+
export class SetSceneMetadataResponse extends Message {
|
|
480
|
+
constructor(data) {
|
|
481
|
+
super();
|
|
482
|
+
proto3.util.initPartial(data, this);
|
|
483
|
+
}
|
|
484
|
+
static runtime = proto3;
|
|
485
|
+
static typeName = "draw.v1.SetSceneMetadataResponse";
|
|
486
|
+
static fields = proto3.util.newFieldList(() => []);
|
|
487
|
+
static fromBinary(bytes, options) {
|
|
488
|
+
return new SetSceneMetadataResponse().fromBinary(bytes, options);
|
|
489
|
+
}
|
|
490
|
+
static fromJson(jsonValue, options) {
|
|
491
|
+
return new SetSceneMetadataResponse().fromJson(jsonValue, options);
|
|
492
|
+
}
|
|
493
|
+
static fromJsonString(jsonString, options) {
|
|
494
|
+
return new SetSceneMetadataResponse().fromJsonString(jsonString, options);
|
|
495
|
+
}
|
|
496
|
+
static equals(a, b) {
|
|
497
|
+
return proto3.util.equals(SetSceneMetadataResponse, a, b);
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
* @generated from message draw.v1.StreamSceneChangesRequest
|
|
502
|
+
*/
|
|
503
|
+
export class StreamSceneChangesRequest extends Message {
|
|
504
|
+
constructor(data) {
|
|
505
|
+
super();
|
|
506
|
+
proto3.util.initPartial(data, this);
|
|
507
|
+
}
|
|
508
|
+
static runtime = proto3;
|
|
509
|
+
static typeName = "draw.v1.StreamSceneChangesRequest";
|
|
510
|
+
static fields = proto3.util.newFieldList(() => []);
|
|
511
|
+
static fromBinary(bytes, options) {
|
|
512
|
+
return new StreamSceneChangesRequest().fromBinary(bytes, options);
|
|
513
|
+
}
|
|
514
|
+
static fromJson(jsonValue, options) {
|
|
515
|
+
return new StreamSceneChangesRequest().fromJson(jsonValue, options);
|
|
516
|
+
}
|
|
517
|
+
static fromJsonString(jsonString, options) {
|
|
518
|
+
return new StreamSceneChangesRequest().fromJsonString(jsonString, options);
|
|
519
|
+
}
|
|
520
|
+
static equals(a, b) {
|
|
521
|
+
return proto3.util.equals(StreamSceneChangesRequest, a, b);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
/**
|
|
525
|
+
* @generated from message draw.v1.StreamSceneChangesResponse
|
|
526
|
+
*/
|
|
527
|
+
export class StreamSceneChangesResponse extends Message {
|
|
528
|
+
/**
|
|
529
|
+
* @generated from field: draw.v1.SceneMetadata scene_metadata = 1;
|
|
530
|
+
*/
|
|
531
|
+
sceneMetadata;
|
|
532
|
+
constructor(data) {
|
|
533
|
+
super();
|
|
534
|
+
proto3.util.initPartial(data, this);
|
|
535
|
+
}
|
|
536
|
+
static runtime = proto3;
|
|
537
|
+
static typeName = "draw.v1.StreamSceneChangesResponse";
|
|
538
|
+
static fields = proto3.util.newFieldList(() => [
|
|
539
|
+
{ no: 1, name: "scene_metadata", kind: "message", T: SceneMetadata },
|
|
540
|
+
]);
|
|
541
|
+
static fromBinary(bytes, options) {
|
|
542
|
+
return new StreamSceneChangesResponse().fromBinary(bytes, options);
|
|
543
|
+
}
|
|
544
|
+
static fromJson(jsonValue, options) {
|
|
545
|
+
return new StreamSceneChangesResponse().fromJson(jsonValue, options);
|
|
546
|
+
}
|
|
547
|
+
static fromJsonString(jsonString, options) {
|
|
548
|
+
return new StreamSceneChangesResponse().fromJsonString(jsonString, options);
|
|
549
|
+
}
|
|
550
|
+
static equals(a, b) {
|
|
551
|
+
return proto3.util.equals(StreamSceneChangesResponse, a, b);
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* @generated from message draw.v1.RemoveAllRequest
|
|
556
|
+
*/
|
|
557
|
+
export class RemoveAllRequest extends Message {
|
|
558
|
+
constructor(data) {
|
|
559
|
+
super();
|
|
560
|
+
proto3.util.initPartial(data, this);
|
|
561
|
+
}
|
|
562
|
+
static runtime = proto3;
|
|
563
|
+
static typeName = "draw.v1.RemoveAllRequest";
|
|
564
|
+
static fields = proto3.util.newFieldList(() => []);
|
|
565
|
+
static fromBinary(bytes, options) {
|
|
566
|
+
return new RemoveAllRequest().fromBinary(bytes, options);
|
|
567
|
+
}
|
|
568
|
+
static fromJson(jsonValue, options) {
|
|
569
|
+
return new RemoveAllRequest().fromJson(jsonValue, options);
|
|
570
|
+
}
|
|
571
|
+
static fromJsonString(jsonString, options) {
|
|
572
|
+
return new RemoveAllRequest().fromJsonString(jsonString, options);
|
|
573
|
+
}
|
|
574
|
+
static equals(a, b) {
|
|
575
|
+
return proto3.util.equals(RemoveAllRequest, a, b);
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
579
|
+
* @generated from message draw.v1.RemoveAllResponse
|
|
580
|
+
*/
|
|
581
|
+
export class RemoveAllResponse extends Message {
|
|
582
|
+
/**
|
|
583
|
+
* @generated from field: int32 transform_count = 1;
|
|
584
|
+
*/
|
|
585
|
+
transformCount = 0;
|
|
586
|
+
/**
|
|
587
|
+
* @generated from field: int32 drawing_count = 2;
|
|
588
|
+
*/
|
|
589
|
+
drawingCount = 0;
|
|
590
|
+
constructor(data) {
|
|
591
|
+
super();
|
|
592
|
+
proto3.util.initPartial(data, this);
|
|
593
|
+
}
|
|
594
|
+
static runtime = proto3;
|
|
595
|
+
static typeName = "draw.v1.RemoveAllResponse";
|
|
596
|
+
static fields = proto3.util.newFieldList(() => [
|
|
597
|
+
{ no: 1, name: "transform_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
598
|
+
{ no: 2, name: "drawing_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
599
|
+
]);
|
|
600
|
+
static fromBinary(bytes, options) {
|
|
601
|
+
return new RemoveAllResponse().fromBinary(bytes, options);
|
|
602
|
+
}
|
|
603
|
+
static fromJson(jsonValue, options) {
|
|
604
|
+
return new RemoveAllResponse().fromJson(jsonValue, options);
|
|
605
|
+
}
|
|
606
|
+
static fromJsonString(jsonString, options) {
|
|
607
|
+
return new RemoveAllResponse().fromJsonString(jsonString, options);
|
|
608
|
+
}
|
|
609
|
+
static equals(a, b) {
|
|
610
|
+
return proto3.util.equals(RemoveAllResponse, a, b);
|
|
611
|
+
}
|
|
612
|
+
}
|
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
type DrawConnectionConfig,
|
|
28
28
|
} from '../hooks/useDrawConnectionConfig.svelte'
|
|
29
29
|
import Camera from './overlay/widgets/Camera.svelte'
|
|
30
|
-
import HoveredEntities from './HoveredEntities.svelte'
|
|
30
|
+
import HoveredEntities from './hover/HoveredEntities.svelte'
|
|
31
|
+
import Settings from './overlay/settings/Settings.svelte'
|
|
31
32
|
|
|
32
33
|
interface LocalConfigProps {
|
|
33
34
|
getLocalPartConfig: () => Struct
|
|
@@ -65,7 +66,6 @@
|
|
|
65
66
|
const appClient = useViamClient()
|
|
66
67
|
const settings = provideSettings()
|
|
67
68
|
const environment = provideEnvironment()
|
|
68
|
-
|
|
69
69
|
const currentRobotCameraWidgets = $derived(settings.current.openCameraWidgets[partID] || [])
|
|
70
70
|
|
|
71
71
|
$effect(() => {
|
|
@@ -125,37 +125,35 @@
|
|
|
125
125
|
|
|
126
126
|
<XR {@attach domPortal(root)} />
|
|
127
127
|
|
|
128
|
-
<Dashboard
|
|
129
|
-
{@attach domPortal(root)}
|
|
130
|
-
{dashboard}
|
|
131
|
-
/>
|
|
132
|
-
|
|
133
128
|
{#if settings.current.renderSubEntityHoverDetail}
|
|
134
|
-
<HoveredEntities
|
|
135
|
-
{/if}
|
|
136
|
-
<Details {@attach domPortal(root)} />
|
|
137
|
-
{#if environment.current.isStandalone}
|
|
138
|
-
<LiveUpdatesBanner {@attach domPortal(root)} />
|
|
139
|
-
{/if}
|
|
140
|
-
|
|
141
|
-
{#if !focus}
|
|
142
|
-
<TreeContainer {@attach domPortal(root)} />
|
|
143
|
-
{/if}
|
|
144
|
-
|
|
145
|
-
{#if !focus && settings.current.enableArmPositionsWidget}
|
|
146
|
-
<ArmPositions {@attach domPortal(root)} />
|
|
147
|
-
{/if}
|
|
148
|
-
|
|
149
|
-
{#if !focus}
|
|
150
|
-
{#each currentRobotCameraWidgets as cameraName (cameraName)}
|
|
151
|
-
<Camera
|
|
152
|
-
name={cameraName}
|
|
153
|
-
{@attach domPortal(root)}
|
|
154
|
-
/>
|
|
155
|
-
{/each}
|
|
129
|
+
<HoveredEntities />
|
|
156
130
|
{/if}
|
|
157
131
|
|
|
158
|
-
|
|
132
|
+
<!-- Overlays that need Threlte context -->
|
|
133
|
+
<div {@attach domPortal(root)}>
|
|
134
|
+
<FileDrop />
|
|
135
|
+
<Dashboard {dashboard} />
|
|
136
|
+
<Details />
|
|
137
|
+
<Settings />
|
|
138
|
+
|
|
139
|
+
{#if environment.current.isStandalone}
|
|
140
|
+
<LiveUpdatesBanner />
|
|
141
|
+
{/if}
|
|
142
|
+
|
|
143
|
+
{#if !focus}
|
|
144
|
+
<TreeContainer />
|
|
145
|
+
{/if}
|
|
146
|
+
|
|
147
|
+
{#if !focus && settings.current.enableArmPositionsWidget}
|
|
148
|
+
<ArmPositions />
|
|
149
|
+
{/if}
|
|
150
|
+
|
|
151
|
+
{#if !focus}
|
|
152
|
+
{#each currentRobotCameraWidgets as cameraName (cameraName)}
|
|
153
|
+
<Camera name={cameraName} />
|
|
154
|
+
{/each}
|
|
155
|
+
{/if}
|
|
156
|
+
</div>
|
|
159
157
|
{/snippet}
|
|
160
158
|
</SceneProviders>
|
|
161
159
|
</Canvas>
|