@vertexvis/stream-api 0.15.3-canary.2 → 0.15.3-canary.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11067,6 +11067,7 @@ const vertexvis = $root.vertexvis = (() => {
11067
11067
  * @property {vertexvis.protobuf.stream.IFeatureMapAttributes|null} [featureMaps] StreamAttributes featureMaps
11068
11068
  * @property {boolean|null} [noDefaultLights] StreamAttributes noDefaultLights
11069
11069
  * @property {string|null} [experimentalRenderingOptions] StreamAttributes experimentalRenderingOptions
11070
+ * @property {vertexvis.protobuf.stream.ISelectionHighlightAttributes|null} [selectionHighlighting] StreamAttributes selectionHighlighting
11070
11071
  */
11071
11072
 
11072
11073
  /**
@@ -11140,6 +11141,14 @@ const vertexvis = $root.vertexvis = (() => {
11140
11141
  */
11141
11142
  StreamAttributes.prototype.experimentalRenderingOptions = "";
11142
11143
 
11144
+ /**
11145
+ * StreamAttributes selectionHighlighting.
11146
+ * @member {vertexvis.protobuf.stream.ISelectionHighlightAttributes|null|undefined} selectionHighlighting
11147
+ * @memberof vertexvis.protobuf.stream.StreamAttributes
11148
+ * @instance
11149
+ */
11150
+ StreamAttributes.prototype.selectionHighlighting = null;
11151
+
11143
11152
  /**
11144
11153
  * Creates a new StreamAttributes instance using the specified properties.
11145
11154
  * @function create
@@ -11178,6 +11187,8 @@ const vertexvis = $root.vertexvis = (() => {
11178
11187
  writer.uint32(/* id 6, wireType 0 =*/48).bool(message.noDefaultLights);
11179
11188
  if (message.experimentalRenderingOptions != null && Object.hasOwnProperty.call(message, "experimentalRenderingOptions"))
11180
11189
  writer.uint32(/* id 7, wireType 2 =*/58).string(message.experimentalRenderingOptions);
11190
+ if (message.selectionHighlighting != null && Object.hasOwnProperty.call(message, "selectionHighlighting"))
11191
+ $root.vertexvis.protobuf.stream.SelectionHighlightAttributes.encode(message.selectionHighlighting, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
11181
11192
  return writer;
11182
11193
  };
11183
11194
 
@@ -11233,6 +11244,9 @@ const vertexvis = $root.vertexvis = (() => {
11233
11244
  case 7:
11234
11245
  message.experimentalRenderingOptions = reader.string();
11235
11246
  break;
11247
+ case 8:
11248
+ message.selectionHighlighting = $root.vertexvis.protobuf.stream.SelectionHighlightAttributes.decode(reader, reader.uint32());
11249
+ break;
11236
11250
  default:
11237
11251
  reader.skipType(tag & 7);
11238
11252
  break;
@@ -11299,6 +11313,11 @@ const vertexvis = $root.vertexvis = (() => {
11299
11313
  if (message.experimentalRenderingOptions != null && message.hasOwnProperty("experimentalRenderingOptions"))
11300
11314
  if (!$util.isString(message.experimentalRenderingOptions))
11301
11315
  return "experimentalRenderingOptions: string expected";
11316
+ if (message.selectionHighlighting != null && message.hasOwnProperty("selectionHighlighting")) {
11317
+ let error = $root.vertexvis.protobuf.stream.SelectionHighlightAttributes.verify(message.selectionHighlighting);
11318
+ if (error)
11319
+ return "selectionHighlighting." + error;
11320
+ }
11302
11321
  return null;
11303
11322
  };
11304
11323
 
@@ -11343,6 +11362,11 @@ const vertexvis = $root.vertexvis = (() => {
11343
11362
  message.noDefaultLights = Boolean(object.noDefaultLights);
11344
11363
  if (object.experimentalRenderingOptions != null)
11345
11364
  message.experimentalRenderingOptions = String(object.experimentalRenderingOptions);
11365
+ if (object.selectionHighlighting != null) {
11366
+ if (typeof object.selectionHighlighting !== "object")
11367
+ throw TypeError(".vertexvis.protobuf.stream.StreamAttributes.selectionHighlighting: object expected");
11368
+ message.selectionHighlighting = $root.vertexvis.protobuf.stream.SelectionHighlightAttributes.fromObject(object.selectionHighlighting);
11369
+ }
11346
11370
  return message;
11347
11371
  };
11348
11372
 
@@ -11367,6 +11391,7 @@ const vertexvis = $root.vertexvis = (() => {
11367
11391
  object.featureMaps = null;
11368
11392
  object.noDefaultLights = false;
11369
11393
  object.experimentalRenderingOptions = "";
11394
+ object.selectionHighlighting = null;
11370
11395
  }
11371
11396
  if (message.experimentalGhosting != null && message.hasOwnProperty("experimentalGhosting"))
11372
11397
  object.experimentalGhosting = $root.vertexvis.protobuf.stream.GhostingAttributes.toObject(message.experimentalGhosting, options);
@@ -11382,6 +11407,8 @@ const vertexvis = $root.vertexvis = (() => {
11382
11407
  object.noDefaultLights = message.noDefaultLights;
11383
11408
  if (message.experimentalRenderingOptions != null && message.hasOwnProperty("experimentalRenderingOptions"))
11384
11409
  object.experimentalRenderingOptions = message.experimentalRenderingOptions;
11410
+ if (message.selectionHighlighting != null && message.hasOwnProperty("selectionHighlighting"))
11411
+ object.selectionHighlighting = $root.vertexvis.protobuf.stream.SelectionHighlightAttributes.toObject(message.selectionHighlighting, options);
11385
11412
  return object;
11386
11413
  };
11387
11414
 
@@ -13830,6 +13857,248 @@ const vertexvis = $root.vertexvis = (() => {
13830
13857
  return FeatureHighlightAttributes;
13831
13858
  })();
13832
13859
 
13860
+ stream.SelectionHighlightAttributes = (function() {
13861
+
13862
+ /**
13863
+ * Properties of a SelectionHighlightAttributes.
13864
+ * @memberof vertexvis.protobuf.stream
13865
+ * @interface ISelectionHighlightAttributes
13866
+ * @property {vertexvis.protobuf.core.IRGBi|null} [color] SelectionHighlightAttributes color
13867
+ * @property {google.protobuf.IFloatValue|null} [opacity] SelectionHighlightAttributes opacity
13868
+ * @property {number|null} [lineWidth] SelectionHighlightAttributes lineWidth
13869
+ */
13870
+
13871
+ /**
13872
+ * Constructs a new SelectionHighlightAttributes.
13873
+ * @memberof vertexvis.protobuf.stream
13874
+ * @classdesc Represents a SelectionHighlightAttributes.
13875
+ * @implements ISelectionHighlightAttributes
13876
+ * @constructor
13877
+ * @param {vertexvis.protobuf.stream.ISelectionHighlightAttributes=} [properties] Properties to set
13878
+ */
13879
+ function SelectionHighlightAttributes(properties) {
13880
+ if (properties)
13881
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
13882
+ if (properties[keys[i]] != null)
13883
+ this[keys[i]] = properties[keys[i]];
13884
+ }
13885
+
13886
+ /**
13887
+ * SelectionHighlightAttributes color.
13888
+ * @member {vertexvis.protobuf.core.IRGBi|null|undefined} color
13889
+ * @memberof vertexvis.protobuf.stream.SelectionHighlightAttributes
13890
+ * @instance
13891
+ */
13892
+ SelectionHighlightAttributes.prototype.color = null;
13893
+
13894
+ /**
13895
+ * SelectionHighlightAttributes opacity.
13896
+ * @member {google.protobuf.IFloatValue|null|undefined} opacity
13897
+ * @memberof vertexvis.protobuf.stream.SelectionHighlightAttributes
13898
+ * @instance
13899
+ */
13900
+ SelectionHighlightAttributes.prototype.opacity = null;
13901
+
13902
+ /**
13903
+ * SelectionHighlightAttributes lineWidth.
13904
+ * @member {number} lineWidth
13905
+ * @memberof vertexvis.protobuf.stream.SelectionHighlightAttributes
13906
+ * @instance
13907
+ */
13908
+ SelectionHighlightAttributes.prototype.lineWidth = 0;
13909
+
13910
+ /**
13911
+ * Creates a new SelectionHighlightAttributes instance using the specified properties.
13912
+ * @function create
13913
+ * @memberof vertexvis.protobuf.stream.SelectionHighlightAttributes
13914
+ * @static
13915
+ * @param {vertexvis.protobuf.stream.ISelectionHighlightAttributes=} [properties] Properties to set
13916
+ * @returns {vertexvis.protobuf.stream.SelectionHighlightAttributes} SelectionHighlightAttributes instance
13917
+ */
13918
+ SelectionHighlightAttributes.create = function create(properties) {
13919
+ return new SelectionHighlightAttributes(properties);
13920
+ };
13921
+
13922
+ /**
13923
+ * Encodes the specified SelectionHighlightAttributes message. Does not implicitly {@link vertexvis.protobuf.stream.SelectionHighlightAttributes.verify|verify} messages.
13924
+ * @function encode
13925
+ * @memberof vertexvis.protobuf.stream.SelectionHighlightAttributes
13926
+ * @static
13927
+ * @param {vertexvis.protobuf.stream.ISelectionHighlightAttributes} message SelectionHighlightAttributes message or plain object to encode
13928
+ * @param {$protobuf.Writer} [writer] Writer to encode to
13929
+ * @returns {$protobuf.Writer} Writer
13930
+ */
13931
+ SelectionHighlightAttributes.encode = function encode(message, writer) {
13932
+ if (!writer)
13933
+ writer = $Writer.create();
13934
+ if (message.color != null && Object.hasOwnProperty.call(message, "color"))
13935
+ $root.vertexvis.protobuf.core.RGBi.encode(message.color, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
13936
+ if (message.opacity != null && Object.hasOwnProperty.call(message, "opacity"))
13937
+ $root.google.protobuf.FloatValue.encode(message.opacity, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
13938
+ if (message.lineWidth != null && Object.hasOwnProperty.call(message, "lineWidth"))
13939
+ writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.lineWidth);
13940
+ return writer;
13941
+ };
13942
+
13943
+ /**
13944
+ * Encodes the specified SelectionHighlightAttributes message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.SelectionHighlightAttributes.verify|verify} messages.
13945
+ * @function encodeDelimited
13946
+ * @memberof vertexvis.protobuf.stream.SelectionHighlightAttributes
13947
+ * @static
13948
+ * @param {vertexvis.protobuf.stream.ISelectionHighlightAttributes} message SelectionHighlightAttributes message or plain object to encode
13949
+ * @param {$protobuf.Writer} [writer] Writer to encode to
13950
+ * @returns {$protobuf.Writer} Writer
13951
+ */
13952
+ SelectionHighlightAttributes.encodeDelimited = function encodeDelimited(message, writer) {
13953
+ return this.encode(message, writer).ldelim();
13954
+ };
13955
+
13956
+ /**
13957
+ * Decodes a SelectionHighlightAttributes message from the specified reader or buffer.
13958
+ * @function decode
13959
+ * @memberof vertexvis.protobuf.stream.SelectionHighlightAttributes
13960
+ * @static
13961
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13962
+ * @param {number} [length] Message length if known beforehand
13963
+ * @returns {vertexvis.protobuf.stream.SelectionHighlightAttributes} SelectionHighlightAttributes
13964
+ * @throws {Error} If the payload is not a reader or valid buffer
13965
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13966
+ */
13967
+ SelectionHighlightAttributes.decode = function decode(reader, length) {
13968
+ if (!(reader instanceof $Reader))
13969
+ reader = $Reader.create(reader);
13970
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.SelectionHighlightAttributes();
13971
+ while (reader.pos < end) {
13972
+ let tag = reader.uint32();
13973
+ switch (tag >>> 3) {
13974
+ case 1:
13975
+ message.color = $root.vertexvis.protobuf.core.RGBi.decode(reader, reader.uint32());
13976
+ break;
13977
+ case 2:
13978
+ message.opacity = $root.google.protobuf.FloatValue.decode(reader, reader.uint32());
13979
+ break;
13980
+ case 3:
13981
+ message.lineWidth = reader.uint32();
13982
+ break;
13983
+ default:
13984
+ reader.skipType(tag & 7);
13985
+ break;
13986
+ }
13987
+ }
13988
+ return message;
13989
+ };
13990
+
13991
+ /**
13992
+ * Decodes a SelectionHighlightAttributes message from the specified reader or buffer, length delimited.
13993
+ * @function decodeDelimited
13994
+ * @memberof vertexvis.protobuf.stream.SelectionHighlightAttributes
13995
+ * @static
13996
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13997
+ * @returns {vertexvis.protobuf.stream.SelectionHighlightAttributes} SelectionHighlightAttributes
13998
+ * @throws {Error} If the payload is not a reader or valid buffer
13999
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14000
+ */
14001
+ SelectionHighlightAttributes.decodeDelimited = function decodeDelimited(reader) {
14002
+ if (!(reader instanceof $Reader))
14003
+ reader = new $Reader(reader);
14004
+ return this.decode(reader, reader.uint32());
14005
+ };
14006
+
14007
+ /**
14008
+ * Verifies a SelectionHighlightAttributes message.
14009
+ * @function verify
14010
+ * @memberof vertexvis.protobuf.stream.SelectionHighlightAttributes
14011
+ * @static
14012
+ * @param {Object.<string,*>} message Plain object to verify
14013
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
14014
+ */
14015
+ SelectionHighlightAttributes.verify = function verify(message) {
14016
+ if (typeof message !== "object" || message === null)
14017
+ return "object expected";
14018
+ if (message.color != null && message.hasOwnProperty("color")) {
14019
+ let error = $root.vertexvis.protobuf.core.RGBi.verify(message.color);
14020
+ if (error)
14021
+ return "color." + error;
14022
+ }
14023
+ if (message.opacity != null && message.hasOwnProperty("opacity")) {
14024
+ let error = $root.google.protobuf.FloatValue.verify(message.opacity);
14025
+ if (error)
14026
+ return "opacity." + error;
14027
+ }
14028
+ if (message.lineWidth != null && message.hasOwnProperty("lineWidth"))
14029
+ if (!$util.isInteger(message.lineWidth))
14030
+ return "lineWidth: integer expected";
14031
+ return null;
14032
+ };
14033
+
14034
+ /**
14035
+ * Creates a SelectionHighlightAttributes message from a plain object. Also converts values to their respective internal types.
14036
+ * @function fromObject
14037
+ * @memberof vertexvis.protobuf.stream.SelectionHighlightAttributes
14038
+ * @static
14039
+ * @param {Object.<string,*>} object Plain object
14040
+ * @returns {vertexvis.protobuf.stream.SelectionHighlightAttributes} SelectionHighlightAttributes
14041
+ */
14042
+ SelectionHighlightAttributes.fromObject = function fromObject(object) {
14043
+ if (object instanceof $root.vertexvis.protobuf.stream.SelectionHighlightAttributes)
14044
+ return object;
14045
+ let message = new $root.vertexvis.protobuf.stream.SelectionHighlightAttributes();
14046
+ if (object.color != null) {
14047
+ if (typeof object.color !== "object")
14048
+ throw TypeError(".vertexvis.protobuf.stream.SelectionHighlightAttributes.color: object expected");
14049
+ message.color = $root.vertexvis.protobuf.core.RGBi.fromObject(object.color);
14050
+ }
14051
+ if (object.opacity != null) {
14052
+ if (typeof object.opacity !== "object")
14053
+ throw TypeError(".vertexvis.protobuf.stream.SelectionHighlightAttributes.opacity: object expected");
14054
+ message.opacity = $root.google.protobuf.FloatValue.fromObject(object.opacity);
14055
+ }
14056
+ if (object.lineWidth != null)
14057
+ message.lineWidth = object.lineWidth >>> 0;
14058
+ return message;
14059
+ };
14060
+
14061
+ /**
14062
+ * Creates a plain object from a SelectionHighlightAttributes message. Also converts values to other types if specified.
14063
+ * @function toObject
14064
+ * @memberof vertexvis.protobuf.stream.SelectionHighlightAttributes
14065
+ * @static
14066
+ * @param {vertexvis.protobuf.stream.SelectionHighlightAttributes} message SelectionHighlightAttributes
14067
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
14068
+ * @returns {Object.<string,*>} Plain object
14069
+ */
14070
+ SelectionHighlightAttributes.toObject = function toObject(message, options) {
14071
+ if (!options)
14072
+ options = {};
14073
+ let object = {};
14074
+ if (options.defaults) {
14075
+ object.color = null;
14076
+ object.opacity = null;
14077
+ object.lineWidth = 0;
14078
+ }
14079
+ if (message.color != null && message.hasOwnProperty("color"))
14080
+ object.color = $root.vertexvis.protobuf.core.RGBi.toObject(message.color, options);
14081
+ if (message.opacity != null && message.hasOwnProperty("opacity"))
14082
+ object.opacity = $root.google.protobuf.FloatValue.toObject(message.opacity, options);
14083
+ if (message.lineWidth != null && message.hasOwnProperty("lineWidth"))
14084
+ object.lineWidth = message.lineWidth;
14085
+ return object;
14086
+ };
14087
+
14088
+ /**
14089
+ * Converts this SelectionHighlightAttributes to JSON.
14090
+ * @function toJSON
14091
+ * @memberof vertexvis.protobuf.stream.SelectionHighlightAttributes
14092
+ * @instance
14093
+ * @returns {Object.<string,*>} JSON object
14094
+ */
14095
+ SelectionHighlightAttributes.prototype.toJSON = function toJSON() {
14096
+ return this.constructor.toObject(this, minimal.util.toJSONOptions);
14097
+ };
14098
+
14099
+ return SelectionHighlightAttributes;
14100
+ })();
14101
+
13833
14102
  stream.Token = (function() {
13834
14103
 
13835
14104
  /**