@vertexvis/stream-api 0.21.0-canary.0 → 0.21.0-canary.2
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 +225 -2
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +225 -2
- package/dist/bundle.esm.js.map +1 -1
- package/package.json +5 -5
package/dist/bundle.esm.js
CHANGED
|
@@ -7863,6 +7863,193 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
7863
7863
|
return SelectionQuery;
|
|
7864
7864
|
})();
|
|
7865
7865
|
|
|
7866
|
+
stream.VisibilityQuery = (function() {
|
|
7867
|
+
|
|
7868
|
+
/**
|
|
7869
|
+
* Properties of a VisibilityQuery.
|
|
7870
|
+
* @memberof vertexvis.protobuf.stream
|
|
7871
|
+
* @interface IVisibilityQuery
|
|
7872
|
+
* @property {boolean|null} [visibilityState] VisibilityQuery visibilityState
|
|
7873
|
+
*/
|
|
7874
|
+
|
|
7875
|
+
/**
|
|
7876
|
+
* Constructs a new VisibilityQuery.
|
|
7877
|
+
* @memberof vertexvis.protobuf.stream
|
|
7878
|
+
* @classdesc Represents a VisibilityQuery.
|
|
7879
|
+
* @implements IVisibilityQuery
|
|
7880
|
+
* @constructor
|
|
7881
|
+
* @param {vertexvis.protobuf.stream.IVisibilityQuery=} [properties] Properties to set
|
|
7882
|
+
*/
|
|
7883
|
+
function VisibilityQuery(properties) {
|
|
7884
|
+
if (properties)
|
|
7885
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
7886
|
+
if (properties[keys[i]] != null)
|
|
7887
|
+
this[keys[i]] = properties[keys[i]];
|
|
7888
|
+
}
|
|
7889
|
+
|
|
7890
|
+
/**
|
|
7891
|
+
* VisibilityQuery visibilityState.
|
|
7892
|
+
* @member {boolean} visibilityState
|
|
7893
|
+
* @memberof vertexvis.protobuf.stream.VisibilityQuery
|
|
7894
|
+
* @instance
|
|
7895
|
+
*/
|
|
7896
|
+
VisibilityQuery.prototype.visibilityState = false;
|
|
7897
|
+
|
|
7898
|
+
/**
|
|
7899
|
+
* Creates a new VisibilityQuery instance using the specified properties.
|
|
7900
|
+
* @function create
|
|
7901
|
+
* @memberof vertexvis.protobuf.stream.VisibilityQuery
|
|
7902
|
+
* @static
|
|
7903
|
+
* @param {vertexvis.protobuf.stream.IVisibilityQuery=} [properties] Properties to set
|
|
7904
|
+
* @returns {vertexvis.protobuf.stream.VisibilityQuery} VisibilityQuery instance
|
|
7905
|
+
*/
|
|
7906
|
+
VisibilityQuery.create = function create(properties) {
|
|
7907
|
+
return new VisibilityQuery(properties);
|
|
7908
|
+
};
|
|
7909
|
+
|
|
7910
|
+
/**
|
|
7911
|
+
* Encodes the specified VisibilityQuery message. Does not implicitly {@link vertexvis.protobuf.stream.VisibilityQuery.verify|verify} messages.
|
|
7912
|
+
* @function encode
|
|
7913
|
+
* @memberof vertexvis.protobuf.stream.VisibilityQuery
|
|
7914
|
+
* @static
|
|
7915
|
+
* @param {vertexvis.protobuf.stream.IVisibilityQuery} message VisibilityQuery message or plain object to encode
|
|
7916
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7917
|
+
* @returns {$protobuf.Writer} Writer
|
|
7918
|
+
*/
|
|
7919
|
+
VisibilityQuery.encode = function encode(message, writer) {
|
|
7920
|
+
if (!writer)
|
|
7921
|
+
writer = $Writer.create();
|
|
7922
|
+
if (message.visibilityState != null && Object.hasOwnProperty.call(message, "visibilityState"))
|
|
7923
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.visibilityState);
|
|
7924
|
+
return writer;
|
|
7925
|
+
};
|
|
7926
|
+
|
|
7927
|
+
/**
|
|
7928
|
+
* Encodes the specified VisibilityQuery message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.VisibilityQuery.verify|verify} messages.
|
|
7929
|
+
* @function encodeDelimited
|
|
7930
|
+
* @memberof vertexvis.protobuf.stream.VisibilityQuery
|
|
7931
|
+
* @static
|
|
7932
|
+
* @param {vertexvis.protobuf.stream.IVisibilityQuery} message VisibilityQuery message or plain object to encode
|
|
7933
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7934
|
+
* @returns {$protobuf.Writer} Writer
|
|
7935
|
+
*/
|
|
7936
|
+
VisibilityQuery.encodeDelimited = function encodeDelimited(message, writer) {
|
|
7937
|
+
return this.encode(message, writer).ldelim();
|
|
7938
|
+
};
|
|
7939
|
+
|
|
7940
|
+
/**
|
|
7941
|
+
* Decodes a VisibilityQuery message from the specified reader or buffer.
|
|
7942
|
+
* @function decode
|
|
7943
|
+
* @memberof vertexvis.protobuf.stream.VisibilityQuery
|
|
7944
|
+
* @static
|
|
7945
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7946
|
+
* @param {number} [length] Message length if known beforehand
|
|
7947
|
+
* @returns {vertexvis.protobuf.stream.VisibilityQuery} VisibilityQuery
|
|
7948
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7949
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7950
|
+
*/
|
|
7951
|
+
VisibilityQuery.decode = function decode(reader, length) {
|
|
7952
|
+
if (!(reader instanceof $Reader))
|
|
7953
|
+
reader = $Reader.create(reader);
|
|
7954
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.VisibilityQuery();
|
|
7955
|
+
while (reader.pos < end) {
|
|
7956
|
+
let tag = reader.uint32();
|
|
7957
|
+
switch (tag >>> 3) {
|
|
7958
|
+
case 1:
|
|
7959
|
+
message.visibilityState = reader.bool();
|
|
7960
|
+
break;
|
|
7961
|
+
default:
|
|
7962
|
+
reader.skipType(tag & 7);
|
|
7963
|
+
break;
|
|
7964
|
+
}
|
|
7965
|
+
}
|
|
7966
|
+
return message;
|
|
7967
|
+
};
|
|
7968
|
+
|
|
7969
|
+
/**
|
|
7970
|
+
* Decodes a VisibilityQuery message from the specified reader or buffer, length delimited.
|
|
7971
|
+
* @function decodeDelimited
|
|
7972
|
+
* @memberof vertexvis.protobuf.stream.VisibilityQuery
|
|
7973
|
+
* @static
|
|
7974
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7975
|
+
* @returns {vertexvis.protobuf.stream.VisibilityQuery} VisibilityQuery
|
|
7976
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7977
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7978
|
+
*/
|
|
7979
|
+
VisibilityQuery.decodeDelimited = function decodeDelimited(reader) {
|
|
7980
|
+
if (!(reader instanceof $Reader))
|
|
7981
|
+
reader = new $Reader(reader);
|
|
7982
|
+
return this.decode(reader, reader.uint32());
|
|
7983
|
+
};
|
|
7984
|
+
|
|
7985
|
+
/**
|
|
7986
|
+
* Verifies a VisibilityQuery message.
|
|
7987
|
+
* @function verify
|
|
7988
|
+
* @memberof vertexvis.protobuf.stream.VisibilityQuery
|
|
7989
|
+
* @static
|
|
7990
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
7991
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
7992
|
+
*/
|
|
7993
|
+
VisibilityQuery.verify = function verify(message) {
|
|
7994
|
+
if (typeof message !== "object" || message === null)
|
|
7995
|
+
return "object expected";
|
|
7996
|
+
if (message.visibilityState != null && message.hasOwnProperty("visibilityState"))
|
|
7997
|
+
if (typeof message.visibilityState !== "boolean")
|
|
7998
|
+
return "visibilityState: boolean expected";
|
|
7999
|
+
return null;
|
|
8000
|
+
};
|
|
8001
|
+
|
|
8002
|
+
/**
|
|
8003
|
+
* Creates a VisibilityQuery message from a plain object. Also converts values to their respective internal types.
|
|
8004
|
+
* @function fromObject
|
|
8005
|
+
* @memberof vertexvis.protobuf.stream.VisibilityQuery
|
|
8006
|
+
* @static
|
|
8007
|
+
* @param {Object.<string,*>} object Plain object
|
|
8008
|
+
* @returns {vertexvis.protobuf.stream.VisibilityQuery} VisibilityQuery
|
|
8009
|
+
*/
|
|
8010
|
+
VisibilityQuery.fromObject = function fromObject(object) {
|
|
8011
|
+
if (object instanceof $root.vertexvis.protobuf.stream.VisibilityQuery)
|
|
8012
|
+
return object;
|
|
8013
|
+
let message = new $root.vertexvis.protobuf.stream.VisibilityQuery();
|
|
8014
|
+
if (object.visibilityState != null)
|
|
8015
|
+
message.visibilityState = Boolean(object.visibilityState);
|
|
8016
|
+
return message;
|
|
8017
|
+
};
|
|
8018
|
+
|
|
8019
|
+
/**
|
|
8020
|
+
* Creates a plain object from a VisibilityQuery message. Also converts values to other types if specified.
|
|
8021
|
+
* @function toObject
|
|
8022
|
+
* @memberof vertexvis.protobuf.stream.VisibilityQuery
|
|
8023
|
+
* @static
|
|
8024
|
+
* @param {vertexvis.protobuf.stream.VisibilityQuery} message VisibilityQuery
|
|
8025
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
8026
|
+
* @returns {Object.<string,*>} Plain object
|
|
8027
|
+
*/
|
|
8028
|
+
VisibilityQuery.toObject = function toObject(message, options) {
|
|
8029
|
+
if (!options)
|
|
8030
|
+
options = {};
|
|
8031
|
+
let object = {};
|
|
8032
|
+
if (options.defaults)
|
|
8033
|
+
object.visibilityState = false;
|
|
8034
|
+
if (message.visibilityState != null && message.hasOwnProperty("visibilityState"))
|
|
8035
|
+
object.visibilityState = message.visibilityState;
|
|
8036
|
+
return object;
|
|
8037
|
+
};
|
|
8038
|
+
|
|
8039
|
+
/**
|
|
8040
|
+
* Converts this VisibilityQuery to JSON.
|
|
8041
|
+
* @function toJSON
|
|
8042
|
+
* @memberof vertexvis.protobuf.stream.VisibilityQuery
|
|
8043
|
+
* @instance
|
|
8044
|
+
* @returns {Object.<string,*>} JSON object
|
|
8045
|
+
*/
|
|
8046
|
+
VisibilityQuery.prototype.toJSON = function toJSON() {
|
|
8047
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
8048
|
+
};
|
|
8049
|
+
|
|
8050
|
+
return VisibilityQuery;
|
|
8051
|
+
})();
|
|
8052
|
+
|
|
7866
8053
|
stream.OverrideQuery = (function() {
|
|
7867
8054
|
|
|
7868
8055
|
/**
|
|
@@ -7870,6 +8057,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
7870
8057
|
* @memberof vertexvis.protobuf.stream
|
|
7871
8058
|
* @interface IOverrideQuery
|
|
7872
8059
|
* @property {vertexvis.protobuf.stream.ISelectionQuery|null} [selection] OverrideQuery selection
|
|
8060
|
+
* @property {vertexvis.protobuf.stream.IVisibilityQuery|null} [visibility] OverrideQuery visibility
|
|
7873
8061
|
*/
|
|
7874
8062
|
|
|
7875
8063
|
/**
|
|
@@ -7895,17 +8083,25 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
7895
8083
|
*/
|
|
7896
8084
|
OverrideQuery.prototype.selection = null;
|
|
7897
8085
|
|
|
8086
|
+
/**
|
|
8087
|
+
* OverrideQuery visibility.
|
|
8088
|
+
* @member {vertexvis.protobuf.stream.IVisibilityQuery|null|undefined} visibility
|
|
8089
|
+
* @memberof vertexvis.protobuf.stream.OverrideQuery
|
|
8090
|
+
* @instance
|
|
8091
|
+
*/
|
|
8092
|
+
OverrideQuery.prototype.visibility = null;
|
|
8093
|
+
|
|
7898
8094
|
// OneOf field names bound to virtual getters and setters
|
|
7899
8095
|
let $oneOfFields;
|
|
7900
8096
|
|
|
7901
8097
|
/**
|
|
7902
8098
|
* OverrideQuery override.
|
|
7903
|
-
* @member {"selection"|undefined} override
|
|
8099
|
+
* @member {"selection"|"visibility"|undefined} override
|
|
7904
8100
|
* @memberof vertexvis.protobuf.stream.OverrideQuery
|
|
7905
8101
|
* @instance
|
|
7906
8102
|
*/
|
|
7907
8103
|
Object.defineProperty(OverrideQuery.prototype, "override", {
|
|
7908
|
-
get: $util.oneOfGetter($oneOfFields = ["selection"]),
|
|
8104
|
+
get: $util.oneOfGetter($oneOfFields = ["selection", "visibility"]),
|
|
7909
8105
|
set: $util.oneOfSetter($oneOfFields)
|
|
7910
8106
|
});
|
|
7911
8107
|
|
|
@@ -7935,6 +8131,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
7935
8131
|
writer = $Writer.create();
|
|
7936
8132
|
if (message.selection != null && Object.hasOwnProperty.call(message, "selection"))
|
|
7937
8133
|
$root.vertexvis.protobuf.stream.SelectionQuery.encode(message.selection, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
8134
|
+
if (message.visibility != null && Object.hasOwnProperty.call(message, "visibility"))
|
|
8135
|
+
$root.vertexvis.protobuf.stream.VisibilityQuery.encode(message.visibility, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
7938
8136
|
return writer;
|
|
7939
8137
|
};
|
|
7940
8138
|
|
|
@@ -7972,6 +8170,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
7972
8170
|
case 1:
|
|
7973
8171
|
message.selection = $root.vertexvis.protobuf.stream.SelectionQuery.decode(reader, reader.uint32());
|
|
7974
8172
|
break;
|
|
8173
|
+
case 2:
|
|
8174
|
+
message.visibility = $root.vertexvis.protobuf.stream.VisibilityQuery.decode(reader, reader.uint32());
|
|
8175
|
+
break;
|
|
7975
8176
|
default:
|
|
7976
8177
|
reader.skipType(tag & 7);
|
|
7977
8178
|
break;
|
|
@@ -8007,13 +8208,25 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8007
8208
|
OverrideQuery.verify = function verify(message) {
|
|
8008
8209
|
if (typeof message !== "object" || message === null)
|
|
8009
8210
|
return "object expected";
|
|
8211
|
+
let properties = {};
|
|
8010
8212
|
if (message.selection != null && message.hasOwnProperty("selection")) {
|
|
8213
|
+
properties.override = 1;
|
|
8011
8214
|
{
|
|
8012
8215
|
let error = $root.vertexvis.protobuf.stream.SelectionQuery.verify(message.selection);
|
|
8013
8216
|
if (error)
|
|
8014
8217
|
return "selection." + error;
|
|
8015
8218
|
}
|
|
8016
8219
|
}
|
|
8220
|
+
if (message.visibility != null && message.hasOwnProperty("visibility")) {
|
|
8221
|
+
if (properties.override === 1)
|
|
8222
|
+
return "override: multiple values";
|
|
8223
|
+
properties.override = 1;
|
|
8224
|
+
{
|
|
8225
|
+
let error = $root.vertexvis.protobuf.stream.VisibilityQuery.verify(message.visibility);
|
|
8226
|
+
if (error)
|
|
8227
|
+
return "visibility." + error;
|
|
8228
|
+
}
|
|
8229
|
+
}
|
|
8017
8230
|
return null;
|
|
8018
8231
|
};
|
|
8019
8232
|
|
|
@@ -8034,6 +8247,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8034
8247
|
throw TypeError(".vertexvis.protobuf.stream.OverrideQuery.selection: object expected");
|
|
8035
8248
|
message.selection = $root.vertexvis.protobuf.stream.SelectionQuery.fromObject(object.selection);
|
|
8036
8249
|
}
|
|
8250
|
+
if (object.visibility != null) {
|
|
8251
|
+
if (typeof object.visibility !== "object")
|
|
8252
|
+
throw TypeError(".vertexvis.protobuf.stream.OverrideQuery.visibility: object expected");
|
|
8253
|
+
message.visibility = $root.vertexvis.protobuf.stream.VisibilityQuery.fromObject(object.visibility);
|
|
8254
|
+
}
|
|
8037
8255
|
return message;
|
|
8038
8256
|
};
|
|
8039
8257
|
|
|
@@ -8055,6 +8273,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8055
8273
|
if (options.oneofs)
|
|
8056
8274
|
object.override = "selection";
|
|
8057
8275
|
}
|
|
8276
|
+
if (message.visibility != null && message.hasOwnProperty("visibility")) {
|
|
8277
|
+
object.visibility = $root.vertexvis.protobuf.stream.VisibilityQuery.toObject(message.visibility, options);
|
|
8278
|
+
if (options.oneofs)
|
|
8279
|
+
object.override = "visibility";
|
|
8280
|
+
}
|
|
8058
8281
|
return object;
|
|
8059
8282
|
};
|
|
8060
8283
|
|