@vertexvis/viewer 0.10.2-canary.8 → 0.10.2-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/cjs/index.cjs.js +1 -1
- package/dist/cjs/{scene-23a0a330.js → scene-a10dd7f2.js} +0 -313
- package/dist/cjs/vertex-viewer.cjs.entry.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/{scene-30ac6229.js → scene-25ccceb5.js} +0 -313
- package/dist/esm/vertex-viewer.entry.js +1 -1
- package/dist/viewer/index.esm.js +1 -1
- package/dist/viewer/{p-a9434d8e.entry.js → p-456b3ffd.entry.js} +1 -1
- package/dist/viewer/p-a459061e.js +4 -0
- package/dist/viewer/viewer.esm.js +1 -1
- package/package.json +12 -12
- package/dist/viewer/p-964642c6.js +0 -4
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const scene = require('./scene-
|
|
8
|
+
const scene = require('./scene-a10dd7f2.js');
|
|
9
9
|
const cursors = require('./cursors-b93b43ef.js');
|
|
10
10
|
const orientation = require('./orientation-42cc9e8d.js');
|
|
11
11
|
const markup = require('./markup-8ce7d84f.js');
|
|
@@ -3855,7 +3855,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
3855
3855
|
* @property {vertexvis.protobuf.core.IUuid|null} [partRevisionId] Hit partRevisionId
|
|
3856
3856
|
* @property {vertexvis.protobuf.core.IUuid|null} [partId] Hit partId
|
|
3857
3857
|
* @property {google.protobuf.IStringValue|null} [suppliedPartRevisionId] Hit suppliedPartRevisionId
|
|
3858
|
-
* @property {vertexvis.protobuf.stream.IMetadata|null} [metadata] Hit metadata
|
|
3859
3858
|
* @property {Array.<vertexvis.protobuf.stream.IHitItemAncestor>|null} [ancestors] Hit ancestors
|
|
3860
3859
|
* @property {Array.<vertexvis.protobuf.stream.IMetadataProperty>|null} [metadataProperties] Hit metadataProperties
|
|
3861
3860
|
*/
|
|
@@ -3933,14 +3932,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
3933
3932
|
*/
|
|
3934
3933
|
Hit.prototype.suppliedPartRevisionId = null;
|
|
3935
3934
|
|
|
3936
|
-
/**
|
|
3937
|
-
* Hit metadata.
|
|
3938
|
-
* @member {vertexvis.protobuf.stream.IMetadata|null|undefined} metadata
|
|
3939
|
-
* @memberof vertexvis.protobuf.stream.Hit
|
|
3940
|
-
* @instance
|
|
3941
|
-
*/
|
|
3942
|
-
Hit.prototype.metadata = null;
|
|
3943
|
-
|
|
3944
3935
|
/**
|
|
3945
3936
|
* Hit ancestors.
|
|
3946
3937
|
* @member {Array.<vertexvis.protobuf.stream.IHitItemAncestor>} ancestors
|
|
@@ -3995,8 +3986,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
3995
3986
|
$root.vertexvis.protobuf.core.Uuid.encode(message.partId, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
3996
3987
|
if (message.suppliedPartRevisionId != null && Object.hasOwnProperty.call(message, "suppliedPartRevisionId"))
|
|
3997
3988
|
$root.google.protobuf.StringValue.encode(message.suppliedPartRevisionId, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
3998
|
-
if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
|
|
3999
|
-
$root.vertexvis.protobuf.stream.Metadata.encode(message.metadata, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
4000
3989
|
if (message.ancestors != null && message.ancestors.length)
|
|
4001
3990
|
for (let i = 0; i < message.ancestors.length; ++i)
|
|
4002
3991
|
$root.vertexvis.protobuf.stream.HitItemAncestor.encode(message.ancestors[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
@@ -4058,9 +4047,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
4058
4047
|
case 7:
|
|
4059
4048
|
message.suppliedPartRevisionId = $root.google.protobuf.StringValue.decode(reader, reader.uint32());
|
|
4060
4049
|
break;
|
|
4061
|
-
case 8:
|
|
4062
|
-
message.metadata = $root.vertexvis.protobuf.stream.Metadata.decode(reader, reader.uint32());
|
|
4063
|
-
break;
|
|
4064
4050
|
case 9:
|
|
4065
4051
|
if (!(message.ancestors && message.ancestors.length))
|
|
4066
4052
|
message.ancestors = [];
|
|
@@ -4141,11 +4127,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
4141
4127
|
if (error)
|
|
4142
4128
|
return "suppliedPartRevisionId." + error;
|
|
4143
4129
|
}
|
|
4144
|
-
if (message.metadata != null && message.hasOwnProperty("metadata")) {
|
|
4145
|
-
let error = $root.vertexvis.protobuf.stream.Metadata.verify(message.metadata);
|
|
4146
|
-
if (error)
|
|
4147
|
-
return "metadata." + error;
|
|
4148
|
-
}
|
|
4149
4130
|
if (message.ancestors != null && message.hasOwnProperty("ancestors")) {
|
|
4150
4131
|
if (!Array.isArray(message.ancestors))
|
|
4151
4132
|
return "ancestors: array expected";
|
|
@@ -4214,11 +4195,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
4214
4195
|
throw TypeError(".vertexvis.protobuf.stream.Hit.suppliedPartRevisionId: object expected");
|
|
4215
4196
|
message.suppliedPartRevisionId = $root.google.protobuf.StringValue.fromObject(object.suppliedPartRevisionId);
|
|
4216
4197
|
}
|
|
4217
|
-
if (object.metadata != null) {
|
|
4218
|
-
if (typeof object.metadata !== "object")
|
|
4219
|
-
throw TypeError(".vertexvis.protobuf.stream.Hit.metadata: object expected");
|
|
4220
|
-
message.metadata = $root.vertexvis.protobuf.stream.Metadata.fromObject(object.metadata);
|
|
4221
|
-
}
|
|
4222
4198
|
if (object.ancestors) {
|
|
4223
4199
|
if (!Array.isArray(object.ancestors))
|
|
4224
4200
|
throw TypeError(".vertexvis.protobuf.stream.Hit.ancestors: array expected");
|
|
@@ -4267,7 +4243,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
4267
4243
|
object.partRevisionId = null;
|
|
4268
4244
|
object.partId = null;
|
|
4269
4245
|
object.suppliedPartRevisionId = null;
|
|
4270
|
-
object.metadata = null;
|
|
4271
4246
|
}
|
|
4272
4247
|
if (message.itemId != null && message.hasOwnProperty("itemId"))
|
|
4273
4248
|
object.itemId = $root.vertexvis.protobuf.core.Uuid.toObject(message.itemId, options);
|
|
@@ -4283,8 +4258,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
4283
4258
|
object.partId = $root.vertexvis.protobuf.core.Uuid.toObject(message.partId, options);
|
|
4284
4259
|
if (message.suppliedPartRevisionId != null && message.hasOwnProperty("suppliedPartRevisionId"))
|
|
4285
4260
|
object.suppliedPartRevisionId = $root.google.protobuf.StringValue.toObject(message.suppliedPartRevisionId, options);
|
|
4286
|
-
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
4287
|
-
object.metadata = $root.vertexvis.protobuf.stream.Metadata.toObject(message.metadata, options);
|
|
4288
4261
|
if (message.ancestors && message.ancestors.length) {
|
|
4289
4262
|
object.ancestors = [];
|
|
4290
4263
|
for (let j = 0; j < message.ancestors.length; ++j)
|
|
@@ -8632,292 +8605,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8632
8605
|
return MetadataProperty;
|
|
8633
8606
|
})();
|
|
8634
8607
|
|
|
8635
|
-
stream.Metadata = (function() {
|
|
8636
|
-
|
|
8637
|
-
/**
|
|
8638
|
-
* Properties of a Metadata.
|
|
8639
|
-
* @memberof vertexvis.protobuf.stream
|
|
8640
|
-
* @interface IMetadata
|
|
8641
|
-
* @property {vertexvis.protobuf.core.IUuid|null} [partRevisionId] Metadata partRevisionId
|
|
8642
|
-
* @property {vertexvis.protobuf.core.IUuid|null} [partInstanceId] Metadata partInstanceId
|
|
8643
|
-
* @property {string|null} [partName] Metadata partName
|
|
8644
|
-
* @property {Array.<vertexvis.protobuf.stream.IMetadataProperty>|null} [properties] Metadata properties
|
|
8645
|
-
*/
|
|
8646
|
-
|
|
8647
|
-
/**
|
|
8648
|
-
* Constructs a new Metadata.
|
|
8649
|
-
* @memberof vertexvis.protobuf.stream
|
|
8650
|
-
* @classdesc Represents a Metadata.
|
|
8651
|
-
* @implements IMetadata
|
|
8652
|
-
* @constructor
|
|
8653
|
-
* @param {vertexvis.protobuf.stream.IMetadata=} [properties] Properties to set
|
|
8654
|
-
*/
|
|
8655
|
-
function Metadata(properties) {
|
|
8656
|
-
this.properties = [];
|
|
8657
|
-
if (properties)
|
|
8658
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
8659
|
-
if (properties[keys[i]] != null)
|
|
8660
|
-
this[keys[i]] = properties[keys[i]];
|
|
8661
|
-
}
|
|
8662
|
-
|
|
8663
|
-
/**
|
|
8664
|
-
* Metadata partRevisionId.
|
|
8665
|
-
* @member {vertexvis.protobuf.core.IUuid|null|undefined} partRevisionId
|
|
8666
|
-
* @memberof vertexvis.protobuf.stream.Metadata
|
|
8667
|
-
* @instance
|
|
8668
|
-
*/
|
|
8669
|
-
Metadata.prototype.partRevisionId = null;
|
|
8670
|
-
|
|
8671
|
-
/**
|
|
8672
|
-
* Metadata partInstanceId.
|
|
8673
|
-
* @member {vertexvis.protobuf.core.IUuid|null|undefined} partInstanceId
|
|
8674
|
-
* @memberof vertexvis.protobuf.stream.Metadata
|
|
8675
|
-
* @instance
|
|
8676
|
-
*/
|
|
8677
|
-
Metadata.prototype.partInstanceId = null;
|
|
8678
|
-
|
|
8679
|
-
/**
|
|
8680
|
-
* Metadata partName.
|
|
8681
|
-
* @member {string} partName
|
|
8682
|
-
* @memberof vertexvis.protobuf.stream.Metadata
|
|
8683
|
-
* @instance
|
|
8684
|
-
*/
|
|
8685
|
-
Metadata.prototype.partName = "";
|
|
8686
|
-
|
|
8687
|
-
/**
|
|
8688
|
-
* Metadata properties.
|
|
8689
|
-
* @member {Array.<vertexvis.protobuf.stream.IMetadataProperty>} properties
|
|
8690
|
-
* @memberof vertexvis.protobuf.stream.Metadata
|
|
8691
|
-
* @instance
|
|
8692
|
-
*/
|
|
8693
|
-
Metadata.prototype.properties = $util.emptyArray;
|
|
8694
|
-
|
|
8695
|
-
/**
|
|
8696
|
-
* Creates a new Metadata instance using the specified properties.
|
|
8697
|
-
* @function create
|
|
8698
|
-
* @memberof vertexvis.protobuf.stream.Metadata
|
|
8699
|
-
* @static
|
|
8700
|
-
* @param {vertexvis.protobuf.stream.IMetadata=} [properties] Properties to set
|
|
8701
|
-
* @returns {vertexvis.protobuf.stream.Metadata} Metadata instance
|
|
8702
|
-
*/
|
|
8703
|
-
Metadata.create = function create(properties) {
|
|
8704
|
-
return new Metadata(properties);
|
|
8705
|
-
};
|
|
8706
|
-
|
|
8707
|
-
/**
|
|
8708
|
-
* Encodes the specified Metadata message. Does not implicitly {@link vertexvis.protobuf.stream.Metadata.verify|verify} messages.
|
|
8709
|
-
* @function encode
|
|
8710
|
-
* @memberof vertexvis.protobuf.stream.Metadata
|
|
8711
|
-
* @static
|
|
8712
|
-
* @param {vertexvis.protobuf.stream.IMetadata} message Metadata message or plain object to encode
|
|
8713
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8714
|
-
* @returns {$protobuf.Writer} Writer
|
|
8715
|
-
*/
|
|
8716
|
-
Metadata.encode = function encode(message, writer) {
|
|
8717
|
-
if (!writer)
|
|
8718
|
-
writer = $Writer.create();
|
|
8719
|
-
if (message.partRevisionId != null && Object.hasOwnProperty.call(message, "partRevisionId"))
|
|
8720
|
-
$root.vertexvis.protobuf.core.Uuid.encode(message.partRevisionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
8721
|
-
if (message.partInstanceId != null && Object.hasOwnProperty.call(message, "partInstanceId"))
|
|
8722
|
-
$root.vertexvis.protobuf.core.Uuid.encode(message.partInstanceId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
8723
|
-
if (message.partName != null && Object.hasOwnProperty.call(message, "partName"))
|
|
8724
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.partName);
|
|
8725
|
-
if (message.properties != null && message.properties.length)
|
|
8726
|
-
for (let i = 0; i < message.properties.length; ++i)
|
|
8727
|
-
$root.vertexvis.protobuf.stream.MetadataProperty.encode(message.properties[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
8728
|
-
return writer;
|
|
8729
|
-
};
|
|
8730
|
-
|
|
8731
|
-
/**
|
|
8732
|
-
* Encodes the specified Metadata message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.Metadata.verify|verify} messages.
|
|
8733
|
-
* @function encodeDelimited
|
|
8734
|
-
* @memberof vertexvis.protobuf.stream.Metadata
|
|
8735
|
-
* @static
|
|
8736
|
-
* @param {vertexvis.protobuf.stream.IMetadata} message Metadata message or plain object to encode
|
|
8737
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8738
|
-
* @returns {$protobuf.Writer} Writer
|
|
8739
|
-
*/
|
|
8740
|
-
Metadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
8741
|
-
return this.encode(message, writer).ldelim();
|
|
8742
|
-
};
|
|
8743
|
-
|
|
8744
|
-
/**
|
|
8745
|
-
* Decodes a Metadata message from the specified reader or buffer.
|
|
8746
|
-
* @function decode
|
|
8747
|
-
* @memberof vertexvis.protobuf.stream.Metadata
|
|
8748
|
-
* @static
|
|
8749
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8750
|
-
* @param {number} [length] Message length if known beforehand
|
|
8751
|
-
* @returns {vertexvis.protobuf.stream.Metadata} Metadata
|
|
8752
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8753
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8754
|
-
*/
|
|
8755
|
-
Metadata.decode = function decode(reader, length) {
|
|
8756
|
-
if (!(reader instanceof $Reader))
|
|
8757
|
-
reader = $Reader.create(reader);
|
|
8758
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.Metadata();
|
|
8759
|
-
while (reader.pos < end) {
|
|
8760
|
-
let tag = reader.uint32();
|
|
8761
|
-
switch (tag >>> 3) {
|
|
8762
|
-
case 1:
|
|
8763
|
-
message.partRevisionId = $root.vertexvis.protobuf.core.Uuid.decode(reader, reader.uint32());
|
|
8764
|
-
break;
|
|
8765
|
-
case 2:
|
|
8766
|
-
message.partInstanceId = $root.vertexvis.protobuf.core.Uuid.decode(reader, reader.uint32());
|
|
8767
|
-
break;
|
|
8768
|
-
case 3:
|
|
8769
|
-
message.partName = reader.string();
|
|
8770
|
-
break;
|
|
8771
|
-
case 4:
|
|
8772
|
-
if (!(message.properties && message.properties.length))
|
|
8773
|
-
message.properties = [];
|
|
8774
|
-
message.properties.push($root.vertexvis.protobuf.stream.MetadataProperty.decode(reader, reader.uint32()));
|
|
8775
|
-
break;
|
|
8776
|
-
default:
|
|
8777
|
-
reader.skipType(tag & 7);
|
|
8778
|
-
break;
|
|
8779
|
-
}
|
|
8780
|
-
}
|
|
8781
|
-
return message;
|
|
8782
|
-
};
|
|
8783
|
-
|
|
8784
|
-
/**
|
|
8785
|
-
* Decodes a Metadata message from the specified reader or buffer, length delimited.
|
|
8786
|
-
* @function decodeDelimited
|
|
8787
|
-
* @memberof vertexvis.protobuf.stream.Metadata
|
|
8788
|
-
* @static
|
|
8789
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8790
|
-
* @returns {vertexvis.protobuf.stream.Metadata} Metadata
|
|
8791
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8792
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8793
|
-
*/
|
|
8794
|
-
Metadata.decodeDelimited = function decodeDelimited(reader) {
|
|
8795
|
-
if (!(reader instanceof $Reader))
|
|
8796
|
-
reader = new $Reader(reader);
|
|
8797
|
-
return this.decode(reader, reader.uint32());
|
|
8798
|
-
};
|
|
8799
|
-
|
|
8800
|
-
/**
|
|
8801
|
-
* Verifies a Metadata message.
|
|
8802
|
-
* @function verify
|
|
8803
|
-
* @memberof vertexvis.protobuf.stream.Metadata
|
|
8804
|
-
* @static
|
|
8805
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
8806
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
8807
|
-
*/
|
|
8808
|
-
Metadata.verify = function verify(message) {
|
|
8809
|
-
if (typeof message !== "object" || message === null)
|
|
8810
|
-
return "object expected";
|
|
8811
|
-
if (message.partRevisionId != null && message.hasOwnProperty("partRevisionId")) {
|
|
8812
|
-
let error = $root.vertexvis.protobuf.core.Uuid.verify(message.partRevisionId);
|
|
8813
|
-
if (error)
|
|
8814
|
-
return "partRevisionId." + error;
|
|
8815
|
-
}
|
|
8816
|
-
if (message.partInstanceId != null && message.hasOwnProperty("partInstanceId")) {
|
|
8817
|
-
let error = $root.vertexvis.protobuf.core.Uuid.verify(message.partInstanceId);
|
|
8818
|
-
if (error)
|
|
8819
|
-
return "partInstanceId." + error;
|
|
8820
|
-
}
|
|
8821
|
-
if (message.partName != null && message.hasOwnProperty("partName"))
|
|
8822
|
-
if (!$util.isString(message.partName))
|
|
8823
|
-
return "partName: string expected";
|
|
8824
|
-
if (message.properties != null && message.hasOwnProperty("properties")) {
|
|
8825
|
-
if (!Array.isArray(message.properties))
|
|
8826
|
-
return "properties: array expected";
|
|
8827
|
-
for (let i = 0; i < message.properties.length; ++i) {
|
|
8828
|
-
let error = $root.vertexvis.protobuf.stream.MetadataProperty.verify(message.properties[i]);
|
|
8829
|
-
if (error)
|
|
8830
|
-
return "properties." + error;
|
|
8831
|
-
}
|
|
8832
|
-
}
|
|
8833
|
-
return null;
|
|
8834
|
-
};
|
|
8835
|
-
|
|
8836
|
-
/**
|
|
8837
|
-
* Creates a Metadata message from a plain object. Also converts values to their respective internal types.
|
|
8838
|
-
* @function fromObject
|
|
8839
|
-
* @memberof vertexvis.protobuf.stream.Metadata
|
|
8840
|
-
* @static
|
|
8841
|
-
* @param {Object.<string,*>} object Plain object
|
|
8842
|
-
* @returns {vertexvis.protobuf.stream.Metadata} Metadata
|
|
8843
|
-
*/
|
|
8844
|
-
Metadata.fromObject = function fromObject(object) {
|
|
8845
|
-
if (object instanceof $root.vertexvis.protobuf.stream.Metadata)
|
|
8846
|
-
return object;
|
|
8847
|
-
let message = new $root.vertexvis.protobuf.stream.Metadata();
|
|
8848
|
-
if (object.partRevisionId != null) {
|
|
8849
|
-
if (typeof object.partRevisionId !== "object")
|
|
8850
|
-
throw TypeError(".vertexvis.protobuf.stream.Metadata.partRevisionId: object expected");
|
|
8851
|
-
message.partRevisionId = $root.vertexvis.protobuf.core.Uuid.fromObject(object.partRevisionId);
|
|
8852
|
-
}
|
|
8853
|
-
if (object.partInstanceId != null) {
|
|
8854
|
-
if (typeof object.partInstanceId !== "object")
|
|
8855
|
-
throw TypeError(".vertexvis.protobuf.stream.Metadata.partInstanceId: object expected");
|
|
8856
|
-
message.partInstanceId = $root.vertexvis.protobuf.core.Uuid.fromObject(object.partInstanceId);
|
|
8857
|
-
}
|
|
8858
|
-
if (object.partName != null)
|
|
8859
|
-
message.partName = String(object.partName);
|
|
8860
|
-
if (object.properties) {
|
|
8861
|
-
if (!Array.isArray(object.properties))
|
|
8862
|
-
throw TypeError(".vertexvis.protobuf.stream.Metadata.properties: array expected");
|
|
8863
|
-
message.properties = [];
|
|
8864
|
-
for (let i = 0; i < object.properties.length; ++i) {
|
|
8865
|
-
if (typeof object.properties[i] !== "object")
|
|
8866
|
-
throw TypeError(".vertexvis.protobuf.stream.Metadata.properties: object expected");
|
|
8867
|
-
message.properties[i] = $root.vertexvis.protobuf.stream.MetadataProperty.fromObject(object.properties[i]);
|
|
8868
|
-
}
|
|
8869
|
-
}
|
|
8870
|
-
return message;
|
|
8871
|
-
};
|
|
8872
|
-
|
|
8873
|
-
/**
|
|
8874
|
-
* Creates a plain object from a Metadata message. Also converts values to other types if specified.
|
|
8875
|
-
* @function toObject
|
|
8876
|
-
* @memberof vertexvis.protobuf.stream.Metadata
|
|
8877
|
-
* @static
|
|
8878
|
-
* @param {vertexvis.protobuf.stream.Metadata} message Metadata
|
|
8879
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
8880
|
-
* @returns {Object.<string,*>} Plain object
|
|
8881
|
-
*/
|
|
8882
|
-
Metadata.toObject = function toObject(message, options) {
|
|
8883
|
-
if (!options)
|
|
8884
|
-
options = {};
|
|
8885
|
-
let object = {};
|
|
8886
|
-
if (options.arrays || options.defaults)
|
|
8887
|
-
object.properties = [];
|
|
8888
|
-
if (options.defaults) {
|
|
8889
|
-
object.partRevisionId = null;
|
|
8890
|
-
object.partInstanceId = null;
|
|
8891
|
-
object.partName = "";
|
|
8892
|
-
}
|
|
8893
|
-
if (message.partRevisionId != null && message.hasOwnProperty("partRevisionId"))
|
|
8894
|
-
object.partRevisionId = $root.vertexvis.protobuf.core.Uuid.toObject(message.partRevisionId, options);
|
|
8895
|
-
if (message.partInstanceId != null && message.hasOwnProperty("partInstanceId"))
|
|
8896
|
-
object.partInstanceId = $root.vertexvis.protobuf.core.Uuid.toObject(message.partInstanceId, options);
|
|
8897
|
-
if (message.partName != null && message.hasOwnProperty("partName"))
|
|
8898
|
-
object.partName = message.partName;
|
|
8899
|
-
if (message.properties && message.properties.length) {
|
|
8900
|
-
object.properties = [];
|
|
8901
|
-
for (let j = 0; j < message.properties.length; ++j)
|
|
8902
|
-
object.properties[j] = $root.vertexvis.protobuf.stream.MetadataProperty.toObject(message.properties[j], options);
|
|
8903
|
-
}
|
|
8904
|
-
return object;
|
|
8905
|
-
};
|
|
8906
|
-
|
|
8907
|
-
/**
|
|
8908
|
-
* Converts this Metadata to JSON.
|
|
8909
|
-
* @function toJSON
|
|
8910
|
-
* @memberof vertexvis.protobuf.stream.Metadata
|
|
8911
|
-
* @instance
|
|
8912
|
-
* @returns {Object.<string,*>} JSON object
|
|
8913
|
-
*/
|
|
8914
|
-
Metadata.prototype.toJSON = function toJSON() {
|
|
8915
|
-
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
8916
|
-
};
|
|
8917
|
-
|
|
8918
|
-
return Metadata;
|
|
8919
|
-
})();
|
|
8920
|
-
|
|
8921
8608
|
stream.SectionPlane = (function() {
|
|
8922
8609
|
|
|
8923
8610
|
/**
|
|
@@ -10,7 +10,7 @@ const utils = require('./utils-6933381f.js');
|
|
|
10
10
|
const bundle_esm = require('./bundle.esm-c457ad4d.js');
|
|
11
11
|
const index$1 = require('./index-3bc6bac0.js');
|
|
12
12
|
const browser_esm = require('./browser.esm-ae55f058.js');
|
|
13
|
-
const scene = require('./scene-
|
|
13
|
+
const scene = require('./scene-a10dd7f2.js');
|
|
14
14
|
const orientation = require('./orientation-42cc9e8d.js');
|
|
15
15
|
const viewport = require('./viewport-e69f8223.js');
|
|
16
16
|
const dom = require('./dom-cdb50ebc.js');
|
package/dist/esm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**!
|
|
2
2
|
* Copyright (c) 2021 Vertex Software LLC. All rights reserved.
|
|
3
3
|
*/
|
|
4
|
-
export { c as ColorMaterial, l as LoadableResource, S as Scene, a as SynchronizedClock } from './scene-
|
|
4
|
+
export { c as ColorMaterial, l as LoadableResource, S as Scene, a as SynchronizedClock } from './scene-25ccceb5.js';
|
|
5
5
|
export { C as CursorManager, m as measurementCursor } from './cursors-39294365.js';
|
|
6
6
|
export { F as ReceivedFrame, a as ReceivedFrameImage, b as ReceivedFrameScene, c as ReceivedPerspectiveCamera } from './orientation-c3e2af18.js';
|
|
7
7
|
export { A as ArrowMarkup, C as CircleMarkup, F as FreeformMarkup } from './markup-44ec8958.js';
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**!
|
|
2
2
|
* Copyright (c) 2021 Vertex Software LLC. All rights reserved.
|
|
3
3
|
*/
|
|
4
|
-
export { c as ColorMaterial, l as LoadableResource, S as Scene, a as SynchronizedClock } from './scene-
|
|
4
|
+
export { c as ColorMaterial, l as LoadableResource, S as Scene, a as SynchronizedClock } from './scene-25ccceb5.js';
|
|
5
5
|
export { C as CursorManager, m as measurementCursor } from './cursors-39294365.js';
|
|
6
6
|
export { F as ReceivedFrame, a as ReceivedFrameImage, b as ReceivedFrameScene, c as ReceivedPerspectiveCamera } from './orientation-c3e2af18.js';
|
|
7
7
|
export { A as ArrowMarkup, C as CircleMarkup, F as FreeformMarkup } from './markup-44ec8958.js';
|