@vertexvis/viewer 0.15.2-testing.1 → 0.15.2-testing.3
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/{config-4a86ae0b.js → config-6e330a82.js} +1 -1
- package/dist/cjs/{entities-496b61cd.js → entities-7b2e8c03.js} +2 -2
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{mapper-216603b0.js → mapper-0f2294a6.js} +1 -1
- package/dist/cjs/{scene-cb169b09.js → scene-56438693.js} +1 -25
- package/dist/cjs/{streamAttributes-7725f5c4.js → streamAttributes-c64aee75.js} +4 -976
- package/dist/cjs/vertex-scene-tree.cjs.entry.js +2 -2
- package/dist/cjs/vertex-viewer-dom-element_2.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-markup.cjs.entry.js +11 -1
- package/dist/cjs/vertex-viewer-measurement-details.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-measurement-distance.cjs.entry.js +2 -2
- package/dist/cjs/vertex-viewer-measurement-line_2.cjs.entry.js +2 -2
- package/dist/cjs/vertex-viewer-measurement-precise.cjs.entry.js +4 -4
- package/dist/cjs/vertex-viewer-pin-group.cjs.entry.js +2 -2
- package/dist/cjs/vertex-viewer-transform-widget.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-view-cube.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer.cjs.entry.js +3 -3
- package/dist/cjs/viewer.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/viewer-markup/viewer-markup.js +36 -2
- package/dist/collection/lib/scenes/mapper.js +1 -11
- package/dist/collection/lib/scenes/queries.js +1 -15
- package/dist/custom-elements/index.d.ts +0 -6
- package/dist/custom-elements/index.js +16 -1175
- package/dist/esm/{config-6cdeb6ca.js → config-49688db8.js} +1 -1
- package/dist/esm/{entities-6f3c5437.js → entities-a5bfef48.js} +2 -2
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.mjs +4 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/loader.mjs +1 -1
- package/dist/esm/{mapper-941ff03c.js → mapper-5894c2a4.js} +1 -1
- package/dist/esm/{scene-6f98b0dd.js → scene-5b919078.js} +1 -25
- package/dist/esm/{streamAttributes-24bd7b3a.js → streamAttributes-7e8565be.js} +4 -976
- package/dist/esm/vertex-scene-tree.entry.js +2 -2
- package/dist/esm/vertex-viewer-dom-element_2.entry.js +1 -1
- package/dist/esm/vertex-viewer-markup.entry.js +11 -1
- package/dist/esm/vertex-viewer-measurement-details.entry.js +1 -1
- package/dist/esm/vertex-viewer-measurement-distance.entry.js +2 -2
- package/dist/esm/vertex-viewer-measurement-line_2.entry.js +2 -2
- package/dist/esm/vertex-viewer-measurement-precise.entry.js +4 -4
- package/dist/esm/vertex-viewer-pin-group.entry.js +2 -2
- package/dist/esm/vertex-viewer-transform-widget.entry.js +1 -1
- package/dist/esm/vertex-viewer-view-cube.entry.js +1 -1
- package/dist/esm/vertex-viewer.entry.js +3 -3
- package/dist/esm/viewer.js +1 -1
- package/dist/types/components/viewer-markup/viewer-markup.d.ts +6 -0
- package/dist/types/components.d.ts +7 -24
- package/dist/types/lib/scenes/queries.d.ts +2 -12
- package/dist/viewer/index.esm.js +1 -1
- package/dist/viewer/{p-cea5d8bd.js → p-1e0dd2e9.js} +1 -1
- package/dist/viewer/{p-52ab9ec0.js → p-1fc24ec6.js} +1 -1
- package/dist/viewer/{p-a5f18e7b.entry.js → p-22ae6785.entry.js} +1 -1
- package/dist/viewer/p-31b87b90.js +4 -0
- package/dist/viewer/{p-24cda14a.entry.js → p-3f6f2457.entry.js} +1 -1
- package/dist/viewer/{p-9e1384c9.js → p-40a9dd7d.js} +1 -1
- package/dist/viewer/{p-608925c5.entry.js → p-61e50e11.entry.js} +1 -1
- package/dist/viewer/{p-74c772bb.entry.js → p-7579e2a1.entry.js} +1 -1
- package/dist/viewer/{p-bfacbaa8.entry.js → p-920c9a88.entry.js} +1 -1
- package/dist/viewer/{p-597cc9b5.js → p-927b528b.js} +1 -1
- package/dist/viewer/{p-1bba9ade.entry.js → p-a6558bb2.entry.js} +1 -1
- package/dist/viewer/{p-2b58afc3.entry.js → p-b7e170ac.entry.js} +1 -1
- package/dist/viewer/{p-69a3fce8.entry.js → p-d34ad2b2.entry.js} +1 -1
- package/dist/viewer/{p-a107b65e.entry.js → p-d64c1e14.entry.js} +2 -2
- package/dist/viewer/p-e422deaf.entry.js +4 -0
- package/dist/viewer/{p-c72da0fb.entry.js → p-f3ea0c2b.entry.js} +1 -1
- package/dist/viewer/viewer.esm.js +1 -1
- package/package.json +8 -8
- package/dist/cjs/vertex-viewer-drag-select.cjs.entry.js +0 -183
- package/dist/collection/components/viewer-drag-select/controller.js +0 -19
- package/dist/collection/components/viewer-drag-select/interaction-handler.js +0 -41
- package/dist/collection/components/viewer-drag-select/model.js +0 -49
- package/dist/collection/components/viewer-drag-select/viewer-drag-select.css +0 -36
- package/dist/collection/components/viewer-drag-select/viewer-drag-select.js +0 -120
- package/dist/esm/vertex-viewer-drag-select.entry.js +0 -179
- package/dist/types/components/viewer-drag-select/controller.d.ts +0 -9
- package/dist/types/components/viewer-drag-select/interaction-handler.d.ts +0 -15
- package/dist/types/components/viewer-drag-select/model.d.ts +0 -25
- package/dist/types/components/viewer-drag-select/viewer-drag-select.d.ts +0 -28
- package/dist/viewer/p-68e192b9.js +0 -4
- package/dist/viewer/p-7762c40a.entry.js +0 -4
- package/dist/viewer/p-fee62661.entry.js +0 -4
|
@@ -23111,458 +23111,6 @@ const vertexvis$1 = $root$1.vertexvis = (() => {
|
|
|
23111
23111
|
return PointQuery;
|
|
23112
23112
|
})();
|
|
23113
23113
|
|
|
23114
|
-
stream.FrustumByRectangle = (function() {
|
|
23115
|
-
|
|
23116
|
-
/**
|
|
23117
|
-
* Properties of a FrustumByRectangle.
|
|
23118
|
-
* @memberof vertexvis.protobuf.stream
|
|
23119
|
-
* @interface IFrustumByRectangle
|
|
23120
|
-
* @property {vertexvis.protobuf.stream.IRectangle|null} [rectangle] FrustumByRectangle rectangle
|
|
23121
|
-
*/
|
|
23122
|
-
|
|
23123
|
-
/**
|
|
23124
|
-
* Constructs a new FrustumByRectangle.
|
|
23125
|
-
* @memberof vertexvis.protobuf.stream
|
|
23126
|
-
* @classdesc Represents a FrustumByRectangle.
|
|
23127
|
-
* @implements IFrustumByRectangle
|
|
23128
|
-
* @constructor
|
|
23129
|
-
* @param {vertexvis.protobuf.stream.IFrustumByRectangle=} [properties] Properties to set
|
|
23130
|
-
*/
|
|
23131
|
-
function FrustumByRectangle(properties) {
|
|
23132
|
-
if (properties)
|
|
23133
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
23134
|
-
if (properties[keys[i]] != null)
|
|
23135
|
-
this[keys[i]] = properties[keys[i]];
|
|
23136
|
-
}
|
|
23137
|
-
|
|
23138
|
-
/**
|
|
23139
|
-
* FrustumByRectangle rectangle.
|
|
23140
|
-
* @member {vertexvis.protobuf.stream.IRectangle|null|undefined} rectangle
|
|
23141
|
-
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
23142
|
-
* @instance
|
|
23143
|
-
*/
|
|
23144
|
-
FrustumByRectangle.prototype.rectangle = null;
|
|
23145
|
-
|
|
23146
|
-
/**
|
|
23147
|
-
* Creates a new FrustumByRectangle instance using the specified properties.
|
|
23148
|
-
* @function create
|
|
23149
|
-
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
23150
|
-
* @static
|
|
23151
|
-
* @param {vertexvis.protobuf.stream.IFrustumByRectangle=} [properties] Properties to set
|
|
23152
|
-
* @returns {vertexvis.protobuf.stream.FrustumByRectangle} FrustumByRectangle instance
|
|
23153
|
-
*/
|
|
23154
|
-
FrustumByRectangle.create = function create(properties) {
|
|
23155
|
-
return new FrustumByRectangle(properties);
|
|
23156
|
-
};
|
|
23157
|
-
|
|
23158
|
-
/**
|
|
23159
|
-
* Encodes the specified FrustumByRectangle message. Does not implicitly {@link vertexvis.protobuf.stream.FrustumByRectangle.verify|verify} messages.
|
|
23160
|
-
* @function encode
|
|
23161
|
-
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
23162
|
-
* @static
|
|
23163
|
-
* @param {vertexvis.protobuf.stream.IFrustumByRectangle} message FrustumByRectangle message or plain object to encode
|
|
23164
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
23165
|
-
* @returns {$protobuf.Writer} Writer
|
|
23166
|
-
*/
|
|
23167
|
-
FrustumByRectangle.encode = function encode(message, writer) {
|
|
23168
|
-
if (!writer)
|
|
23169
|
-
writer = $Writer$1.create();
|
|
23170
|
-
if (message.rectangle != null && Object.hasOwnProperty.call(message, "rectangle"))
|
|
23171
|
-
$root$1.vertexvis.protobuf.stream.Rectangle.encode(message.rectangle, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
23172
|
-
return writer;
|
|
23173
|
-
};
|
|
23174
|
-
|
|
23175
|
-
/**
|
|
23176
|
-
* Encodes the specified FrustumByRectangle message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.FrustumByRectangle.verify|verify} messages.
|
|
23177
|
-
* @function encodeDelimited
|
|
23178
|
-
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
23179
|
-
* @static
|
|
23180
|
-
* @param {vertexvis.protobuf.stream.IFrustumByRectangle} message FrustumByRectangle message or plain object to encode
|
|
23181
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
23182
|
-
* @returns {$protobuf.Writer} Writer
|
|
23183
|
-
*/
|
|
23184
|
-
FrustumByRectangle.encodeDelimited = function encodeDelimited(message, writer) {
|
|
23185
|
-
return this.encode(message, writer).ldelim();
|
|
23186
|
-
};
|
|
23187
|
-
|
|
23188
|
-
/**
|
|
23189
|
-
* Decodes a FrustumByRectangle message from the specified reader or buffer.
|
|
23190
|
-
* @function decode
|
|
23191
|
-
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
23192
|
-
* @static
|
|
23193
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
23194
|
-
* @param {number} [length] Message length if known beforehand
|
|
23195
|
-
* @returns {vertexvis.protobuf.stream.FrustumByRectangle} FrustumByRectangle
|
|
23196
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23197
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23198
|
-
*/
|
|
23199
|
-
FrustumByRectangle.decode = function decode(reader, length) {
|
|
23200
|
-
if (!(reader instanceof $Reader$1))
|
|
23201
|
-
reader = $Reader$1.create(reader);
|
|
23202
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root$1.vertexvis.protobuf.stream.FrustumByRectangle();
|
|
23203
|
-
while (reader.pos < end) {
|
|
23204
|
-
let tag = reader.uint32();
|
|
23205
|
-
switch (tag >>> 3) {
|
|
23206
|
-
case 1:
|
|
23207
|
-
message.rectangle = $root$1.vertexvis.protobuf.stream.Rectangle.decode(reader, reader.uint32());
|
|
23208
|
-
break;
|
|
23209
|
-
default:
|
|
23210
|
-
reader.skipType(tag & 7);
|
|
23211
|
-
break;
|
|
23212
|
-
}
|
|
23213
|
-
}
|
|
23214
|
-
return message;
|
|
23215
|
-
};
|
|
23216
|
-
|
|
23217
|
-
/**
|
|
23218
|
-
* Decodes a FrustumByRectangle message from the specified reader or buffer, length delimited.
|
|
23219
|
-
* @function decodeDelimited
|
|
23220
|
-
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
23221
|
-
* @static
|
|
23222
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
23223
|
-
* @returns {vertexvis.protobuf.stream.FrustumByRectangle} FrustumByRectangle
|
|
23224
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23225
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23226
|
-
*/
|
|
23227
|
-
FrustumByRectangle.decodeDelimited = function decodeDelimited(reader) {
|
|
23228
|
-
if (!(reader instanceof $Reader$1))
|
|
23229
|
-
reader = new $Reader$1(reader);
|
|
23230
|
-
return this.decode(reader, reader.uint32());
|
|
23231
|
-
};
|
|
23232
|
-
|
|
23233
|
-
/**
|
|
23234
|
-
* Verifies a FrustumByRectangle message.
|
|
23235
|
-
* @function verify
|
|
23236
|
-
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
23237
|
-
* @static
|
|
23238
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
23239
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
23240
|
-
*/
|
|
23241
|
-
FrustumByRectangle.verify = function verify(message) {
|
|
23242
|
-
if (typeof message !== "object" || message === null)
|
|
23243
|
-
return "object expected";
|
|
23244
|
-
if (message.rectangle != null && message.hasOwnProperty("rectangle")) {
|
|
23245
|
-
let error = $root$1.vertexvis.protobuf.stream.Rectangle.verify(message.rectangle);
|
|
23246
|
-
if (error)
|
|
23247
|
-
return "rectangle." + error;
|
|
23248
|
-
}
|
|
23249
|
-
return null;
|
|
23250
|
-
};
|
|
23251
|
-
|
|
23252
|
-
/**
|
|
23253
|
-
* Creates a FrustumByRectangle message from a plain object. Also converts values to their respective internal types.
|
|
23254
|
-
* @function fromObject
|
|
23255
|
-
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
23256
|
-
* @static
|
|
23257
|
-
* @param {Object.<string,*>} object Plain object
|
|
23258
|
-
* @returns {vertexvis.protobuf.stream.FrustumByRectangle} FrustumByRectangle
|
|
23259
|
-
*/
|
|
23260
|
-
FrustumByRectangle.fromObject = function fromObject(object) {
|
|
23261
|
-
if (object instanceof $root$1.vertexvis.protobuf.stream.FrustumByRectangle)
|
|
23262
|
-
return object;
|
|
23263
|
-
let message = new $root$1.vertexvis.protobuf.stream.FrustumByRectangle();
|
|
23264
|
-
if (object.rectangle != null) {
|
|
23265
|
-
if (typeof object.rectangle !== "object")
|
|
23266
|
-
throw TypeError(".vertexvis.protobuf.stream.FrustumByRectangle.rectangle: object expected");
|
|
23267
|
-
message.rectangle = $root$1.vertexvis.protobuf.stream.Rectangle.fromObject(object.rectangle);
|
|
23268
|
-
}
|
|
23269
|
-
return message;
|
|
23270
|
-
};
|
|
23271
|
-
|
|
23272
|
-
/**
|
|
23273
|
-
* Creates a plain object from a FrustumByRectangle message. Also converts values to other types if specified.
|
|
23274
|
-
* @function toObject
|
|
23275
|
-
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
23276
|
-
* @static
|
|
23277
|
-
* @param {vertexvis.protobuf.stream.FrustumByRectangle} message FrustumByRectangle
|
|
23278
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
23279
|
-
* @returns {Object.<string,*>} Plain object
|
|
23280
|
-
*/
|
|
23281
|
-
FrustumByRectangle.toObject = function toObject(message, options) {
|
|
23282
|
-
if (!options)
|
|
23283
|
-
options = {};
|
|
23284
|
-
let object = {};
|
|
23285
|
-
if (options.defaults)
|
|
23286
|
-
object.rectangle = null;
|
|
23287
|
-
if (message.rectangle != null && message.hasOwnProperty("rectangle"))
|
|
23288
|
-
object.rectangle = $root$1.vertexvis.protobuf.stream.Rectangle.toObject(message.rectangle, options);
|
|
23289
|
-
return object;
|
|
23290
|
-
};
|
|
23291
|
-
|
|
23292
|
-
/**
|
|
23293
|
-
* Converts this FrustumByRectangle to JSON.
|
|
23294
|
-
* @function toJSON
|
|
23295
|
-
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
23296
|
-
* @instance
|
|
23297
|
-
* @returns {Object.<string,*>} JSON object
|
|
23298
|
-
*/
|
|
23299
|
-
FrustumByRectangle.prototype.toJSON = function toJSON() {
|
|
23300
|
-
return this.constructor.toObject(this, minimal$2.util.toJSONOptions);
|
|
23301
|
-
};
|
|
23302
|
-
|
|
23303
|
-
return FrustumByRectangle;
|
|
23304
|
-
})();
|
|
23305
|
-
|
|
23306
|
-
stream.VolumeIntersectionQuery = (function() {
|
|
23307
|
-
|
|
23308
|
-
/**
|
|
23309
|
-
* Properties of a VolumeIntersectionQuery.
|
|
23310
|
-
* @memberof vertexvis.protobuf.stream
|
|
23311
|
-
* @interface IVolumeIntersectionQuery
|
|
23312
|
-
* @property {vertexvis.protobuf.stream.IFrustumByRectangle|null} [frustumByRectangle] VolumeIntersectionQuery frustumByRectangle
|
|
23313
|
-
* @property {boolean|null} [exclusive] VolumeIntersectionQuery exclusive
|
|
23314
|
-
* @property {vertexvis.protobuf.stream.IDimensions|null} [viewport] VolumeIntersectionQuery viewport
|
|
23315
|
-
*/
|
|
23316
|
-
|
|
23317
|
-
/**
|
|
23318
|
-
* Constructs a new VolumeIntersectionQuery.
|
|
23319
|
-
* @memberof vertexvis.protobuf.stream
|
|
23320
|
-
* @classdesc Represents a VolumeIntersectionQuery.
|
|
23321
|
-
* @implements IVolumeIntersectionQuery
|
|
23322
|
-
* @constructor
|
|
23323
|
-
* @param {vertexvis.protobuf.stream.IVolumeIntersectionQuery=} [properties] Properties to set
|
|
23324
|
-
*/
|
|
23325
|
-
function VolumeIntersectionQuery(properties) {
|
|
23326
|
-
if (properties)
|
|
23327
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
23328
|
-
if (properties[keys[i]] != null)
|
|
23329
|
-
this[keys[i]] = properties[keys[i]];
|
|
23330
|
-
}
|
|
23331
|
-
|
|
23332
|
-
/**
|
|
23333
|
-
* VolumeIntersectionQuery frustumByRectangle.
|
|
23334
|
-
* @member {vertexvis.protobuf.stream.IFrustumByRectangle|null|undefined} frustumByRectangle
|
|
23335
|
-
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
23336
|
-
* @instance
|
|
23337
|
-
*/
|
|
23338
|
-
VolumeIntersectionQuery.prototype.frustumByRectangle = null;
|
|
23339
|
-
|
|
23340
|
-
/**
|
|
23341
|
-
* VolumeIntersectionQuery exclusive.
|
|
23342
|
-
* @member {boolean} exclusive
|
|
23343
|
-
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
23344
|
-
* @instance
|
|
23345
|
-
*/
|
|
23346
|
-
VolumeIntersectionQuery.prototype.exclusive = false;
|
|
23347
|
-
|
|
23348
|
-
/**
|
|
23349
|
-
* VolumeIntersectionQuery viewport.
|
|
23350
|
-
* @member {vertexvis.protobuf.stream.IDimensions|null|undefined} viewport
|
|
23351
|
-
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
23352
|
-
* @instance
|
|
23353
|
-
*/
|
|
23354
|
-
VolumeIntersectionQuery.prototype.viewport = null;
|
|
23355
|
-
|
|
23356
|
-
// OneOf field names bound to virtual getters and setters
|
|
23357
|
-
let $oneOfFields;
|
|
23358
|
-
|
|
23359
|
-
/**
|
|
23360
|
-
* VolumeIntersectionQuery volume.
|
|
23361
|
-
* @member {"frustumByRectangle"|undefined} volume
|
|
23362
|
-
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
23363
|
-
* @instance
|
|
23364
|
-
*/
|
|
23365
|
-
Object.defineProperty(VolumeIntersectionQuery.prototype, "volume", {
|
|
23366
|
-
get: $util$1.oneOfGetter($oneOfFields = ["frustumByRectangle"]),
|
|
23367
|
-
set: $util$1.oneOfSetter($oneOfFields)
|
|
23368
|
-
});
|
|
23369
|
-
|
|
23370
|
-
/**
|
|
23371
|
-
* Creates a new VolumeIntersectionQuery instance using the specified properties.
|
|
23372
|
-
* @function create
|
|
23373
|
-
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
23374
|
-
* @static
|
|
23375
|
-
* @param {vertexvis.protobuf.stream.IVolumeIntersectionQuery=} [properties] Properties to set
|
|
23376
|
-
* @returns {vertexvis.protobuf.stream.VolumeIntersectionQuery} VolumeIntersectionQuery instance
|
|
23377
|
-
*/
|
|
23378
|
-
VolumeIntersectionQuery.create = function create(properties) {
|
|
23379
|
-
return new VolumeIntersectionQuery(properties);
|
|
23380
|
-
};
|
|
23381
|
-
|
|
23382
|
-
/**
|
|
23383
|
-
* Encodes the specified VolumeIntersectionQuery message. Does not implicitly {@link vertexvis.protobuf.stream.VolumeIntersectionQuery.verify|verify} messages.
|
|
23384
|
-
* @function encode
|
|
23385
|
-
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
23386
|
-
* @static
|
|
23387
|
-
* @param {vertexvis.protobuf.stream.IVolumeIntersectionQuery} message VolumeIntersectionQuery message or plain object to encode
|
|
23388
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
23389
|
-
* @returns {$protobuf.Writer} Writer
|
|
23390
|
-
*/
|
|
23391
|
-
VolumeIntersectionQuery.encode = function encode(message, writer) {
|
|
23392
|
-
if (!writer)
|
|
23393
|
-
writer = $Writer$1.create();
|
|
23394
|
-
if (message.frustumByRectangle != null && Object.hasOwnProperty.call(message, "frustumByRectangle"))
|
|
23395
|
-
$root$1.vertexvis.protobuf.stream.FrustumByRectangle.encode(message.frustumByRectangle, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
23396
|
-
if (message.exclusive != null && Object.hasOwnProperty.call(message, "exclusive"))
|
|
23397
|
-
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.exclusive);
|
|
23398
|
-
if (message.viewport != null && Object.hasOwnProperty.call(message, "viewport"))
|
|
23399
|
-
$root$1.vertexvis.protobuf.stream.Dimensions.encode(message.viewport, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
23400
|
-
return writer;
|
|
23401
|
-
};
|
|
23402
|
-
|
|
23403
|
-
/**
|
|
23404
|
-
* Encodes the specified VolumeIntersectionQuery message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.VolumeIntersectionQuery.verify|verify} messages.
|
|
23405
|
-
* @function encodeDelimited
|
|
23406
|
-
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
23407
|
-
* @static
|
|
23408
|
-
* @param {vertexvis.protobuf.stream.IVolumeIntersectionQuery} message VolumeIntersectionQuery message or plain object to encode
|
|
23409
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
23410
|
-
* @returns {$protobuf.Writer} Writer
|
|
23411
|
-
*/
|
|
23412
|
-
VolumeIntersectionQuery.encodeDelimited = function encodeDelimited(message, writer) {
|
|
23413
|
-
return this.encode(message, writer).ldelim();
|
|
23414
|
-
};
|
|
23415
|
-
|
|
23416
|
-
/**
|
|
23417
|
-
* Decodes a VolumeIntersectionQuery message from the specified reader or buffer.
|
|
23418
|
-
* @function decode
|
|
23419
|
-
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
23420
|
-
* @static
|
|
23421
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
23422
|
-
* @param {number} [length] Message length if known beforehand
|
|
23423
|
-
* @returns {vertexvis.protobuf.stream.VolumeIntersectionQuery} VolumeIntersectionQuery
|
|
23424
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23425
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23426
|
-
*/
|
|
23427
|
-
VolumeIntersectionQuery.decode = function decode(reader, length) {
|
|
23428
|
-
if (!(reader instanceof $Reader$1))
|
|
23429
|
-
reader = $Reader$1.create(reader);
|
|
23430
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root$1.vertexvis.protobuf.stream.VolumeIntersectionQuery();
|
|
23431
|
-
while (reader.pos < end) {
|
|
23432
|
-
let tag = reader.uint32();
|
|
23433
|
-
switch (tag >>> 3) {
|
|
23434
|
-
case 1:
|
|
23435
|
-
message.frustumByRectangle = $root$1.vertexvis.protobuf.stream.FrustumByRectangle.decode(reader, reader.uint32());
|
|
23436
|
-
break;
|
|
23437
|
-
case 2:
|
|
23438
|
-
message.exclusive = reader.bool();
|
|
23439
|
-
break;
|
|
23440
|
-
case 3:
|
|
23441
|
-
message.viewport = $root$1.vertexvis.protobuf.stream.Dimensions.decode(reader, reader.uint32());
|
|
23442
|
-
break;
|
|
23443
|
-
default:
|
|
23444
|
-
reader.skipType(tag & 7);
|
|
23445
|
-
break;
|
|
23446
|
-
}
|
|
23447
|
-
}
|
|
23448
|
-
return message;
|
|
23449
|
-
};
|
|
23450
|
-
|
|
23451
|
-
/**
|
|
23452
|
-
* Decodes a VolumeIntersectionQuery message from the specified reader or buffer, length delimited.
|
|
23453
|
-
* @function decodeDelimited
|
|
23454
|
-
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
23455
|
-
* @static
|
|
23456
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
23457
|
-
* @returns {vertexvis.protobuf.stream.VolumeIntersectionQuery} VolumeIntersectionQuery
|
|
23458
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23459
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23460
|
-
*/
|
|
23461
|
-
VolumeIntersectionQuery.decodeDelimited = function decodeDelimited(reader) {
|
|
23462
|
-
if (!(reader instanceof $Reader$1))
|
|
23463
|
-
reader = new $Reader$1(reader);
|
|
23464
|
-
return this.decode(reader, reader.uint32());
|
|
23465
|
-
};
|
|
23466
|
-
|
|
23467
|
-
/**
|
|
23468
|
-
* Verifies a VolumeIntersectionQuery message.
|
|
23469
|
-
* @function verify
|
|
23470
|
-
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
23471
|
-
* @static
|
|
23472
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
23473
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
23474
|
-
*/
|
|
23475
|
-
VolumeIntersectionQuery.verify = function verify(message) {
|
|
23476
|
-
if (typeof message !== "object" || message === null)
|
|
23477
|
-
return "object expected";
|
|
23478
|
-
if (message.frustumByRectangle != null && message.hasOwnProperty("frustumByRectangle")) {
|
|
23479
|
-
{
|
|
23480
|
-
let error = $root$1.vertexvis.protobuf.stream.FrustumByRectangle.verify(message.frustumByRectangle);
|
|
23481
|
-
if (error)
|
|
23482
|
-
return "frustumByRectangle." + error;
|
|
23483
|
-
}
|
|
23484
|
-
}
|
|
23485
|
-
if (message.exclusive != null && message.hasOwnProperty("exclusive"))
|
|
23486
|
-
if (typeof message.exclusive !== "boolean")
|
|
23487
|
-
return "exclusive: boolean expected";
|
|
23488
|
-
if (message.viewport != null && message.hasOwnProperty("viewport")) {
|
|
23489
|
-
let error = $root$1.vertexvis.protobuf.stream.Dimensions.verify(message.viewport);
|
|
23490
|
-
if (error)
|
|
23491
|
-
return "viewport." + error;
|
|
23492
|
-
}
|
|
23493
|
-
return null;
|
|
23494
|
-
};
|
|
23495
|
-
|
|
23496
|
-
/**
|
|
23497
|
-
* Creates a VolumeIntersectionQuery message from a plain object. Also converts values to their respective internal types.
|
|
23498
|
-
* @function fromObject
|
|
23499
|
-
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
23500
|
-
* @static
|
|
23501
|
-
* @param {Object.<string,*>} object Plain object
|
|
23502
|
-
* @returns {vertexvis.protobuf.stream.VolumeIntersectionQuery} VolumeIntersectionQuery
|
|
23503
|
-
*/
|
|
23504
|
-
VolumeIntersectionQuery.fromObject = function fromObject(object) {
|
|
23505
|
-
if (object instanceof $root$1.vertexvis.protobuf.stream.VolumeIntersectionQuery)
|
|
23506
|
-
return object;
|
|
23507
|
-
let message = new $root$1.vertexvis.protobuf.stream.VolumeIntersectionQuery();
|
|
23508
|
-
if (object.frustumByRectangle != null) {
|
|
23509
|
-
if (typeof object.frustumByRectangle !== "object")
|
|
23510
|
-
throw TypeError(".vertexvis.protobuf.stream.VolumeIntersectionQuery.frustumByRectangle: object expected");
|
|
23511
|
-
message.frustumByRectangle = $root$1.vertexvis.protobuf.stream.FrustumByRectangle.fromObject(object.frustumByRectangle);
|
|
23512
|
-
}
|
|
23513
|
-
if (object.exclusive != null)
|
|
23514
|
-
message.exclusive = Boolean(object.exclusive);
|
|
23515
|
-
if (object.viewport != null) {
|
|
23516
|
-
if (typeof object.viewport !== "object")
|
|
23517
|
-
throw TypeError(".vertexvis.protobuf.stream.VolumeIntersectionQuery.viewport: object expected");
|
|
23518
|
-
message.viewport = $root$1.vertexvis.protobuf.stream.Dimensions.fromObject(object.viewport);
|
|
23519
|
-
}
|
|
23520
|
-
return message;
|
|
23521
|
-
};
|
|
23522
|
-
|
|
23523
|
-
/**
|
|
23524
|
-
* Creates a plain object from a VolumeIntersectionQuery message. Also converts values to other types if specified.
|
|
23525
|
-
* @function toObject
|
|
23526
|
-
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
23527
|
-
* @static
|
|
23528
|
-
* @param {vertexvis.protobuf.stream.VolumeIntersectionQuery} message VolumeIntersectionQuery
|
|
23529
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
23530
|
-
* @returns {Object.<string,*>} Plain object
|
|
23531
|
-
*/
|
|
23532
|
-
VolumeIntersectionQuery.toObject = function toObject(message, options) {
|
|
23533
|
-
if (!options)
|
|
23534
|
-
options = {};
|
|
23535
|
-
let object = {};
|
|
23536
|
-
if (options.defaults) {
|
|
23537
|
-
object.exclusive = false;
|
|
23538
|
-
object.viewport = null;
|
|
23539
|
-
}
|
|
23540
|
-
if (message.frustumByRectangle != null && message.hasOwnProperty("frustumByRectangle")) {
|
|
23541
|
-
object.frustumByRectangle = $root$1.vertexvis.protobuf.stream.FrustumByRectangle.toObject(message.frustumByRectangle, options);
|
|
23542
|
-
if (options.oneofs)
|
|
23543
|
-
object.volume = "frustumByRectangle";
|
|
23544
|
-
}
|
|
23545
|
-
if (message.exclusive != null && message.hasOwnProperty("exclusive"))
|
|
23546
|
-
object.exclusive = message.exclusive;
|
|
23547
|
-
if (message.viewport != null && message.hasOwnProperty("viewport"))
|
|
23548
|
-
object.viewport = $root$1.vertexvis.protobuf.stream.Dimensions.toObject(message.viewport, options);
|
|
23549
|
-
return object;
|
|
23550
|
-
};
|
|
23551
|
-
|
|
23552
|
-
/**
|
|
23553
|
-
* Converts this VolumeIntersectionQuery to JSON.
|
|
23554
|
-
* @function toJSON
|
|
23555
|
-
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
23556
|
-
* @instance
|
|
23557
|
-
* @returns {Object.<string,*>} JSON object
|
|
23558
|
-
*/
|
|
23559
|
-
VolumeIntersectionQuery.prototype.toJSON = function toJSON() {
|
|
23560
|
-
return this.constructor.toObject(this, minimal$2.util.toJSONOptions);
|
|
23561
|
-
};
|
|
23562
|
-
|
|
23563
|
-
return VolumeIntersectionQuery;
|
|
23564
|
-
})();
|
|
23565
|
-
|
|
23566
23114
|
stream.SceneTreeRangeQuery = (function() {
|
|
23567
23115
|
|
|
23568
23116
|
/**
|
|
@@ -26151,7 +25699,6 @@ const vertexvis$1 = $root$1.vertexvis = (() => {
|
|
|
26151
25699
|
* @property {vertexvis.protobuf.stream.ISceneTreeRangeQuery|null} [sceneTreeRange] SceneOperation sceneTreeRange
|
|
26152
25700
|
* @property {vertexvis.protobuf.stream.IMetadataFilterQuery|null} [metadata] SceneOperation metadata
|
|
26153
25701
|
* @property {vertexvis.protobuf.stream.IOverrideQuery|null} [override] SceneOperation override
|
|
26154
|
-
* @property {vertexvis.protobuf.stream.IVolumeIntersectionQuery|null} [volume] SceneOperation volume
|
|
26155
25702
|
* @property {Array.<vertexvis.protobuf.stream.IOperationType>|null} [operationTypes] SceneOperation operationTypes
|
|
26156
25703
|
*/
|
|
26157
25704
|
|
|
@@ -26235,14 +25782,6 @@ const vertexvis$1 = $root$1.vertexvis = (() => {
|
|
|
26235
25782
|
*/
|
|
26236
25783
|
SceneOperation.prototype.override = null;
|
|
26237
25784
|
|
|
26238
|
-
/**
|
|
26239
|
-
* SceneOperation volume.
|
|
26240
|
-
* @member {vertexvis.protobuf.stream.IVolumeIntersectionQuery|null|undefined} volume
|
|
26241
|
-
* @memberof vertexvis.protobuf.stream.SceneOperation
|
|
26242
|
-
* @instance
|
|
26243
|
-
*/
|
|
26244
|
-
SceneOperation.prototype.volume = null;
|
|
26245
|
-
|
|
26246
25785
|
/**
|
|
26247
25786
|
* SceneOperation operationTypes.
|
|
26248
25787
|
* @member {Array.<vertexvis.protobuf.stream.IOperationType>} operationTypes
|
|
@@ -26256,12 +25795,12 @@ const vertexvis$1 = $root$1.vertexvis = (() => {
|
|
|
26256
25795
|
|
|
26257
25796
|
/**
|
|
26258
25797
|
* SceneOperation query.
|
|
26259
|
-
* @member {"item"|"or"|"and"|"all"|"point"|"sceneTreeRange"|"metadata"|"override"|
|
|
25798
|
+
* @member {"item"|"or"|"and"|"all"|"point"|"sceneTreeRange"|"metadata"|"override"|undefined} query
|
|
26260
25799
|
* @memberof vertexvis.protobuf.stream.SceneOperation
|
|
26261
25800
|
* @instance
|
|
26262
25801
|
*/
|
|
26263
25802
|
Object.defineProperty(SceneOperation.prototype, "query", {
|
|
26264
|
-
get: $util$1.oneOfGetter($oneOfFields = ["item", "or", "and", "all", "point", "sceneTreeRange", "metadata", "override"
|
|
25803
|
+
get: $util$1.oneOfGetter($oneOfFields = ["item", "or", "and", "all", "point", "sceneTreeRange", "metadata", "override"]),
|
|
26265
25804
|
set: $util$1.oneOfSetter($oneOfFields)
|
|
26266
25805
|
});
|
|
26267
25806
|
|
|
@@ -26308,8 +25847,6 @@ const vertexvis$1 = $root$1.vertexvis = (() => {
|
|
|
26308
25847
|
$root$1.vertexvis.protobuf.stream.MetadataFilterQuery.encode(message.metadata, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
26309
25848
|
if (message.override != null && Object.hasOwnProperty.call(message, "override"))
|
|
26310
25849
|
$root$1.vertexvis.protobuf.stream.OverrideQuery.encode(message.override, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
26311
|
-
if (message.volume != null && Object.hasOwnProperty.call(message, "volume"))
|
|
26312
|
-
$root$1.vertexvis.protobuf.stream.VolumeIntersectionQuery.encode(message.volume, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
26313
25850
|
return writer;
|
|
26314
25851
|
};
|
|
26315
25852
|
|
|
@@ -26368,9 +25905,6 @@ const vertexvis$1 = $root$1.vertexvis = (() => {
|
|
|
26368
25905
|
case 9:
|
|
26369
25906
|
message.override = $root$1.vertexvis.protobuf.stream.OverrideQuery.decode(reader, reader.uint32());
|
|
26370
25907
|
break;
|
|
26371
|
-
case 10:
|
|
26372
|
-
message.volume = $root$1.vertexvis.protobuf.stream.VolumeIntersectionQuery.decode(reader, reader.uint32());
|
|
26373
|
-
break;
|
|
26374
25908
|
case 4:
|
|
26375
25909
|
if (!(message.operationTypes && message.operationTypes.length))
|
|
26376
25910
|
message.operationTypes = [];
|
|
@@ -26490,16 +26024,6 @@ const vertexvis$1 = $root$1.vertexvis = (() => {
|
|
|
26490
26024
|
return "override." + error;
|
|
26491
26025
|
}
|
|
26492
26026
|
}
|
|
26493
|
-
if (message.volume != null && message.hasOwnProperty("volume")) {
|
|
26494
|
-
if (properties.query === 1)
|
|
26495
|
-
return "query: multiple values";
|
|
26496
|
-
properties.query = 1;
|
|
26497
|
-
{
|
|
26498
|
-
let error = $root$1.vertexvis.protobuf.stream.VolumeIntersectionQuery.verify(message.volume);
|
|
26499
|
-
if (error)
|
|
26500
|
-
return "volume." + error;
|
|
26501
|
-
}
|
|
26502
|
-
}
|
|
26503
26027
|
if (message.operationTypes != null && message.hasOwnProperty("operationTypes")) {
|
|
26504
26028
|
if (!Array.isArray(message.operationTypes))
|
|
26505
26029
|
return "operationTypes: array expected";
|
|
@@ -26564,11 +26088,6 @@ const vertexvis$1 = $root$1.vertexvis = (() => {
|
|
|
26564
26088
|
throw TypeError(".vertexvis.protobuf.stream.SceneOperation.override: object expected");
|
|
26565
26089
|
message.override = $root$1.vertexvis.protobuf.stream.OverrideQuery.fromObject(object.override);
|
|
26566
26090
|
}
|
|
26567
|
-
if (object.volume != null) {
|
|
26568
|
-
if (typeof object.volume !== "object")
|
|
26569
|
-
throw TypeError(".vertexvis.protobuf.stream.SceneOperation.volume: object expected");
|
|
26570
|
-
message.volume = $root$1.vertexvis.protobuf.stream.VolumeIntersectionQuery.fromObject(object.volume);
|
|
26571
|
-
}
|
|
26572
26091
|
if (object.operationTypes) {
|
|
26573
26092
|
if (!Array.isArray(object.operationTypes))
|
|
26574
26093
|
throw TypeError(".vertexvis.protobuf.stream.SceneOperation.operationTypes: array expected");
|
|
@@ -26642,11 +26161,6 @@ const vertexvis$1 = $root$1.vertexvis = (() => {
|
|
|
26642
26161
|
if (options.oneofs)
|
|
26643
26162
|
object.query = "override";
|
|
26644
26163
|
}
|
|
26645
|
-
if (message.volume != null && message.hasOwnProperty("volume")) {
|
|
26646
|
-
object.volume = $root$1.vertexvis.protobuf.stream.VolumeIntersectionQuery.toObject(message.volume, options);
|
|
26647
|
-
if (options.oneofs)
|
|
26648
|
-
object.query = "volume";
|
|
26649
|
-
}
|
|
26650
26164
|
return object;
|
|
26651
26165
|
};
|
|
26652
26166
|
|
|
@@ -61845,458 +61359,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
61845
61359
|
return PointQuery;
|
|
61846
61360
|
})();
|
|
61847
61361
|
|
|
61848
|
-
stream.FrustumByRectangle = (function() {
|
|
61849
|
-
|
|
61850
|
-
/**
|
|
61851
|
-
* Properties of a FrustumByRectangle.
|
|
61852
|
-
* @memberof vertexvis.protobuf.stream
|
|
61853
|
-
* @interface IFrustumByRectangle
|
|
61854
|
-
* @property {vertexvis.protobuf.stream.IRectangle|null} [rectangle] FrustumByRectangle rectangle
|
|
61855
|
-
*/
|
|
61856
|
-
|
|
61857
|
-
/**
|
|
61858
|
-
* Constructs a new FrustumByRectangle.
|
|
61859
|
-
* @memberof vertexvis.protobuf.stream
|
|
61860
|
-
* @classdesc Represents a FrustumByRectangle.
|
|
61861
|
-
* @implements IFrustumByRectangle
|
|
61862
|
-
* @constructor
|
|
61863
|
-
* @param {vertexvis.protobuf.stream.IFrustumByRectangle=} [properties] Properties to set
|
|
61864
|
-
*/
|
|
61865
|
-
function FrustumByRectangle(properties) {
|
|
61866
|
-
if (properties)
|
|
61867
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
61868
|
-
if (properties[keys[i]] != null)
|
|
61869
|
-
this[keys[i]] = properties[keys[i]];
|
|
61870
|
-
}
|
|
61871
|
-
|
|
61872
|
-
/**
|
|
61873
|
-
* FrustumByRectangle rectangle.
|
|
61874
|
-
* @member {vertexvis.protobuf.stream.IRectangle|null|undefined} rectangle
|
|
61875
|
-
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
61876
|
-
* @instance
|
|
61877
|
-
*/
|
|
61878
|
-
FrustumByRectangle.prototype.rectangle = null;
|
|
61879
|
-
|
|
61880
|
-
/**
|
|
61881
|
-
* Creates a new FrustumByRectangle instance using the specified properties.
|
|
61882
|
-
* @function create
|
|
61883
|
-
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
61884
|
-
* @static
|
|
61885
|
-
* @param {vertexvis.protobuf.stream.IFrustumByRectangle=} [properties] Properties to set
|
|
61886
|
-
* @returns {vertexvis.protobuf.stream.FrustumByRectangle} FrustumByRectangle instance
|
|
61887
|
-
*/
|
|
61888
|
-
FrustumByRectangle.create = function create(properties) {
|
|
61889
|
-
return new FrustumByRectangle(properties);
|
|
61890
|
-
};
|
|
61891
|
-
|
|
61892
|
-
/**
|
|
61893
|
-
* Encodes the specified FrustumByRectangle message. Does not implicitly {@link vertexvis.protobuf.stream.FrustumByRectangle.verify|verify} messages.
|
|
61894
|
-
* @function encode
|
|
61895
|
-
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
61896
|
-
* @static
|
|
61897
|
-
* @param {vertexvis.protobuf.stream.IFrustumByRectangle} message FrustumByRectangle message or plain object to encode
|
|
61898
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
61899
|
-
* @returns {$protobuf.Writer} Writer
|
|
61900
|
-
*/
|
|
61901
|
-
FrustumByRectangle.encode = function encode(message, writer) {
|
|
61902
|
-
if (!writer)
|
|
61903
|
-
writer = $Writer.create();
|
|
61904
|
-
if (message.rectangle != null && Object.hasOwnProperty.call(message, "rectangle"))
|
|
61905
|
-
$root.vertexvis.protobuf.stream.Rectangle.encode(message.rectangle, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
61906
|
-
return writer;
|
|
61907
|
-
};
|
|
61908
|
-
|
|
61909
|
-
/**
|
|
61910
|
-
* Encodes the specified FrustumByRectangle message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.FrustumByRectangle.verify|verify} messages.
|
|
61911
|
-
* @function encodeDelimited
|
|
61912
|
-
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
61913
|
-
* @static
|
|
61914
|
-
* @param {vertexvis.protobuf.stream.IFrustumByRectangle} message FrustumByRectangle message or plain object to encode
|
|
61915
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
61916
|
-
* @returns {$protobuf.Writer} Writer
|
|
61917
|
-
*/
|
|
61918
|
-
FrustumByRectangle.encodeDelimited = function encodeDelimited(message, writer) {
|
|
61919
|
-
return this.encode(message, writer).ldelim();
|
|
61920
|
-
};
|
|
61921
|
-
|
|
61922
|
-
/**
|
|
61923
|
-
* Decodes a FrustumByRectangle message from the specified reader or buffer.
|
|
61924
|
-
* @function decode
|
|
61925
|
-
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
61926
|
-
* @static
|
|
61927
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
61928
|
-
* @param {number} [length] Message length if known beforehand
|
|
61929
|
-
* @returns {vertexvis.protobuf.stream.FrustumByRectangle} FrustumByRectangle
|
|
61930
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
61931
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
61932
|
-
*/
|
|
61933
|
-
FrustumByRectangle.decode = function decode(reader, length) {
|
|
61934
|
-
if (!(reader instanceof $Reader))
|
|
61935
|
-
reader = $Reader.create(reader);
|
|
61936
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.FrustumByRectangle();
|
|
61937
|
-
while (reader.pos < end) {
|
|
61938
|
-
let tag = reader.uint32();
|
|
61939
|
-
switch (tag >>> 3) {
|
|
61940
|
-
case 1:
|
|
61941
|
-
message.rectangle = $root.vertexvis.protobuf.stream.Rectangle.decode(reader, reader.uint32());
|
|
61942
|
-
break;
|
|
61943
|
-
default:
|
|
61944
|
-
reader.skipType(tag & 7);
|
|
61945
|
-
break;
|
|
61946
|
-
}
|
|
61947
|
-
}
|
|
61948
|
-
return message;
|
|
61949
|
-
};
|
|
61950
|
-
|
|
61951
|
-
/**
|
|
61952
|
-
* Decodes a FrustumByRectangle message from the specified reader or buffer, length delimited.
|
|
61953
|
-
* @function decodeDelimited
|
|
61954
|
-
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
61955
|
-
* @static
|
|
61956
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
61957
|
-
* @returns {vertexvis.protobuf.stream.FrustumByRectangle} FrustumByRectangle
|
|
61958
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
61959
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
61960
|
-
*/
|
|
61961
|
-
FrustumByRectangle.decodeDelimited = function decodeDelimited(reader) {
|
|
61962
|
-
if (!(reader instanceof $Reader))
|
|
61963
|
-
reader = new $Reader(reader);
|
|
61964
|
-
return this.decode(reader, reader.uint32());
|
|
61965
|
-
};
|
|
61966
|
-
|
|
61967
|
-
/**
|
|
61968
|
-
* Verifies a FrustumByRectangle message.
|
|
61969
|
-
* @function verify
|
|
61970
|
-
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
61971
|
-
* @static
|
|
61972
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
61973
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
61974
|
-
*/
|
|
61975
|
-
FrustumByRectangle.verify = function verify(message) {
|
|
61976
|
-
if (typeof message !== "object" || message === null)
|
|
61977
|
-
return "object expected";
|
|
61978
|
-
if (message.rectangle != null && message.hasOwnProperty("rectangle")) {
|
|
61979
|
-
let error = $root.vertexvis.protobuf.stream.Rectangle.verify(message.rectangle);
|
|
61980
|
-
if (error)
|
|
61981
|
-
return "rectangle." + error;
|
|
61982
|
-
}
|
|
61983
|
-
return null;
|
|
61984
|
-
};
|
|
61985
|
-
|
|
61986
|
-
/**
|
|
61987
|
-
* Creates a FrustumByRectangle message from a plain object. Also converts values to their respective internal types.
|
|
61988
|
-
* @function fromObject
|
|
61989
|
-
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
61990
|
-
* @static
|
|
61991
|
-
* @param {Object.<string,*>} object Plain object
|
|
61992
|
-
* @returns {vertexvis.protobuf.stream.FrustumByRectangle} FrustumByRectangle
|
|
61993
|
-
*/
|
|
61994
|
-
FrustumByRectangle.fromObject = function fromObject(object) {
|
|
61995
|
-
if (object instanceof $root.vertexvis.protobuf.stream.FrustumByRectangle)
|
|
61996
|
-
return object;
|
|
61997
|
-
let message = new $root.vertexvis.protobuf.stream.FrustumByRectangle();
|
|
61998
|
-
if (object.rectangle != null) {
|
|
61999
|
-
if (typeof object.rectangle !== "object")
|
|
62000
|
-
throw TypeError(".vertexvis.protobuf.stream.FrustumByRectangle.rectangle: object expected");
|
|
62001
|
-
message.rectangle = $root.vertexvis.protobuf.stream.Rectangle.fromObject(object.rectangle);
|
|
62002
|
-
}
|
|
62003
|
-
return message;
|
|
62004
|
-
};
|
|
62005
|
-
|
|
62006
|
-
/**
|
|
62007
|
-
* Creates a plain object from a FrustumByRectangle message. Also converts values to other types if specified.
|
|
62008
|
-
* @function toObject
|
|
62009
|
-
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
62010
|
-
* @static
|
|
62011
|
-
* @param {vertexvis.protobuf.stream.FrustumByRectangle} message FrustumByRectangle
|
|
62012
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
62013
|
-
* @returns {Object.<string,*>} Plain object
|
|
62014
|
-
*/
|
|
62015
|
-
FrustumByRectangle.toObject = function toObject(message, options) {
|
|
62016
|
-
if (!options)
|
|
62017
|
-
options = {};
|
|
62018
|
-
let object = {};
|
|
62019
|
-
if (options.defaults)
|
|
62020
|
-
object.rectangle = null;
|
|
62021
|
-
if (message.rectangle != null && message.hasOwnProperty("rectangle"))
|
|
62022
|
-
object.rectangle = $root.vertexvis.protobuf.stream.Rectangle.toObject(message.rectangle, options);
|
|
62023
|
-
return object;
|
|
62024
|
-
};
|
|
62025
|
-
|
|
62026
|
-
/**
|
|
62027
|
-
* Converts this FrustumByRectangle to JSON.
|
|
62028
|
-
* @function toJSON
|
|
62029
|
-
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
62030
|
-
* @instance
|
|
62031
|
-
* @returns {Object.<string,*>} JSON object
|
|
62032
|
-
*/
|
|
62033
|
-
FrustumByRectangle.prototype.toJSON = function toJSON() {
|
|
62034
|
-
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
62035
|
-
};
|
|
62036
|
-
|
|
62037
|
-
return FrustumByRectangle;
|
|
62038
|
-
})();
|
|
62039
|
-
|
|
62040
|
-
stream.VolumeIntersectionQuery = (function() {
|
|
62041
|
-
|
|
62042
|
-
/**
|
|
62043
|
-
* Properties of a VolumeIntersectionQuery.
|
|
62044
|
-
* @memberof vertexvis.protobuf.stream
|
|
62045
|
-
* @interface IVolumeIntersectionQuery
|
|
62046
|
-
* @property {vertexvis.protobuf.stream.IFrustumByRectangle|null} [frustumByRectangle] VolumeIntersectionQuery frustumByRectangle
|
|
62047
|
-
* @property {boolean|null} [exclusive] VolumeIntersectionQuery exclusive
|
|
62048
|
-
* @property {vertexvis.protobuf.stream.IDimensions|null} [viewport] VolumeIntersectionQuery viewport
|
|
62049
|
-
*/
|
|
62050
|
-
|
|
62051
|
-
/**
|
|
62052
|
-
* Constructs a new VolumeIntersectionQuery.
|
|
62053
|
-
* @memberof vertexvis.protobuf.stream
|
|
62054
|
-
* @classdesc Represents a VolumeIntersectionQuery.
|
|
62055
|
-
* @implements IVolumeIntersectionQuery
|
|
62056
|
-
* @constructor
|
|
62057
|
-
* @param {vertexvis.protobuf.stream.IVolumeIntersectionQuery=} [properties] Properties to set
|
|
62058
|
-
*/
|
|
62059
|
-
function VolumeIntersectionQuery(properties) {
|
|
62060
|
-
if (properties)
|
|
62061
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
62062
|
-
if (properties[keys[i]] != null)
|
|
62063
|
-
this[keys[i]] = properties[keys[i]];
|
|
62064
|
-
}
|
|
62065
|
-
|
|
62066
|
-
/**
|
|
62067
|
-
* VolumeIntersectionQuery frustumByRectangle.
|
|
62068
|
-
* @member {vertexvis.protobuf.stream.IFrustumByRectangle|null|undefined} frustumByRectangle
|
|
62069
|
-
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
62070
|
-
* @instance
|
|
62071
|
-
*/
|
|
62072
|
-
VolumeIntersectionQuery.prototype.frustumByRectangle = null;
|
|
62073
|
-
|
|
62074
|
-
/**
|
|
62075
|
-
* VolumeIntersectionQuery exclusive.
|
|
62076
|
-
* @member {boolean} exclusive
|
|
62077
|
-
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
62078
|
-
* @instance
|
|
62079
|
-
*/
|
|
62080
|
-
VolumeIntersectionQuery.prototype.exclusive = false;
|
|
62081
|
-
|
|
62082
|
-
/**
|
|
62083
|
-
* VolumeIntersectionQuery viewport.
|
|
62084
|
-
* @member {vertexvis.protobuf.stream.IDimensions|null|undefined} viewport
|
|
62085
|
-
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
62086
|
-
* @instance
|
|
62087
|
-
*/
|
|
62088
|
-
VolumeIntersectionQuery.prototype.viewport = null;
|
|
62089
|
-
|
|
62090
|
-
// OneOf field names bound to virtual getters and setters
|
|
62091
|
-
let $oneOfFields;
|
|
62092
|
-
|
|
62093
|
-
/**
|
|
62094
|
-
* VolumeIntersectionQuery volume.
|
|
62095
|
-
* @member {"frustumByRectangle"|undefined} volume
|
|
62096
|
-
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
62097
|
-
* @instance
|
|
62098
|
-
*/
|
|
62099
|
-
Object.defineProperty(VolumeIntersectionQuery.prototype, "volume", {
|
|
62100
|
-
get: $util.oneOfGetter($oneOfFields = ["frustumByRectangle"]),
|
|
62101
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
62102
|
-
});
|
|
62103
|
-
|
|
62104
|
-
/**
|
|
62105
|
-
* Creates a new VolumeIntersectionQuery instance using the specified properties.
|
|
62106
|
-
* @function create
|
|
62107
|
-
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
62108
|
-
* @static
|
|
62109
|
-
* @param {vertexvis.protobuf.stream.IVolumeIntersectionQuery=} [properties] Properties to set
|
|
62110
|
-
* @returns {vertexvis.protobuf.stream.VolumeIntersectionQuery} VolumeIntersectionQuery instance
|
|
62111
|
-
*/
|
|
62112
|
-
VolumeIntersectionQuery.create = function create(properties) {
|
|
62113
|
-
return new VolumeIntersectionQuery(properties);
|
|
62114
|
-
};
|
|
62115
|
-
|
|
62116
|
-
/**
|
|
62117
|
-
* Encodes the specified VolumeIntersectionQuery message. Does not implicitly {@link vertexvis.protobuf.stream.VolumeIntersectionQuery.verify|verify} messages.
|
|
62118
|
-
* @function encode
|
|
62119
|
-
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
62120
|
-
* @static
|
|
62121
|
-
* @param {vertexvis.protobuf.stream.IVolumeIntersectionQuery} message VolumeIntersectionQuery message or plain object to encode
|
|
62122
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62123
|
-
* @returns {$protobuf.Writer} Writer
|
|
62124
|
-
*/
|
|
62125
|
-
VolumeIntersectionQuery.encode = function encode(message, writer) {
|
|
62126
|
-
if (!writer)
|
|
62127
|
-
writer = $Writer.create();
|
|
62128
|
-
if (message.frustumByRectangle != null && Object.hasOwnProperty.call(message, "frustumByRectangle"))
|
|
62129
|
-
$root.vertexvis.protobuf.stream.FrustumByRectangle.encode(message.frustumByRectangle, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
62130
|
-
if (message.exclusive != null && Object.hasOwnProperty.call(message, "exclusive"))
|
|
62131
|
-
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.exclusive);
|
|
62132
|
-
if (message.viewport != null && Object.hasOwnProperty.call(message, "viewport"))
|
|
62133
|
-
$root.vertexvis.protobuf.stream.Dimensions.encode(message.viewport, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
62134
|
-
return writer;
|
|
62135
|
-
};
|
|
62136
|
-
|
|
62137
|
-
/**
|
|
62138
|
-
* Encodes the specified VolumeIntersectionQuery message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.VolumeIntersectionQuery.verify|verify} messages.
|
|
62139
|
-
* @function encodeDelimited
|
|
62140
|
-
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
62141
|
-
* @static
|
|
62142
|
-
* @param {vertexvis.protobuf.stream.IVolumeIntersectionQuery} message VolumeIntersectionQuery message or plain object to encode
|
|
62143
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62144
|
-
* @returns {$protobuf.Writer} Writer
|
|
62145
|
-
*/
|
|
62146
|
-
VolumeIntersectionQuery.encodeDelimited = function encodeDelimited(message, writer) {
|
|
62147
|
-
return this.encode(message, writer).ldelim();
|
|
62148
|
-
};
|
|
62149
|
-
|
|
62150
|
-
/**
|
|
62151
|
-
* Decodes a VolumeIntersectionQuery message from the specified reader or buffer.
|
|
62152
|
-
* @function decode
|
|
62153
|
-
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
62154
|
-
* @static
|
|
62155
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62156
|
-
* @param {number} [length] Message length if known beforehand
|
|
62157
|
-
* @returns {vertexvis.protobuf.stream.VolumeIntersectionQuery} VolumeIntersectionQuery
|
|
62158
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62159
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62160
|
-
*/
|
|
62161
|
-
VolumeIntersectionQuery.decode = function decode(reader, length) {
|
|
62162
|
-
if (!(reader instanceof $Reader))
|
|
62163
|
-
reader = $Reader.create(reader);
|
|
62164
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.VolumeIntersectionQuery();
|
|
62165
|
-
while (reader.pos < end) {
|
|
62166
|
-
let tag = reader.uint32();
|
|
62167
|
-
switch (tag >>> 3) {
|
|
62168
|
-
case 1:
|
|
62169
|
-
message.frustumByRectangle = $root.vertexvis.protobuf.stream.FrustumByRectangle.decode(reader, reader.uint32());
|
|
62170
|
-
break;
|
|
62171
|
-
case 2:
|
|
62172
|
-
message.exclusive = reader.bool();
|
|
62173
|
-
break;
|
|
62174
|
-
case 3:
|
|
62175
|
-
message.viewport = $root.vertexvis.protobuf.stream.Dimensions.decode(reader, reader.uint32());
|
|
62176
|
-
break;
|
|
62177
|
-
default:
|
|
62178
|
-
reader.skipType(tag & 7);
|
|
62179
|
-
break;
|
|
62180
|
-
}
|
|
62181
|
-
}
|
|
62182
|
-
return message;
|
|
62183
|
-
};
|
|
62184
|
-
|
|
62185
|
-
/**
|
|
62186
|
-
* Decodes a VolumeIntersectionQuery message from the specified reader or buffer, length delimited.
|
|
62187
|
-
* @function decodeDelimited
|
|
62188
|
-
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
62189
|
-
* @static
|
|
62190
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62191
|
-
* @returns {vertexvis.protobuf.stream.VolumeIntersectionQuery} VolumeIntersectionQuery
|
|
62192
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62193
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62194
|
-
*/
|
|
62195
|
-
VolumeIntersectionQuery.decodeDelimited = function decodeDelimited(reader) {
|
|
62196
|
-
if (!(reader instanceof $Reader))
|
|
62197
|
-
reader = new $Reader(reader);
|
|
62198
|
-
return this.decode(reader, reader.uint32());
|
|
62199
|
-
};
|
|
62200
|
-
|
|
62201
|
-
/**
|
|
62202
|
-
* Verifies a VolumeIntersectionQuery message.
|
|
62203
|
-
* @function verify
|
|
62204
|
-
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
62205
|
-
* @static
|
|
62206
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
62207
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
62208
|
-
*/
|
|
62209
|
-
VolumeIntersectionQuery.verify = function verify(message) {
|
|
62210
|
-
if (typeof message !== "object" || message === null)
|
|
62211
|
-
return "object expected";
|
|
62212
|
-
if (message.frustumByRectangle != null && message.hasOwnProperty("frustumByRectangle")) {
|
|
62213
|
-
{
|
|
62214
|
-
let error = $root.vertexvis.protobuf.stream.FrustumByRectangle.verify(message.frustumByRectangle);
|
|
62215
|
-
if (error)
|
|
62216
|
-
return "frustumByRectangle." + error;
|
|
62217
|
-
}
|
|
62218
|
-
}
|
|
62219
|
-
if (message.exclusive != null && message.hasOwnProperty("exclusive"))
|
|
62220
|
-
if (typeof message.exclusive !== "boolean")
|
|
62221
|
-
return "exclusive: boolean expected";
|
|
62222
|
-
if (message.viewport != null && message.hasOwnProperty("viewport")) {
|
|
62223
|
-
let error = $root.vertexvis.protobuf.stream.Dimensions.verify(message.viewport);
|
|
62224
|
-
if (error)
|
|
62225
|
-
return "viewport." + error;
|
|
62226
|
-
}
|
|
62227
|
-
return null;
|
|
62228
|
-
};
|
|
62229
|
-
|
|
62230
|
-
/**
|
|
62231
|
-
* Creates a VolumeIntersectionQuery message from a plain object. Also converts values to their respective internal types.
|
|
62232
|
-
* @function fromObject
|
|
62233
|
-
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
62234
|
-
* @static
|
|
62235
|
-
* @param {Object.<string,*>} object Plain object
|
|
62236
|
-
* @returns {vertexvis.protobuf.stream.VolumeIntersectionQuery} VolumeIntersectionQuery
|
|
62237
|
-
*/
|
|
62238
|
-
VolumeIntersectionQuery.fromObject = function fromObject(object) {
|
|
62239
|
-
if (object instanceof $root.vertexvis.protobuf.stream.VolumeIntersectionQuery)
|
|
62240
|
-
return object;
|
|
62241
|
-
let message = new $root.vertexvis.protobuf.stream.VolumeIntersectionQuery();
|
|
62242
|
-
if (object.frustumByRectangle != null) {
|
|
62243
|
-
if (typeof object.frustumByRectangle !== "object")
|
|
62244
|
-
throw TypeError(".vertexvis.protobuf.stream.VolumeIntersectionQuery.frustumByRectangle: object expected");
|
|
62245
|
-
message.frustumByRectangle = $root.vertexvis.protobuf.stream.FrustumByRectangle.fromObject(object.frustumByRectangle);
|
|
62246
|
-
}
|
|
62247
|
-
if (object.exclusive != null)
|
|
62248
|
-
message.exclusive = Boolean(object.exclusive);
|
|
62249
|
-
if (object.viewport != null) {
|
|
62250
|
-
if (typeof object.viewport !== "object")
|
|
62251
|
-
throw TypeError(".vertexvis.protobuf.stream.VolumeIntersectionQuery.viewport: object expected");
|
|
62252
|
-
message.viewport = $root.vertexvis.protobuf.stream.Dimensions.fromObject(object.viewport);
|
|
62253
|
-
}
|
|
62254
|
-
return message;
|
|
62255
|
-
};
|
|
62256
|
-
|
|
62257
|
-
/**
|
|
62258
|
-
* Creates a plain object from a VolumeIntersectionQuery message. Also converts values to other types if specified.
|
|
62259
|
-
* @function toObject
|
|
62260
|
-
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
62261
|
-
* @static
|
|
62262
|
-
* @param {vertexvis.protobuf.stream.VolumeIntersectionQuery} message VolumeIntersectionQuery
|
|
62263
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
62264
|
-
* @returns {Object.<string,*>} Plain object
|
|
62265
|
-
*/
|
|
62266
|
-
VolumeIntersectionQuery.toObject = function toObject(message, options) {
|
|
62267
|
-
if (!options)
|
|
62268
|
-
options = {};
|
|
62269
|
-
let object = {};
|
|
62270
|
-
if (options.defaults) {
|
|
62271
|
-
object.exclusive = false;
|
|
62272
|
-
object.viewport = null;
|
|
62273
|
-
}
|
|
62274
|
-
if (message.frustumByRectangle != null && message.hasOwnProperty("frustumByRectangle")) {
|
|
62275
|
-
object.frustumByRectangle = $root.vertexvis.protobuf.stream.FrustumByRectangle.toObject(message.frustumByRectangle, options);
|
|
62276
|
-
if (options.oneofs)
|
|
62277
|
-
object.volume = "frustumByRectangle";
|
|
62278
|
-
}
|
|
62279
|
-
if (message.exclusive != null && message.hasOwnProperty("exclusive"))
|
|
62280
|
-
object.exclusive = message.exclusive;
|
|
62281
|
-
if (message.viewport != null && message.hasOwnProperty("viewport"))
|
|
62282
|
-
object.viewport = $root.vertexvis.protobuf.stream.Dimensions.toObject(message.viewport, options);
|
|
62283
|
-
return object;
|
|
62284
|
-
};
|
|
62285
|
-
|
|
62286
|
-
/**
|
|
62287
|
-
* Converts this VolumeIntersectionQuery to JSON.
|
|
62288
|
-
* @function toJSON
|
|
62289
|
-
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
62290
|
-
* @instance
|
|
62291
|
-
* @returns {Object.<string,*>} JSON object
|
|
62292
|
-
*/
|
|
62293
|
-
VolumeIntersectionQuery.prototype.toJSON = function toJSON() {
|
|
62294
|
-
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
62295
|
-
};
|
|
62296
|
-
|
|
62297
|
-
return VolumeIntersectionQuery;
|
|
62298
|
-
})();
|
|
62299
|
-
|
|
62300
61362
|
stream.SceneTreeRangeQuery = (function() {
|
|
62301
61363
|
|
|
62302
61364
|
/**
|
|
@@ -64885,7 +63947,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
64885
63947
|
* @property {vertexvis.protobuf.stream.ISceneTreeRangeQuery|null} [sceneTreeRange] SceneOperation sceneTreeRange
|
|
64886
63948
|
* @property {vertexvis.protobuf.stream.IMetadataFilterQuery|null} [metadata] SceneOperation metadata
|
|
64887
63949
|
* @property {vertexvis.protobuf.stream.IOverrideQuery|null} [override] SceneOperation override
|
|
64888
|
-
* @property {vertexvis.protobuf.stream.IVolumeIntersectionQuery|null} [volume] SceneOperation volume
|
|
64889
63950
|
* @property {Array.<vertexvis.protobuf.stream.IOperationType>|null} [operationTypes] SceneOperation operationTypes
|
|
64890
63951
|
*/
|
|
64891
63952
|
|
|
@@ -64969,14 +64030,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
64969
64030
|
*/
|
|
64970
64031
|
SceneOperation.prototype.override = null;
|
|
64971
64032
|
|
|
64972
|
-
/**
|
|
64973
|
-
* SceneOperation volume.
|
|
64974
|
-
* @member {vertexvis.protobuf.stream.IVolumeIntersectionQuery|null|undefined} volume
|
|
64975
|
-
* @memberof vertexvis.protobuf.stream.SceneOperation
|
|
64976
|
-
* @instance
|
|
64977
|
-
*/
|
|
64978
|
-
SceneOperation.prototype.volume = null;
|
|
64979
|
-
|
|
64980
64033
|
/**
|
|
64981
64034
|
* SceneOperation operationTypes.
|
|
64982
64035
|
* @member {Array.<vertexvis.protobuf.stream.IOperationType>} operationTypes
|
|
@@ -64990,12 +64043,12 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
64990
64043
|
|
|
64991
64044
|
/**
|
|
64992
64045
|
* SceneOperation query.
|
|
64993
|
-
* @member {"item"|"or"|"and"|"all"|"point"|"sceneTreeRange"|"metadata"|"override"|
|
|
64046
|
+
* @member {"item"|"or"|"and"|"all"|"point"|"sceneTreeRange"|"metadata"|"override"|undefined} query
|
|
64994
64047
|
* @memberof vertexvis.protobuf.stream.SceneOperation
|
|
64995
64048
|
* @instance
|
|
64996
64049
|
*/
|
|
64997
64050
|
Object.defineProperty(SceneOperation.prototype, "query", {
|
|
64998
|
-
get: $util.oneOfGetter($oneOfFields = ["item", "or", "and", "all", "point", "sceneTreeRange", "metadata", "override"
|
|
64051
|
+
get: $util.oneOfGetter($oneOfFields = ["item", "or", "and", "all", "point", "sceneTreeRange", "metadata", "override"]),
|
|
64999
64052
|
set: $util.oneOfSetter($oneOfFields)
|
|
65000
64053
|
});
|
|
65001
64054
|
|
|
@@ -65042,8 +64095,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
65042
64095
|
$root.vertexvis.protobuf.stream.MetadataFilterQuery.encode(message.metadata, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
65043
64096
|
if (message.override != null && Object.hasOwnProperty.call(message, "override"))
|
|
65044
64097
|
$root.vertexvis.protobuf.stream.OverrideQuery.encode(message.override, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
65045
|
-
if (message.volume != null && Object.hasOwnProperty.call(message, "volume"))
|
|
65046
|
-
$root.vertexvis.protobuf.stream.VolumeIntersectionQuery.encode(message.volume, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
65047
64098
|
return writer;
|
|
65048
64099
|
};
|
|
65049
64100
|
|
|
@@ -65102,9 +64153,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
65102
64153
|
case 9:
|
|
65103
64154
|
message.override = $root.vertexvis.protobuf.stream.OverrideQuery.decode(reader, reader.uint32());
|
|
65104
64155
|
break;
|
|
65105
|
-
case 10:
|
|
65106
|
-
message.volume = $root.vertexvis.protobuf.stream.VolumeIntersectionQuery.decode(reader, reader.uint32());
|
|
65107
|
-
break;
|
|
65108
64156
|
case 4:
|
|
65109
64157
|
if (!(message.operationTypes && message.operationTypes.length))
|
|
65110
64158
|
message.operationTypes = [];
|
|
@@ -65224,16 +64272,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
65224
64272
|
return "override." + error;
|
|
65225
64273
|
}
|
|
65226
64274
|
}
|
|
65227
|
-
if (message.volume != null && message.hasOwnProperty("volume")) {
|
|
65228
|
-
if (properties.query === 1)
|
|
65229
|
-
return "query: multiple values";
|
|
65230
|
-
properties.query = 1;
|
|
65231
|
-
{
|
|
65232
|
-
let error = $root.vertexvis.protobuf.stream.VolumeIntersectionQuery.verify(message.volume);
|
|
65233
|
-
if (error)
|
|
65234
|
-
return "volume." + error;
|
|
65235
|
-
}
|
|
65236
|
-
}
|
|
65237
64275
|
if (message.operationTypes != null && message.hasOwnProperty("operationTypes")) {
|
|
65238
64276
|
if (!Array.isArray(message.operationTypes))
|
|
65239
64277
|
return "operationTypes: array expected";
|
|
@@ -65298,11 +64336,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
65298
64336
|
throw TypeError(".vertexvis.protobuf.stream.SceneOperation.override: object expected");
|
|
65299
64337
|
message.override = $root.vertexvis.protobuf.stream.OverrideQuery.fromObject(object.override);
|
|
65300
64338
|
}
|
|
65301
|
-
if (object.volume != null) {
|
|
65302
|
-
if (typeof object.volume !== "object")
|
|
65303
|
-
throw TypeError(".vertexvis.protobuf.stream.SceneOperation.volume: object expected");
|
|
65304
|
-
message.volume = $root.vertexvis.protobuf.stream.VolumeIntersectionQuery.fromObject(object.volume);
|
|
65305
|
-
}
|
|
65306
64339
|
if (object.operationTypes) {
|
|
65307
64340
|
if (!Array.isArray(object.operationTypes))
|
|
65308
64341
|
throw TypeError(".vertexvis.protobuf.stream.SceneOperation.operationTypes: array expected");
|
|
@@ -65376,11 +64409,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
65376
64409
|
if (options.oneofs)
|
|
65377
64410
|
object.query = "override";
|
|
65378
64411
|
}
|
|
65379
|
-
if (message.volume != null && message.hasOwnProperty("volume")) {
|
|
65380
|
-
object.volume = $root.vertexvis.protobuf.stream.VolumeIntersectionQuery.toObject(message.volume, options);
|
|
65381
|
-
if (options.oneofs)
|
|
65382
|
-
object.query = "volume";
|
|
65383
|
-
}
|
|
65384
64412
|
return object;
|
|
65385
64413
|
};
|
|
65386
64414
|
|
|
@@ -92476,16 +91504,6 @@ function buildSceneOperation(query, operations, context) {
|
|
|
92476
91504
|
},
|
|
92477
91505
|
operationTypes,
|
|
92478
91506
|
};
|
|
92479
|
-
case 'volume-intersection':
|
|
92480
|
-
return {
|
|
92481
|
-
volume: {
|
|
92482
|
-
frustumByRectangle: {
|
|
92483
|
-
rectangle: query.rectangle,
|
|
92484
|
-
},
|
|
92485
|
-
exclusive: true,
|
|
92486
|
-
viewport: context.dimensions,
|
|
92487
|
-
},
|
|
92488
|
-
};
|
|
92489
91507
|
default:
|
|
92490
91508
|
return {};
|
|
92491
91509
|
}
|
|
@@ -93129,9 +92147,6 @@ class RootQuery {
|
|
|
93129
92147
|
withPoint(point) {
|
|
93130
92148
|
return new PointQuery(point);
|
|
93131
92149
|
}
|
|
93132
|
-
withVolumeIntersection(rectangle) {
|
|
93133
|
-
return new VolumeIntersectionQuery(rectangle);
|
|
93134
|
-
}
|
|
93135
92150
|
}
|
|
93136
92151
|
class AllQuery {
|
|
93137
92152
|
build() {
|
|
@@ -93182,17 +92197,6 @@ class PointQuery {
|
|
|
93182
92197
|
};
|
|
93183
92198
|
}
|
|
93184
92199
|
}
|
|
93185
|
-
class VolumeIntersectionQuery {
|
|
93186
|
-
constructor(rectangle) {
|
|
93187
|
-
this.rectangle = rectangle;
|
|
93188
|
-
}
|
|
93189
|
-
build() {
|
|
93190
|
-
return {
|
|
93191
|
-
type: 'volume-intersection',
|
|
93192
|
-
rectangle: this.rectangle,
|
|
93193
|
-
};
|
|
93194
|
-
}
|
|
93195
|
-
}
|
|
93196
92200
|
class BulkQuery {
|
|
93197
92201
|
constructor(ids, type) {
|
|
93198
92202
|
this.ids = ids;
|
|
@@ -107025,177 +106029,6 @@ const ViewerDomRenderer = class extends HTMLElement$1 {
|
|
|
107025
106029
|
static get style() { return viewerDomRendererCss; }
|
|
107026
106030
|
};
|
|
107027
106031
|
|
|
107028
|
-
class ViewerDragSelectController {
|
|
107029
|
-
constructor(viewer, model) {
|
|
107030
|
-
this.viewer = viewer;
|
|
107031
|
-
this.model = model;
|
|
107032
|
-
this.selectFromBounds = this.selectFromBounds.bind(this);
|
|
107033
|
-
this.dragEndDisposable = this.model.onDragFinished(this.selectFromBounds);
|
|
107034
|
-
}
|
|
107035
|
-
dispose() {
|
|
107036
|
-
var _a;
|
|
107037
|
-
(_a = this.dragEndDisposable) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
107038
|
-
}
|
|
107039
|
-
async selectFromBounds(event) {
|
|
107040
|
-
const scene = await this.viewer.scene();
|
|
107041
|
-
await scene
|
|
107042
|
-
.items((op) => op.where((q) => q.withVolumeIntersection(event.rectangle)).select())
|
|
107043
|
-
.execute();
|
|
107044
|
-
}
|
|
107045
|
-
}
|
|
107046
|
-
|
|
107047
|
-
class ViewerDragSelectInteractionHandler {
|
|
107048
|
-
constructor(viewer, dragSelectModel) {
|
|
107049
|
-
this.viewer = viewer;
|
|
107050
|
-
this.dragSelectModel = dragSelectModel;
|
|
107051
|
-
this.handleDragBegin = this.handleDragBegin.bind(this);
|
|
107052
|
-
this.handleDrag = this.handleDrag.bind(this);
|
|
107053
|
-
this.handleDragEnd = this.handleDragEnd.bind(this);
|
|
107054
|
-
}
|
|
107055
|
-
initialize(element, api) {
|
|
107056
|
-
this.element = element;
|
|
107057
|
-
this.api = api;
|
|
107058
|
-
this.element.addEventListener('pointerdown', this.handleDragBegin);
|
|
107059
|
-
}
|
|
107060
|
-
dispose() {
|
|
107061
|
-
var _a, _b, _c;
|
|
107062
|
-
(_a = this.element) === null || _a === void 0 ? void 0 : _a.removeEventListener('pointerdown', this.handleDragBegin);
|
|
107063
|
-
(_b = this.element) === null || _b === void 0 ? void 0 : _b.removeEventListener('pointermove', this.handleDrag);
|
|
107064
|
-
(_c = this.element) === null || _c === void 0 ? void 0 : _c.removeEventListener('pointerup', this.handleDragEnd);
|
|
107065
|
-
}
|
|
107066
|
-
handleDragBegin(event) {
|
|
107067
|
-
var _a, _b;
|
|
107068
|
-
if (event.buttons === 1) {
|
|
107069
|
-
this.viewer.cameraControls = false;
|
|
107070
|
-
this.dragSelectModel.updateStartPoint(point.create(event.offsetX, event.offsetY));
|
|
107071
|
-
(_a = this.element) === null || _a === void 0 ? void 0 : _a.addEventListener('pointermove', this.handleDrag);
|
|
107072
|
-
(_b = this.element) === null || _b === void 0 ? void 0 : _b.addEventListener('pointerup', this.handleDragEnd);
|
|
107073
|
-
}
|
|
107074
|
-
}
|
|
107075
|
-
handleDrag(event) {
|
|
107076
|
-
this.dragSelectModel.updateEndPoint(point.create(event.offsetX, event.offsetY));
|
|
107077
|
-
}
|
|
107078
|
-
handleDragEnd() {
|
|
107079
|
-
var _a, _b;
|
|
107080
|
-
this.viewer.cameraControls = true;
|
|
107081
|
-
this.dragSelectModel.clear();
|
|
107082
|
-
(_a = this.element) === null || _a === void 0 ? void 0 : _a.removeEventListener('pointermove', this.handleDrag);
|
|
107083
|
-
(_b = this.element) === null || _b === void 0 ? void 0 : _b.removeEventListener('pointerup', this.handleDragEnd);
|
|
107084
|
-
}
|
|
107085
|
-
}
|
|
107086
|
-
|
|
107087
|
-
class ViewerDragSelectModel {
|
|
107088
|
-
constructor() {
|
|
107089
|
-
this.dragFinished = new EventDispatcher();
|
|
107090
|
-
this.boundsChanged = new EventDispatcher();
|
|
107091
|
-
}
|
|
107092
|
-
updateStartPoint(point) {
|
|
107093
|
-
this.dragStartPoint = point;
|
|
107094
|
-
}
|
|
107095
|
-
updateEndPoint(point$1) {
|
|
107096
|
-
var _a;
|
|
107097
|
-
this.dragEndPoint = point$1;
|
|
107098
|
-
this.direction =
|
|
107099
|
-
point.subtract(point$1, (_a = this.dragStartPoint) !== null && _a !== void 0 ? _a : point$1).x > 0
|
|
107100
|
-
? 'right'
|
|
107101
|
-
: 'left';
|
|
107102
|
-
this.boundsChanged.emit({
|
|
107103
|
-
rectangle: this.getDragBounds(),
|
|
107104
|
-
direction: this.getDragDirection(),
|
|
107105
|
-
});
|
|
107106
|
-
}
|
|
107107
|
-
clear() {
|
|
107108
|
-
this.dragFinished.emit({
|
|
107109
|
-
rectangle: this.getDragBounds(),
|
|
107110
|
-
direction: this.getDragDirection(),
|
|
107111
|
-
});
|
|
107112
|
-
this.dragStartPoint = undefined;
|
|
107113
|
-
this.dragEndPoint = undefined;
|
|
107114
|
-
this.boundsChanged.emit({});
|
|
107115
|
-
}
|
|
107116
|
-
onDragFinished(listener) {
|
|
107117
|
-
return this.dragFinished.on(listener);
|
|
107118
|
-
}
|
|
107119
|
-
onBoundsChanged(listener) {
|
|
107120
|
-
return this.boundsChanged.on(listener);
|
|
107121
|
-
}
|
|
107122
|
-
getDragBounds() {
|
|
107123
|
-
if (this.dragStartPoint != null && this.dragEndPoint != null) {
|
|
107124
|
-
return rectangle.fromPoints(this.dragStartPoint, this.dragEndPoint);
|
|
107125
|
-
}
|
|
107126
|
-
return rectangle.create(0, 0, 0, 0);
|
|
107127
|
-
}
|
|
107128
|
-
getDragDirection() {
|
|
107129
|
-
var _a;
|
|
107130
|
-
return (_a = this.direction) !== null && _a !== void 0 ? _a : 'right';
|
|
107131
|
-
}
|
|
107132
|
-
}
|
|
107133
|
-
|
|
107134
|
-
const viewerDragSelectCss = ":host{--viewer-drag-select-outline-exclusive-border-color:#5555ff;--viewer-drag-select-outline-exclusive-border-style:solid;--viewer-drag-select-outline-exclusive-fill-color:blue;--viewer-drag-select-outline-inclusive-border-color:#ff5555;--viewer-drag-select-outline-inclusive-border-style:dashed;--viewer-drag-select-outline-inclusive-fill-color:red;--viewer-drag-select-outline-fill-opacity:0.1}.outline{position:absolute}.outline.exclusive{border:3px var(--viewer-drag-select-outline-exclusive-border-style) var(--viewer-drag-select-outline-exclusive-border-color)}.outline.inclusive{border:3px var(--viewer-drag-select-outline-inclusive-border-style) var(--viewer-drag-select-outline-inclusive-border-color)}.fill{position:relative;width:100%;height:100%;opacity:var(--viewer-drag-select-outline-fill-opacity)}.fill.exclusive{background-color:var(--viewer-drag-select-outline-exclusive-fill-color)}.fill.inclusive{background-color:var(--viewer-drag-select-outline-inclusive-fill-color)}";
|
|
107135
|
-
|
|
107136
|
-
const ViewerDragSelect = class extends HTMLElement$1 {
|
|
107137
|
-
constructor() {
|
|
107138
|
-
super();
|
|
107139
|
-
this.__registerHost();
|
|
107140
|
-
this.__attachShadow();
|
|
107141
|
-
this.handleBoundsChanged = this.handleBoundsChanged.bind(this);
|
|
107142
|
-
}
|
|
107143
|
-
componentWillLoad() {
|
|
107144
|
-
this.interactionModel = new ViewerDragSelectModel();
|
|
107145
|
-
this.interactionModel.onBoundsChanged(this.handleBoundsChanged);
|
|
107146
|
-
this.handleViewerChanged(this.viewer);
|
|
107147
|
-
}
|
|
107148
|
-
disconnectedCallback() {
|
|
107149
|
-
var _a, _b;
|
|
107150
|
-
(_a = this.controller) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
107151
|
-
(_b = this.interactionHandler) === null || _b === void 0 ? void 0 : _b.dispose();
|
|
107152
|
-
}
|
|
107153
|
-
/**
|
|
107154
|
-
* @ignore
|
|
107155
|
-
*/
|
|
107156
|
-
handleViewerChanged(newViewer) {
|
|
107157
|
-
this.deregisterInteractionHandler();
|
|
107158
|
-
if ((newViewer === null || newViewer === void 0 ? void 0 : newViewer.stream) != null) {
|
|
107159
|
-
this.registerInteractionHandler(newViewer);
|
|
107160
|
-
this.controller = new ViewerDragSelectController(newViewer, this.interactionModel);
|
|
107161
|
-
}
|
|
107162
|
-
}
|
|
107163
|
-
/**
|
|
107164
|
-
* @ignore
|
|
107165
|
-
*/
|
|
107166
|
-
render() {
|
|
107167
|
-
return (h(Host, null, h("vertex-viewer-layer", null, this.dragRect != null && (h("div", { class: classnames('outline', {
|
|
107168
|
-
exclusive: this.dragDirection === 'right',
|
|
107169
|
-
inclusive: this.dragDirection === 'left',
|
|
107170
|
-
}), style: {
|
|
107171
|
-
left: `${this.dragRect.x}px`,
|
|
107172
|
-
top: `${this.dragRect.y}px`,
|
|
107173
|
-
width: `${this.dragRect.width}px`,
|
|
107174
|
-
height: `${this.dragRect.height}px`,
|
|
107175
|
-
} }, h("div", { class: classnames('fill', {
|
|
107176
|
-
exclusive: this.dragDirection === 'right',
|
|
107177
|
-
inclusive: this.dragDirection === 'left',
|
|
107178
|
-
}) }))))));
|
|
107179
|
-
}
|
|
107180
|
-
handleBoundsChanged(event) {
|
|
107181
|
-
this.dragRect = event.rectangle;
|
|
107182
|
-
this.dragDirection = event.direction;
|
|
107183
|
-
}
|
|
107184
|
-
registerInteractionHandler(viewer) {
|
|
107185
|
-
this.interactionHandler = new ViewerDragSelectInteractionHandler(viewer, this.interactionModel);
|
|
107186
|
-
viewer.registerInteractionHandler(this.interactionHandler);
|
|
107187
|
-
}
|
|
107188
|
-
deregisterInteractionHandler() {
|
|
107189
|
-
var _a;
|
|
107190
|
-
(_a = this.interactionHandler) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
107191
|
-
this.interactionHandler = undefined;
|
|
107192
|
-
}
|
|
107193
|
-
static get watchers() { return {
|
|
107194
|
-
"viewer": ["handleViewerChanged"]
|
|
107195
|
-
}; }
|
|
107196
|
-
static get style() { return viewerDragSelectCss; }
|
|
107197
|
-
};
|
|
107198
|
-
|
|
107199
106032
|
const viewerIconCss = ":host{display:inline-block;width:1em;height:1em;fill:currentColor}:host(.size-sm){font-size:16px}:host(.size-md){font-size:24px}:host(.size-lg){font-size:32px}svg{display:block;width:100%;height:100%}";
|
|
107200
106033
|
|
|
107201
106034
|
const ViewerIcon = class extends HTMLElement$1 {
|
|
@@ -107366,6 +106199,7 @@ const ViewerMarkup = class extends HTMLElement$1 {
|
|
|
107366
106199
|
this.__attachShadow();
|
|
107367
106200
|
this.markupAdded = createEvent(this, "markupAdded", 7);
|
|
107368
106201
|
this.markupRemoved = createEvent(this, "markupRemoved", 7);
|
|
106202
|
+
this.markupSelectionChanged = createEvent(this, "markupSelectionChanged", 7);
|
|
107369
106203
|
/**
|
|
107370
106204
|
* The type of markup to perform.
|
|
107371
106205
|
*/
|
|
@@ -107493,8 +106327,17 @@ const ViewerMarkup = class extends HTMLElement$1 {
|
|
|
107493
106327
|
async handleSelectedMarkupIdChanged() {
|
|
107494
106328
|
const markup = await this.getMarkupElements();
|
|
107495
106329
|
markup.forEach((m) => {
|
|
107496
|
-
|
|
106330
|
+
if (m.id === this.selectedMarkupId) {
|
|
106331
|
+
m.mode = 'edit';
|
|
106332
|
+
this.markupSelectionChanged.emit(m);
|
|
106333
|
+
}
|
|
106334
|
+
else {
|
|
106335
|
+
m.mode = '';
|
|
106336
|
+
}
|
|
107497
106337
|
});
|
|
106338
|
+
if (this.selectedMarkupId == null) {
|
|
106339
|
+
this.markupSelectionChanged.emit(undefined);
|
|
106340
|
+
}
|
|
107498
106341
|
}
|
|
107499
106342
|
/**
|
|
107500
106343
|
* @ignore
|
|
@@ -124999,7 +123842,6 @@ const VertexViewerDefaultToolbar = /*@__PURE__*/proxyCustomElement(ViewerDefault
|
|
|
124999
123842
|
const VertexViewerDomElement = /*@__PURE__*/proxyCustomElement(ViewerDomElement, [1,"vertex-viewer-dom-element",{"position":[1040],"positionJson":[1,"position"],"rotation":[1040],"rotationJson":[1,"rotation"],"quaternion":[1040],"quaternionJson":[1,"quaternion"],"scale":[1040],"scaleJson":[1,"scale"],"matrix":[1040],"occlusionOff":[4,"occlusion-off"],"occluded":[516],"billboardOff":[4,"billboard-off"],"interactionsOff":[516,"interactions-off"]}]);
|
|
125000
123843
|
const VertexViewerDomGroup = /*@__PURE__*/proxyCustomElement(ViewerDomGroup, [1,"vertex-viewer-dom-group",{"position":[1040],"positionJson":[1,"position"],"rotation":[1040],"rotationJson":[1,"rotation"],"quaternion":[1040],"quaternionJson":[1,"quaternion"],"scale":[1040],"scaleJson":[1,"scale"],"matrix":[1040]}]);
|
|
125001
123844
|
const VertexViewerDomRenderer = /*@__PURE__*/proxyCustomElement(ViewerDomRenderer, [1,"vertex-viewer-dom-renderer",{"drawMode":[1,"draw-mode"],"viewer":[16],"camera":[1040],"depthBuffer":[1040],"viewport":[32],"invalidateFrameCounter":[32]},[[0,"propertyChange","handlePropertyChange"]]]);
|
|
125002
|
-
const VertexViewerDragSelect = /*@__PURE__*/proxyCustomElement(ViewerDragSelect, [1,"vertex-viewer-drag-select",{"viewer":[16],"controller":[16],"dragRect":[32],"dragDirection":[32]}]);
|
|
125003
123845
|
const VertexViewerIcon = /*@__PURE__*/proxyCustomElement(ViewerIcon, [1,"vertex-viewer-icon",{"name":[1],"size":[1]}]);
|
|
125004
123846
|
const VertexViewerLayer = /*@__PURE__*/proxyCustomElement(ViewerLayer, [1,"vertex-viewer-layer",{"stretchOff":[516,"stretch-off"]}]);
|
|
125005
123847
|
const VertexViewerMarkup = /*@__PURE__*/proxyCustomElement(ViewerMarkup, [1,"vertex-viewer-markup",{"arrowTemplateId":[1,"arrow-template-id"],"circleTemplateId":[1,"circle-template-id"],"freeformTemplateId":[1,"freeform-template-id"],"tool":[1],"disabled":[4],"viewer":[16],"selectedMarkupId":[1025,"selected-markup-id"],"selectNew":[4,"select-new"],"toSelectMarkupId":[32],"pointerDownPosition":[32]},[[0,"markupEnd","handleMarkupEnd"],[1,"pointerdown","handleMarkupPointerDown"]]]);
|
|
@@ -125039,7 +123881,6 @@ const defineCustomElements = (opts) => {
|
|
|
125039
123881
|
VertexViewerDomElement,
|
|
125040
123882
|
VertexViewerDomGroup,
|
|
125041
123883
|
VertexViewerDomRenderer,
|
|
125042
|
-
VertexViewerDragSelect,
|
|
125043
123884
|
VertexViewerIcon,
|
|
125044
123885
|
VertexViewerLayer,
|
|
125045
123886
|
VertexViewerMarkup,
|
|
@@ -125069,4 +123910,4 @@ const defineCustomElements = (opts) => {
|
|
|
125069
123910
|
}
|
|
125070
123911
|
};
|
|
125071
123912
|
|
|
125072
|
-
export { AngleUnits, AreaUnits, ArrowMarkup, CircleMarkup, colorMaterial as ColorMaterial, CursorManager, DistanceUnits, EntityType, FrameCameraBase, FreeformMarkup, loadableResource as LoadableResource, MeasurementController, MeasurementEntity, MeasurementModel, MeasurementOverlayManager, Frame as ReceivedFrame, FrameImage as ReceivedFrameImage, FrameScene as ReceivedFrameScene, FrameOrthographicCamera as ReceivedOrthographicCamera, FramePerspectiveCamera as ReceivedPerspectiveCamera, Scene, SynchronizedClock, VertexSceneTree, VertexSceneTreeSearch, VertexSceneTreeTableCell, VertexSceneTreeTableColumn, VertexSceneTreeTableHeader, VertexSceneTreeTableLayout, VertexSceneTreeTableResizeDivider, VertexSceneTreeToolbar, VertexSceneTreeToolbarGroup, VertexViewer, VertexViewerButton, VertexViewerDefaultToolbar, VertexViewerDomElement, VertexViewerDomGroup, VertexViewerDomRenderer,
|
|
123913
|
+
export { AngleUnits, AreaUnits, ArrowMarkup, CircleMarkup, colorMaterial as ColorMaterial, CursorManager, DistanceUnits, EntityType, FrameCameraBase, FreeformMarkup, loadableResource as LoadableResource, MeasurementController, MeasurementEntity, MeasurementModel, MeasurementOverlayManager, Frame as ReceivedFrame, FrameImage as ReceivedFrameImage, FrameScene as ReceivedFrameScene, FrameOrthographicCamera as ReceivedOrthographicCamera, FramePerspectiveCamera as ReceivedPerspectiveCamera, Scene, SynchronizedClock, VertexSceneTree, VertexSceneTreeSearch, VertexSceneTreeTableCell, VertexSceneTreeTableColumn, VertexSceneTreeTableHeader, VertexSceneTreeTableLayout, VertexSceneTreeTableResizeDivider, VertexSceneTreeToolbar, VertexSceneTreeToolbarGroup, VertexViewer, VertexViewerButton, VertexViewerDefaultToolbar, VertexViewerDomElement, VertexViewerDomGroup, VertexViewerDomRenderer, VertexViewerIcon, VertexViewerLayer, VertexViewerMarkup, VertexViewerMarkupArrow, VertexViewerMarkupCircle, VertexViewerMarkupFreeform, VertexViewerMarkupTool, VertexViewerMeasurementDetails, VertexViewerMeasurementDistance, VertexViewerMeasurementLine, VertexViewerMeasurementOverlays, VertexViewerMeasurementPrecise, VertexViewerPinGroup, VertexViewerPinLabel, VertexViewerPinLabelLine, VertexViewerPinTool, VertexViewerSpinner, VertexViewerToolbar, VertexViewerToolbarGroup, VertexViewerTransformWidget, VertexViewerViewCube, Viewport, __awaiter as _, __generator as a, __spreadArray as b, createCommonjsModule as c, defineCustomElements, labelPinCursor, makeMinimumDistanceResult, measurementCursor, measurementWithArrowCursor, pinCursor };
|