@vertexvis/stream-api 0.15.3-canary.2 → 0.16.0-canary.0
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 +269 -0
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +269 -0
- package/dist/bundle.esm.js.map +1 -1
- package/package.json +5 -5
package/dist/bundle.esm.js
CHANGED
|
@@ -11063,6 +11063,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11063
11063
|
* @property {vertexvis.protobuf.stream.IFeatureMapAttributes|null} [featureMaps] StreamAttributes featureMaps
|
|
11064
11064
|
* @property {boolean|null} [noDefaultLights] StreamAttributes noDefaultLights
|
|
11065
11065
|
* @property {string|null} [experimentalRenderingOptions] StreamAttributes experimentalRenderingOptions
|
|
11066
|
+
* @property {vertexvis.protobuf.stream.ISelectionHighlightAttributes|null} [selectionHighlighting] StreamAttributes selectionHighlighting
|
|
11066
11067
|
*/
|
|
11067
11068
|
|
|
11068
11069
|
/**
|
|
@@ -11136,6 +11137,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11136
11137
|
*/
|
|
11137
11138
|
StreamAttributes.prototype.experimentalRenderingOptions = "";
|
|
11138
11139
|
|
|
11140
|
+
/**
|
|
11141
|
+
* StreamAttributes selectionHighlighting.
|
|
11142
|
+
* @member {vertexvis.protobuf.stream.ISelectionHighlightAttributes|null|undefined} selectionHighlighting
|
|
11143
|
+
* @memberof vertexvis.protobuf.stream.StreamAttributes
|
|
11144
|
+
* @instance
|
|
11145
|
+
*/
|
|
11146
|
+
StreamAttributes.prototype.selectionHighlighting = null;
|
|
11147
|
+
|
|
11139
11148
|
/**
|
|
11140
11149
|
* Creates a new StreamAttributes instance using the specified properties.
|
|
11141
11150
|
* @function create
|
|
@@ -11174,6 +11183,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11174
11183
|
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.noDefaultLights);
|
|
11175
11184
|
if (message.experimentalRenderingOptions != null && Object.hasOwnProperty.call(message, "experimentalRenderingOptions"))
|
|
11176
11185
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.experimentalRenderingOptions);
|
|
11186
|
+
if (message.selectionHighlighting != null && Object.hasOwnProperty.call(message, "selectionHighlighting"))
|
|
11187
|
+
$root.vertexvis.protobuf.stream.SelectionHighlightAttributes.encode(message.selectionHighlighting, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
11177
11188
|
return writer;
|
|
11178
11189
|
};
|
|
11179
11190
|
|
|
@@ -11229,6 +11240,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11229
11240
|
case 7:
|
|
11230
11241
|
message.experimentalRenderingOptions = reader.string();
|
|
11231
11242
|
break;
|
|
11243
|
+
case 8:
|
|
11244
|
+
message.selectionHighlighting = $root.vertexvis.protobuf.stream.SelectionHighlightAttributes.decode(reader, reader.uint32());
|
|
11245
|
+
break;
|
|
11232
11246
|
default:
|
|
11233
11247
|
reader.skipType(tag & 7);
|
|
11234
11248
|
break;
|
|
@@ -11295,6 +11309,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11295
11309
|
if (message.experimentalRenderingOptions != null && message.hasOwnProperty("experimentalRenderingOptions"))
|
|
11296
11310
|
if (!$util.isString(message.experimentalRenderingOptions))
|
|
11297
11311
|
return "experimentalRenderingOptions: string expected";
|
|
11312
|
+
if (message.selectionHighlighting != null && message.hasOwnProperty("selectionHighlighting")) {
|
|
11313
|
+
let error = $root.vertexvis.protobuf.stream.SelectionHighlightAttributes.verify(message.selectionHighlighting);
|
|
11314
|
+
if (error)
|
|
11315
|
+
return "selectionHighlighting." + error;
|
|
11316
|
+
}
|
|
11298
11317
|
return null;
|
|
11299
11318
|
};
|
|
11300
11319
|
|
|
@@ -11339,6 +11358,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11339
11358
|
message.noDefaultLights = Boolean(object.noDefaultLights);
|
|
11340
11359
|
if (object.experimentalRenderingOptions != null)
|
|
11341
11360
|
message.experimentalRenderingOptions = String(object.experimentalRenderingOptions);
|
|
11361
|
+
if (object.selectionHighlighting != null) {
|
|
11362
|
+
if (typeof object.selectionHighlighting !== "object")
|
|
11363
|
+
throw TypeError(".vertexvis.protobuf.stream.StreamAttributes.selectionHighlighting: object expected");
|
|
11364
|
+
message.selectionHighlighting = $root.vertexvis.protobuf.stream.SelectionHighlightAttributes.fromObject(object.selectionHighlighting);
|
|
11365
|
+
}
|
|
11342
11366
|
return message;
|
|
11343
11367
|
};
|
|
11344
11368
|
|
|
@@ -11363,6 +11387,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11363
11387
|
object.featureMaps = null;
|
|
11364
11388
|
object.noDefaultLights = false;
|
|
11365
11389
|
object.experimentalRenderingOptions = "";
|
|
11390
|
+
object.selectionHighlighting = null;
|
|
11366
11391
|
}
|
|
11367
11392
|
if (message.experimentalGhosting != null && message.hasOwnProperty("experimentalGhosting"))
|
|
11368
11393
|
object.experimentalGhosting = $root.vertexvis.protobuf.stream.GhostingAttributes.toObject(message.experimentalGhosting, options);
|
|
@@ -11378,6 +11403,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11378
11403
|
object.noDefaultLights = message.noDefaultLights;
|
|
11379
11404
|
if (message.experimentalRenderingOptions != null && message.hasOwnProperty("experimentalRenderingOptions"))
|
|
11380
11405
|
object.experimentalRenderingOptions = message.experimentalRenderingOptions;
|
|
11406
|
+
if (message.selectionHighlighting != null && message.hasOwnProperty("selectionHighlighting"))
|
|
11407
|
+
object.selectionHighlighting = $root.vertexvis.protobuf.stream.SelectionHighlightAttributes.toObject(message.selectionHighlighting, options);
|
|
11381
11408
|
return object;
|
|
11382
11409
|
};
|
|
11383
11410
|
|
|
@@ -13826,6 +13853,248 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
13826
13853
|
return FeatureHighlightAttributes;
|
|
13827
13854
|
})();
|
|
13828
13855
|
|
|
13856
|
+
stream.SelectionHighlightAttributes = (function() {
|
|
13857
|
+
|
|
13858
|
+
/**
|
|
13859
|
+
* Properties of a SelectionHighlightAttributes.
|
|
13860
|
+
* @memberof vertexvis.protobuf.stream
|
|
13861
|
+
* @interface ISelectionHighlightAttributes
|
|
13862
|
+
* @property {vertexvis.protobuf.core.IRGBi|null} [color] SelectionHighlightAttributes color
|
|
13863
|
+
* @property {google.protobuf.IFloatValue|null} [opacity] SelectionHighlightAttributes opacity
|
|
13864
|
+
* @property {number|null} [lineWidth] SelectionHighlightAttributes lineWidth
|
|
13865
|
+
*/
|
|
13866
|
+
|
|
13867
|
+
/**
|
|
13868
|
+
* Constructs a new SelectionHighlightAttributes.
|
|
13869
|
+
* @memberof vertexvis.protobuf.stream
|
|
13870
|
+
* @classdesc Represents a SelectionHighlightAttributes.
|
|
13871
|
+
* @implements ISelectionHighlightAttributes
|
|
13872
|
+
* @constructor
|
|
13873
|
+
* @param {vertexvis.protobuf.stream.ISelectionHighlightAttributes=} [properties] Properties to set
|
|
13874
|
+
*/
|
|
13875
|
+
function SelectionHighlightAttributes(properties) {
|
|
13876
|
+
if (properties)
|
|
13877
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
13878
|
+
if (properties[keys[i]] != null)
|
|
13879
|
+
this[keys[i]] = properties[keys[i]];
|
|
13880
|
+
}
|
|
13881
|
+
|
|
13882
|
+
/**
|
|
13883
|
+
* SelectionHighlightAttributes color.
|
|
13884
|
+
* @member {vertexvis.protobuf.core.IRGBi|null|undefined} color
|
|
13885
|
+
* @memberof vertexvis.protobuf.stream.SelectionHighlightAttributes
|
|
13886
|
+
* @instance
|
|
13887
|
+
*/
|
|
13888
|
+
SelectionHighlightAttributes.prototype.color = null;
|
|
13889
|
+
|
|
13890
|
+
/**
|
|
13891
|
+
* SelectionHighlightAttributes opacity.
|
|
13892
|
+
* @member {google.protobuf.IFloatValue|null|undefined} opacity
|
|
13893
|
+
* @memberof vertexvis.protobuf.stream.SelectionHighlightAttributes
|
|
13894
|
+
* @instance
|
|
13895
|
+
*/
|
|
13896
|
+
SelectionHighlightAttributes.prototype.opacity = null;
|
|
13897
|
+
|
|
13898
|
+
/**
|
|
13899
|
+
* SelectionHighlightAttributes lineWidth.
|
|
13900
|
+
* @member {number} lineWidth
|
|
13901
|
+
* @memberof vertexvis.protobuf.stream.SelectionHighlightAttributes
|
|
13902
|
+
* @instance
|
|
13903
|
+
*/
|
|
13904
|
+
SelectionHighlightAttributes.prototype.lineWidth = 0;
|
|
13905
|
+
|
|
13906
|
+
/**
|
|
13907
|
+
* Creates a new SelectionHighlightAttributes instance using the specified properties.
|
|
13908
|
+
* @function create
|
|
13909
|
+
* @memberof vertexvis.protobuf.stream.SelectionHighlightAttributes
|
|
13910
|
+
* @static
|
|
13911
|
+
* @param {vertexvis.protobuf.stream.ISelectionHighlightAttributes=} [properties] Properties to set
|
|
13912
|
+
* @returns {vertexvis.protobuf.stream.SelectionHighlightAttributes} SelectionHighlightAttributes instance
|
|
13913
|
+
*/
|
|
13914
|
+
SelectionHighlightAttributes.create = function create(properties) {
|
|
13915
|
+
return new SelectionHighlightAttributes(properties);
|
|
13916
|
+
};
|
|
13917
|
+
|
|
13918
|
+
/**
|
|
13919
|
+
* Encodes the specified SelectionHighlightAttributes message. Does not implicitly {@link vertexvis.protobuf.stream.SelectionHighlightAttributes.verify|verify} messages.
|
|
13920
|
+
* @function encode
|
|
13921
|
+
* @memberof vertexvis.protobuf.stream.SelectionHighlightAttributes
|
|
13922
|
+
* @static
|
|
13923
|
+
* @param {vertexvis.protobuf.stream.ISelectionHighlightAttributes} message SelectionHighlightAttributes message or plain object to encode
|
|
13924
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13925
|
+
* @returns {$protobuf.Writer} Writer
|
|
13926
|
+
*/
|
|
13927
|
+
SelectionHighlightAttributes.encode = function encode(message, writer) {
|
|
13928
|
+
if (!writer)
|
|
13929
|
+
writer = $Writer.create();
|
|
13930
|
+
if (message.color != null && Object.hasOwnProperty.call(message, "color"))
|
|
13931
|
+
$root.vertexvis.protobuf.core.RGBi.encode(message.color, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
13932
|
+
if (message.opacity != null && Object.hasOwnProperty.call(message, "opacity"))
|
|
13933
|
+
$root.google.protobuf.FloatValue.encode(message.opacity, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
13934
|
+
if (message.lineWidth != null && Object.hasOwnProperty.call(message, "lineWidth"))
|
|
13935
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.lineWidth);
|
|
13936
|
+
return writer;
|
|
13937
|
+
};
|
|
13938
|
+
|
|
13939
|
+
/**
|
|
13940
|
+
* Encodes the specified SelectionHighlightAttributes message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.SelectionHighlightAttributes.verify|verify} messages.
|
|
13941
|
+
* @function encodeDelimited
|
|
13942
|
+
* @memberof vertexvis.protobuf.stream.SelectionHighlightAttributes
|
|
13943
|
+
* @static
|
|
13944
|
+
* @param {vertexvis.protobuf.stream.ISelectionHighlightAttributes} message SelectionHighlightAttributes message or plain object to encode
|
|
13945
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13946
|
+
* @returns {$protobuf.Writer} Writer
|
|
13947
|
+
*/
|
|
13948
|
+
SelectionHighlightAttributes.encodeDelimited = function encodeDelimited(message, writer) {
|
|
13949
|
+
return this.encode(message, writer).ldelim();
|
|
13950
|
+
};
|
|
13951
|
+
|
|
13952
|
+
/**
|
|
13953
|
+
* Decodes a SelectionHighlightAttributes message from the specified reader or buffer.
|
|
13954
|
+
* @function decode
|
|
13955
|
+
* @memberof vertexvis.protobuf.stream.SelectionHighlightAttributes
|
|
13956
|
+
* @static
|
|
13957
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13958
|
+
* @param {number} [length] Message length if known beforehand
|
|
13959
|
+
* @returns {vertexvis.protobuf.stream.SelectionHighlightAttributes} SelectionHighlightAttributes
|
|
13960
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13961
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13962
|
+
*/
|
|
13963
|
+
SelectionHighlightAttributes.decode = function decode(reader, length) {
|
|
13964
|
+
if (!(reader instanceof $Reader))
|
|
13965
|
+
reader = $Reader.create(reader);
|
|
13966
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.SelectionHighlightAttributes();
|
|
13967
|
+
while (reader.pos < end) {
|
|
13968
|
+
let tag = reader.uint32();
|
|
13969
|
+
switch (tag >>> 3) {
|
|
13970
|
+
case 1:
|
|
13971
|
+
message.color = $root.vertexvis.protobuf.core.RGBi.decode(reader, reader.uint32());
|
|
13972
|
+
break;
|
|
13973
|
+
case 2:
|
|
13974
|
+
message.opacity = $root.google.protobuf.FloatValue.decode(reader, reader.uint32());
|
|
13975
|
+
break;
|
|
13976
|
+
case 3:
|
|
13977
|
+
message.lineWidth = reader.uint32();
|
|
13978
|
+
break;
|
|
13979
|
+
default:
|
|
13980
|
+
reader.skipType(tag & 7);
|
|
13981
|
+
break;
|
|
13982
|
+
}
|
|
13983
|
+
}
|
|
13984
|
+
return message;
|
|
13985
|
+
};
|
|
13986
|
+
|
|
13987
|
+
/**
|
|
13988
|
+
* Decodes a SelectionHighlightAttributes message from the specified reader or buffer, length delimited.
|
|
13989
|
+
* @function decodeDelimited
|
|
13990
|
+
* @memberof vertexvis.protobuf.stream.SelectionHighlightAttributes
|
|
13991
|
+
* @static
|
|
13992
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13993
|
+
* @returns {vertexvis.protobuf.stream.SelectionHighlightAttributes} SelectionHighlightAttributes
|
|
13994
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13995
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13996
|
+
*/
|
|
13997
|
+
SelectionHighlightAttributes.decodeDelimited = function decodeDelimited(reader) {
|
|
13998
|
+
if (!(reader instanceof $Reader))
|
|
13999
|
+
reader = new $Reader(reader);
|
|
14000
|
+
return this.decode(reader, reader.uint32());
|
|
14001
|
+
};
|
|
14002
|
+
|
|
14003
|
+
/**
|
|
14004
|
+
* Verifies a SelectionHighlightAttributes message.
|
|
14005
|
+
* @function verify
|
|
14006
|
+
* @memberof vertexvis.protobuf.stream.SelectionHighlightAttributes
|
|
14007
|
+
* @static
|
|
14008
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
14009
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
14010
|
+
*/
|
|
14011
|
+
SelectionHighlightAttributes.verify = function verify(message) {
|
|
14012
|
+
if (typeof message !== "object" || message === null)
|
|
14013
|
+
return "object expected";
|
|
14014
|
+
if (message.color != null && message.hasOwnProperty("color")) {
|
|
14015
|
+
let error = $root.vertexvis.protobuf.core.RGBi.verify(message.color);
|
|
14016
|
+
if (error)
|
|
14017
|
+
return "color." + error;
|
|
14018
|
+
}
|
|
14019
|
+
if (message.opacity != null && message.hasOwnProperty("opacity")) {
|
|
14020
|
+
let error = $root.google.protobuf.FloatValue.verify(message.opacity);
|
|
14021
|
+
if (error)
|
|
14022
|
+
return "opacity." + error;
|
|
14023
|
+
}
|
|
14024
|
+
if (message.lineWidth != null && message.hasOwnProperty("lineWidth"))
|
|
14025
|
+
if (!$util.isInteger(message.lineWidth))
|
|
14026
|
+
return "lineWidth: integer expected";
|
|
14027
|
+
return null;
|
|
14028
|
+
};
|
|
14029
|
+
|
|
14030
|
+
/**
|
|
14031
|
+
* Creates a SelectionHighlightAttributes message from a plain object. Also converts values to their respective internal types.
|
|
14032
|
+
* @function fromObject
|
|
14033
|
+
* @memberof vertexvis.protobuf.stream.SelectionHighlightAttributes
|
|
14034
|
+
* @static
|
|
14035
|
+
* @param {Object.<string,*>} object Plain object
|
|
14036
|
+
* @returns {vertexvis.protobuf.stream.SelectionHighlightAttributes} SelectionHighlightAttributes
|
|
14037
|
+
*/
|
|
14038
|
+
SelectionHighlightAttributes.fromObject = function fromObject(object) {
|
|
14039
|
+
if (object instanceof $root.vertexvis.protobuf.stream.SelectionHighlightAttributes)
|
|
14040
|
+
return object;
|
|
14041
|
+
let message = new $root.vertexvis.protobuf.stream.SelectionHighlightAttributes();
|
|
14042
|
+
if (object.color != null) {
|
|
14043
|
+
if (typeof object.color !== "object")
|
|
14044
|
+
throw TypeError(".vertexvis.protobuf.stream.SelectionHighlightAttributes.color: object expected");
|
|
14045
|
+
message.color = $root.vertexvis.protobuf.core.RGBi.fromObject(object.color);
|
|
14046
|
+
}
|
|
14047
|
+
if (object.opacity != null) {
|
|
14048
|
+
if (typeof object.opacity !== "object")
|
|
14049
|
+
throw TypeError(".vertexvis.protobuf.stream.SelectionHighlightAttributes.opacity: object expected");
|
|
14050
|
+
message.opacity = $root.google.protobuf.FloatValue.fromObject(object.opacity);
|
|
14051
|
+
}
|
|
14052
|
+
if (object.lineWidth != null)
|
|
14053
|
+
message.lineWidth = object.lineWidth >>> 0;
|
|
14054
|
+
return message;
|
|
14055
|
+
};
|
|
14056
|
+
|
|
14057
|
+
/**
|
|
14058
|
+
* Creates a plain object from a SelectionHighlightAttributes message. Also converts values to other types if specified.
|
|
14059
|
+
* @function toObject
|
|
14060
|
+
* @memberof vertexvis.protobuf.stream.SelectionHighlightAttributes
|
|
14061
|
+
* @static
|
|
14062
|
+
* @param {vertexvis.protobuf.stream.SelectionHighlightAttributes} message SelectionHighlightAttributes
|
|
14063
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
14064
|
+
* @returns {Object.<string,*>} Plain object
|
|
14065
|
+
*/
|
|
14066
|
+
SelectionHighlightAttributes.toObject = function toObject(message, options) {
|
|
14067
|
+
if (!options)
|
|
14068
|
+
options = {};
|
|
14069
|
+
let object = {};
|
|
14070
|
+
if (options.defaults) {
|
|
14071
|
+
object.color = null;
|
|
14072
|
+
object.opacity = null;
|
|
14073
|
+
object.lineWidth = 0;
|
|
14074
|
+
}
|
|
14075
|
+
if (message.color != null && message.hasOwnProperty("color"))
|
|
14076
|
+
object.color = $root.vertexvis.protobuf.core.RGBi.toObject(message.color, options);
|
|
14077
|
+
if (message.opacity != null && message.hasOwnProperty("opacity"))
|
|
14078
|
+
object.opacity = $root.google.protobuf.FloatValue.toObject(message.opacity, options);
|
|
14079
|
+
if (message.lineWidth != null && message.hasOwnProperty("lineWidth"))
|
|
14080
|
+
object.lineWidth = message.lineWidth;
|
|
14081
|
+
return object;
|
|
14082
|
+
};
|
|
14083
|
+
|
|
14084
|
+
/**
|
|
14085
|
+
* Converts this SelectionHighlightAttributes to JSON.
|
|
14086
|
+
* @function toJSON
|
|
14087
|
+
* @memberof vertexvis.protobuf.stream.SelectionHighlightAttributes
|
|
14088
|
+
* @instance
|
|
14089
|
+
* @returns {Object.<string,*>} JSON object
|
|
14090
|
+
*/
|
|
14091
|
+
SelectionHighlightAttributes.prototype.toJSON = function toJSON() {
|
|
14092
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
14093
|
+
};
|
|
14094
|
+
|
|
14095
|
+
return SelectionHighlightAttributes;
|
|
14096
|
+
})();
|
|
14097
|
+
|
|
13829
14098
|
stream.Token = (function() {
|
|
13830
14099
|
|
|
13831
14100
|
/**
|