@vertexvis/stream-api 0.21.1-testing.1 → 0.21.1-testing.3

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.
@@ -39263,6 +39263,198 @@ const vertexvis = $root.vertexvis = (() => {
39263
39263
  return ColorMaterialf;
39264
39264
  })();
39265
39265
 
39266
+ core.BasicColor = (function() {
39267
+
39268
+ /**
39269
+ * Properties of a BasicColor.
39270
+ * @memberof vertexvis.protobuf.core
39271
+ * @interface IBasicColor
39272
+ * @property {vertexvis.protobuf.core.IRGBf|null} [baseColor] BasicColor baseColor
39273
+ */
39274
+
39275
+ /**
39276
+ * Constructs a new BasicColor.
39277
+ * @memberof vertexvis.protobuf.core
39278
+ * @classdesc Represents a BasicColor.
39279
+ * @implements IBasicColor
39280
+ * @constructor
39281
+ * @param {vertexvis.protobuf.core.IBasicColor=} [properties] Properties to set
39282
+ */
39283
+ function BasicColor(properties) {
39284
+ if (properties)
39285
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
39286
+ if (properties[keys[i]] != null)
39287
+ this[keys[i]] = properties[keys[i]];
39288
+ }
39289
+
39290
+ /**
39291
+ * BasicColor baseColor.
39292
+ * @member {vertexvis.protobuf.core.IRGBf|null|undefined} baseColor
39293
+ * @memberof vertexvis.protobuf.core.BasicColor
39294
+ * @instance
39295
+ */
39296
+ BasicColor.prototype.baseColor = null;
39297
+
39298
+ /**
39299
+ * Creates a new BasicColor instance using the specified properties.
39300
+ * @function create
39301
+ * @memberof vertexvis.protobuf.core.BasicColor
39302
+ * @static
39303
+ * @param {vertexvis.protobuf.core.IBasicColor=} [properties] Properties to set
39304
+ * @returns {vertexvis.protobuf.core.BasicColor} BasicColor instance
39305
+ */
39306
+ BasicColor.create = function create(properties) {
39307
+ return new BasicColor(properties);
39308
+ };
39309
+
39310
+ /**
39311
+ * Encodes the specified BasicColor message. Does not implicitly {@link vertexvis.protobuf.core.BasicColor.verify|verify} messages.
39312
+ * @function encode
39313
+ * @memberof vertexvis.protobuf.core.BasicColor
39314
+ * @static
39315
+ * @param {vertexvis.protobuf.core.IBasicColor} message BasicColor message or plain object to encode
39316
+ * @param {$protobuf.Writer} [writer] Writer to encode to
39317
+ * @returns {$protobuf.Writer} Writer
39318
+ */
39319
+ BasicColor.encode = function encode(message, writer) {
39320
+ if (!writer)
39321
+ writer = $Writer.create();
39322
+ if (message.baseColor != null && Object.hasOwnProperty.call(message, "baseColor"))
39323
+ $root.vertexvis.protobuf.core.RGBf.encode(message.baseColor, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
39324
+ return writer;
39325
+ };
39326
+
39327
+ /**
39328
+ * Encodes the specified BasicColor message, length delimited. Does not implicitly {@link vertexvis.protobuf.core.BasicColor.verify|verify} messages.
39329
+ * @function encodeDelimited
39330
+ * @memberof vertexvis.protobuf.core.BasicColor
39331
+ * @static
39332
+ * @param {vertexvis.protobuf.core.IBasicColor} message BasicColor message or plain object to encode
39333
+ * @param {$protobuf.Writer} [writer] Writer to encode to
39334
+ * @returns {$protobuf.Writer} Writer
39335
+ */
39336
+ BasicColor.encodeDelimited = function encodeDelimited(message, writer) {
39337
+ return this.encode(message, writer).ldelim();
39338
+ };
39339
+
39340
+ /**
39341
+ * Decodes a BasicColor message from the specified reader or buffer.
39342
+ * @function decode
39343
+ * @memberof vertexvis.protobuf.core.BasicColor
39344
+ * @static
39345
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
39346
+ * @param {number} [length] Message length if known beforehand
39347
+ * @returns {vertexvis.protobuf.core.BasicColor} BasicColor
39348
+ * @throws {Error} If the payload is not a reader or valid buffer
39349
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
39350
+ */
39351
+ BasicColor.decode = function decode(reader, length) {
39352
+ if (!(reader instanceof $Reader))
39353
+ reader = $Reader.create(reader);
39354
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.core.BasicColor();
39355
+ while (reader.pos < end) {
39356
+ let tag = reader.uint32();
39357
+ switch (tag >>> 3) {
39358
+ case 1:
39359
+ message.baseColor = $root.vertexvis.protobuf.core.RGBf.decode(reader, reader.uint32());
39360
+ break;
39361
+ default:
39362
+ reader.skipType(tag & 7);
39363
+ break;
39364
+ }
39365
+ }
39366
+ return message;
39367
+ };
39368
+
39369
+ /**
39370
+ * Decodes a BasicColor message from the specified reader or buffer, length delimited.
39371
+ * @function decodeDelimited
39372
+ * @memberof vertexvis.protobuf.core.BasicColor
39373
+ * @static
39374
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
39375
+ * @returns {vertexvis.protobuf.core.BasicColor} BasicColor
39376
+ * @throws {Error} If the payload is not a reader or valid buffer
39377
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
39378
+ */
39379
+ BasicColor.decodeDelimited = function decodeDelimited(reader) {
39380
+ if (!(reader instanceof $Reader))
39381
+ reader = new $Reader(reader);
39382
+ return this.decode(reader, reader.uint32());
39383
+ };
39384
+
39385
+ /**
39386
+ * Verifies a BasicColor message.
39387
+ * @function verify
39388
+ * @memberof vertexvis.protobuf.core.BasicColor
39389
+ * @static
39390
+ * @param {Object.<string,*>} message Plain object to verify
39391
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
39392
+ */
39393
+ BasicColor.verify = function verify(message) {
39394
+ if (typeof message !== "object" || message === null)
39395
+ return "object expected";
39396
+ if (message.baseColor != null && message.hasOwnProperty("baseColor")) {
39397
+ let error = $root.vertexvis.protobuf.core.RGBf.verify(message.baseColor);
39398
+ if (error)
39399
+ return "baseColor." + error;
39400
+ }
39401
+ return null;
39402
+ };
39403
+
39404
+ /**
39405
+ * Creates a BasicColor message from a plain object. Also converts values to their respective internal types.
39406
+ * @function fromObject
39407
+ * @memberof vertexvis.protobuf.core.BasicColor
39408
+ * @static
39409
+ * @param {Object.<string,*>} object Plain object
39410
+ * @returns {vertexvis.protobuf.core.BasicColor} BasicColor
39411
+ */
39412
+ BasicColor.fromObject = function fromObject(object) {
39413
+ if (object instanceof $root.vertexvis.protobuf.core.BasicColor)
39414
+ return object;
39415
+ let message = new $root.vertexvis.protobuf.core.BasicColor();
39416
+ if (object.baseColor != null) {
39417
+ if (typeof object.baseColor !== "object")
39418
+ throw TypeError(".vertexvis.protobuf.core.BasicColor.baseColor: object expected");
39419
+ message.baseColor = $root.vertexvis.protobuf.core.RGBf.fromObject(object.baseColor);
39420
+ }
39421
+ return message;
39422
+ };
39423
+
39424
+ /**
39425
+ * Creates a plain object from a BasicColor message. Also converts values to other types if specified.
39426
+ * @function toObject
39427
+ * @memberof vertexvis.protobuf.core.BasicColor
39428
+ * @static
39429
+ * @param {vertexvis.protobuf.core.BasicColor} message BasicColor
39430
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
39431
+ * @returns {Object.<string,*>} Plain object
39432
+ */
39433
+ BasicColor.toObject = function toObject(message, options) {
39434
+ if (!options)
39435
+ options = {};
39436
+ let object = {};
39437
+ if (options.defaults)
39438
+ object.baseColor = null;
39439
+ if (message.baseColor != null && message.hasOwnProperty("baseColor"))
39440
+ object.baseColor = $root.vertexvis.protobuf.core.RGBf.toObject(message.baseColor, options);
39441
+ return object;
39442
+ };
39443
+
39444
+ /**
39445
+ * Converts this BasicColor to JSON.
39446
+ * @function toJSON
39447
+ * @memberof vertexvis.protobuf.core.BasicColor
39448
+ * @instance
39449
+ * @returns {Object.<string,*>} JSON object
39450
+ */
39451
+ BasicColor.prototype.toJSON = function toJSON() {
39452
+ return this.constructor.toObject(this, minimal.util.toJSONOptions);
39453
+ };
39454
+
39455
+ return BasicColor;
39456
+ })();
39457
+
39266
39458
  core.ModelEntity = (function() {
39267
39459
 
39268
39460
  /**