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