@viamrobotics/motion-tools 0.19.2 → 1.0.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.
- package/README.md +56 -26
- package/dist/FrameConfigUpdater.svelte.d.ts +11 -17
- package/dist/FrameConfigUpdater.svelte.js +109 -109
- package/dist/WorldObject.svelte.js +2 -15
- package/dist/common/v1/common_pb.d.ts +950 -0
- package/dist/common/v1/common_pb.js +1399 -0
- package/dist/components/App.svelte +37 -21
- package/dist/components/App.svelte.d.ts +1 -0
- package/dist/components/BatchedArrows.svelte +102 -0
- package/dist/components/BatchedArrows.svelte.d.ts +3 -0
- package/dist/components/CameraControls.svelte +2 -3
- package/dist/components/Details.svelte +364 -365
- package/dist/components/Entities.svelte +73 -0
- package/dist/components/{WorldObjects.svelte.d.ts → Entities.svelte.d.ts} +3 -3
- package/dist/components/FileDrop.svelte +9 -23
- package/dist/components/Focus.svelte +2 -3
- package/dist/components/Frame.svelte +41 -22
- package/dist/components/Frame.svelte.d.ts +4 -6
- package/dist/components/GLTF.svelte +36 -0
- package/dist/components/GLTF.svelte.d.ts +11 -0
- package/dist/components/Geometry2.svelte +201 -0
- package/dist/components/Geometry2.svelte.d.ts +18 -0
- package/dist/components/KeyboardControls.svelte +3 -3
- package/dist/components/Line.svelte +10 -13
- package/dist/components/Line.svelte.d.ts +2 -2
- package/dist/components/LiveUpdatesBanner.svelte +51 -15
- package/dist/components/MeasureTool.svelte +4 -5
- package/dist/components/Pointcloud.svelte +27 -14
- package/dist/components/Pointcloud.svelte.d.ts +2 -2
- package/dist/components/PointerMissBox.svelte +3 -3
- package/dist/components/Pose.svelte +31 -6
- package/dist/components/Pose.svelte.d.ts +2 -2
- package/dist/components/Scene.svelte +7 -6
- package/dist/components/SceneProviders.svelte +0 -6
- package/dist/components/Selected.svelte +22 -16
- package/dist/components/StaticGeometries.svelte +51 -27
- package/dist/components/Tree/Tree.svelte +28 -22
- package/dist/components/Tree/Tree.svelte.d.ts +2 -3
- package/dist/components/Tree/TreeContainer.svelte +72 -40
- package/dist/components/Tree/Widgets.svelte +2 -5
- package/dist/components/Tree/buildTree.d.ts +3 -6
- package/dist/components/Tree/buildTree.js +19 -39
- package/dist/components/__tests__/__fixtures__/entity.d.ts +2 -0
- package/dist/components/__tests__/__fixtures__/entity.js +20 -0
- package/dist/components/__tests__/__fixtures__/resource.d.ts +17 -0
- package/dist/components/__tests__/__fixtures__/resource.js +13 -0
- package/dist/components/dashboard/Dashboard.svelte +5 -3
- package/dist/components/dashboard/Dashboard.svelte.d.ts +7 -2
- package/dist/components/widgets/ArmPositions.svelte +19 -7
- package/dist/draw/v1/drawing_pb.d.ts +341 -0
- package/dist/draw/v1/drawing_pb.js +417 -0
- package/dist/draw/v1/metadata_pb.d.ts +23 -0
- package/dist/draw/v1/metadata_pb.js +39 -0
- package/dist/draw/v1/scene_pb.d.ts +230 -0
- package/dist/draw/v1/scene_pb.js +298 -0
- package/dist/draw/v1/snapshot_pb.d.ts +42 -0
- package/dist/draw/v1/snapshot_pb.js +61 -0
- package/dist/draw/v1/transforms_pb.d.ts +23 -0
- package/dist/draw/v1/transforms_pb.js +39 -0
- package/dist/ecs/index.d.ts +4 -0
- package/dist/ecs/index.js +4 -0
- package/dist/ecs/traits.d.ts +128 -0
- package/dist/ecs/traits.js +81 -0
- package/dist/ecs/useQuery.svelte.d.ts +4 -0
- package/dist/ecs/useQuery.svelte.js +49 -0
- package/dist/ecs/useTrait.svelte.d.ts +19 -0
- package/dist/ecs/useTrait.svelte.js +40 -0
- package/dist/ecs/useWorld.d.ts +4 -0
- package/dist/ecs/useWorld.js +10 -0
- package/dist/geometry.js +6 -6
- package/dist/hooks/__tests__/fixtures/ResizableTestWrapper.svelte +41 -0
- package/dist/hooks/__tests__/fixtures/ResizableTestWrapper.svelte.d.ts +6 -0
- package/dist/hooks/use3DModels.svelte.js +6 -4
- package/dist/hooks/useDrawAPI.svelte.d.ts +0 -10
- package/dist/hooks/useDrawAPI.svelte.js +143 -267
- package/dist/hooks/useFramelessComponents.svelte.js +1 -1
- package/dist/hooks/useFrames.svelte.d.ts +6 -2
- package/dist/hooks/useFrames.svelte.js +123 -19
- package/dist/hooks/useGeometries.svelte.d.ts +0 -2
- package/dist/hooks/useGeometries.svelte.js +49 -25
- package/dist/hooks/useObjectEvents.svelte.d.ts +3 -2
- package/dist/hooks/useObjectEvents.svelte.js +11 -7
- package/dist/hooks/usePartConfig.svelte.d.ts +1 -1
- package/dist/hooks/usePartConfig.svelte.js +2 -1
- package/dist/hooks/usePointclouds.svelte.d.ts +0 -2
- package/dist/hooks/usePointclouds.svelte.js +52 -21
- package/dist/hooks/usePose.svelte.js +15 -7
- package/dist/hooks/useResizable.svelte.d.ts +12 -0
- package/dist/hooks/useResizable.svelte.js +45 -0
- package/dist/hooks/useResourceByName.svelte.js +8 -5
- package/dist/hooks/useSelection.svelte.d.ts +13 -23
- package/dist/hooks/useSelection.svelte.js +45 -65
- package/dist/hooks/useVisibility.svelte.d.ts +2 -1
- package/dist/hooks/useWeblabs.svelte.d.ts +0 -1
- package/dist/hooks/useWeblabs.svelte.js +0 -1
- package/dist/hooks/useWorldState.svelte.d.ts +9 -0
- package/dist/hooks/useWorldState.svelte.js +158 -107
- package/dist/lib.d.ts +1 -0
- package/dist/lib.js +2 -0
- package/dist/three/BatchedArrow.d.ts +2 -3
- package/dist/three/BatchedArrow.js +3 -11
- package/dist/three/CapsuleGeometry.d.ts +1 -1
- package/dist/three/CapsuleGeometry.js +3 -1
- package/dist/transform.js +0 -15
- package/package.json +12 -7
- package/dist/components/WorldObject.svelte +0 -28
- package/dist/components/WorldObject.svelte.d.ts +0 -11
- package/dist/components/WorldObjects.svelte +0 -159
- package/dist/components/WorldState.svelte +0 -92
- package/dist/components/WorldState.svelte.d.ts +0 -7
- package/dist/components/__tests__/__fixtures__/worldObject.svelte.d.ts +0 -2
- package/dist/components/__tests__/__fixtures__/worldObject.svelte.js +0 -35
- package/dist/components/portal/Portal.svelte +0 -25
- package/dist/components/portal/Portal.svelte.d.ts +0 -8
- package/dist/components/portal/PortalTarget.svelte +0 -18
- package/dist/components/portal/PortalTarget.svelte.d.ts +0 -6
- package/dist/components/portal/index.d.ts +0 -2
- package/dist/components/portal/index.js +0 -2
- package/dist/components/portal/usePortalContext.svelte.d.ts +0 -5
- package/dist/components/portal/usePortalContext.svelte.js +0 -5
- package/dist/hooks/useArrows.svelte.d.ts +0 -3
- package/dist/hooks/useArrows.svelte.js +0 -9
- package/dist/hooks/useDraggable.svelte.d.ts +0 -10
- package/dist/hooks/useDraggable.svelte.js +0 -36
- package/dist/hooks/useObjects.svelte.d.ts +0 -7
- package/dist/hooks/useObjects.svelte.js +0 -35
- package/dist/hooks/usePersistentUUIDs.svelte.d.ts +0 -5
- package/dist/hooks/usePersistentUUIDs.svelte.js +0 -13
- package/dist/hooks/useResourceByName.svelte.d.ts +0 -7
- package/dist/hooks/useStaticGeometries.svelte.d.ts +0 -9
- package/dist/hooks/useStaticGeometries.svelte.js +0 -47
- package/dist/workers/worldStateWorker.d.ts +0 -1
- package/dist/workers/worldStateWorker.js +0 -114
- package/dist/world-state-messages.d.ts +0 -23
- package/dist/world-state-messages.js +0 -1
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
+
import { Vector3 } from "../../common/v1/common_pb";
|
|
4
|
+
/**
|
|
5
|
+
* @generated from enum draw.v1.RenderArmModels
|
|
6
|
+
*/
|
|
7
|
+
export declare enum RenderArmModels {
|
|
8
|
+
/**
|
|
9
|
+
* @generated from enum value: RENDER_ARM_MODELS_UNSPECIFIED = 0;
|
|
10
|
+
*/
|
|
11
|
+
UNSPECIFIED = 0,
|
|
12
|
+
/**
|
|
13
|
+
* @generated from enum value: RENDER_ARM_MODELS_COLLIDERS = 1;
|
|
14
|
+
*/
|
|
15
|
+
COLLIDERS = 1,
|
|
16
|
+
/**
|
|
17
|
+
* @generated from enum value: RENDER_ARM_MODELS_COLLIDERS_AND_MODEL = 2;
|
|
18
|
+
*/
|
|
19
|
+
COLLIDERS_AND_MODEL = 2,
|
|
20
|
+
/**
|
|
21
|
+
* @generated from enum value: RENDER_ARM_MODELS_MODEL = 3;
|
|
22
|
+
*/
|
|
23
|
+
MODEL = 3
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @generated from enum draw.v1.RenderShapes
|
|
27
|
+
*/
|
|
28
|
+
export declare enum RenderShapes {
|
|
29
|
+
/**
|
|
30
|
+
* @generated from enum value: RENDER_SHAPES_UNSPECIFIED = 0;
|
|
31
|
+
*/
|
|
32
|
+
UNSPECIFIED = 0,
|
|
33
|
+
/**
|
|
34
|
+
* @generated from enum value: RENDER_SHAPES_ARROWS = 1;
|
|
35
|
+
*/
|
|
36
|
+
ARROWS = 1,
|
|
37
|
+
/**
|
|
38
|
+
* @generated from enum value: RENDER_SHAPES_LINES = 2;
|
|
39
|
+
*/
|
|
40
|
+
LINES = 2,
|
|
41
|
+
/**
|
|
42
|
+
* @generated from enum value: RENDER_SHAPES_POINTS = 3;
|
|
43
|
+
*/
|
|
44
|
+
POINTS = 3,
|
|
45
|
+
/**
|
|
46
|
+
* @generated from enum value: RENDER_SHAPES_MODEL = 4;
|
|
47
|
+
*/
|
|
48
|
+
MODEL = 4,
|
|
49
|
+
/**
|
|
50
|
+
* @generated from enum value: RENDER_SHAPES_NURBS = 5;
|
|
51
|
+
*/
|
|
52
|
+
NURBS = 5
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* for orthographic camera props
|
|
56
|
+
*
|
|
57
|
+
* @generated from message draw.v1.OrthographicCamera
|
|
58
|
+
*/
|
|
59
|
+
export declare class OrthographicCamera extends Message<OrthographicCamera> {
|
|
60
|
+
constructor(data?: PartialMessage<OrthographicCamera>);
|
|
61
|
+
static readonly runtime: typeof proto3;
|
|
62
|
+
static readonly typeName = "draw.v1.OrthographicCamera";
|
|
63
|
+
static readonly fields: FieldList;
|
|
64
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OrthographicCamera;
|
|
65
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OrthographicCamera;
|
|
66
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OrthographicCamera;
|
|
67
|
+
static equals(a: OrthographicCamera | PlainMessage<OrthographicCamera> | undefined, b: OrthographicCamera | PlainMessage<OrthographicCamera> | undefined): boolean;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* for perspective camera props
|
|
71
|
+
*
|
|
72
|
+
* @generated from message draw.v1.PerspectiveCamera
|
|
73
|
+
*/
|
|
74
|
+
export declare class PerspectiveCamera extends Message<PerspectiveCamera> {
|
|
75
|
+
constructor(data?: PartialMessage<PerspectiveCamera>);
|
|
76
|
+
static readonly runtime: typeof proto3;
|
|
77
|
+
static readonly typeName = "draw.v1.PerspectiveCamera";
|
|
78
|
+
static readonly fields: FieldList;
|
|
79
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PerspectiveCamera;
|
|
80
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PerspectiveCamera;
|
|
81
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PerspectiveCamera;
|
|
82
|
+
static equals(a: PerspectiveCamera | PlainMessage<PerspectiveCamera> | undefined, b: PerspectiveCamera | PlainMessage<PerspectiveCamera> | undefined): boolean;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* @generated from message draw.v1.SceneCamera
|
|
86
|
+
*/
|
|
87
|
+
export declare class SceneCamera extends Message<SceneCamera> {
|
|
88
|
+
/**
|
|
89
|
+
* The position of the camera in millimeters
|
|
90
|
+
* defaults to [0, 0, 3000]
|
|
91
|
+
*
|
|
92
|
+
* @generated from field: viam.common.v1.Vector3 position = 1;
|
|
93
|
+
*/
|
|
94
|
+
position?: Vector3;
|
|
95
|
+
/**
|
|
96
|
+
* The look at point of the camera in millimeters
|
|
97
|
+
* defaults to [0, 0, 0]
|
|
98
|
+
*
|
|
99
|
+
* @generated from field: viam.common.v1.Vector3 look_at = 2;
|
|
100
|
+
*/
|
|
101
|
+
lookAt?: Vector3;
|
|
102
|
+
/**
|
|
103
|
+
* Whether to animate camera movement
|
|
104
|
+
* defaults to false
|
|
105
|
+
*
|
|
106
|
+
* @generated from field: optional bool animated = 3;
|
|
107
|
+
*/
|
|
108
|
+
animated?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* The camera type
|
|
111
|
+
* defaults to perspective_camera
|
|
112
|
+
*
|
|
113
|
+
* @generated from oneof draw.v1.SceneCamera.camera_type
|
|
114
|
+
*/
|
|
115
|
+
cameraType: {
|
|
116
|
+
/**
|
|
117
|
+
* @generated from field: draw.v1.PerspectiveCamera perspective_camera = 4;
|
|
118
|
+
*/
|
|
119
|
+
value: PerspectiveCamera;
|
|
120
|
+
case: "perspectiveCamera";
|
|
121
|
+
} | {
|
|
122
|
+
/**
|
|
123
|
+
* @generated from field: draw.v1.OrthographicCamera orthographic_camera = 5;
|
|
124
|
+
*/
|
|
125
|
+
value: OrthographicCamera;
|
|
126
|
+
case: "orthographicCamera";
|
|
127
|
+
} | {
|
|
128
|
+
case: undefined;
|
|
129
|
+
value?: undefined;
|
|
130
|
+
};
|
|
131
|
+
constructor(data?: PartialMessage<SceneCamera>);
|
|
132
|
+
static readonly runtime: typeof proto3;
|
|
133
|
+
static readonly typeName = "draw.v1.SceneCamera";
|
|
134
|
+
static readonly fields: FieldList;
|
|
135
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SceneCamera;
|
|
136
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SceneCamera;
|
|
137
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SceneCamera;
|
|
138
|
+
static equals(a: SceneCamera | PlainMessage<SceneCamera> | undefined, b: SceneCamera | PlainMessage<SceneCamera> | undefined): boolean;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* @generated from message draw.v1.SceneMetadata
|
|
142
|
+
*/
|
|
143
|
+
export declare class SceneMetadata extends Message<SceneMetadata> {
|
|
144
|
+
/**
|
|
145
|
+
* The camera to use for the scene
|
|
146
|
+
* defaults to a perspective_camera with a position of [3000, 3000, 3000] and
|
|
147
|
+
* a look_at of [0, 0, 0]
|
|
148
|
+
*
|
|
149
|
+
* @generated from field: optional draw.v1.SceneCamera scene_camera = 1;
|
|
150
|
+
*/
|
|
151
|
+
sceneCamera?: SceneCamera;
|
|
152
|
+
/**
|
|
153
|
+
* Whether to render the grid
|
|
154
|
+
* defaults to true
|
|
155
|
+
*
|
|
156
|
+
* @generated from field: optional bool grid = 2;
|
|
157
|
+
*/
|
|
158
|
+
grid?: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* The size of the grid cells
|
|
161
|
+
* defaults to 500 (millimeters)
|
|
162
|
+
*
|
|
163
|
+
* @generated from field: optional float grid_cell_size = 3;
|
|
164
|
+
*/
|
|
165
|
+
gridCellSize?: number;
|
|
166
|
+
/**
|
|
167
|
+
* The size of the grid sections
|
|
168
|
+
* defaults to 10000 (millimeters)
|
|
169
|
+
*
|
|
170
|
+
* @generated from field: optional float grid_section_size = 4;
|
|
171
|
+
*/
|
|
172
|
+
gridSectionSize?: number;
|
|
173
|
+
/**
|
|
174
|
+
* The fade distance of the grid
|
|
175
|
+
* defaults to 25000 (millimeters)
|
|
176
|
+
*
|
|
177
|
+
* @generated from field: optional float grid_fade_distance = 5;
|
|
178
|
+
*/
|
|
179
|
+
gridFadeDistance?: number;
|
|
180
|
+
/**
|
|
181
|
+
* The size of points if not defined by a transform's metadata
|
|
182
|
+
* defaults to 10 (millimeters)
|
|
183
|
+
*
|
|
184
|
+
* @generated from field: optional float point_size = 6;
|
|
185
|
+
*/
|
|
186
|
+
pointSize?: number;
|
|
187
|
+
/**
|
|
188
|
+
* The color of the points if not defined by a transform's metadata
|
|
189
|
+
* defaults to [51, 51, 51, 255] (gray)
|
|
190
|
+
*
|
|
191
|
+
* @generated from field: optional bytes point_color = 7;
|
|
192
|
+
*/
|
|
193
|
+
pointColor?: Uint8Array;
|
|
194
|
+
/**
|
|
195
|
+
* The width of the lines if not defined by a transform's metadata
|
|
196
|
+
* defaults to 5 (millimeters)
|
|
197
|
+
*
|
|
198
|
+
* @generated from field: optional float line_width = 8;
|
|
199
|
+
*/
|
|
200
|
+
lineWidth?: number;
|
|
201
|
+
/**
|
|
202
|
+
* The size of the points of the lines if not defined by a transform's
|
|
203
|
+
* metadata defaults to 10 (millimeters)
|
|
204
|
+
*
|
|
205
|
+
* @generated from field: optional float line_point_size = 9;
|
|
206
|
+
*/
|
|
207
|
+
linePointSize?: number;
|
|
208
|
+
/**
|
|
209
|
+
* The models to render
|
|
210
|
+
* defaults to COLLIDERS_AND_MODEL
|
|
211
|
+
*
|
|
212
|
+
* @generated from field: optional draw.v1.RenderArmModels render_arm_models = 10;
|
|
213
|
+
*/
|
|
214
|
+
renderArmModels?: RenderArmModels;
|
|
215
|
+
/**
|
|
216
|
+
* The shapes to render
|
|
217
|
+
* defaults to [ARROWS, POINTS, LINES, MODEL, NURBS]
|
|
218
|
+
*
|
|
219
|
+
* @generated from field: repeated draw.v1.RenderShapes render_shapes = 11;
|
|
220
|
+
*/
|
|
221
|
+
renderShapes: RenderShapes[];
|
|
222
|
+
constructor(data?: PartialMessage<SceneMetadata>);
|
|
223
|
+
static readonly runtime: typeof proto3;
|
|
224
|
+
static readonly typeName = "draw.v1.SceneMetadata";
|
|
225
|
+
static readonly fields: FieldList;
|
|
226
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SceneMetadata;
|
|
227
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SceneMetadata;
|
|
228
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SceneMetadata;
|
|
229
|
+
static equals(a: SceneMetadata | PlainMessage<SceneMetadata> | undefined, b: SceneMetadata | PlainMessage<SceneMetadata> | undefined): boolean;
|
|
230
|
+
}
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=none"
|
|
2
|
+
// @generated from file draw/v1/scene.proto (package draw.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
+
import { Vector3 } from "../../common/v1/common_pb";
|
|
7
|
+
/**
|
|
8
|
+
* @generated from enum draw.v1.RenderArmModels
|
|
9
|
+
*/
|
|
10
|
+
export var RenderArmModels;
|
|
11
|
+
(function (RenderArmModels) {
|
|
12
|
+
/**
|
|
13
|
+
* @generated from enum value: RENDER_ARM_MODELS_UNSPECIFIED = 0;
|
|
14
|
+
*/
|
|
15
|
+
RenderArmModels[RenderArmModels["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
16
|
+
/**
|
|
17
|
+
* @generated from enum value: RENDER_ARM_MODELS_COLLIDERS = 1;
|
|
18
|
+
*/
|
|
19
|
+
RenderArmModels[RenderArmModels["COLLIDERS"] = 1] = "COLLIDERS";
|
|
20
|
+
/**
|
|
21
|
+
* @generated from enum value: RENDER_ARM_MODELS_COLLIDERS_AND_MODEL = 2;
|
|
22
|
+
*/
|
|
23
|
+
RenderArmModels[RenderArmModels["COLLIDERS_AND_MODEL"] = 2] = "COLLIDERS_AND_MODEL";
|
|
24
|
+
/**
|
|
25
|
+
* @generated from enum value: RENDER_ARM_MODELS_MODEL = 3;
|
|
26
|
+
*/
|
|
27
|
+
RenderArmModels[RenderArmModels["MODEL"] = 3] = "MODEL";
|
|
28
|
+
})(RenderArmModels || (RenderArmModels = {}));
|
|
29
|
+
// Retrieve enum metadata with: proto3.getEnumType(RenderArmModels)
|
|
30
|
+
proto3.util.setEnumType(RenderArmModels, "draw.v1.RenderArmModels", [
|
|
31
|
+
{ no: 0, name: "RENDER_ARM_MODELS_UNSPECIFIED" },
|
|
32
|
+
{ no: 1, name: "RENDER_ARM_MODELS_COLLIDERS" },
|
|
33
|
+
{ no: 2, name: "RENDER_ARM_MODELS_COLLIDERS_AND_MODEL" },
|
|
34
|
+
{ no: 3, name: "RENDER_ARM_MODELS_MODEL" },
|
|
35
|
+
]);
|
|
36
|
+
/**
|
|
37
|
+
* @generated from enum draw.v1.RenderShapes
|
|
38
|
+
*/
|
|
39
|
+
export var RenderShapes;
|
|
40
|
+
(function (RenderShapes) {
|
|
41
|
+
/**
|
|
42
|
+
* @generated from enum value: RENDER_SHAPES_UNSPECIFIED = 0;
|
|
43
|
+
*/
|
|
44
|
+
RenderShapes[RenderShapes["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
45
|
+
/**
|
|
46
|
+
* @generated from enum value: RENDER_SHAPES_ARROWS = 1;
|
|
47
|
+
*/
|
|
48
|
+
RenderShapes[RenderShapes["ARROWS"] = 1] = "ARROWS";
|
|
49
|
+
/**
|
|
50
|
+
* @generated from enum value: RENDER_SHAPES_LINES = 2;
|
|
51
|
+
*/
|
|
52
|
+
RenderShapes[RenderShapes["LINES"] = 2] = "LINES";
|
|
53
|
+
/**
|
|
54
|
+
* @generated from enum value: RENDER_SHAPES_POINTS = 3;
|
|
55
|
+
*/
|
|
56
|
+
RenderShapes[RenderShapes["POINTS"] = 3] = "POINTS";
|
|
57
|
+
/**
|
|
58
|
+
* @generated from enum value: RENDER_SHAPES_MODEL = 4;
|
|
59
|
+
*/
|
|
60
|
+
RenderShapes[RenderShapes["MODEL"] = 4] = "MODEL";
|
|
61
|
+
/**
|
|
62
|
+
* @generated from enum value: RENDER_SHAPES_NURBS = 5;
|
|
63
|
+
*/
|
|
64
|
+
RenderShapes[RenderShapes["NURBS"] = 5] = "NURBS";
|
|
65
|
+
})(RenderShapes || (RenderShapes = {}));
|
|
66
|
+
// Retrieve enum metadata with: proto3.getEnumType(RenderShapes)
|
|
67
|
+
proto3.util.setEnumType(RenderShapes, "draw.v1.RenderShapes", [
|
|
68
|
+
{ no: 0, name: "RENDER_SHAPES_UNSPECIFIED" },
|
|
69
|
+
{ no: 1, name: "RENDER_SHAPES_ARROWS" },
|
|
70
|
+
{ no: 2, name: "RENDER_SHAPES_LINES" },
|
|
71
|
+
{ no: 3, name: "RENDER_SHAPES_POINTS" },
|
|
72
|
+
{ no: 4, name: "RENDER_SHAPES_MODEL" },
|
|
73
|
+
{ no: 5, name: "RENDER_SHAPES_NURBS" },
|
|
74
|
+
]);
|
|
75
|
+
/**
|
|
76
|
+
* for orthographic camera props
|
|
77
|
+
*
|
|
78
|
+
* @generated from message draw.v1.OrthographicCamera
|
|
79
|
+
*/
|
|
80
|
+
export class OrthographicCamera extends Message {
|
|
81
|
+
constructor(data) {
|
|
82
|
+
super();
|
|
83
|
+
proto3.util.initPartial(data, this);
|
|
84
|
+
}
|
|
85
|
+
static runtime = proto3;
|
|
86
|
+
static typeName = "draw.v1.OrthographicCamera";
|
|
87
|
+
static fields = proto3.util.newFieldList(() => []);
|
|
88
|
+
static fromBinary(bytes, options) {
|
|
89
|
+
return new OrthographicCamera().fromBinary(bytes, options);
|
|
90
|
+
}
|
|
91
|
+
static fromJson(jsonValue, options) {
|
|
92
|
+
return new OrthographicCamera().fromJson(jsonValue, options);
|
|
93
|
+
}
|
|
94
|
+
static fromJsonString(jsonString, options) {
|
|
95
|
+
return new OrthographicCamera().fromJsonString(jsonString, options);
|
|
96
|
+
}
|
|
97
|
+
static equals(a, b) {
|
|
98
|
+
return proto3.util.equals(OrthographicCamera, a, b);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* for perspective camera props
|
|
103
|
+
*
|
|
104
|
+
* @generated from message draw.v1.PerspectiveCamera
|
|
105
|
+
*/
|
|
106
|
+
export class PerspectiveCamera extends Message {
|
|
107
|
+
constructor(data) {
|
|
108
|
+
super();
|
|
109
|
+
proto3.util.initPartial(data, this);
|
|
110
|
+
}
|
|
111
|
+
static runtime = proto3;
|
|
112
|
+
static typeName = "draw.v1.PerspectiveCamera";
|
|
113
|
+
static fields = proto3.util.newFieldList(() => []);
|
|
114
|
+
static fromBinary(bytes, options) {
|
|
115
|
+
return new PerspectiveCamera().fromBinary(bytes, options);
|
|
116
|
+
}
|
|
117
|
+
static fromJson(jsonValue, options) {
|
|
118
|
+
return new PerspectiveCamera().fromJson(jsonValue, options);
|
|
119
|
+
}
|
|
120
|
+
static fromJsonString(jsonString, options) {
|
|
121
|
+
return new PerspectiveCamera().fromJsonString(jsonString, options);
|
|
122
|
+
}
|
|
123
|
+
static equals(a, b) {
|
|
124
|
+
return proto3.util.equals(PerspectiveCamera, a, b);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* @generated from message draw.v1.SceneCamera
|
|
129
|
+
*/
|
|
130
|
+
export class SceneCamera extends Message {
|
|
131
|
+
/**
|
|
132
|
+
* The position of the camera in millimeters
|
|
133
|
+
* defaults to [0, 0, 3000]
|
|
134
|
+
*
|
|
135
|
+
* @generated from field: viam.common.v1.Vector3 position = 1;
|
|
136
|
+
*/
|
|
137
|
+
position;
|
|
138
|
+
/**
|
|
139
|
+
* The look at point of the camera in millimeters
|
|
140
|
+
* defaults to [0, 0, 0]
|
|
141
|
+
*
|
|
142
|
+
* @generated from field: viam.common.v1.Vector3 look_at = 2;
|
|
143
|
+
*/
|
|
144
|
+
lookAt;
|
|
145
|
+
/**
|
|
146
|
+
* Whether to animate camera movement
|
|
147
|
+
* defaults to false
|
|
148
|
+
*
|
|
149
|
+
* @generated from field: optional bool animated = 3;
|
|
150
|
+
*/
|
|
151
|
+
animated;
|
|
152
|
+
/**
|
|
153
|
+
* The camera type
|
|
154
|
+
* defaults to perspective_camera
|
|
155
|
+
*
|
|
156
|
+
* @generated from oneof draw.v1.SceneCamera.camera_type
|
|
157
|
+
*/
|
|
158
|
+
cameraType = { case: undefined };
|
|
159
|
+
constructor(data) {
|
|
160
|
+
super();
|
|
161
|
+
proto3.util.initPartial(data, this);
|
|
162
|
+
}
|
|
163
|
+
static runtime = proto3;
|
|
164
|
+
static typeName = "draw.v1.SceneCamera";
|
|
165
|
+
static fields = proto3.util.newFieldList(() => [
|
|
166
|
+
{ no: 1, name: "position", kind: "message", T: Vector3 },
|
|
167
|
+
{ no: 2, name: "look_at", kind: "message", T: Vector3 },
|
|
168
|
+
{ no: 3, name: "animated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
169
|
+
{ no: 4, name: "perspective_camera", kind: "message", T: PerspectiveCamera, oneof: "camera_type" },
|
|
170
|
+
{ no: 5, name: "orthographic_camera", kind: "message", T: OrthographicCamera, oneof: "camera_type" },
|
|
171
|
+
]);
|
|
172
|
+
static fromBinary(bytes, options) {
|
|
173
|
+
return new SceneCamera().fromBinary(bytes, options);
|
|
174
|
+
}
|
|
175
|
+
static fromJson(jsonValue, options) {
|
|
176
|
+
return new SceneCamera().fromJson(jsonValue, options);
|
|
177
|
+
}
|
|
178
|
+
static fromJsonString(jsonString, options) {
|
|
179
|
+
return new SceneCamera().fromJsonString(jsonString, options);
|
|
180
|
+
}
|
|
181
|
+
static equals(a, b) {
|
|
182
|
+
return proto3.util.equals(SceneCamera, a, b);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* @generated from message draw.v1.SceneMetadata
|
|
187
|
+
*/
|
|
188
|
+
export class SceneMetadata extends Message {
|
|
189
|
+
/**
|
|
190
|
+
* The camera to use for the scene
|
|
191
|
+
* defaults to a perspective_camera with a position of [3000, 3000, 3000] and
|
|
192
|
+
* a look_at of [0, 0, 0]
|
|
193
|
+
*
|
|
194
|
+
* @generated from field: optional draw.v1.SceneCamera scene_camera = 1;
|
|
195
|
+
*/
|
|
196
|
+
sceneCamera;
|
|
197
|
+
/**
|
|
198
|
+
* Whether to render the grid
|
|
199
|
+
* defaults to true
|
|
200
|
+
*
|
|
201
|
+
* @generated from field: optional bool grid = 2;
|
|
202
|
+
*/
|
|
203
|
+
grid;
|
|
204
|
+
/**
|
|
205
|
+
* The size of the grid cells
|
|
206
|
+
* defaults to 500 (millimeters)
|
|
207
|
+
*
|
|
208
|
+
* @generated from field: optional float grid_cell_size = 3;
|
|
209
|
+
*/
|
|
210
|
+
gridCellSize;
|
|
211
|
+
/**
|
|
212
|
+
* The size of the grid sections
|
|
213
|
+
* defaults to 10000 (millimeters)
|
|
214
|
+
*
|
|
215
|
+
* @generated from field: optional float grid_section_size = 4;
|
|
216
|
+
*/
|
|
217
|
+
gridSectionSize;
|
|
218
|
+
/**
|
|
219
|
+
* The fade distance of the grid
|
|
220
|
+
* defaults to 25000 (millimeters)
|
|
221
|
+
*
|
|
222
|
+
* @generated from field: optional float grid_fade_distance = 5;
|
|
223
|
+
*/
|
|
224
|
+
gridFadeDistance;
|
|
225
|
+
/**
|
|
226
|
+
* The size of points if not defined by a transform's metadata
|
|
227
|
+
* defaults to 10 (millimeters)
|
|
228
|
+
*
|
|
229
|
+
* @generated from field: optional float point_size = 6;
|
|
230
|
+
*/
|
|
231
|
+
pointSize;
|
|
232
|
+
/**
|
|
233
|
+
* The color of the points if not defined by a transform's metadata
|
|
234
|
+
* defaults to [51, 51, 51, 255] (gray)
|
|
235
|
+
*
|
|
236
|
+
* @generated from field: optional bytes point_color = 7;
|
|
237
|
+
*/
|
|
238
|
+
pointColor;
|
|
239
|
+
/**
|
|
240
|
+
* The width of the lines if not defined by a transform's metadata
|
|
241
|
+
* defaults to 5 (millimeters)
|
|
242
|
+
*
|
|
243
|
+
* @generated from field: optional float line_width = 8;
|
|
244
|
+
*/
|
|
245
|
+
lineWidth;
|
|
246
|
+
/**
|
|
247
|
+
* The size of the points of the lines if not defined by a transform's
|
|
248
|
+
* metadata defaults to 10 (millimeters)
|
|
249
|
+
*
|
|
250
|
+
* @generated from field: optional float line_point_size = 9;
|
|
251
|
+
*/
|
|
252
|
+
linePointSize;
|
|
253
|
+
/**
|
|
254
|
+
* The models to render
|
|
255
|
+
* defaults to COLLIDERS_AND_MODEL
|
|
256
|
+
*
|
|
257
|
+
* @generated from field: optional draw.v1.RenderArmModels render_arm_models = 10;
|
|
258
|
+
*/
|
|
259
|
+
renderArmModels;
|
|
260
|
+
/**
|
|
261
|
+
* The shapes to render
|
|
262
|
+
* defaults to [ARROWS, POINTS, LINES, MODEL, NURBS]
|
|
263
|
+
*
|
|
264
|
+
* @generated from field: repeated draw.v1.RenderShapes render_shapes = 11;
|
|
265
|
+
*/
|
|
266
|
+
renderShapes = [];
|
|
267
|
+
constructor(data) {
|
|
268
|
+
super();
|
|
269
|
+
proto3.util.initPartial(data, this);
|
|
270
|
+
}
|
|
271
|
+
static runtime = proto3;
|
|
272
|
+
static typeName = "draw.v1.SceneMetadata";
|
|
273
|
+
static fields = proto3.util.newFieldList(() => [
|
|
274
|
+
{ no: 1, name: "scene_camera", kind: "message", T: SceneCamera, opt: true },
|
|
275
|
+
{ no: 2, name: "grid", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
276
|
+
{ no: 3, name: "grid_cell_size", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
277
|
+
{ no: 4, name: "grid_section_size", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
278
|
+
{ no: 5, name: "grid_fade_distance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
279
|
+
{ no: 6, name: "point_size", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
280
|
+
{ no: 7, name: "point_color", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
|
|
281
|
+
{ no: 8, name: "line_width", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
282
|
+
{ no: 9, name: "line_point_size", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
283
|
+
{ no: 10, name: "render_arm_models", kind: "enum", T: proto3.getEnumType(RenderArmModels), opt: true },
|
|
284
|
+
{ no: 11, name: "render_shapes", kind: "enum", T: proto3.getEnumType(RenderShapes), repeated: true },
|
|
285
|
+
]);
|
|
286
|
+
static fromBinary(bytes, options) {
|
|
287
|
+
return new SceneMetadata().fromBinary(bytes, options);
|
|
288
|
+
}
|
|
289
|
+
static fromJson(jsonValue, options) {
|
|
290
|
+
return new SceneMetadata().fromJson(jsonValue, options);
|
|
291
|
+
}
|
|
292
|
+
static fromJsonString(jsonString, options) {
|
|
293
|
+
return new SceneMetadata().fromJsonString(jsonString, options);
|
|
294
|
+
}
|
|
295
|
+
static equals(a, b) {
|
|
296
|
+
return proto3.util.equals(SceneMetadata, a, b);
|
|
297
|
+
}
|
|
298
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
+
import { Transform } from "../../common/v1/common_pb";
|
|
4
|
+
import { Drawing } from "./drawing_pb";
|
|
5
|
+
import { SceneMetadata } from "./scene_pb";
|
|
6
|
+
/**
|
|
7
|
+
* @generated from message draw.v1.Snapshot
|
|
8
|
+
*/
|
|
9
|
+
export declare class Snapshot extends Message<Snapshot> {
|
|
10
|
+
/**
|
|
11
|
+
* the list of transforms and shapes in the scene to render
|
|
12
|
+
*
|
|
13
|
+
* @generated from field: repeated viam.common.v1.Transform transforms = 1;
|
|
14
|
+
*/
|
|
15
|
+
transforms: Transform[];
|
|
16
|
+
/**
|
|
17
|
+
* the list of drawings in the scene to render
|
|
18
|
+
*
|
|
19
|
+
* @generated from field: repeated draw.v1.Drawing drawings = 2;
|
|
20
|
+
*/
|
|
21
|
+
drawings: Drawing[];
|
|
22
|
+
/**
|
|
23
|
+
* a unique ID for the snapshot, to inform the visualizer if a new snapshot is being rendered
|
|
24
|
+
*
|
|
25
|
+
* @generated from field: bytes uuid = 3;
|
|
26
|
+
*/
|
|
27
|
+
uuid: Uint8Array<ArrayBuffer>;
|
|
28
|
+
/**
|
|
29
|
+
* optional metadata for the scene, matches the visualizer's "settings"
|
|
30
|
+
*
|
|
31
|
+
* @generated from field: optional draw.v1.SceneMetadata scene_metadata = 4;
|
|
32
|
+
*/
|
|
33
|
+
sceneMetadata?: SceneMetadata;
|
|
34
|
+
constructor(data?: PartialMessage<Snapshot>);
|
|
35
|
+
static readonly runtime: typeof proto3;
|
|
36
|
+
static readonly typeName = "draw.v1.Snapshot";
|
|
37
|
+
static readonly fields: FieldList;
|
|
38
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Snapshot;
|
|
39
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Snapshot;
|
|
40
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Snapshot;
|
|
41
|
+
static equals(a: Snapshot | PlainMessage<Snapshot> | undefined, b: Snapshot | PlainMessage<Snapshot> | undefined): boolean;
|
|
42
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=none"
|
|
2
|
+
// @generated from file draw/v1/snapshot.proto (package draw.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { 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 message draw.v1.Snapshot
|
|
11
|
+
*/
|
|
12
|
+
export class Snapshot extends Message {
|
|
13
|
+
/**
|
|
14
|
+
* the list of transforms and shapes in the scene to render
|
|
15
|
+
*
|
|
16
|
+
* @generated from field: repeated viam.common.v1.Transform transforms = 1;
|
|
17
|
+
*/
|
|
18
|
+
transforms = [];
|
|
19
|
+
/**
|
|
20
|
+
* the list of drawings in the scene to render
|
|
21
|
+
*
|
|
22
|
+
* @generated from field: repeated draw.v1.Drawing drawings = 2;
|
|
23
|
+
*/
|
|
24
|
+
drawings = [];
|
|
25
|
+
/**
|
|
26
|
+
* a unique ID for the snapshot, to inform the visualizer if a new snapshot is being rendered
|
|
27
|
+
*
|
|
28
|
+
* @generated from field: bytes uuid = 3;
|
|
29
|
+
*/
|
|
30
|
+
uuid = new Uint8Array(0);
|
|
31
|
+
/**
|
|
32
|
+
* optional metadata for the scene, matches the visualizer's "settings"
|
|
33
|
+
*
|
|
34
|
+
* @generated from field: optional draw.v1.SceneMetadata scene_metadata = 4;
|
|
35
|
+
*/
|
|
36
|
+
sceneMetadata;
|
|
37
|
+
constructor(data) {
|
|
38
|
+
super();
|
|
39
|
+
proto3.util.initPartial(data, this);
|
|
40
|
+
}
|
|
41
|
+
static runtime = proto3;
|
|
42
|
+
static typeName = "draw.v1.Snapshot";
|
|
43
|
+
static fields = proto3.util.newFieldList(() => [
|
|
44
|
+
{ no: 1, name: "transforms", kind: "message", T: Transform, repeated: true },
|
|
45
|
+
{ no: 2, name: "drawings", kind: "message", T: Drawing, repeated: true },
|
|
46
|
+
{ no: 3, name: "uuid", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
47
|
+
{ no: 4, name: "scene_metadata", kind: "message", T: SceneMetadata, opt: true },
|
|
48
|
+
]);
|
|
49
|
+
static fromBinary(bytes, options) {
|
|
50
|
+
return new Snapshot().fromBinary(bytes, options);
|
|
51
|
+
}
|
|
52
|
+
static fromJson(jsonValue, options) {
|
|
53
|
+
return new Snapshot().fromJson(jsonValue, options);
|
|
54
|
+
}
|
|
55
|
+
static fromJsonString(jsonString, options) {
|
|
56
|
+
return new Snapshot().fromJsonString(jsonString, options);
|
|
57
|
+
}
|
|
58
|
+
static equals(a, b) {
|
|
59
|
+
return proto3.util.equals(Snapshot, a, b);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
+
import { Transform } from "../../common/v1/common_pb";
|
|
4
|
+
/**
|
|
5
|
+
* Transforms is a list of transforms
|
|
6
|
+
* TODO: Here for backwards compatibility for the draw API, remove in a future release
|
|
7
|
+
*
|
|
8
|
+
* @generated from message draw.v1.Transforms
|
|
9
|
+
*/
|
|
10
|
+
export declare class Transforms extends Message<Transforms> {
|
|
11
|
+
/**
|
|
12
|
+
* @generated from field: repeated viam.common.v1.Transform transforms = 1;
|
|
13
|
+
*/
|
|
14
|
+
transforms: Transform[];
|
|
15
|
+
constructor(data?: PartialMessage<Transforms>);
|
|
16
|
+
static readonly runtime: typeof proto3;
|
|
17
|
+
static readonly typeName = "draw.v1.Transforms";
|
|
18
|
+
static readonly fields: FieldList;
|
|
19
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Transforms;
|
|
20
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Transforms;
|
|
21
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Transforms;
|
|
22
|
+
static equals(a: Transforms | PlainMessage<Transforms> | undefined, b: Transforms | PlainMessage<Transforms> | undefined): boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=none"
|
|
2
|
+
// @generated from file draw/v1/transforms.proto (package draw.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
+
import { Transform } from "../../common/v1/common_pb";
|
|
7
|
+
/**
|
|
8
|
+
* Transforms is a list of transforms
|
|
9
|
+
* TODO: Here for backwards compatibility for the draw API, remove in a future release
|
|
10
|
+
*
|
|
11
|
+
* @generated from message draw.v1.Transforms
|
|
12
|
+
*/
|
|
13
|
+
export class Transforms extends Message {
|
|
14
|
+
/**
|
|
15
|
+
* @generated from field: repeated viam.common.v1.Transform transforms = 1;
|
|
16
|
+
*/
|
|
17
|
+
transforms = [];
|
|
18
|
+
constructor(data) {
|
|
19
|
+
super();
|
|
20
|
+
proto3.util.initPartial(data, this);
|
|
21
|
+
}
|
|
22
|
+
static runtime = proto3;
|
|
23
|
+
static typeName = "draw.v1.Transforms";
|
|
24
|
+
static fields = proto3.util.newFieldList(() => [
|
|
25
|
+
{ no: 1, name: "transforms", kind: "message", T: Transform, repeated: true },
|
|
26
|
+
]);
|
|
27
|
+
static fromBinary(bytes, options) {
|
|
28
|
+
return new Transforms().fromBinary(bytes, options);
|
|
29
|
+
}
|
|
30
|
+
static fromJson(jsonValue, options) {
|
|
31
|
+
return new Transforms().fromJson(jsonValue, options);
|
|
32
|
+
}
|
|
33
|
+
static fromJsonString(jsonString, options) {
|
|
34
|
+
return new Transforms().fromJsonString(jsonString, options);
|
|
35
|
+
}
|
|
36
|
+
static equals(a, b) {
|
|
37
|
+
return proto3.util.equals(Transforms, a, b);
|
|
38
|
+
}
|
|
39
|
+
}
|