@viamrobotics/motion-tools 1.13.0 → 1.14.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/FrameConfigUpdater.svelte.js +1 -1
- package/dist/attribute.js +10 -2
- package/dist/buf/draw/v1/service_connect.d.ts +14 -25
- package/dist/buf/draw/v1/service_connect.js +14 -25
- package/dist/buf/draw/v1/service_pb.d.ts +61 -76
- package/dist/buf/draw/v1/service_pb.js +58 -111
- package/dist/buffer.d.ts +56 -7
- package/dist/buffer.js +70 -12
- package/dist/color.js +3 -3
- package/dist/components/App.svelte +1 -5
- package/dist/components/Camera.svelte +1 -7
- package/dist/components/Camera.svelte.d.ts +0 -1
- package/dist/components/CameraControls.svelte +2 -2
- package/dist/components/{Arrows → Entities/Arrows}/ArrowGroups.svelte +3 -3
- package/dist/components/{Arrows → Entities/Arrows}/Arrows.svelte +6 -6
- package/dist/components/{Arrows → Entities/Arrows}/Arrows.svelte.d.ts +1 -1
- package/dist/components/{Entities.svelte → Entities/Entities.svelte} +7 -3
- package/dist/components/Entities/Frame.svelte +86 -0
- package/dist/components/{Frame.svelte.d.ts → Entities/Frame.svelte.d.ts} +1 -0
- package/dist/components/{GLTF.svelte → Entities/GLTF.svelte} +5 -5
- package/dist/components/Entities/Geometry.svelte +75 -0
- package/dist/components/Entities/Geometry.svelte.d.ts +10 -0
- package/dist/components/{Label.svelte → Entities/Label.svelte} +1 -1
- package/dist/components/Entities/Line.svelte +90 -0
- package/dist/components/Entities/Mesh.svelte +130 -0
- package/dist/components/Entities/Mesh.svelte.d.ts +4 -0
- package/dist/components/{Points.svelte → Entities/Points.svelte} +5 -5
- package/dist/components/{Pose.svelte → Entities/Pose.svelte} +3 -3
- package/dist/{hooks/useObjectEvents.svelte.d.ts → components/Entities/hooks/useEntityEvents.svelte.d.ts} +1 -1
- package/dist/{hooks/useObjectEvents.svelte.js → components/Entities/hooks/useEntityEvents.svelte.js} +6 -6
- package/dist/components/FileDrop/file-names.js +6 -3
- package/dist/components/FileDrop/snapshot-dropper.js +8 -4
- package/dist/components/FileDrop/useFileDrop.svelte.js +9 -6
- package/dist/components/Lasso/Lasso.svelte +4 -4
- package/dist/components/PCD.svelte +14 -6
- package/dist/components/PCD.svelte.d.ts +2 -0
- package/dist/components/Scene.svelte +1 -3
- package/dist/components/Selected.svelte +2 -0
- package/dist/components/StaticGeometries.svelte +1 -1
- package/dist/components/overlay/AddRelationship.svelte +1 -1
- package/dist/components/overlay/LiveUpdatesBanner.svelte +4 -6
- package/dist/components/overlay/left-pane/buildTree.js +15 -0
- package/dist/components/overlay/settings/Settings.svelte +11 -13
- package/dist/components/overlay/widgets/Camera.svelte +11 -9
- package/dist/components/xr/ArmTeleop.svelte +33 -33
- package/dist/components/xr/CameraFeed.svelte +21 -23
- package/dist/components/xr/JointLimitsWidget.svelte +19 -5
- package/dist/components/xr/XRConfigPanel.svelte +17 -16
- package/dist/components/xr/XRControllerSettings.svelte +5 -4
- package/dist/components/xr/XRToast.svelte +11 -6
- package/dist/ecs/relations.d.ts +1 -0
- package/dist/ecs/relations.js +1 -0
- package/dist/ecs/traits.d.ts +2 -19
- package/dist/ecs/traits.js +33 -6
- package/dist/ecs/useQuery.svelte.js +3 -3
- package/dist/format.js +1 -1
- package/dist/hooks/use3DModels.svelte.js +36 -38
- package/dist/hooks/useConfigFrames.svelte.js +2 -7
- package/dist/hooks/useDrawAPI.svelte.js +1 -1
- package/dist/hooks/useFramelessComponents.svelte.js +1 -1
- package/dist/hooks/useFrames.svelte.js +62 -56
- package/dist/hooks/useGeometries.svelte.js +59 -36
- package/dist/hooks/useLinked.svelte.js +5 -4
- package/dist/hooks/usePartConfig.svelte.js +16 -17
- package/dist/hooks/usePointcloudObjects.svelte.js +107 -62
- package/dist/hooks/usePointclouds.svelte.js +50 -32
- package/dist/hooks/usePose.svelte.js +3 -7
- package/dist/hooks/useResizable.svelte.js +4 -3
- package/dist/hooks/useSettings.svelte.js +2 -2
- package/dist/hooks/useWeblabs.svelte.js +3 -2
- package/dist/hooks/useWorldState.svelte.js +31 -28
- package/dist/loaders/pcd/index.js +2 -1
- package/dist/loaders/pcd/worker.inline.d.ts +1 -1
- package/dist/loaders/pcd/worker.inline.js +1 -1
- package/dist/loaders/pcd/worker.js +1 -1
- package/dist/metadata.d.ts +22 -0
- package/dist/metadata.js +66 -0
- package/dist/snapshot.d.ts +20 -0
- package/dist/snapshot.js +72 -28
- package/dist/three/InstancedArrows/InstancedArrows.js +1 -1
- package/dist/three/InstancedArrows/box.js +1 -1
- package/dist/three/InstancedArrows/raycast.js +12 -12
- package/dist/three/OBBHelper.d.ts +3 -2
- package/dist/three/OBBHelper.js +17 -5
- package/package.json +19 -11
- package/dist/WorldObject.svelte.d.ts +0 -27
- package/dist/WorldObject.svelte.js +0 -114
- package/dist/components/Frame.svelte +0 -89
- package/dist/components/Geometry.svelte +0 -211
- package/dist/components/Geometry.svelte.d.ts +0 -19
- package/dist/components/Line.svelte +0 -43
- /package/dist/components/{Arrows → Entities/Arrows}/ArrowGroups.svelte.d.ts +0 -0
- /package/dist/components/{Entities.svelte.d.ts → Entities/Entities.svelte.d.ts} +0 -0
- /package/dist/components/{GLTF.svelte.d.ts → Entities/GLTF.svelte.d.ts} +0 -0
- /package/dist/components/{Label.svelte.d.ts → Entities/Label.svelte.d.ts} +0 -0
- /package/dist/components/{Line.svelte.d.ts → Entities/Line.svelte.d.ts} +0 -0
- /package/dist/components/{LineDots.svelte → Entities/LineDots.svelte} +0 -0
- /package/dist/components/{LineDots.svelte.d.ts → Entities/LineDots.svelte.d.ts} +0 -0
- /package/dist/components/{LineGeometry.svelte → Entities/LineGeometry.svelte} +0 -0
- /package/dist/components/{LineGeometry.svelte.d.ts → Entities/LineGeometry.svelte.d.ts} +0 -0
- /package/dist/components/{Points.svelte.d.ts → Entities/Points.svelte.d.ts} +0 -0
- /package/dist/components/{Pose.svelte.d.ts → Entities/Pose.svelte.d.ts} +0 -0
package/dist/attribute.js
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { BufferGeometry, BufferAttribute } from 'three';
|
|
2
|
+
import { STRIDE } from './buffer';
|
|
3
|
+
const colorStride = (colors, positions) => {
|
|
4
|
+
const numVertices = positions.length / STRIDE.POSITIONS;
|
|
5
|
+
const stride = colors.length / numVertices;
|
|
6
|
+
return stride === STRIDE.COLORS_RGBA ? STRIDE.COLORS_RGBA : STRIDE.COLORS_RGB;
|
|
7
|
+
};
|
|
2
8
|
export const createBufferGeometry = (positions, colors) => {
|
|
3
9
|
const geometry = new BufferGeometry();
|
|
4
10
|
geometry.setAttribute('position', new BufferAttribute(positions, 3));
|
|
5
11
|
if (colors) {
|
|
6
|
-
|
|
12
|
+
const stride = colorStride(colors, positions);
|
|
13
|
+
geometry.setAttribute('color', new BufferAttribute(colors, stride, true));
|
|
7
14
|
}
|
|
8
15
|
return geometry;
|
|
9
16
|
};
|
|
@@ -24,7 +31,8 @@ export const updateBufferGeometry = (geometry, positions, colors) => {
|
|
|
24
31
|
colorAttr.needsUpdate = true;
|
|
25
32
|
}
|
|
26
33
|
else {
|
|
27
|
-
|
|
34
|
+
const stride = colorStride(colors, positions);
|
|
35
|
+
geometry.setAttribute('color', new BufferAttribute(colors, stride, true));
|
|
28
36
|
}
|
|
29
37
|
}
|
|
30
38
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AddEntityRequest, AddEntityResponse, RemoveAllDrawingsRequest, RemoveAllDrawingsResponse, RemoveAllRequest, RemoveAllResponse, RemoveAllTransformsRequest, RemoveAllTransformsResponse, RemoveEntityRequest, RemoveEntityResponse,
|
|
1
|
+
import { AddEntityRequest, AddEntityResponse, RemoveAllDrawingsRequest, RemoveAllDrawingsResponse, RemoveAllRequest, RemoveAllResponse, RemoveAllTransformsRequest, RemoveAllTransformsResponse, RemoveEntityRequest, RemoveEntityResponse, SetSceneRequest, SetSceneResponse, StreamEntityChangesRequest, StreamEntityChangesResponse, StreamSceneChangesRequest, StreamSceneChangesResponse, UpdateEntityRequest, UpdateEntityResponse } from "./service_pb";
|
|
2
2
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* DrawService provides visualization APIs for managing transforms and custom drawing primitives
|
|
@@ -42,37 +42,26 @@ export declare const DrawService: {
|
|
|
42
42
|
readonly kind: MethodKind.Unary;
|
|
43
43
|
};
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Stream changes to entities in the scene.
|
|
46
46
|
*
|
|
47
|
-
* @generated from rpc draw.v1.DrawService.
|
|
47
|
+
* @generated from rpc draw.v1.DrawService.StreamEntityChanges
|
|
48
48
|
*/
|
|
49
|
-
readonly
|
|
50
|
-
readonly name: "
|
|
51
|
-
readonly I: typeof
|
|
52
|
-
readonly O: typeof
|
|
53
|
-
readonly kind: MethodKind.Unary;
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* Stream changes to the transforms in the scene.
|
|
57
|
-
*
|
|
58
|
-
* @generated from rpc draw.v1.DrawService.StreamTransformChanges
|
|
59
|
-
*/
|
|
60
|
-
readonly streamTransformChanges: {
|
|
61
|
-
readonly name: "StreamTransformChanges";
|
|
62
|
-
readonly I: typeof StreamTransformChangesRequest;
|
|
63
|
-
readonly O: typeof StreamTransformChangesResponse;
|
|
49
|
+
readonly streamEntityChanges: {
|
|
50
|
+
readonly name: "StreamEntityChanges";
|
|
51
|
+
readonly I: typeof StreamEntityChangesRequest;
|
|
52
|
+
readonly O: typeof StreamEntityChangesResponse;
|
|
64
53
|
readonly kind: MethodKind.ServerStreaming;
|
|
65
54
|
};
|
|
66
55
|
/**
|
|
67
|
-
*
|
|
56
|
+
* Set the camera and/or metadata for the scene.
|
|
68
57
|
*
|
|
69
|
-
* @generated from rpc draw.v1.DrawService.
|
|
58
|
+
* @generated from rpc draw.v1.DrawService.SetScene
|
|
70
59
|
*/
|
|
71
|
-
readonly
|
|
72
|
-
readonly name: "
|
|
73
|
-
readonly I: typeof
|
|
74
|
-
readonly O: typeof
|
|
75
|
-
readonly kind: MethodKind.
|
|
60
|
+
readonly setScene: {
|
|
61
|
+
readonly name: "SetScene";
|
|
62
|
+
readonly I: typeof SetSceneRequest;
|
|
63
|
+
readonly O: typeof SetSceneResponse;
|
|
64
|
+
readonly kind: MethodKind.Unary;
|
|
76
65
|
};
|
|
77
66
|
/**
|
|
78
67
|
* Stream changes to the camera and/or metadata for the scene.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// @generated from file draw/v1/service.proto (package draw.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
import { AddEntityRequest, AddEntityResponse, RemoveAllDrawingsRequest, RemoveAllDrawingsResponse, RemoveAllRequest, RemoveAllResponse, RemoveAllTransformsRequest, RemoveAllTransformsResponse, RemoveEntityRequest, RemoveEntityResponse,
|
|
5
|
+
import { AddEntityRequest, AddEntityResponse, RemoveAllDrawingsRequest, RemoveAllDrawingsResponse, RemoveAllRequest, RemoveAllResponse, RemoveAllTransformsRequest, RemoveAllTransformsResponse, RemoveEntityRequest, RemoveEntityResponse, SetSceneRequest, SetSceneResponse, StreamEntityChangesRequest, StreamEntityChangesResponse, StreamSceneChangesRequest, StreamSceneChangesResponse, UpdateEntityRequest, UpdateEntityResponse } from "./service_pb";
|
|
6
6
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* DrawService provides visualization APIs for managing transforms and custom drawing primitives
|
|
@@ -46,37 +46,26 @@ export const DrawService = {
|
|
|
46
46
|
kind: MethodKind.Unary,
|
|
47
47
|
},
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Stream changes to entities in the scene.
|
|
50
50
|
*
|
|
51
|
-
* @generated from rpc draw.v1.DrawService.
|
|
51
|
+
* @generated from rpc draw.v1.DrawService.StreamEntityChanges
|
|
52
52
|
*/
|
|
53
|
-
|
|
54
|
-
name: "
|
|
55
|
-
I:
|
|
56
|
-
O:
|
|
57
|
-
kind: MethodKind.Unary,
|
|
58
|
-
},
|
|
59
|
-
/**
|
|
60
|
-
* Stream changes to the transforms in the scene.
|
|
61
|
-
*
|
|
62
|
-
* @generated from rpc draw.v1.DrawService.StreamTransformChanges
|
|
63
|
-
*/
|
|
64
|
-
streamTransformChanges: {
|
|
65
|
-
name: "StreamTransformChanges",
|
|
66
|
-
I: StreamTransformChangesRequest,
|
|
67
|
-
O: StreamTransformChangesResponse,
|
|
53
|
+
streamEntityChanges: {
|
|
54
|
+
name: "StreamEntityChanges",
|
|
55
|
+
I: StreamEntityChangesRequest,
|
|
56
|
+
O: StreamEntityChangesResponse,
|
|
68
57
|
kind: MethodKind.ServerStreaming,
|
|
69
58
|
},
|
|
70
59
|
/**
|
|
71
|
-
*
|
|
60
|
+
* Set the camera and/or metadata for the scene.
|
|
72
61
|
*
|
|
73
|
-
* @generated from rpc draw.v1.DrawService.
|
|
62
|
+
* @generated from rpc draw.v1.DrawService.SetScene
|
|
74
63
|
*/
|
|
75
|
-
|
|
76
|
-
name: "
|
|
77
|
-
I:
|
|
78
|
-
O:
|
|
79
|
-
kind: MethodKind.
|
|
64
|
+
setScene: {
|
|
65
|
+
name: "SetScene",
|
|
66
|
+
I: SetSceneRequest,
|
|
67
|
+
O: SetSceneResponse,
|
|
68
|
+
kind: MethodKind.Unary,
|
|
80
69
|
},
|
|
81
70
|
/**
|
|
82
71
|
* Stream changes to the camera and/or metadata for the scene.
|
|
@@ -4,23 +4,23 @@ import { Transform } from "../../common/v1/common_pb";
|
|
|
4
4
|
import { Drawing } from "./drawing_pb";
|
|
5
5
|
import { SceneMetadata } from "./scene_pb";
|
|
6
6
|
/**
|
|
7
|
-
* @generated from enum draw.v1.
|
|
7
|
+
* @generated from enum draw.v1.EntityChangeType
|
|
8
8
|
*/
|
|
9
|
-
export declare enum
|
|
9
|
+
export declare enum EntityChangeType {
|
|
10
10
|
/**
|
|
11
|
-
* @generated from enum value:
|
|
11
|
+
* @generated from enum value: ENTITY_CHANGE_TYPE_UNSPECIFIED = 0;
|
|
12
12
|
*/
|
|
13
13
|
UNSPECIFIED = 0,
|
|
14
14
|
/**
|
|
15
|
-
* @generated from enum value:
|
|
15
|
+
* @generated from enum value: ENTITY_CHANGE_TYPE_ADDED = 1;
|
|
16
16
|
*/
|
|
17
17
|
ADDED = 1,
|
|
18
18
|
/**
|
|
19
|
-
* @generated from enum value:
|
|
19
|
+
* @generated from enum value: ENTITY_CHANGE_TYPE_REMOVED = 2;
|
|
20
20
|
*/
|
|
21
21
|
REMOVED = 2,
|
|
22
22
|
/**
|
|
23
|
-
* @generated from enum value:
|
|
23
|
+
* @generated from enum value: ENTITY_CHANGE_TYPE_UPDATED = 3;
|
|
24
24
|
*/
|
|
25
25
|
UPDATED = 3
|
|
26
26
|
}
|
|
@@ -189,38 +189,57 @@ export declare class RemoveAllTransformsResponse extends Message<RemoveAllTransf
|
|
|
189
189
|
static equals(a: RemoveAllTransformsResponse | PlainMessage<RemoveAllTransformsResponse> | undefined, b: RemoveAllTransformsResponse | PlainMessage<RemoveAllTransformsResponse> | undefined): boolean;
|
|
190
190
|
}
|
|
191
191
|
/**
|
|
192
|
-
* @generated from message draw.v1.
|
|
192
|
+
* @generated from message draw.v1.StreamEntityChangesRequest
|
|
193
193
|
*/
|
|
194
|
-
export declare class
|
|
195
|
-
constructor(data?: PartialMessage<
|
|
194
|
+
export declare class StreamEntityChangesRequest extends Message<StreamEntityChangesRequest> {
|
|
195
|
+
constructor(data?: PartialMessage<StreamEntityChangesRequest>);
|
|
196
196
|
static readonly runtime: typeof proto3;
|
|
197
|
-
static readonly typeName = "draw.v1.
|
|
197
|
+
static readonly typeName = "draw.v1.StreamEntityChangesRequest";
|
|
198
198
|
static readonly fields: FieldList;
|
|
199
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
200
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
201
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
202
|
-
static equals(a:
|
|
199
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StreamEntityChangesRequest;
|
|
200
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StreamEntityChangesRequest;
|
|
201
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StreamEntityChangesRequest;
|
|
202
|
+
static equals(a: StreamEntityChangesRequest | PlainMessage<StreamEntityChangesRequest> | undefined, b: StreamEntityChangesRequest | PlainMessage<StreamEntityChangesRequest> | undefined): boolean;
|
|
203
203
|
}
|
|
204
204
|
/**
|
|
205
|
-
* @generated from message draw.v1.
|
|
205
|
+
* @generated from message draw.v1.StreamEntityChangesResponse
|
|
206
206
|
*/
|
|
207
|
-
export declare class
|
|
207
|
+
export declare class StreamEntityChangesResponse extends Message<StreamEntityChangesResponse> {
|
|
208
208
|
/**
|
|
209
|
-
* @generated from field: draw.v1.
|
|
209
|
+
* @generated from field: draw.v1.EntityChangeType change_type = 1;
|
|
210
210
|
*/
|
|
211
|
-
changeType:
|
|
211
|
+
changeType: EntityChangeType;
|
|
212
212
|
/**
|
|
213
|
-
* @generated from
|
|
213
|
+
* @generated from oneof draw.v1.StreamEntityChangesResponse.entity
|
|
214
214
|
*/
|
|
215
|
-
|
|
216
|
-
|
|
215
|
+
entity: {
|
|
216
|
+
/**
|
|
217
|
+
* @generated from field: viam.common.v1.Transform transform = 2;
|
|
218
|
+
*/
|
|
219
|
+
value: Transform;
|
|
220
|
+
case: "transform";
|
|
221
|
+
} | {
|
|
222
|
+
/**
|
|
223
|
+
* @generated from field: draw.v1.Drawing drawing = 3;
|
|
224
|
+
*/
|
|
225
|
+
value: Drawing;
|
|
226
|
+
case: "drawing";
|
|
227
|
+
} | {
|
|
228
|
+
case: undefined;
|
|
229
|
+
value?: undefined;
|
|
230
|
+
};
|
|
231
|
+
/**
|
|
232
|
+
* @generated from field: google.protobuf.FieldMask updated_fields = 4;
|
|
233
|
+
*/
|
|
234
|
+
updatedFields?: FieldMask;
|
|
235
|
+
constructor(data?: PartialMessage<StreamEntityChangesResponse>);
|
|
217
236
|
static readonly runtime: typeof proto3;
|
|
218
|
-
static readonly typeName = "draw.v1.
|
|
237
|
+
static readonly typeName = "draw.v1.StreamEntityChangesResponse";
|
|
219
238
|
static readonly fields: FieldList;
|
|
220
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
221
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
222
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
223
|
-
static equals(a:
|
|
239
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StreamEntityChangesResponse;
|
|
240
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StreamEntityChangesResponse;
|
|
241
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StreamEntityChangesResponse;
|
|
242
|
+
static equals(a: StreamEntityChangesResponse | PlainMessage<StreamEntityChangesResponse> | undefined, b: StreamEntityChangesResponse | PlainMessage<StreamEntityChangesResponse> | undefined): boolean;
|
|
224
243
|
}
|
|
225
244
|
/**
|
|
226
245
|
* @generated from message draw.v1.RemoveAllDrawingsRequest
|
|
@@ -253,68 +272,34 @@ export declare class RemoveAllDrawingsResponse extends Message<RemoveAllDrawings
|
|
|
253
272
|
static equals(a: RemoveAllDrawingsResponse | PlainMessage<RemoveAllDrawingsResponse> | undefined, b: RemoveAllDrawingsResponse | PlainMessage<RemoveAllDrawingsResponse> | undefined): boolean;
|
|
254
273
|
}
|
|
255
274
|
/**
|
|
256
|
-
* @generated from message draw.v1.
|
|
257
|
-
*/
|
|
258
|
-
export declare class StreamDrawingChangesRequest extends Message<StreamDrawingChangesRequest> {
|
|
259
|
-
constructor(data?: PartialMessage<StreamDrawingChangesRequest>);
|
|
260
|
-
static readonly runtime: typeof proto3;
|
|
261
|
-
static readonly typeName = "draw.v1.StreamDrawingChangesRequest";
|
|
262
|
-
static readonly fields: FieldList;
|
|
263
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StreamDrawingChangesRequest;
|
|
264
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StreamDrawingChangesRequest;
|
|
265
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StreamDrawingChangesRequest;
|
|
266
|
-
static equals(a: StreamDrawingChangesRequest | PlainMessage<StreamDrawingChangesRequest> | undefined, b: StreamDrawingChangesRequest | PlainMessage<StreamDrawingChangesRequest> | undefined): boolean;
|
|
267
|
-
}
|
|
268
|
-
/**
|
|
269
|
-
* @generated from message draw.v1.StreamDrawingChangesResponse
|
|
270
|
-
*/
|
|
271
|
-
export declare class StreamDrawingChangesResponse extends Message<StreamDrawingChangesResponse> {
|
|
272
|
-
/**
|
|
273
|
-
* @generated from field: draw.v1.ChangeType change_type = 1;
|
|
274
|
-
*/
|
|
275
|
-
changeType: ChangeType;
|
|
276
|
-
/**
|
|
277
|
-
* @generated from field: draw.v1.Drawing drawing = 2;
|
|
278
|
-
*/
|
|
279
|
-
drawing?: Drawing;
|
|
280
|
-
constructor(data?: PartialMessage<StreamDrawingChangesResponse>);
|
|
281
|
-
static readonly runtime: typeof proto3;
|
|
282
|
-
static readonly typeName = "draw.v1.StreamDrawingChangesResponse";
|
|
283
|
-
static readonly fields: FieldList;
|
|
284
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StreamDrawingChangesResponse;
|
|
285
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StreamDrawingChangesResponse;
|
|
286
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StreamDrawingChangesResponse;
|
|
287
|
-
static equals(a: StreamDrawingChangesResponse | PlainMessage<StreamDrawingChangesResponse> | undefined, b: StreamDrawingChangesResponse | PlainMessage<StreamDrawingChangesResponse> | undefined): boolean;
|
|
288
|
-
}
|
|
289
|
-
/**
|
|
290
|
-
* @generated from message draw.v1.SetSceneMetadataRequest
|
|
275
|
+
* @generated from message draw.v1.SetSceneRequest
|
|
291
276
|
*/
|
|
292
|
-
export declare class
|
|
277
|
+
export declare class SetSceneRequest extends Message<SetSceneRequest> {
|
|
293
278
|
/**
|
|
294
279
|
* @generated from field: draw.v1.SceneMetadata scene_metadata = 1;
|
|
295
280
|
*/
|
|
296
281
|
sceneMetadata?: SceneMetadata;
|
|
297
|
-
constructor(data?: PartialMessage<
|
|
282
|
+
constructor(data?: PartialMessage<SetSceneRequest>);
|
|
298
283
|
static readonly runtime: typeof proto3;
|
|
299
|
-
static readonly typeName = "draw.v1.
|
|
284
|
+
static readonly typeName = "draw.v1.SetSceneRequest";
|
|
300
285
|
static readonly fields: FieldList;
|
|
301
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
302
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
303
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
304
|
-
static equals(a:
|
|
286
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetSceneRequest;
|
|
287
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetSceneRequest;
|
|
288
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetSceneRequest;
|
|
289
|
+
static equals(a: SetSceneRequest | PlainMessage<SetSceneRequest> | undefined, b: SetSceneRequest | PlainMessage<SetSceneRequest> | undefined): boolean;
|
|
305
290
|
}
|
|
306
291
|
/**
|
|
307
|
-
* @generated from message draw.v1.
|
|
292
|
+
* @generated from message draw.v1.SetSceneResponse
|
|
308
293
|
*/
|
|
309
|
-
export declare class
|
|
310
|
-
constructor(data?: PartialMessage<
|
|
294
|
+
export declare class SetSceneResponse extends Message<SetSceneResponse> {
|
|
295
|
+
constructor(data?: PartialMessage<SetSceneResponse>);
|
|
311
296
|
static readonly runtime: typeof proto3;
|
|
312
|
-
static readonly typeName = "draw.v1.
|
|
297
|
+
static readonly typeName = "draw.v1.SetSceneResponse";
|
|
313
298
|
static readonly fields: FieldList;
|
|
314
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
315
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
316
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
317
|
-
static equals(a:
|
|
299
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetSceneResponse;
|
|
300
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetSceneResponse;
|
|
301
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetSceneResponse;
|
|
302
|
+
static equals(a: SetSceneResponse | PlainMessage<SetSceneResponse> | undefined, b: SetSceneResponse | PlainMessage<SetSceneResponse> | undefined): boolean;
|
|
318
303
|
}
|
|
319
304
|
/**
|
|
320
305
|
* @generated from message draw.v1.StreamSceneChangesRequest
|
|
@@ -7,33 +7,33 @@ import { Transform } from "../../common/v1/common_pb";
|
|
|
7
7
|
import { Drawing } from "./drawing_pb";
|
|
8
8
|
import { SceneMetadata } from "./scene_pb";
|
|
9
9
|
/**
|
|
10
|
-
* @generated from enum draw.v1.
|
|
10
|
+
* @generated from enum draw.v1.EntityChangeType
|
|
11
11
|
*/
|
|
12
|
-
export var
|
|
13
|
-
(function (
|
|
12
|
+
export var EntityChangeType;
|
|
13
|
+
(function (EntityChangeType) {
|
|
14
14
|
/**
|
|
15
|
-
* @generated from enum value:
|
|
15
|
+
* @generated from enum value: ENTITY_CHANGE_TYPE_UNSPECIFIED = 0;
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
EntityChangeType[EntityChangeType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
18
18
|
/**
|
|
19
|
-
* @generated from enum value:
|
|
19
|
+
* @generated from enum value: ENTITY_CHANGE_TYPE_ADDED = 1;
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
EntityChangeType[EntityChangeType["ADDED"] = 1] = "ADDED";
|
|
22
22
|
/**
|
|
23
|
-
* @generated from enum value:
|
|
23
|
+
* @generated from enum value: ENTITY_CHANGE_TYPE_REMOVED = 2;
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
EntityChangeType[EntityChangeType["REMOVED"] = 2] = "REMOVED";
|
|
26
26
|
/**
|
|
27
|
-
* @generated from enum value:
|
|
27
|
+
* @generated from enum value: ENTITY_CHANGE_TYPE_UPDATED = 3;
|
|
28
28
|
*/
|
|
29
|
-
|
|
30
|
-
})(
|
|
31
|
-
// Retrieve enum metadata with: proto3.getEnumType(
|
|
32
|
-
proto3.util.setEnumType(
|
|
33
|
-
{ no: 0, name: "
|
|
34
|
-
{ no: 1, name: "
|
|
35
|
-
{ no: 2, name: "
|
|
36
|
-
{ no: 3, name: "
|
|
29
|
+
EntityChangeType[EntityChangeType["UPDATED"] = 3] = "UPDATED";
|
|
30
|
+
})(EntityChangeType || (EntityChangeType = {}));
|
|
31
|
+
// Retrieve enum metadata with: proto3.getEnumType(EntityChangeType)
|
|
32
|
+
proto3.util.setEnumType(EntityChangeType, "draw.v1.EntityChangeType", [
|
|
33
|
+
{ no: 0, name: "ENTITY_CHANGE_TYPE_UNSPECIFIED" },
|
|
34
|
+
{ no: 1, name: "ENTITY_CHANGE_TYPE_ADDED" },
|
|
35
|
+
{ no: 2, name: "ENTITY_CHANGE_TYPE_REMOVED" },
|
|
36
|
+
{ no: 3, name: "ENTITY_CHANGE_TYPE_UPDATED" },
|
|
37
37
|
]);
|
|
38
38
|
/**
|
|
39
39
|
* @generated from message draw.v1.AddEntityRequest
|
|
@@ -272,62 +272,68 @@ export class RemoveAllTransformsResponse extends Message {
|
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
/**
|
|
275
|
-
* @generated from message draw.v1.
|
|
275
|
+
* @generated from message draw.v1.StreamEntityChangesRequest
|
|
276
276
|
*/
|
|
277
|
-
export class
|
|
277
|
+
export class StreamEntityChangesRequest extends Message {
|
|
278
278
|
constructor(data) {
|
|
279
279
|
super();
|
|
280
280
|
proto3.util.initPartial(data, this);
|
|
281
281
|
}
|
|
282
282
|
static runtime = proto3;
|
|
283
|
-
static typeName = "draw.v1.
|
|
283
|
+
static typeName = "draw.v1.StreamEntityChangesRequest";
|
|
284
284
|
static fields = proto3.util.newFieldList(() => []);
|
|
285
285
|
static fromBinary(bytes, options) {
|
|
286
|
-
return new
|
|
286
|
+
return new StreamEntityChangesRequest().fromBinary(bytes, options);
|
|
287
287
|
}
|
|
288
288
|
static fromJson(jsonValue, options) {
|
|
289
|
-
return new
|
|
289
|
+
return new StreamEntityChangesRequest().fromJson(jsonValue, options);
|
|
290
290
|
}
|
|
291
291
|
static fromJsonString(jsonString, options) {
|
|
292
|
-
return new
|
|
292
|
+
return new StreamEntityChangesRequest().fromJsonString(jsonString, options);
|
|
293
293
|
}
|
|
294
294
|
static equals(a, b) {
|
|
295
|
-
return proto3.util.equals(
|
|
295
|
+
return proto3.util.equals(StreamEntityChangesRequest, a, b);
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
298
|
/**
|
|
299
|
-
* @generated from message draw.v1.
|
|
299
|
+
* @generated from message draw.v1.StreamEntityChangesResponse
|
|
300
300
|
*/
|
|
301
|
-
export class
|
|
301
|
+
export class StreamEntityChangesResponse extends Message {
|
|
302
302
|
/**
|
|
303
|
-
* @generated from field: draw.v1.
|
|
303
|
+
* @generated from field: draw.v1.EntityChangeType change_type = 1;
|
|
304
304
|
*/
|
|
305
|
-
changeType =
|
|
305
|
+
changeType = EntityChangeType.UNSPECIFIED;
|
|
306
306
|
/**
|
|
307
|
-
* @generated from
|
|
307
|
+
* @generated from oneof draw.v1.StreamEntityChangesResponse.entity
|
|
308
308
|
*/
|
|
309
|
-
|
|
309
|
+
entity = { case: undefined };
|
|
310
|
+
/**
|
|
311
|
+
* @generated from field: google.protobuf.FieldMask updated_fields = 4;
|
|
312
|
+
*/
|
|
313
|
+
updatedFields;
|
|
310
314
|
constructor(data) {
|
|
311
315
|
super();
|
|
312
316
|
proto3.util.initPartial(data, this);
|
|
313
317
|
}
|
|
314
318
|
static runtime = proto3;
|
|
315
|
-
static typeName = "draw.v1.
|
|
319
|
+
static typeName = "draw.v1.StreamEntityChangesResponse";
|
|
316
320
|
static fields = proto3.util.newFieldList(() => [
|
|
317
|
-
{ no: 1, name: "change_type", kind: "enum", T: proto3.getEnumType(
|
|
318
|
-
{ no: 2, name: "transform", kind: "message", T: Transform },
|
|
321
|
+
{ no: 1, name: "change_type", kind: "enum", T: proto3.getEnumType(EntityChangeType) },
|
|
322
|
+
{ no: 2, name: "transform", kind: "message", T: Transform, oneof: "entity" },
|
|
323
|
+
{ no: 3, name: "drawing", kind: "message", T: Drawing, oneof: "entity" },
|
|
324
|
+
{ no: 4, name: "updated_fields", kind: "message", T: FieldMask },
|
|
319
325
|
]);
|
|
320
326
|
static fromBinary(bytes, options) {
|
|
321
|
-
return new
|
|
327
|
+
return new StreamEntityChangesResponse().fromBinary(bytes, options);
|
|
322
328
|
}
|
|
323
329
|
static fromJson(jsonValue, options) {
|
|
324
|
-
return new
|
|
330
|
+
return new StreamEntityChangesResponse().fromJson(jsonValue, options);
|
|
325
331
|
}
|
|
326
332
|
static fromJsonString(jsonString, options) {
|
|
327
|
-
return new
|
|
333
|
+
return new StreamEntityChangesResponse().fromJsonString(jsonString, options);
|
|
328
334
|
}
|
|
329
335
|
static equals(a, b) {
|
|
330
|
-
return proto3.util.equals(
|
|
336
|
+
return proto3.util.equals(StreamEntityChangesResponse, a, b);
|
|
331
337
|
}
|
|
332
338
|
}
|
|
333
339
|
/**
|
|
@@ -385,68 +391,9 @@ export class RemoveAllDrawingsResponse extends Message {
|
|
|
385
391
|
}
|
|
386
392
|
}
|
|
387
393
|
/**
|
|
388
|
-
* @generated from message draw.v1.
|
|
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
|
|
394
|
+
* @generated from message draw.v1.SetSceneRequest
|
|
448
395
|
*/
|
|
449
|
-
export class
|
|
396
|
+
export class SetSceneRequest extends Message {
|
|
450
397
|
/**
|
|
451
398
|
* @generated from field: draw.v1.SceneMetadata scene_metadata = 1;
|
|
452
399
|
*/
|
|
@@ -456,45 +403,45 @@ export class SetSceneMetadataRequest extends Message {
|
|
|
456
403
|
proto3.util.initPartial(data, this);
|
|
457
404
|
}
|
|
458
405
|
static runtime = proto3;
|
|
459
|
-
static typeName = "draw.v1.
|
|
406
|
+
static typeName = "draw.v1.SetSceneRequest";
|
|
460
407
|
static fields = proto3.util.newFieldList(() => [
|
|
461
408
|
{ no: 1, name: "scene_metadata", kind: "message", T: SceneMetadata },
|
|
462
409
|
]);
|
|
463
410
|
static fromBinary(bytes, options) {
|
|
464
|
-
return new
|
|
411
|
+
return new SetSceneRequest().fromBinary(bytes, options);
|
|
465
412
|
}
|
|
466
413
|
static fromJson(jsonValue, options) {
|
|
467
|
-
return new
|
|
414
|
+
return new SetSceneRequest().fromJson(jsonValue, options);
|
|
468
415
|
}
|
|
469
416
|
static fromJsonString(jsonString, options) {
|
|
470
|
-
return new
|
|
417
|
+
return new SetSceneRequest().fromJsonString(jsonString, options);
|
|
471
418
|
}
|
|
472
419
|
static equals(a, b) {
|
|
473
|
-
return proto3.util.equals(
|
|
420
|
+
return proto3.util.equals(SetSceneRequest, a, b);
|
|
474
421
|
}
|
|
475
422
|
}
|
|
476
423
|
/**
|
|
477
|
-
* @generated from message draw.v1.
|
|
424
|
+
* @generated from message draw.v1.SetSceneResponse
|
|
478
425
|
*/
|
|
479
|
-
export class
|
|
426
|
+
export class SetSceneResponse extends Message {
|
|
480
427
|
constructor(data) {
|
|
481
428
|
super();
|
|
482
429
|
proto3.util.initPartial(data, this);
|
|
483
430
|
}
|
|
484
431
|
static runtime = proto3;
|
|
485
|
-
static typeName = "draw.v1.
|
|
432
|
+
static typeName = "draw.v1.SetSceneResponse";
|
|
486
433
|
static fields = proto3.util.newFieldList(() => []);
|
|
487
434
|
static fromBinary(bytes, options) {
|
|
488
|
-
return new
|
|
435
|
+
return new SetSceneResponse().fromBinary(bytes, options);
|
|
489
436
|
}
|
|
490
437
|
static fromJson(jsonValue, options) {
|
|
491
|
-
return new
|
|
438
|
+
return new SetSceneResponse().fromJson(jsonValue, options);
|
|
492
439
|
}
|
|
493
440
|
static fromJsonString(jsonString, options) {
|
|
494
|
-
return new
|
|
441
|
+
return new SetSceneResponse().fromJsonString(jsonString, options);
|
|
495
442
|
}
|
|
496
443
|
static equals(a, b) {
|
|
497
|
-
return proto3.util.equals(
|
|
444
|
+
return proto3.util.equals(SetSceneResponse, a, b);
|
|
498
445
|
}
|
|
499
446
|
}
|
|
500
447
|
/**
|