@vertexvis/stream-api 0.16.0-canary.0 → 0.16.0-canary.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/dist/bundle.cjs.js +27 -36
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +27 -36
- package/dist/bundle.esm.js.map +1 -1
- package/package.json +5 -5
package/dist/bundle.esm.js
CHANGED
|
@@ -7166,7 +7166,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
7166
7166
|
* Properties of a SelectionQuery.
|
|
7167
7167
|
* @memberof vertexvis.protobuf.stream
|
|
7168
7168
|
* @interface ISelectionQuery
|
|
7169
|
-
* @property {vertexvis.protobuf.core.IColorMaterial|null} [material] SelectionQuery material
|
|
7170
7169
|
*/
|
|
7171
7170
|
|
|
7172
7171
|
/**
|
|
@@ -7184,14 +7183,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
7184
7183
|
this[keys[i]] = properties[keys[i]];
|
|
7185
7184
|
}
|
|
7186
7185
|
|
|
7187
|
-
/**
|
|
7188
|
-
* SelectionQuery material.
|
|
7189
|
-
* @member {vertexvis.protobuf.core.IColorMaterial|null|undefined} material
|
|
7190
|
-
* @memberof vertexvis.protobuf.stream.SelectionQuery
|
|
7191
|
-
* @instance
|
|
7192
|
-
*/
|
|
7193
|
-
SelectionQuery.prototype.material = null;
|
|
7194
|
-
|
|
7195
7186
|
/**
|
|
7196
7187
|
* Creates a new SelectionQuery instance using the specified properties.
|
|
7197
7188
|
* @function create
|
|
@@ -7216,8 +7207,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
7216
7207
|
SelectionQuery.encode = function encode(message, writer) {
|
|
7217
7208
|
if (!writer)
|
|
7218
7209
|
writer = $Writer.create();
|
|
7219
|
-
if (message.material != null && Object.hasOwnProperty.call(message, "material"))
|
|
7220
|
-
$root.vertexvis.protobuf.core.ColorMaterial.encode(message.material, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
7221
7210
|
return writer;
|
|
7222
7211
|
};
|
|
7223
7212
|
|
|
@@ -7252,9 +7241,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
7252
7241
|
while (reader.pos < end) {
|
|
7253
7242
|
let tag = reader.uint32();
|
|
7254
7243
|
switch (tag >>> 3) {
|
|
7255
|
-
case 1:
|
|
7256
|
-
message.material = $root.vertexvis.protobuf.core.ColorMaterial.decode(reader, reader.uint32());
|
|
7257
|
-
break;
|
|
7258
7244
|
default:
|
|
7259
7245
|
reader.skipType(tag & 7);
|
|
7260
7246
|
break;
|
|
@@ -7290,11 +7276,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
7290
7276
|
SelectionQuery.verify = function verify(message) {
|
|
7291
7277
|
if (typeof message !== "object" || message === null)
|
|
7292
7278
|
return "object expected";
|
|
7293
|
-
if (message.material != null && message.hasOwnProperty("material")) {
|
|
7294
|
-
let error = $root.vertexvis.protobuf.core.ColorMaterial.verify(message.material);
|
|
7295
|
-
if (error)
|
|
7296
|
-
return "material." + error;
|
|
7297
|
-
}
|
|
7298
7279
|
return null;
|
|
7299
7280
|
};
|
|
7300
7281
|
|
|
@@ -7309,13 +7290,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
7309
7290
|
SelectionQuery.fromObject = function fromObject(object) {
|
|
7310
7291
|
if (object instanceof $root.vertexvis.protobuf.stream.SelectionQuery)
|
|
7311
7292
|
return object;
|
|
7312
|
-
|
|
7313
|
-
if (object.material != null) {
|
|
7314
|
-
if (typeof object.material !== "object")
|
|
7315
|
-
throw TypeError(".vertexvis.protobuf.stream.SelectionQuery.material: object expected");
|
|
7316
|
-
message.material = $root.vertexvis.protobuf.core.ColorMaterial.fromObject(object.material);
|
|
7317
|
-
}
|
|
7318
|
-
return message;
|
|
7293
|
+
return new $root.vertexvis.protobuf.stream.SelectionQuery();
|
|
7319
7294
|
};
|
|
7320
7295
|
|
|
7321
7296
|
/**
|
|
@@ -7327,15 +7302,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
7327
7302
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
7328
7303
|
* @returns {Object.<string,*>} Plain object
|
|
7329
7304
|
*/
|
|
7330
|
-
SelectionQuery.toObject = function toObject(
|
|
7331
|
-
|
|
7332
|
-
options = {};
|
|
7333
|
-
let object = {};
|
|
7334
|
-
if (options.defaults)
|
|
7335
|
-
object.material = null;
|
|
7336
|
-
if (message.material != null && message.hasOwnProperty("material"))
|
|
7337
|
-
object.material = $root.vertexvis.protobuf.core.ColorMaterial.toObject(message.material, options);
|
|
7338
|
-
return object;
|
|
7305
|
+
SelectionQuery.toObject = function toObject() {
|
|
7306
|
+
return {};
|
|
7339
7307
|
};
|
|
7340
7308
|
|
|
7341
7309
|
/**
|
|
@@ -8139,6 +8107,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8139
8107
|
* @memberof vertexvis.protobuf.stream
|
|
8140
8108
|
* @interface IChangeSelectionOperation
|
|
8141
8109
|
* @property {vertexvis.protobuf.core.IColorMaterial|null} [material] ChangeSelectionOperation material
|
|
8110
|
+
* @property {boolean|null} [selected] ChangeSelectionOperation selected
|
|
8142
8111
|
*/
|
|
8143
8112
|
|
|
8144
8113
|
/**
|
|
@@ -8164,6 +8133,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8164
8133
|
*/
|
|
8165
8134
|
ChangeSelectionOperation.prototype.material = null;
|
|
8166
8135
|
|
|
8136
|
+
/**
|
|
8137
|
+
* ChangeSelectionOperation selected.
|
|
8138
|
+
* @member {boolean} selected
|
|
8139
|
+
* @memberof vertexvis.protobuf.stream.ChangeSelectionOperation
|
|
8140
|
+
* @instance
|
|
8141
|
+
*/
|
|
8142
|
+
ChangeSelectionOperation.prototype.selected = false;
|
|
8143
|
+
|
|
8167
8144
|
/**
|
|
8168
8145
|
* Creates a new ChangeSelectionOperation instance using the specified properties.
|
|
8169
8146
|
* @function create
|
|
@@ -8190,6 +8167,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8190
8167
|
writer = $Writer.create();
|
|
8191
8168
|
if (message.material != null && Object.hasOwnProperty.call(message, "material"))
|
|
8192
8169
|
$root.vertexvis.protobuf.core.ColorMaterial.encode(message.material, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
8170
|
+
if (message.selected != null && Object.hasOwnProperty.call(message, "selected"))
|
|
8171
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.selected);
|
|
8193
8172
|
return writer;
|
|
8194
8173
|
};
|
|
8195
8174
|
|
|
@@ -8227,6 +8206,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8227
8206
|
case 1:
|
|
8228
8207
|
message.material = $root.vertexvis.protobuf.core.ColorMaterial.decode(reader, reader.uint32());
|
|
8229
8208
|
break;
|
|
8209
|
+
case 2:
|
|
8210
|
+
message.selected = reader.bool();
|
|
8211
|
+
break;
|
|
8230
8212
|
default:
|
|
8231
8213
|
reader.skipType(tag & 7);
|
|
8232
8214
|
break;
|
|
@@ -8267,6 +8249,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8267
8249
|
if (error)
|
|
8268
8250
|
return "material." + error;
|
|
8269
8251
|
}
|
|
8252
|
+
if (message.selected != null && message.hasOwnProperty("selected"))
|
|
8253
|
+
if (typeof message.selected !== "boolean")
|
|
8254
|
+
return "selected: boolean expected";
|
|
8270
8255
|
return null;
|
|
8271
8256
|
};
|
|
8272
8257
|
|
|
@@ -8287,6 +8272,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8287
8272
|
throw TypeError(".vertexvis.protobuf.stream.ChangeSelectionOperation.material: object expected");
|
|
8288
8273
|
message.material = $root.vertexvis.protobuf.core.ColorMaterial.fromObject(object.material);
|
|
8289
8274
|
}
|
|
8275
|
+
if (object.selected != null)
|
|
8276
|
+
message.selected = Boolean(object.selected);
|
|
8290
8277
|
return message;
|
|
8291
8278
|
};
|
|
8292
8279
|
|
|
@@ -8303,10 +8290,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8303
8290
|
if (!options)
|
|
8304
8291
|
options = {};
|
|
8305
8292
|
let object = {};
|
|
8306
|
-
if (options.defaults)
|
|
8293
|
+
if (options.defaults) {
|
|
8307
8294
|
object.material = null;
|
|
8295
|
+
object.selected = false;
|
|
8296
|
+
}
|
|
8308
8297
|
if (message.material != null && message.hasOwnProperty("material"))
|
|
8309
8298
|
object.material = $root.vertexvis.protobuf.core.ColorMaterial.toObject(message.material, options);
|
|
8299
|
+
if (message.selected != null && message.hasOwnProperty("selected"))
|
|
8300
|
+
object.selected = message.selected;
|
|
8310
8301
|
return object;
|
|
8311
8302
|
};
|
|
8312
8303
|
|