@vertexvis/stream-api 0.24.3-canary.8 → 0.24.3-canary.9
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 +242 -0
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +242 -0
- package/dist/bundle.esm.js.map +1 -1
- package/package.json +5 -5
package/dist/bundle.esm.js
CHANGED
|
@@ -18361,6 +18361,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18361
18361
|
* @property {vertexvis.protobuf.stream.IPhantomAttributes|null} [phantomItems] StreamAttributes phantomItems
|
|
18362
18362
|
* @property {vertexvis.protobuf.stream.IFrameAttributes|null} [frames] StreamAttributes frames
|
|
18363
18363
|
* @property {vertexvis.protobuf.stream.ISceneComparisonAttributes|null} [sceneComparison] StreamAttributes sceneComparison
|
|
18364
|
+
* @property {vertexvis.protobuf.stream.ICrossSectioningAttributes|null} [crossSectioningAttributes] StreamAttributes crossSectioningAttributes
|
|
18364
18365
|
*/
|
|
18365
18366
|
|
|
18366
18367
|
/**
|
|
@@ -18458,6 +18459,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18458
18459
|
*/
|
|
18459
18460
|
StreamAttributes.prototype.sceneComparison = null;
|
|
18460
18461
|
|
|
18462
|
+
/**
|
|
18463
|
+
* StreamAttributes crossSectioningAttributes.
|
|
18464
|
+
* @member {vertexvis.protobuf.stream.ICrossSectioningAttributes|null|undefined} crossSectioningAttributes
|
|
18465
|
+
* @memberof vertexvis.protobuf.stream.StreamAttributes
|
|
18466
|
+
* @instance
|
|
18467
|
+
*/
|
|
18468
|
+
StreamAttributes.prototype.crossSectioningAttributes = null;
|
|
18469
|
+
|
|
18461
18470
|
/**
|
|
18462
18471
|
* Creates a new StreamAttributes instance using the specified properties.
|
|
18463
18472
|
* @function create
|
|
@@ -18502,6 +18511,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18502
18511
|
$root.vertexvis.protobuf.stream.FrameAttributes.encode(message.frames, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
18503
18512
|
if (message.sceneComparison != null && Object.hasOwnProperty.call(message, "sceneComparison"))
|
|
18504
18513
|
$root.vertexvis.protobuf.stream.SceneComparisonAttributes.encode(message.sceneComparison, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
18514
|
+
if (message.crossSectioningAttributes != null && Object.hasOwnProperty.call(message, "crossSectioningAttributes"))
|
|
18515
|
+
$root.vertexvis.protobuf.stream.CrossSectioningAttributes.encode(message.crossSectioningAttributes, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
18505
18516
|
return writer;
|
|
18506
18517
|
};
|
|
18507
18518
|
|
|
@@ -18566,6 +18577,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18566
18577
|
case 11:
|
|
18567
18578
|
message.sceneComparison = $root.vertexvis.protobuf.stream.SceneComparisonAttributes.decode(reader, reader.uint32());
|
|
18568
18579
|
break;
|
|
18580
|
+
case 12:
|
|
18581
|
+
message.crossSectioningAttributes = $root.vertexvis.protobuf.stream.CrossSectioningAttributes.decode(reader, reader.uint32());
|
|
18582
|
+
break;
|
|
18569
18583
|
default:
|
|
18570
18584
|
reader.skipType(tag & 7);
|
|
18571
18585
|
break;
|
|
@@ -18647,6 +18661,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18647
18661
|
if (error)
|
|
18648
18662
|
return "sceneComparison." + error;
|
|
18649
18663
|
}
|
|
18664
|
+
if (message.crossSectioningAttributes != null && message.hasOwnProperty("crossSectioningAttributes")) {
|
|
18665
|
+
let error = $root.vertexvis.protobuf.stream.CrossSectioningAttributes.verify(message.crossSectioningAttributes);
|
|
18666
|
+
if (error)
|
|
18667
|
+
return "crossSectioningAttributes." + error;
|
|
18668
|
+
}
|
|
18650
18669
|
return null;
|
|
18651
18670
|
};
|
|
18652
18671
|
|
|
@@ -18706,6 +18725,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18706
18725
|
throw TypeError(".vertexvis.protobuf.stream.StreamAttributes.sceneComparison: object expected");
|
|
18707
18726
|
message.sceneComparison = $root.vertexvis.protobuf.stream.SceneComparisonAttributes.fromObject(object.sceneComparison);
|
|
18708
18727
|
}
|
|
18728
|
+
if (object.crossSectioningAttributes != null) {
|
|
18729
|
+
if (typeof object.crossSectioningAttributes !== "object")
|
|
18730
|
+
throw TypeError(".vertexvis.protobuf.stream.StreamAttributes.crossSectioningAttributes: object expected");
|
|
18731
|
+
message.crossSectioningAttributes = $root.vertexvis.protobuf.stream.CrossSectioningAttributes.fromObject(object.crossSectioningAttributes);
|
|
18732
|
+
}
|
|
18709
18733
|
return message;
|
|
18710
18734
|
};
|
|
18711
18735
|
|
|
@@ -18733,6 +18757,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18733
18757
|
object.phantomItems = null;
|
|
18734
18758
|
object.frames = null;
|
|
18735
18759
|
object.sceneComparison = null;
|
|
18760
|
+
object.crossSectioningAttributes = null;
|
|
18736
18761
|
}
|
|
18737
18762
|
if (message.depthBuffers != null && message.hasOwnProperty("depthBuffers"))
|
|
18738
18763
|
object.depthBuffers = $root.vertexvis.protobuf.stream.DepthBufferAttributes.toObject(message.depthBuffers, options);
|
|
@@ -18754,6 +18779,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18754
18779
|
object.frames = $root.vertexvis.protobuf.stream.FrameAttributes.toObject(message.frames, options);
|
|
18755
18780
|
if (message.sceneComparison != null && message.hasOwnProperty("sceneComparison"))
|
|
18756
18781
|
object.sceneComparison = $root.vertexvis.protobuf.stream.SceneComparisonAttributes.toObject(message.sceneComparison, options);
|
|
18782
|
+
if (message.crossSectioningAttributes != null && message.hasOwnProperty("crossSectioningAttributes"))
|
|
18783
|
+
object.crossSectioningAttributes = $root.vertexvis.protobuf.stream.CrossSectioningAttributes.toObject(message.crossSectioningAttributes, options);
|
|
18757
18784
|
return object;
|
|
18758
18785
|
};
|
|
18759
18786
|
|
|
@@ -19823,6 +19850,221 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
19823
19850
|
return SceneComparisonAttributes;
|
|
19824
19851
|
})();
|
|
19825
19852
|
|
|
19853
|
+
stream.CrossSectioningAttributes = (function() {
|
|
19854
|
+
|
|
19855
|
+
/**
|
|
19856
|
+
* Properties of a CrossSectioningAttributes.
|
|
19857
|
+
* @memberof vertexvis.protobuf.stream
|
|
19858
|
+
* @interface ICrossSectioningAttributes
|
|
19859
|
+
* @property {boolean|null} [endCapEnabled] CrossSectioningAttributes endCapEnabled
|
|
19860
|
+
* @property {vertexvis.protobuf.core.IRGBi|null} [endCapColor] CrossSectioningAttributes endCapColor
|
|
19861
|
+
*/
|
|
19862
|
+
|
|
19863
|
+
/**
|
|
19864
|
+
* Constructs a new CrossSectioningAttributes.
|
|
19865
|
+
* @memberof vertexvis.protobuf.stream
|
|
19866
|
+
* @classdesc Represents a CrossSectioningAttributes.
|
|
19867
|
+
* @implements ICrossSectioningAttributes
|
|
19868
|
+
* @constructor
|
|
19869
|
+
* @param {vertexvis.protobuf.stream.ICrossSectioningAttributes=} [properties] Properties to set
|
|
19870
|
+
*/
|
|
19871
|
+
function CrossSectioningAttributes(properties) {
|
|
19872
|
+
if (properties)
|
|
19873
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19874
|
+
if (properties[keys[i]] != null)
|
|
19875
|
+
this[keys[i]] = properties[keys[i]];
|
|
19876
|
+
}
|
|
19877
|
+
|
|
19878
|
+
/**
|
|
19879
|
+
* CrossSectioningAttributes endCapEnabled.
|
|
19880
|
+
* @member {boolean} endCapEnabled
|
|
19881
|
+
* @memberof vertexvis.protobuf.stream.CrossSectioningAttributes
|
|
19882
|
+
* @instance
|
|
19883
|
+
*/
|
|
19884
|
+
CrossSectioningAttributes.prototype.endCapEnabled = false;
|
|
19885
|
+
|
|
19886
|
+
/**
|
|
19887
|
+
* CrossSectioningAttributes endCapColor.
|
|
19888
|
+
* @member {vertexvis.protobuf.core.IRGBi|null|undefined} endCapColor
|
|
19889
|
+
* @memberof vertexvis.protobuf.stream.CrossSectioningAttributes
|
|
19890
|
+
* @instance
|
|
19891
|
+
*/
|
|
19892
|
+
CrossSectioningAttributes.prototype.endCapColor = null;
|
|
19893
|
+
|
|
19894
|
+
/**
|
|
19895
|
+
* Creates a new CrossSectioningAttributes instance using the specified properties.
|
|
19896
|
+
* @function create
|
|
19897
|
+
* @memberof vertexvis.protobuf.stream.CrossSectioningAttributes
|
|
19898
|
+
* @static
|
|
19899
|
+
* @param {vertexvis.protobuf.stream.ICrossSectioningAttributes=} [properties] Properties to set
|
|
19900
|
+
* @returns {vertexvis.protobuf.stream.CrossSectioningAttributes} CrossSectioningAttributes instance
|
|
19901
|
+
*/
|
|
19902
|
+
CrossSectioningAttributes.create = function create(properties) {
|
|
19903
|
+
return new CrossSectioningAttributes(properties);
|
|
19904
|
+
};
|
|
19905
|
+
|
|
19906
|
+
/**
|
|
19907
|
+
* Encodes the specified CrossSectioningAttributes message. Does not implicitly {@link vertexvis.protobuf.stream.CrossSectioningAttributes.verify|verify} messages.
|
|
19908
|
+
* @function encode
|
|
19909
|
+
* @memberof vertexvis.protobuf.stream.CrossSectioningAttributes
|
|
19910
|
+
* @static
|
|
19911
|
+
* @param {vertexvis.protobuf.stream.ICrossSectioningAttributes} message CrossSectioningAttributes message or plain object to encode
|
|
19912
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19913
|
+
* @returns {$protobuf.Writer} Writer
|
|
19914
|
+
*/
|
|
19915
|
+
CrossSectioningAttributes.encode = function encode(message, writer) {
|
|
19916
|
+
if (!writer)
|
|
19917
|
+
writer = $Writer.create();
|
|
19918
|
+
if (message.endCapEnabled != null && Object.hasOwnProperty.call(message, "endCapEnabled"))
|
|
19919
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.endCapEnabled);
|
|
19920
|
+
if (message.endCapColor != null && Object.hasOwnProperty.call(message, "endCapColor"))
|
|
19921
|
+
$root.vertexvis.protobuf.core.RGBi.encode(message.endCapColor, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
19922
|
+
return writer;
|
|
19923
|
+
};
|
|
19924
|
+
|
|
19925
|
+
/**
|
|
19926
|
+
* Encodes the specified CrossSectioningAttributes message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.CrossSectioningAttributes.verify|verify} messages.
|
|
19927
|
+
* @function encodeDelimited
|
|
19928
|
+
* @memberof vertexvis.protobuf.stream.CrossSectioningAttributes
|
|
19929
|
+
* @static
|
|
19930
|
+
* @param {vertexvis.protobuf.stream.ICrossSectioningAttributes} message CrossSectioningAttributes message or plain object to encode
|
|
19931
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19932
|
+
* @returns {$protobuf.Writer} Writer
|
|
19933
|
+
*/
|
|
19934
|
+
CrossSectioningAttributes.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19935
|
+
return this.encode(message, writer).ldelim();
|
|
19936
|
+
};
|
|
19937
|
+
|
|
19938
|
+
/**
|
|
19939
|
+
* Decodes a CrossSectioningAttributes message from the specified reader or buffer.
|
|
19940
|
+
* @function decode
|
|
19941
|
+
* @memberof vertexvis.protobuf.stream.CrossSectioningAttributes
|
|
19942
|
+
* @static
|
|
19943
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19944
|
+
* @param {number} [length] Message length if known beforehand
|
|
19945
|
+
* @returns {vertexvis.protobuf.stream.CrossSectioningAttributes} CrossSectioningAttributes
|
|
19946
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19947
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19948
|
+
*/
|
|
19949
|
+
CrossSectioningAttributes.decode = function decode(reader, length) {
|
|
19950
|
+
if (!(reader instanceof $Reader))
|
|
19951
|
+
reader = $Reader.create(reader);
|
|
19952
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.CrossSectioningAttributes();
|
|
19953
|
+
while (reader.pos < end) {
|
|
19954
|
+
let tag = reader.uint32();
|
|
19955
|
+
switch (tag >>> 3) {
|
|
19956
|
+
case 1:
|
|
19957
|
+
message.endCapEnabled = reader.bool();
|
|
19958
|
+
break;
|
|
19959
|
+
case 2:
|
|
19960
|
+
message.endCapColor = $root.vertexvis.protobuf.core.RGBi.decode(reader, reader.uint32());
|
|
19961
|
+
break;
|
|
19962
|
+
default:
|
|
19963
|
+
reader.skipType(tag & 7);
|
|
19964
|
+
break;
|
|
19965
|
+
}
|
|
19966
|
+
}
|
|
19967
|
+
return message;
|
|
19968
|
+
};
|
|
19969
|
+
|
|
19970
|
+
/**
|
|
19971
|
+
* Decodes a CrossSectioningAttributes message from the specified reader or buffer, length delimited.
|
|
19972
|
+
* @function decodeDelimited
|
|
19973
|
+
* @memberof vertexvis.protobuf.stream.CrossSectioningAttributes
|
|
19974
|
+
* @static
|
|
19975
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19976
|
+
* @returns {vertexvis.protobuf.stream.CrossSectioningAttributes} CrossSectioningAttributes
|
|
19977
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19978
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19979
|
+
*/
|
|
19980
|
+
CrossSectioningAttributes.decodeDelimited = function decodeDelimited(reader) {
|
|
19981
|
+
if (!(reader instanceof $Reader))
|
|
19982
|
+
reader = new $Reader(reader);
|
|
19983
|
+
return this.decode(reader, reader.uint32());
|
|
19984
|
+
};
|
|
19985
|
+
|
|
19986
|
+
/**
|
|
19987
|
+
* Verifies a CrossSectioningAttributes message.
|
|
19988
|
+
* @function verify
|
|
19989
|
+
* @memberof vertexvis.protobuf.stream.CrossSectioningAttributes
|
|
19990
|
+
* @static
|
|
19991
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
19992
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
19993
|
+
*/
|
|
19994
|
+
CrossSectioningAttributes.verify = function verify(message) {
|
|
19995
|
+
if (typeof message !== "object" || message === null)
|
|
19996
|
+
return "object expected";
|
|
19997
|
+
if (message.endCapEnabled != null && message.hasOwnProperty("endCapEnabled"))
|
|
19998
|
+
if (typeof message.endCapEnabled !== "boolean")
|
|
19999
|
+
return "endCapEnabled: boolean expected";
|
|
20000
|
+
if (message.endCapColor != null && message.hasOwnProperty("endCapColor")) {
|
|
20001
|
+
let error = $root.vertexvis.protobuf.core.RGBi.verify(message.endCapColor);
|
|
20002
|
+
if (error)
|
|
20003
|
+
return "endCapColor." + error;
|
|
20004
|
+
}
|
|
20005
|
+
return null;
|
|
20006
|
+
};
|
|
20007
|
+
|
|
20008
|
+
/**
|
|
20009
|
+
* Creates a CrossSectioningAttributes message from a plain object. Also converts values to their respective internal types.
|
|
20010
|
+
* @function fromObject
|
|
20011
|
+
* @memberof vertexvis.protobuf.stream.CrossSectioningAttributes
|
|
20012
|
+
* @static
|
|
20013
|
+
* @param {Object.<string,*>} object Plain object
|
|
20014
|
+
* @returns {vertexvis.protobuf.stream.CrossSectioningAttributes} CrossSectioningAttributes
|
|
20015
|
+
*/
|
|
20016
|
+
CrossSectioningAttributes.fromObject = function fromObject(object) {
|
|
20017
|
+
if (object instanceof $root.vertexvis.protobuf.stream.CrossSectioningAttributes)
|
|
20018
|
+
return object;
|
|
20019
|
+
let message = new $root.vertexvis.protobuf.stream.CrossSectioningAttributes();
|
|
20020
|
+
if (object.endCapEnabled != null)
|
|
20021
|
+
message.endCapEnabled = Boolean(object.endCapEnabled);
|
|
20022
|
+
if (object.endCapColor != null) {
|
|
20023
|
+
if (typeof object.endCapColor !== "object")
|
|
20024
|
+
throw TypeError(".vertexvis.protobuf.stream.CrossSectioningAttributes.endCapColor: object expected");
|
|
20025
|
+
message.endCapColor = $root.vertexvis.protobuf.core.RGBi.fromObject(object.endCapColor);
|
|
20026
|
+
}
|
|
20027
|
+
return message;
|
|
20028
|
+
};
|
|
20029
|
+
|
|
20030
|
+
/**
|
|
20031
|
+
* Creates a plain object from a CrossSectioningAttributes message. Also converts values to other types if specified.
|
|
20032
|
+
* @function toObject
|
|
20033
|
+
* @memberof vertexvis.protobuf.stream.CrossSectioningAttributes
|
|
20034
|
+
* @static
|
|
20035
|
+
* @param {vertexvis.protobuf.stream.CrossSectioningAttributes} message CrossSectioningAttributes
|
|
20036
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
20037
|
+
* @returns {Object.<string,*>} Plain object
|
|
20038
|
+
*/
|
|
20039
|
+
CrossSectioningAttributes.toObject = function toObject(message, options) {
|
|
20040
|
+
if (!options)
|
|
20041
|
+
options = {};
|
|
20042
|
+
let object = {};
|
|
20043
|
+
if (options.defaults) {
|
|
20044
|
+
object.endCapEnabled = false;
|
|
20045
|
+
object.endCapColor = null;
|
|
20046
|
+
}
|
|
20047
|
+
if (message.endCapEnabled != null && message.hasOwnProperty("endCapEnabled"))
|
|
20048
|
+
object.endCapEnabled = message.endCapEnabled;
|
|
20049
|
+
if (message.endCapColor != null && message.hasOwnProperty("endCapColor"))
|
|
20050
|
+
object.endCapColor = $root.vertexvis.protobuf.core.RGBi.toObject(message.endCapColor, options);
|
|
20051
|
+
return object;
|
|
20052
|
+
};
|
|
20053
|
+
|
|
20054
|
+
/**
|
|
20055
|
+
* Converts this CrossSectioningAttributes to JSON.
|
|
20056
|
+
* @function toJSON
|
|
20057
|
+
* @memberof vertexvis.protobuf.stream.CrossSectioningAttributes
|
|
20058
|
+
* @instance
|
|
20059
|
+
* @returns {Object.<string,*>} JSON object
|
|
20060
|
+
*/
|
|
20061
|
+
CrossSectioningAttributes.prototype.toJSON = function toJSON() {
|
|
20062
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
20063
|
+
};
|
|
20064
|
+
|
|
20065
|
+
return CrossSectioningAttributes;
|
|
20066
|
+
})();
|
|
20067
|
+
|
|
19826
20068
|
stream.FrameAttributes = (function() {
|
|
19827
20069
|
|
|
19828
20070
|
/**
|