@vertexvis/stream-api 0.19.0 → 0.19.1-canary.1
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 +774 -337
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +774 -337
- package/dist/bundle.esm.js.map +1 -1
- package/package.json +5 -5
package/dist/bundle.cjs.js
CHANGED
|
@@ -21884,6 +21884,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
21884
21884
|
* @property {number} SCENE_VIEW_STATE_FEATURE_VISIBILITY=4 SCENE_VIEW_STATE_FEATURE_VISIBILITY value
|
|
21885
21885
|
* @property {number} SCENE_VIEW_STATE_FEATURE_TRANSFORM=5 SCENE_VIEW_STATE_FEATURE_TRANSFORM value
|
|
21886
21886
|
* @property {number} SCENE_VIEW_STATE_FEATURE_CROSS_SECTION=6 SCENE_VIEW_STATE_FEATURE_CROSS_SECTION value
|
|
21887
|
+
* @property {number} SCENE_VIEW_STATE_FEATURE_PHANTOM=7 SCENE_VIEW_STATE_FEATURE_PHANTOM value
|
|
21887
21888
|
*/
|
|
21888
21889
|
stream.SceneViewStateFeature = (function() {
|
|
21889
21890
|
const valuesById = {}, values = Object.create(valuesById);
|
|
@@ -21894,6 +21895,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
21894
21895
|
values[valuesById[4] = "SCENE_VIEW_STATE_FEATURE_VISIBILITY"] = 4;
|
|
21895
21896
|
values[valuesById[5] = "SCENE_VIEW_STATE_FEATURE_TRANSFORM"] = 5;
|
|
21896
21897
|
values[valuesById[6] = "SCENE_VIEW_STATE_FEATURE_CROSS_SECTION"] = 6;
|
|
21898
|
+
values[valuesById[7] = "SCENE_VIEW_STATE_FEATURE_PHANTOM"] = 7;
|
|
21897
21899
|
return values;
|
|
21898
21900
|
})();
|
|
21899
21901
|
|
|
@@ -22133,6 +22135,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
22133
22135
|
case 4:
|
|
22134
22136
|
case 5:
|
|
22135
22137
|
case 6:
|
|
22138
|
+
case 7:
|
|
22136
22139
|
break;
|
|
22137
22140
|
}
|
|
22138
22141
|
}
|
|
@@ -22201,6 +22204,10 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
22201
22204
|
case 6:
|
|
22202
22205
|
message.sceneViewStateFeatureSubset[i] = 6;
|
|
22203
22206
|
break;
|
|
22207
|
+
case "SCENE_VIEW_STATE_FEATURE_PHANTOM":
|
|
22208
|
+
case 7:
|
|
22209
|
+
message.sceneViewStateFeatureSubset[i] = 7;
|
|
22210
|
+
break;
|
|
22204
22211
|
}
|
|
22205
22212
|
}
|
|
22206
22213
|
return message;
|
|
@@ -27979,6 +27986,216 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
27979
27986
|
*/
|
|
27980
27987
|
const core = {};
|
|
27981
27988
|
|
|
27989
|
+
core.Vector2i = (function() {
|
|
27990
|
+
|
|
27991
|
+
/**
|
|
27992
|
+
* Properties of a Vector2i.
|
|
27993
|
+
* @memberof vertexvis.protobuf.core
|
|
27994
|
+
* @interface IVector2i
|
|
27995
|
+
* @property {number|null} [x] Vector2i x
|
|
27996
|
+
* @property {number|null} [y] Vector2i y
|
|
27997
|
+
*/
|
|
27998
|
+
|
|
27999
|
+
/**
|
|
28000
|
+
* Constructs a new Vector2i.
|
|
28001
|
+
* @memberof vertexvis.protobuf.core
|
|
28002
|
+
* @classdesc Represents a Vector2i.
|
|
28003
|
+
* @implements IVector2i
|
|
28004
|
+
* @constructor
|
|
28005
|
+
* @param {vertexvis.protobuf.core.IVector2i=} [properties] Properties to set
|
|
28006
|
+
*/
|
|
28007
|
+
function Vector2i(properties) {
|
|
28008
|
+
if (properties)
|
|
28009
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
28010
|
+
if (properties[keys[i]] != null)
|
|
28011
|
+
this[keys[i]] = properties[keys[i]];
|
|
28012
|
+
}
|
|
28013
|
+
|
|
28014
|
+
/**
|
|
28015
|
+
* Vector2i x.
|
|
28016
|
+
* @member {number} x
|
|
28017
|
+
* @memberof vertexvis.protobuf.core.Vector2i
|
|
28018
|
+
* @instance
|
|
28019
|
+
*/
|
|
28020
|
+
Vector2i.prototype.x = 0;
|
|
28021
|
+
|
|
28022
|
+
/**
|
|
28023
|
+
* Vector2i y.
|
|
28024
|
+
* @member {number} y
|
|
28025
|
+
* @memberof vertexvis.protobuf.core.Vector2i
|
|
28026
|
+
* @instance
|
|
28027
|
+
*/
|
|
28028
|
+
Vector2i.prototype.y = 0;
|
|
28029
|
+
|
|
28030
|
+
/**
|
|
28031
|
+
* Creates a new Vector2i instance using the specified properties.
|
|
28032
|
+
* @function create
|
|
28033
|
+
* @memberof vertexvis.protobuf.core.Vector2i
|
|
28034
|
+
* @static
|
|
28035
|
+
* @param {vertexvis.protobuf.core.IVector2i=} [properties] Properties to set
|
|
28036
|
+
* @returns {vertexvis.protobuf.core.Vector2i} Vector2i instance
|
|
28037
|
+
*/
|
|
28038
|
+
Vector2i.create = function create(properties) {
|
|
28039
|
+
return new Vector2i(properties);
|
|
28040
|
+
};
|
|
28041
|
+
|
|
28042
|
+
/**
|
|
28043
|
+
* Encodes the specified Vector2i message. Does not implicitly {@link vertexvis.protobuf.core.Vector2i.verify|verify} messages.
|
|
28044
|
+
* @function encode
|
|
28045
|
+
* @memberof vertexvis.protobuf.core.Vector2i
|
|
28046
|
+
* @static
|
|
28047
|
+
* @param {vertexvis.protobuf.core.IVector2i} message Vector2i message or plain object to encode
|
|
28048
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
28049
|
+
* @returns {$protobuf.Writer} Writer
|
|
28050
|
+
*/
|
|
28051
|
+
Vector2i.encode = function encode(message, writer) {
|
|
28052
|
+
if (!writer)
|
|
28053
|
+
writer = $Writer.create();
|
|
28054
|
+
if (message.x != null && Object.hasOwnProperty.call(message, "x"))
|
|
28055
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.x);
|
|
28056
|
+
if (message.y != null && Object.hasOwnProperty.call(message, "y"))
|
|
28057
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.y);
|
|
28058
|
+
return writer;
|
|
28059
|
+
};
|
|
28060
|
+
|
|
28061
|
+
/**
|
|
28062
|
+
* Encodes the specified Vector2i message, length delimited. Does not implicitly {@link vertexvis.protobuf.core.Vector2i.verify|verify} messages.
|
|
28063
|
+
* @function encodeDelimited
|
|
28064
|
+
* @memberof vertexvis.protobuf.core.Vector2i
|
|
28065
|
+
* @static
|
|
28066
|
+
* @param {vertexvis.protobuf.core.IVector2i} message Vector2i message or plain object to encode
|
|
28067
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
28068
|
+
* @returns {$protobuf.Writer} Writer
|
|
28069
|
+
*/
|
|
28070
|
+
Vector2i.encodeDelimited = function encodeDelimited(message, writer) {
|
|
28071
|
+
return this.encode(message, writer).ldelim();
|
|
28072
|
+
};
|
|
28073
|
+
|
|
28074
|
+
/**
|
|
28075
|
+
* Decodes a Vector2i message from the specified reader or buffer.
|
|
28076
|
+
* @function decode
|
|
28077
|
+
* @memberof vertexvis.protobuf.core.Vector2i
|
|
28078
|
+
* @static
|
|
28079
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
28080
|
+
* @param {number} [length] Message length if known beforehand
|
|
28081
|
+
* @returns {vertexvis.protobuf.core.Vector2i} Vector2i
|
|
28082
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28083
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28084
|
+
*/
|
|
28085
|
+
Vector2i.decode = function decode(reader, length) {
|
|
28086
|
+
if (!(reader instanceof $Reader))
|
|
28087
|
+
reader = $Reader.create(reader);
|
|
28088
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.core.Vector2i();
|
|
28089
|
+
while (reader.pos < end) {
|
|
28090
|
+
let tag = reader.uint32();
|
|
28091
|
+
switch (tag >>> 3) {
|
|
28092
|
+
case 1:
|
|
28093
|
+
message.x = reader.int32();
|
|
28094
|
+
break;
|
|
28095
|
+
case 2:
|
|
28096
|
+
message.y = reader.int32();
|
|
28097
|
+
break;
|
|
28098
|
+
default:
|
|
28099
|
+
reader.skipType(tag & 7);
|
|
28100
|
+
break;
|
|
28101
|
+
}
|
|
28102
|
+
}
|
|
28103
|
+
return message;
|
|
28104
|
+
};
|
|
28105
|
+
|
|
28106
|
+
/**
|
|
28107
|
+
* Decodes a Vector2i message from the specified reader or buffer, length delimited.
|
|
28108
|
+
* @function decodeDelimited
|
|
28109
|
+
* @memberof vertexvis.protobuf.core.Vector2i
|
|
28110
|
+
* @static
|
|
28111
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
28112
|
+
* @returns {vertexvis.protobuf.core.Vector2i} Vector2i
|
|
28113
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28114
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28115
|
+
*/
|
|
28116
|
+
Vector2i.decodeDelimited = function decodeDelimited(reader) {
|
|
28117
|
+
if (!(reader instanceof $Reader))
|
|
28118
|
+
reader = new $Reader(reader);
|
|
28119
|
+
return this.decode(reader, reader.uint32());
|
|
28120
|
+
};
|
|
28121
|
+
|
|
28122
|
+
/**
|
|
28123
|
+
* Verifies a Vector2i message.
|
|
28124
|
+
* @function verify
|
|
28125
|
+
* @memberof vertexvis.protobuf.core.Vector2i
|
|
28126
|
+
* @static
|
|
28127
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
28128
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
28129
|
+
*/
|
|
28130
|
+
Vector2i.verify = function verify(message) {
|
|
28131
|
+
if (typeof message !== "object" || message === null)
|
|
28132
|
+
return "object expected";
|
|
28133
|
+
if (message.x != null && message.hasOwnProperty("x"))
|
|
28134
|
+
if (!$util.isInteger(message.x))
|
|
28135
|
+
return "x: integer expected";
|
|
28136
|
+
if (message.y != null && message.hasOwnProperty("y"))
|
|
28137
|
+
if (!$util.isInteger(message.y))
|
|
28138
|
+
return "y: integer expected";
|
|
28139
|
+
return null;
|
|
28140
|
+
};
|
|
28141
|
+
|
|
28142
|
+
/**
|
|
28143
|
+
* Creates a Vector2i message from a plain object. Also converts values to their respective internal types.
|
|
28144
|
+
* @function fromObject
|
|
28145
|
+
* @memberof vertexvis.protobuf.core.Vector2i
|
|
28146
|
+
* @static
|
|
28147
|
+
* @param {Object.<string,*>} object Plain object
|
|
28148
|
+
* @returns {vertexvis.protobuf.core.Vector2i} Vector2i
|
|
28149
|
+
*/
|
|
28150
|
+
Vector2i.fromObject = function fromObject(object) {
|
|
28151
|
+
if (object instanceof $root.vertexvis.protobuf.core.Vector2i)
|
|
28152
|
+
return object;
|
|
28153
|
+
let message = new $root.vertexvis.protobuf.core.Vector2i();
|
|
28154
|
+
if (object.x != null)
|
|
28155
|
+
message.x = object.x | 0;
|
|
28156
|
+
if (object.y != null)
|
|
28157
|
+
message.y = object.y | 0;
|
|
28158
|
+
return message;
|
|
28159
|
+
};
|
|
28160
|
+
|
|
28161
|
+
/**
|
|
28162
|
+
* Creates a plain object from a Vector2i message. Also converts values to other types if specified.
|
|
28163
|
+
* @function toObject
|
|
28164
|
+
* @memberof vertexvis.protobuf.core.Vector2i
|
|
28165
|
+
* @static
|
|
28166
|
+
* @param {vertexvis.protobuf.core.Vector2i} message Vector2i
|
|
28167
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
28168
|
+
* @returns {Object.<string,*>} Plain object
|
|
28169
|
+
*/
|
|
28170
|
+
Vector2i.toObject = function toObject(message, options) {
|
|
28171
|
+
if (!options)
|
|
28172
|
+
options = {};
|
|
28173
|
+
let object = {};
|
|
28174
|
+
if (options.defaults) {
|
|
28175
|
+
object.x = 0;
|
|
28176
|
+
object.y = 0;
|
|
28177
|
+
}
|
|
28178
|
+
if (message.x != null && message.hasOwnProperty("x"))
|
|
28179
|
+
object.x = message.x;
|
|
28180
|
+
if (message.y != null && message.hasOwnProperty("y"))
|
|
28181
|
+
object.y = message.y;
|
|
28182
|
+
return object;
|
|
28183
|
+
};
|
|
28184
|
+
|
|
28185
|
+
/**
|
|
28186
|
+
* Converts this Vector2i to JSON.
|
|
28187
|
+
* @function toJSON
|
|
28188
|
+
* @memberof vertexvis.protobuf.core.Vector2i
|
|
28189
|
+
* @instance
|
|
28190
|
+
* @returns {Object.<string,*>} JSON object
|
|
28191
|
+
*/
|
|
28192
|
+
Vector2i.prototype.toJSON = function toJSON() {
|
|
28193
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
28194
|
+
};
|
|
28195
|
+
|
|
28196
|
+
return Vector2i;
|
|
28197
|
+
})();
|
|
28198
|
+
|
|
27982
28199
|
core.Vector2f = (function() {
|
|
27983
28200
|
|
|
27984
28201
|
/**
|
|
@@ -32144,25 +32361,25 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
32144
32361
|
return BBox2d;
|
|
32145
32362
|
})();
|
|
32146
32363
|
|
|
32147
|
-
core.
|
|
32364
|
+
core.BBox2i = (function() {
|
|
32148
32365
|
|
|
32149
32366
|
/**
|
|
32150
|
-
* Properties of a
|
|
32367
|
+
* Properties of a BBox2i.
|
|
32151
32368
|
* @memberof vertexvis.protobuf.core
|
|
32152
|
-
* @interface
|
|
32153
|
-
* @property {vertexvis.protobuf.core.
|
|
32154
|
-
* @property {vertexvis.protobuf.core.
|
|
32369
|
+
* @interface IBBox2i
|
|
32370
|
+
* @property {vertexvis.protobuf.core.IVector2i|null} [min] BBox2i min
|
|
32371
|
+
* @property {vertexvis.protobuf.core.IVector2i|null} [max] BBox2i max
|
|
32155
32372
|
*/
|
|
32156
32373
|
|
|
32157
32374
|
/**
|
|
32158
|
-
* Constructs a new
|
|
32375
|
+
* Constructs a new BBox2i.
|
|
32159
32376
|
* @memberof vertexvis.protobuf.core
|
|
32160
|
-
* @classdesc Represents a
|
|
32161
|
-
* @implements
|
|
32377
|
+
* @classdesc Represents a BBox2i.
|
|
32378
|
+
* @implements IBBox2i
|
|
32162
32379
|
* @constructor
|
|
32163
|
-
* @param {vertexvis.protobuf.core.
|
|
32380
|
+
* @param {vertexvis.protobuf.core.IBBox2i=} [properties] Properties to set
|
|
32164
32381
|
*/
|
|
32165
|
-
function
|
|
32382
|
+
function BBox2i(properties) {
|
|
32166
32383
|
if (properties)
|
|
32167
32384
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
32168
32385
|
if (properties[keys[i]] != null)
|
|
@@ -32170,88 +32387,88 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
32170
32387
|
}
|
|
32171
32388
|
|
|
32172
32389
|
/**
|
|
32173
|
-
*
|
|
32174
|
-
* @member {vertexvis.protobuf.core.
|
|
32175
|
-
* @memberof vertexvis.protobuf.core.
|
|
32390
|
+
* BBox2i min.
|
|
32391
|
+
* @member {vertexvis.protobuf.core.IVector2i|null|undefined} min
|
|
32392
|
+
* @memberof vertexvis.protobuf.core.BBox2i
|
|
32176
32393
|
* @instance
|
|
32177
32394
|
*/
|
|
32178
|
-
|
|
32395
|
+
BBox2i.prototype.min = null;
|
|
32179
32396
|
|
|
32180
32397
|
/**
|
|
32181
|
-
*
|
|
32182
|
-
* @member {vertexvis.protobuf.core.
|
|
32183
|
-
* @memberof vertexvis.protobuf.core.
|
|
32398
|
+
* BBox2i max.
|
|
32399
|
+
* @member {vertexvis.protobuf.core.IVector2i|null|undefined} max
|
|
32400
|
+
* @memberof vertexvis.protobuf.core.BBox2i
|
|
32184
32401
|
* @instance
|
|
32185
32402
|
*/
|
|
32186
|
-
|
|
32403
|
+
BBox2i.prototype.max = null;
|
|
32187
32404
|
|
|
32188
32405
|
/**
|
|
32189
|
-
* Creates a new
|
|
32406
|
+
* Creates a new BBox2i instance using the specified properties.
|
|
32190
32407
|
* @function create
|
|
32191
|
-
* @memberof vertexvis.protobuf.core.
|
|
32408
|
+
* @memberof vertexvis.protobuf.core.BBox2i
|
|
32192
32409
|
* @static
|
|
32193
|
-
* @param {vertexvis.protobuf.core.
|
|
32194
|
-
* @returns {vertexvis.protobuf.core.
|
|
32410
|
+
* @param {vertexvis.protobuf.core.IBBox2i=} [properties] Properties to set
|
|
32411
|
+
* @returns {vertexvis.protobuf.core.BBox2i} BBox2i instance
|
|
32195
32412
|
*/
|
|
32196
|
-
|
|
32197
|
-
return new
|
|
32413
|
+
BBox2i.create = function create(properties) {
|
|
32414
|
+
return new BBox2i(properties);
|
|
32198
32415
|
};
|
|
32199
32416
|
|
|
32200
32417
|
/**
|
|
32201
|
-
* Encodes the specified
|
|
32418
|
+
* Encodes the specified BBox2i message. Does not implicitly {@link vertexvis.protobuf.core.BBox2i.verify|verify} messages.
|
|
32202
32419
|
* @function encode
|
|
32203
|
-
* @memberof vertexvis.protobuf.core.
|
|
32420
|
+
* @memberof vertexvis.protobuf.core.BBox2i
|
|
32204
32421
|
* @static
|
|
32205
|
-
* @param {vertexvis.protobuf.core.
|
|
32422
|
+
* @param {vertexvis.protobuf.core.IBBox2i} message BBox2i message or plain object to encode
|
|
32206
32423
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
32207
32424
|
* @returns {$protobuf.Writer} Writer
|
|
32208
32425
|
*/
|
|
32209
|
-
|
|
32426
|
+
BBox2i.encode = function encode(message, writer) {
|
|
32210
32427
|
if (!writer)
|
|
32211
32428
|
writer = $Writer.create();
|
|
32212
32429
|
if (message.min != null && Object.hasOwnProperty.call(message, "min"))
|
|
32213
|
-
$root.vertexvis.protobuf.core.
|
|
32430
|
+
$root.vertexvis.protobuf.core.Vector2i.encode(message.min, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
32214
32431
|
if (message.max != null && Object.hasOwnProperty.call(message, "max"))
|
|
32215
|
-
$root.vertexvis.protobuf.core.
|
|
32432
|
+
$root.vertexvis.protobuf.core.Vector2i.encode(message.max, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
32216
32433
|
return writer;
|
|
32217
32434
|
};
|
|
32218
32435
|
|
|
32219
32436
|
/**
|
|
32220
|
-
* Encodes the specified
|
|
32437
|
+
* Encodes the specified BBox2i message, length delimited. Does not implicitly {@link vertexvis.protobuf.core.BBox2i.verify|verify} messages.
|
|
32221
32438
|
* @function encodeDelimited
|
|
32222
|
-
* @memberof vertexvis.protobuf.core.
|
|
32439
|
+
* @memberof vertexvis.protobuf.core.BBox2i
|
|
32223
32440
|
* @static
|
|
32224
|
-
* @param {vertexvis.protobuf.core.
|
|
32441
|
+
* @param {vertexvis.protobuf.core.IBBox2i} message BBox2i message or plain object to encode
|
|
32225
32442
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
32226
32443
|
* @returns {$protobuf.Writer} Writer
|
|
32227
32444
|
*/
|
|
32228
|
-
|
|
32445
|
+
BBox2i.encodeDelimited = function encodeDelimited(message, writer) {
|
|
32229
32446
|
return this.encode(message, writer).ldelim();
|
|
32230
32447
|
};
|
|
32231
32448
|
|
|
32232
32449
|
/**
|
|
32233
|
-
* Decodes a
|
|
32450
|
+
* Decodes a BBox2i message from the specified reader or buffer.
|
|
32234
32451
|
* @function decode
|
|
32235
|
-
* @memberof vertexvis.protobuf.core.
|
|
32452
|
+
* @memberof vertexvis.protobuf.core.BBox2i
|
|
32236
32453
|
* @static
|
|
32237
32454
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
32238
32455
|
* @param {number} [length] Message length if known beforehand
|
|
32239
|
-
* @returns {vertexvis.protobuf.core.
|
|
32456
|
+
* @returns {vertexvis.protobuf.core.BBox2i} BBox2i
|
|
32240
32457
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
32241
32458
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
32242
32459
|
*/
|
|
32243
|
-
|
|
32460
|
+
BBox2i.decode = function decode(reader, length) {
|
|
32244
32461
|
if (!(reader instanceof $Reader))
|
|
32245
32462
|
reader = $Reader.create(reader);
|
|
32246
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.core.
|
|
32463
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.core.BBox2i();
|
|
32247
32464
|
while (reader.pos < end) {
|
|
32248
32465
|
let tag = reader.uint32();
|
|
32249
32466
|
switch (tag >>> 3) {
|
|
32250
32467
|
case 1:
|
|
32251
|
-
message.min = $root.vertexvis.protobuf.core.
|
|
32468
|
+
message.min = $root.vertexvis.protobuf.core.Vector2i.decode(reader, reader.uint32());
|
|
32252
32469
|
break;
|
|
32253
32470
|
case 2:
|
|
32254
|
-
message.max = $root.vertexvis.protobuf.core.
|
|
32471
|
+
message.max = $root.vertexvis.protobuf.core.Vector2i.decode(reader, reader.uint32());
|
|
32255
32472
|
break;
|
|
32256
32473
|
default:
|
|
32257
32474
|
reader.skipType(tag & 7);
|
|
@@ -32262,39 +32479,39 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
32262
32479
|
};
|
|
32263
32480
|
|
|
32264
32481
|
/**
|
|
32265
|
-
* Decodes a
|
|
32482
|
+
* Decodes a BBox2i message from the specified reader or buffer, length delimited.
|
|
32266
32483
|
* @function decodeDelimited
|
|
32267
|
-
* @memberof vertexvis.protobuf.core.
|
|
32484
|
+
* @memberof vertexvis.protobuf.core.BBox2i
|
|
32268
32485
|
* @static
|
|
32269
32486
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
32270
|
-
* @returns {vertexvis.protobuf.core.
|
|
32487
|
+
* @returns {vertexvis.protobuf.core.BBox2i} BBox2i
|
|
32271
32488
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
32272
32489
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
32273
32490
|
*/
|
|
32274
|
-
|
|
32491
|
+
BBox2i.decodeDelimited = function decodeDelimited(reader) {
|
|
32275
32492
|
if (!(reader instanceof $Reader))
|
|
32276
32493
|
reader = new $Reader(reader);
|
|
32277
32494
|
return this.decode(reader, reader.uint32());
|
|
32278
32495
|
};
|
|
32279
32496
|
|
|
32280
32497
|
/**
|
|
32281
|
-
* Verifies a
|
|
32498
|
+
* Verifies a BBox2i message.
|
|
32282
32499
|
* @function verify
|
|
32283
|
-
* @memberof vertexvis.protobuf.core.
|
|
32500
|
+
* @memberof vertexvis.protobuf.core.BBox2i
|
|
32284
32501
|
* @static
|
|
32285
32502
|
* @param {Object.<string,*>} message Plain object to verify
|
|
32286
32503
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
32287
32504
|
*/
|
|
32288
|
-
|
|
32505
|
+
BBox2i.verify = function verify(message) {
|
|
32289
32506
|
if (typeof message !== "object" || message === null)
|
|
32290
32507
|
return "object expected";
|
|
32291
32508
|
if (message.min != null && message.hasOwnProperty("min")) {
|
|
32292
|
-
let error = $root.vertexvis.protobuf.core.
|
|
32509
|
+
let error = $root.vertexvis.protobuf.core.Vector2i.verify(message.min);
|
|
32293
32510
|
if (error)
|
|
32294
32511
|
return "min." + error;
|
|
32295
32512
|
}
|
|
32296
32513
|
if (message.max != null && message.hasOwnProperty("max")) {
|
|
32297
|
-
let error = $root.vertexvis.protobuf.core.
|
|
32514
|
+
let error = $root.vertexvis.protobuf.core.Vector2i.verify(message.max);
|
|
32298
32515
|
if (error)
|
|
32299
32516
|
return "max." + error;
|
|
32300
32517
|
}
|
|
@@ -32302,40 +32519,40 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
32302
32519
|
};
|
|
32303
32520
|
|
|
32304
32521
|
/**
|
|
32305
|
-
* Creates a
|
|
32522
|
+
* Creates a BBox2i message from a plain object. Also converts values to their respective internal types.
|
|
32306
32523
|
* @function fromObject
|
|
32307
|
-
* @memberof vertexvis.protobuf.core.
|
|
32524
|
+
* @memberof vertexvis.protobuf.core.BBox2i
|
|
32308
32525
|
* @static
|
|
32309
32526
|
* @param {Object.<string,*>} object Plain object
|
|
32310
|
-
* @returns {vertexvis.protobuf.core.
|
|
32527
|
+
* @returns {vertexvis.protobuf.core.BBox2i} BBox2i
|
|
32311
32528
|
*/
|
|
32312
|
-
|
|
32313
|
-
if (object instanceof $root.vertexvis.protobuf.core.
|
|
32529
|
+
BBox2i.fromObject = function fromObject(object) {
|
|
32530
|
+
if (object instanceof $root.vertexvis.protobuf.core.BBox2i)
|
|
32314
32531
|
return object;
|
|
32315
|
-
let message = new $root.vertexvis.protobuf.core.
|
|
32532
|
+
let message = new $root.vertexvis.protobuf.core.BBox2i();
|
|
32316
32533
|
if (object.min != null) {
|
|
32317
32534
|
if (typeof object.min !== "object")
|
|
32318
|
-
throw TypeError(".vertexvis.protobuf.core.
|
|
32319
|
-
message.min = $root.vertexvis.protobuf.core.
|
|
32535
|
+
throw TypeError(".vertexvis.protobuf.core.BBox2i.min: object expected");
|
|
32536
|
+
message.min = $root.vertexvis.protobuf.core.Vector2i.fromObject(object.min);
|
|
32320
32537
|
}
|
|
32321
32538
|
if (object.max != null) {
|
|
32322
32539
|
if (typeof object.max !== "object")
|
|
32323
|
-
throw TypeError(".vertexvis.protobuf.core.
|
|
32324
|
-
message.max = $root.vertexvis.protobuf.core.
|
|
32540
|
+
throw TypeError(".vertexvis.protobuf.core.BBox2i.max: object expected");
|
|
32541
|
+
message.max = $root.vertexvis.protobuf.core.Vector2i.fromObject(object.max);
|
|
32325
32542
|
}
|
|
32326
32543
|
return message;
|
|
32327
32544
|
};
|
|
32328
32545
|
|
|
32329
32546
|
/**
|
|
32330
|
-
* Creates a plain object from a
|
|
32547
|
+
* Creates a plain object from a BBox2i message. Also converts values to other types if specified.
|
|
32331
32548
|
* @function toObject
|
|
32332
|
-
* @memberof vertexvis.protobuf.core.
|
|
32549
|
+
* @memberof vertexvis.protobuf.core.BBox2i
|
|
32333
32550
|
* @static
|
|
32334
|
-
* @param {vertexvis.protobuf.core.
|
|
32551
|
+
* @param {vertexvis.protobuf.core.BBox2i} message BBox2i
|
|
32335
32552
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
32336
32553
|
* @returns {Object.<string,*>} Plain object
|
|
32337
32554
|
*/
|
|
32338
|
-
|
|
32555
|
+
BBox2i.toObject = function toObject(message, options) {
|
|
32339
32556
|
if (!options)
|
|
32340
32557
|
options = {};
|
|
32341
32558
|
let object = {};
|
|
@@ -32344,45 +32561,45 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
32344
32561
|
object.max = null;
|
|
32345
32562
|
}
|
|
32346
32563
|
if (message.min != null && message.hasOwnProperty("min"))
|
|
32347
|
-
object.min = $root.vertexvis.protobuf.core.
|
|
32564
|
+
object.min = $root.vertexvis.protobuf.core.Vector2i.toObject(message.min, options);
|
|
32348
32565
|
if (message.max != null && message.hasOwnProperty("max"))
|
|
32349
|
-
object.max = $root.vertexvis.protobuf.core.
|
|
32566
|
+
object.max = $root.vertexvis.protobuf.core.Vector2i.toObject(message.max, options);
|
|
32350
32567
|
return object;
|
|
32351
32568
|
};
|
|
32352
32569
|
|
|
32353
32570
|
/**
|
|
32354
|
-
* Converts this
|
|
32571
|
+
* Converts this BBox2i to JSON.
|
|
32355
32572
|
* @function toJSON
|
|
32356
|
-
* @memberof vertexvis.protobuf.core.
|
|
32573
|
+
* @memberof vertexvis.protobuf.core.BBox2i
|
|
32357
32574
|
* @instance
|
|
32358
32575
|
* @returns {Object.<string,*>} JSON object
|
|
32359
32576
|
*/
|
|
32360
|
-
|
|
32577
|
+
BBox2i.prototype.toJSON = function toJSON() {
|
|
32361
32578
|
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
32362
32579
|
};
|
|
32363
32580
|
|
|
32364
|
-
return
|
|
32581
|
+
return BBox2i;
|
|
32365
32582
|
})();
|
|
32366
32583
|
|
|
32367
|
-
core.
|
|
32584
|
+
core.BBox3f = (function() {
|
|
32368
32585
|
|
|
32369
32586
|
/**
|
|
32370
|
-
* Properties of a
|
|
32587
|
+
* Properties of a BBox3f.
|
|
32371
32588
|
* @memberof vertexvis.protobuf.core
|
|
32372
|
-
* @interface
|
|
32373
|
-
* @property {vertexvis.protobuf.core.
|
|
32374
|
-
* @property {vertexvis.protobuf.core.
|
|
32589
|
+
* @interface IBBox3f
|
|
32590
|
+
* @property {vertexvis.protobuf.core.IVector3f|null} [min] BBox3f min
|
|
32591
|
+
* @property {vertexvis.protobuf.core.IVector3f|null} [max] BBox3f max
|
|
32375
32592
|
*/
|
|
32376
32593
|
|
|
32377
32594
|
/**
|
|
32378
|
-
* Constructs a new
|
|
32595
|
+
* Constructs a new BBox3f.
|
|
32379
32596
|
* @memberof vertexvis.protobuf.core
|
|
32380
|
-
* @classdesc Represents a
|
|
32381
|
-
* @implements
|
|
32597
|
+
* @classdesc Represents a BBox3f.
|
|
32598
|
+
* @implements IBBox3f
|
|
32382
32599
|
* @constructor
|
|
32383
|
-
* @param {vertexvis.protobuf.core.
|
|
32600
|
+
* @param {vertexvis.protobuf.core.IBBox3f=} [properties] Properties to set
|
|
32384
32601
|
*/
|
|
32385
|
-
function
|
|
32602
|
+
function BBox3f(properties) {
|
|
32386
32603
|
if (properties)
|
|
32387
32604
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
32388
32605
|
if (properties[keys[i]] != null)
|
|
@@ -32390,17 +32607,237 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
32390
32607
|
}
|
|
32391
32608
|
|
|
32392
32609
|
/**
|
|
32393
|
-
*
|
|
32394
|
-
* @member {vertexvis.protobuf.core.
|
|
32395
|
-
* @memberof vertexvis.protobuf.core.
|
|
32610
|
+
* BBox3f min.
|
|
32611
|
+
* @member {vertexvis.protobuf.core.IVector3f|null|undefined} min
|
|
32612
|
+
* @memberof vertexvis.protobuf.core.BBox3f
|
|
32396
32613
|
* @instance
|
|
32397
32614
|
*/
|
|
32398
|
-
|
|
32615
|
+
BBox3f.prototype.min = null;
|
|
32399
32616
|
|
|
32400
32617
|
/**
|
|
32401
|
-
*
|
|
32402
|
-
* @member {vertexvis.protobuf.core.
|
|
32403
|
-
* @memberof vertexvis.protobuf.core.
|
|
32618
|
+
* BBox3f max.
|
|
32619
|
+
* @member {vertexvis.protobuf.core.IVector3f|null|undefined} max
|
|
32620
|
+
* @memberof vertexvis.protobuf.core.BBox3f
|
|
32621
|
+
* @instance
|
|
32622
|
+
*/
|
|
32623
|
+
BBox3f.prototype.max = null;
|
|
32624
|
+
|
|
32625
|
+
/**
|
|
32626
|
+
* Creates a new BBox3f instance using the specified properties.
|
|
32627
|
+
* @function create
|
|
32628
|
+
* @memberof vertexvis.protobuf.core.BBox3f
|
|
32629
|
+
* @static
|
|
32630
|
+
* @param {vertexvis.protobuf.core.IBBox3f=} [properties] Properties to set
|
|
32631
|
+
* @returns {vertexvis.protobuf.core.BBox3f} BBox3f instance
|
|
32632
|
+
*/
|
|
32633
|
+
BBox3f.create = function create(properties) {
|
|
32634
|
+
return new BBox3f(properties);
|
|
32635
|
+
};
|
|
32636
|
+
|
|
32637
|
+
/**
|
|
32638
|
+
* Encodes the specified BBox3f message. Does not implicitly {@link vertexvis.protobuf.core.BBox3f.verify|verify} messages.
|
|
32639
|
+
* @function encode
|
|
32640
|
+
* @memberof vertexvis.protobuf.core.BBox3f
|
|
32641
|
+
* @static
|
|
32642
|
+
* @param {vertexvis.protobuf.core.IBBox3f} message BBox3f message or plain object to encode
|
|
32643
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
32644
|
+
* @returns {$protobuf.Writer} Writer
|
|
32645
|
+
*/
|
|
32646
|
+
BBox3f.encode = function encode(message, writer) {
|
|
32647
|
+
if (!writer)
|
|
32648
|
+
writer = $Writer.create();
|
|
32649
|
+
if (message.min != null && Object.hasOwnProperty.call(message, "min"))
|
|
32650
|
+
$root.vertexvis.protobuf.core.Vector3f.encode(message.min, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
32651
|
+
if (message.max != null && Object.hasOwnProperty.call(message, "max"))
|
|
32652
|
+
$root.vertexvis.protobuf.core.Vector3f.encode(message.max, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
32653
|
+
return writer;
|
|
32654
|
+
};
|
|
32655
|
+
|
|
32656
|
+
/**
|
|
32657
|
+
* Encodes the specified BBox3f message, length delimited. Does not implicitly {@link vertexvis.protobuf.core.BBox3f.verify|verify} messages.
|
|
32658
|
+
* @function encodeDelimited
|
|
32659
|
+
* @memberof vertexvis.protobuf.core.BBox3f
|
|
32660
|
+
* @static
|
|
32661
|
+
* @param {vertexvis.protobuf.core.IBBox3f} message BBox3f message or plain object to encode
|
|
32662
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
32663
|
+
* @returns {$protobuf.Writer} Writer
|
|
32664
|
+
*/
|
|
32665
|
+
BBox3f.encodeDelimited = function encodeDelimited(message, writer) {
|
|
32666
|
+
return this.encode(message, writer).ldelim();
|
|
32667
|
+
};
|
|
32668
|
+
|
|
32669
|
+
/**
|
|
32670
|
+
* Decodes a BBox3f message from the specified reader or buffer.
|
|
32671
|
+
* @function decode
|
|
32672
|
+
* @memberof vertexvis.protobuf.core.BBox3f
|
|
32673
|
+
* @static
|
|
32674
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
32675
|
+
* @param {number} [length] Message length if known beforehand
|
|
32676
|
+
* @returns {vertexvis.protobuf.core.BBox3f} BBox3f
|
|
32677
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
32678
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
32679
|
+
*/
|
|
32680
|
+
BBox3f.decode = function decode(reader, length) {
|
|
32681
|
+
if (!(reader instanceof $Reader))
|
|
32682
|
+
reader = $Reader.create(reader);
|
|
32683
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.core.BBox3f();
|
|
32684
|
+
while (reader.pos < end) {
|
|
32685
|
+
let tag = reader.uint32();
|
|
32686
|
+
switch (tag >>> 3) {
|
|
32687
|
+
case 1:
|
|
32688
|
+
message.min = $root.vertexvis.protobuf.core.Vector3f.decode(reader, reader.uint32());
|
|
32689
|
+
break;
|
|
32690
|
+
case 2:
|
|
32691
|
+
message.max = $root.vertexvis.protobuf.core.Vector3f.decode(reader, reader.uint32());
|
|
32692
|
+
break;
|
|
32693
|
+
default:
|
|
32694
|
+
reader.skipType(tag & 7);
|
|
32695
|
+
break;
|
|
32696
|
+
}
|
|
32697
|
+
}
|
|
32698
|
+
return message;
|
|
32699
|
+
};
|
|
32700
|
+
|
|
32701
|
+
/**
|
|
32702
|
+
* Decodes a BBox3f message from the specified reader or buffer, length delimited.
|
|
32703
|
+
* @function decodeDelimited
|
|
32704
|
+
* @memberof vertexvis.protobuf.core.BBox3f
|
|
32705
|
+
* @static
|
|
32706
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
32707
|
+
* @returns {vertexvis.protobuf.core.BBox3f} BBox3f
|
|
32708
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
32709
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
32710
|
+
*/
|
|
32711
|
+
BBox3f.decodeDelimited = function decodeDelimited(reader) {
|
|
32712
|
+
if (!(reader instanceof $Reader))
|
|
32713
|
+
reader = new $Reader(reader);
|
|
32714
|
+
return this.decode(reader, reader.uint32());
|
|
32715
|
+
};
|
|
32716
|
+
|
|
32717
|
+
/**
|
|
32718
|
+
* Verifies a BBox3f message.
|
|
32719
|
+
* @function verify
|
|
32720
|
+
* @memberof vertexvis.protobuf.core.BBox3f
|
|
32721
|
+
* @static
|
|
32722
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
32723
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
32724
|
+
*/
|
|
32725
|
+
BBox3f.verify = function verify(message) {
|
|
32726
|
+
if (typeof message !== "object" || message === null)
|
|
32727
|
+
return "object expected";
|
|
32728
|
+
if (message.min != null && message.hasOwnProperty("min")) {
|
|
32729
|
+
let error = $root.vertexvis.protobuf.core.Vector3f.verify(message.min);
|
|
32730
|
+
if (error)
|
|
32731
|
+
return "min." + error;
|
|
32732
|
+
}
|
|
32733
|
+
if (message.max != null && message.hasOwnProperty("max")) {
|
|
32734
|
+
let error = $root.vertexvis.protobuf.core.Vector3f.verify(message.max);
|
|
32735
|
+
if (error)
|
|
32736
|
+
return "max." + error;
|
|
32737
|
+
}
|
|
32738
|
+
return null;
|
|
32739
|
+
};
|
|
32740
|
+
|
|
32741
|
+
/**
|
|
32742
|
+
* Creates a BBox3f message from a plain object. Also converts values to their respective internal types.
|
|
32743
|
+
* @function fromObject
|
|
32744
|
+
* @memberof vertexvis.protobuf.core.BBox3f
|
|
32745
|
+
* @static
|
|
32746
|
+
* @param {Object.<string,*>} object Plain object
|
|
32747
|
+
* @returns {vertexvis.protobuf.core.BBox3f} BBox3f
|
|
32748
|
+
*/
|
|
32749
|
+
BBox3f.fromObject = function fromObject(object) {
|
|
32750
|
+
if (object instanceof $root.vertexvis.protobuf.core.BBox3f)
|
|
32751
|
+
return object;
|
|
32752
|
+
let message = new $root.vertexvis.protobuf.core.BBox3f();
|
|
32753
|
+
if (object.min != null) {
|
|
32754
|
+
if (typeof object.min !== "object")
|
|
32755
|
+
throw TypeError(".vertexvis.protobuf.core.BBox3f.min: object expected");
|
|
32756
|
+
message.min = $root.vertexvis.protobuf.core.Vector3f.fromObject(object.min);
|
|
32757
|
+
}
|
|
32758
|
+
if (object.max != null) {
|
|
32759
|
+
if (typeof object.max !== "object")
|
|
32760
|
+
throw TypeError(".vertexvis.protobuf.core.BBox3f.max: object expected");
|
|
32761
|
+
message.max = $root.vertexvis.protobuf.core.Vector3f.fromObject(object.max);
|
|
32762
|
+
}
|
|
32763
|
+
return message;
|
|
32764
|
+
};
|
|
32765
|
+
|
|
32766
|
+
/**
|
|
32767
|
+
* Creates a plain object from a BBox3f message. Also converts values to other types if specified.
|
|
32768
|
+
* @function toObject
|
|
32769
|
+
* @memberof vertexvis.protobuf.core.BBox3f
|
|
32770
|
+
* @static
|
|
32771
|
+
* @param {vertexvis.protobuf.core.BBox3f} message BBox3f
|
|
32772
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
32773
|
+
* @returns {Object.<string,*>} Plain object
|
|
32774
|
+
*/
|
|
32775
|
+
BBox3f.toObject = function toObject(message, options) {
|
|
32776
|
+
if (!options)
|
|
32777
|
+
options = {};
|
|
32778
|
+
let object = {};
|
|
32779
|
+
if (options.defaults) {
|
|
32780
|
+
object.min = null;
|
|
32781
|
+
object.max = null;
|
|
32782
|
+
}
|
|
32783
|
+
if (message.min != null && message.hasOwnProperty("min"))
|
|
32784
|
+
object.min = $root.vertexvis.protobuf.core.Vector3f.toObject(message.min, options);
|
|
32785
|
+
if (message.max != null && message.hasOwnProperty("max"))
|
|
32786
|
+
object.max = $root.vertexvis.protobuf.core.Vector3f.toObject(message.max, options);
|
|
32787
|
+
return object;
|
|
32788
|
+
};
|
|
32789
|
+
|
|
32790
|
+
/**
|
|
32791
|
+
* Converts this BBox3f to JSON.
|
|
32792
|
+
* @function toJSON
|
|
32793
|
+
* @memberof vertexvis.protobuf.core.BBox3f
|
|
32794
|
+
* @instance
|
|
32795
|
+
* @returns {Object.<string,*>} JSON object
|
|
32796
|
+
*/
|
|
32797
|
+
BBox3f.prototype.toJSON = function toJSON() {
|
|
32798
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
32799
|
+
};
|
|
32800
|
+
|
|
32801
|
+
return BBox3f;
|
|
32802
|
+
})();
|
|
32803
|
+
|
|
32804
|
+
core.BBox3d = (function() {
|
|
32805
|
+
|
|
32806
|
+
/**
|
|
32807
|
+
* Properties of a BBox3d.
|
|
32808
|
+
* @memberof vertexvis.protobuf.core
|
|
32809
|
+
* @interface IBBox3d
|
|
32810
|
+
* @property {vertexvis.protobuf.core.IVector3d|null} [min] BBox3d min
|
|
32811
|
+
* @property {vertexvis.protobuf.core.IVector3d|null} [max] BBox3d max
|
|
32812
|
+
*/
|
|
32813
|
+
|
|
32814
|
+
/**
|
|
32815
|
+
* Constructs a new BBox3d.
|
|
32816
|
+
* @memberof vertexvis.protobuf.core
|
|
32817
|
+
* @classdesc Represents a BBox3d.
|
|
32818
|
+
* @implements IBBox3d
|
|
32819
|
+
* @constructor
|
|
32820
|
+
* @param {vertexvis.protobuf.core.IBBox3d=} [properties] Properties to set
|
|
32821
|
+
*/
|
|
32822
|
+
function BBox3d(properties) {
|
|
32823
|
+
if (properties)
|
|
32824
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
32825
|
+
if (properties[keys[i]] != null)
|
|
32826
|
+
this[keys[i]] = properties[keys[i]];
|
|
32827
|
+
}
|
|
32828
|
+
|
|
32829
|
+
/**
|
|
32830
|
+
* BBox3d min.
|
|
32831
|
+
* @member {vertexvis.protobuf.core.IVector3d|null|undefined} min
|
|
32832
|
+
* @memberof vertexvis.protobuf.core.BBox3d
|
|
32833
|
+
* @instance
|
|
32834
|
+
*/
|
|
32835
|
+
BBox3d.prototype.min = null;
|
|
32836
|
+
|
|
32837
|
+
/**
|
|
32838
|
+
* BBox3d max.
|
|
32839
|
+
* @member {vertexvis.protobuf.core.IVector3d|null|undefined} max
|
|
32840
|
+
* @memberof vertexvis.protobuf.core.BBox3d
|
|
32404
32841
|
* @instance
|
|
32405
32842
|
*/
|
|
32406
32843
|
BBox3d.prototype.max = null;
|
|
@@ -35524,29 +35961,26 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
35524
35961
|
return RGBi;
|
|
35525
35962
|
})();
|
|
35526
35963
|
|
|
35527
|
-
core.
|
|
35964
|
+
core.RGBf = (function() {
|
|
35528
35965
|
|
|
35529
35966
|
/**
|
|
35530
|
-
* Properties of a
|
|
35967
|
+
* Properties of a RGBf.
|
|
35531
35968
|
* @memberof vertexvis.protobuf.core
|
|
35532
|
-
* @interface
|
|
35533
|
-
* @property {number|null} [
|
|
35534
|
-
* @property {number|null} [
|
|
35535
|
-
* @property {
|
|
35536
|
-
* @property {vertexvis.protobuf.core.IRGBi|null} [kd] ColorMaterial kd
|
|
35537
|
-
* @property {vertexvis.protobuf.core.IRGBi|null} [ks] ColorMaterial ks
|
|
35538
|
-
* @property {vertexvis.protobuf.core.IRGBi|null} [ke] ColorMaterial ke
|
|
35969
|
+
* @interface IRGBf
|
|
35970
|
+
* @property {number|null} [r] RGBf r
|
|
35971
|
+
* @property {number|null} [g] RGBf g
|
|
35972
|
+
* @property {number|null} [b] RGBf b
|
|
35539
35973
|
*/
|
|
35540
35974
|
|
|
35541
35975
|
/**
|
|
35542
|
-
* Constructs a new
|
|
35976
|
+
* Constructs a new RGBf.
|
|
35543
35977
|
* @memberof vertexvis.protobuf.core
|
|
35544
|
-
* @classdesc Represents a
|
|
35545
|
-
* @implements
|
|
35978
|
+
* @classdesc Represents a RGBf.
|
|
35979
|
+
* @implements IRGBf
|
|
35546
35980
|
* @constructor
|
|
35547
|
-
* @param {vertexvis.protobuf.core.
|
|
35981
|
+
* @param {vertexvis.protobuf.core.IRGBf=} [properties] Properties to set
|
|
35548
35982
|
*/
|
|
35549
|
-
function
|
|
35983
|
+
function RGBf(properties) {
|
|
35550
35984
|
if (properties)
|
|
35551
35985
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
35552
35986
|
if (properties[keys[i]] != null)
|
|
@@ -35554,12 +35988,247 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
35554
35988
|
}
|
|
35555
35989
|
|
|
35556
35990
|
/**
|
|
35557
|
-
*
|
|
35558
|
-
* @member {number}
|
|
35559
|
-
* @memberof vertexvis.protobuf.core.
|
|
35991
|
+
* RGBf r.
|
|
35992
|
+
* @member {number} r
|
|
35993
|
+
* @memberof vertexvis.protobuf.core.RGBf
|
|
35560
35994
|
* @instance
|
|
35561
35995
|
*/
|
|
35562
|
-
|
|
35996
|
+
RGBf.prototype.r = 0;
|
|
35997
|
+
|
|
35998
|
+
/**
|
|
35999
|
+
* RGBf g.
|
|
36000
|
+
* @member {number} g
|
|
36001
|
+
* @memberof vertexvis.protobuf.core.RGBf
|
|
36002
|
+
* @instance
|
|
36003
|
+
*/
|
|
36004
|
+
RGBf.prototype.g = 0;
|
|
36005
|
+
|
|
36006
|
+
/**
|
|
36007
|
+
* RGBf b.
|
|
36008
|
+
* @member {number} b
|
|
36009
|
+
* @memberof vertexvis.protobuf.core.RGBf
|
|
36010
|
+
* @instance
|
|
36011
|
+
*/
|
|
36012
|
+
RGBf.prototype.b = 0;
|
|
36013
|
+
|
|
36014
|
+
/**
|
|
36015
|
+
* Creates a new RGBf instance using the specified properties.
|
|
36016
|
+
* @function create
|
|
36017
|
+
* @memberof vertexvis.protobuf.core.RGBf
|
|
36018
|
+
* @static
|
|
36019
|
+
* @param {vertexvis.protobuf.core.IRGBf=} [properties] Properties to set
|
|
36020
|
+
* @returns {vertexvis.protobuf.core.RGBf} RGBf instance
|
|
36021
|
+
*/
|
|
36022
|
+
RGBf.create = function create(properties) {
|
|
36023
|
+
return new RGBf(properties);
|
|
36024
|
+
};
|
|
36025
|
+
|
|
36026
|
+
/**
|
|
36027
|
+
* Encodes the specified RGBf message. Does not implicitly {@link vertexvis.protobuf.core.RGBf.verify|verify} messages.
|
|
36028
|
+
* @function encode
|
|
36029
|
+
* @memberof vertexvis.protobuf.core.RGBf
|
|
36030
|
+
* @static
|
|
36031
|
+
* @param {vertexvis.protobuf.core.IRGBf} message RGBf message or plain object to encode
|
|
36032
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
36033
|
+
* @returns {$protobuf.Writer} Writer
|
|
36034
|
+
*/
|
|
36035
|
+
RGBf.encode = function encode(message, writer) {
|
|
36036
|
+
if (!writer)
|
|
36037
|
+
writer = $Writer.create();
|
|
36038
|
+
if (message.r != null && Object.hasOwnProperty.call(message, "r"))
|
|
36039
|
+
writer.uint32(/* id 1, wireType 5 =*/13).float(message.r);
|
|
36040
|
+
if (message.g != null && Object.hasOwnProperty.call(message, "g"))
|
|
36041
|
+
writer.uint32(/* id 2, wireType 5 =*/21).float(message.g);
|
|
36042
|
+
if (message.b != null && Object.hasOwnProperty.call(message, "b"))
|
|
36043
|
+
writer.uint32(/* id 3, wireType 5 =*/29).float(message.b);
|
|
36044
|
+
return writer;
|
|
36045
|
+
};
|
|
36046
|
+
|
|
36047
|
+
/**
|
|
36048
|
+
* Encodes the specified RGBf message, length delimited. Does not implicitly {@link vertexvis.protobuf.core.RGBf.verify|verify} messages.
|
|
36049
|
+
* @function encodeDelimited
|
|
36050
|
+
* @memberof vertexvis.protobuf.core.RGBf
|
|
36051
|
+
* @static
|
|
36052
|
+
* @param {vertexvis.protobuf.core.IRGBf} message RGBf message or plain object to encode
|
|
36053
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
36054
|
+
* @returns {$protobuf.Writer} Writer
|
|
36055
|
+
*/
|
|
36056
|
+
RGBf.encodeDelimited = function encodeDelimited(message, writer) {
|
|
36057
|
+
return this.encode(message, writer).ldelim();
|
|
36058
|
+
};
|
|
36059
|
+
|
|
36060
|
+
/**
|
|
36061
|
+
* Decodes a RGBf message from the specified reader or buffer.
|
|
36062
|
+
* @function decode
|
|
36063
|
+
* @memberof vertexvis.protobuf.core.RGBf
|
|
36064
|
+
* @static
|
|
36065
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
36066
|
+
* @param {number} [length] Message length if known beforehand
|
|
36067
|
+
* @returns {vertexvis.protobuf.core.RGBf} RGBf
|
|
36068
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
36069
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
36070
|
+
*/
|
|
36071
|
+
RGBf.decode = function decode(reader, length) {
|
|
36072
|
+
if (!(reader instanceof $Reader))
|
|
36073
|
+
reader = $Reader.create(reader);
|
|
36074
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.core.RGBf();
|
|
36075
|
+
while (reader.pos < end) {
|
|
36076
|
+
let tag = reader.uint32();
|
|
36077
|
+
switch (tag >>> 3) {
|
|
36078
|
+
case 1:
|
|
36079
|
+
message.r = reader.float();
|
|
36080
|
+
break;
|
|
36081
|
+
case 2:
|
|
36082
|
+
message.g = reader.float();
|
|
36083
|
+
break;
|
|
36084
|
+
case 3:
|
|
36085
|
+
message.b = reader.float();
|
|
36086
|
+
break;
|
|
36087
|
+
default:
|
|
36088
|
+
reader.skipType(tag & 7);
|
|
36089
|
+
break;
|
|
36090
|
+
}
|
|
36091
|
+
}
|
|
36092
|
+
return message;
|
|
36093
|
+
};
|
|
36094
|
+
|
|
36095
|
+
/**
|
|
36096
|
+
* Decodes a RGBf message from the specified reader or buffer, length delimited.
|
|
36097
|
+
* @function decodeDelimited
|
|
36098
|
+
* @memberof vertexvis.protobuf.core.RGBf
|
|
36099
|
+
* @static
|
|
36100
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
36101
|
+
* @returns {vertexvis.protobuf.core.RGBf} RGBf
|
|
36102
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
36103
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
36104
|
+
*/
|
|
36105
|
+
RGBf.decodeDelimited = function decodeDelimited(reader) {
|
|
36106
|
+
if (!(reader instanceof $Reader))
|
|
36107
|
+
reader = new $Reader(reader);
|
|
36108
|
+
return this.decode(reader, reader.uint32());
|
|
36109
|
+
};
|
|
36110
|
+
|
|
36111
|
+
/**
|
|
36112
|
+
* Verifies a RGBf message.
|
|
36113
|
+
* @function verify
|
|
36114
|
+
* @memberof vertexvis.protobuf.core.RGBf
|
|
36115
|
+
* @static
|
|
36116
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
36117
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
36118
|
+
*/
|
|
36119
|
+
RGBf.verify = function verify(message) {
|
|
36120
|
+
if (typeof message !== "object" || message === null)
|
|
36121
|
+
return "object expected";
|
|
36122
|
+
if (message.r != null && message.hasOwnProperty("r"))
|
|
36123
|
+
if (typeof message.r !== "number")
|
|
36124
|
+
return "r: number expected";
|
|
36125
|
+
if (message.g != null && message.hasOwnProperty("g"))
|
|
36126
|
+
if (typeof message.g !== "number")
|
|
36127
|
+
return "g: number expected";
|
|
36128
|
+
if (message.b != null && message.hasOwnProperty("b"))
|
|
36129
|
+
if (typeof message.b !== "number")
|
|
36130
|
+
return "b: number expected";
|
|
36131
|
+
return null;
|
|
36132
|
+
};
|
|
36133
|
+
|
|
36134
|
+
/**
|
|
36135
|
+
* Creates a RGBf message from a plain object. Also converts values to their respective internal types.
|
|
36136
|
+
* @function fromObject
|
|
36137
|
+
* @memberof vertexvis.protobuf.core.RGBf
|
|
36138
|
+
* @static
|
|
36139
|
+
* @param {Object.<string,*>} object Plain object
|
|
36140
|
+
* @returns {vertexvis.protobuf.core.RGBf} RGBf
|
|
36141
|
+
*/
|
|
36142
|
+
RGBf.fromObject = function fromObject(object) {
|
|
36143
|
+
if (object instanceof $root.vertexvis.protobuf.core.RGBf)
|
|
36144
|
+
return object;
|
|
36145
|
+
let message = new $root.vertexvis.protobuf.core.RGBf();
|
|
36146
|
+
if (object.r != null)
|
|
36147
|
+
message.r = Number(object.r);
|
|
36148
|
+
if (object.g != null)
|
|
36149
|
+
message.g = Number(object.g);
|
|
36150
|
+
if (object.b != null)
|
|
36151
|
+
message.b = Number(object.b);
|
|
36152
|
+
return message;
|
|
36153
|
+
};
|
|
36154
|
+
|
|
36155
|
+
/**
|
|
36156
|
+
* Creates a plain object from a RGBf message. Also converts values to other types if specified.
|
|
36157
|
+
* @function toObject
|
|
36158
|
+
* @memberof vertexvis.protobuf.core.RGBf
|
|
36159
|
+
* @static
|
|
36160
|
+
* @param {vertexvis.protobuf.core.RGBf} message RGBf
|
|
36161
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
36162
|
+
* @returns {Object.<string,*>} Plain object
|
|
36163
|
+
*/
|
|
36164
|
+
RGBf.toObject = function toObject(message, options) {
|
|
36165
|
+
if (!options)
|
|
36166
|
+
options = {};
|
|
36167
|
+
let object = {};
|
|
36168
|
+
if (options.defaults) {
|
|
36169
|
+
object.r = 0;
|
|
36170
|
+
object.g = 0;
|
|
36171
|
+
object.b = 0;
|
|
36172
|
+
}
|
|
36173
|
+
if (message.r != null && message.hasOwnProperty("r"))
|
|
36174
|
+
object.r = options.json && !isFinite(message.r) ? String(message.r) : message.r;
|
|
36175
|
+
if (message.g != null && message.hasOwnProperty("g"))
|
|
36176
|
+
object.g = options.json && !isFinite(message.g) ? String(message.g) : message.g;
|
|
36177
|
+
if (message.b != null && message.hasOwnProperty("b"))
|
|
36178
|
+
object.b = options.json && !isFinite(message.b) ? String(message.b) : message.b;
|
|
36179
|
+
return object;
|
|
36180
|
+
};
|
|
36181
|
+
|
|
36182
|
+
/**
|
|
36183
|
+
* Converts this RGBf to JSON.
|
|
36184
|
+
* @function toJSON
|
|
36185
|
+
* @memberof vertexvis.protobuf.core.RGBf
|
|
36186
|
+
* @instance
|
|
36187
|
+
* @returns {Object.<string,*>} JSON object
|
|
36188
|
+
*/
|
|
36189
|
+
RGBf.prototype.toJSON = function toJSON() {
|
|
36190
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
36191
|
+
};
|
|
36192
|
+
|
|
36193
|
+
return RGBf;
|
|
36194
|
+
})();
|
|
36195
|
+
|
|
36196
|
+
core.ColorMaterial = (function() {
|
|
36197
|
+
|
|
36198
|
+
/**
|
|
36199
|
+
* Properties of a ColorMaterial.
|
|
36200
|
+
* @memberof vertexvis.protobuf.core
|
|
36201
|
+
* @interface IColorMaterial
|
|
36202
|
+
* @property {number|null} [d] ColorMaterial d
|
|
36203
|
+
* @property {number|null} [ns] ColorMaterial ns
|
|
36204
|
+
* @property {vertexvis.protobuf.core.IRGBi|null} [ka] ColorMaterial ka
|
|
36205
|
+
* @property {vertexvis.protobuf.core.IRGBi|null} [kd] ColorMaterial kd
|
|
36206
|
+
* @property {vertexvis.protobuf.core.IRGBi|null} [ks] ColorMaterial ks
|
|
36207
|
+
* @property {vertexvis.protobuf.core.IRGBi|null} [ke] ColorMaterial ke
|
|
36208
|
+
*/
|
|
36209
|
+
|
|
36210
|
+
/**
|
|
36211
|
+
* Constructs a new ColorMaterial.
|
|
36212
|
+
* @memberof vertexvis.protobuf.core
|
|
36213
|
+
* @classdesc Represents a ColorMaterial.
|
|
36214
|
+
* @implements IColorMaterial
|
|
36215
|
+
* @constructor
|
|
36216
|
+
* @param {vertexvis.protobuf.core.IColorMaterial=} [properties] Properties to set
|
|
36217
|
+
*/
|
|
36218
|
+
function ColorMaterial(properties) {
|
|
36219
|
+
if (properties)
|
|
36220
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
36221
|
+
if (properties[keys[i]] != null)
|
|
36222
|
+
this[keys[i]] = properties[keys[i]];
|
|
36223
|
+
}
|
|
36224
|
+
|
|
36225
|
+
/**
|
|
36226
|
+
* ColorMaterial d.
|
|
36227
|
+
* @member {number} d
|
|
36228
|
+
* @memberof vertexvis.protobuf.core.ColorMaterial
|
|
36229
|
+
* @instance
|
|
36230
|
+
*/
|
|
36231
|
+
ColorMaterial.prototype.d = 0;
|
|
35563
36232
|
|
|
35564
36233
|
/**
|
|
35565
36234
|
* ColorMaterial ns.
|
|
@@ -35842,238 +36511,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
35842
36511
|
return ColorMaterial;
|
|
35843
36512
|
})();
|
|
35844
36513
|
|
|
35845
|
-
core.RGBf = (function() {
|
|
35846
|
-
|
|
35847
|
-
/**
|
|
35848
|
-
* Properties of a RGBf.
|
|
35849
|
-
* @memberof vertexvis.protobuf.core
|
|
35850
|
-
* @interface IRGBf
|
|
35851
|
-
* @property {number|null} [r] RGBf r
|
|
35852
|
-
* @property {number|null} [g] RGBf g
|
|
35853
|
-
* @property {number|null} [b] RGBf b
|
|
35854
|
-
*/
|
|
35855
|
-
|
|
35856
|
-
/**
|
|
35857
|
-
* Constructs a new RGBf.
|
|
35858
|
-
* @memberof vertexvis.protobuf.core
|
|
35859
|
-
* @classdesc Represents a RGBf.
|
|
35860
|
-
* @implements IRGBf
|
|
35861
|
-
* @constructor
|
|
35862
|
-
* @param {vertexvis.protobuf.core.IRGBf=} [properties] Properties to set
|
|
35863
|
-
*/
|
|
35864
|
-
function RGBf(properties) {
|
|
35865
|
-
if (properties)
|
|
35866
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
35867
|
-
if (properties[keys[i]] != null)
|
|
35868
|
-
this[keys[i]] = properties[keys[i]];
|
|
35869
|
-
}
|
|
35870
|
-
|
|
35871
|
-
/**
|
|
35872
|
-
* RGBf r.
|
|
35873
|
-
* @member {number} r
|
|
35874
|
-
* @memberof vertexvis.protobuf.core.RGBf
|
|
35875
|
-
* @instance
|
|
35876
|
-
*/
|
|
35877
|
-
RGBf.prototype.r = 0;
|
|
35878
|
-
|
|
35879
|
-
/**
|
|
35880
|
-
* RGBf g.
|
|
35881
|
-
* @member {number} g
|
|
35882
|
-
* @memberof vertexvis.protobuf.core.RGBf
|
|
35883
|
-
* @instance
|
|
35884
|
-
*/
|
|
35885
|
-
RGBf.prototype.g = 0;
|
|
35886
|
-
|
|
35887
|
-
/**
|
|
35888
|
-
* RGBf b.
|
|
35889
|
-
* @member {number} b
|
|
35890
|
-
* @memberof vertexvis.protobuf.core.RGBf
|
|
35891
|
-
* @instance
|
|
35892
|
-
*/
|
|
35893
|
-
RGBf.prototype.b = 0;
|
|
35894
|
-
|
|
35895
|
-
/**
|
|
35896
|
-
* Creates a new RGBf instance using the specified properties.
|
|
35897
|
-
* @function create
|
|
35898
|
-
* @memberof vertexvis.protobuf.core.RGBf
|
|
35899
|
-
* @static
|
|
35900
|
-
* @param {vertexvis.protobuf.core.IRGBf=} [properties] Properties to set
|
|
35901
|
-
* @returns {vertexvis.protobuf.core.RGBf} RGBf instance
|
|
35902
|
-
*/
|
|
35903
|
-
RGBf.create = function create(properties) {
|
|
35904
|
-
return new RGBf(properties);
|
|
35905
|
-
};
|
|
35906
|
-
|
|
35907
|
-
/**
|
|
35908
|
-
* Encodes the specified RGBf message. Does not implicitly {@link vertexvis.protobuf.core.RGBf.verify|verify} messages.
|
|
35909
|
-
* @function encode
|
|
35910
|
-
* @memberof vertexvis.protobuf.core.RGBf
|
|
35911
|
-
* @static
|
|
35912
|
-
* @param {vertexvis.protobuf.core.IRGBf} message RGBf message or plain object to encode
|
|
35913
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
35914
|
-
* @returns {$protobuf.Writer} Writer
|
|
35915
|
-
*/
|
|
35916
|
-
RGBf.encode = function encode(message, writer) {
|
|
35917
|
-
if (!writer)
|
|
35918
|
-
writer = $Writer.create();
|
|
35919
|
-
if (message.r != null && Object.hasOwnProperty.call(message, "r"))
|
|
35920
|
-
writer.uint32(/* id 1, wireType 5 =*/13).float(message.r);
|
|
35921
|
-
if (message.g != null && Object.hasOwnProperty.call(message, "g"))
|
|
35922
|
-
writer.uint32(/* id 2, wireType 5 =*/21).float(message.g);
|
|
35923
|
-
if (message.b != null && Object.hasOwnProperty.call(message, "b"))
|
|
35924
|
-
writer.uint32(/* id 3, wireType 5 =*/29).float(message.b);
|
|
35925
|
-
return writer;
|
|
35926
|
-
};
|
|
35927
|
-
|
|
35928
|
-
/**
|
|
35929
|
-
* Encodes the specified RGBf message, length delimited. Does not implicitly {@link vertexvis.protobuf.core.RGBf.verify|verify} messages.
|
|
35930
|
-
* @function encodeDelimited
|
|
35931
|
-
* @memberof vertexvis.protobuf.core.RGBf
|
|
35932
|
-
* @static
|
|
35933
|
-
* @param {vertexvis.protobuf.core.IRGBf} message RGBf message or plain object to encode
|
|
35934
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
35935
|
-
* @returns {$protobuf.Writer} Writer
|
|
35936
|
-
*/
|
|
35937
|
-
RGBf.encodeDelimited = function encodeDelimited(message, writer) {
|
|
35938
|
-
return this.encode(message, writer).ldelim();
|
|
35939
|
-
};
|
|
35940
|
-
|
|
35941
|
-
/**
|
|
35942
|
-
* Decodes a RGBf message from the specified reader or buffer.
|
|
35943
|
-
* @function decode
|
|
35944
|
-
* @memberof vertexvis.protobuf.core.RGBf
|
|
35945
|
-
* @static
|
|
35946
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
35947
|
-
* @param {number} [length] Message length if known beforehand
|
|
35948
|
-
* @returns {vertexvis.protobuf.core.RGBf} RGBf
|
|
35949
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
35950
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
35951
|
-
*/
|
|
35952
|
-
RGBf.decode = function decode(reader, length) {
|
|
35953
|
-
if (!(reader instanceof $Reader))
|
|
35954
|
-
reader = $Reader.create(reader);
|
|
35955
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.core.RGBf();
|
|
35956
|
-
while (reader.pos < end) {
|
|
35957
|
-
let tag = reader.uint32();
|
|
35958
|
-
switch (tag >>> 3) {
|
|
35959
|
-
case 1:
|
|
35960
|
-
message.r = reader.float();
|
|
35961
|
-
break;
|
|
35962
|
-
case 2:
|
|
35963
|
-
message.g = reader.float();
|
|
35964
|
-
break;
|
|
35965
|
-
case 3:
|
|
35966
|
-
message.b = reader.float();
|
|
35967
|
-
break;
|
|
35968
|
-
default:
|
|
35969
|
-
reader.skipType(tag & 7);
|
|
35970
|
-
break;
|
|
35971
|
-
}
|
|
35972
|
-
}
|
|
35973
|
-
return message;
|
|
35974
|
-
};
|
|
35975
|
-
|
|
35976
|
-
/**
|
|
35977
|
-
* Decodes a RGBf message from the specified reader or buffer, length delimited.
|
|
35978
|
-
* @function decodeDelimited
|
|
35979
|
-
* @memberof vertexvis.protobuf.core.RGBf
|
|
35980
|
-
* @static
|
|
35981
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
35982
|
-
* @returns {vertexvis.protobuf.core.RGBf} RGBf
|
|
35983
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
35984
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
35985
|
-
*/
|
|
35986
|
-
RGBf.decodeDelimited = function decodeDelimited(reader) {
|
|
35987
|
-
if (!(reader instanceof $Reader))
|
|
35988
|
-
reader = new $Reader(reader);
|
|
35989
|
-
return this.decode(reader, reader.uint32());
|
|
35990
|
-
};
|
|
35991
|
-
|
|
35992
|
-
/**
|
|
35993
|
-
* Verifies a RGBf message.
|
|
35994
|
-
* @function verify
|
|
35995
|
-
* @memberof vertexvis.protobuf.core.RGBf
|
|
35996
|
-
* @static
|
|
35997
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
35998
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
35999
|
-
*/
|
|
36000
|
-
RGBf.verify = function verify(message) {
|
|
36001
|
-
if (typeof message !== "object" || message === null)
|
|
36002
|
-
return "object expected";
|
|
36003
|
-
if (message.r != null && message.hasOwnProperty("r"))
|
|
36004
|
-
if (typeof message.r !== "number")
|
|
36005
|
-
return "r: number expected";
|
|
36006
|
-
if (message.g != null && message.hasOwnProperty("g"))
|
|
36007
|
-
if (typeof message.g !== "number")
|
|
36008
|
-
return "g: number expected";
|
|
36009
|
-
if (message.b != null && message.hasOwnProperty("b"))
|
|
36010
|
-
if (typeof message.b !== "number")
|
|
36011
|
-
return "b: number expected";
|
|
36012
|
-
return null;
|
|
36013
|
-
};
|
|
36014
|
-
|
|
36015
|
-
/**
|
|
36016
|
-
* Creates a RGBf message from a plain object. Also converts values to their respective internal types.
|
|
36017
|
-
* @function fromObject
|
|
36018
|
-
* @memberof vertexvis.protobuf.core.RGBf
|
|
36019
|
-
* @static
|
|
36020
|
-
* @param {Object.<string,*>} object Plain object
|
|
36021
|
-
* @returns {vertexvis.protobuf.core.RGBf} RGBf
|
|
36022
|
-
*/
|
|
36023
|
-
RGBf.fromObject = function fromObject(object) {
|
|
36024
|
-
if (object instanceof $root.vertexvis.protobuf.core.RGBf)
|
|
36025
|
-
return object;
|
|
36026
|
-
let message = new $root.vertexvis.protobuf.core.RGBf();
|
|
36027
|
-
if (object.r != null)
|
|
36028
|
-
message.r = Number(object.r);
|
|
36029
|
-
if (object.g != null)
|
|
36030
|
-
message.g = Number(object.g);
|
|
36031
|
-
if (object.b != null)
|
|
36032
|
-
message.b = Number(object.b);
|
|
36033
|
-
return message;
|
|
36034
|
-
};
|
|
36035
|
-
|
|
36036
|
-
/**
|
|
36037
|
-
* Creates a plain object from a RGBf message. Also converts values to other types if specified.
|
|
36038
|
-
* @function toObject
|
|
36039
|
-
* @memberof vertexvis.protobuf.core.RGBf
|
|
36040
|
-
* @static
|
|
36041
|
-
* @param {vertexvis.protobuf.core.RGBf} message RGBf
|
|
36042
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
36043
|
-
* @returns {Object.<string,*>} Plain object
|
|
36044
|
-
*/
|
|
36045
|
-
RGBf.toObject = function toObject(message, options) {
|
|
36046
|
-
if (!options)
|
|
36047
|
-
options = {};
|
|
36048
|
-
let object = {};
|
|
36049
|
-
if (options.defaults) {
|
|
36050
|
-
object.r = 0;
|
|
36051
|
-
object.g = 0;
|
|
36052
|
-
object.b = 0;
|
|
36053
|
-
}
|
|
36054
|
-
if (message.r != null && message.hasOwnProperty("r"))
|
|
36055
|
-
object.r = options.json && !isFinite(message.r) ? String(message.r) : message.r;
|
|
36056
|
-
if (message.g != null && message.hasOwnProperty("g"))
|
|
36057
|
-
object.g = options.json && !isFinite(message.g) ? String(message.g) : message.g;
|
|
36058
|
-
if (message.b != null && message.hasOwnProperty("b"))
|
|
36059
|
-
object.b = options.json && !isFinite(message.b) ? String(message.b) : message.b;
|
|
36060
|
-
return object;
|
|
36061
|
-
};
|
|
36062
|
-
|
|
36063
|
-
/**
|
|
36064
|
-
* Converts this RGBf to JSON.
|
|
36065
|
-
* @function toJSON
|
|
36066
|
-
* @memberof vertexvis.protobuf.core.RGBf
|
|
36067
|
-
* @instance
|
|
36068
|
-
* @returns {Object.<string,*>} JSON object
|
|
36069
|
-
*/
|
|
36070
|
-
RGBf.prototype.toJSON = function toJSON() {
|
|
36071
|
-
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
36072
|
-
};
|
|
36073
|
-
|
|
36074
|
-
return RGBf;
|
|
36075
|
-
})();
|
|
36076
|
-
|
|
36077
36514
|
core.ColorMaterialf = (function() {
|
|
36078
36515
|
|
|
36079
36516
|
/**
|