@itwin/ecschema-rpcinterface-tests 4.6.0-dev.3 → 4.6.0-dev.6

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.
@@ -22128,10 +22128,12 @@ class BeEventList {
22128
22128
  "use strict";
22129
22129
  __webpack_require__.r(__webpack_exports__);
22130
22130
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
22131
+ /* harmony export */ "DbChangeStage": () => (/* binding */ DbChangeStage),
22131
22132
  /* harmony export */ "DbConflictCause": () => (/* binding */ DbConflictCause),
22132
22133
  /* harmony export */ "DbConflictResolution": () => (/* binding */ DbConflictResolution),
22133
22134
  /* harmony export */ "DbOpcode": () => (/* binding */ DbOpcode),
22134
22135
  /* harmony export */ "DbResult": () => (/* binding */ DbResult),
22136
+ /* harmony export */ "DbValueType": () => (/* binding */ DbValueType),
22135
22137
  /* harmony export */ "OpenMode": () => (/* binding */ OpenMode)
22136
22138
  /* harmony export */ });
22137
22139
  /*---------------------------------------------------------------------------------------------
@@ -22161,6 +22163,25 @@ var DbOpcode;
22161
22163
  /** Some columns of an existing row were updated. */
22162
22164
  DbOpcode[DbOpcode["Update"] = 23] = "Update";
22163
22165
  })(DbOpcode || (DbOpcode = {}));
22166
+ /** Change value stage.
22167
+ * @internal
22168
+ */
22169
+ var DbChangeStage;
22170
+ (function (DbChangeStage) {
22171
+ DbChangeStage[DbChangeStage["Old"] = 0] = "Old";
22172
+ DbChangeStage[DbChangeStage["New"] = 1] = "New";
22173
+ })(DbChangeStage || (DbChangeStage = {}));
22174
+ /** Change value type.
22175
+ * @internal
22176
+ */
22177
+ var DbValueType;
22178
+ (function (DbValueType) {
22179
+ DbValueType[DbValueType["IntegerVal"] = 1] = "IntegerVal";
22180
+ DbValueType[DbValueType["FloatVal"] = 2] = "FloatVal";
22181
+ DbValueType[DbValueType["TextVal"] = 3] = "TextVal";
22182
+ DbValueType[DbValueType["BlobVal"] = 4] = "BlobVal";
22183
+ DbValueType[DbValueType["NullVal"] = 5] = "NullVal";
22184
+ })(DbValueType || (DbValueType = {}));
22164
22185
  /** Cause of conflict when applying a changeset
22165
22186
  * @internal
22166
22187
  */
@@ -28325,10 +28346,12 @@ __webpack_require__.r(__webpack_exports__);
28325
28346
  /* harmony export */ "ByteStream": () => (/* reexport safe */ _ByteStream__WEBPACK_IMPORTED_MODULE_7__.ByteStream),
28326
28347
  /* harmony export */ "ChangeSetStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.ChangeSetStatus),
28327
28348
  /* harmony export */ "CompressedId64Set": () => (/* reexport safe */ _CompressedId64Set__WEBPACK_IMPORTED_MODULE_10__.CompressedId64Set),
28349
+ /* harmony export */ "DbChangeStage": () => (/* reexport safe */ _BeSQLite__WEBPACK_IMPORTED_MODULE_6__.DbChangeStage),
28328
28350
  /* harmony export */ "DbConflictCause": () => (/* reexport safe */ _BeSQLite__WEBPACK_IMPORTED_MODULE_6__.DbConflictCause),
28329
28351
  /* harmony export */ "DbConflictResolution": () => (/* reexport safe */ _BeSQLite__WEBPACK_IMPORTED_MODULE_6__.DbConflictResolution),
28330
28352
  /* harmony export */ "DbOpcode": () => (/* reexport safe */ _BeSQLite__WEBPACK_IMPORTED_MODULE_6__.DbOpcode),
28331
28353
  /* harmony export */ "DbResult": () => (/* reexport safe */ _BeSQLite__WEBPACK_IMPORTED_MODULE_6__.DbResult),
28354
+ /* harmony export */ "DbValueType": () => (/* reexport safe */ _BeSQLite__WEBPACK_IMPORTED_MODULE_6__.DbValueType),
28332
28355
  /* harmony export */ "Dictionary": () => (/* reexport safe */ _Dictionary__WEBPACK_IMPORTED_MODULE_11__.Dictionary),
28333
28356
  /* harmony export */ "DisposableList": () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_12__.DisposableList),
28334
28357
  /* harmony export */ "DuplicatePolicy": () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_26__.DuplicatePolicy),
@@ -100787,6 +100810,7 @@ __webpack_require__.r(__webpack_exports__);
100787
100810
  /* harmony export */ "createSurfaceMaterial": () => (/* reexport safe */ _common_render_primitives_SurfaceParams__WEBPACK_IMPORTED_MODULE_26__.createSurfaceMaterial),
100788
100811
  /* harmony export */ "createWorkerProxy": () => (/* reexport safe */ _common_WorkerProxy__WEBPACK_IMPORTED_MODULE_32__.createWorkerProxy),
100789
100812
  /* harmony export */ "decodeImdlGraphics": () => (/* reexport safe */ _tile_internal__WEBPACK_IMPORTED_MODULE_143__.decodeImdlGraphics),
100813
+ /* harmony export */ "decodeMeshoptBuffer": () => (/* reexport safe */ _tile_internal__WEBPACK_IMPORTED_MODULE_143__.decodeMeshoptBuffer),
100790
100814
  /* harmony export */ "disposeTileTreesForGeometricModels": () => (/* reexport safe */ _tile_internal__WEBPACK_IMPORTED_MODULE_143__.disposeTileTreesForGeometricModels),
100791
100815
  /* harmony export */ "edgeParamsFromImdl": () => (/* reexport safe */ _common_imdl_ParseImdlDocument__WEBPACK_IMPORTED_MODULE_16__.edgeParamsFromImdl),
100792
100816
  /* harmony export */ "extractImageSourceDimensions": () => (/* reexport safe */ _common_ImageUtil__WEBPACK_IMPORTED_MODULE_13__.extractImageSourceDimensions),
@@ -139484,11 +139508,12 @@ __webpack_require__.r(__webpack_exports__);
139484
139508
  /* harmony import */ var _render_RealityMeshParams__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../render/RealityMeshParams */ "../../core/frontend/lib/esm/render/RealityMeshParams.js");
139485
139509
  /* harmony import */ var _render_primitives_mesh_MeshPrimitives__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../render/primitives/mesh/MeshPrimitives */ "../../core/frontend/lib/esm/render/primitives/mesh/MeshPrimitives.js");
139486
139510
  /* harmony import */ var _render_primitives_Primitives__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../render/primitives/Primitives */ "../../core/frontend/lib/esm/render/primitives/Primitives.js");
139487
- /* harmony import */ var _common_render_primitives_DisplayParams__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../common/render/primitives/DisplayParams */ "../../core/frontend/lib/esm/common/render/primitives/DisplayParams.js");
139488
- /* harmony import */ var _common_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../common/FrontendLoggerCategory */ "../../core/frontend/lib/esm/common/FrontendLoggerCategory.js");
139489
- /* harmony import */ var _common_ImageUtil__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../common/ImageUtil */ "../../core/frontend/lib/esm/common/ImageUtil.js");
139490
- /* harmony import */ var _common_render_primitives_MeshPrimitive__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../common/render/primitives/MeshPrimitive */ "../../core/frontend/lib/esm/common/render/primitives/MeshPrimitive.js");
139491
- /* harmony import */ var _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../common/gltf/GltfSchema */ "../../core/frontend/lib/esm/common/gltf/GltfSchema.js");
139511
+ /* harmony import */ var _internal__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./internal */ "../../core/frontend/lib/esm/tile/internal.js");
139512
+ /* harmony import */ var _common_render_primitives_DisplayParams__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../common/render/primitives/DisplayParams */ "../../core/frontend/lib/esm/common/render/primitives/DisplayParams.js");
139513
+ /* harmony import */ var _common_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../common/FrontendLoggerCategory */ "../../core/frontend/lib/esm/common/FrontendLoggerCategory.js");
139514
+ /* harmony import */ var _common_ImageUtil__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../common/ImageUtil */ "../../core/frontend/lib/esm/common/ImageUtil.js");
139515
+ /* harmony import */ var _common_render_primitives_MeshPrimitive__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../common/render/primitives/MeshPrimitive */ "../../core/frontend/lib/esm/common/render/primitives/MeshPrimitive.js");
139516
+ /* harmony import */ var _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../common/gltf/GltfSchema */ "../../core/frontend/lib/esm/common/gltf/GltfSchema.js");
139492
139517
  /*---------------------------------------------------------------------------------------------
139493
139518
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
139494
139519
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -139509,6 +139534,7 @@ __webpack_require__.r(__webpack_exports__);
139509
139534
 
139510
139535
 
139511
139536
 
139537
+
139512
139538
  /**
139513
139539
  * A chunk of binary data exposed as a typed array.
139514
139540
  * The count member indicates how many elements exist. This may be less than this.buffer.length due to padding added to the
@@ -139529,15 +139555,15 @@ class GltfBufferData {
139529
139555
  if (expectedType !== actualType) {
139530
139556
  // Some data is stored in smaller data types to save space if no values exceed the maximum of the smaller type.
139531
139557
  switch (expectedType) {
139532
- case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.Float:
139533
- case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.UnsignedByte:
139558
+ case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.Float:
139559
+ case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.UnsignedByte:
139534
139560
  return undefined;
139535
- case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.UnsignedShort:
139536
- if (_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.UnsignedByte !== actualType)
139561
+ case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.UnsignedShort:
139562
+ if (_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.UnsignedByte !== actualType)
139537
139563
  return undefined;
139538
139564
  break;
139539
- case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.UInt32:
139540
- if (_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.UnsignedByte !== actualType && _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.UnsignedShort !== actualType)
139565
+ case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.UInt32:
139566
+ if (_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.UnsignedByte !== actualType && _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.UnsignedShort !== actualType)
139541
139567
  return undefined;
139542
139568
  break;
139543
139569
  }
@@ -139549,13 +139575,13 @@ class GltfBufferData {
139549
139575
  // NB: Endianness of typed array data is determined by the 'platform byte order'. Actual data is always little-endian.
139550
139576
  // We are assuming little-endian platform. If we find a big-endian platform, we'll need to use a DataView instead.
139551
139577
  switch (actualType) {
139552
- case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.UnsignedByte:
139578
+ case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.UnsignedByte:
139553
139579
  return bytes;
139554
- case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.UnsignedShort:
139580
+ case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.UnsignedShort:
139555
139581
  return new Uint16Array(bytes.buffer, bytes.byteOffset, bytes.byteLength / 2);
139556
- case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.UInt32:
139582
+ case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.UInt32:
139557
139583
  return new Uint32Array(bytes.buffer, bytes.byteOffset, bytes.byteLength / 4);
139558
- case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.Float:
139584
+ case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.Float:
139559
139585
  return new Float32Array(bytes.buffer, bytes.byteOffset, bytes.byteLength / 4);
139560
139586
  default:
139561
139587
  return undefined;
@@ -139682,7 +139708,7 @@ function colorFromJson(values) {
139682
139708
  }
139683
139709
  function colorFromMaterial(material, isTransparent) {
139684
139710
  let color = _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ColorDef.white;
139685
- if ((0,_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.isGltf1Material)(material)) {
139711
+ if ((0,_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.isGltf1Material)(material)) {
139686
139712
  if (material.values?.color && Array.isArray(material.values.color))
139687
139713
  color = colorFromJson(material.values.color);
139688
139714
  }
@@ -139773,7 +139799,7 @@ class GltfReader {
139773
139799
  * @throws Error if a node appears more than once during traversal
139774
139800
  */
139775
139801
  traverseNodes(nodeIds) {
139776
- return (0,_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.traverseGltfNodes)(nodeIds, this._nodes, new Set());
139802
+ return (0,_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.traverseGltfNodes)(nodeIds, this._nodes, new Set());
139777
139803
  }
139778
139804
  /** Traverse the nodes specified by their scene, recursing into their child nodes.
139779
139805
  * @throws Error if a node appears more than once during traversal
@@ -139898,9 +139924,9 @@ class GltfReader {
139898
139924
  return undefined;
139899
139925
  }
139900
139926
  const translationsView = this.getBufferView(ext.attributes, "TRANSLATION");
139901
- const translations = translationsView?.toBufferData(_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.Float);
139902
- const rotations = this.getBufferView(ext.attributes, "ROTATION")?.toBufferData(_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.Float);
139903
- const scales = this.getBufferView(ext.attributes, "SCALE")?.toBufferData(_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.Float);
139927
+ const translations = translationsView?.toBufferData(_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.Float);
139928
+ const rotations = this.getBufferView(ext.attributes, "ROTATION")?.toBufferData(_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.Float);
139929
+ const scales = this.getBufferView(ext.attributes, "SCALE")?.toBufferData(_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.Float);
139904
139930
  // All attributes must specify the same count, count must be greater than zero, and at least one attribute must be specified.
139905
139931
  const count = translations?.count ?? rotations?.count ?? scales?.count;
139906
139932
  if (!count || (rotations && rotations.count !== count) || (scales && scales.count !== count)) {
@@ -139973,7 +139999,7 @@ class GltfReader {
139973
139999
  let thisBias;
139974
140000
  if (undefined !== pseudoRtcBias)
139975
140001
  thisBias = (undefined === thisTransform) ? pseudoRtcBias : thisTransform.matrix.multiplyInverse(pseudoRtcBias);
139976
- for (const meshKey of (0,_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.getGltfNodeMeshIds)(node)) {
140002
+ for (const meshKey of (0,_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.getGltfNodeMeshIds)(node)) {
139977
140003
  const nodeMesh = this._meshes[meshKey];
139978
140004
  if (nodeMesh?.primitives) {
139979
140005
  const meshes = this.readMeshPrimitives(node, featureTable, thisTransform, thisBias, nodeInstances);
@@ -140072,23 +140098,28 @@ class GltfReader {
140072
140098
  return undefined;
140073
140099
  const bufferViewAccessorValue = accessor.bufferView;
140074
140100
  const bufferView = undefined !== bufferViewAccessorValue ? this._bufferViews[bufferViewAccessorValue] : undefined;
140075
- if (!bufferView || undefined === bufferView.buffer)
140101
+ if (!bufferView)
140076
140102
  return undefined;
140077
- const buffer = this._buffers[bufferView.buffer];
140078
- const bufferData = buffer?.resolvedBuffer;
140103
+ let bufferData = bufferView.resolvedBuffer;
140104
+ if (!bufferData) {
140105
+ if (undefined === bufferView.buffer)
140106
+ return undefined;
140107
+ const buffer = this._buffers[bufferView.buffer];
140108
+ bufferData = buffer?.resolvedBuffer;
140109
+ }
140079
140110
  if (!bufferData)
140080
140111
  return undefined;
140081
140112
  const type = accessor.componentType;
140082
140113
  let dataSize = 0;
140083
140114
  switch (type) {
140084
- case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.UnsignedByte:
140115
+ case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.UnsignedByte:
140085
140116
  dataSize = 1;
140086
140117
  break;
140087
- case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.UnsignedShort:
140118
+ case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.UnsignedShort:
140088
140119
  dataSize = 2;
140089
140120
  break;
140090
- case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.UInt32:
140091
- case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.Float:
140121
+ case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.UInt32:
140122
+ case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.Float:
140092
140123
  dataSize = 4;
140093
140124
  break;
140094
140125
  default:
@@ -140118,10 +140149,10 @@ class GltfReader {
140118
140149
  return undefined;
140119
140150
  }
140120
140151
  }
140121
- readBufferData32(json, accessorName) { return this.readBufferData(json, accessorName, _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.UInt32); }
140122
- readBufferData16(json, accessorName) { return this.readBufferData(json, accessorName, _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.UnsignedShort); }
140123
- readBufferData8(json, accessorName) { return this.readBufferData(json, accessorName, _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.UnsignedByte); }
140124
- readBufferDataFloat(json, accessorName) { return this.readBufferData(json, accessorName, _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.Float); }
140152
+ readBufferData32(json, accessorName) { return this.readBufferData(json, accessorName, _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.UInt32); }
140153
+ readBufferData16(json, accessorName) { return this.readBufferData(json, accessorName, _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.UnsignedShort); }
140154
+ readBufferData8(json, accessorName) { return this.readBufferData(json, accessorName, _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.UnsignedByte); }
140155
+ readBufferDataFloat(json, accessorName) { return this.readBufferData(json, accessorName, _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.Float); }
140125
140156
  constructor(args) {
140126
140157
  this._resolvedTextures = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Dictionary((lhs, rhs) => compareTextureKeys(lhs, rhs));
140127
140158
  this._dracoMeshes = new Map();
@@ -140131,7 +140162,7 @@ class GltfReader {
140131
140162
  * (We also don't want to produce mip-maps for them, which is determined indirectly from the wrap mode).
140132
140163
  * Allow the default to be optionally overridden.
140133
140164
  */
140134
- this.defaultWrapMode = _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfWrapMode.Repeat;
140165
+ this.defaultWrapMode = _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfWrapMode.Repeat;
140135
140166
  this._glTF = args.props.glTF;
140136
140167
  this._version = args.props.version;
140137
140168
  this._yAxisUp = args.props.yAxisUp;
@@ -140183,7 +140214,7 @@ class GltfReader {
140183
140214
  if (typeof material !== "object")
140184
140215
  return undefined;
140185
140216
  // Bimium's shader value...almost certainly obsolete at this point.
140186
- if ((0,_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.isGltf1Material)(material))
140217
+ if ((0,_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.isGltf1Material)(material))
140187
140218
  return material.diffuse ?? this.extractId(material.values?.tex);
140188
140219
  // KHR_techniques_webgl extension
140189
140220
  const techniques = this._glTF.extensions?.KHR_techniques_webgl?.techniques;
@@ -140193,7 +140224,7 @@ class GltfReader {
140193
140224
  if (typeof uniforms === "object") {
140194
140225
  for (const uniformName of Object.keys(uniforms)) {
140195
140226
  const uniform = uniforms[uniformName];
140196
- if (typeof uniform === "object" && uniform.type === _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.Sampler2d)
140227
+ if (typeof uniform === "object" && uniform.type === _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.Sampler2d)
140197
140228
  return this.extractId(ext.values[uniformName]?.index);
140198
140229
  }
140199
140230
  }
@@ -140204,15 +140235,15 @@ class GltfReader {
140204
140235
  extractNormalMapId(material) {
140205
140236
  if (typeof material !== "object")
140206
140237
  return undefined;
140207
- if ((0,_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.isGltf1Material)(material))
140238
+ if ((0,_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.isGltf1Material)(material))
140208
140239
  return undefined;
140209
140240
  return this.extractId(material.normalTexture?.index);
140210
140241
  }
140211
140242
  isMaterialTransparent(material) {
140212
- if ((0,_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.isGltf1Material)(material)) {
140243
+ if ((0,_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.isGltf1Material)(material)) {
140213
140244
  if (this._glTF.techniques && undefined !== material.technique) {
140214
140245
  const technique = this._glTF.techniques[material.technique];
140215
- if (technique?.states?.enable?.some((state) => state === _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfTechniqueState.Blend))
140246
+ if (technique?.states?.enable?.some((state) => state === _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfTechniqueState.Blend))
140216
140247
  return true;
140217
140248
  }
140218
140249
  return false;
@@ -140236,11 +140267,11 @@ class GltfReader {
140236
140267
  // DisplayParams doesn't want a separate texture mapping if the material already has one.
140237
140268
  textureMapping = undefined;
140238
140269
  }
140239
- return new _common_render_primitives_DisplayParams__WEBPACK_IMPORTED_MODULE_8__.DisplayParams(_common_render_primitives_DisplayParams__WEBPACK_IMPORTED_MODULE_8__.DisplayParams.Type.Mesh, color, color, 1, _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.LinePixels.Solid, _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.FillFlags.None, renderMaterial, undefined, hasBakedLighting, textureMapping);
140270
+ return new _common_render_primitives_DisplayParams__WEBPACK_IMPORTED_MODULE_9__.DisplayParams(_common_render_primitives_DisplayParams__WEBPACK_IMPORTED_MODULE_9__.DisplayParams.Type.Mesh, color, color, 1, _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.LinePixels.Solid, _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.FillFlags.None, renderMaterial, undefined, hasBakedLighting, textureMapping);
140240
140271
  }
140241
140272
  readMeshPrimitives(node, featureTable, thisTransform, thisBias, instances) {
140242
140273
  const meshes = [];
140243
- for (const meshKey of (0,_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.getGltfNodeMeshIds)(node)) {
140274
+ for (const meshKey of (0,_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.getGltfNodeMeshIds)(node)) {
140244
140275
  const nodeMesh = this._meshes[meshKey];
140245
140276
  if (nodeMesh?.primitives) {
140246
140277
  for (const primitive of nodeMesh.primitives) {
@@ -140280,9 +140311,9 @@ class GltfReader {
140280
140311
  return meshes;
140281
140312
  }
140282
140313
  readMeshPrimitive(primitive, featureTable, pseudoRtcBias) {
140283
- const meshMode = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.JsonUtils.asInt(primitive.mode, _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfMeshMode.Triangles);
140284
- if (meshMode === _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfMeshMode.Points /* && !this._vertexTableRequired */) {
140285
- const pointCloud = this.readPointCloud(primitive, undefined !== featureTable);
140314
+ const meshMode = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.JsonUtils.asInt(primitive.mode, _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfMeshMode.Triangles);
140315
+ if (meshMode === _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfMeshMode.Points /* && !this._vertexTableRequired */) {
140316
+ const pointCloud = this.readPointCloud2(primitive, undefined !== featureTable);
140286
140317
  if (pointCloud)
140287
140318
  return pointCloud;
140288
140319
  }
@@ -140296,14 +140327,14 @@ class GltfReader {
140296
140327
  return undefined;
140297
140328
  let primitiveType = -1;
140298
140329
  switch (meshMode) {
140299
- case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfMeshMode.Lines:
140300
- primitiveType = _common_render_primitives_MeshPrimitive__WEBPACK_IMPORTED_MODULE_11__.MeshPrimitiveType.Polyline;
140330
+ case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfMeshMode.Lines:
140331
+ primitiveType = _common_render_primitives_MeshPrimitive__WEBPACK_IMPORTED_MODULE_12__.MeshPrimitiveType.Polyline;
140301
140332
  break;
140302
- case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfMeshMode.Points:
140303
- primitiveType = _common_render_primitives_MeshPrimitive__WEBPACK_IMPORTED_MODULE_11__.MeshPrimitiveType.Point;
140333
+ case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfMeshMode.Points:
140334
+ primitiveType = _common_render_primitives_MeshPrimitive__WEBPACK_IMPORTED_MODULE_12__.MeshPrimitiveType.Point;
140304
140335
  break;
140305
- case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfMeshMode.Triangles:
140306
- primitiveType = _common_render_primitives_MeshPrimitive__WEBPACK_IMPORTED_MODULE_11__.MeshPrimitiveType.Mesh;
140336
+ case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfMeshMode.Triangles:
140337
+ primitiveType = _common_render_primitives_MeshPrimitive__WEBPACK_IMPORTED_MODULE_12__.MeshPrimitiveType.Mesh;
140307
140338
  break;
140308
140339
  default:
140309
140340
  return undefined;
@@ -140331,7 +140362,7 @@ class GltfReader {
140331
140362
  const colorIndices = this.readBufferData16(primitive.attributes, "_COLORINDEX");
140332
140363
  if (undefined !== colorIndices && material) {
140333
140364
  let texStep;
140334
- if ((0,_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.isGltf1Material)(material))
140365
+ if ((0,_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.isGltf1Material)(material))
140335
140366
  texStep = material.values?.texStep;
140336
140367
  else
140337
140368
  texStep = material.extensions?.KHR_techniques_webgl?.values?.u_texStep;
@@ -140361,14 +140392,14 @@ class GltfReader {
140361
140392
  if (!this.readVertices(mesh, primitive, pseudoRtcBias))
140362
140393
  return undefined;
140363
140394
  switch (primitiveType) {
140364
- case _common_render_primitives_MeshPrimitive__WEBPACK_IMPORTED_MODULE_11__.MeshPrimitiveType.Mesh: {
140395
+ case _common_render_primitives_MeshPrimitive__WEBPACK_IMPORTED_MODULE_12__.MeshPrimitiveType.Mesh: {
140365
140396
  if (!this.readMeshIndices(mesh, primitive))
140366
140397
  return undefined;
140367
140398
  if (!displayParams.ignoreLighting && !this.readNormals(mesh, primitive.attributes, "NORMAL"))
140368
140399
  return undefined;
140369
140400
  if (!mesh.uvs) {
140370
140401
  let texCoordIndex = 0;
140371
- if (!(0,_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.isGltf1Material)(material) && undefined !== material.pbrMetallicRoughness?.baseColorTexture?.texCoord)
140402
+ if (!(0,_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.isGltf1Material)(material) && undefined !== material.pbrMetallicRoughness?.baseColorTexture?.texCoord)
140372
140403
  texCoordIndex = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.JsonUtils.asInt(material.pbrMetallicRoughness.baseColorTexture.texCoord);
140373
140404
  this.readUVParams(mesh, primitive.attributes, `TEXCOORD_${texCoordIndex}`);
140374
140405
  }
@@ -140376,9 +140407,9 @@ class GltfReader {
140376
140407
  return undefined;
140377
140408
  break;
140378
140409
  }
140379
- case _common_render_primitives_MeshPrimitive__WEBPACK_IMPORTED_MODULE_11__.MeshPrimitiveType.Polyline:
140380
- case _common_render_primitives_MeshPrimitive__WEBPACK_IMPORTED_MODULE_11__.MeshPrimitiveType.Point: {
140381
- if (undefined !== mesh.primitive.polylines && !this.readPolylines(mesh.primitive.polylines, primitive, "indices", _common_render_primitives_MeshPrimitive__WEBPACK_IMPORTED_MODULE_11__.MeshPrimitiveType.Point === primitiveType))
140410
+ case _common_render_primitives_MeshPrimitive__WEBPACK_IMPORTED_MODULE_12__.MeshPrimitiveType.Polyline:
140411
+ case _common_render_primitives_MeshPrimitive__WEBPACK_IMPORTED_MODULE_12__.MeshPrimitiveType.Point: {
140412
+ if (undefined !== mesh.primitive.polylines && !this.readPolylines(mesh.primitive.polylines, primitive, "indices", _common_render_primitives_MeshPrimitive__WEBPACK_IMPORTED_MODULE_12__.MeshPrimitiveType.Point === primitiveType))
140382
140413
  return undefined;
140383
140414
  break;
140384
140415
  }
@@ -140400,23 +140431,60 @@ class GltfReader {
140400
140431
  }
140401
140432
  return mesh;
140402
140433
  }
140403
- readPointCloud(primitive, hasFeatures) {
140434
+ readPointCloud2(primitive, hasFeatures) {
140435
+ let pointRange;
140436
+ let positions;
140437
+ let qparams;
140404
140438
  const posView = this.getBufferView(primitive.attributes, "POSITION");
140405
- if (!posView || _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.Float !== posView.type)
140406
- return undefined;
140407
- const posData = posView.toBufferData(_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.Float);
140408
- if (!(posData?.buffer instanceof Float32Array))
140409
- return undefined;
140439
+ switch (posView?.type) {
140440
+ case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.Float: {
140441
+ const posData = posView.toBufferData(_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.Float);
140442
+ if (!(posData?.buffer instanceof Float32Array)) {
140443
+ return undefined;
140444
+ }
140445
+ positions = posData.buffer;
140446
+ const strideSkip = posView.stride - 3;
140447
+ pointRange = new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d();
140448
+ for (let i = 0; i < positions.length; i += strideSkip) {
140449
+ pointRange.extendXYZ(positions[i++], positions[i++], positions[i++]);
140450
+ }
140451
+ qparams = _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.QParams3d.fromOriginAndScale(new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d(0, 0, 0), new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d(1, 1, 1));
140452
+ break;
140453
+ }
140454
+ case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.UnsignedByte:
140455
+ case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.UnsignedShort: {
140456
+ const posData = posView.toBufferData(posView.type);
140457
+ if (!(posData?.buffer instanceof Uint8Array || posData?.buffer instanceof Uint16Array)) {
140458
+ return undefined;
140459
+ }
140460
+ positions = posData.buffer;
140461
+ let min, max;
140462
+ const ext = posView.accessor.extensions?.WEB3D_quantized_attributes;
140463
+ if (ext) {
140464
+ min = ext.decodedMin;
140465
+ max = ext.decodedMax;
140466
+ }
140467
+ else {
140468
+ // Assume KHR_mesh_quantization...
140469
+ min = posView.accessor.min;
140470
+ max = posView.accessor.max;
140471
+ }
140472
+ if (undefined === min || undefined === max) {
140473
+ return undefined;
140474
+ }
140475
+ pointRange = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d.createXYZXYZ(min[0], min[1], min[2], max[0], max[1], max[2]);
140476
+ qparams = _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.QParams3d.fromRange(pointRange);
140477
+ break;
140478
+ }
140479
+ default:
140480
+ return undefined;
140481
+ }
140410
140482
  const colorView = this.getBufferView(primitive.attributes, "COLOR_0");
140411
- if (!colorView || _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.UnsignedByte !== colorView.type)
140483
+ if (!colorView || _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.UnsignedByte !== colorView.type)
140412
140484
  return undefined;
140413
- const colorData = colorView.toBufferData(_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.UnsignedByte);
140485
+ const colorData = colorView.toBufferData(_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.UnsignedByte);
140414
140486
  if (!(colorData?.buffer instanceof Uint8Array))
140415
140487
  return undefined;
140416
- const strideSkip = posView.stride - 3;
140417
- const pointRange = new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d();
140418
- for (let i = 0; i < posData.buffer.length; i += strideSkip)
140419
- pointRange.extendXYZ(posData.buffer[i++], posData.buffer[i++], posData.buffer[i++]);
140420
140488
  let colors = colorData.buffer;
140421
140489
  if ("VEC4" === colorView.accessor.type) {
140422
140490
  // ###TODO support transparent point clouds
@@ -140429,13 +140497,14 @@ class GltfReader {
140429
140497
  }
140430
140498
  }
140431
140499
  const features = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.FeatureIndex();
140432
- if (hasFeatures)
140500
+ if (hasFeatures) {
140433
140501
  features.type = _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.FeatureIndexType.Uniform;
140502
+ }
140434
140503
  this._containsPointCloud = true;
140435
140504
  return {
140436
140505
  type: "pointcloud",
140437
- positions: posData.buffer,
140438
- qparams: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.QParams3d.fromOriginAndScale(new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d(0, 0, 0), new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d(1, 1, 1)),
140506
+ positions,
140507
+ qparams,
140439
140508
  pointRange,
140440
140509
  colors,
140441
140510
  colorFormat: "rgb",
@@ -140542,8 +140611,8 @@ class GltfReader {
140542
140611
  const view = this.getBufferView(primitive.attributes, "POSITION");
140543
140612
  if (undefined === view)
140544
140613
  return false;
140545
- if (_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.Float === view.type) {
140546
- const buffer = view.toBufferData(_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.Float);
140614
+ if (_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.Float === view.type) {
140615
+ const buffer = view.toBufferData(_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.Float);
140547
140616
  if (undefined === buffer)
140548
140617
  return false;
140549
140618
  const strideSkip = view.stride - 3;
@@ -140562,15 +140631,23 @@ class GltfReader {
140562
140631
  mesh.points = positions.toTypedArray();
140563
140632
  }
140564
140633
  else {
140565
- if (_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.UnsignedShort !== view.type)
140634
+ if (_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.UnsignedShort !== view.type)
140566
140635
  return false;
140636
+ let rangeMin, rangeMax;
140567
140637
  const quantized = view.accessor.extensions?.WEB3D_quantized_attributes;
140568
- const rangeMin = quantized?.decodedMin;
140569
- const rangeMax = quantized?.decodedMax;
140570
- if (!rangeMin || !rangeMax) // required by spec...
140638
+ if (quantized) {
140639
+ rangeMin = quantized.decodedMin;
140640
+ rangeMax = quantized.decodedMax;
140641
+ }
140642
+ else {
140643
+ // Assume KHR_mesh_quantization...
140644
+ rangeMin = view.accessor.min;
140645
+ rangeMax = view.accessor.max;
140646
+ }
140647
+ if (undefined === rangeMin || undefined === rangeMax) // required by spec...
140571
140648
  return false;
140572
140649
  // ###TODO apply WEB3D_quantized_attributes.decodeMatrix? Have not encountered in the wild; glTF 1.0 only.
140573
- const buffer = view.toBufferData(_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.UnsignedShort);
140650
+ const buffer = view.toBufferData(_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.UnsignedShort);
140574
140651
  if (undefined === buffer || !(buffer.buffer instanceof Uint16Array))
140575
140652
  return false;
140576
140653
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(buffer.buffer instanceof Uint16Array);
@@ -140632,8 +140709,8 @@ class GltfReader {
140632
140709
  if (undefined === view)
140633
140710
  return false;
140634
140711
  switch (view.type) {
140635
- case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.Float: {
140636
- const data = view.toBufferData(_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.Float);
140712
+ case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.Float: {
140713
+ const data = view.toBufferData(_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.Float);
140637
140714
  if (undefined === data)
140638
140715
  return false;
140639
140716
  mesh.normals = new Uint16Array(data.count);
@@ -140645,8 +140722,8 @@ class GltfReader {
140645
140722
  }
140646
140723
  return true;
140647
140724
  }
140648
- case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.UnsignedByte: {
140649
- const data = view.toBufferData(_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.UnsignedByte);
140725
+ case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.UnsignedByte: {
140726
+ const data = view.toBufferData(_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.UnsignedByte);
140650
140727
  if (undefined === data)
140651
140728
  return false;
140652
140729
  // ###TODO: we shouldn't have to allocate OctEncodedNormal objects...just use uint16s / numbers...
@@ -140665,13 +140742,13 @@ class GltfReader {
140665
140742
  }
140666
140743
  readColors(mesh, attribute, accessorName) {
140667
140744
  const view = this.getBufferView(attribute, accessorName);
140668
- if (!view || (_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.Float !== view.type && _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.UnsignedByte !== view.type && _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.SignedByte !== view.type))
140745
+ if (!view || (_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.Float !== view.type && _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.UnsignedByte !== view.type && _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.SignedByte !== view.type))
140669
140746
  return false;
140670
140747
  const data = view.toBufferData(view.type);
140671
140748
  if (!data)
140672
140749
  return false;
140673
140750
  const hasAlpha = "VEC4" === view.accessor.type;
140674
- const factor = view.type === _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.Float ? 255 : 1;
140751
+ const factor = view.type === _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.Float ? 255 : 1;
140675
140752
  const rgbt = new Uint8Array(4);
140676
140753
  const color = new Uint32Array(rgbt.buffer);
140677
140754
  for (let i = 0; i < data.count; i++) {
@@ -140689,7 +140766,7 @@ class GltfReader {
140689
140766
  if (view === undefined)
140690
140767
  return false;
140691
140768
  switch (view.type) {
140692
- case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.Float: {
140769
+ case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.Float: {
140693
140770
  const data = this.readBufferDataFloat(json, accessorName);
140694
140771
  if (!data)
140695
140772
  return false;
@@ -140707,13 +140784,13 @@ class GltfReader {
140707
140784
  }
140708
140785
  return true;
140709
140786
  }
140710
- case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.UnsignedShort: {
140787
+ case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.UnsignedShort: {
140711
140788
  const quantized = view.accessor.extensions?.WEB3D_quantized_attributes;
140712
140789
  const rangeMin = quantized?.decodedMin;
140713
140790
  const rangeMax = quantized?.decodedMax;
140714
140791
  if (undefined === rangeMin || undefined === rangeMax)
140715
140792
  return false;
140716
- const qData = view.toBufferData(_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfDataType.UnsignedShort);
140793
+ const qData = view.toBufferData(_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfDataType.UnsignedShort);
140717
140794
  if (undefined === qData || !(qData.buffer instanceof Uint16Array))
140718
140795
  return false;
140719
140796
  mesh.uvRange = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range2d.createXYXY(rangeMin[0], rangeMin[1], rangeMax[0], rangeMax[1]);
@@ -140767,10 +140844,30 @@ class GltfReader {
140767
140844
  async resolveResources() {
140768
140845
  // Load any external images and buffers.
140769
140846
  await this._resolveResources();
140847
+ // Decompress any meshopt-compressed buffer views
140848
+ const decodeMeshoptBuffers = [];
140849
+ for (const bv of (0,_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.gltfDictionaryIterator)(this._bufferViews)) {
140850
+ const ext = bv.extensions?.EXT_meshopt_compression;
140851
+ if (ext) {
140852
+ const bufferData = this._buffers[ext.buffer]?.resolvedBuffer;
140853
+ if (bufferData) {
140854
+ const source = new Uint8Array(bufferData.buffer, bufferData.byteOffset + (ext.byteOffset ?? 0), ext.byteLength ?? 0);
140855
+ const decode = async () => {
140856
+ bv.resolvedBuffer = await (0,_internal__WEBPACK_IMPORTED_MODULE_8__.decodeMeshoptBuffer)(source, ext);
140857
+ if (bv.resolvedBuffer) {
140858
+ bv.byteLength = bv.resolvedBuffer.byteLength;
140859
+ bv.byteOffset = 0;
140860
+ }
140861
+ };
140862
+ decodeMeshoptBuffers.push(decode());
140863
+ }
140864
+ }
140865
+ }
140866
+ await Promise.all(decodeMeshoptBuffers);
140770
140867
  // If any meshes are draco-compressed, dynamically load the decoder module and then decode the meshes.
140771
140868
  const dracoMeshes = [];
140772
140869
  for (const node of this.traverseScene()) {
140773
- for (const meshId of (0,_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.getGltfNodeMeshIds)(node)) {
140870
+ for (const meshId of (0,_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.getGltfNodeMeshIds)(node)) {
140774
140871
  const mesh = this._meshes[meshId];
140775
140872
  if (mesh?.primitives)
140776
140873
  for (const primitive of mesh.primitives)
@@ -140785,8 +140882,8 @@ class GltfReader {
140785
140882
  await Promise.all(dracoMeshes.map(async (x) => this.decodeDracoMesh(x, dracoLoader)));
140786
140883
  }
140787
140884
  catch (err) {
140788
- _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logWarning(_common_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_9__.FrontendLoggerCategory.Render, "Failed to decode draco-encoded glTF mesh");
140789
- _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logException(_common_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_9__.FrontendLoggerCategory.Render, err);
140885
+ _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logWarning(_common_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_10__.FrontendLoggerCategory.Render, "Failed to decode draco-encoded glTF mesh");
140886
+ _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logException(_common_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_10__.FrontendLoggerCategory.Render, err);
140790
140887
  }
140791
140888
  }
140792
140889
  async _resolveResources() {
@@ -140794,14 +140891,14 @@ class GltfReader {
140794
140891
  // be required for the scene.
140795
140892
  const promises = [];
140796
140893
  try {
140797
- for (const buffer of (0,_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.gltfDictionaryIterator)(this._buffers))
140894
+ for (const buffer of (0,_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.gltfDictionaryIterator)(this._buffers))
140798
140895
  if (!buffer.resolvedBuffer)
140799
140896
  promises.push(this.resolveBuffer(buffer));
140800
140897
  await Promise.all(promises);
140801
140898
  if (this._isCanceled)
140802
140899
  return;
140803
140900
  promises.length = 0;
140804
- for (const image of (0,_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.gltfDictionaryIterator)(this._images))
140901
+ for (const image of (0,_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.gltfDictionaryIterator)(this._images))
140805
140902
  if (!image.resolvedImage)
140806
140903
  promises.push(this.resolveImage(image));
140807
140904
  await Promise.all(promises);
@@ -140855,7 +140952,7 @@ class GltfReader {
140855
140952
  return;
140856
140953
  const bvSrc = undefined !== image.bufferView ? image : image.extensions?.KHR_binary_glTF;
140857
140954
  if (undefined !== bvSrc?.bufferView) {
140858
- const format = undefined !== bvSrc.mimeType ? (0,_common_ImageUtil__WEBPACK_IMPORTED_MODULE_10__.getImageSourceFormatForMimeType)(bvSrc.mimeType) : undefined;
140955
+ const format = undefined !== bvSrc.mimeType ? (0,_common_ImageUtil__WEBPACK_IMPORTED_MODULE_11__.getImageSourceFormatForMimeType)(bvSrc.mimeType) : undefined;
140859
140956
  const bufferView = this._bufferViews[bvSrc.bufferView];
140860
140957
  if (undefined === format || !bufferView || !bufferView.byteLength || bufferView.byteLength < 0)
140861
140958
  return;
@@ -140867,9 +140964,9 @@ class GltfReader {
140867
140964
  try {
140868
140965
  const imageSource = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ImageSource(bytes, format);
140869
140966
  if (this._system.supportsCreateImageBitmap)
140870
- image.resolvedImage = await (0,_common_ImageUtil__WEBPACK_IMPORTED_MODULE_10__.imageBitmapFromImageSource)(imageSource);
140967
+ image.resolvedImage = await (0,_common_ImageUtil__WEBPACK_IMPORTED_MODULE_11__.imageBitmapFromImageSource)(imageSource);
140871
140968
  else
140872
- image.resolvedImage = await (0,_common_ImageUtil__WEBPACK_IMPORTED_MODULE_10__.imageElementFromImageSource)(imageSource);
140969
+ image.resolvedImage = await (0,_common_ImageUtil__WEBPACK_IMPORTED_MODULE_11__.imageElementFromImageSource)(imageSource);
140873
140970
  }
140874
140971
  catch (_) {
140875
140972
  //
@@ -140878,7 +140975,7 @@ class GltfReader {
140878
140975
  }
140879
140976
  const url = undefined !== image.uri ? this.resolveUrl(image.uri) : undefined;
140880
140977
  if (undefined !== url)
140881
- image.resolvedImage = await (0,_common_ImageUtil__WEBPACK_IMPORTED_MODULE_10__.tryImageElementFromUrl)(url);
140978
+ image.resolvedImage = await (0,_common_ImageUtil__WEBPACK_IMPORTED_MODULE_11__.tryImageElementFromUrl)(url);
140882
140979
  }
140883
140980
  /** Exposed strictly for testing. */
140884
140981
  getTextureType(sampler) {
@@ -140887,7 +140984,7 @@ class GltfReader {
140887
140984
  let wrapT = sampler?.wrapT;
140888
140985
  if (undefined === wrapS && undefined === wrapT)
140889
140986
  wrapS = wrapT = this.defaultWrapMode;
140890
- if (_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfWrapMode.ClampToEdge === wrapS || _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfWrapMode.ClampToEdge === wrapT)
140987
+ if (_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfWrapMode.ClampToEdge === wrapS || _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_13__.GltfWrapMode.ClampToEdge === wrapT)
140891
140988
  return _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderTexture.Type.TileSection;
140892
140989
  return _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderTexture.Type.Normal;
140893
140990
  }
@@ -143023,6 +143120,88 @@ class LRUTileList {
143023
143120
  }
143024
143121
 
143025
143122
 
143123
+ /***/ }),
143124
+
143125
+ /***/ "../../core/frontend/lib/esm/tile/MeshoptCompression.js":
143126
+ /*!**************************************************************!*\
143127
+ !*** ../../core/frontend/lib/esm/tile/MeshoptCompression.js ***!
143128
+ \**************************************************************/
143129
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
143130
+
143131
+ "use strict";
143132
+ __webpack_require__.r(__webpack_exports__);
143133
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
143134
+ /* harmony export */ "decodeMeshoptBuffer": () => (/* binding */ decodeMeshoptBuffer)
143135
+ /* harmony export */ });
143136
+ /* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
143137
+ /* harmony import */ var _common_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/FrontendLoggerCategory */ "../../core/frontend/lib/esm/common/FrontendLoggerCategory.js");
143138
+ /*---------------------------------------------------------------------------------------------
143139
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
143140
+ * See LICENSE.md in the project root for license terms and full copyright notice.
143141
+ *--------------------------------------------------------------------------------------------*/
143142
+ /** @packageDocumentation
143143
+ * @module Tiles
143144
+ */
143145
+
143146
+
143147
+ /** Loads and configures the MeshoptDecoder module on demand. */
143148
+ class Loader {
143149
+ constructor() {
143150
+ this._status = "uninitialized";
143151
+ }
143152
+ async getDecoder() {
143153
+ const status = this._status;
143154
+ switch (status) {
143155
+ case "failed":
143156
+ (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(undefined === this._decoder);
143157
+ (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(undefined === this._promise);
143158
+ return undefined;
143159
+ case "ready":
143160
+ (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(undefined !== this._decoder);
143161
+ (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(undefined === this._promise);
143162
+ return this._decoder;
143163
+ case "loading":
143164
+ (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(undefined !== this._promise);
143165
+ await this._promise;
143166
+ (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)("failed" === this._status || "ready" === this._status);
143167
+ (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(undefined === this._promise);
143168
+ return this._decoder;
143169
+ }
143170
+ (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)("uninitialized" === status);
143171
+ this._status = "loading";
143172
+ this._promise = this.load();
143173
+ return this.getDecoder();
143174
+ }
143175
+ async load() {
143176
+ try {
143177
+ // Import the module on first use.
143178
+ const decoder = (await __webpack_require__.e(/*! import() */ "vendors-common_temp_node_modules_pnpm_meshoptimizer_0_20_0_node_modules_meshoptimizer_index_m-a5ae61").then(__webpack_require__.bind(__webpack_require__, /*! meshoptimizer */ "../../common/temp/node_modules/.pnpm/meshoptimizer@0.20.0/node_modules/meshoptimizer/index.module.js"))).MeshoptDecoder;
143179
+ await decoder.ready;
143180
+ // Configure it to do the decoding outside of the main thread. No compelling reason to use more than one worker.
143181
+ decoder.useWorkers(1);
143182
+ this._status = "ready";
143183
+ this._decoder = decoder;
143184
+ }
143185
+ catch (err) {
143186
+ _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logException(_common_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_1__.FrontendLoggerCategory.Render, err);
143187
+ this._status = "failed";
143188
+ }
143189
+ finally {
143190
+ this._promise = undefined;
143191
+ }
143192
+ }
143193
+ }
143194
+ const loader = new Loader();
143195
+ /** @internal */
143196
+ async function decodeMeshoptBuffer(source, args) {
143197
+ const decoder = await loader.getDecoder();
143198
+ if (!decoder) {
143199
+ return undefined;
143200
+ }
143201
+ return decoder.decodeGltfBufferAsync(args.count, args.byteStride, source, args.mode, args.filter);
143202
+ }
143203
+
143204
+
143026
143205
  /***/ }),
143027
143206
 
143028
143207
  /***/ "../../core/frontend/lib/esm/tile/OPCFormatInterpreter.js":
@@ -150196,6 +150375,7 @@ __webpack_require__.r(__webpack_exports__);
150196
150375
  /* harmony export */ "createRealityTileTreeReference": () => (/* reexport safe */ _RealityModelTileTree__WEBPACK_IMPORTED_MODULE_73__.createRealityTileTreeReference),
150197
150376
  /* harmony export */ "createSpatialTileTreeReferences": () => (/* reexport safe */ _PrimaryTileTree__WEBPACK_IMPORTED_MODULE_78__.createSpatialTileTreeReferences),
150198
150377
  /* harmony export */ "decodeImdlGraphics": () => (/* reexport safe */ _ImdlGraphicsCreator__WEBPACK_IMPORTED_MODULE_35__.decodeImdlGraphics),
150378
+ /* harmony export */ "decodeMeshoptBuffer": () => (/* reexport safe */ _MeshoptCompression__WEBPACK_IMPORTED_MODULE_89__.decodeMeshoptBuffer),
150199
150379
  /* harmony export */ "disposeTileTreesForGeometricModels": () => (/* reexport safe */ _PrimaryTileTree__WEBPACK_IMPORTED_MODULE_78__.disposeTileTreesForGeometricModels),
150200
150380
  /* harmony export */ "getCesiumAccessTokenAndEndpointUrl": () => (/* reexport safe */ _map_CesiumTerrainProvider__WEBPACK_IMPORTED_MODULE_64__.getCesiumAccessTokenAndEndpointUrl),
150201
150381
  /* harmony export */ "getCesiumAssetUrl": () => (/* reexport safe */ _map_CesiumTerrainProvider__WEBPACK_IMPORTED_MODULE_64__.getCesiumAssetUrl),
@@ -150302,6 +150482,7 @@ __webpack_require__.r(__webpack_exports__);
150302
150482
  /* harmony import */ var _ThreeDTileFormatInterpreter__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(/*! ./ThreeDTileFormatInterpreter */ "../../core/frontend/lib/esm/tile/ThreeDTileFormatInterpreter.js");
150303
150483
  /* harmony import */ var _OPCFormatInterpreter__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(/*! ./OPCFormatInterpreter */ "../../core/frontend/lib/esm/tile/OPCFormatInterpreter.js");
150304
150484
  /* harmony import */ var _FetchCloudStorage__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(/*! ./FetchCloudStorage */ "../../core/frontend/lib/esm/tile/FetchCloudStorage.js");
150485
+ /* harmony import */ var _MeshoptCompression__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(/*! ./MeshoptCompression */ "../../core/frontend/lib/esm/tile/MeshoptCompression.js");
150305
150486
  /*---------------------------------------------------------------------------------------------
150306
150487
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
150307
150488
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -150407,6 +150588,7 @@ __webpack_require__.r(__webpack_exports__);
150407
150588
 
150408
150589
 
150409
150590
 
150591
+
150410
150592
 
150411
150593
 
150412
150594
  /***/ }),
@@ -293547,7 +293729,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
293547
293729
  /***/ ((module) => {
293548
293730
 
293549
293731
  "use strict";
293550
- module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.6.0-dev.3","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","copy:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","lint-fix":"eslint --fix -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2 && npm run -s webpackTestWorker","webpackTestWorker":"webpack --config ./src/test/worker/webpack.config.js 1>&2 && cpx \\"./lib/test/test-worker.js\\" ./lib/test","webpackWorkers":"webpack --config ./src/workers/ImdlParser/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^4.6.0-dev.3","@itwin/core-bentley":"workspace:^4.6.0-dev.3","@itwin/core-common":"workspace:^4.6.0-dev.3","@itwin/core-geometry":"workspace:^4.6.0-dev.3","@itwin/core-orbitgt":"workspace:^4.6.0-dev.3","@itwin/core-quantity":"workspace:^4.6.0-dev.3"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/certa":"workspace:*","@itwin/eslint-plugin":"4.0.0-dev.44","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^10.0.6","@types/sinon":"^17.0.2","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.3.10","chai-as-promised":"^7.1.1","cpx2":"^3.0.0","eslint":"^8.44.0","glob":"^7.1.2","mocha":"^10.2.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^17.0.1","source-map-loader":"^4.0.0","typescript":"~5.0.2","typemoq":"^2.1.0","webpack":"^5.76.0"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/cloud-agnostic-core":"^2.1.0","@itwin/object-storage-core":"^2.2.2","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"}}');
293732
+ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.6.0-dev.6","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","copy:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","lint-fix":"eslint --fix -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2 && npm run -s webpackTestWorker","webpackTestWorker":"webpack --config ./src/test/worker/webpack.config.js 1>&2 && cpx \\"./lib/test/test-worker.js\\" ./lib/test","webpackWorkers":"webpack --config ./src/workers/ImdlParser/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^4.6.0-dev.6","@itwin/core-bentley":"workspace:^4.6.0-dev.6","@itwin/core-common":"workspace:^4.6.0-dev.6","@itwin/core-geometry":"workspace:^4.6.0-dev.6","@itwin/core-orbitgt":"workspace:^4.6.0-dev.6","@itwin/core-quantity":"workspace:^4.6.0-dev.6"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/certa":"workspace:*","@itwin/eslint-plugin":"4.0.0-dev.44","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^10.0.6","@types/sinon":"^17.0.2","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.3.10","chai-as-promised":"^7.1.1","cpx2":"^3.0.0","eslint":"^8.44.0","glob":"^7.1.2","mocha":"^10.2.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^17.0.1","source-map-loader":"^4.0.0","typescript":"~5.0.2","typemoq":"^2.1.0","webpack":"^5.76.0"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/cloud-agnostic-core":"^2.1.0","@itwin/object-storage-core":"^2.2.2","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","meshoptimizer":"~0.20.0","wms-capabilities":"0.4.0"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"}}');
293551
293733
 
293552
293734
  /***/ })
293553
293735