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