@vertexvis/stream-api 0.15.0-canary.9 → 0.15.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 +223 -2
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +223 -2
- package/dist/bundle.esm.js.map +1 -1
- package/package.json +5 -5
package/dist/bundle.cjs.js
CHANGED
|
@@ -7689,6 +7689,193 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
7689
7689
|
return ChangeSelectionOperation;
|
|
7690
7690
|
})();
|
|
7691
7691
|
|
|
7692
|
+
stream.ClearTransformOperation = (function() {
|
|
7693
|
+
|
|
7694
|
+
/**
|
|
7695
|
+
* Properties of a ClearTransformOperation.
|
|
7696
|
+
* @memberof vertexvis.protobuf.stream
|
|
7697
|
+
* @interface IClearTransformOperation
|
|
7698
|
+
* @property {boolean|null} [cascade] ClearTransformOperation cascade
|
|
7699
|
+
*/
|
|
7700
|
+
|
|
7701
|
+
/**
|
|
7702
|
+
* Constructs a new ClearTransformOperation.
|
|
7703
|
+
* @memberof vertexvis.protobuf.stream
|
|
7704
|
+
* @classdesc Represents a ClearTransformOperation.
|
|
7705
|
+
* @implements IClearTransformOperation
|
|
7706
|
+
* @constructor
|
|
7707
|
+
* @param {vertexvis.protobuf.stream.IClearTransformOperation=} [properties] Properties to set
|
|
7708
|
+
*/
|
|
7709
|
+
function ClearTransformOperation(properties) {
|
|
7710
|
+
if (properties)
|
|
7711
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
7712
|
+
if (properties[keys[i]] != null)
|
|
7713
|
+
this[keys[i]] = properties[keys[i]];
|
|
7714
|
+
}
|
|
7715
|
+
|
|
7716
|
+
/**
|
|
7717
|
+
* ClearTransformOperation cascade.
|
|
7718
|
+
* @member {boolean} cascade
|
|
7719
|
+
* @memberof vertexvis.protobuf.stream.ClearTransformOperation
|
|
7720
|
+
* @instance
|
|
7721
|
+
*/
|
|
7722
|
+
ClearTransformOperation.prototype.cascade = false;
|
|
7723
|
+
|
|
7724
|
+
/**
|
|
7725
|
+
* Creates a new ClearTransformOperation instance using the specified properties.
|
|
7726
|
+
* @function create
|
|
7727
|
+
* @memberof vertexvis.protobuf.stream.ClearTransformOperation
|
|
7728
|
+
* @static
|
|
7729
|
+
* @param {vertexvis.protobuf.stream.IClearTransformOperation=} [properties] Properties to set
|
|
7730
|
+
* @returns {vertexvis.protobuf.stream.ClearTransformOperation} ClearTransformOperation instance
|
|
7731
|
+
*/
|
|
7732
|
+
ClearTransformOperation.create = function create(properties) {
|
|
7733
|
+
return new ClearTransformOperation(properties);
|
|
7734
|
+
};
|
|
7735
|
+
|
|
7736
|
+
/**
|
|
7737
|
+
* Encodes the specified ClearTransformOperation message. Does not implicitly {@link vertexvis.protobuf.stream.ClearTransformOperation.verify|verify} messages.
|
|
7738
|
+
* @function encode
|
|
7739
|
+
* @memberof vertexvis.protobuf.stream.ClearTransformOperation
|
|
7740
|
+
* @static
|
|
7741
|
+
* @param {vertexvis.protobuf.stream.IClearTransformOperation} message ClearTransformOperation message or plain object to encode
|
|
7742
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7743
|
+
* @returns {$protobuf.Writer} Writer
|
|
7744
|
+
*/
|
|
7745
|
+
ClearTransformOperation.encode = function encode(message, writer) {
|
|
7746
|
+
if (!writer)
|
|
7747
|
+
writer = $Writer.create();
|
|
7748
|
+
if (message.cascade != null && Object.hasOwnProperty.call(message, "cascade"))
|
|
7749
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.cascade);
|
|
7750
|
+
return writer;
|
|
7751
|
+
};
|
|
7752
|
+
|
|
7753
|
+
/**
|
|
7754
|
+
* Encodes the specified ClearTransformOperation message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.ClearTransformOperation.verify|verify} messages.
|
|
7755
|
+
* @function encodeDelimited
|
|
7756
|
+
* @memberof vertexvis.protobuf.stream.ClearTransformOperation
|
|
7757
|
+
* @static
|
|
7758
|
+
* @param {vertexvis.protobuf.stream.IClearTransformOperation} message ClearTransformOperation message or plain object to encode
|
|
7759
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7760
|
+
* @returns {$protobuf.Writer} Writer
|
|
7761
|
+
*/
|
|
7762
|
+
ClearTransformOperation.encodeDelimited = function encodeDelimited(message, writer) {
|
|
7763
|
+
return this.encode(message, writer).ldelim();
|
|
7764
|
+
};
|
|
7765
|
+
|
|
7766
|
+
/**
|
|
7767
|
+
* Decodes a ClearTransformOperation message from the specified reader or buffer.
|
|
7768
|
+
* @function decode
|
|
7769
|
+
* @memberof vertexvis.protobuf.stream.ClearTransformOperation
|
|
7770
|
+
* @static
|
|
7771
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7772
|
+
* @param {number} [length] Message length if known beforehand
|
|
7773
|
+
* @returns {vertexvis.protobuf.stream.ClearTransformOperation} ClearTransformOperation
|
|
7774
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7775
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7776
|
+
*/
|
|
7777
|
+
ClearTransformOperation.decode = function decode(reader, length) {
|
|
7778
|
+
if (!(reader instanceof $Reader))
|
|
7779
|
+
reader = $Reader.create(reader);
|
|
7780
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.ClearTransformOperation();
|
|
7781
|
+
while (reader.pos < end) {
|
|
7782
|
+
let tag = reader.uint32();
|
|
7783
|
+
switch (tag >>> 3) {
|
|
7784
|
+
case 1:
|
|
7785
|
+
message.cascade = reader.bool();
|
|
7786
|
+
break;
|
|
7787
|
+
default:
|
|
7788
|
+
reader.skipType(tag & 7);
|
|
7789
|
+
break;
|
|
7790
|
+
}
|
|
7791
|
+
}
|
|
7792
|
+
return message;
|
|
7793
|
+
};
|
|
7794
|
+
|
|
7795
|
+
/**
|
|
7796
|
+
* Decodes a ClearTransformOperation message from the specified reader or buffer, length delimited.
|
|
7797
|
+
* @function decodeDelimited
|
|
7798
|
+
* @memberof vertexvis.protobuf.stream.ClearTransformOperation
|
|
7799
|
+
* @static
|
|
7800
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7801
|
+
* @returns {vertexvis.protobuf.stream.ClearTransformOperation} ClearTransformOperation
|
|
7802
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7803
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7804
|
+
*/
|
|
7805
|
+
ClearTransformOperation.decodeDelimited = function decodeDelimited(reader) {
|
|
7806
|
+
if (!(reader instanceof $Reader))
|
|
7807
|
+
reader = new $Reader(reader);
|
|
7808
|
+
return this.decode(reader, reader.uint32());
|
|
7809
|
+
};
|
|
7810
|
+
|
|
7811
|
+
/**
|
|
7812
|
+
* Verifies a ClearTransformOperation message.
|
|
7813
|
+
* @function verify
|
|
7814
|
+
* @memberof vertexvis.protobuf.stream.ClearTransformOperation
|
|
7815
|
+
* @static
|
|
7816
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
7817
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
7818
|
+
*/
|
|
7819
|
+
ClearTransformOperation.verify = function verify(message) {
|
|
7820
|
+
if (typeof message !== "object" || message === null)
|
|
7821
|
+
return "object expected";
|
|
7822
|
+
if (message.cascade != null && message.hasOwnProperty("cascade"))
|
|
7823
|
+
if (typeof message.cascade !== "boolean")
|
|
7824
|
+
return "cascade: boolean expected";
|
|
7825
|
+
return null;
|
|
7826
|
+
};
|
|
7827
|
+
|
|
7828
|
+
/**
|
|
7829
|
+
* Creates a ClearTransformOperation message from a plain object. Also converts values to their respective internal types.
|
|
7830
|
+
* @function fromObject
|
|
7831
|
+
* @memberof vertexvis.protobuf.stream.ClearTransformOperation
|
|
7832
|
+
* @static
|
|
7833
|
+
* @param {Object.<string,*>} object Plain object
|
|
7834
|
+
* @returns {vertexvis.protobuf.stream.ClearTransformOperation} ClearTransformOperation
|
|
7835
|
+
*/
|
|
7836
|
+
ClearTransformOperation.fromObject = function fromObject(object) {
|
|
7837
|
+
if (object instanceof $root.vertexvis.protobuf.stream.ClearTransformOperation)
|
|
7838
|
+
return object;
|
|
7839
|
+
let message = new $root.vertexvis.protobuf.stream.ClearTransformOperation();
|
|
7840
|
+
if (object.cascade != null)
|
|
7841
|
+
message.cascade = Boolean(object.cascade);
|
|
7842
|
+
return message;
|
|
7843
|
+
};
|
|
7844
|
+
|
|
7845
|
+
/**
|
|
7846
|
+
* Creates a plain object from a ClearTransformOperation message. Also converts values to other types if specified.
|
|
7847
|
+
* @function toObject
|
|
7848
|
+
* @memberof vertexvis.protobuf.stream.ClearTransformOperation
|
|
7849
|
+
* @static
|
|
7850
|
+
* @param {vertexvis.protobuf.stream.ClearTransformOperation} message ClearTransformOperation
|
|
7851
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
7852
|
+
* @returns {Object.<string,*>} Plain object
|
|
7853
|
+
*/
|
|
7854
|
+
ClearTransformOperation.toObject = function toObject(message, options) {
|
|
7855
|
+
if (!options)
|
|
7856
|
+
options = {};
|
|
7857
|
+
let object = {};
|
|
7858
|
+
if (options.defaults)
|
|
7859
|
+
object.cascade = false;
|
|
7860
|
+
if (message.cascade != null && message.hasOwnProperty("cascade"))
|
|
7861
|
+
object.cascade = message.cascade;
|
|
7862
|
+
return object;
|
|
7863
|
+
};
|
|
7864
|
+
|
|
7865
|
+
/**
|
|
7866
|
+
* Converts this ClearTransformOperation to JSON.
|
|
7867
|
+
* @function toJSON
|
|
7868
|
+
* @memberof vertexvis.protobuf.stream.ClearTransformOperation
|
|
7869
|
+
* @instance
|
|
7870
|
+
* @returns {Object.<string,*>} JSON object
|
|
7871
|
+
*/
|
|
7872
|
+
ClearTransformOperation.prototype.toJSON = function toJSON() {
|
|
7873
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
7874
|
+
};
|
|
7875
|
+
|
|
7876
|
+
return ClearTransformOperation;
|
|
7877
|
+
})();
|
|
7878
|
+
|
|
7692
7879
|
stream.OperationType = (function() {
|
|
7693
7880
|
|
|
7694
7881
|
/**
|
|
@@ -7699,6 +7886,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
7699
7886
|
* @property {vertexvis.protobuf.stream.IChangeVisibilityOperation|null} [changeVisibility] OperationType changeVisibility
|
|
7700
7887
|
* @property {vertexvis.protobuf.stream.IChangeTransformOperation|null} [changeTransform] OperationType changeTransform
|
|
7701
7888
|
* @property {vertexvis.protobuf.stream.IChangeSelectionOperation|null} [changeSelection] OperationType changeSelection
|
|
7889
|
+
* @property {vertexvis.protobuf.stream.IClearTransformOperation|null} [clearTransform] OperationType clearTransform
|
|
7702
7890
|
*/
|
|
7703
7891
|
|
|
7704
7892
|
/**
|
|
@@ -7748,17 +7936,25 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
7748
7936
|
*/
|
|
7749
7937
|
OperationType.prototype.changeSelection = null;
|
|
7750
7938
|
|
|
7939
|
+
/**
|
|
7940
|
+
* OperationType clearTransform.
|
|
7941
|
+
* @member {vertexvis.protobuf.stream.IClearTransformOperation|null|undefined} clearTransform
|
|
7942
|
+
* @memberof vertexvis.protobuf.stream.OperationType
|
|
7943
|
+
* @instance
|
|
7944
|
+
*/
|
|
7945
|
+
OperationType.prototype.clearTransform = null;
|
|
7946
|
+
|
|
7751
7947
|
// OneOf field names bound to virtual getters and setters
|
|
7752
7948
|
let $oneOfFields;
|
|
7753
7949
|
|
|
7754
7950
|
/**
|
|
7755
7951
|
* OperationType value.
|
|
7756
|
-
* @member {"changeMaterial"|"changeVisibility"|"changeTransform"|"changeSelection"|undefined} value
|
|
7952
|
+
* @member {"changeMaterial"|"changeVisibility"|"changeTransform"|"changeSelection"|"clearTransform"|undefined} value
|
|
7757
7953
|
* @memberof vertexvis.protobuf.stream.OperationType
|
|
7758
7954
|
* @instance
|
|
7759
7955
|
*/
|
|
7760
7956
|
Object.defineProperty(OperationType.prototype, "value", {
|
|
7761
|
-
get: $util.oneOfGetter($oneOfFields = ["changeMaterial", "changeVisibility", "changeTransform", "changeSelection"]),
|
|
7957
|
+
get: $util.oneOfGetter($oneOfFields = ["changeMaterial", "changeVisibility", "changeTransform", "changeSelection", "clearTransform"]),
|
|
7762
7958
|
set: $util.oneOfSetter($oneOfFields)
|
|
7763
7959
|
});
|
|
7764
7960
|
|
|
@@ -7794,6 +7990,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
7794
7990
|
$root.vertexvis.protobuf.stream.ChangeTransformOperation.encode(message.changeTransform, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
7795
7991
|
if (message.changeSelection != null && Object.hasOwnProperty.call(message, "changeSelection"))
|
|
7796
7992
|
$root.vertexvis.protobuf.stream.ChangeSelectionOperation.encode(message.changeSelection, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
7993
|
+
if (message.clearTransform != null && Object.hasOwnProperty.call(message, "clearTransform"))
|
|
7994
|
+
$root.vertexvis.protobuf.stream.ClearTransformOperation.encode(message.clearTransform, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
7797
7995
|
return writer;
|
|
7798
7996
|
};
|
|
7799
7997
|
|
|
@@ -7840,6 +8038,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
7840
8038
|
case 4:
|
|
7841
8039
|
message.changeSelection = $root.vertexvis.protobuf.stream.ChangeSelectionOperation.decode(reader, reader.uint32());
|
|
7842
8040
|
break;
|
|
8041
|
+
case 5:
|
|
8042
|
+
message.clearTransform = $root.vertexvis.protobuf.stream.ClearTransformOperation.decode(reader, reader.uint32());
|
|
8043
|
+
break;
|
|
7843
8044
|
default:
|
|
7844
8045
|
reader.skipType(tag & 7);
|
|
7845
8046
|
break;
|
|
@@ -7914,6 +8115,16 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
7914
8115
|
return "changeSelection." + error;
|
|
7915
8116
|
}
|
|
7916
8117
|
}
|
|
8118
|
+
if (message.clearTransform != null && message.hasOwnProperty("clearTransform")) {
|
|
8119
|
+
if (properties.value === 1)
|
|
8120
|
+
return "value: multiple values";
|
|
8121
|
+
properties.value = 1;
|
|
8122
|
+
{
|
|
8123
|
+
let error = $root.vertexvis.protobuf.stream.ClearTransformOperation.verify(message.clearTransform);
|
|
8124
|
+
if (error)
|
|
8125
|
+
return "clearTransform." + error;
|
|
8126
|
+
}
|
|
8127
|
+
}
|
|
7917
8128
|
return null;
|
|
7918
8129
|
};
|
|
7919
8130
|
|
|
@@ -7949,6 +8160,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
7949
8160
|
throw TypeError(".vertexvis.protobuf.stream.OperationType.changeSelection: object expected");
|
|
7950
8161
|
message.changeSelection = $root.vertexvis.protobuf.stream.ChangeSelectionOperation.fromObject(object.changeSelection);
|
|
7951
8162
|
}
|
|
8163
|
+
if (object.clearTransform != null) {
|
|
8164
|
+
if (typeof object.clearTransform !== "object")
|
|
8165
|
+
throw TypeError(".vertexvis.protobuf.stream.OperationType.clearTransform: object expected");
|
|
8166
|
+
message.clearTransform = $root.vertexvis.protobuf.stream.ClearTransformOperation.fromObject(object.clearTransform);
|
|
8167
|
+
}
|
|
7952
8168
|
return message;
|
|
7953
8169
|
};
|
|
7954
8170
|
|
|
@@ -7985,6 +8201,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
7985
8201
|
if (options.oneofs)
|
|
7986
8202
|
object.value = "changeSelection";
|
|
7987
8203
|
}
|
|
8204
|
+
if (message.clearTransform != null && message.hasOwnProperty("clearTransform")) {
|
|
8205
|
+
object.clearTransform = $root.vertexvis.protobuf.stream.ClearTransformOperation.toObject(message.clearTransform, options);
|
|
8206
|
+
if (options.oneofs)
|
|
8207
|
+
object.value = "clearTransform";
|
|
8208
|
+
}
|
|
7988
8209
|
return object;
|
|
7989
8210
|
};
|
|
7990
8211
|
|