@itwin/ecschema-rpcinterface-tests 4.0.0-dev.99 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -59083,40 +59083,82 @@ exports.ECStringConstants = ECStringConstants;
59083
59083
  * See LICENSE.md in the project root for license terms and full copyright notice.
59084
59084
  *--------------------------------------------------------------------------------------------*/
59085
59085
  Object.defineProperty(exports, "__esModule", ({ value: true }));
59086
- exports.SchemaContext = exports.SchemaCache = exports.SchemaMap = void 0;
59086
+ exports.SchemaContext = exports.SchemaCache = void 0;
59087
59087
  const ECObjects_1 = __webpack_require__(/*! ./ECObjects */ "../../core/ecschema-metadata/lib/cjs/ECObjects.js");
59088
59088
  const Exception_1 = __webpack_require__(/*! ./Exception */ "../../core/ecschema-metadata/lib/cjs/Exception.js");
59089
59089
  /**
59090
- * @beta
59090
+ * @internal
59091
59091
  */
59092
59092
  class SchemaMap extends Array {
59093
59093
  }
59094
- exports.SchemaMap = SchemaMap;
59095
59094
  /**
59096
- * @beta
59095
+ * @internal
59097
59096
  */
59098
59097
  class SchemaCache {
59099
59098
  constructor() {
59100
59099
  this._schema = new SchemaMap();
59101
59100
  }
59102
59101
  get count() { return this._schema.length; }
59102
+ loadedSchemaExists(schemaKey) {
59103
+ return undefined !== this._schema.find((entry) => entry.schemaInfo.schemaKey.matches(schemaKey, ECObjects_1.SchemaMatchType.Latest) && !entry.schemaPromise);
59104
+ }
59105
+ schemaPromiseExists(schemaKey) {
59106
+ return undefined !== this._schema.find((entry) => entry.schemaInfo.schemaKey.matches(schemaKey, ECObjects_1.SchemaMatchType.Latest) && undefined !== entry.schemaPromise);
59107
+ }
59108
+ findEntry(schemaKey, matchType) {
59109
+ return this._schema.find((entry) => entry.schemaInfo.schemaKey.matches(schemaKey, matchType));
59110
+ }
59111
+ removeSchemaPromise(schemaKey) {
59112
+ const entry = this.findEntry(schemaKey, ECObjects_1.SchemaMatchType.Latest);
59113
+ if (entry)
59114
+ entry.schemaPromise = undefined;
59115
+ }
59116
+ removeEntry(schemaKey) {
59117
+ this._schema = this._schema.filter((entry) => !entry.schemaInfo.schemaKey.matches(schemaKey));
59118
+ }
59119
+ /**
59120
+ * Returns true if the schema exists in either the schema cache or the promise cache. SchemaMatchType.Latest used.
59121
+ * @param schemaKey The key to search for.
59122
+ */
59123
+ schemaExists(schemaKey) {
59124
+ return this.loadedSchemaExists(schemaKey) || this.schemaPromiseExists(schemaKey);
59125
+ }
59126
+ /**
59127
+ * Adds a promise to load the schema to the cache. Does not allow for duplicate schemas in the cache of schemas or cache of promises, checks using SchemaMatchType.Latest.
59128
+ * When the promise completes the schema will be added to the schema cache and the promise will be removed from the promise cache
59129
+ * @param schemaInfo An object with the schema key for the schema being loaded and it's references
59130
+ * @param schema The partially loaded schema that the promise will fulfill
59131
+ * @param schemaPromise The schema promise to add to the cache.
59132
+ */
59133
+ async addSchemaPromise(schemaInfo, schema, schemaPromise) {
59134
+ if (this.schemaExists(schemaInfo.schemaKey))
59135
+ throw new Exception_1.ECObjectsError(Exception_1.ECObjectsStatus.DuplicateSchema, `The schema, ${schemaPromise.toString()}, already exists within this cache.`);
59136
+ this._schema.push({ schemaInfo, schema, schemaPromise });
59137
+ // This promise is cached and will be awaited when the user requests the full schema.
59138
+ // If the promise competes successfully before the user requests the schema it will be removed from the cache
59139
+ // If it fails it will remain in the cache until the user awaits it and handles the error
59140
+ // eslint-disable-next-line @typescript-eslint/no-floating-promises
59141
+ schemaPromise.then(() => {
59142
+ this.removeSchemaPromise(schemaInfo.schemaKey);
59143
+ });
59144
+ }
59103
59145
  /**
59104
59146
  * Adds a schema to the cache. Does not allow for duplicate schemas, checks using SchemaMatchType.Latest.
59105
59147
  * @param schema The schema to add to the cache.
59106
59148
  */
59107
59149
  async addSchema(schema) {
59108
- if (await this.getSchema(schema.schemaKey))
59150
+ if (this.schemaExists(schema.schemaKey))
59109
59151
  throw new Exception_1.ECObjectsError(Exception_1.ECObjectsStatus.DuplicateSchema, `The schema, ${schema.schemaKey.toString()}, already exists within this cache.`);
59110
- this._schema.push(schema);
59152
+ this._schema.push({ schemaInfo: schema, schema });
59111
59153
  }
59112
59154
  /**
59113
59155
  * Adds a schema to the cache. Does not allow for duplicate schemas, checks using SchemaMatchType.Latest.
59114
59156
  * @param schema The schema to add to the cache.
59115
59157
  */
59116
59158
  addSchemaSync(schema) {
59117
- if (this.getSchemaSync(schema.schemaKey))
59159
+ if (this.schemaExists(schema.schemaKey))
59118
59160
  throw new Exception_1.ECObjectsError(Exception_1.ECObjectsStatus.DuplicateSchema, `The schema, ${schema.schemaKey.toString()}, already exists within this cache.`);
59119
- this._schema.push(schema);
59161
+ this._schema.push({ schemaInfo: schema, schema });
59120
59162
  }
59121
59163
  /**
59122
59164
  * Gets the schema which matches the provided SchemaKey.
@@ -59126,46 +59168,69 @@ class SchemaCache {
59126
59168
  async getSchema(schemaKey, matchType = ECObjects_1.SchemaMatchType.Latest) {
59127
59169
  if (this.count === 0)
59128
59170
  return undefined;
59129
- const findFunc = (schema) => {
59130
- return schema.schemaKey.matches(schemaKey, matchType);
59131
- };
59132
- const foundSchema = this._schema.find(findFunc);
59133
- if (!foundSchema)
59171
+ const entry = this.findEntry(schemaKey, matchType);
59172
+ if (!entry)
59134
59173
  return undefined;
59135
- return foundSchema;
59174
+ if (entry.schemaPromise) {
59175
+ try {
59176
+ const schema = await entry.schemaPromise;
59177
+ return schema;
59178
+ }
59179
+ catch (e) {
59180
+ this.removeEntry(schemaKey);
59181
+ throw e;
59182
+ }
59183
+ }
59184
+ return entry.schema;
59136
59185
  }
59137
59186
  /**
59138
- *
59139
- * @param schemaKey
59140
- * @param matchType
59187
+ * Gets the schema info which matches the provided SchemaKey. The schema info may be returned before the schema is fully loaded.
59188
+ * @param schemaKey The SchemaKey describing the schema to get from the cache.
59189
+ * @param matchType The match type to use when locating the schema
59190
+ */
59191
+ async getSchemaInfo(schemaKey, matchType = ECObjects_1.SchemaMatchType.Latest) {
59192
+ if (this.count === 0)
59193
+ return undefined;
59194
+ const entry = this.findEntry(schemaKey, matchType);
59195
+ if (entry)
59196
+ return entry.schemaInfo;
59197
+ return undefined;
59198
+ }
59199
+ /**
59200
+ * Gets the schema which matches the provided SchemaKey. If the schema is partially loaded an exception will be thrown.
59201
+ * @param schemaKey The SchemaKey describing the schema to get from the cache.
59202
+ * @param matchType The match type to use when locating the schema
59141
59203
  */
59142
59204
  getSchemaSync(schemaKey, matchType = ECObjects_1.SchemaMatchType.Latest) {
59143
59205
  if (this.count === 0)
59144
59206
  return undefined;
59145
- const findFunc = (schema) => {
59146
- return schema.schemaKey.matches(schemaKey, matchType);
59147
- };
59148
- const foundSchema = this._schema.find(findFunc);
59149
- if (!foundSchema)
59150
- return foundSchema;
59151
- return foundSchema;
59207
+ const entry = this.findEntry(schemaKey, matchType);
59208
+ if (entry) {
59209
+ if (entry.schemaPromise) {
59210
+ throw new Exception_1.ECObjectsError(Exception_1.ECObjectsStatus.UnableToLoadSchema, `The Schema ${schemaKey.toString()} is partially loaded so cannot be loaded synchronously.`);
59211
+ }
59212
+ return entry.schema;
59213
+ }
59214
+ return undefined;
59152
59215
  }
59153
59216
  /**
59154
- * Generator function that can iterate through each schema in _schema SchemaMap and items for each Schema
59217
+ * Generator function that can iterate through each schema in _schema SchemaMap and items for each Schema.
59218
+ * Does not include schema items from schemas that are not completely loaded yet.
59155
59219
  */
59156
59220
  *getSchemaItems() {
59157
- for (const schema of this._schema) {
59158
- for (const schemaItem of schema.getItems()) {
59221
+ for (const entry of this._schema) {
59222
+ for (const schemaItem of entry.schema.getItems()) {
59159
59223
  yield schemaItem;
59160
59224
  }
59161
59225
  }
59162
59226
  }
59163
59227
  /**
59164
59228
  * Gets all the schemas from the schema cache.
59229
+ * Does not include schemas from schemas that are not completely loaded yet.
59165
59230
  * @returns An array of Schema objects.
59166
59231
  */
59167
59232
  getAllSchemas() {
59168
- return this._schema;
59233
+ return this._schema.map((entry) => entry.schema);
59169
59234
  }
59170
59235
  }
59171
59236
  exports.SchemaCache = SchemaCache;
@@ -59187,7 +59252,7 @@ class SchemaContext {
59187
59252
  this._locaters.push(locater);
59188
59253
  }
59189
59254
  /**
59190
- * Adds the schema to this context
59255
+ * Adds the schema to this context. Use addSchemaPromise instead when asynchronously loading schemas.
59191
59256
  * @param schema The schema to add to this context
59192
59257
  */
59193
59258
  async addSchema(schema) {
@@ -59203,6 +59268,7 @@ class SchemaContext {
59203
59268
  /**
59204
59269
  * Adds the given SchemaItem to the the SchemaContext by locating the schema, with the best match of SchemaMatchType.Exact, and
59205
59270
  * @param schemaItem The SchemaItem to add
59271
+ * @deprecated in 4.0 use ecschema-editing package
59206
59272
  */
59207
59273
  async addSchemaItem(schemaItem) {
59208
59274
  const schema = await this.getSchema(schemaItem.key.schemaKey, ECObjects_1.SchemaMatchType.Exact);
@@ -59210,6 +59276,24 @@ class SchemaContext {
59210
59276
  throw new Exception_1.ECObjectsError(Exception_1.ECObjectsStatus.UnableToLocateSchema, `Unable to add the schema item ${schemaItem.name} to the schema ${schemaItem.key.schemaKey.toString()} because the schema could not be located.`);
59211
59277
  schema.addItem(schemaItem);
59212
59278
  }
59279
+ /**
59280
+ * Returns true if the schema is already in the context. SchemaMatchType.Latest is used to find a match.
59281
+ * @param schemaKey
59282
+ */
59283
+ schemaExists(schemaKey) {
59284
+ return this._knownSchemas.schemaExists(schemaKey);
59285
+ }
59286
+ /**
59287
+ * Adds a promise to load the schema to the cache. Does not allow for duplicate schemas in the cache of schemas or cache of promises, checks using SchemaMatchType.Latest.
59288
+ * When the promise completes the schema will be added to the schema cache and the promise will be removed from the promise cache.
59289
+ * Use this method over addSchema when asynchronously loading schemas
59290
+ * @param schemaInfo An object with the schema key for the schema being loaded and it's references
59291
+ * @param schema The partially loaded schema that the promise will fulfill
59292
+ * @param schemaPromise The schema promise to add to the cache.
59293
+ */
59294
+ async addSchemaPromise(schemaInfo, schema, schemaPromise) {
59295
+ return this._knownSchemas.addSchemaPromise(schemaInfo, schema, schemaPromise);
59296
+ }
59213
59297
  /**
59214
59298
  *
59215
59299
  * @param schemaKey
@@ -59223,6 +59307,20 @@ class SchemaContext {
59223
59307
  }
59224
59308
  return undefined;
59225
59309
  }
59310
+ /**
59311
+ * Gets the schema info which matches the provided SchemaKey. The schema info may be returned before the schema is fully loaded.
59312
+ * The fully loaded schema can be gotten later from the context using the getCachedSchema method.
59313
+ * @param schemaKey The SchemaKey describing the schema to get from the cache.
59314
+ * @param matchType The match type to use when locating the schema
59315
+ */
59316
+ async getSchemaInfo(schemaKey, matchType) {
59317
+ for (const locater of this._locaters) {
59318
+ const schemaInfo = await locater.getSchemaInfo(schemaKey, matchType, this);
59319
+ if (undefined !== schemaInfo)
59320
+ return schemaInfo;
59321
+ }
59322
+ return undefined;
59323
+ }
59226
59324
  /**
59227
59325
  *
59228
59326
  * @param schemaKey
@@ -59238,42 +59336,62 @@ class SchemaContext {
59238
59336
  }
59239
59337
  /**
59240
59338
  * Attempts to get a Schema from the context's cache.
59339
+ * Will await a partially loaded schema then return when it is completely loaded.
59241
59340
  * @param schemaKey The SchemaKey to identify the Schema.
59242
59341
  * @param matchType The SchemaMatch type to use. Default is SchemaMatchType.Latest.
59243
59342
  * @internal
59244
59343
  */
59245
59344
  async getCachedSchema(schemaKey, matchType = ECObjects_1.SchemaMatchType.Latest) {
59246
- return this.getCachedSchemaSync(schemaKey, matchType);
59345
+ return this._knownSchemas.getSchema(schemaKey, matchType);
59247
59346
  }
59248
59347
  /**
59249
59348
  * Attempts to get a Schema from the context's cache.
59349
+ * Will return undefined if the cached schema is partially loaded. Use the async method to await partially loaded schemas.
59250
59350
  * @param schemaKey The SchemaKey to identify the Schema.
59251
59351
  * @param matchType The SchemaMatch type to use. Default is SchemaMatchType.Latest.
59252
59352
  * @internal
59253
59353
  */
59254
59354
  getCachedSchemaSync(schemaKey, matchType = ECObjects_1.SchemaMatchType.Latest) {
59255
- const schema = this._knownSchemas.getSchemaSync(schemaKey, matchType);
59256
- return schema;
59355
+ return this._knownSchemas.getSchemaSync(schemaKey, matchType);
59257
59356
  }
59357
+ /**
59358
+ * Gets the schema item from the specified schema if it exists in this [[SchemaContext]].
59359
+ * Will await a partially loaded schema then look in it for the requested item
59360
+ * @param schemaItemKey The SchemaItemKey identifying the item to return. SchemaMatchType.Latest is used to match the schema.
59361
+ * @returns The requested schema item
59362
+ */
59258
59363
  async getSchemaItem(schemaItemKey) {
59259
59364
  const schema = await this.getSchema(schemaItemKey.schemaKey, ECObjects_1.SchemaMatchType.Latest);
59260
59365
  if (undefined === schema)
59261
59366
  return undefined;
59262
59367
  return schema.getItem(schemaItemKey.name);
59263
59368
  }
59369
+ /**
59370
+ * Gets the schema item from the specified schema if it exists in this [[SchemaContext]].
59371
+ * Will skip a partially loaded schema and return undefined if the item belongs to that schema. Use the async method to await partially loaded schemas.
59372
+ * @param schemaItemKey The SchemaItemKey identifying the item to return. SchemaMatchType.Latest is used to match the schema.
59373
+ * @returns The requested schema item
59374
+ */
59264
59375
  getSchemaItemSync(schemaItemKey) {
59265
59376
  const schema = this.getSchemaSync(schemaItemKey.schemaKey, ECObjects_1.SchemaMatchType.Latest);
59266
59377
  if (undefined === schema)
59267
59378
  return undefined;
59268
59379
  return schema.getItemSync(schemaItemKey.name);
59269
59380
  }
59381
+ /**
59382
+ * Iterates through the items of each schema known to the context. This includes schemas added to the
59383
+ * context using [[SchemaContext.addSchema]]. This does not include schemas that
59384
+ * can be located by an ISchemaLocater instance added to the context.
59385
+ * Does not include schema items from schemas that are not completely loaded yet.
59386
+ */
59270
59387
  getSchemaItems() {
59271
59388
  return this._knownSchemas.getSchemaItems();
59272
59389
  }
59273
59390
  /**
59274
59391
  * Gets all the Schemas known by the context. This includes schemas added to the
59275
59392
  * context using [[SchemaContext.addSchema]]. This does not include schemas that
59276
- * can be located by an ISchemaLocater instance added to the context.
59393
+ * can be located by an ISchemaLocater instance added to the context. Does not
59394
+ * include schemas that are partially loaded.
59277
59395
  * @returns An array of Schema objects.
59278
59396
  */
59279
59397
  getKnownSchemas() {
@@ -59443,11 +59561,13 @@ class SchemaReadHelper {
59443
59561
  this._parserType = parserType;
59444
59562
  }
59445
59563
  /**
59446
- * Populates the given Schema from a serialized representation.
59564
+ * Creates a complete SchemaInfo and starts parsing the schema from a serialized representation.
59565
+ * The info and schema promise will be registered with the SchemaContext. The complete schema can be retrieved by
59566
+ * calling getCachedSchema on the context.
59447
59567
  * @param schema The Schema to populate
59448
59568
  * @param rawSchema The serialized data to use to populate the Schema.
59449
59569
  */
59450
- async readSchema(schema, rawSchema) {
59570
+ async readSchemaInfo(schema, rawSchema) {
59451
59571
  // Ensure context matches schema context
59452
59572
  if (schema.context) {
59453
59573
  if (this._context !== schema.context)
@@ -59460,12 +59580,38 @@ class SchemaReadHelper {
59460
59580
  // Loads all of the properties on the Schema object
59461
59581
  await schema.fromJSON(this._parser.parseSchema());
59462
59582
  this._schema = schema;
59463
- // Need to add this schema to the context to be able to locate schemaItems within the context.
59464
- await this._context.addSchema(schema);
59465
- // Load schema references first
59466
- // Need to figure out if other schemas are present.
59583
+ const schemaInfo = { schemaKey: schema.schemaKey, references: [] };
59467
59584
  for (const reference of this._parser.getReferences()) {
59468
- await this.loadSchemaReference(reference);
59585
+ const refKey = new SchemaKey_1.SchemaKey(reference.name, SchemaKey_1.ECVersion.fromString(reference.version));
59586
+ schemaInfo.references.push({ schemaKey: refKey });
59587
+ }
59588
+ this._schemaInfo = schemaInfo;
59589
+ // Need to add this schema to the context to be able to locate schemaItems within the context.
59590
+ if (!this._context.schemaExists(schema.schemaKey)) {
59591
+ await this._context.addSchemaPromise(schemaInfo, schema, this.loadSchema(schemaInfo, schema));
59592
+ }
59593
+ return schemaInfo;
59594
+ }
59595
+ /**
59596
+ * Populates the given Schema from a serialized representation.
59597
+ * @param schema The Schema to populate
59598
+ * @param rawSchema The serialized data to use to populate the Schema.
59599
+ */
59600
+ async readSchema(schema, rawSchema) {
59601
+ if (!this._schemaInfo) {
59602
+ await this.readSchemaInfo(schema, rawSchema);
59603
+ }
59604
+ const cachedSchema = await this._context.getCachedSchema(this._schemaInfo.schemaKey, ECObjects_1.SchemaMatchType.Latest);
59605
+ if (undefined === cachedSchema)
59606
+ throw new Exception_1.ECObjectsError(Exception_1.ECObjectsStatus.UnableToLoadSchema, `Could not load schema ${schema.schemaKey.toString()}`);
59607
+ return cachedSchema;
59608
+ }
59609
+ /* Finish loading the rest of the schema */
59610
+ async loadSchema(schemaInfo, schema) {
59611
+ // Verify that there are no schema reference cycles, this will start schema loading by loading their headers
59612
+ (await SchemaGraph_1.SchemaGraph.generateGraph(schemaInfo, this._context)).throwIfCycles();
59613
+ for (const reference of schemaInfo.references) {
59614
+ await this.loadSchemaReference(schemaInfo, reference.schemaKey);
59469
59615
  }
59470
59616
  if (this._visitorHelper)
59471
59617
  await this._visitorHelper.visitSchema(schema, false);
@@ -59524,11 +59670,10 @@ class SchemaReadHelper {
59524
59670
  * Ensures that the schema references can be located and adds them to the schema.
59525
59671
  * @param ref The object to read the SchemaReference's props from.
59526
59672
  */
59527
- async loadSchemaReference(ref) {
59528
- const schemaKey = new SchemaKey_1.SchemaKey(ref.name, SchemaKey_1.ECVersion.fromString(ref.version));
59529
- const refSchema = await this._context.getSchema(schemaKey, ECObjects_1.SchemaMatchType.LatestWriteCompatible);
59673
+ async loadSchemaReference(schemaInfo, refKey) {
59674
+ const refSchema = await this._context.getSchema(refKey, ECObjects_1.SchemaMatchType.LatestWriteCompatible);
59530
59675
  if (undefined === refSchema)
59531
- throw new Exception_1.ECObjectsError(Exception_1.ECObjectsStatus.UnableToLocateSchema, `Could not locate the referenced schema, ${ref.name}.${ref.version}, of ${this._schema.schemaKey.name}`);
59676
+ throw new Exception_1.ECObjectsError(Exception_1.ECObjectsStatus.UnableToLocateSchema, `Could not locate the referenced schema, ${refKey.name}.${refKey.version.toString()}, of ${schemaInfo.schemaKey.name}`);
59532
59677
  await this._schema.addReference(refSchema);
59533
59678
  const results = this.validateSchemaReferences(this._schema);
59534
59679
  let errorMessage = "";
@@ -59549,6 +59694,7 @@ class SchemaReadHelper {
59549
59694
  if (!refSchema)
59550
59695
  throw new Exception_1.ECObjectsError(Exception_1.ECObjectsStatus.UnableToLocateSchema, `Could not locate the referenced schema, ${ref.name}.${ref.version}, of ${this._schema.schemaKey.name}`);
59551
59696
  this._schema.addReferenceSync(refSchema);
59697
+ SchemaGraph_1.SchemaGraph.generateGraphSync(this._schema).throwIfCycles();
59552
59698
  const results = this.validateSchemaReferences(this._schema);
59553
59699
  let errorMessage = "";
59554
59700
  for (const result of results) {
@@ -59577,12 +59723,6 @@ class SchemaReadHelper {
59577
59723
  aliases.set(schemaRef.alias, schemaRef);
59578
59724
  }
59579
59725
  }
59580
- const graph = new SchemaGraph_1.SchemaGraph(schema);
59581
- const cycles = graph.detectCycles();
59582
- if (cycles) {
59583
- const result = cycles.map((cycle) => `${cycle.schema.name} --> ${cycle.refSchema.name}`).join(", ");
59584
- yield `Schema '${schema.name}' has reference cycles: ${result}`;
59585
- }
59586
59726
  }
59587
59727
  /**
59588
59728
  * Given the schema item object, the anticipated type and the name a schema item is created and loaded into the schema provided.
@@ -59767,7 +59907,10 @@ class SchemaReadHelper {
59767
59907
  const isInThisSchema = (this._schema && this._schema.name.toLowerCase() === schemaName.toLowerCase());
59768
59908
  if (undefined === schemaName || 0 === schemaName.length)
59769
59909
  throw new Exception_1.ECObjectsError(Exception_1.ECObjectsStatus.InvalidECJson, `The SchemaItem ${name} is invalid without a schema name`);
59770
- if (isInThisSchema && undefined === await this._schema.getItem(itemName)) {
59910
+ if (isInThisSchema) {
59911
+ schemaItem = await this._schema.getItem(itemName);
59912
+ if (schemaItem)
59913
+ return schemaItem;
59771
59914
  const foundItem = this._parser.findItem(itemName);
59772
59915
  if (foundItem) {
59773
59916
  schemaItem = await this.loadSchemaItem(this._schema, ...foundItem);
@@ -62841,6 +62984,7 @@ var ECObjectsStatus;
62841
62984
  ECObjectsStatus[ECObjectsStatus["InvalidSchemaComparisonArgument"] = 35077] = "InvalidSchemaComparisonArgument";
62842
62985
  ECObjectsStatus[ECObjectsStatus["InvalidSchemaAlias"] = 35078] = "InvalidSchemaAlias";
62843
62986
  ECObjectsStatus[ECObjectsStatus["InvalidSchemaKey"] = 35079] = "InvalidSchemaKey";
62987
+ ECObjectsStatus[ECObjectsStatus["UnableToLoadSchema"] = 35080] = "UnableToLoadSchema";
62844
62988
  })(ECObjectsStatus = exports.ECObjectsStatus || (exports.ECObjectsStatus = {}));
62845
62989
  /** @internal */
62846
62990
  class ECObjectsError extends core_bentley_1.BentleyError {
@@ -66466,6 +66610,9 @@ class Schema {
66466
66610
  schemaXml.appendChild(schemaMetadata);
66467
66611
  return schemaXml;
66468
66612
  }
66613
+ /**
66614
+ * Loads the schema header (name, version alias, label and description) from the input SchemaProps
66615
+ */
66469
66616
  fromJSONSync(schemaProps) {
66470
66617
  if (undefined === this._schemaKey) {
66471
66618
  const schemaName = schemaProps.name;
@@ -66491,9 +66638,22 @@ class Schema {
66491
66638
  if (undefined !== schemaProps.description)
66492
66639
  this._description = schemaProps.description;
66493
66640
  }
66641
+ /**
66642
+ * Loads the schema header (name, version alias, label and description) from the input SchemaProps
66643
+ */
66494
66644
  async fromJSON(schemaProps) {
66495
66645
  this.fromJSONSync(schemaProps);
66496
66646
  }
66647
+ /**
66648
+ * Completely loads the SchemaInfo from the input json and starts loading the entire schema. The complete schema can be retrieved from the
66649
+ * schema context using the getCachedSchema method
66650
+ */
66651
+ static async startLoadingFromJson(jsonObj, context) {
66652
+ const schema = new Schema(context);
66653
+ const reader = new Helper_1.SchemaReadHelper(JsonParser_1.JsonParser, context);
66654
+ const rawSchema = typeof jsonObj === "string" ? JSON.parse(jsonObj) : jsonObj;
66655
+ return reader.readSchemaInfo(schema, rawSchema);
66656
+ }
66497
66657
  static async fromJson(jsonObj, context) {
66498
66658
  let schema = new Schema(context);
66499
66659
  const reader = new Helper_1.SchemaReadHelper(JsonParser_1.JsonParser, context);
@@ -66501,6 +66661,9 @@ class Schema {
66501
66661
  schema = await reader.readSchema(schema, rawSchema);
66502
66662
  return schema;
66503
66663
  }
66664
+ /**
66665
+ * Completely loads the Schema from the input json. The schema is cached in the schema context.
66666
+ */
66504
66667
  static fromJsonSync(jsonObj, context) {
66505
66668
  let schema = new Schema(context);
66506
66669
  const reader = new Helper_1.SchemaReadHelper(JsonParser_1.JsonParser, context);
@@ -67026,6 +67189,14 @@ class SchemaJsonLocater {
67026
67189
  async getSchema(schemaKey, matchType, context) {
67027
67190
  return this.getSchemaSync(schemaKey, matchType, context);
67028
67191
  }
67192
+ /**
67193
+ * Gets the schema info which matches the provided SchemaKey. The schema info may be returned before the schema is fully loaded.
67194
+ * @param schemaKey The SchemaKey describing the schema to get from the cache.
67195
+ * @param matchType The match type to use when locating the schema
67196
+ */
67197
+ async getSchemaInfo(schemaKey, matchType, context) {
67198
+ return this.getSchema(schemaKey, matchType, context);
67199
+ }
67029
67200
  /** Get a schema by [SchemaKey] synchronously.
67030
67201
  * @param schemaKey The [SchemaKey] that identifies the schema.
67031
67202
  * * @param matchType The [SchemaMatchType] to used for comparing schema versions.
@@ -68522,7 +68693,7 @@ Object.defineProperty(exports, "SchemaGraph", ({ enumerable: true, get: function
68522
68693
  /*!*****************************************************************!*\
68523
68694
  !*** ../../core/ecschema-metadata/lib/cjs/utils/SchemaGraph.js ***!
68524
68695
  \*****************************************************************/
68525
- /***/ ((__unused_webpack_module, exports) => {
68696
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
68526
68697
 
68527
68698
  "use strict";
68528
68699
 
@@ -68532,22 +68703,32 @@ Object.defineProperty(exports, "SchemaGraph", ({ enumerable: true, get: function
68532
68703
  *--------------------------------------------------------------------------------------------*/
68533
68704
  Object.defineProperty(exports, "__esModule", ({ value: true }));
68534
68705
  exports.SchemaGraph = void 0;
68706
+ const ECObjects_1 = __webpack_require__(/*! ../ECObjects */ "../../core/ecschema-metadata/lib/cjs/ECObjects.js");
68707
+ const Exception_1 = __webpack_require__(/*! ../Exception */ "../../core/ecschema-metadata/lib/cjs/Exception.js");
68535
68708
  /**
68536
68709
  * Utility class for detecting cyclic references in a Schema graph.
68537
- * @beta
68710
+ * @internal
68538
68711
  */
68539
68712
  class SchemaGraph {
68713
+ constructor() {
68714
+ this._schemas = [];
68715
+ }
68716
+ find(schemaKey) {
68717
+ return this._schemas.find((info) => info.schemaKey.matches(schemaKey, ECObjects_1.SchemaMatchType.Latest));
68718
+ }
68540
68719
  /**
68541
- * Initializes a new SchemaGraph instance.
68542
- * @param schema The schema to analyze.
68720
+ * Detected cyclic references in a schema and throw an exception if a cycle is found.
68543
68721
  */
68544
- constructor(schema) {
68545
- this._schemas = [];
68546
- this.populateGraph(schema);
68722
+ throwIfCycles() {
68723
+ const cycles = this.detectCycles();
68724
+ if (cycles) {
68725
+ const result = cycles.map((cycle) => `${cycle.schema.schemaKey.name} --> ${cycle.refSchema.schemaKey.name}`).join(", ");
68726
+ throw new Exception_1.ECObjectsError(Exception_1.ECObjectsStatus.InvalidECJson, `Schema '${this._schemas[0].schemaKey.name}' has reference cycles: ${result}`);
68727
+ }
68547
68728
  }
68548
68729
  /**
68549
68730
  * Detected cyclic references in a schema.
68550
- * @returns True if a cycle is found.
68731
+ * @returns An array describing the cycle if there is a cycle or undefined if no cycles found.
68551
68732
  */
68552
68733
  detectCycles() {
68553
68734
  const visited = {};
@@ -68562,31 +68743,70 @@ class SchemaGraph {
68562
68743
  }
68563
68744
  detectCycleUtil(schema, visited, recStack, cycles) {
68564
68745
  let cycleFound = false;
68565
- if (!visited[schema.name]) {
68566
- visited[schema.name] = true;
68567
- recStack[schema.name] = true;
68568
- for (const refSchema of schema.references) {
68569
- if (!visited[refSchema.name] && this.detectCycleUtil(refSchema, visited, recStack, cycles)) {
68746
+ if (!visited[schema.schemaKey.name]) {
68747
+ visited[schema.schemaKey.name] = true;
68748
+ recStack[schema.schemaKey.name] = true;
68749
+ for (const refKey of schema.references) {
68750
+ const refSchema = this.find(refKey.schemaKey);
68751
+ if (undefined === refSchema)
68752
+ throw new Exception_1.ECObjectsError(Exception_1.ECObjectsStatus.UnableToLoadSchema, `Could not find the schema info for ref schema ${refKey.schemaKey.toString()} for schema ${schema.schemaKey.toString()}`);
68753
+ if (!visited[refKey.schemaKey.name] && this.detectCycleUtil(refSchema, visited, recStack, cycles)) {
68570
68754
  cycles.push({ schema, refSchema });
68571
68755
  cycleFound = true;
68572
68756
  }
68573
- else if (recStack[refSchema.name]) {
68757
+ else if (recStack[refKey.schemaKey.name]) {
68574
68758
  cycles.push({ schema, refSchema });
68575
68759
  cycleFound = true;
68576
68760
  }
68577
68761
  }
68578
68762
  }
68579
68763
  if (!cycleFound)
68580
- recStack[schema.name] = false;
68764
+ recStack[schema.schemaKey.name] = false;
68581
68765
  return cycleFound;
68582
68766
  }
68583
- populateGraph(schema) {
68584
- if (this._schemas.includes(schema))
68585
- return;
68586
- this._schemas.push(schema);
68587
- for (const refSchema of schema.references) {
68588
- this.populateGraph(refSchema);
68589
- }
68767
+ /**
68768
+ * Generates a SchemaGraph for the input schema using the context to find info on referenced schemas. Use the generateGraphSync if you have the fully loaded Schema.
68769
+ * @param schema The SchemaInfo to build the graph from
68770
+ * @param context The SchemaContext used to locate info on the referenced schemas
68771
+ * @returns A SchemaGraph that can be used to detect schema cycles
68772
+ */
68773
+ static async generateGraph(schema, context) {
68774
+ const graph = new SchemaGraph();
68775
+ const genGraph = async (s) => {
68776
+ if (graph.find(s.schemaKey))
68777
+ return;
68778
+ graph._schemas.push(s);
68779
+ for (const refSchema of s.references) {
68780
+ if (!graph.find(refSchema.schemaKey)) {
68781
+ const refInfo = await context.getSchemaInfo(refSchema.schemaKey, ECObjects_1.SchemaMatchType.LatestWriteCompatible);
68782
+ if (undefined === refInfo) {
68783
+ throw new Exception_1.ECObjectsError(Exception_1.ECObjectsStatus.UnableToLocateSchema, `Could not locate the referenced schema, ${refSchema.schemaKey.name}.${refSchema.schemaKey.version.toString()}, of ${s.schemaKey.name} when populating the graph for ${schema.schemaKey.name}`);
68784
+ }
68785
+ await genGraph(refInfo);
68786
+ }
68787
+ }
68788
+ };
68789
+ await genGraph(schema);
68790
+ return graph;
68791
+ }
68792
+ /**
68793
+ * Generates a SchemaGraph for the input schema. Use the generateGraph if you just have schema info.
68794
+ * @param schema The Schema to build the graph from.
68795
+ * @returns A SchemaGraph that can be used to detect schema cycles
68796
+ */
68797
+ static generateGraphSync(schema) {
68798
+ const graph = new SchemaGraph();
68799
+ const genGraph = (s) => {
68800
+ if (graph.find(s.schemaKey))
68801
+ return;
68802
+ graph._schemas.push(s);
68803
+ for (const refSchema of s.references) {
68804
+ if (!graph.find(refSchema.schemaKey))
68805
+ genGraph(refSchema);
68806
+ }
68807
+ };
68808
+ genGraph(schema);
68809
+ return graph;
68590
68810
  }
68591
68811
  }
68592
68812
  exports.SchemaGraph = SchemaGraph;
@@ -68690,10 +68910,21 @@ class ECSchemaRpcLocater {
68690
68910
  * @param context The SchemaContext that will control the lifetime of the schema and holds the schema's references, if they exist.
68691
68911
  */
68692
68912
  async getSchema(schemaKey, matchType, context) {
68913
+ await this.getSchemaInfo(schemaKey, matchType, context);
68914
+ const schema = await context.getCachedSchema(schemaKey, matchType);
68915
+ return schema;
68916
+ }
68917
+ /**
68918
+ * Gets the schema info which matches the provided SchemaKey. The schema info may be returned before the schema is fully loaded.
68919
+ * The fully loaded schema can be accessed via the schema context using the getCachedSchema method.
68920
+ * @param schemaKey The SchemaKey describing the schema to get from the cache.
68921
+ * @param matchType The match type to use when locating the schema
68922
+ */
68923
+ async getSchemaInfo(schemaKey, matchType, context) {
68693
68924
  const schemaJson = await ECSchemaRpcInterface_1.ECSchemaRpcInterface.getClient().getSchemaJSON(this.token, schemaKey.name);
68694
- const schema = await ecschema_metadata_1.Schema.fromJson(schemaJson, context || new ecschema_metadata_1.SchemaContext());
68695
- if (schema !== undefined && schema.schemaKey.matches(schemaKey, matchType)) {
68696
- return schema;
68925
+ const schemaInfo = await ecschema_metadata_1.Schema.startLoadingFromJson(schemaJson, context || new ecschema_metadata_1.SchemaContext());
68926
+ if (schemaInfo !== undefined && schemaInfo.schemaKey.matches(schemaKey, matchType)) {
68927
+ return schemaInfo;
68697
68928
  }
68698
68929
  return undefined;
68699
68930
  }
@@ -72561,9 +72792,13 @@ class AccuSnap {
72561
72792
  this.aSnapHits.removeCurrentHit();
72562
72793
  hit = await this.getAccuSnapDetail(this.aSnapHits, out);
72563
72794
  }
72795
+ if (!this._doSnapping)
72796
+ hit = undefined; // Snap no longer requested...
72564
72797
  }
72565
72798
  else if (this.isLocateEnabled) {
72566
72799
  hit = await this.findLocatableHit(ev, false, out); // get next AccuSnap path (or undefined)
72800
+ if (!this.isLocateEnabled)
72801
+ hit = undefined; // Hit no longer requested...
72567
72802
  }
72568
72803
  // set the current hit
72569
72804
  if (hit || this.currHit)
@@ -72584,9 +72819,13 @@ class AccuSnap {
72584
72819
  if (this._doSnapping) {
72585
72820
  out.snapStatus = this.findHits(ev);
72586
72821
  hit = (_ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__.SnapStatus.Success !== out.snapStatus) ? undefined : await this.getAccuSnapDetail(this.aSnapHits, out);
72822
+ if (!this._doSnapping)
72823
+ hit = undefined; // Snap no longer requested...
72587
72824
  }
72588
72825
  else if (this.isLocateEnabled) {
72589
72826
  hit = await this.findLocatableHit(ev, true, out);
72827
+ if (!this.isLocateEnabled)
72828
+ hit = undefined; // Hit no longer requested...
72590
72829
  }
72591
72830
  }
72592
72831
  // set the current hit and display the sprite (based on snap's KeypointType)
@@ -79341,9 +79580,7 @@ class IModelApp {
79341
79580
  static get applicationVersion() { return this._applicationVersion; }
79342
79581
  /** True after [[startup]] has been called, until [[shutdown]] is called. */
79343
79582
  static get initialized() { return this._initialized; }
79344
- /** Provides access to the IModelHub implementation for this IModelApp.
79345
- * @internal
79346
- */
79583
+ /** Provides access to IModelHub services. */
79347
79584
  static get hubAccess() { return this._hubAccess; }
79348
79585
  /** Provides access to the RealityData service implementation for this IModelApp
79349
79586
  * @beta
@@ -95206,65 +95443,6 @@ class ExtensionHost {
95206
95443
  }
95207
95444
 
95208
95445
 
95209
- /***/ }),
95210
-
95211
- /***/ "../../core/frontend/lib/esm/extension/ExtensionImpl.js":
95212
- /*!**************************************************************!*\
95213
- !*** ../../core/frontend/lib/esm/extension/ExtensionImpl.js ***!
95214
- \**************************************************************/
95215
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
95216
-
95217
- "use strict";
95218
- __webpack_require__.r(__webpack_exports__);
95219
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
95220
- /* harmony export */ "ExtensionImpl": () => (/* binding */ ExtensionImpl),
95221
- /* harmony export */ "ToolProvider": () => (/* binding */ ToolProvider)
95222
- /* harmony export */ });
95223
- /* harmony import */ var _IModelApp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../IModelApp */ "../../core/frontend/lib/esm/IModelApp.js");
95224
- /* harmony import */ var _itwin_appui_abstract__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @itwin/appui-abstract */ "../../ui/appui-abstract/lib/esm/appui-abstract.js");
95225
- /*---------------------------------------------------------------------------------------------
95226
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
95227
- * See LICENSE.md in the project root for license terms and full copyright notice.
95228
- *--------------------------------------------------------------------------------------------*/
95229
- /** @packageDocumentation
95230
- * @module Extensions
95231
- */
95232
-
95233
-
95234
- /** @alpha */
95235
- class ToolProvider {
95236
- constructor(tool) {
95237
- this._toolId = "";
95238
- this.id = `ToolProvider:${tool.toolId}`;
95239
- this._toolId = tool.toolId;
95240
- this._toolIcon = tool.iconSpec;
95241
- this._toolLabel = tool.description;
95242
- }
95243
- provideToolbarButtonItems(_stageId, stageUsage, toolbarUsage, toolbarOrientation) {
95244
- const toolbarItem = _itwin_appui_abstract__WEBPACK_IMPORTED_MODULE_1__.ToolbarItemUtilities.createActionButton(this._toolId, 0, this._toolIcon, this._toolLabel, async () => {
95245
- await _IModelApp__WEBPACK_IMPORTED_MODULE_0__.IModelApp.tools.run(this._toolId);
95246
- });
95247
- return stageUsage === _itwin_appui_abstract__WEBPACK_IMPORTED_MODULE_1__.StageUsage.General && toolbarUsage === _itwin_appui_abstract__WEBPACK_IMPORTED_MODULE_1__.ToolbarUsage.ContentManipulation && toolbarOrientation === _itwin_appui_abstract__WEBPACK_IMPORTED_MODULE_1__.ToolbarOrientation.Vertical ? [toolbarItem] : []; // eslint-disable-line deprecation/deprecation
95248
- }
95249
- }
95250
- /** @alpha */
95251
- class ExtensionImpl {
95252
- constructor(_id) {
95253
- this._id = _id;
95254
- }
95255
- async registerTool(tool, onRegistered) {
95256
- try {
95257
- _IModelApp__WEBPACK_IMPORTED_MODULE_0__.IModelApp.tools.register(tool);
95258
- _itwin_appui_abstract__WEBPACK_IMPORTED_MODULE_1__.UiItemsManager.register(new ToolProvider(tool)); // eslint-disable-line deprecation/deprecation
95259
- onRegistered?.();
95260
- }
95261
- catch (e) {
95262
- console.log(`Error registering tool: ${e}`); // eslint-disable-line
95263
- }
95264
- }
95265
- }
95266
-
95267
-
95268
95446
  /***/ }),
95269
95447
 
95270
95448
  /***/ "../../core/frontend/lib/esm/extension/ExtensionRuntime.js":
@@ -95275,10 +95453,9 @@ class ExtensionImpl {
95275
95453
 
95276
95454
  "use strict";
95277
95455
  __webpack_require__.r(__webpack_exports__);
95278
- /* harmony import */ var _ExtensionImpl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ExtensionImpl */ "../../core/frontend/lib/esm/extension/ExtensionImpl.js");
95279
- /* harmony import */ var _ExtensionHost__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ExtensionHost */ "../../core/frontend/lib/esm/extension/ExtensionHost.js");
95280
- /* harmony import */ var _core_frontend__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core-frontend */ "../../core/frontend/lib/esm/core-frontend.js");
95281
- /* harmony import */ var _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @itwin/core-common */ "../../core/common/lib/esm/core-common.js");
95456
+ /* harmony import */ var _ExtensionHost__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ExtensionHost */ "../../core/frontend/lib/esm/extension/ExtensionHost.js");
95457
+ /* harmony import */ var _core_frontend__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core-frontend */ "../../core/frontend/lib/esm/core-frontend.js");
95458
+ /* harmony import */ var _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @itwin/core-common */ "../../core/common/lib/esm/core-common.js");
95282
95459
  /*---------------------------------------------------------------------------------------------
95283
95460
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
95284
95461
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -95290,7 +95467,6 @@ __webpack_require__.r(__webpack_exports__);
95290
95467
  /* eslint-disable @itwin/no-internal-barrel-imports */
95291
95468
  /* eslint-disable sort-imports */
95292
95469
 
95293
-
95294
95470
  const globalSymbol = Symbol.for("itwin.core.frontend.globals");
95295
95471
  if (globalThis[globalSymbol])
95296
95472
  throw new Error("Multiple @itwin/core-frontend imports detected!");
@@ -95298,265 +95474,264 @@ if (globalThis[globalSymbol])
95298
95474
 
95299
95475
 
95300
95476
  const extensionExports = {
95301
- ACSDisplayOptions: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ACSDisplayOptions,
95302
- ACSType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ACSType,
95303
- AccuDrawHintBuilder: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.AccuDrawHintBuilder,
95304
- AccuSnap: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.AccuSnap,
95305
- ActivityMessageDetails: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ActivityMessageDetails,
95306
- ActivityMessageEndReason: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ActivityMessageEndReason,
95307
- AuxCoordSystem2dState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.AuxCoordSystem2dState,
95308
- AuxCoordSystem3dState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.AuxCoordSystem3dState,
95309
- AuxCoordSystemSpatialState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.AuxCoordSystemSpatialState,
95310
- AuxCoordSystemState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.AuxCoordSystemState,
95311
- BackgroundFill: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.BackgroundFill,
95312
- BackgroundMapType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.BackgroundMapType,
95313
- BatchType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.BatchType,
95314
- BeButton: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.BeButton,
95315
- BeButtonEvent: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.BeButtonEvent,
95316
- BeButtonState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.BeButtonState,
95317
- BeModifierKeys: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.BeModifierKeys,
95318
- BeTouchEvent: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.BeTouchEvent,
95319
- BeWheelEvent: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.BeWheelEvent,
95320
- BingElevationProvider: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.BingElevationProvider,
95321
- BingLocationProvider: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.BingLocationProvider,
95322
- BisCodeSpec: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.BisCodeSpec,
95323
- BriefcaseIdValue: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.BriefcaseIdValue,
95324
- CategorySelectorState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.CategorySelectorState,
95325
- ChangeFlags: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ChangeFlags,
95326
- ChangeOpCode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.ChangeOpCode,
95327
- ChangedValueState: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.ChangedValueState,
95328
- ChangesetType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.ChangesetType,
95329
- ClipEventType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ClipEventType,
95330
- Cluster: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.Cluster,
95331
- ColorByName: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.ColorByName,
95332
- ColorDef: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.ColorDef,
95333
- CommonLoggerCategory: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.CommonLoggerCategory,
95334
- ContextRealityModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ContextRealityModelState,
95335
- ContextRotationId: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ContextRotationId,
95336
- CoordSource: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.CoordSource,
95337
- CoordSystem: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.CoordSystem,
95338
- CoordinateLockOverrides: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.CoordinateLockOverrides,
95339
- DecorateContext: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.DecorateContext,
95340
- Decorations: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.Decorations,
95341
- DisclosedTileTreeSet: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.DisclosedTileTreeSet,
95342
- DisplayStyle2dState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.DisplayStyle2dState,
95343
- DisplayStyle3dState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.DisplayStyle3dState,
95344
- DisplayStyleState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.DisplayStyleState,
95345
- DrawingModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.DrawingModelState,
95346
- DrawingViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.DrawingViewState,
95347
- ECSqlSystemProperty: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.ECSqlSystemProperty,
95348
- ECSqlValueType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.ECSqlValueType,
95349
- EditManipulator: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.EditManipulator,
95350
- ElementGeometryOpcode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.ElementGeometryOpcode,
95351
- ElementLocateManager: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ElementLocateManager,
95352
- ElementPicker: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ElementPicker,
95353
- ElementState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ElementState,
95354
- EmphasizeElements: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.EmphasizeElements,
95355
- EntityState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.EntityState,
95356
- EventController: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.EventController,
95357
- EventHandled: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.EventHandled,
95358
- FeatureOverrideType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.FeatureOverrideType,
95359
- FeatureSymbology: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.FeatureSymbology,
95360
- FillDisplay: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.FillDisplay,
95361
- FillFlags: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.FillFlags,
95362
- FlashMode: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.FlashMode,
95363
- FlashSettings: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.FlashSettings,
95364
- FontType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.FontType,
95365
- FrontendLoggerCategory: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.FrontendLoggerCategory,
95366
- FrustumAnimator: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.FrustumAnimator,
95367
- FrustumPlanes: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.FrustumPlanes,
95368
- GeoCoordStatus: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.GeoCoordStatus,
95369
- GeometricModel2dState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.GeometricModel2dState,
95370
- GeometricModel3dState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.GeometricModel3dState,
95371
- GeometricModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.GeometricModelState,
95372
- GeometryClass: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.GeometryClass,
95373
- GeometryStreamFlags: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.GeometryStreamFlags,
95374
- GeometrySummaryVerbosity: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.GeometrySummaryVerbosity,
95375
- GlobeAnimator: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.GlobeAnimator,
95376
- GlobeMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.GlobeMode,
95377
- GraphicBranch: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.GraphicBranch,
95378
- GraphicBuilder: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.GraphicBuilder,
95379
- GraphicType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.GraphicType,
95380
- GridOrientationType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.GridOrientationType,
95381
- HSVConstants: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.HSVConstants,
95382
- HiliteSet: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.HiliteSet,
95383
- HitDetail: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.HitDetail,
95384
- HitDetailType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.HitDetailType,
95385
- HitGeomType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.HitGeomType,
95386
- HitList: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.HitList,
95387
- HitParentGeomType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.HitParentGeomType,
95388
- HitPriority: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.HitPriority,
95389
- HitSource: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.HitSource,
95390
- IModelConnection: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.IModelConnection,
95391
- IconSprites: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.IconSprites,
95392
- ImageBufferFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.ImageBufferFormat,
95393
- ImageSourceFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.ImageSourceFormat,
95394
- InputCollector: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.InputCollector,
95395
- InputSource: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.InputSource,
95396
- InteractiveTool: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.InteractiveTool,
95397
- IntersectDetail: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.IntersectDetail,
95398
- KeyinParseError: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.KeyinParseError,
95399
- LinePixels: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.LinePixels,
95400
- LocateAction: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.LocateAction,
95401
- LocateFilterStatus: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.LocateFilterStatus,
95402
- LocateOptions: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.LocateOptions,
95403
- LocateResponse: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.LocateResponse,
95404
- ManipulatorToolEvent: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ManipulatorToolEvent,
95405
- MarginPercent: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.MarginPercent,
95406
- Marker: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.Marker,
95407
- MarkerSet: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.MarkerSet,
95408
- MassPropertiesOperation: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.MassPropertiesOperation,
95409
- MessageBoxIconType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.MessageBoxIconType,
95410
- MessageBoxType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.MessageBoxType,
95411
- MessageBoxValue: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.MessageBoxValue,
95412
- ModelSelectorState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ModelSelectorState,
95413
- ModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ModelState,
95414
- MonochromeMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.MonochromeMode,
95415
- NotificationHandler: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.NotificationHandler,
95416
- NotificationManager: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.NotificationManager,
95417
- NotifyMessageDetails: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.NotifyMessageDetails,
95418
- Npc: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.Npc,
95419
- OffScreenViewport: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.OffScreenViewport,
95420
- OrthographicViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.OrthographicViewState,
95421
- OutputMessageAlert: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.OutputMessageAlert,
95422
- OutputMessagePriority: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.OutputMessagePriority,
95423
- OutputMessageType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.OutputMessageType,
95424
- ParseAndRunResult: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ParseAndRunResult,
95425
- PerModelCategoryVisibility: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.PerModelCategoryVisibility,
95426
- PhysicalModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.PhysicalModelState,
95427
- Pixel: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.Pixel,
95428
- PlanarClipMaskMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.PlanarClipMaskMode,
95429
- PlanarClipMaskPriority: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.PlanarClipMaskPriority,
95430
- PrimitiveTool: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.PrimitiveTool,
95431
- QParams2d: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.QParams2d,
95432
- QParams3d: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.QParams3d,
95433
- QPoint2d: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.QPoint2d,
95434
- QPoint2dBuffer: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.QPoint2dBuffer,
95435
- QPoint2dBufferBuilder: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.QPoint2dBufferBuilder,
95436
- QPoint2dList: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.QPoint2dList,
95437
- QPoint3d: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.QPoint3d,
95438
- QPoint3dBuffer: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.QPoint3dBuffer,
95439
- QPoint3dBufferBuilder: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.QPoint3dBufferBuilder,
95440
- QPoint3dList: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.QPoint3dList,
95441
- Quantization: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.Quantization,
95442
- QueryRowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.QueryRowFormat,
95443
- Rank: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.Rank,
95444
- RenderClipVolume: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.RenderClipVolume,
95445
- RenderContext: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.RenderContext,
95446
- RenderGraphic: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.RenderGraphic,
95447
- RenderGraphicOwner: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.RenderGraphicOwner,
95448
- RenderMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.RenderMode,
95449
- RenderSystem: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.RenderSystem,
95450
- Scene: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.Scene,
95451
- ScreenViewport: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ScreenViewport,
95452
- SectionDrawingModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.SectionDrawingModelState,
95453
- SectionType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.SectionType,
95454
- SelectionMethod: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.SelectionMethod,
95455
- SelectionMode: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.SelectionMode,
95456
- SelectionProcessing: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.SelectionProcessing,
95457
- SelectionSet: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.SelectionSet,
95458
- SelectionSetEventType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.SelectionSetEventType,
95459
- SheetModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.SheetModelState,
95460
- SheetViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.SheetViewState,
95461
- SkyBoxImageType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.SkyBoxImageType,
95462
- SnapDetail: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.SnapDetail,
95463
- SnapHeat: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.SnapHeat,
95464
- SnapMode: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.SnapMode,
95465
- SnapStatus: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.SnapStatus,
95466
- SpatialClassifierInsideDisplay: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.SpatialClassifierInsideDisplay,
95467
- SpatialClassifierOutsideDisplay: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.SpatialClassifierOutsideDisplay,
95468
- SpatialLocationModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.SpatialLocationModelState,
95469
- SpatialModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.SpatialModelState,
95470
- SpatialViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.SpatialViewState,
95471
- Sprite: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.Sprite,
95472
- SpriteLocation: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.SpriteLocation,
95473
- StandardViewId: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.StandardViewId,
95474
- StartOrResume: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.StartOrResume,
95475
- SyncMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.SyncMode,
95476
- TentativePoint: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.TentativePoint,
95477
- TerrainHeightOriginMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.TerrainHeightOriginMode,
95478
- TextureMapUnits: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.TextureMapUnits,
95479
- ThematicDisplayMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.ThematicDisplayMode,
95480
- ThematicGradientColorScheme: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.ThematicGradientColorScheme,
95481
- ThematicGradientMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.ThematicGradientMode,
95482
- Tile: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.Tile,
95483
- TileAdmin: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.TileAdmin,
95484
- TileBoundingBoxes: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.TileBoundingBoxes,
95485
- TileDrawArgs: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.TileDrawArgs,
95486
- TileGraphicType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.TileGraphicType,
95487
- TileLoadPriority: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.TileLoadPriority,
95488
- TileLoadStatus: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.TileLoadStatus,
95489
- TileRequest: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.TileRequest,
95490
- TileRequestChannel: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.TileRequestChannel,
95491
- TileRequestChannelStatistics: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.TileRequestChannelStatistics,
95492
- TileRequestChannels: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.TileRequestChannels,
95493
- TileTree: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.TileTree,
95494
- TileTreeLoadStatus: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.TileTreeLoadStatus,
95495
- TileTreeReference: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.TileTreeReference,
95496
- TileUsageMarker: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.TileUsageMarker,
95497
- TileVisibility: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.TileVisibility,
95498
- Tiles: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.Tiles,
95499
- Tool: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.Tool,
95500
- ToolAdmin: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ToolAdmin,
95501
- ToolAssistance: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ToolAssistance,
95502
- ToolAssistanceImage: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ToolAssistanceImage,
95503
- ToolAssistanceInputMethod: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ToolAssistanceInputMethod,
95504
- ToolSettings: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ToolSettings,
95505
- TwoWayViewportFrustumSync: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.TwoWayViewportFrustumSync,
95506
- TwoWayViewportSync: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.TwoWayViewportSync,
95507
- TxnAction: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.TxnAction,
95508
- TypeOfChange: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.TypeOfChange,
95509
- UniformType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.UniformType,
95510
- VaryingType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.VaryingType,
95511
- ViewClipClearTool: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ViewClipClearTool,
95512
- ViewClipDecoration: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ViewClipDecoration,
95513
- ViewClipDecorationProvider: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ViewClipDecorationProvider,
95514
- ViewClipTool: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ViewClipTool,
95515
- ViewCreator2d: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ViewCreator2d,
95516
- ViewCreator3d: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ViewCreator3d,
95517
- ViewManager: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ViewManager,
95518
- ViewManip: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ViewManip,
95519
- ViewPose: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ViewPose,
95520
- ViewPose2d: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ViewPose2d,
95521
- ViewPose3d: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ViewPose3d,
95522
- ViewRect: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ViewRect,
95523
- ViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ViewState,
95524
- ViewState2d: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ViewState2d,
95525
- ViewState3d: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ViewState3d,
95526
- ViewStatus: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ViewStatus,
95527
- ViewTool: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ViewTool,
95528
- ViewingSpace: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.ViewingSpace,
95529
- Viewport: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.Viewport,
95530
- canvasToImageBuffer: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.canvasToImageBuffer,
95531
- canvasToResizedCanvasWithBars: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.canvasToResizedCanvasWithBars,
95532
- connectViewportFrusta: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.connectViewportFrusta,
95533
- connectViewportViews: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.connectViewportViews,
95534
- connectViewports: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.connectViewports,
95535
- extractImageSourceDimensions: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.extractImageSourceDimensions,
95536
- getCompressedJpegFromCanvas: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.getCompressedJpegFromCanvas,
95537
- getImageSourceFormatForMimeType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.getImageSourceFormatForMimeType,
95538
- getImageSourceMimeType: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.getImageSourceMimeType,
95539
- imageBufferToBase64EncodedPng: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.imageBufferToBase64EncodedPng,
95540
- imageBufferToCanvas: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.imageBufferToCanvas,
95541
- imageBufferToPngDataUrl: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.imageBufferToPngDataUrl,
95542
- imageElementFromImageSource: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.imageElementFromImageSource,
95543
- imageElementFromUrl: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.imageElementFromUrl,
95544
- queryTerrainElevationOffset: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.queryTerrainElevationOffset,
95545
- readElementGraphics: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.readElementGraphics,
95546
- readGltfGraphics: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.readGltfGraphics,
95547
- synchronizeViewportFrusta: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.synchronizeViewportFrusta,
95548
- synchronizeViewportViews: _core_frontend__WEBPACK_IMPORTED_MODULE_2__.synchronizeViewportViews,
95477
+ ACSDisplayOptions: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ACSDisplayOptions,
95478
+ ACSType: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ACSType,
95479
+ AccuDrawHintBuilder: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.AccuDrawHintBuilder,
95480
+ AccuSnap: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.AccuSnap,
95481
+ ActivityMessageDetails: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ActivityMessageDetails,
95482
+ ActivityMessageEndReason: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ActivityMessageEndReason,
95483
+ AuxCoordSystem2dState: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.AuxCoordSystem2dState,
95484
+ AuxCoordSystem3dState: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.AuxCoordSystem3dState,
95485
+ AuxCoordSystemSpatialState: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.AuxCoordSystemSpatialState,
95486
+ AuxCoordSystemState: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.AuxCoordSystemState,
95487
+ BackgroundFill: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.BackgroundFill,
95488
+ BackgroundMapType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.BackgroundMapType,
95489
+ BatchType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.BatchType,
95490
+ BeButton: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.BeButton,
95491
+ BeButtonEvent: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.BeButtonEvent,
95492
+ BeButtonState: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.BeButtonState,
95493
+ BeModifierKeys: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.BeModifierKeys,
95494
+ BeTouchEvent: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.BeTouchEvent,
95495
+ BeWheelEvent: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.BeWheelEvent,
95496
+ BingElevationProvider: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.BingElevationProvider,
95497
+ BingLocationProvider: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.BingLocationProvider,
95498
+ BisCodeSpec: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.BisCodeSpec,
95499
+ BriefcaseIdValue: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.BriefcaseIdValue,
95500
+ CategorySelectorState: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.CategorySelectorState,
95501
+ ChangeFlags: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ChangeFlags,
95502
+ ChangeOpCode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ChangeOpCode,
95503
+ ChangedValueState: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ChangedValueState,
95504
+ ChangesetType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ChangesetType,
95505
+ ClipEventType: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ClipEventType,
95506
+ Cluster: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.Cluster,
95507
+ ColorByName: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ColorByName,
95508
+ ColorDef: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ColorDef,
95509
+ CommonLoggerCategory: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.CommonLoggerCategory,
95510
+ ContextRealityModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ContextRealityModelState,
95511
+ ContextRotationId: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ContextRotationId,
95512
+ CoordSource: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.CoordSource,
95513
+ CoordSystem: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.CoordSystem,
95514
+ CoordinateLockOverrides: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.CoordinateLockOverrides,
95515
+ DecorateContext: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.DecorateContext,
95516
+ Decorations: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.Decorations,
95517
+ DisclosedTileTreeSet: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.DisclosedTileTreeSet,
95518
+ DisplayStyle2dState: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.DisplayStyle2dState,
95519
+ DisplayStyle3dState: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.DisplayStyle3dState,
95520
+ DisplayStyleState: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.DisplayStyleState,
95521
+ DrawingModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.DrawingModelState,
95522
+ DrawingViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.DrawingViewState,
95523
+ ECSqlSystemProperty: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ECSqlSystemProperty,
95524
+ ECSqlValueType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ECSqlValueType,
95525
+ EditManipulator: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.EditManipulator,
95526
+ ElementGeometryOpcode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ElementGeometryOpcode,
95527
+ ElementLocateManager: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ElementLocateManager,
95528
+ ElementPicker: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ElementPicker,
95529
+ ElementState: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ElementState,
95530
+ EmphasizeElements: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.EmphasizeElements,
95531
+ EntityState: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.EntityState,
95532
+ EventController: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.EventController,
95533
+ EventHandled: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.EventHandled,
95534
+ FeatureOverrideType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.FeatureOverrideType,
95535
+ FeatureSymbology: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.FeatureSymbology,
95536
+ FillDisplay: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.FillDisplay,
95537
+ FillFlags: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.FillFlags,
95538
+ FlashMode: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.FlashMode,
95539
+ FlashSettings: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.FlashSettings,
95540
+ FontType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.FontType,
95541
+ FrontendLoggerCategory: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.FrontendLoggerCategory,
95542
+ FrustumAnimator: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.FrustumAnimator,
95543
+ FrustumPlanes: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.FrustumPlanes,
95544
+ GeoCoordStatus: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.GeoCoordStatus,
95545
+ GeometricModel2dState: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.GeometricModel2dState,
95546
+ GeometricModel3dState: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.GeometricModel3dState,
95547
+ GeometricModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.GeometricModelState,
95548
+ GeometryClass: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.GeometryClass,
95549
+ GeometryStreamFlags: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.GeometryStreamFlags,
95550
+ GeometrySummaryVerbosity: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.GeometrySummaryVerbosity,
95551
+ GlobeAnimator: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.GlobeAnimator,
95552
+ GlobeMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.GlobeMode,
95553
+ GraphicBranch: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.GraphicBranch,
95554
+ GraphicBuilder: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.GraphicBuilder,
95555
+ GraphicType: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.GraphicType,
95556
+ GridOrientationType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.GridOrientationType,
95557
+ HSVConstants: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.HSVConstants,
95558
+ HiliteSet: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.HiliteSet,
95559
+ HitDetail: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.HitDetail,
95560
+ HitDetailType: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.HitDetailType,
95561
+ HitGeomType: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.HitGeomType,
95562
+ HitList: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.HitList,
95563
+ HitParentGeomType: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.HitParentGeomType,
95564
+ HitPriority: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.HitPriority,
95565
+ HitSource: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.HitSource,
95566
+ IModelConnection: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.IModelConnection,
95567
+ IconSprites: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.IconSprites,
95568
+ ImageBufferFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ImageBufferFormat,
95569
+ ImageSourceFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ImageSourceFormat,
95570
+ InputCollector: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.InputCollector,
95571
+ InputSource: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.InputSource,
95572
+ InteractiveTool: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.InteractiveTool,
95573
+ IntersectDetail: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.IntersectDetail,
95574
+ KeyinParseError: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.KeyinParseError,
95575
+ LinePixels: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.LinePixels,
95576
+ LocateAction: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.LocateAction,
95577
+ LocateFilterStatus: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.LocateFilterStatus,
95578
+ LocateOptions: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.LocateOptions,
95579
+ LocateResponse: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.LocateResponse,
95580
+ ManipulatorToolEvent: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ManipulatorToolEvent,
95581
+ MarginPercent: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.MarginPercent,
95582
+ Marker: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.Marker,
95583
+ MarkerSet: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.MarkerSet,
95584
+ MassPropertiesOperation: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.MassPropertiesOperation,
95585
+ MessageBoxIconType: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.MessageBoxIconType,
95586
+ MessageBoxType: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.MessageBoxType,
95587
+ MessageBoxValue: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.MessageBoxValue,
95588
+ ModelSelectorState: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ModelSelectorState,
95589
+ ModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ModelState,
95590
+ MonochromeMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.MonochromeMode,
95591
+ NotificationHandler: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.NotificationHandler,
95592
+ NotificationManager: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.NotificationManager,
95593
+ NotifyMessageDetails: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.NotifyMessageDetails,
95594
+ Npc: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.Npc,
95595
+ OffScreenViewport: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.OffScreenViewport,
95596
+ OrthographicViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.OrthographicViewState,
95597
+ OutputMessageAlert: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.OutputMessageAlert,
95598
+ OutputMessagePriority: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.OutputMessagePriority,
95599
+ OutputMessageType: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.OutputMessageType,
95600
+ ParseAndRunResult: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ParseAndRunResult,
95601
+ PerModelCategoryVisibility: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.PerModelCategoryVisibility,
95602
+ PhysicalModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.PhysicalModelState,
95603
+ Pixel: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.Pixel,
95604
+ PlanarClipMaskMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.PlanarClipMaskMode,
95605
+ PlanarClipMaskPriority: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.PlanarClipMaskPriority,
95606
+ PrimitiveTool: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.PrimitiveTool,
95607
+ QParams2d: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.QParams2d,
95608
+ QParams3d: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.QParams3d,
95609
+ QPoint2d: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.QPoint2d,
95610
+ QPoint2dBuffer: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.QPoint2dBuffer,
95611
+ QPoint2dBufferBuilder: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.QPoint2dBufferBuilder,
95612
+ QPoint2dList: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.QPoint2dList,
95613
+ QPoint3d: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.QPoint3d,
95614
+ QPoint3dBuffer: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.QPoint3dBuffer,
95615
+ QPoint3dBufferBuilder: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.QPoint3dBufferBuilder,
95616
+ QPoint3dList: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.QPoint3dList,
95617
+ Quantization: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.Quantization,
95618
+ QueryRowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.QueryRowFormat,
95619
+ Rank: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.Rank,
95620
+ RenderClipVolume: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.RenderClipVolume,
95621
+ RenderContext: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.RenderContext,
95622
+ RenderGraphic: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.RenderGraphic,
95623
+ RenderGraphicOwner: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.RenderGraphicOwner,
95624
+ RenderMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderMode,
95625
+ RenderSystem: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.RenderSystem,
95626
+ Scene: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.Scene,
95627
+ ScreenViewport: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ScreenViewport,
95628
+ SectionDrawingModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.SectionDrawingModelState,
95629
+ SectionType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.SectionType,
95630
+ SelectionMethod: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.SelectionMethod,
95631
+ SelectionMode: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.SelectionMode,
95632
+ SelectionProcessing: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.SelectionProcessing,
95633
+ SelectionSet: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.SelectionSet,
95634
+ SelectionSetEventType: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.SelectionSetEventType,
95635
+ SheetModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.SheetModelState,
95636
+ SheetViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.SheetViewState,
95637
+ SkyBoxImageType: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.SkyBoxImageType,
95638
+ SnapDetail: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.SnapDetail,
95639
+ SnapHeat: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.SnapHeat,
95640
+ SnapMode: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.SnapMode,
95641
+ SnapStatus: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.SnapStatus,
95642
+ SpatialClassifierInsideDisplay: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.SpatialClassifierInsideDisplay,
95643
+ SpatialClassifierOutsideDisplay: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.SpatialClassifierOutsideDisplay,
95644
+ SpatialLocationModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.SpatialLocationModelState,
95645
+ SpatialModelState: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.SpatialModelState,
95646
+ SpatialViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.SpatialViewState,
95647
+ Sprite: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.Sprite,
95648
+ SpriteLocation: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.SpriteLocation,
95649
+ StandardViewId: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.StandardViewId,
95650
+ StartOrResume: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.StartOrResume,
95651
+ SyncMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.SyncMode,
95652
+ TentativePoint: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.TentativePoint,
95653
+ TerrainHeightOriginMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.TerrainHeightOriginMode,
95654
+ TextureMapUnits: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.TextureMapUnits,
95655
+ ThematicDisplayMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ThematicDisplayMode,
95656
+ ThematicGradientColorScheme: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ThematicGradientColorScheme,
95657
+ ThematicGradientMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ThematicGradientMode,
95658
+ Tile: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.Tile,
95659
+ TileAdmin: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.TileAdmin,
95660
+ TileBoundingBoxes: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.TileBoundingBoxes,
95661
+ TileDrawArgs: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.TileDrawArgs,
95662
+ TileGraphicType: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.TileGraphicType,
95663
+ TileLoadPriority: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.TileLoadPriority,
95664
+ TileLoadStatus: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.TileLoadStatus,
95665
+ TileRequest: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.TileRequest,
95666
+ TileRequestChannel: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.TileRequestChannel,
95667
+ TileRequestChannelStatistics: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.TileRequestChannelStatistics,
95668
+ TileRequestChannels: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.TileRequestChannels,
95669
+ TileTree: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.TileTree,
95670
+ TileTreeLoadStatus: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.TileTreeLoadStatus,
95671
+ TileTreeReference: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.TileTreeReference,
95672
+ TileUsageMarker: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.TileUsageMarker,
95673
+ TileVisibility: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.TileVisibility,
95674
+ Tiles: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.Tiles,
95675
+ Tool: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.Tool,
95676
+ ToolAdmin: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ToolAdmin,
95677
+ ToolAssistance: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ToolAssistance,
95678
+ ToolAssistanceImage: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ToolAssistanceImage,
95679
+ ToolAssistanceInputMethod: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ToolAssistanceInputMethod,
95680
+ ToolSettings: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ToolSettings,
95681
+ TwoWayViewportFrustumSync: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.TwoWayViewportFrustumSync,
95682
+ TwoWayViewportSync: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.TwoWayViewportSync,
95683
+ TxnAction: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.TxnAction,
95684
+ TypeOfChange: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.TypeOfChange,
95685
+ UniformType: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.UniformType,
95686
+ VaryingType: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.VaryingType,
95687
+ ViewClipClearTool: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ViewClipClearTool,
95688
+ ViewClipDecoration: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ViewClipDecoration,
95689
+ ViewClipDecorationProvider: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ViewClipDecorationProvider,
95690
+ ViewClipTool: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ViewClipTool,
95691
+ ViewCreator2d: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ViewCreator2d,
95692
+ ViewCreator3d: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ViewCreator3d,
95693
+ ViewManager: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ViewManager,
95694
+ ViewManip: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ViewManip,
95695
+ ViewPose: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ViewPose,
95696
+ ViewPose2d: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ViewPose2d,
95697
+ ViewPose3d: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ViewPose3d,
95698
+ ViewRect: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ViewRect,
95699
+ ViewState: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ViewState,
95700
+ ViewState2d: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ViewState2d,
95701
+ ViewState3d: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ViewState3d,
95702
+ ViewStatus: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ViewStatus,
95703
+ ViewTool: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ViewTool,
95704
+ ViewingSpace: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.ViewingSpace,
95705
+ Viewport: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.Viewport,
95706
+ canvasToImageBuffer: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.canvasToImageBuffer,
95707
+ canvasToResizedCanvasWithBars: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.canvasToResizedCanvasWithBars,
95708
+ connectViewportFrusta: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.connectViewportFrusta,
95709
+ connectViewportViews: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.connectViewportViews,
95710
+ connectViewports: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.connectViewports,
95711
+ extractImageSourceDimensions: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.extractImageSourceDimensions,
95712
+ getCompressedJpegFromCanvas: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.getCompressedJpegFromCanvas,
95713
+ getImageSourceFormatForMimeType: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.getImageSourceFormatForMimeType,
95714
+ getImageSourceMimeType: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.getImageSourceMimeType,
95715
+ imageBufferToBase64EncodedPng: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.imageBufferToBase64EncodedPng,
95716
+ imageBufferToCanvas: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.imageBufferToCanvas,
95717
+ imageBufferToPngDataUrl: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.imageBufferToPngDataUrl,
95718
+ imageElementFromImageSource: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.imageElementFromImageSource,
95719
+ imageElementFromUrl: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.imageElementFromUrl,
95720
+ queryTerrainElevationOffset: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.queryTerrainElevationOffset,
95721
+ readElementGraphics: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.readElementGraphics,
95722
+ readGltfGraphics: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.readGltfGraphics,
95723
+ synchronizeViewportFrusta: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.synchronizeViewportFrusta,
95724
+ synchronizeViewportViews: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.synchronizeViewportViews,
95549
95725
  };
95550
95726
  // END GENERATED CODE
95551
- const getExtensionApi = (id) => {
95727
+ const getExtensionApi = (_id) => {
95552
95728
  return {
95553
95729
  exports: {
95554
95730
  // exceptions
95555
- ExtensionHost: _ExtensionHost__WEBPACK_IMPORTED_MODULE_1__.ExtensionHost,
95731
+ ExtensionHost: _ExtensionHost__WEBPACK_IMPORTED_MODULE_0__.ExtensionHost,
95556
95732
  // automated
95557
95733
  ...extensionExports,
95558
95734
  },
95559
- api: new _ExtensionImpl__WEBPACK_IMPORTED_MODULE_0__.ExtensionImpl(id),
95560
95735
  };
95561
95736
  };
95562
95737
  globalThis[globalSymbol] = {
@@ -142209,8 +142384,9 @@ class TileAdmin {
142209
142384
  // start dynamically loading default implementation and save the promise to avoid duplicate instances
142210
142385
  this._tileStoragePromise = (async () => {
142211
142386
  await __webpack_require__.e(/*! import() */ "vendors-common_temp_node_modules_pnpm_reflect-metadata_0_1_13_node_modules_reflect-metadata_R-610cb3").then(__webpack_require__.t.bind(__webpack_require__, /*! reflect-metadata */ "../../common/temp/node_modules/.pnpm/reflect-metadata@0.1.13/node_modules/reflect-metadata/Reflect.js", 23));
142387
+ const objectStorage = await Promise.all(/*! import() | object-storage-azure */[__webpack_require__.e("vendors-common_temp_node_modules_pnpm_reflect-metadata_0_1_13_node_modules_reflect-metadata_R-610cb3"), __webpack_require__.e("vendors-common_temp_node_modules_pnpm_itwin_object-storage-azure_1_6_0_node_modules_itwin_obj-0f69b1"), __webpack_require__.e("object-storage-azure")]).then(__webpack_require__.t.bind(__webpack_require__, /*! @itwin/object-storage-azure/lib/frontend */ "../../common/temp/node_modules/.pnpm/@itwin+object-storage-azure@1.6.0/node_modules/@itwin/object-storage-azure/lib/frontend/index.js", 23));
142212
142388
  // eslint-disable-next-line @typescript-eslint/naming-convention
142213
- const { AzureFrontendStorage, FrontendBlockBlobClientWrapperFactory } = await Promise.all(/*! import() | object-storage */[__webpack_require__.e("vendors-common_temp_node_modules_pnpm_reflect-metadata_0_1_13_node_modules_reflect-metadata_R-610cb3"), __webpack_require__.e("vendors-common_temp_node_modules_pnpm_itwin_object-storage-azure_1_6_0_node_modules_itwin_obj-0f69b1"), __webpack_require__.e("object-storage")]).then(__webpack_require__.t.bind(__webpack_require__, /*! @itwin/object-storage-azure/lib/frontend */ "../../common/temp/node_modules/.pnpm/@itwin+object-storage-azure@1.6.0/node_modules/@itwin/object-storage-azure/lib/frontend/index.js", 23));
142389
+ const { AzureFrontendStorage, FrontendBlockBlobClientWrapperFactory } = objectStorage.default ?? objectStorage;
142214
142390
  const azureStorage = new AzureFrontendStorage(new FrontendBlockBlobClientWrapperFactory());
142215
142391
  this._tileStorage = new _internal__WEBPACK_IMPORTED_MODULE_6__.TileStorage(azureStorage);
142216
142392
  return this._tileStorage;
@@ -149497,7 +149673,8 @@ class MapTile extends _internal__WEBPACK_IMPORTED_MODULE_7__.RealityTile {
149497
149673
  }
149498
149674
  /** @internal */
149499
149675
  minimumVisibleFactor() {
149500
- return 0.25;
149676
+ // if minimumVisibleFactor is more than 0, it stops parents from loading when children are not ready, to fill in gaps
149677
+ return 0.0;
149501
149678
  }
149502
149679
  /** @internal */
149503
149680
  getDrapeTextures() {
@@ -166781,17 +166958,20 @@ class Geometry {
166781
166958
  if (a2b2 > 0.0) {
166782
166959
  const a2b2r = 1.0 / a2b2; // 1/(a^2+b^2)
166783
166960
  const d2a2b2 = d2 * a2b2r; // d^2/(a^2+b^2)
166784
- const criteria = 1.0 - d2a2b2; // 1 - d^2/(a^2+b^2); the criteria to specify how many solutions we got
166785
- if (criteria < -Geometry.smallMetricDistanceSquared) // nSolution = 0
166961
+ const criterion = 1.0 - d2a2b2; // 1 - d^2/(a^2+b^2);
166962
+ if (criterion < -Geometry.smallMetricDistanceSquared) // nSolution = 0
166786
166963
  return result;
166787
166964
  const da2b2 = -constCoff * a2b2r; // -d/(a^2+b^2)
166965
+ // (c0,s0) is the closest approach of the line to the circle center (origin)
166788
166966
  const c0 = da2b2 * cosCoff; // -ad/(a^2+b^2)
166789
166967
  const s0 = da2b2 * sinCoff; // -bd/(a^2+b^2)
166790
- if (criteria <= 0.0) { // nSolution = 1 (observed criteria = -2.22e-16 in rotated system)
166968
+ if (criterion <= 0.0) { // nSolution = 1
166969
+ // We observed criterion = -2.22e-16 in a rotated tangent system, therefore for negative criteria near
166970
+ // zero, return the near-tangency; for tiny positive criteria, fall through to return both solutions.
166791
166971
  result = [_geometry3d_Point2dVector2d__WEBPACK_IMPORTED_MODULE_1__.Vector2d.create(c0, s0)];
166792
166972
  }
166793
- else if (criteria > 0.0) { // nSolution = 2
166794
- const s = Math.sqrt(criteria * a2b2r); // sqrt(a^2+b^2-d^2)) / (a^2+b^2)
166973
+ else { // nSolution = 2
166974
+ const s = Math.sqrt(criterion * a2b2r); // sqrt(a^2+b^2-d^2)) / (a^2+b^2)
166795
166975
  result = [
166796
166976
  _geometry3d_Point2dVector2d__WEBPACK_IMPORTED_MODULE_1__.Vector2d.create(c0 - s * sinCoff, s0 + s * cosCoff),
166797
166977
  _geometry3d_Point2dVector2d__WEBPACK_IMPORTED_MODULE_1__.Vector2d.create(c0 + s * sinCoff, s0 - s * cosCoff),
@@ -181735,12 +181915,12 @@ class CurveCurveIntersectXY extends _geometry3d_GeometryHandler__WEBPACK_IMPORTE
181735
181915
  extendB, reversed) {
181736
181916
  const inverseA = matrixA.inverse();
181737
181917
  if (inverseA) {
181738
- const localB = inverseA.multiplyMatrixMatrix(matrixB);
181918
+ const localB = inverseA.multiplyMatrixMatrix(matrixB); // localB->localA transform
181739
181919
  const ellipseRadians = [];
181740
181920
  const circleRadians = [];
181741
181921
  _numerics_Polynomials__WEBPACK_IMPORTED_MODULE_6__.TrigPolynomial.solveUnitCircleHomogeneousEllipseIntersection(localB.coffs[2], localB.coffs[5], localB.coffs[8], // center xyw
181742
- localB.coffs[0], localB.coffs[3], localB.coffs[6], // center xyw
181743
- localB.coffs[1], localB.coffs[4], localB.coffs[7], // center xyw
181922
+ localB.coffs[0], localB.coffs[3], localB.coffs[6], // vector0 xyw
181923
+ localB.coffs[1], localB.coffs[4], localB.coffs[7], // vector90 xyw
181744
181924
  ellipseRadians, circleRadians);
181745
181925
  for (let i = 0; i < ellipseRadians.length; i++) {
181746
181926
  const fractionA = cpA.sweep.radiansToSignedPeriodicFraction(circleRadians[i]);
@@ -183687,7 +183867,7 @@ function optionalVectorUpdate(source, result) {
183687
183867
  return undefined;
183688
183868
  }
183689
183869
  /**
183690
- * CurveLocationDetail carries point and paramter data about a point evaluated on a curve.
183870
+ * CurveLocationDetail carries point and parameter data about a point evaluated on a curve.
183691
183871
  * * These are returned by a variety of queries.
183692
183872
  * * Particular contents can vary among the queries.
183693
183873
  * @public
@@ -187931,13 +188111,16 @@ __webpack_require__.r(__webpack_exports__);
187931
188111
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
187932
188112
  /* harmony export */ "PlanarSubdivision": () => (/* binding */ PlanarSubdivision)
187933
188113
  /* harmony export */ });
187934
- /* harmony import */ var _Geometry__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Geometry */ "../../core/geometry/lib/esm/Geometry.js");
187935
- /* harmony import */ var _topology_Graph__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../topology/Graph */ "../../core/geometry/lib/esm/topology/Graph.js");
187936
- /* harmony import */ var _topology_HalfEdgeGraphSearch__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../topology/HalfEdgeGraphSearch */ "../../core/geometry/lib/esm/topology/HalfEdgeGraphSearch.js");
187937
- /* harmony import */ var _topology_Merging__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../topology/Merging */ "../../core/geometry/lib/esm/topology/Merging.js");
187938
- /* harmony import */ var _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../CurveLocationDetail */ "../../core/geometry/lib/esm/curve/CurveLocationDetail.js");
187939
- /* harmony import */ var _Loop__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Loop */ "../../core/geometry/lib/esm/curve/Loop.js");
187940
- /* harmony import */ var _RegionOps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../RegionOps */ "../../core/geometry/lib/esm/curve/RegionOps.js");
188114
+ /* harmony import */ var _Geometry__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Geometry */ "../../core/geometry/lib/esm/Geometry.js");
188115
+ /* harmony import */ var _topology_Graph__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../topology/Graph */ "../../core/geometry/lib/esm/topology/Graph.js");
188116
+ /* harmony import */ var _topology_HalfEdgeGraphSearch__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../topology/HalfEdgeGraphSearch */ "../../core/geometry/lib/esm/topology/HalfEdgeGraphSearch.js");
188117
+ /* harmony import */ var _topology_Merging__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../topology/Merging */ "../../core/geometry/lib/esm/topology/Merging.js");
188118
+ /* harmony import */ var _Arc3d__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Arc3d */ "../../core/geometry/lib/esm/curve/Arc3d.js");
188119
+ /* harmony import */ var _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../CurveLocationDetail */ "../../core/geometry/lib/esm/curve/CurveLocationDetail.js");
188120
+ /* harmony import */ var _LineSegment3d__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../LineSegment3d */ "../../core/geometry/lib/esm/curve/LineSegment3d.js");
188121
+ /* harmony import */ var _LineString3d__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../LineString3d */ "../../core/geometry/lib/esm/curve/LineString3d.js");
188122
+ /* harmony import */ var _Loop__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../Loop */ "../../core/geometry/lib/esm/curve/Loop.js");
188123
+ /* harmony import */ var _RegionOps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../RegionOps */ "../../core/geometry/lib/esm/curve/RegionOps.js");
187941
188124
  /*---------------------------------------------------------------------------------------------
187942
188125
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
187943
188126
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -187949,13 +188132,16 @@ __webpack_require__.r(__webpack_exports__);
187949
188132
 
187950
188133
 
187951
188134
 
188135
+
188136
+
188137
+
187952
188138
  /** @packageDocumentation
187953
188139
  * @module Curve
187954
188140
  */
187955
188141
  class MapCurvePrimitiveToCurveLocationDetailPairArray {
187956
188142
  constructor() {
187957
188143
  this.primitiveToPair = new Map();
187958
- // index assigned to this primitive for this calculation.
188144
+ // index assigned to this primitive (for debugging)
187959
188145
  this.primitiveToIndex = new Map();
187960
188146
  this._numIndexedPrimitives = 0;
187961
188147
  }
@@ -187987,54 +188173,63 @@ class MapCurvePrimitiveToCurveLocationDetailPairArray {
187987
188173
  if (primitiveB)
187988
188174
  this.insertPrimitiveToPair(primitiveB, pair);
187989
188175
  }
188176
+ /** Split closed missing primitives in half and add new intersection pairs */
188177
+ splitAndAppendMissingClosedPrimitives(primitives, tolerance = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallMetricDistance) {
188178
+ for (const p of primitives) {
188179
+ let closedCurveSplitCandidate = false;
188180
+ if (p instanceof _Arc3d__WEBPACK_IMPORTED_MODULE_1__.Arc3d)
188181
+ closedCurveSplitCandidate = p.sweep.isFullCircle;
188182
+ else if (!(p instanceof _LineSegment3d__WEBPACK_IMPORTED_MODULE_2__.LineSegment3d) && !(p instanceof _LineString3d__WEBPACK_IMPORTED_MODULE_3__.LineString3d))
188183
+ closedCurveSplitCandidate = p.startPoint().isAlmostEqualXY(p.endPoint(), tolerance);
188184
+ if (closedCurveSplitCandidate && !this.primitiveToPair.has(p)) {
188185
+ const p0 = p.clonePartialCurve(0.0, 0.5);
188186
+ const p1 = p.clonePartialCurve(0.5, 1.0);
188187
+ if (p0 && p1) {
188188
+ this.insertPair(_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_4__.CurveLocationDetailPair.createCapture(_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_4__.CurveLocationDetail.createCurveEvaluatedFraction(p0, 0.0), _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_4__.CurveLocationDetail.createCurveEvaluatedFraction(p1, 1.0)));
188189
+ this.insertPair(_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_4__.CurveLocationDetailPair.createCapture(_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_4__.CurveLocationDetail.createCurveEvaluatedFraction(p0, 1.0), _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_4__.CurveLocationDetail.createCurveEvaluatedFraction(p1, 0.0)));
188190
+ }
188191
+ }
188192
+ }
188193
+ }
187990
188194
  }
187991
- /*
187992
- function getDetailString(detail: CurveLocationDetail | undefined): string {
187993
- if (!detail)
187994
- return "{}";
187995
- else return tagString("primitive", this.primitiveToIndex.get(detail.curve!)) + tagString("f0", detail.fraction) + tagString("f1", detail.fraction1);
187996
- }
187997
- }
187998
- function tagString(name: string, value: number | undefined): string {
187999
- if (value !== undefined)
188000
- return "(" + name + " " + value + ")";
188001
- return "";
188002
- }
188003
- */
188004
188195
  /**
188005
188196
  * @internal
188006
188197
  */
188007
188198
  class PlanarSubdivision {
188008
- /** Create a graph from an array of curves, and an array of the curves' precomputed intersections. */
188009
- static assembleHalfEdgeGraph(primitives, allPairs) {
188199
+ /** Create a graph from an array of curves, and an array of the curves' precomputed intersections. Z-coordinates are ignored. */
188200
+ static assembleHalfEdgeGraph(primitives, allPairs, mergeTolerance = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallMetricDistance) {
188010
188201
  const detailByPrimitive = new MapCurvePrimitiveToCurveLocationDetailPairArray(); // map from key CurvePrimitive to CurveLocationDetailPair.
188011
- for (const p of primitives)
188012
- detailByPrimitive.assignPrimitiveIndex(p);
188013
- for (const pair of allPairs) {
188202
+ for (const pair of allPairs)
188014
188203
  detailByPrimitive.insertPair(pair);
188015
- }
188016
- const graph = new _topology_Graph__WEBPACK_IMPORTED_MODULE_0__.HalfEdgeGraph();
188204
+ if (primitives.length > detailByPrimitive.primitiveToPair.size)
188205
+ detailByPrimitive.splitAndAppendMissingClosedPrimitives(primitives, mergeTolerance); // otherwise, these single-primitive loops are missing from the graph
188206
+ const graph = new _topology_Graph__WEBPACK_IMPORTED_MODULE_5__.HalfEdgeGraph();
188017
188207
  for (const entry of detailByPrimitive.primitiveToPair.entries()) {
188018
188208
  const p = entry[0];
188019
- const details = entry[1];
188209
+ // convert each interval intersection into two isolated intersections
188210
+ const details = entry[1].reduce((accumulator, detailPair) => {
188211
+ if (!detailPair.detailA.hasFraction1)
188212
+ return [...accumulator, detailPair];
188213
+ const detail = getDetailOnCurve(detailPair, p);
188214
+ const detail0 = _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_4__.CurveLocationDetail.createCurveFractionPoint(p, detail.fraction, detail.point);
188215
+ const detail1 = _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_4__.CurveLocationDetail.createCurveFractionPoint(p, detail.fraction1, detail.point1);
188216
+ return [...accumulator, _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_4__.CurveLocationDetailPair.createCapture(detail0, detail0), _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_4__.CurveLocationDetailPair.createCapture(detail1, detail1)];
188217
+ }, []);
188218
+ // lexical sort on p intersection fraction
188020
188219
  details.sort((pairA, pairB) => {
188021
188220
  const fractionA = getFractionOnCurve(pairA, p);
188022
188221
  const fractionB = getFractionOnCurve(pairB, p);
188023
- if (fractionA === undefined || fractionB === undefined)
188024
- return -1000.0;
188025
188222
  return fractionA - fractionB;
188026
188223
  });
188027
- let detail0 = getDetailOnCurve(details[0], p);
188028
- this.addHalfEdge(graph, p, p.startPoint(), 0.0, detail0.point, detail0.fraction);
188029
- for (let i = 1; i < details.length; i++) {
188030
- // create (both sides of) a graph edge . . .
188031
- const detail1 = getDetailOnCurve(details[i], p);
188032
- this.addHalfEdge(graph, p, detail0.point, detail0.fraction, detail1.point, detail1.fraction);
188033
- detail0 = detail1;
188224
+ let last = { point: p.startPoint(), fraction: 0.0 };
188225
+ for (const detailPair of details) {
188226
+ const detail = getDetailOnCurve(detailPair, p);
188227
+ const detailFraction = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.restrictToInterval(detail.fraction, 0, 1); // truncate fraction, but don't snap point; clustering happens later
188228
+ last = this.addHalfEdge(graph, p, last.point, last.fraction, detail.point, detailFraction, mergeTolerance);
188034
188229
  }
188035
- this.addHalfEdge(graph, p, detail0.point, detail0.fraction, p.endPoint(), 1.0);
188230
+ this.addHalfEdge(graph, p, last.point, last.fraction, p.endPoint(), 1.0, mergeTolerance);
188036
188231
  }
188037
- _topology_Merging__WEBPACK_IMPORTED_MODULE_1__.HalfEdgeGraphMerge.clusterAndMergeXYTheta(graph, (he) => he.sortAngle);
188232
+ _topology_Merging__WEBPACK_IMPORTED_MODULE_6__.HalfEdgeGraphMerge.clusterAndMergeXYTheta(graph, (he) => he.sortAngle);
188038
188233
  return graph;
188039
188234
  }
188040
188235
  /**
@@ -188046,19 +188241,21 @@ class PlanarSubdivision {
188046
188241
  * @param point0 start point
188047
188242
  * @param fraction1 end fraction
188048
188243
  * @param point1 end point
188049
- */
188050
- static addHalfEdge(graph, p, point0, fraction0, point1, fraction1) {
188051
- if (!point0.isAlmostEqual(point1)) {
188052
- const halfEdge = graph.createEdgeXYAndZ(point0, 0, point1, 0);
188053
- const detail01 = _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetail.createCurveEvaluatedFractionFraction(p, fraction0, fraction1);
188054
- const mate = halfEdge.edgeMate;
188055
- halfEdge.edgeTag = detail01;
188056
- halfEdge.sortData = 1.0;
188057
- mate.edgeTag = detail01;
188058
- mate.sortData = -1.0;
188059
- halfEdge.sortAngle = sortAngle(detail01.curve, detail01.fraction, false);
188060
- mate.sortAngle = sortAngle(detail01.curve, detail01.fraction1, true);
188061
- }
188244
+ * @returns end point and fraction, or start point and fraction if no action
188245
+ */
188246
+ static addHalfEdge(graph, p, point0, fraction0, point1, fraction1, mergeTolerance = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallMetricDistance) {
188247
+ if (point0.isAlmostEqualXY(point1, mergeTolerance))
188248
+ return { point: point0, fraction: fraction0 };
188249
+ const halfEdge = graph.createEdgeXYAndZ(point0, 0, point1, 0);
188250
+ const detail01 = _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_4__.CurveLocationDetail.createCurveEvaluatedFractionFraction(p, fraction0, fraction1);
188251
+ const mate = halfEdge.edgeMate;
188252
+ halfEdge.edgeTag = detail01;
188253
+ halfEdge.sortData = 1.0;
188254
+ mate.edgeTag = detail01;
188255
+ mate.sortData = -1.0;
188256
+ halfEdge.sortAngle = sortAngle(p, fraction0, false);
188257
+ mate.sortAngle = sortAngle(p, fraction1, true);
188258
+ return { point: point1, fraction: fraction1 };
188062
188259
  }
188063
188260
  /**
188064
188261
  * Based on computed (and toleranced) area, push the loop (pointer) onto the appropriate array of positive, negative, or sliver loops.
@@ -188067,7 +188264,7 @@ class PlanarSubdivision {
188067
188264
  * @returns the area (forced to zero if within tolerance)
188068
188265
  */
188069
188266
  static collectSignedLoop(loop, outLoops, zeroAreaTolerance = 1.0e-10, isSliverFace) {
188070
- let area = isSliverFace ? 0.0 : _RegionOps__WEBPACK_IMPORTED_MODULE_3__.RegionOps.computeXYArea(loop);
188267
+ let area = isSliverFace ? 0.0 : _RegionOps__WEBPACK_IMPORTED_MODULE_7__.RegionOps.computeXYArea(loop);
188071
188268
  if (area === undefined)
188072
188269
  area = 0;
188073
188270
  if (Math.abs(area) < zeroAreaTolerance)
@@ -188083,7 +188280,7 @@ class PlanarSubdivision {
188083
188280
  }
188084
188281
  static createLoopInFace(faceSeed, announce) {
188085
188282
  let he = faceSeed;
188086
- const loop = _Loop__WEBPACK_IMPORTED_MODULE_4__.Loop.create();
188283
+ const loop = _Loop__WEBPACK_IMPORTED_MODULE_8__.Loop.create();
188087
188284
  do {
188088
188285
  const detail = he.edgeTag;
188089
188286
  if (detail) {
@@ -188107,9 +188304,9 @@ class PlanarSubdivision {
188107
188304
  const faceHasTwoEdges = (he.faceSuccessor.faceSuccessor === he);
188108
188305
  let faceIsBanana = false;
188109
188306
  if (faceHasTwoEdges) {
188110
- const c0 = _topology_Merging__WEBPACK_IMPORTED_MODULE_1__.HalfEdgeGraphMerge.curvatureSortKey(he);
188111
- const c1 = _topology_Merging__WEBPACK_IMPORTED_MODULE_1__.HalfEdgeGraphMerge.curvatureSortKey(he.faceSuccessor.edgeMate);
188112
- if (!_Geometry__WEBPACK_IMPORTED_MODULE_5__.Geometry.isSameCoordinate(c0, c1)) // default tol!
188307
+ const c0 = _topology_Merging__WEBPACK_IMPORTED_MODULE_6__.HalfEdgeGraphMerge.curvatureSortKey(he);
188308
+ const c1 = _topology_Merging__WEBPACK_IMPORTED_MODULE_6__.HalfEdgeGraphMerge.curvatureSortKey(he.faceSuccessor.edgeMate);
188309
+ if (!_Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.isSameCoordinate(c0, c1)) // default tol!
188113
188310
  faceIsBanana = true; // heuristic: we could also check end curvatures, and/or higher derivatives...
188114
188311
  }
188115
188312
  return faceHasTwoEdges && !faceIsBanana;
@@ -188127,7 +188324,7 @@ class PlanarSubdivision {
188127
188324
  return e1;
188128
188325
  }
188129
188326
  static collectSignedLoopSetsInHalfEdgeGraph(graph, zeroAreaTolerance = 1.0e-10) {
188130
- const q = _topology_HalfEdgeGraphSearch__WEBPACK_IMPORTED_MODULE_6__.HalfEdgeGraphSearch.collectConnectedComponentsWithExteriorParityMasks(graph, undefined);
188327
+ const q = _topology_HalfEdgeGraphSearch__WEBPACK_IMPORTED_MODULE_9__.HalfEdgeGraphSearch.collectConnectedComponentsWithExteriorParityMasks(graph, undefined);
188131
188328
  const result = [];
188132
188329
  const edgeMap = new Map();
188133
188330
  for (const faceSeeds of q) {
@@ -188142,10 +188339,10 @@ class PlanarSubdivision {
188142
188339
  const e = edgeMap.get(mate);
188143
188340
  if (e === undefined) {
188144
188341
  // Record this as loopA,edgeA of a shared edge to be completed later from the other side of the edge
188145
- const e1 = new _Loop__WEBPACK_IMPORTED_MODULE_4__.LoopCurveLoopCurve(loopC, curveC, undefined, undefined);
188342
+ const e1 = new _Loop__WEBPACK_IMPORTED_MODULE_8__.LoopCurveLoopCurve(loopC, curveC, undefined, undefined);
188146
188343
  edgeMap.set(he, e1);
188147
188344
  }
188148
- else if (e instanceof _Loop__WEBPACK_IMPORTED_MODULE_4__.LoopCurveLoopCurve) {
188345
+ else if (e instanceof _Loop__WEBPACK_IMPORTED_MODULE_8__.LoopCurveLoopCurve) {
188149
188346
  e.setB(loopC, curveC);
188150
188347
  edges.push(e);
188151
188348
  edgeMap.delete(mate);
@@ -188993,27 +189190,27 @@ __webpack_require__.r(__webpack_exports__);
188993
189190
  /* harmony import */ var _geometry4d_MomentData__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../geometry4d/MomentData */ "../../core/geometry/lib/esm/geometry4d/MomentData.js");
188994
189191
  /* harmony import */ var _polyface_PolyfaceBuilder__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../polyface/PolyfaceBuilder */ "../../core/geometry/lib/esm/polyface/PolyfaceBuilder.js");
188995
189192
  /* harmony import */ var _topology_Graph__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../topology/Graph */ "../../core/geometry/lib/esm/topology/Graph.js");
189193
+ /* harmony import */ var _topology_HalfEdgeGraphSearch__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../topology/HalfEdgeGraphSearch */ "../../core/geometry/lib/esm/topology/HalfEdgeGraphSearch.js");
188996
189194
  /* harmony import */ var _topology_Triangulation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../topology/Triangulation */ "../../core/geometry/lib/esm/topology/Triangulation.js");
188997
189195
  /* harmony import */ var _ChainCollectorContext__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./ChainCollectorContext */ "../../core/geometry/lib/esm/curve/ChainCollectorContext.js");
188998
189196
  /* harmony import */ var _CurveCollection__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./CurveCollection */ "../../core/geometry/lib/esm/curve/CurveCollection.js");
188999
189197
  /* harmony import */ var _CurveCurve__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./CurveCurve */ "../../core/geometry/lib/esm/curve/CurveCurve.js");
189000
189198
  /* harmony import */ var _CurvePrimitive__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./CurvePrimitive */ "../../core/geometry/lib/esm/curve/CurvePrimitive.js");
189001
189199
  /* harmony import */ var _CurveWireMomentsXYZ__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CurveWireMomentsXYZ */ "../../core/geometry/lib/esm/curve/CurveWireMomentsXYZ.js");
189200
+ /* harmony import */ var _GeometryQuery__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./GeometryQuery */ "../../core/geometry/lib/esm/curve/GeometryQuery.js");
189201
+ /* harmony import */ var _internalContexts_MultiChainCollector__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./internalContexts/MultiChainCollector */ "../../core/geometry/lib/esm/curve/internalContexts/MultiChainCollector.js");
189002
189202
  /* harmony import */ var _internalContexts_PolygonOffsetContext__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./internalContexts/PolygonOffsetContext */ "../../core/geometry/lib/esm/curve/internalContexts/PolygonOffsetContext.js");
189003
189203
  /* harmony import */ var _LineString3d__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./LineString3d */ "../../core/geometry/lib/esm/curve/LineString3d.js");
189004
189204
  /* harmony import */ var _Loop__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Loop */ "../../core/geometry/lib/esm/curve/Loop.js");
189205
+ /* harmony import */ var _ParityRegion__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ParityRegion */ "../../core/geometry/lib/esm/curve/ParityRegion.js");
189005
189206
  /* harmony import */ var _Path__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./Path */ "../../core/geometry/lib/esm/curve/Path.js");
189006
189207
  /* harmony import */ var _Query_ConsolidateAdjacentPrimitivesContext__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./Query/ConsolidateAdjacentPrimitivesContext */ "../../core/geometry/lib/esm/curve/Query/ConsolidateAdjacentPrimitivesContext.js");
189007
189208
  /* harmony import */ var _Query_CurveSplitContext__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./Query/CurveSplitContext */ "../../core/geometry/lib/esm/curve/Query/CurveSplitContext.js");
189008
189209
  /* harmony import */ var _Query_InOutTests__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Query/InOutTests */ "../../core/geometry/lib/esm/curve/Query/InOutTests.js");
189009
189210
  /* harmony import */ var _Query_PlanarSubdivision__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Query/PlanarSubdivision */ "../../core/geometry/lib/esm/curve/Query/PlanarSubdivision.js");
189010
189211
  /* harmony import */ var _RegionMomentsXY__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./RegionMomentsXY */ "../../core/geometry/lib/esm/curve/RegionMomentsXY.js");
189011
- /* harmony import */ var _internalContexts_MultiChainCollector__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./internalContexts/MultiChainCollector */ "../../core/geometry/lib/esm/curve/internalContexts/MultiChainCollector.js");
189012
- /* harmony import */ var _GeometryQuery__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./GeometryQuery */ "../../core/geometry/lib/esm/curve/GeometryQuery.js");
189013
189212
  /* harmony import */ var _RegionOpsClassificationSweeps__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./RegionOpsClassificationSweeps */ "../../core/geometry/lib/esm/curve/RegionOpsClassificationSweeps.js");
189014
189213
  /* harmony import */ var _UnionRegion__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./UnionRegion */ "../../core/geometry/lib/esm/curve/UnionRegion.js");
189015
- /* harmony import */ var _topology_HalfEdgeGraphSearch__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../topology/HalfEdgeGraphSearch */ "../../core/geometry/lib/esm/topology/HalfEdgeGraphSearch.js");
189016
- /* harmony import */ var _ParityRegion__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ParityRegion */ "../../core/geometry/lib/esm/curve/ParityRegion.js");
189017
189214
  /*---------------------------------------------------------------------------------------------
189018
189215
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
189019
189216
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -189252,7 +189449,7 @@ class RegionOps {
189252
189449
  * @param loopsB second set of loops
189253
189450
  * @param operation indicates Union, Intersection, Parity, AMinusB, or BMinusA
189254
189451
  * @param mergeTolerance absolute distance tolerance for merging loops
189255
- * @returns a region resulting from merging input loops and the boolean operation. May contain bridge edges connecting interior loops to exterior loops.
189452
+ * @returns a region resulting from merging input loops and the boolean operation. May contain bridge edges added to connect interior loops to exterior loops.
189256
189453
  */
189257
189454
  static regionBooleanXY(loopsA, loopsB, operation, mergeTolerance = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.smallMetricDistance) {
189258
189455
  const result = _UnionRegion__WEBPACK_IMPORTED_MODULE_11__.UnionRegion.create();
@@ -189260,7 +189457,7 @@ class RegionOps {
189260
189457
  context.addMembers(loopsA, loopsB);
189261
189458
  context.annotateAndMergeCurvesInGraph(mergeTolerance);
189262
189459
  const range = context.groupA.range().union(context.groupB.range());
189263
- const areaTol = this.computeXYAreaTolerance(range);
189460
+ const areaTol = this.computeXYAreaTolerance(range, mergeTolerance);
189264
189461
  context.runClassificationSweep(operation, (_graph, face, faceType, area) => {
189265
189462
  // ignore danglers and null faces, but not 2-edge "banana" faces with nonzero area
189266
189463
  if (face.countEdgesAroundFace() < 2)
@@ -189578,23 +189775,24 @@ class RegionOps {
189578
189775
  }
189579
189776
  /**
189580
189777
  * Find all areas bounded by the unstructured, possibly intersecting curves.
189581
- * * This method performs no merging of nearly coincident edges and vertices, which can lead to unexpected results
189582
- * given sufficiently imprecise input. Input geometry consisting of regions can be merged for better results by pre-processing with
189583
- * [[regionBooleanXY]].
189778
+ * * A common use case of this method is to assemble the bounding "exterior" loop (or loops) containing the input curves.
189779
+ * * This method does not add bridge edges to connect outer loops to inner loops. Each disconnected loop, regardless
189780
+ * of its containment, is returned as its own SignedLoops object. Pre-process with [[regionBooleanXY]] to add bridge edges so that
189781
+ * [[constructAllXYRegionLoops]] will return outer and inner loops in the same SignedLoops object.
189584
189782
  * @param curvesAndRegions Any collection of curves. Each Loop/ParityRegion/UnionRegion contributes its curve primitives.
189783
+ * @param tolerance optional distance tolerance for coincidence
189585
189784
  * @returns array of [[SignedLoops]], each entry of which describes the faces in a single connected component:
189586
189785
  * * `positiveAreaLoops` contains "interior" loops, _including holes in ParityRegion input_. These loops have positive area and counterclockwise orientation.
189587
189786
  * * `negativeAreaLoops` contains (probably just one) "exterior" loop which is ordered clockwise.
189588
189787
  * * `slivers` contains sliver loops that have zero area, such as appear between coincident curves.
189589
189788
  * * `edges` contains a [[LoopCurveLoopCurve]] object for each component edge, collecting both loops adjacent to the edge and a constituent curve in each.
189590
189789
  */
189591
- static constructAllXYRegionLoops(curvesAndRegions) {
189592
- const primitivesA = RegionOps.collectCurvePrimitives(curvesAndRegions, undefined, true);
189593
- const primitivesB = this.expandLineStrings(primitivesA);
189594
- const range = this.curveArrayRange(primitivesB);
189595
- const areaTol = this.computeXYAreaTolerance(range);
189596
- const intersections = _CurveCurve__WEBPACK_IMPORTED_MODULE_30__.CurveCurve.allIntersectionsAmongPrimitivesXY(primitivesB);
189597
- const graph = _Query_PlanarSubdivision__WEBPACK_IMPORTED_MODULE_12__.PlanarSubdivision.assembleHalfEdgeGraph(primitivesB, intersections);
189790
+ static constructAllXYRegionLoops(curvesAndRegions, tolerance = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.smallMetricDistance) {
189791
+ const primitives = RegionOps.collectCurvePrimitives(curvesAndRegions, undefined, true, true);
189792
+ const range = this.curveArrayRange(primitives);
189793
+ const areaTol = this.computeXYAreaTolerance(range, tolerance);
189794
+ const intersections = _CurveCurve__WEBPACK_IMPORTED_MODULE_30__.CurveCurve.allIntersectionsAmongPrimitivesXY(primitives, tolerance);
189795
+ const graph = _Query_PlanarSubdivision__WEBPACK_IMPORTED_MODULE_12__.PlanarSubdivision.assembleHalfEdgeGraph(primitives, intersections, tolerance);
189598
189796
  return _Query_PlanarSubdivision__WEBPACK_IMPORTED_MODULE_12__.PlanarSubdivision.collectSignedLoopSetsInHalfEdgeGraph(graph, areaTol);
189599
189797
  }
189600
189798
  /**
@@ -190210,7 +190408,7 @@ class RegionBooleanContext {
190210
190408
  }
190211
190409
  // const range = RegionOps.curveArrayRange(allPrimitives);
190212
190410
  const intersections = _CurveCurve__WEBPACK_IMPORTED_MODULE_15__.CurveCurve.allIntersectionsAmongPrimitivesXY(allPrimitives, mergeTolerance);
190213
- const graph = _Query_PlanarSubdivision__WEBPACK_IMPORTED_MODULE_16__.PlanarSubdivision.assembleHalfEdgeGraph(allPrimitives, intersections);
190411
+ const graph = _Query_PlanarSubdivision__WEBPACK_IMPORTED_MODULE_16__.PlanarSubdivision.assembleHalfEdgeGraph(allPrimitives, intersections, mergeTolerance);
190214
190412
  this.graph = graph;
190215
190413
  this.faceAreaFunction = faceAreaFromCurvedEdgeData;
190216
190414
  }
@@ -197309,15 +197507,20 @@ __webpack_require__.r(__webpack_exports__);
197309
197507
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
197310
197508
  /* harmony export */ "CoincidentGeometryQuery": () => (/* binding */ CoincidentGeometryQuery)
197311
197509
  /* harmony export */ });
197312
- /* harmony import */ var _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../curve/CurveLocationDetail */ "../../core/geometry/lib/esm/curve/CurveLocationDetail.js");
197313
- /* harmony import */ var _Geometry__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Geometry */ "../../core/geometry/lib/esm/Geometry.js");
197314
- /* harmony import */ var _AngleSweep__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./AngleSweep */ "../../core/geometry/lib/esm/geometry3d/AngleSweep.js");
197315
- /* harmony import */ var _Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Point3dVector3d */ "../../core/geometry/lib/esm/geometry3d/Point3dVector3d.js");
197316
- /* harmony import */ var _Segment1d__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Segment1d */ "../../core/geometry/lib/esm/geometry3d/Segment1d.js");
197510
+ /* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
197511
+ /* harmony import */ var _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../curve/CurveLocationDetail */ "../../core/geometry/lib/esm/curve/CurveLocationDetail.js");
197512
+ /* harmony import */ var _Geometry__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Geometry */ "../../core/geometry/lib/esm/Geometry.js");
197513
+ /* harmony import */ var _AngleSweep__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./AngleSweep */ "../../core/geometry/lib/esm/geometry3d/AngleSweep.js");
197514
+ /* harmony import */ var _Point3dVector3d__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Point3dVector3d */ "../../core/geometry/lib/esm/geometry3d/Point3dVector3d.js");
197515
+ /* harmony import */ var _Segment1d__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Segment1d */ "../../core/geometry/lib/esm/geometry3d/Segment1d.js");
197317
197516
  /*---------------------------------------------------------------------------------------------
197318
197517
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
197319
197518
  * See LICENSE.md in the project root for license terms and full copyright notice.
197320
197519
  *--------------------------------------------------------------------------------------------*/
197520
+ /** @packageDocumentation
197521
+ * @module CartesianGeometry
197522
+ */
197523
+
197321
197524
 
197322
197525
 
197323
197526
 
@@ -197333,10 +197536,10 @@ class CoincidentGeometryQuery {
197333
197536
  get tolerance() {
197334
197537
  return this._tolerance;
197335
197538
  }
197336
- constructor(tolerance = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallMetricDistance) {
197539
+ constructor(tolerance = _Geometry__WEBPACK_IMPORTED_MODULE_1__.Geometry.smallMetricDistance) {
197337
197540
  this._tolerance = tolerance;
197338
197541
  }
197339
- static create(tolerance = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallMetricDistance) {
197542
+ static create(tolerance = _Geometry__WEBPACK_IMPORTED_MODULE_1__.Geometry.smallMetricDistance) {
197340
197543
  return new CoincidentGeometryQuery(tolerance);
197341
197544
  }
197342
197545
  /**
@@ -197359,12 +197562,12 @@ class CoincidentGeometryQuery {
197359
197562
  *
197360
197563
  */
197361
197564
  projectPointToSegmentXY(spacePoint, pointA, pointB) {
197362
- this._vectorU = _Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Vector3d.createStartEnd(pointA, pointB, this._vectorU);
197363
- this._vectorV = _Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Vector3d.createStartEnd(pointA, spacePoint, this._vectorV);
197565
+ this._vectorU = _Point3dVector3d__WEBPACK_IMPORTED_MODULE_2__.Vector3d.createStartEnd(pointA, pointB, this._vectorU);
197566
+ this._vectorV = _Point3dVector3d__WEBPACK_IMPORTED_MODULE_2__.Vector3d.createStartEnd(pointA, spacePoint, this._vectorV);
197364
197567
  const uDotU = this._vectorU.dotProductXY(this._vectorU);
197365
197568
  const uDotV = this._vectorU.dotProductXY(this._vectorV);
197366
- const fraction = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.safeDivideFraction(uDotV, uDotU, 0.0);
197367
- return _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetail.createCurveFractionPoint(undefined, fraction, pointA.interpolate(fraction, pointB));
197569
+ const fraction = _Geometry__WEBPACK_IMPORTED_MODULE_1__.Geometry.safeDivideFraction(uDotV, uDotU, 0.0);
197570
+ return _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__.CurveLocationDetail.createCurveFractionPoint(undefined, fraction, pointA.interpolate(fraction, pointB));
197368
197571
  }
197369
197572
  /**
197370
197573
  * * project `pointA0` and `pointA1` onto the segment with `pointB0` and `pointB1`
@@ -197375,84 +197578,82 @@ class CoincidentGeometryQuery {
197375
197578
  * @param pointB1 end point of segment B
197376
197579
  */
197377
197580
  coincidentSegmentRangeXY(pointA0, pointA1, pointB0, pointB1, restrictToBounds = true) {
197378
- const detailAOnB = this.projectPointToSegmentXY(pointA0, pointB0, pointB1);
197379
- if (pointA0.distanceXY(detailAOnB.point) > this._tolerance)
197581
+ const detailA0OnB = this.projectPointToSegmentXY(pointA0, pointB0, pointB1);
197582
+ if (pointA0.distanceXY(detailA0OnB.point) > this._tolerance)
197380
197583
  return undefined;
197381
197584
  const detailA1OnB = this.projectPointToSegmentXY(pointA1, pointB0, pointB1);
197382
197585
  if (pointA1.distanceXY(detailA1OnB.point) > this._tolerance)
197383
197586
  return undefined;
197384
- const detailBOnA = this.projectPointToSegmentXY(pointB0, pointA0, pointA1);
197385
- if (pointB0.distanceXY(detailBOnA.point) > this._tolerance)
197587
+ const detailB0OnA = this.projectPointToSegmentXY(pointB0, pointA0, pointA1);
197588
+ if (pointB0.distanceXY(detailB0OnA.point) > this._tolerance)
197386
197589
  return undefined;
197387
197590
  const detailB1OnA = this.projectPointToSegmentXY(pointB1, pointA0, pointA1);
197388
197591
  if (pointB1.distanceXY(detailB1OnA.point) > this._tolerance)
197389
197592
  return undefined;
197390
- detailAOnB.fraction1 = detailA1OnB.fraction;
197391
- detailAOnB.point1 = detailA1OnB.point; // capture -- detailB0OnA is not reused.
197392
- detailBOnA.fraction1 = detailB1OnA.fraction;
197393
- detailBOnA.point1 = detailB1OnA.point;
197593
+ detailA0OnB.fraction1 = detailA1OnB.fraction;
197594
+ detailA0OnB.point1 = detailA1OnB.point; // capture -- detailA1OnB is not reused.
197595
+ detailB0OnA.fraction1 = detailB1OnA.fraction;
197596
+ detailB0OnA.point1 = detailB1OnA.point;
197394
197597
  if (!restrictToBounds)
197395
- return _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetailPair.createCapture(detailBOnA, detailAOnB);
197396
- const segment = _Segment1d__WEBPACK_IMPORTED_MODULE_3__.Segment1d.create(detailBOnA.fraction, detailBOnA.fraction1);
197598
+ return _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__.CurveLocationDetailPair.createCapture(detailB0OnA, detailA0OnB);
197599
+ const segment = _Segment1d__WEBPACK_IMPORTED_MODULE_4__.Segment1d.create(detailB0OnA.fraction, detailB0OnA.fraction1);
197397
197600
  if (segment.clampDirectedTo01()) {
197398
- segment.reverseIfNeededForDeltaSign(1.0);
197399
197601
  const f0 = segment.x0;
197400
197602
  const f1 = segment.x1;
197401
- const h0 = detailBOnA.inverseInterpolateFraction(f0);
197402
- const h1 = detailBOnA.inverseInterpolateFraction(f1);
197603
+ const h0 = detailB0OnA.inverseInterpolateFraction(f0);
197604
+ const h1 = detailB0OnA.inverseInterpolateFraction(f1);
197403
197605
  // recompute fractions and points..
197404
- CoincidentGeometryQuery.assignDetailInterpolatedFractionsAndPoints(detailBOnA, f0, f1, pointA0, pointA1);
197405
- CoincidentGeometryQuery.assignDetailInterpolatedFractionsAndPoints(detailAOnB, h0, h1, pointB0, pointB1);
197406
- return _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetailPair.createCapture(detailBOnA, detailAOnB);
197606
+ CoincidentGeometryQuery.assignDetailInterpolatedFractionsAndPoints(detailB0OnA, f0, f1, pointA0, pointA1, f0 > f1);
197607
+ CoincidentGeometryQuery.assignDetailInterpolatedFractionsAndPoints(detailA0OnB, h0, h1, pointB0, pointB1, h0 > h1);
197608
+ return _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__.CurveLocationDetailPair.createCapture(detailB0OnA, detailA0OnB);
197407
197609
  }
197408
197610
  else {
197409
197611
  if (segment.signedDelta() < 0.0) {
197410
- if (detailBOnA.point.isAlmostEqual(pointA0)) {
197411
- detailBOnA.collapseToStart();
197412
- detailAOnB.collapseToStart();
197413
- return _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetailPair.createCapture(detailBOnA, detailAOnB);
197612
+ if (detailB0OnA.point.isAlmostEqual(pointA0, this.tolerance)) {
197613
+ detailB0OnA.collapseToStart();
197614
+ detailA0OnB.collapseToStart();
197615
+ return _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__.CurveLocationDetailPair.createCapture(detailB0OnA, detailA0OnB);
197414
197616
  }
197415
- if (detailBOnA.point1.isAlmostEqual(pointA1)) {
197416
- detailBOnA.collapseToEnd();
197417
- detailAOnB.collapseToEnd();
197418
- return _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetailPair.createCapture(detailBOnA, detailAOnB);
197617
+ if (detailB0OnA.point1.isAlmostEqual(pointA1, this.tolerance)) {
197618
+ detailB0OnA.collapseToEnd();
197619
+ detailA0OnB.collapseToEnd();
197620
+ return _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__.CurveLocationDetailPair.createCapture(detailB0OnA, detailA0OnB);
197419
197621
  }
197420
197622
  }
197421
197623
  else {
197422
- if (detailBOnA.point.isAlmostEqual(pointA1)) {
197423
- detailBOnA.collapseToStart();
197424
- detailAOnB.collapseToEnd();
197425
- return _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetailPair.createCapture(detailBOnA, detailAOnB);
197624
+ if (detailB0OnA.point.isAlmostEqual(pointA1, this.tolerance)) {
197625
+ detailB0OnA.collapseToStart();
197626
+ detailA0OnB.collapseToEnd();
197627
+ return _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__.CurveLocationDetailPair.createCapture(detailB0OnA, detailA0OnB);
197426
197628
  }
197427
- if (detailBOnA.point1.isAlmostEqual(pointA0)) {
197428
- detailBOnA.collapseToEnd();
197429
- detailAOnB.collapseToStart();
197430
- return _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetailPair.createCapture(detailBOnA, detailAOnB);
197629
+ if (detailB0OnA.point1.isAlmostEqual(pointA0, this.tolerance)) {
197630
+ detailB0OnA.collapseToEnd();
197631
+ detailA0OnB.collapseToStart();
197632
+ return _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__.CurveLocationDetailPair.createCapture(detailB0OnA, detailA0OnB);
197431
197633
  }
197432
197634
  }
197433
197635
  }
197434
197636
  return undefined;
197435
197637
  }
197436
197638
  /**
197437
- * Create a CurveLocationDetailPair from . . .
197639
+ * Create a CurveLocationDetailPair for a coincident interval of two overlapping curves
197438
197640
  * @param cpA curveA
197439
- * @param cpB curve B
197440
- * @param fractionsOnA fractions of an active section of curveA
197441
- * @param fractionB0 fraction of an original containing B interval
197442
- * @param fractionB1 end fraction of an original containing B interval
197641
+ * @param cpB curveB
197642
+ * @param fractionsOnA coincident interval of curveB in fraction space of curveA
197643
+ * @param fractionB0 curveB start in fraction space of curveA
197644
+ * @param fractionB1 curveB end in fraction space of curveA
197645
+ * @param reverse whether curveB and curveA have opposite direction
197443
197646
  */
197444
197647
  createDetailPair(cpA, cpB, fractionsOnA, fractionB0, fractionB1, reverse) {
197445
197648
  const deltaB = fractionB1 - fractionB0;
197446
- const g0 = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.conditionalDivideFraction(fractionsOnA.x0 - fractionB0, deltaB);
197447
- const g1 = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.conditionalDivideFraction(fractionsOnA.x1 - fractionB0, deltaB);
197649
+ const g0 = _Geometry__WEBPACK_IMPORTED_MODULE_1__.Geometry.conditionalDivideFraction(fractionsOnA.x0 - fractionB0, deltaB);
197650
+ const g1 = _Geometry__WEBPACK_IMPORTED_MODULE_1__.Geometry.conditionalDivideFraction(fractionsOnA.x1 - fractionB0, deltaB);
197448
197651
  if (g0 !== undefined && g1 !== undefined) {
197449
- const detailA = _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetail.createCurveEvaluatedFractionFraction(cpA, fractionsOnA.x0, fractionsOnA.x1);
197450
- const detailB = _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetail.createCurveEvaluatedFractionFraction(cpB, g0, g1);
197451
- if (reverse) {
197652
+ const detailA = _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__.CurveLocationDetail.createCurveEvaluatedFractionFraction(cpA, fractionsOnA.x0, fractionsOnA.x1);
197653
+ const detailB = _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__.CurveLocationDetail.createCurveEvaluatedFractionFraction(cpB, g0, g1);
197654
+ if (reverse)
197452
197655
  detailA.swapFractionsAndPoints();
197453
- detailB.swapFractionsAndPoints();
197454
- }
197455
- return _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetailPair.createCapture(detailA, detailB);
197656
+ return _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__.CurveLocationDetailPair.createCapture(detailA, detailB);
197456
197657
  }
197457
197658
  return undefined;
197458
197659
  }
@@ -197469,43 +197670,67 @@ class CoincidentGeometryQuery {
197469
197670
  * @param arcA
197470
197671
  * @param arcB
197471
197672
  * @param _restrictToBounds
197472
- * @return 0, 1, or 2 overlap intervals.
197673
+ * @return 0, 1, or 2 overlap points/intervals
197473
197674
  */
197474
197675
  coincidentArcIntersectionXY(arcA, arcB, _restrictToBounds = true) {
197475
197676
  let result;
197476
- if (arcA.center.isAlmostEqual(arcB.center)) {
197677
+ if (arcA.center.isAlmostEqual(arcB.center, this.tolerance)) {
197477
197678
  const matrixBToA = arcA.matrixRef.multiplyMatrixInverseMatrix(arcB.matrixRef);
197478
197679
  if (matrixBToA) {
197479
197680
  const ux = matrixBToA.at(0, 0);
197480
197681
  const uy = matrixBToA.at(1, 0);
197481
197682
  const vx = matrixBToA.at(0, 1);
197482
197683
  const vy = matrixBToA.at(1, 1);
197483
- const ru = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.hypotenuseXY(ux, uy);
197484
- const rv = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.hypotenuseXY(vx, vy);
197485
- const dot = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.dotProductXYXY(ux, uy, vx, vy);
197486
- const cross = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.crossProductXYXY(ux, uy, vx, vy);
197487
- if (_Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.isAlmostEqualNumber(ru, 1.0)
197488
- && _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.isAlmostEqualNumber(rv, 1.0)
197489
- && _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.isAlmostEqualNumber(0, dot)) {
197490
- const alphaB0Radians = Math.atan2(uy, ux); // angular position of arcB 0 point in A sweep
197491
- const sweepDirection = cross > 0 ? 1.0 : -1.0; // 1 if arcB's parameter space sweeps forward, -1 if reverse
197492
- const betaStartRadians = alphaB0Radians + sweepDirection * arcB.sweep.startRadians;
197493
- const betaEndRadians = alphaB0Radians + sweepDirection * arcB.sweep.endRadians;
197684
+ const ru = _Geometry__WEBPACK_IMPORTED_MODULE_1__.Geometry.hypotenuseXY(ux, uy);
197685
+ const rv = _Geometry__WEBPACK_IMPORTED_MODULE_1__.Geometry.hypotenuseXY(vx, vy);
197686
+ const dot = _Geometry__WEBPACK_IMPORTED_MODULE_1__.Geometry.dotProductXYXY(ux, uy, vx, vy);
197687
+ const cross = _Geometry__WEBPACK_IMPORTED_MODULE_1__.Geometry.crossProductXYXY(ux, uy, vx, vy);
197688
+ if (_Geometry__WEBPACK_IMPORTED_MODULE_1__.Geometry.isAlmostEqualNumber(ru, 1.0)
197689
+ && _Geometry__WEBPACK_IMPORTED_MODULE_1__.Geometry.isAlmostEqualNumber(rv, 1.0)
197690
+ && _Geometry__WEBPACK_IMPORTED_MODULE_1__.Geometry.isAlmostEqualNumber(0, dot)) {
197691
+ const alphaB0Radians = Math.atan2(uy, ux); // angular position of arcB 0 point in arcA sweep
197692
+ const sweepDirection = cross > 0 ? 1.0 : -1.0; // 1 if arcB parameter space sweeps in same direction as arcA, -1 if opposite
197693
+ const betaStartRadians = alphaB0Radians + sweepDirection * arcB.sweep.startRadians; // arcB start in arcA parameter space
197694
+ const betaEndRadians = alphaB0Radians + sweepDirection * arcB.sweep.endRadians; // arcB end in arcA parameter space
197494
197695
  const fractionSpacesReversed = (sweepDirection * arcA.sweep.sweepRadians * arcB.sweep.sweepRadians) < 0;
197495
- const sweepB = _AngleSweep__WEBPACK_IMPORTED_MODULE_4__.AngleSweep.createStartEndRadians(betaStartRadians, betaEndRadians);
197696
+ const sweepB = _AngleSweep__WEBPACK_IMPORTED_MODULE_5__.AngleSweep.createStartEndRadians(betaStartRadians, betaEndRadians);
197496
197697
  const sweepA = arcA.sweep;
197497
197698
  const fractionPeriodA = sweepA.fractionPeriod();
197498
- const fractionB0 = sweepA.radiansToPositivePeriodicFraction(sweepB.startRadians);
197499
- const fractionSweep = sweepB.sweepRadians / sweepA.sweepRadians;
197500
- const fractionB1 = fractionB0 + fractionSweep;
197501
- const fractionSweepB = _Segment1d__WEBPACK_IMPORTED_MODULE_3__.Segment1d.create(fractionB0, fractionB1);
197502
- if (fractionSweepB.clampDirectedTo01())
197503
- result = this.appendDetailPair(result, this.createDetailPair(arcA, arcB, fractionSweepB, fractionB0, fractionB1, fractionSpacesReversed));
197504
- if (fractionB1 > fractionPeriodA) {
197505
- const fractionSweepBWrap = _Segment1d__WEBPACK_IMPORTED_MODULE_3__.Segment1d.create(fractionB0 - fractionPeriodA, fractionB1 - fractionPeriodA);
197506
- if (fractionSweepBWrap.clampDirectedTo01())
197507
- result = this.appendDetailPair(result, this.createDetailPair(arcA, arcB, fractionSweepBWrap, fractionB0, fractionB1, fractionSpacesReversed));
197508
- }
197699
+ const fractionB0 = sweepA.radiansToPositivePeriodicFraction(sweepB.startRadians); // arcB start in arcA fraction space
197700
+ (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(fractionB0 >= 0.0);
197701
+ const fractionSweep = sweepB.sweepRadians / sweepA.sweepRadians; // arcB sweep in arcA fraction space
197702
+ const fractionB1 = fractionB0 + fractionSweep; // arcB end in arcA fraction space
197703
+ const fractionSweepB = _Segment1d__WEBPACK_IMPORTED_MODULE_4__.Segment1d.create(fractionB0, fractionB1);
197704
+ /** lambda to add a coincident interval or isolated intersection, given inputs in arcA fraction space
197705
+ * @param arcBInArcAFractionSpace span of arcB in arcA fraction space. On return, clamped to [0,1] if nontrivial.
197706
+ * @param testStartOfArcA if no nontrivial coincident interval was found, look for an isolated intersection at the start (true) or end (false) of arcA
197707
+ * @returns whether a detail pair was appended to result
197708
+ */
197709
+ const appendCoincidentIntersection = (arcBInArcAFractionSpace, testStartOfArcA) => {
197710
+ const size = result ? result.length : 0;
197711
+ const arcBStart = arcBInArcAFractionSpace.x0;
197712
+ const arcBEnd = arcBInArcAFractionSpace.x1;
197713
+ if (arcBInArcAFractionSpace.clampDirectedTo01() && !_Geometry__WEBPACK_IMPORTED_MODULE_1__.Geometry.isSmallRelative(arcBInArcAFractionSpace.absoluteDelta())) {
197714
+ result = this.appendDetailPair(result, this.createDetailPair(arcA, arcB, arcBInArcAFractionSpace, arcBStart, arcBEnd, fractionSpacesReversed));
197715
+ }
197716
+ else { // test isolated intersection
197717
+ const testStartOfArcB = fractionSpacesReversed ? testStartOfArcA : !testStartOfArcA;
197718
+ const arcAPt = this._point0 = testStartOfArcA ? arcA.startPoint(this._point0) : arcA.endPoint(this._point0);
197719
+ const arcBPt = this._point1 = testStartOfArcB ? arcB.startPoint(this._point1) : arcB.endPoint(this._point1);
197720
+ if (arcAPt.isAlmostEqual(arcBPt, this.tolerance)) {
197721
+ const detailA = _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__.CurveLocationDetail.createCurveFractionPoint(arcA, testStartOfArcA ? 0 : 1, arcAPt);
197722
+ const detailB = _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__.CurveLocationDetail.createCurveFractionPoint(arcB, testStartOfArcB ? 0 : 1, arcBPt);
197723
+ result = this.appendDetailPair(result, _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__.CurveLocationDetailPair.createCapture(detailA, detailB));
197724
+ }
197725
+ }
197726
+ return result !== undefined && result.length > size;
197727
+ };
197728
+ appendCoincidentIntersection(fractionSweepB, false); // compute overlap in strict interior, or at end of arcA
197729
+ // check overlap at start of arcA with a periodic shift of fractionSweepB
197730
+ if (fractionB1 >= fractionPeriodA)
197731
+ appendCoincidentIntersection(_Segment1d__WEBPACK_IMPORTED_MODULE_4__.Segment1d.create(fractionB0 - fractionPeriodA, fractionB1 - fractionPeriodA), true);
197732
+ else if (fractionB0 === 0.0)
197733
+ appendCoincidentIntersection(_Segment1d__WEBPACK_IMPORTED_MODULE_4__.Segment1d.create(fractionB0 + fractionPeriodA, fractionB1 + fractionPeriodA), true);
197509
197734
  }
197510
197735
  }
197511
197736
  }
@@ -204391,7 +204616,7 @@ class Matrix3d {
204391
204616
  * almost independent and matrix is invertible).
204392
204617
  */
204393
204618
  conditionNumber() {
204394
- const determinant = this.determinant();
204619
+ const determinant = Math.abs(this.determinant());
204395
204620
  const columnMagnitudeSum = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.hypotenuseXYZ(this.coffs[0], this.coffs[3], this.coffs[6])
204396
204621
  + _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.hypotenuseXYZ(this.coffs[1], this.coffs[4], this.coffs[7])
204397
204622
  + _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.hypotenuseXYZ(this.coffs[2], this.coffs[5], this.coffs[8]);
@@ -249353,6 +249578,7 @@ class HalfEdgeGraphOps {
249353
249578
  }
249354
249579
  }
249355
249580
  /**
249581
+ * Note: this class uses hardcoded micrometer coordinate/cluster tolerance throughout.
249356
249582
  * @internal
249357
249583
  */
249358
249584
  class HalfEdgeGraphMerge {
@@ -282312,7 +282538,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
282312
282538
  /***/ ((module) => {
282313
282539
 
282314
282540
  "use strict";
282315
- module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.0.0-dev.99","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","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","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/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 --no-eslintrc -c \\"./node_modules/@itwin/eslint-plugin/dist/configs/extension-exports-config.js\\" \\"./src/**/*.ts\\" 1>&2","lint":"eslint -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"},"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.0.0-dev.99","@itwin/core-bentley":"workspace:^4.0.0-dev.99","@itwin/core-common":"workspace:^4.0.0-dev.99","@itwin/core-geometry":"workspace:^4.0.0-dev.99","@itwin/core-orbitgt":"workspace:^4.0.0-dev.99","@itwin/core-quantity":"workspace:^4.0.0-dev.99"},"//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.33","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^8.2.2","@types/node":"^18.11.5","@types/sinon":"^9.0.0","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.1.2","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^8.36.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.2","source-map-loader":"^4.0.0","typescript":"~5.0.2","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/object-storage-azure":"^1.5.0","@itwin/cloud-agnostic-core":"^1.5.0","@itwin/object-storage-core":"^1.5.0","@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","reflect-metadata":"0.1.13"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"},"eslintConfig":{"plugins":["@itwin"],"extends":"plugin:@itwin/itwinjs-recommended","rules":{"@itwin/no-internal-barrel-imports":["error",{"required-barrel-modules":["./src/tile/internal.ts"]}],"@itwin/public-extension-exports":["error",{"releaseTags":["public","preview"],"outputApiFile":false}]},"overrides":[{"files":["*.test.ts","*.test.tsx","**/test/**/*.ts"],"rules":{"@itwin/no-internal-barrel-imports":"off"}}]}}');
282541
+ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.0.0","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","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","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/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 --no-eslintrc -c \\"./node_modules/@itwin/eslint-plugin/dist/configs/extension-exports-config.js\\" \\"./src/**/*.ts\\" 1>&2","lint":"eslint -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"},"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.0.0","@itwin/core-bentley":"workspace:^4.0.0","@itwin/core-common":"workspace:^4.0.0","@itwin/core-geometry":"workspace:^4.0.0","@itwin/core-orbitgt":"workspace:^4.0.0","@itwin/core-quantity":"workspace:^4.0.0"},"//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.33","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^8.2.2","@types/node":"^18.11.5","@types/sinon":"^9.0.0","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.1.2","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^8.36.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.2","source-map-loader":"^4.0.0","typescript":"~5.0.2","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/object-storage-azure":"^1.5.0","@itwin/cloud-agnostic-core":"^1.5.0","@itwin/object-storage-core":"^1.5.0","@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","reflect-metadata":"0.1.13"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"},"eslintConfig":{"plugins":["@itwin"],"extends":"plugin:@itwin/itwinjs-recommended","rules":{"@itwin/no-internal-barrel-imports":["error",{"required-barrel-modules":["./src/tile/internal.ts"]}],"@itwin/public-extension-exports":["error",{"releaseTags":["public","preview"],"outputApiFile":false}]},"overrides":[{"files":["*.test.ts","*.test.tsx","**/test/**/*.ts"],"rules":{"@itwin/no-internal-barrel-imports":"off"}}]}}');
282316
282542
 
282317
282543
  /***/ })
282318
282544