@itwin/linear-referencing-backend 5.9.2 → 5.10.0-dev.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log - @itwin/linear-referencing-backend
2
2
 
3
- This log was last generated on Fri, 08 May 2026 20:36:41 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 08 May 2026 20:37:55 GMT and should not be manually modified.
4
4
 
5
5
  ## 5.9.2
6
6
  Fri, 08 May 2026 20:36:41 GMT
@@ -1 +1 @@
1
- {"version":3,"file":"LinearReferencingElementAspects.d.ts","sourceRoot":"","sources":["../../src/LinearReferencingElementAspects.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAa,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAgB,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE1F,OAAO,EACL,uBAAuB,EAAE,uCAAuC,EAAE,2CAA2C,EAC9G,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,4CAA4C,EAAE,8CAA8C,EAAE,4CAA4C,EAC3I,MAAM,kCAAkC,CAAC;AAE1C;;GAEG;AACH,qBAAa,kBAAmB,YAAW,uBAAuB;IACzD,sBAAsB,EAAE,MAAM,CAAC;IAC/B,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC,gCAAgC,CAAC,EAAE,MAAM,CAAC;IAC1C,yBAAyB,CAAC,EAAE,MAAM,CAAC;gBAE9B,KAAK,EAAE,uBAAuB;WAO5B,QAAQ,CAAC,IAAI,EAAE,uBAAuB,GAAG,kBAAkB;CAC1E;AAED;;GAEG;AACH,qBAAa,0BAA2B,SAAQ,kBAAkB;IAChE,gBAAgB;IAChB,WAA2B,SAAS,IAAI,MAAM,CAAyC;CACxF;AAED;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,0BAA0B;IAC1E,gBA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AU,EAC7D,IAAI,EAAE,kBAAkB,EAAE,EAAE,EAAE,kBAAkB,EAAE,cAAc,CAAC,EAAE,UAAU,EAAE,YAAY,CAAC,EAAE,UAAU,GAAG,IAAI;IAEjH;;OAEG;WACW,MAAM,CAAC,MAAM,EAAE,QAAQ,EAAE,gBAAgB,EAAE,UAAU,EACjE,IAAI,EAAE,kBAAkB,EAAE,EAAE,EAAE,kBAAkB,EAAE,cAAc,CAAC,EAAE,UAAU,EAAE,YAAY,CAAC,EAAE,UAAU,GAAG,IAAI;CAYlH"}
@@ -63,8 +63,13 @@ class LinearlyReferencedAtLocation extends LinearlyReferencedLocation {
63
63
  return new LinearlyReferencedAtLocation(this.toProps(locatedElementId, at, fromReferentId), iModel);
64
64
  }
65
65
  static insert(txnOrIModel, locatedElementId, at, fromReferentId) {
66
- const txn = txnOrIModel instanceof core_backend_1.EditTxn ? txnOrIModel : txnOrIModel[core_backend_1._implicitTxn];
67
- txn.insertAspect(this.toProps(locatedElementId, at, fromReferentId));
66
+ const aspectProps = this.toProps(locatedElementId, at, fromReferentId);
67
+ if (txnOrIModel instanceof core_backend_1.EditTxn)
68
+ txnOrIModel.insertAspect(aspectProps);
69
+ else {
70
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- deprecated IModelDb overload is intentionally preserved for backward compatibility.
71
+ txnOrIModel.elements.insertAspect(aspectProps);
72
+ }
68
73
  }
69
74
  }
70
75
  exports.LinearlyReferencedAtLocation = LinearlyReferencedAtLocation;
@@ -100,8 +105,13 @@ class LinearlyReferencedFromToLocation extends LinearlyReferencedLocation {
100
105
  return new LinearlyReferencedFromToLocation(this.toProps(locatedElementId, from, to, fromReferentId, toReferentId), iModel);
101
106
  }
102
107
  static insert(txnOrIModel, locatedElementId, from, to, fromReferentId, toReferentId) {
103
- const txn = txnOrIModel instanceof core_backend_1.EditTxn ? txnOrIModel : txnOrIModel[core_backend_1._implicitTxn];
104
- txn.insertAspect(this.toProps(locatedElementId, from, to, fromReferentId, toReferentId));
108
+ const aspectProps = this.toProps(locatedElementId, from, to, fromReferentId, toReferentId);
109
+ if (txnOrIModel instanceof core_backend_1.EditTxn)
110
+ txnOrIModel.insertAspect(aspectProps);
111
+ else {
112
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- deprecated IModelDb overload is intentionally preserved for backward compatibility.
113
+ txnOrIModel.elements.insertAspect(aspectProps);
114
+ }
105
115
  }
106
116
  }
107
117
  exports.LinearlyReferencedFromToLocation = LinearlyReferencedFromToLocation;
@@ -1 +1 @@
1
- {"version":3,"file":"LinearReferencingElementAspects.js","sourceRoot":"","sources":["../../src/LinearReferencingElementAspects.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAA4D;AAC5D,sDAA0F;AAC1F,oDAAoD;AAIpD,qFAE0C;AAE1C;;GAEG;AACH,MAAa,kBAAkB;IACtB,sBAAsB,CAAS;IAC/B,+BAA+B,CAAU;IACzC,gCAAgC,CAAU;IAC1C,yBAAyB,CAAU;IAE1C,YAAY,KAA8B;QACxC,IAAI,CAAC,sBAAsB,GAAG,wBAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAC/E,IAAI,CAAC,+BAA+B,GAAG,wBAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;QACjG,IAAI,CAAC,gCAAgC,GAAG,wBAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC;QACnG,IAAI,CAAC,yBAAyB,GAAG,wBAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACvF,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,IAA6B,IAAwB,OAAO,IAAI,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;CACnH;AAdD,gDAcC;AAED;;GAEG;AACH,MAAa,0BAA2B,SAAQ,iCAAkB;IAChE,gBAAgB;IACT,MAAM,KAAc,SAAS,KAA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CAAC,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,6EAA4C,CAAC,YAAY,CAAC;SAClI,CAAC;QAEF,OAAO,KAAK,CAAC;IACf,CAAC;IAEM,MAAM,CAAC,MAAM,CAAC,MAAgB,EAAE,gBAA4B,EACjE,IAAwB,EAAE,EAAsB,EAAE,cAA2B,EAAE,YAAyB;QACxG,OAAO,IAAI,gCAAgC,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE,IAAI,EAAE,EAAE,EAAE,cAAc,EAAE,YAAY,CAAC,EAAE,MAAM,CAAC,CAAC;IAC9H,CAAC;IAcM,MAAM,CAAC,MAAM,CAAC,WAA+B,EAAE,gBAA4B,EAChF,IAAwB,EAAE,EAAsB,EAAE,cAA2B,EAAE,YAAyB;QACxG,MAAM,GAAG,GAAG,WAAW,YAAY,sBAAO,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,2BAAY,CAAC,CAAC;QACrF,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE,IAAI,EAAE,EAAE,EAAE,cAAc,EAAE,YAAY,CAAC,CAAC,CAAC;IAC3F,CAAC;CACF;AArDD,4EAqDC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module LinearReferencing\n */\n\nimport { Id64String, JsonUtils } from \"@itwin/core-bentley\";\nimport { _implicitTxn, EditTxn, ElementMultiAspect, IModelDb } from \"@itwin/core-backend\";\nimport { RelatedElement } from \"@itwin/core-common\";\nimport {\n DistanceExpressionProps, LinearlyReferencedAtLocationAspectProps, LinearlyReferencedFromToLocationAspectProps,\n} from \"@itwin/linear-referencing-common\";\nimport {\n LinearlyReferencedAtPositionRefersToReferent, LinearlyReferencedFromPositionRefersToReferent, LinearlyReferencedToPositionRefersToReferent,\n} from \"./LinearReferencingRelationships\";\n\n/** Core structure carrying linearly-referenced information.\n * @beta\n */\nexport class DistanceExpression implements DistanceExpressionProps {\n public distanceAlongFromStart: number;\n public lateralOffsetFromILinearElement?: number;\n public verticalOffsetFromILinearElement?: number;\n public distanceAlongFromReferent?: number;\n\n constructor(props: DistanceExpressionProps) {\n this.distanceAlongFromStart = JsonUtils.asDouble(props.distanceAlongFromStart);\n this.lateralOffsetFromILinearElement = JsonUtils.asDouble(props.lateralOffsetFromILinearElement);\n this.verticalOffsetFromILinearElement = JsonUtils.asDouble(props.verticalOffsetFromILinearElement);\n this.distanceAlongFromReferent = JsonUtils.asDouble(props.distanceAlongFromReferent);\n }\n\n public static fromJSON(json: DistanceExpressionProps): DistanceExpression { return new DistanceExpression(json); }\n}\n\n/** Base class for multi-aspects carrying linearly-referenced locations.\n * @beta\n */\nexport class LinearlyReferencedLocation extends ElementMultiAspect {\n /** @internal */\n public static override get className(): string { return \"LinearlyReferencedLocation\"; }\n}\n\n/** Concrete multi-aspect class carrying 'at' linearly-referenced positions along a Linear-Element.\n * @beta\n */\nexport class LinearlyReferencedAtLocation extends LinearlyReferencedLocation {\n /** @internal */\n public static override get className(): string { return \"LinearlyReferencedAtLocation\"; }\n\n public atPosition: DistanceExpression;\n public fromReferent?: LinearlyReferencedAtPositionRefersToReferent;\n\n constructor(props: LinearlyReferencedAtLocationAspectProps, iModel: IModelDb) {\n super(props, iModel);\n this.atPosition = DistanceExpression.fromJSON(props.atPosition);\n this.fromReferent = RelatedElement.fromJSON(props.fromReferent);\n }\n\n private static toProps(locatedElementId: Id64String, at: DistanceExpression, fromReferentId?: Id64String): LinearlyReferencedAtLocationAspectProps {\n const props: LinearlyReferencedAtLocationAspectProps = {\n classFullName: LinearlyReferencedAtLocation.classFullName,\n element: { id: locatedElementId },\n atPosition: at,\n fromReferent: (fromReferentId === undefined) ? undefined : new LinearlyReferencedAtPositionRefersToReferent(fromReferentId),\n };\n\n return props;\n }\n\n public static create(iModel: IModelDb, locatedElementId: Id64String,\n at: DistanceExpression, fromReferentId?: Id64String): LinearlyReferencedAtLocation {\n return new LinearlyReferencedAtLocation(this.toProps(locatedElementId, at, fromReferentId), iModel);\n }\n\n /** Insert a new aspect using an explicit transaction.\n * @beta\n */\n public static insert(txn: EditTxn, locatedElementId: Id64String,\n at: DistanceExpression, fromReferentId?: Id64String): void;\n\n /** Insert a new aspect.\n * @deprecated in 5.1.9 - will not be removed until after 2027-05-04. Use LinearlyReferencedAtLocation.insert(txn, ...) instead, within an explicit EditTxn scope (or via withEditTxn). See EditTxn documentation for migration help.\n */\n public static insert(iModel: IModelDb, locatedElementId: Id64String,\n at: DistanceExpression, fromReferentId?: Id64String): void;\n\n public static insert(txnOrIModel: EditTxn | IModelDb, locatedElementId: Id64String,\n at: DistanceExpression, fromReferentId?: Id64String): void {\n const txn = txnOrIModel instanceof EditTxn ? txnOrIModel : txnOrIModel[_implicitTxn];\n txn.insertAspect(this.toProps(locatedElementId, at, fromReferentId));\n }\n}\n\n/** Concrete multi-aspect class carrying 'from-to' linearly-referenced positions along a Linear-Element.\n * @beta\n */\nexport class LinearlyReferencedFromToLocation extends LinearlyReferencedLocation {\n /** @internal */\n public static override get className(): string { return \"LinearlyReferencedFromToLocation\"; }\n\n public fromPosition: DistanceExpression;\n public fromPositionFromReferent?: LinearlyReferencedFromPositionRefersToReferent;\n public toPosition: DistanceExpression;\n public toPositionFromReferent?: LinearlyReferencedToPositionRefersToReferent;\n\n constructor(props: LinearlyReferencedFromToLocationAspectProps, iModel: IModelDb) {\n super(props, iModel);\n this.fromPosition = DistanceExpression.fromJSON(props.fromPosition);\n this.toPosition = DistanceExpression.fromJSON(props.toPosition);\n this.fromPositionFromReferent = RelatedElement.fromJSON(props.fromPositionFromReferent);\n this.toPositionFromReferent = RelatedElement.fromJSON(props.toPositionFromReferent);\n }\n\n private static toProps(locatedElementId: Id64String,\n from: DistanceExpression, to: DistanceExpression, fromReferentId?: Id64String, toReferentId?: Id64String): LinearlyReferencedFromToLocationAspectProps {\n const props: LinearlyReferencedFromToLocationAspectProps = {\n classFullName: LinearlyReferencedFromToLocation.classFullName,\n element: { id: locatedElementId },\n fromPosition: from,\n fromPositionFromReferent: (fromReferentId === undefined) ? undefined : new LinearlyReferencedFromPositionRefersToReferent(fromReferentId),\n toPosition: to,\n toPositionFromReferent: (toReferentId === undefined) ? undefined : new LinearlyReferencedToPositionRefersToReferent(toReferentId),\n };\n\n return props;\n }\n\n public static create(iModel: IModelDb, locatedElementId: Id64String,\n from: DistanceExpression, to: DistanceExpression, fromReferentId?: Id64String, toReferentId?: Id64String): LinearlyReferencedFromToLocation {\n return new LinearlyReferencedFromToLocation(this.toProps(locatedElementId, from, to, fromReferentId, toReferentId), iModel);\n }\n\n /** Insert a new aspect using an explicit transaction.\n * @beta\n */\n public static insert(txn: EditTxn, locatedElementId: Id64String,\n from: DistanceExpression, to: DistanceExpression, fromReferentId?: Id64String, toReferentId?: Id64String): void;\n\n /** Insert a new aspect.\n * @deprecated in 5.1.9 - will not be removed until after 2027-05-04. Use LinearlyReferencedFromToLocation.insert(txn, ...) instead, within an explicit EditTxn scope (or via withEditTxn). See EditTxn documentation for migration help.\n */\n public static insert(iModel: IModelDb, locatedElementId: Id64String,\n from: DistanceExpression, to: DistanceExpression, fromReferentId?: Id64String, toReferentId?: Id64String): void;\n\n public static insert(txnOrIModel: EditTxn | IModelDb, locatedElementId: Id64String,\n from: DistanceExpression, to: DistanceExpression, fromReferentId?: Id64String, toReferentId?: Id64String): void {\n const txn = txnOrIModel instanceof EditTxn ? txnOrIModel : txnOrIModel[_implicitTxn];\n txn.insertAspect(this.toProps(locatedElementId, from, to, fromReferentId, toReferentId));\n }\n}\n"]}
1
+ {"version":3,"file":"LinearReferencingElementAspects.js","sourceRoot":"","sources":["../../src/LinearReferencingElementAspects.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAA4D;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CAAC;IAcM,MAAM,CAAC,MAAM,CAAC,WAA+B,EAAE,gBAA4B,EAChF,IAAwB,EAAE,EAAsB,EAAE,cAA2B,EAAE,YAAyB;QACxG,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE,IAAI,EAAE,EAAE,EAAE,cAAc,EAAE,YAAY,CAAC,CAAC;QAC3F,IAAI,WAAW,YAAY,sBAAO;YAChC,WAAW,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;aACnC,CAAC;YACJ,mJAAmJ;YACnJ,WAAW,CAAC,QAAQ,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;QACjD,CAAC;IACH,CAAC;CACF;AA1DD,4EA0DC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module LinearReferencing\r\n */\r\n\r\nimport { Id64String, JsonUtils } from \"@itwin/core-bentley\";\r\nimport { EditTxn, ElementMultiAspect, IModelDb } from \"@itwin/core-backend\";\r\nimport { RelatedElement } from \"@itwin/core-common\";\r\nimport {\r\n DistanceExpressionProps, LinearlyReferencedAtLocationAspectProps, LinearlyReferencedFromToLocationAspectProps,\r\n} from \"@itwin/linear-referencing-common\";\r\nimport {\r\n LinearlyReferencedAtPositionRefersToReferent, LinearlyReferencedFromPositionRefersToReferent, LinearlyReferencedToPositionRefersToReferent,\r\n} from \"./LinearReferencingRelationships\";\r\n\r\n/** Core structure carrying linearly-referenced information.\r\n * @beta\r\n */\r\nexport class DistanceExpression implements DistanceExpressionProps {\r\n public distanceAlongFromStart: number;\r\n public lateralOffsetFromILinearElement?: number;\r\n public verticalOffsetFromILinearElement?: number;\r\n public distanceAlongFromReferent?: number;\r\n\r\n constructor(props: DistanceExpressionProps) {\r\n this.distanceAlongFromStart = JsonUtils.asDouble(props.distanceAlongFromStart);\r\n this.lateralOffsetFromILinearElement = JsonUtils.asDouble(props.lateralOffsetFromILinearElement);\r\n this.verticalOffsetFromILinearElement = JsonUtils.asDouble(props.verticalOffsetFromILinearElement);\r\n this.distanceAlongFromReferent = JsonUtils.asDouble(props.distanceAlongFromReferent);\r\n }\r\n\r\n public static fromJSON(json: DistanceExpressionProps): DistanceExpression { return new DistanceExpression(json); }\r\n}\r\n\r\n/** Base class for multi-aspects carrying linearly-referenced locations.\r\n * @beta\r\n */\r\nexport class LinearlyReferencedLocation extends ElementMultiAspect {\r\n /** @internal */\r\n public static override get className(): string { return \"LinearlyReferencedLocation\"; }\r\n}\r\n\r\n/** Concrete multi-aspect class carrying 'at' linearly-referenced positions along a Linear-Element.\r\n * @beta\r\n */\r\nexport class LinearlyReferencedAtLocation extends LinearlyReferencedLocation {\r\n /** @internal */\r\n public static override get className(): string { return \"LinearlyReferencedAtLocation\"; }\r\n\r\n public atPosition: DistanceExpression;\r\n public fromReferent?: LinearlyReferencedAtPositionRefersToReferent;\r\n\r\n constructor(props: LinearlyReferencedAtLocationAspectProps, iModel: IModelDb) {\r\n super(props, iModel);\r\n this.atPosition = DistanceExpression.fromJSON(props.atPosition);\r\n this.fromReferent = RelatedElement.fromJSON(props.fromReferent);\r\n }\r\n\r\n private static toProps(locatedElementId: Id64String, at: DistanceExpression, fromReferentId?: Id64String): LinearlyReferencedAtLocationAspectProps {\r\n const props: LinearlyReferencedAtLocationAspectProps = {\r\n classFullName: LinearlyReferencedAtLocation.classFullName,\r\n element: { id: locatedElementId },\r\n atPosition: at,\r\n fromReferent: (fromReferentId === undefined) ? undefined : new LinearlyReferencedAtPositionRefersToReferent(fromReferentId),\r\n };\r\n\r\n return props;\r\n }\r\n\r\n public static create(iModel: IModelDb, locatedElementId: Id64String,\r\n at: DistanceExpression, fromReferentId?: Id64String): LinearlyReferencedAtLocation {\r\n return new LinearlyReferencedAtLocation(this.toProps(locatedElementId, at, fromReferentId), iModel);\r\n }\r\n\r\n /** Insert a new aspect using an explicit transaction.\r\n * @beta\r\n */\r\n public static insert(txn: EditTxn, locatedElementId: Id64String,\r\n at: DistanceExpression, fromReferentId?: Id64String): void;\r\n\r\n /** Insert a new aspect.\r\n * @deprecated in 5.1.9 - will not be removed until after 2027-05-04. Use LinearlyReferencedAtLocation.insert(txn, ...) instead, within an explicit EditTxn scope (or via withEditTxn). See EditTxn documentation for migration help.\r\n */\r\n public static insert(iModel: IModelDb, locatedElementId: Id64String,\r\n at: DistanceExpression, fromReferentId?: Id64String): void;\r\n\r\n public static insert(txnOrIModel: EditTxn | IModelDb, locatedElementId: Id64String,\r\n at: DistanceExpression, fromReferentId?: Id64String): void {\r\n const aspectProps = this.toProps(locatedElementId, at, fromReferentId);\r\n if (txnOrIModel instanceof EditTxn)\r\n txnOrIModel.insertAspect(aspectProps);\r\n else {\r\n // eslint-disable-next-line @typescript-eslint/no-deprecated -- deprecated IModelDb overload is intentionally preserved for backward compatibility.\r\n txnOrIModel.elements.insertAspect(aspectProps);\r\n }\r\n }\r\n}\r\n\r\n/** Concrete multi-aspect class carrying 'from-to' linearly-referenced positions along a Linear-Element.\r\n * @beta\r\n */\r\nexport class LinearlyReferencedFromToLocation extends LinearlyReferencedLocation {\r\n /** @internal */\r\n public static override get className(): string { return \"LinearlyReferencedFromToLocation\"; }\r\n\r\n public fromPosition: DistanceExpression;\r\n public fromPositionFromReferent?: LinearlyReferencedFromPositionRefersToReferent;\r\n public toPosition: DistanceExpression;\r\n public toPositionFromReferent?: LinearlyReferencedToPositionRefersToReferent;\r\n\r\n constructor(props: LinearlyReferencedFromToLocationAspectProps, iModel: IModelDb) {\r\n super(props, iModel);\r\n this.fromPosition = DistanceExpression.fromJSON(props.fromPosition);\r\n this.toPosition = DistanceExpression.fromJSON(props.toPosition);\r\n this.fromPositionFromReferent = RelatedElement.fromJSON(props.fromPositionFromReferent);\r\n this.toPositionFromReferent = RelatedElement.fromJSON(props.toPositionFromReferent);\r\n }\r\n\r\n private static toProps(locatedElementId: Id64String,\r\n from: DistanceExpression, to: DistanceExpression, fromReferentId?: Id64String, toReferentId?: Id64String): LinearlyReferencedFromToLocationAspectProps {\r\n const props: LinearlyReferencedFromToLocationAspectProps = {\r\n classFullName: LinearlyReferencedFromToLocation.classFullName,\r\n element: { id: locatedElementId },\r\n fromPosition: from,\r\n fromPositionFromReferent: (fromReferentId === undefined) ? undefined : new LinearlyReferencedFromPositionRefersToReferent(fromReferentId),\r\n toPosition: to,\r\n toPositionFromReferent: (toReferentId === undefined) ? undefined : new LinearlyReferencedToPositionRefersToReferent(toReferentId),\r\n };\r\n\r\n return props;\r\n }\r\n\r\n public static create(iModel: IModelDb, locatedElementId: Id64String,\r\n from: DistanceExpression, to: DistanceExpression, fromReferentId?: Id64String, toReferentId?: Id64String): LinearlyReferencedFromToLocation {\r\n return new LinearlyReferencedFromToLocation(this.toProps(locatedElementId, from, to, fromReferentId, toReferentId), iModel);\r\n }\r\n\r\n /** Insert a new aspect using an explicit transaction.\r\n * @beta\r\n */\r\n public static insert(txn: EditTxn, locatedElementId: Id64String,\r\n from: DistanceExpression, to: DistanceExpression, fromReferentId?: Id64String, toReferentId?: Id64String): void;\r\n\r\n /** Insert a new aspect.\r\n * @deprecated in 5.1.9 - will not be removed until after 2027-05-04. Use LinearlyReferencedFromToLocation.insert(txn, ...) instead, within an explicit EditTxn scope (or via withEditTxn). See EditTxn documentation for migration help.\r\n */\r\n public static insert(iModel: IModelDb, locatedElementId: Id64String,\r\n from: DistanceExpression, to: DistanceExpression, fromReferentId?: Id64String, toReferentId?: Id64String): void;\r\n\r\n public static insert(txnOrIModel: EditTxn | IModelDb, locatedElementId: Id64String,\r\n from: DistanceExpression, to: DistanceExpression, fromReferentId?: Id64String, toReferentId?: Id64String): void {\r\n const aspectProps = this.toProps(locatedElementId, from, to, fromReferentId, toReferentId);\r\n if (txnOrIModel instanceof EditTxn)\r\n txnOrIModel.insertAspect(aspectProps);\r\n else {\r\n // eslint-disable-next-line @typescript-eslint/no-deprecated -- deprecated IModelDb overload is intentionally preserved for backward compatibility.\r\n txnOrIModel.elements.insertAspect(aspectProps);\r\n }\r\n }\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"LinearReferencingElements.d.ts","sourceRoot":"","sources":["../../src/LinearReferencingElements.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAoB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAgC,OAAO,EAAiB,QAAQ,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC9I,OAAO,EAAQ,YAAY,EAAE,uBAAuB,EAAe,oBAAoB,EAAkB,MAAM,oBAAoB,CAAC;AACpI,OAAO,EACa,uBAAuB,EAAE,+BAA+B,EAC1E,iCAAiC,EAA+C,qCAAqC,EACrF,WAAW,EAAE,oBAAoB,EAClE,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,4BAA4B,EAAE,gCAAgC,EAAE,MAAM,mCAAmC,CAAC;AACnH,OAAO,EAC+D,iCAAiC,EAAE,0BAA0B,EAClI,MAAM,kCAAkC,CAAC;AAE1C;;GAEG;AACH,8BAAsB,0BAA2B,SAAQ,sBAAsB;IAC7E,gBAAgB;IAChB,WAA2B,SAAS,IAAI,MAAM,CAAyC;IAEhF,iBAAiB,CAAC,EAAE,iCAAiC,CAAC;gBAE1C,KAAK,EAAE,+BAA+B,EAAE,MAAM,EAAE,QAAQ;IAKpE,kBAAkB,IAAI,UAAU,GAAG,SAAS;CAGpD;AAED;;GAEG;AACH,8BAAsB,qBAAsB,SAAQ,sBAAuB,YAAW,mBAAmB;IACvG,gBAAgB;IAChB,WAA2B,SAAS,IAAI,MAAM,CAAoC;gBAE/D,KAAK,EAAE,uBAAuB,EAAE,MAAM,EAAE,QAAQ;IAI5D,kBAAkB,IAAI,UAAU,GAAG,SAAS;CAGpD;AAED;;GAEG;AACH,qBAAa,cAAe,SAAQ,qBAAsB,YAAW,mBAAmB;IACtF,gBAAgB;I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;AACH,MAAM,WAAW,6BAA8B,SAAQ,mBAAmB;IACxE,kBAAkB,IAAI,gCAAgC,EAAE,CAAC;IACzD,oBAAoB,CAAC,cAAc,EAAE,qCAAqC,EAAE,QAAQ,EAAE,UAAU,GAAG,IAAI,CAAC;CACzG;AAED;;GAEG;AACH,qBAAa,aAAa;IACxB;;;OAGG;WACW,oBAAoB,CAAC,MAAM,EAAE,QAAQ,EAAE,eAAe,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,GAAG,uBAAuB,EAAE;CAwBvI"}
@@ -66,28 +66,52 @@ class LinearLocation extends LinearLocationElement {
66
66
  return new LinearLocation(this.toProps(modelId, categoryId), iModel);
67
67
  }
68
68
  static insertFromTo(txnOrIModel, modelId, categoryId, linearElementId, fromToPosition, locatedElementId) {
69
- const txn = txnOrIModel instanceof core_backend_1.EditTxn ? txnOrIModel : txnOrIModel[core_backend_1._implicitTxn];
70
- const newId = LinearlyLocated.insertFromTo(txn, this.toProps(modelId, categoryId), linearElementId, fromToPosition);
71
- LinearReferencingRelationships_1.ILinearLocationLocatesElement.insert(txn, newId, locatedElementId);
72
- return newId;
69
+ if (txnOrIModel instanceof core_backend_1.EditTxn) {
70
+ const newId = LinearlyLocated.insertFromTo(txnOrIModel, this.toProps(modelId, categoryId), linearElementId, fromToPosition);
71
+ LinearReferencingRelationships_1.ILinearLocationLocatesElement.insert(txnOrIModel, newId, locatedElementId);
72
+ return newId;
73
+ }
74
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- deprecated IModelDb overload is intentionally preserved for backward compatibility.
75
+ const iModelNewId = LinearlyLocated.insertFromTo(txnOrIModel, this.toProps(modelId, categoryId), linearElementId, fromToPosition);
76
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- deprecated IModelDb overload is intentionally preserved for backward compatibility.
77
+ LinearReferencingRelationships_1.ILinearLocationLocatesElement.insert(txnOrIModel, iModelNewId, locatedElementId);
78
+ return iModelNewId;
73
79
  }
74
80
  insertFromTo(txnOrIModel, linearElementId, fromToPosition, locatedElementId) {
75
- const txn = txnOrIModel instanceof core_backend_1.EditTxn ? txnOrIModel : txnOrIModel[core_backend_1._implicitTxn];
76
- const newId = LinearlyLocated.insertFromTo(txn, this.toJSON(), linearElementId, fromToPosition);
77
- LinearReferencingRelationships_1.ILinearLocationLocatesElement.insert(txn, newId, locatedElementId);
78
- return newId;
81
+ if (txnOrIModel instanceof core_backend_1.EditTxn) {
82
+ const newId = LinearlyLocated.insertFromTo(txnOrIModel, this.toJSON(), linearElementId, fromToPosition);
83
+ LinearReferencingRelationships_1.ILinearLocationLocatesElement.insert(txnOrIModel, newId, locatedElementId);
84
+ return newId;
85
+ }
86
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- deprecated IModelDb overload is intentionally preserved for backward compatibility.
87
+ const iModelNewId = LinearlyLocated.insertFromTo(txnOrIModel, this.toJSON(), linearElementId, fromToPosition);
88
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- deprecated IModelDb overload is intentionally preserved for backward compatibility.
89
+ LinearReferencingRelationships_1.ILinearLocationLocatesElement.insert(txnOrIModel, iModelNewId, locatedElementId);
90
+ return iModelNewId;
79
91
  }
80
92
  static insertAt(txnOrIModel, modelId, categoryId, linearElementId, atPosition, locatedElementId) {
81
- const txn = txnOrIModel instanceof core_backend_1.EditTxn ? txnOrIModel : txnOrIModel[core_backend_1._implicitTxn];
82
- const newId = LinearlyLocated.insertAt(txn, this.toProps(modelId, categoryId), linearElementId, atPosition);
83
- LinearReferencingRelationships_1.ILinearLocationLocatesElement.insert(txn, newId, locatedElementId);
84
- return newId;
93
+ if (txnOrIModel instanceof core_backend_1.EditTxn) {
94
+ const newId = LinearlyLocated.insertAt(txnOrIModel, this.toProps(modelId, categoryId), linearElementId, atPosition);
95
+ LinearReferencingRelationships_1.ILinearLocationLocatesElement.insert(txnOrIModel, newId, locatedElementId);
96
+ return newId;
97
+ }
98
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- deprecated IModelDb overload is intentionally preserved for backward compatibility.
99
+ const iModelNewId = LinearlyLocated.insertAt(txnOrIModel, this.toProps(modelId, categoryId), linearElementId, atPosition);
100
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- deprecated IModelDb overload is intentionally preserved for backward compatibility.
101
+ LinearReferencingRelationships_1.ILinearLocationLocatesElement.insert(txnOrIModel, iModelNewId, locatedElementId);
102
+ return iModelNewId;
85
103
  }
86
104
  insertAt(txnOrIModel, linearElementId, atPosition, locatedElementId) {
87
- const txn = txnOrIModel instanceof core_backend_1.EditTxn ? txnOrIModel : txnOrIModel[core_backend_1._implicitTxn];
88
- const newId = LinearlyLocated.insertAt(txn, this.toJSON(), linearElementId, atPosition);
89
- LinearReferencingRelationships_1.ILinearLocationLocatesElement.insert(txn, newId, locatedElementId);
90
- return newId;
105
+ if (txnOrIModel instanceof core_backend_1.EditTxn) {
106
+ const newId = LinearlyLocated.insertAt(txnOrIModel, this.toJSON(), linearElementId, atPosition);
107
+ LinearReferencingRelationships_1.ILinearLocationLocatesElement.insert(txnOrIModel, newId, locatedElementId);
108
+ return newId;
109
+ }
110
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- deprecated IModelDb overload is intentionally preserved for backward compatibility.
111
+ const iModelNewId = LinearlyLocated.insertAt(txnOrIModel, this.toJSON(), linearElementId, atPosition);
112
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- deprecated IModelDb overload is intentionally preserved for backward compatibility.
113
+ LinearReferencingRelationships_1.ILinearLocationLocatesElement.insert(txnOrIModel, iModelNewId, locatedElementId);
114
+ return iModelNewId;
91
115
  }
92
116
  }
93
117
  exports.LinearLocation = LinearLocation;
@@ -141,12 +165,16 @@ class Referent extends ReferentElement {
141
165
  return new Referent(this.toProps(modelId, categoryId, referencedElementId), iModel);
142
166
  }
143
167
  static insertAt(txnOrIModel, modelId, categoryId, linearElementId, atPosition, referencedElementId) {
144
- const txn = txnOrIModel instanceof core_backend_1.EditTxn ? txnOrIModel : txnOrIModel[core_backend_1._implicitTxn];
145
- return LinearlyLocated.insertAt(txn, this.toProps(modelId, categoryId, referencedElementId), linearElementId, atPosition);
168
+ if (txnOrIModel instanceof core_backend_1.EditTxn)
169
+ return LinearlyLocated.insertAt(txnOrIModel, this.toProps(modelId, categoryId, referencedElementId), linearElementId, atPosition);
170
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- deprecated IModelDb overload is intentionally preserved for backward compatibility.
171
+ return LinearlyLocated.insertAt(txnOrIModel, this.toProps(modelId, categoryId, referencedElementId), linearElementId, atPosition);
146
172
  }
147
173
  insertAt(txnOrIModel, linearElementId, atPosition) {
148
- const txn = txnOrIModel instanceof core_backend_1.EditTxn ? txnOrIModel : txnOrIModel[core_backend_1._implicitTxn];
149
- return LinearlyLocated.insertAt(txn, this.toJSON(), linearElementId, atPosition);
174
+ if (txnOrIModel instanceof core_backend_1.EditTxn)
175
+ return LinearlyLocated.insertAt(txnOrIModel, this.toJSON(), linearElementId, atPosition);
176
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- deprecated IModelDb overload is intentionally preserved for backward compatibility.
177
+ return LinearlyLocated.insertAt(txnOrIModel, this.toJSON(), linearElementId, atPosition);
150
178
  }
151
179
  }
152
180
  exports.Referent = Referent;
@@ -422,22 +450,39 @@ class QueryLinearLocationsECSQLGen {
422
450
  * @beta
423
451
  */
424
452
  class LinearlyLocated {
425
- static insertBasic(txn, elProps, linearElementId) {
426
- const newId = txn.insertElement(elProps);
427
- const linearlyLocatedAlongLinearElement = LinearReferencingRelationships_1.ILinearlyLocatedAlongILinearElement.create(txn.iModel, newId, linearElementId);
428
- linearlyLocatedAlongLinearElement.insert(txn);
453
+ static insertBasic(txnOrIModel, elProps, linearElementId) {
454
+ const newId = txnOrIModel instanceof core_backend_1.EditTxn
455
+ ? txnOrIModel.insertElement(elProps)
456
+ : (() => {
457
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- deprecated IModelDb overload is intentionally preserved for backward compatibility.
458
+ return txnOrIModel.elements.insertElement(elProps);
459
+ })();
460
+ if (txnOrIModel instanceof core_backend_1.EditTxn)
461
+ LinearReferencingRelationships_1.ILinearlyLocatedAlongILinearElement.insert(txnOrIModel, newId, linearElementId);
462
+ else {
463
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- deprecated IModelDb overload is intentionally preserved for backward compatibility.
464
+ LinearReferencingRelationships_1.ILinearlyLocatedAlongILinearElement.insert(txnOrIModel, newId, linearElementId);
465
+ }
429
466
  return newId;
430
467
  }
431
468
  static insertAt(txnOrIModel, elProps, linearElementId, atPosition) {
432
- const txn = txnOrIModel instanceof core_backend_1.EditTxn ? txnOrIModel : txnOrIModel[core_backend_1._implicitTxn];
433
- const newId = this.insertBasic(txn, elProps, linearElementId);
434
- LinearReferencingElementAspects_1.LinearlyReferencedAtLocation.insert(txn, newId, atPosition.atPosition, atPosition.fromReferent === undefined ? undefined : atPosition.fromReferent.id);
469
+ const newId = this.insertBasic(txnOrIModel, elProps, linearElementId);
470
+ if (txnOrIModel instanceof core_backend_1.EditTxn)
471
+ LinearReferencingElementAspects_1.LinearlyReferencedAtLocation.insert(txnOrIModel, newId, atPosition.atPosition, atPosition.fromReferent === undefined ? undefined : atPosition.fromReferent.id);
472
+ else {
473
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- deprecated IModelDb overload is intentionally preserved for backward compatibility.
474
+ LinearReferencingElementAspects_1.LinearlyReferencedAtLocation.insert(txnOrIModel, newId, atPosition.atPosition, atPosition.fromReferent === undefined ? undefined : atPosition.fromReferent.id);
475
+ }
435
476
  return newId;
436
477
  }
437
478
  static insertFromTo(txnOrIModel, elProps, linearElementId, fromToPosition) {
438
- const txn = txnOrIModel instanceof core_backend_1.EditTxn ? txnOrIModel : txnOrIModel[core_backend_1._implicitTxn];
439
- const newId = this.insertBasic(txn, elProps, linearElementId);
440
- LinearReferencingElementAspects_1.LinearlyReferencedFromToLocation.insert(txn, newId, fromToPosition.fromPosition, fromToPosition.toPosition, fromToPosition.fromPositionFromReferent === undefined ? undefined : fromToPosition.fromPositionFromReferent.id, fromToPosition.toPositionFromReferent === undefined ? undefined : fromToPosition.toPositionFromReferent.id);
479
+ const newId = this.insertBasic(txnOrIModel, elProps, linearElementId);
480
+ if (txnOrIModel instanceof core_backend_1.EditTxn)
481
+ LinearReferencingElementAspects_1.LinearlyReferencedFromToLocation.insert(txnOrIModel, newId, fromToPosition.fromPosition, fromToPosition.toPosition, fromToPosition.fromPositionFromReferent === undefined ? undefined : fromToPosition.fromPositionFromReferent.id, fromToPosition.toPositionFromReferent === undefined ? undefined : fromToPosition.toPositionFromReferent.id);
482
+ else {
483
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- deprecated IModelDb overload is intentionally preserved for backward compatibility.
484
+ LinearReferencingElementAspects_1.LinearlyReferencedFromToLocation.insert(txnOrIModel, newId, fromToPosition.fromPosition, fromToPosition.toPosition, fromToPosition.fromPositionFromReferent === undefined ? undefined : fromToPosition.fromPositionFromReferent.id, fromToPosition.toPositionFromReferent === undefined ? undefined : fromToPosition.toPositionFromReferent.id);
485
+ }
441
486
  return newId;
442
487
  }
443
488
  static getLinearLocations(iModel, linearlyLocatedElementId, fullClassName) {
@@ -486,8 +531,7 @@ class LinearlyLocated {
486
531
  }
487
532
  }
488
533
  static updateAtLocation(txnOrIModel, linearlyLocatedElementId, linearLocationProps, aspectId) {
489
- const txn = txnOrIModel instanceof core_backend_1.EditTxn ? txnOrIModel : txnOrIModel[core_backend_1._implicitTxn];
490
- const iModel = txn.iModel;
534
+ const iModel = txnOrIModel instanceof core_backend_1.EditTxn ? txnOrIModel.iModel : txnOrIModel;
491
535
  let linearLocAspectId;
492
536
  if (aspectId !== undefined)
493
537
  linearLocAspectId = aspectId;
@@ -504,11 +548,15 @@ class LinearlyLocated {
504
548
  atPosition: linearLocationProps.atPosition,
505
549
  fromReferent: linearLocationProps.fromReferent,
506
550
  };
507
- txn.updateAspect(linearLocationAspectProps);
551
+ if (txnOrIModel instanceof core_backend_1.EditTxn)
552
+ txnOrIModel.updateAspect(linearLocationAspectProps);
553
+ else {
554
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- deprecated IModelDb overload is intentionally preserved for backward compatibility.
555
+ txnOrIModel.elements.updateAspect(linearLocationAspectProps);
556
+ }
508
557
  }
509
558
  static updateFromToLocation(txnOrIModel, linearlyLocatedElementId, linearLocationProps, aspectId) {
510
- const txn = txnOrIModel instanceof core_backend_1.EditTxn ? txnOrIModel : txnOrIModel[core_backend_1._implicitTxn];
511
- const iModel = txn.iModel;
559
+ const iModel = txnOrIModel instanceof core_backend_1.EditTxn ? txnOrIModel.iModel : txnOrIModel;
512
560
  let linearLocAspectId;
513
561
  if (aspectId !== undefined)
514
562
  linearLocAspectId = aspectId;
@@ -527,7 +575,12 @@ class LinearlyLocated {
527
575
  toPosition: linearLocationProps.toPosition,
528
576
  toPositionFromReferent: linearLocationProps.toPositionFromReferent,
529
577
  };
530
- txn.updateAspect(linearLocationAspectProps);
578
+ if (txnOrIModel instanceof core_backend_1.EditTxn)
579
+ txnOrIModel.updateAspect(linearLocationAspectProps);
580
+ else {
581
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- deprecated IModelDb overload is intentionally preserved for backward compatibility.
582
+ txnOrIModel.elements.updateAspect(linearLocationAspectProps);
583
+ }
531
584
  }
532
585
  /** Query for the Id of the Linear-Element along which the specified LinearlyLocated Element is located.
533
586
  * @param iModel The iModel to query from.