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