@itwin/linear-referencing-backend 5.0.0-dev.11 → 5.0.0-dev.111

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.
Files changed (40) hide show
  1. package/CHANGELOG.md +71 -1
  2. package/lib/cjs/LinearReferencingElementAspects.d.ts +1 -1
  3. package/lib/cjs/LinearReferencingElementAspects.d.ts.map +1 -1
  4. package/lib/cjs/LinearReferencingElementAspects.js +14 -4
  5. package/lib/cjs/LinearReferencingElementAspects.js.map +1 -1
  6. package/lib/cjs/LinearReferencingElements.d.ts +2 -2
  7. package/lib/cjs/LinearReferencingElements.d.ts.map +1 -1
  8. package/lib/cjs/LinearReferencingElements.js +17 -10
  9. package/lib/cjs/LinearReferencingElements.js.map +1 -1
  10. package/lib/cjs/LinearReferencingRelationships.js +6 -6
  11. package/lib/cjs/LinearReferencingRelationships.js.map +1 -1
  12. package/lib/cjs/LinearReferencingSchema.d.ts +4 -0
  13. package/lib/cjs/LinearReferencingSchema.d.ts.map +1 -1
  14. package/lib/cjs/LinearReferencingSchema.js +8 -4
  15. package/lib/cjs/LinearReferencingSchema.js.map +1 -1
  16. package/lib/cjs/linear-referencing-backend.d.ts +4 -4
  17. package/lib/cjs/linear-referencing-backend.d.ts.map +1 -1
  18. package/lib/cjs/linear-referencing-backend.js +4 -4
  19. package/lib/cjs/linear-referencing-backend.js.map +1 -1
  20. package/lib/esm/LinearReferencingElementAspects.d.ts +54 -0
  21. package/lib/esm/LinearReferencingElementAspects.d.ts.map +1 -0
  22. package/lib/esm/LinearReferencingElementAspects.js +99 -0
  23. package/lib/esm/LinearReferencingElementAspects.js.map +1 -0
  24. package/lib/esm/LinearReferencingElements.d.ts +202 -0
  25. package/lib/esm/LinearReferencingElements.d.ts.map +1 -0
  26. package/lib/esm/LinearReferencingElements.js +606 -0
  27. package/lib/esm/LinearReferencingElements.js.map +1 -0
  28. package/lib/esm/LinearReferencingRelationships.d.ts +63 -0
  29. package/lib/esm/LinearReferencingRelationships.d.ts.map +1 -0
  30. package/lib/esm/LinearReferencingRelationships.js +78 -0
  31. package/lib/esm/LinearReferencingRelationships.js.map +1 -0
  32. package/lib/esm/LinearReferencingSchema.d.ts +18 -0
  33. package/lib/esm/LinearReferencingSchema.d.ts.map +1 -0
  34. package/lib/esm/LinearReferencingSchema.js +34 -0
  35. package/lib/esm/LinearReferencingSchema.js.map +1 -0
  36. package/lib/esm/linear-referencing-backend.d.ts +11 -0
  37. package/lib/esm/linear-referencing-backend.d.ts.map +1 -0
  38. package/lib/esm/linear-referencing-backend.js +15 -0
  39. package/lib/esm/linear-referencing-backend.js.map +1 -0
  40. package/package.json +29 -22
package/CHANGELOG.md CHANGED
@@ -1,6 +1,76 @@
1
1
  # Change Log - @itwin/linear-referencing-backend
2
2
 
3
- This log was last generated on Thu, 14 Nov 2024 18:13:56 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 30 Apr 2025 13:14:48 GMT and should not be manually modified.
4
+
5
+ ## 4.11.1
6
+ Wed, 30 Apr 2025 13:13:21 GMT
7
+
8
+ _Version update only_
9
+
10
+ ## 4.11.0
11
+ Wed, 16 Apr 2025 15:50:28 GMT
12
+
13
+ _Version update only_
14
+
15
+ ## 4.10.13
16
+ Thu, 10 Apr 2025 17:47:21 GMT
17
+
18
+ _Version update only_
19
+
20
+ ## 4.10.12
21
+ Wed, 02 Apr 2025 19:35:47 GMT
22
+
23
+ _Version update only_
24
+
25
+ ## 4.10.11
26
+ Wed, 19 Mar 2025 15:30:39 GMT
27
+
28
+ _Version update only_
29
+
30
+ ## 4.10.10
31
+ Tue, 11 Mar 2025 15:25:11 GMT
32
+
33
+ _Version update only_
34
+
35
+ ## 4.10.9
36
+ Tue, 11 Mar 2025 05:17:33 GMT
37
+
38
+ _Version update only_
39
+
40
+ ## 4.10.8
41
+ Thu, 06 Mar 2025 14:13:37 GMT
42
+
43
+ _Version update only_
44
+
45
+ ## 4.10.7
46
+ Tue, 18 Feb 2025 17:27:03 GMT
47
+
48
+ _Version update only_
49
+
50
+ ## 4.10.6
51
+ Fri, 24 Jan 2025 08:02:40 GMT
52
+
53
+ _Version update only_
54
+
55
+ ## 4.10.5
56
+ Tue, 21 Jan 2025 21:56:45 GMT
57
+
58
+ _Version update only_
59
+
60
+ ## 4.10.4
61
+ Mon, 13 Jan 2025 14:06:43 GMT
62
+
63
+ _Version update only_
64
+
65
+ ## 4.10.3
66
+ Mon, 06 Jan 2025 14:00:13 GMT
67
+
68
+ _Version update only_
69
+
70
+ ## 4.10.2
71
+ Thu, 21 Nov 2024 15:22:20 GMT
72
+
73
+ _Version update only_
4
74
 
5
75
  ## 4.10.1
6
76
  Thu, 14 Nov 2024 18:11:00 GMT
@@ -4,7 +4,7 @@
4
4
  import { Id64String } from "@itwin/core-bentley";
5
5
  import { ElementMultiAspect, IModelDb } from "@itwin/core-backend";
6
6
  import { DistanceExpressionProps, LinearlyReferencedAtLocationAspectProps, LinearlyReferencedFromToLocationAspectProps } from "@itwin/linear-referencing-common";
7
- import { LinearlyReferencedAtPositionRefersToReferent, LinearlyReferencedFromPositionRefersToReferent, LinearlyReferencedToPositionRefersToReferent } from "./LinearReferencingRelationships";
7
+ import { LinearlyReferencedAtPositionRefersToReferent, LinearlyReferencedFromPositionRefersToReferent, LinearlyReferencedToPositionRefersToReferent } from "./LinearReferencingRelationships.js";
8
8
  /** Core structure carrying linearly-referenced information.
9
9
  * @beta
10
10
  */
@@ -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,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEnE,OAAO,EACL,uBAAuB,EAAE,uCAAuC,EAAE,2CAA2C,EAC9G,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,4CAA4C,EA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AAE,kBAAkB,EAAE,cAAc,CAAC,EAAE,UAAU,EAAE,YAAY,CAAC,EAAE,UAAU,GAAG,IAAI;CAGlH"}
@@ -11,11 +11,15 @@ exports.LinearlyReferencedFromToLocation = exports.LinearlyReferencedAtLocation
11
11
  const core_bentley_1 = require("@itwin/core-bentley");
12
12
  const core_backend_1 = require("@itwin/core-backend");
13
13
  const core_common_1 = require("@itwin/core-common");
14
- const LinearReferencingRelationships_1 = require("./LinearReferencingRelationships");
14
+ const LinearReferencingRelationships_js_1 = require("./LinearReferencingRelationships.js");
15
15
  /** Core structure carrying linearly-referenced information.
16
16
  * @beta
17
17
  */
18
18
  class DistanceExpression {
19
+ distanceAlongFromStart;
20
+ lateralOffsetFromILinearElement;
21
+ verticalOffsetFromILinearElement;
22
+ distanceAlongFromReferent;
19
23
  constructor(props) {
20
24
  this.distanceAlongFromStart = core_bentley_1.JsonUtils.asDouble(props.distanceAlongFromStart);
21
25
  this.lateralOffsetFromILinearElement = core_bentley_1.JsonUtils.asDouble(props.lateralOffsetFromILinearElement);
@@ -39,6 +43,8 @@ exports.LinearlyReferencedLocation = LinearlyReferencedLocation;
39
43
  class LinearlyReferencedAtLocation extends LinearlyReferencedLocation {
40
44
  /** @internal */
41
45
  static get className() { return "LinearlyReferencedAtLocation"; }
46
+ atPosition;
47
+ fromReferent;
42
48
  constructor(props, iModel) {
43
49
  super(props, iModel);
44
50
  this.atPosition = DistanceExpression.fromJSON(props.atPosition);
@@ -49,7 +55,7 @@ class LinearlyReferencedAtLocation extends LinearlyReferencedLocation {
49
55
  classFullName: LinearlyReferencedAtLocation.classFullName,
50
56
  element: { id: locatedElementId },
51
57
  atPosition: at,
52
- fromReferent: (fromReferentId === undefined) ? undefined : new LinearReferencingRelationships_1.LinearlyReferencedAtPositionRefersToReferent(fromReferentId),
58
+ fromReferent: (fromReferentId === undefined) ? undefined : new LinearReferencingRelationships_js_1.LinearlyReferencedAtPositionRefersToReferent(fromReferentId),
53
59
  };
54
60
  return props;
55
61
  }
@@ -67,6 +73,10 @@ exports.LinearlyReferencedAtLocation = LinearlyReferencedAtLocation;
67
73
  class LinearlyReferencedFromToLocation extends LinearlyReferencedLocation {
68
74
  /** @internal */
69
75
  static get className() { return "LinearlyReferencedFromToLocation"; }
76
+ fromPosition;
77
+ fromPositionFromReferent;
78
+ toPosition;
79
+ toPositionFromReferent;
70
80
  constructor(props, iModel) {
71
81
  super(props, iModel);
72
82
  this.fromPosition = DistanceExpression.fromJSON(props.fromPosition);
@@ -79,9 +89,9 @@ class LinearlyReferencedFromToLocation extends LinearlyReferencedLocation {
79
89
  classFullName: LinearlyReferencedFromToLocation.classFullName,
80
90
  element: { id: locatedElementId },
81
91
  fromPosition: from,
82
- fromPositionFromReferent: (fromReferentId === undefined) ? undefined : new LinearReferencingRelationships_1.LinearlyReferencedFromPositionRefersToReferent(fromReferentId),
92
+ fromPositionFromReferent: (fromReferentId === undefined) ? undefined : new LinearReferencingRelationships_js_1.LinearlyReferencedFromPositionRefersToReferent(fromReferentId),
83
93
  toPosition: to,
84
- toPositionFromReferent: (toReferentId === undefined) ? undefined : new LinearReferencingRelationships_1.LinearlyReferencedToPositionRefersToReferent(toReferentId),
94
+ toPositionFromReferent: (toReferentId === undefined) ? undefined : new LinearReferencingRelationships_js_1.LinearlyReferencedToPositionRefersToReferent(toReferentId),
85
95
  };
86
96
  return props;
87
97
  }
@@ -1 +1 @@
1
- {"version":3,"file":"LinearReferencingElementAspects.js","sourceRoot":"","sources":["../../src/LinearReferencingElementAspects.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAA4D;AAC5D,sDAAmE;AACnE,oDAAoD;AAIpD,qFAE0C;AAE1C;;GAEG;AACH,MAAa,kBAAkB;IAM7B,YAAY,KAA8B;QACxC,IAAI,CAAC,sBAAsB,GAAG,wBAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAC/E,IAAI,CAAC,+BAA+B,GAAG,wB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,EAAE,EAAE,EAAE,EAAE,gBAAgB,EAAE;YACjC,YAAY,EAAE,IAAI;YAClB,wBAAwB,EAAE,CAAC,cAAc,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,+EAA8C,CAAC,cAAc,CAAC;YACzI,UAAU,EAAE,EAAE;YACd,sBAAsB,EAAE,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;IAEM,MAAM,CAAC,MAAM,CAAC,MAAgB,EAAE,gBAA4B,EACjE,IAAwB,EAAE,EAAsB,EAAE,cAA2B,EAAE,YAAyB;QACxG,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE,IAAI,EAAE,EAAE,EAAE,cAAc,EAAE,YAAY,CAAC,CAAC,CAAC;IACvG,CAAC;CACF;AAxCD,4EAwCC","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 { 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 public static insert(iModel: IModelDb, locatedElementId: Id64String,\r\n at: DistanceExpression, fromReferentId?: Id64String): void {\r\n iModel.elements.insertAspect(this.toProps(locatedElementId, at, fromReferentId));\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 public static insert(iModel: IModelDb, locatedElementId: Id64String,\r\n from: DistanceExpression, to: DistanceExpression, fromReferentId?: Id64String, toReferentId?: Id64String): void {\r\n iModel.elements.insertAspect(this.toProps(locatedElementId, from, to, fromReferentId, toReferentId));\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"LinearReferencingElementAspects.js","sourceRoot":"","sources":["../../src/LinearReferencingElementAspects.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAA4D;AAC5D,sDAAmE;AACnE,oDAAoD;AAIpD,2FAE6C;AAE7C;;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,g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ACzD,aAAa,EAAE,gCAAgC,CAAC,aAAa;YAC7D,OAAO,EAAE,EAAE,EAAE,EAAE,gBAAgB,EAAE;YACjC,YAAY,EAAE,IAAI;YAClB,wBAAwB,EAAE,CAAC,cAAc,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,kFAA8C,CAAC,cAAc,CAAC;YACzI,UAAU,EAAE,EAAE;YACd,sBAAsB,EAAE,CAAC,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,gFAA4C,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;IAEM,MAAM,CAAC,MAAM,CAAC,MAAgB,EAAE,gBAA4B,EACjE,IAAwB,EAAE,EAAsB,EAAE,cAA2B,EAAE,YAAyB;QACxG,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE,IAAI,EAAE,EAAE,EAAE,cAAc,EAAE,YAAY,CAAC,CAAC,CAAC;IACvG,CAAC;CACF;AAxCD,4EAwCC","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 { 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.js\";\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 public static insert(iModel: IModelDb, locatedElementId: Id64String,\n at: DistanceExpression, fromReferentId?: Id64String): void {\n iModel.elements.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 public static insert(iModel: IModelDb, locatedElementId: Id64String,\n from: DistanceExpression, to: DistanceExpression, fromReferentId?: Id64String, toReferentId?: Id64String): void {\n iModel.elements.insertAspect(this.toProps(locatedElementId, from, to, fromReferentId, toReferentId));\n }\n}\n"]}
@@ -5,8 +5,8 @@ import { Id64String } from "@itwin/core-bentley";
5
5
  import { IModelDb, PhysicalElement, SpatialLocationElement } from "@itwin/core-backend";
6
6
  import { ElementProps, GeometricElement3dProps, PhysicalElementProps } from "@itwin/core-common";
7
7
  import { LinearLocationReference, LinearlyLocatedAttributionProps, LinearlyReferencedAtLocationProps, LinearlyReferencedFromToLocationProps, QueryParams, ReferentElementProps } from "@itwin/linear-referencing-common";
8
- import { LinearlyReferencedAtLocation, LinearlyReferencedFromToLocation } from "./LinearReferencingElementAspects";
9
- import { ILinearlyLocatedAttributesElement, IReferentReferencesElement } from "./LinearReferencingRelationships";
8
+ import { LinearlyReferencedAtLocation, LinearlyReferencedFromToLocation } from "./LinearReferencingElementAspects.js";
9
+ import { ILinearlyLocatedAttributesElement, IReferentReferencesElement } from "./LinearReferencingRelationships.js";
10
10
  /** Base class for Spatial Location Element subclasses representing properties whose value is located along a Linear-Element and only applies to a portion of an Element.
11
11
  * @beta
12
12
  */
@@ -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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AI,CAAC;CACjG;AAED;;;;GAIG;AACH,MAAM,WAAW,2BAA4B,SAAQ,mBAAmB;IACtE,iBAAiB,IAAI,gCAAgC,GAAG,SAAS,CAAC;IAClE,oBAAoB,CAAC,cAAc,EAAE,qCAAqC,EAAE,QAAQ,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;CAC1G;AAED;;;;GAIG;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"}
@@ -12,14 +12,15 @@ const core_bentley_1 = require("@itwin/core-bentley");
12
12
  const core_backend_1 = require("@itwin/core-backend");
13
13
  const core_common_1 = require("@itwin/core-common");
14
14
  const linear_referencing_common_1 = require("@itwin/linear-referencing-common");
15
- const LinearReferencingElementAspects_1 = require("./LinearReferencingElementAspects");
16
- const LinearReferencingRelationships_1 = require("./LinearReferencingRelationships");
15
+ const LinearReferencingElementAspects_js_1 = require("./LinearReferencingElementAspects.js");
16
+ const LinearReferencingRelationships_js_1 = require("./LinearReferencingRelationships.js");
17
17
  /** Base class for Spatial Location Element subclasses representing properties whose value is located along a Linear-Element and only applies to a portion of an Element.
18
18
  * @beta
19
19
  */
20
20
  class LinearlyLocatedAttribution extends core_backend_1.SpatialLocationElement {
21
21
  /** @internal */
22
22
  static get className() { return "LinearlyLocatedAttribution"; }
23
+ attributedElement;
23
24
  constructor(props, iModel) {
24
25
  super(props, iModel);
25
26
  this.attributedElement = core_common_1.RelatedElement.fromJSON(props.attributedElement);
@@ -66,22 +67,22 @@ class LinearLocation extends LinearLocationElement {
66
67
  }
67
68
  static insertFromTo(iModel, modelId, categoryId, linearElementId, fromToPosition, locatedElementId) {
68
69
  const newId = LinearlyLocated.insertFromTo(iModel, this.toProps(modelId, categoryId), linearElementId, fromToPosition);
69
- LinearReferencingRelationships_1.ILinearLocationLocatesElement.insert(iModel, newId, locatedElementId);
70
+ LinearReferencingRelationships_js_1.ILinearLocationLocatesElement.insert(iModel, newId, locatedElementId);
70
71
  return newId;
71
72
  }
72
73
  insertFromTo(iModel, linearElementId, fromToPosition, locatedElementId) {
73
74
  const newId = LinearlyLocated.insertFromTo(iModel, this.toJSON(), linearElementId, fromToPosition);
74
- LinearReferencingRelationships_1.ILinearLocationLocatesElement.insert(iModel, newId, locatedElementId);
75
+ LinearReferencingRelationships_js_1.ILinearLocationLocatesElement.insert(iModel, newId, locatedElementId);
75
76
  return newId;
76
77
  }
77
78
  static insertAt(iModel, modelId, categoryId, linearElementId, atPosition, locatedElementId) {
78
79
  const newId = LinearlyLocated.insertAt(iModel, this.toProps(modelId, categoryId), linearElementId, atPosition);
79
- LinearReferencingRelationships_1.ILinearLocationLocatesElement.insert(iModel, newId, locatedElementId);
80
+ LinearReferencingRelationships_js_1.ILinearLocationLocatesElement.insert(iModel, newId, locatedElementId);
80
81
  return newId;
81
82
  }
82
83
  insertAt(iModel, linearElementId, atPosition, locatedElementId) {
83
84
  const newId = LinearlyLocated.insertAt(iModel, this.toJSON(), linearElementId, atPosition);
84
- LinearReferencingRelationships_1.ILinearLocationLocatesElement.insert(iModel, newId, locatedElementId);
85
+ LinearReferencingRelationships_js_1.ILinearLocationLocatesElement.insert(iModel, newId, locatedElementId);
85
86
  return newId;
86
87
  }
87
88
  }
@@ -103,6 +104,7 @@ exports.LinearPhysicalElement = LinearPhysicalElement;
103
104
  class ReferentElement extends core_backend_1.SpatialLocationElement {
104
105
  /** @internal */
105
106
  static get className() { return "ReferentElement"; }
107
+ referencedElement;
106
108
  constructor(props, iModel) {
107
109
  super(props, iModel);
108
110
  this.referencedElement = core_common_1.RelatedElement.fromJSON(props.referencedElement);
@@ -127,7 +129,7 @@ class Referent extends ReferentElement {
127
129
  category: categoryId,
128
130
  model: modelId,
129
131
  code: core_common_1.Code.createEmpty(),
130
- referencedElement: new LinearReferencingRelationships_1.IReferentReferencesElement(referencedElementId),
132
+ referencedElement: new LinearReferencingRelationships_js_1.IReferentReferencesElement(referencedElementId),
131
133
  };
132
134
  return props;
133
135
  }
@@ -317,6 +319,8 @@ class AtECSQLGenImpl extends ECSQLGenImpl {
317
319
  }
318
320
  }
319
321
  class QueryLinearLocationsECSQLGen {
322
+ _params;
323
+ _ecSql;
320
324
  _addSelectClause(impl) {
321
325
  let select = "SELECT ";
322
326
  if (impl.selectDistinct())
@@ -414,7 +418,7 @@ class QueryLinearLocationsECSQLGen {
414
418
  class LinearlyLocated {
415
419
  static insertBasic(iModel, elProps, linearElementId) {
416
420
  const newId = iModel.elements.insertElement(elProps);
417
- const linearlyLocatedAlongLinearElement = LinearReferencingRelationships_1.ILinearlyLocatedAlongILinearElement.create(iModel, newId, linearElementId);
421
+ const linearlyLocatedAlongLinearElement = LinearReferencingRelationships_js_1.ILinearlyLocatedAlongILinearElement.create(iModel, newId, linearElementId);
418
422
  linearlyLocatedAlongLinearElement.insert();
419
423
  return newId;
420
424
  }
@@ -428,7 +432,7 @@ class LinearlyLocated {
428
432
  */
429
433
  static insertAt(iModel, elProps, linearElementId, atPosition) {
430
434
  const newId = this.insertBasic(iModel, elProps, linearElementId);
431
- LinearReferencingElementAspects_1.LinearlyReferencedAtLocation.insert(iModel, newId, atPosition.atPosition, (atPosition.fromReferent === undefined) ? undefined : atPosition.fromReferent.id);
435
+ LinearReferencingElementAspects_js_1.LinearlyReferencedAtLocation.insert(iModel, newId, atPosition.atPosition, (atPosition.fromReferent === undefined) ? undefined : atPosition.fromReferent.id);
432
436
  return newId;
433
437
  }
434
438
  /** Insert a new LinearlyLocated element into an iModel at a specific from-to location along an existing Linear-Element.
@@ -441,7 +445,7 @@ class LinearlyLocated {
441
445
  */
442
446
  static insertFromTo(iModel, elProps, linearElementId, fromToPosition) {
443
447
  const newId = this.insertBasic(iModel, elProps, linearElementId);
444
- LinearReferencingElementAspects_1.LinearlyReferencedFromToLocation.insert(iModel, newId, fromToPosition.fromPosition, fromToPosition.toPosition, (fromToPosition.fromPositionFromReferent === undefined) ? undefined : fromToPosition.fromPositionFromReferent.id, (fromToPosition.toPositionFromReferent === undefined) ? undefined : fromToPosition.toPositionFromReferent.id);
448
+ LinearReferencingElementAspects_js_1.LinearlyReferencedFromToLocation.insert(iModel, newId, fromToPosition.fromPosition, fromToPosition.toPosition, (fromToPosition.fromPositionFromReferent === undefined) ? undefined : fromToPosition.fromPositionFromReferent.id, (fromToPosition.toPositionFromReferent === undefined) ? undefined : fromToPosition.toPositionFromReferent.id);
445
449
  return newId;
446
450
  }
447
451
  static getLinearLocations(iModel, linearlyLocatedElementId, fullClassName) {
@@ -457,6 +461,7 @@ class LinearlyLocated {
457
461
  }
458
462
  static queryFirstLinearLocationAspectId(iModel, linearlyLocatedElementId, className) {
459
463
  let aspectId;
464
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
460
465
  iModel.withPreparedStatement(`SELECT ECInstanceId FROM LinearReferencing.${className} WHERE Element.Id=? LIMIT 1`, (stmt) => {
461
466
  stmt.bindId(1, linearlyLocatedElementId);
462
467
  if (stmt.step() === core_bentley_1.DbResult.BE_SQLITE_ROW)
@@ -543,6 +548,7 @@ class LinearlyLocated {
543
548
  */
544
549
  static getLinearElementId(iModel, linearlyLocatedElementId) {
545
550
  let linearElementId;
551
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
546
552
  iModel.withPreparedStatement("SELECT TargetECInstanceId FROM LinearReferencing.ILinearlyLocatedAlongILinearElement WHERE SourceECInstanceId = ?", (stmt) => {
547
553
  stmt.bindId(1, linearlyLocatedElementId);
548
554
  if (core_bentley_1.DbResult.BE_SQLITE_ROW === stmt.step())
@@ -590,6 +596,7 @@ class LinearElement {
590
596
  const ecSqlGen = new QueryLinearLocationsECSQLGen(queryParams);
591
597
  const ecsqlAndBindVals = ecSqlGen.generate(linearElementId);
592
598
  const linearLocationRefs = [];
599
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
593
600
  iModel.withPreparedStatement(ecsqlAndBindVals[0], (stmt) => {
594
601
  stmt.bindValues(ecsqlAndBindVals[1]);
595
602
  while (core_bentley_1.DbResult.BE_SQLITE_ROW === stmt.step()) {