@itwin/linear-referencing-common 5.0.0-dev.9 → 5.0.0-dev.92

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,56 @@
1
1
  # Change Log - @itwin/linear-referencing-common
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, 19 Mar 2025 15:33:24 GMT and should not be manually modified.
4
+
5
+ ## 4.10.11
6
+ Wed, 19 Mar 2025 15:30:39 GMT
7
+
8
+ _Version update only_
9
+
10
+ ## 4.10.10
11
+ Tue, 11 Mar 2025 15:25:11 GMT
12
+
13
+ _Version update only_
14
+
15
+ ## 4.10.9
16
+ Tue, 11 Mar 2025 05:17:33 GMT
17
+
18
+ _Version update only_
19
+
20
+ ## 4.10.8
21
+ Thu, 06 Mar 2025 14:13:37 GMT
22
+
23
+ _Version update only_
24
+
25
+ ## 4.10.7
26
+ Tue, 18 Feb 2025 17:27:03 GMT
27
+
28
+ _Version update only_
29
+
30
+ ## 4.10.6
31
+ Fri, 24 Jan 2025 08:02:40 GMT
32
+
33
+ _Version update only_
34
+
35
+ ## 4.10.5
36
+ Tue, 21 Jan 2025 21:56:45 GMT
37
+
38
+ _Version update only_
39
+
40
+ ## 4.10.4
41
+ Mon, 13 Jan 2025 14:06:43 GMT
42
+
43
+ _Version update only_
44
+
45
+ ## 4.10.3
46
+ Mon, 06 Jan 2025 14:00:13 GMT
47
+
48
+ _Version update only_
49
+
50
+ ## 4.10.2
51
+ Thu, 21 Nov 2024 15:22:20 GMT
52
+
53
+ _Version update only_
4
54
 
5
55
  ## 4.10.1
6
56
  Thu, 14 Nov 2024 18:11:00 GMT
@@ -1 +1 @@
1
- {"version":3,"file":"LinearReferencingCommon.js","sourceRoot":"","sources":["../../src/LinearReferencingCommon.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAeH;;GAEG;AACH,IAAY,gBAAyC;AAArD,WAAY,gBAAgB;IAAG,iEAAS,CAAA;IAAE,iEAAS,CAAA;AAAC,CAAC,EAAzC,gBAAgB,gCAAhB,gBAAgB,QAAyB;AAErD;;GAEG;AACH,IAAY,8BAAkD;AAA9D,WAAY,8BAA8B;IAAG,+EAAE,CAAA;IAAE,uFAAM,CAAA;IAAE,iFAAG,CAAA;AAAC,CAAC,EAAlD,8BAA8B,8CAA9B,8BAA8B,QAAoB","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 } from \"@itwin/core-bentley\";\r\n\r\n/** Interface with data returned by LinearElement.queryLinearLocations API\r\n * @beta\r\n */\r\nexport interface LinearLocationReference {\r\n startDistanceAlong: number;\r\n stopDistanceAlong: number;\r\n linearlyLocatedId: Id64String;\r\n linearlyLocatedClassFullName: string;\r\n locationAspectId: Id64String;\r\n}\r\n\r\n/** Enum capturing range-comparison options for from/to distanceAlong in QueryParams\r\n * @beta\r\n */\r\nexport enum ComparisonOption { Inclusive, Exclusive }\r\n\r\n/** Enum enabling LinearElement.queryLinearLocations performance optimization when the target Linearly-Located classes are all either At or FromTo.\r\n * @beta\r\n */\r\nexport enum LinearlyReferencedLocationType { At, FromTo, Any }\r\n\r\n/** Interface capturing various parameters for the execution of LinearElement.queryLinearLocations API\r\n * @beta\r\n */\r\nexport interface QueryParams {\r\n fromDistanceAlong?: number;\r\n fromComparisonOption?: ComparisonOption;\r\n toDistanceAlong?: number;\r\n toComparisonOption?: ComparisonOption;\r\n linearlyReferencedLocationTypeFilter?: LinearlyReferencedLocationType;\r\n linearlyLocatedClassFullNames?: string[];\r\n}\r\n"]}
1
+ {"version":3,"file":"LinearReferencingCommon.js","sourceRoot":"","sources":["../../src/LinearReferencingCommon.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAeH;;GAEG;AACH,IAAY,gBAAyC;AAArD,WAAY,gBAAgB;IAAG,iEAAS,CAAA;IAAE,iEAAS,CAAA;AAAC,CAAC,EAAzC,gBAAgB,gCAAhB,gBAAgB,QAAyB;AAErD;;GAEG;AACH,IAAY,8BAAkD;AAA9D,WAAY,8BAA8B;IAAG,+EAAE,CAAA;IAAE,uFAAM,CAAA;IAAE,iFAAG,CAAA;AAAC,CAAC,EAAlD,8BAA8B,8CAA9B,8BAA8B,QAAoB","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 } from \"@itwin/core-bentley\";\n\n/** Interface with data returned by LinearElement.queryLinearLocations API\n * @beta\n */\nexport interface LinearLocationReference {\n startDistanceAlong: number;\n stopDistanceAlong: number;\n linearlyLocatedId: Id64String;\n linearlyLocatedClassFullName: string;\n locationAspectId: Id64String;\n}\n\n/** Enum capturing range-comparison options for from/to distanceAlong in QueryParams\n * @beta\n */\nexport enum ComparisonOption { Inclusive, Exclusive }\n\n/** Enum enabling LinearElement.queryLinearLocations performance optimization when the target Linearly-Located classes are all either At or FromTo.\n * @beta\n */\nexport enum LinearlyReferencedLocationType { At, FromTo, Any }\n\n/** Interface capturing various parameters for the execution of LinearElement.queryLinearLocations API\n * @beta\n */\nexport interface QueryParams {\n fromDistanceAlong?: number;\n fromComparisonOption?: ComparisonOption;\n toDistanceAlong?: number;\n toComparisonOption?: ComparisonOption;\n linearlyReferencedLocationTypeFilter?: LinearlyReferencedLocationType;\n linearlyLocatedClassFullNames?: string[];\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"LinearReferencingElementProps.js","sourceRoot":"","sources":["../../src/LinearReferencingElementProps.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","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 { ElementAspectProps, GeometricElement3dProps, RelatedElementProps } from \"@itwin/core-common\";\r\n\r\n/** Properties of an ILinearElement\r\n * @beta\r\n */\r\nexport interface ILinearElementProps extends GeometricElement3dProps {\r\n startValue: number;\r\n lengthValue: number;\r\n source: RelatedElementProps;\r\n}\r\n\r\n/** Properties of an ILinearlyLocatedAttribution\r\n * @beta\r\n */\r\nexport interface ILinearlyLocatedAttributionProps {\r\n attributedElement?: RelatedElementProps;\r\n}\r\n\r\n/** Properties of a [LinearlyLocatedAttribution]($linear-referencing-backend)\r\n * @beta\r\n */\r\nexport interface LinearlyLocatedAttributionProps extends GeometricElement3dProps, ILinearlyLocatedAttributionProps {\r\n}\r\n\r\n/** Properties of an IReferent\r\n * @beta\r\n */\r\nexport interface IReferentProps {\r\n referencedElement?: RelatedElementProps;\r\n}\r\n\r\n/** Properties of a [ReferentElement]($linear-referencing-backend)\r\n * @beta\r\n */\r\nexport interface ReferentElementProps extends GeometricElement3dProps, IReferentProps {\r\n}\r\n\r\n/** Properties of a [DistanceExpression]($linear-referencing-backend)\r\n * @beta\r\n */\r\nexport interface DistanceExpressionProps {\r\n distanceAlongFromStart: number;\r\n lateralOffsetFromILinearElement?: number;\r\n verticalOffsetFromILinearElement?: number;\r\n distanceAlongFromReferent?: number;\r\n}\r\n\r\n/** Core properties of a [LinearlyReferencedAtLocation]($linear-referencing-backend)\r\n * @beta\r\n */\r\nexport interface LinearlyReferencedAtLocationProps {\r\n atPosition: DistanceExpressionProps;\r\n fromReferent?: RelatedElementProps;\r\n}\r\n\r\n/** Core properties of a [LinearlyReferencedFromToLocation]($linear-referencing-backend)\r\n * @beta\r\n */\r\nexport interface LinearlyReferencedFromToLocationProps {\r\n fromPosition: DistanceExpressionProps;\r\n fromPositionFromReferent?: RelatedElementProps;\r\n toPosition: DistanceExpressionProps;\r\n toPositionFromReferent?: RelatedElementProps;\r\n}\r\n\r\n/** Properties of a [LinearlyReferencedAtLocation]($linear-referencing-backend)\r\n * @beta\r\n */\r\nexport interface LinearlyReferencedAtLocationAspectProps extends LinearlyReferencedAtLocationProps, ElementAspectProps {\r\n}\r\n\r\n/** Properties of a [LinearlyReferencedFromToLocation]($linear-referencing-backend)\r\n * @beta\r\n */\r\nexport interface LinearlyReferencedFromToLocationAspectProps extends LinearlyReferencedFromToLocationProps, ElementAspectProps {\r\n}\r\n"]}
1
+ {"version":3,"file":"LinearReferencingElementProps.js","sourceRoot":"","sources":["../../src/LinearReferencingElementProps.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","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 { ElementAspectProps, GeometricElement3dProps, RelatedElementProps } from \"@itwin/core-common\";\n\n/** Properties of an ILinearElement\n * @beta\n */\nexport interface ILinearElementProps extends GeometricElement3dProps {\n startValue: number;\n lengthValue: number;\n source: RelatedElementProps;\n}\n\n/** Properties of an ILinearlyLocatedAttribution\n * @beta\n */\nexport interface ILinearlyLocatedAttributionProps {\n attributedElement?: RelatedElementProps;\n}\n\n/** Properties of a [LinearlyLocatedAttribution]($linear-referencing-backend)\n * @beta\n */\nexport interface LinearlyLocatedAttributionProps extends GeometricElement3dProps, ILinearlyLocatedAttributionProps {\n}\n\n/** Properties of an IReferent\n * @beta\n */\nexport interface IReferentProps {\n referencedElement?: RelatedElementProps;\n}\n\n/** Properties of a [ReferentElement]($linear-referencing-backend)\n * @beta\n */\nexport interface ReferentElementProps extends GeometricElement3dProps, IReferentProps {\n}\n\n/** Properties of a [DistanceExpression]($linear-referencing-backend)\n * @beta\n */\nexport interface DistanceExpressionProps {\n distanceAlongFromStart: number;\n lateralOffsetFromILinearElement?: number;\n verticalOffsetFromILinearElement?: number;\n distanceAlongFromReferent?: number;\n}\n\n/** Core properties of a [LinearlyReferencedAtLocation]($linear-referencing-backend)\n * @beta\n */\nexport interface LinearlyReferencedAtLocationProps {\n atPosition: DistanceExpressionProps;\n fromReferent?: RelatedElementProps;\n}\n\n/** Core properties of a [LinearlyReferencedFromToLocation]($linear-referencing-backend)\n * @beta\n */\nexport interface LinearlyReferencedFromToLocationProps {\n fromPosition: DistanceExpressionProps;\n fromPositionFromReferent?: RelatedElementProps;\n toPosition: DistanceExpressionProps;\n toPositionFromReferent?: RelatedElementProps;\n}\n\n/** Properties of a [LinearlyReferencedAtLocation]($linear-referencing-backend)\n * @beta\n */\nexport interface LinearlyReferencedAtLocationAspectProps extends LinearlyReferencedAtLocationProps, ElementAspectProps {\n}\n\n/** Properties of a [LinearlyReferencedFromToLocation]($linear-referencing-backend)\n * @beta\n */\nexport interface LinearlyReferencedFromToLocationAspectProps extends LinearlyReferencedFromToLocationProps, ElementAspectProps {\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"linear-referencing-common.js","sourceRoot":"","sources":["../../src/linear-referencing-common.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;;;;;AAE/F,4DAA0C;AAC1C,kEAAgD;AAEhD;;GAEG;AAEH;;GAEG","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\r\nexport * from \"./LinearReferencingCommon\";\r\nexport * from \"./LinearReferencingElementProps\";\r\n\r\n/** @docs-package-description\r\n * The `@itwin/linear-referencing-common` package contains types for working with the LinearReferencing schema on the frontend and backend.\r\n */\r\n\r\n/** @docs-group-description LinearReferencing\r\n * [Linear referencing](https://en.wikipedia.org/wiki/Linear_referencing) is the method of storing geographic locations by using relative positions along a measured linear feature.\r\n */\r\n"]}
1
+ {"version":3,"file":"linear-referencing-common.js","sourceRoot":"","sources":["../../src/linear-referencing-common.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;;;;;AAE/F,4DAA0C;AAC1C,kEAAgD;AAEhD;;GAEG;AAEH;;GAEG","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\nexport * from \"./LinearReferencingCommon\";\nexport * from \"./LinearReferencingElementProps\";\n\n/** @docs-package-description\n * The `@itwin/linear-referencing-common` package contains types for working with the LinearReferencing schema on the frontend and backend.\n */\n\n/** @docs-group-description LinearReferencing\n * [Linear referencing](https://en.wikipedia.org/wiki/Linear_referencing) is the method of storing geographic locations by using relative positions along a measured linear feature.\n */\n"]}
@@ -0,0 +1,41 @@
1
+ /** @packageDocumentation
2
+ * @module LinearReferencing
3
+ */
4
+ import { Id64String } from "@itwin/core-bentley";
5
+ /** Interface with data returned by LinearElement.queryLinearLocations API
6
+ * @beta
7
+ */
8
+ export interface LinearLocationReference {
9
+ startDistanceAlong: number;
10
+ stopDistanceAlong: number;
11
+ linearlyLocatedId: Id64String;
12
+ linearlyLocatedClassFullName: string;
13
+ locationAspectId: Id64String;
14
+ }
15
+ /** Enum capturing range-comparison options for from/to distanceAlong in QueryParams
16
+ * @beta
17
+ */
18
+ export declare enum ComparisonOption {
19
+ Inclusive = 0,
20
+ Exclusive = 1
21
+ }
22
+ /** Enum enabling LinearElement.queryLinearLocations performance optimization when the target Linearly-Located classes are all either At or FromTo.
23
+ * @beta
24
+ */
25
+ export declare enum LinearlyReferencedLocationType {
26
+ At = 0,
27
+ FromTo = 1,
28
+ Any = 2
29
+ }
30
+ /** Interface capturing various parameters for the execution of LinearElement.queryLinearLocations API
31
+ * @beta
32
+ */
33
+ export interface QueryParams {
34
+ fromDistanceAlong?: number;
35
+ fromComparisonOption?: ComparisonOption;
36
+ toDistanceAlong?: number;
37
+ toComparisonOption?: ComparisonOption;
38
+ linearlyReferencedLocationTypeFilter?: LinearlyReferencedLocationType;
39
+ linearlyLocatedClassFullNames?: string[];
40
+ }
41
+ //# sourceMappingURL=LinearReferencingCommon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LinearReferencingCommon.d.ts","sourceRoot":"","sources":["../../src/LinearReferencingCommon.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,UAAU,CAAC;IAC9B,4BAA4B,EAAE,MAAM,CAAC;IACrC,gBAAgB,EAAE,UAAU,CAAC;CAC9B;AAED;;GAEG;AACH,oBAAY,gBAAgB;IAAG,SAAS,IAAA;IAAE,SAAS,IAAA;CAAE;AAErD;;GAEG;AACH,oBAAY,8BAA8B;IAAG,EAAE,IAAA;IAAE,MAAM,IAAA;IAAE,GAAG,IAAA;CAAE;AAE9D;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,oBAAoB,CAAC,EAAE,gBAAgB,CAAC;IACxC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,kBAAkB,CAAC,EAAE,gBAAgB,CAAC;IACtC,oCAAoC,CAAC,EAAE,8BAA8B,CAAC;IACtE,6BAA6B,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1C"}
@@ -0,0 +1,25 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ /** @packageDocumentation
6
+ * @module LinearReferencing
7
+ */
8
+ /** Enum capturing range-comparison options for from/to distanceAlong in QueryParams
9
+ * @beta
10
+ */
11
+ export var ComparisonOption;
12
+ (function (ComparisonOption) {
13
+ ComparisonOption[ComparisonOption["Inclusive"] = 0] = "Inclusive";
14
+ ComparisonOption[ComparisonOption["Exclusive"] = 1] = "Exclusive";
15
+ })(ComparisonOption || (ComparisonOption = {}));
16
+ /** Enum enabling LinearElement.queryLinearLocations performance optimization when the target Linearly-Located classes are all either At or FromTo.
17
+ * @beta
18
+ */
19
+ export var LinearlyReferencedLocationType;
20
+ (function (LinearlyReferencedLocationType) {
21
+ LinearlyReferencedLocationType[LinearlyReferencedLocationType["At"] = 0] = "At";
22
+ LinearlyReferencedLocationType[LinearlyReferencedLocationType["FromTo"] = 1] = "FromTo";
23
+ LinearlyReferencedLocationType[LinearlyReferencedLocationType["Any"] = 2] = "Any";
24
+ })(LinearlyReferencedLocationType || (LinearlyReferencedLocationType = {}));
25
+ //# sourceMappingURL=LinearReferencingCommon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LinearReferencingCommon.js","sourceRoot":"","sources":["../../src/LinearReferencingCommon.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAeH;;GAEG;AACH,MAAM,CAAN,IAAY,gBAAyC;AAArD,WAAY,gBAAgB;IAAG,iEAAS,CAAA;IAAE,iEAAS,CAAA;AAAC,CAAC,EAAzC,gBAAgB,KAAhB,gBAAgB,QAAyB;AAErD;;GAEG;AACH,MAAM,CAAN,IAAY,8BAAkD;AAA9D,WAAY,8BAA8B;IAAG,+EAAE,CAAA;IAAE,uFAAM,CAAA;IAAE,iFAAG,CAAA;AAAC,CAAC,EAAlD,8BAA8B,KAA9B,8BAA8B,QAAoB","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 } from \"@itwin/core-bentley\";\n\n/** Interface with data returned by LinearElement.queryLinearLocations API\n * @beta\n */\nexport interface LinearLocationReference {\n startDistanceAlong: number;\n stopDistanceAlong: number;\n linearlyLocatedId: Id64String;\n linearlyLocatedClassFullName: string;\n locationAspectId: Id64String;\n}\n\n/** Enum capturing range-comparison options for from/to distanceAlong in QueryParams\n * @beta\n */\nexport enum ComparisonOption { Inclusive, Exclusive }\n\n/** Enum enabling LinearElement.queryLinearLocations performance optimization when the target Linearly-Located classes are all either At or FromTo.\n * @beta\n */\nexport enum LinearlyReferencedLocationType { At, FromTo, Any }\n\n/** Interface capturing various parameters for the execution of LinearElement.queryLinearLocations API\n * @beta\n */\nexport interface QueryParams {\n fromDistanceAlong?: number;\n fromComparisonOption?: ComparisonOption;\n toDistanceAlong?: number;\n toComparisonOption?: ComparisonOption;\n linearlyReferencedLocationTypeFilter?: LinearlyReferencedLocationType;\n linearlyLocatedClassFullNames?: string[];\n}\n"]}
@@ -0,0 +1,70 @@
1
+ /** @packageDocumentation
2
+ * @module LinearReferencing
3
+ */
4
+ import { ElementAspectProps, GeometricElement3dProps, RelatedElementProps } from "@itwin/core-common";
5
+ /** Properties of an ILinearElement
6
+ * @beta
7
+ */
8
+ export interface ILinearElementProps extends GeometricElement3dProps {
9
+ startValue: number;
10
+ lengthValue: number;
11
+ source: RelatedElementProps;
12
+ }
13
+ /** Properties of an ILinearlyLocatedAttribution
14
+ * @beta
15
+ */
16
+ export interface ILinearlyLocatedAttributionProps {
17
+ attributedElement?: RelatedElementProps;
18
+ }
19
+ /** Properties of a [LinearlyLocatedAttribution]($linear-referencing-backend)
20
+ * @beta
21
+ */
22
+ export interface LinearlyLocatedAttributionProps extends GeometricElement3dProps, ILinearlyLocatedAttributionProps {
23
+ }
24
+ /** Properties of an IReferent
25
+ * @beta
26
+ */
27
+ export interface IReferentProps {
28
+ referencedElement?: RelatedElementProps;
29
+ }
30
+ /** Properties of a [ReferentElement]($linear-referencing-backend)
31
+ * @beta
32
+ */
33
+ export interface ReferentElementProps extends GeometricElement3dProps, IReferentProps {
34
+ }
35
+ /** Properties of a [DistanceExpression]($linear-referencing-backend)
36
+ * @beta
37
+ */
38
+ export interface DistanceExpressionProps {
39
+ distanceAlongFromStart: number;
40
+ lateralOffsetFromILinearElement?: number;
41
+ verticalOffsetFromILinearElement?: number;
42
+ distanceAlongFromReferent?: number;
43
+ }
44
+ /** Core properties of a [LinearlyReferencedAtLocation]($linear-referencing-backend)
45
+ * @beta
46
+ */
47
+ export interface LinearlyReferencedAtLocationProps {
48
+ atPosition: DistanceExpressionProps;
49
+ fromReferent?: RelatedElementProps;
50
+ }
51
+ /** Core properties of a [LinearlyReferencedFromToLocation]($linear-referencing-backend)
52
+ * @beta
53
+ */
54
+ export interface LinearlyReferencedFromToLocationProps {
55
+ fromPosition: DistanceExpressionProps;
56
+ fromPositionFromReferent?: RelatedElementProps;
57
+ toPosition: DistanceExpressionProps;
58
+ toPositionFromReferent?: RelatedElementProps;
59
+ }
60
+ /** Properties of a [LinearlyReferencedAtLocation]($linear-referencing-backend)
61
+ * @beta
62
+ */
63
+ export interface LinearlyReferencedAtLocationAspectProps extends LinearlyReferencedAtLocationProps, ElementAspectProps {
64
+ }
65
+ /** Properties of a [LinearlyReferencedFromToLocation]($linear-referencing-backend)
66
+ * @beta
67
+ */
68
+ export interface LinearlyReferencedFromToLocationAspectProps extends LinearlyReferencedFromToLocationProps, ElementAspectProps {
69
+ }
70
+ //# sourceMappingURL=LinearReferencingElementProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LinearReferencingElementProps.d.ts","sourceRoot":"","sources":["../../src/LinearReferencingElementProps.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEtG;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,uBAAuB;IAClE,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,mBAAmB,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C,iBAAiB,CAAC,EAAE,mBAAmB,CAAC;CACzC;AAED;;GAEG;AACH,MAAM,WAAW,+BAAgC,SAAQ,uBAAuB,EAAE,gCAAgC;CACjH;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,iBAAiB,CAAC,EAAE,mBAAmB,CAAC;CACzC;AAED;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,uBAAuB,EAAE,cAAc;CACpF;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC,gCAAgC,CAAC,EAAE,MAAM,CAAC;IAC1C,yBAAyB,CAAC,EAAE,MAAM,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD,UAAU,EAAE,uBAAuB,CAAC;IACpC,YAAY,CAAC,EAAE,mBAAmB,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,qCAAqC;IACpD,YAAY,EAAE,uBAAuB,CAAC;IACtC,wBAAwB,CAAC,EAAE,mBAAmB,CAAC;IAC/C,UAAU,EAAE,uBAAuB,CAAC;IACpC,sBAAsB,CAAC,EAAE,mBAAmB,CAAC;CAC9C;AAED;;GAEG;AACH,MAAM,WAAW,uCAAwC,SAAQ,iCAAiC,EAAE,kBAAkB;CACrH;AAED;;GAEG;AACH,MAAM,WAAW,2CAA4C,SAAQ,qCAAqC,EAAE,kBAAkB;CAC7H"}
@@ -0,0 +1,9 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ /** @packageDocumentation
6
+ * @module LinearReferencing
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=LinearReferencingElementProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LinearReferencingElementProps.js","sourceRoot":"","sources":["../../src/LinearReferencingElementProps.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG","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 { ElementAspectProps, GeometricElement3dProps, RelatedElementProps } from \"@itwin/core-common\";\n\n/** Properties of an ILinearElement\n * @beta\n */\nexport interface ILinearElementProps extends GeometricElement3dProps {\n startValue: number;\n lengthValue: number;\n source: RelatedElementProps;\n}\n\n/** Properties of an ILinearlyLocatedAttribution\n * @beta\n */\nexport interface ILinearlyLocatedAttributionProps {\n attributedElement?: RelatedElementProps;\n}\n\n/** Properties of a [LinearlyLocatedAttribution]($linear-referencing-backend)\n * @beta\n */\nexport interface LinearlyLocatedAttributionProps extends GeometricElement3dProps, ILinearlyLocatedAttributionProps {\n}\n\n/** Properties of an IReferent\n * @beta\n */\nexport interface IReferentProps {\n referencedElement?: RelatedElementProps;\n}\n\n/** Properties of a [ReferentElement]($linear-referencing-backend)\n * @beta\n */\nexport interface ReferentElementProps extends GeometricElement3dProps, IReferentProps {\n}\n\n/** Properties of a [DistanceExpression]($linear-referencing-backend)\n * @beta\n */\nexport interface DistanceExpressionProps {\n distanceAlongFromStart: number;\n lateralOffsetFromILinearElement?: number;\n verticalOffsetFromILinearElement?: number;\n distanceAlongFromReferent?: number;\n}\n\n/** Core properties of a [LinearlyReferencedAtLocation]($linear-referencing-backend)\n * @beta\n */\nexport interface LinearlyReferencedAtLocationProps {\n atPosition: DistanceExpressionProps;\n fromReferent?: RelatedElementProps;\n}\n\n/** Core properties of a [LinearlyReferencedFromToLocation]($linear-referencing-backend)\n * @beta\n */\nexport interface LinearlyReferencedFromToLocationProps {\n fromPosition: DistanceExpressionProps;\n fromPositionFromReferent?: RelatedElementProps;\n toPosition: DistanceExpressionProps;\n toPositionFromReferent?: RelatedElementProps;\n}\n\n/** Properties of a [LinearlyReferencedAtLocation]($linear-referencing-backend)\n * @beta\n */\nexport interface LinearlyReferencedAtLocationAspectProps extends LinearlyReferencedAtLocationProps, ElementAspectProps {\n}\n\n/** Properties of a [LinearlyReferencedFromToLocation]($linear-referencing-backend)\n * @beta\n */\nexport interface LinearlyReferencedFromToLocationAspectProps extends LinearlyReferencedFromToLocationProps, ElementAspectProps {\n}\n"]}
@@ -0,0 +1,9 @@
1
+ export * from "./LinearReferencingCommon";
2
+ export * from "./LinearReferencingElementProps";
3
+ /** @docs-package-description
4
+ * The `@itwin/linear-referencing-common` package contains types for working with the LinearReferencing schema on the frontend and backend.
5
+ */
6
+ /** @docs-group-description LinearReferencing
7
+ * [Linear referencing](https://en.wikipedia.org/wiki/Linear_referencing) is the method of storing geographic locations by using relative positions along a measured linear feature.
8
+ */
9
+ //# sourceMappingURL=linear-referencing-common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linear-referencing-common.d.ts","sourceRoot":"","sources":["../../src/linear-referencing-common.ts"],"names":[],"mappings":"AAKA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAEhD;;GAEG;AAEH;;GAEG"}
@@ -0,0 +1,13 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ export * from "./LinearReferencingCommon";
6
+ export * from "./LinearReferencingElementProps";
7
+ /** @docs-package-description
8
+ * The `@itwin/linear-referencing-common` package contains types for working with the LinearReferencing schema on the frontend and backend.
9
+ */
10
+ /** @docs-group-description LinearReferencing
11
+ * [Linear referencing](https://en.wikipedia.org/wiki/Linear_referencing) is the method of storing geographic locations by using relative positions along a measured linear feature.
12
+ */
13
+ //# sourceMappingURL=linear-referencing-common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linear-referencing-common.js","sourceRoot":"","sources":["../../src/linear-referencing-common.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAE/F,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAEhD;;GAEG;AAEH;;GAEG","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\nexport * from \"./LinearReferencingCommon\";\nexport * from \"./LinearReferencingElementProps\";\n\n/** @docs-package-description\n * The `@itwin/linear-referencing-common` package contains types for working with the LinearReferencing schema on the frontend and backend.\n */\n\n/** @docs-group-description LinearReferencing\n * [Linear referencing](https://en.wikipedia.org/wiki/Linear_referencing) is the method of storing geographic locations by using relative positions along a measured linear feature.\n */\n"]}
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@itwin/linear-referencing-common",
3
- "version": "5.0.0-dev.9",
3
+ "version": "5.0.0-dev.92",
4
4
  "main": "lib/cjs/linear-referencing-common.js",
5
+ "module": "lib/esm/linear-referencing-common.js",
5
6
  "typings": "lib/cjs/linear-referencing-common",
6
7
  "license": "MIT",
7
8
  "repository": {
@@ -19,8 +20,8 @@
19
20
  "url": "http://www.bentley.com"
20
21
  },
21
22
  "peerDependencies": {
22
- "@itwin/core-bentley": "^5.0.0-dev.9",
23
- "@itwin/core-common": "^5.0.0-dev.9"
23
+ "@itwin/core-bentley": "5.0.0-dev.92",
24
+ "@itwin/core-common": "5.0.0-dev.92"
24
25
  },
25
26
  "//devDependencies": [
26
27
  "NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install",
@@ -33,21 +34,22 @@
33
34
  "@types/mocha": "^10.0.6",
34
35
  "chai": "^4.3.10",
35
36
  "eslint": "^9.13.0",
36
- "mocha": "^10.2.0",
37
- "nyc": "^15.1.0",
38
- "rimraf": "^3.0.2",
37
+ "mocha": "^11.1.0",
38
+ "nyc": "^17.1.0",
39
+ "rimraf": "^6.0.1",
39
40
  "typescript": "~5.6.2",
40
- "@itwin/build-tools": "5.0.0-dev.9",
41
- "@itwin/core-common": "5.0.0-dev.9",
42
- "@itwin/core-bentley": "5.0.0-dev.9"
41
+ "@itwin/build-tools": "5.0.0-dev.92",
42
+ "@itwin/core-bentley": "5.0.0-dev.92",
43
+ "@itwin/core-common": "5.0.0-dev.92"
43
44
  },
44
45
  "nyc": {
45
46
  "extends": "./node_modules/@itwin/build-tools/.nycrc"
46
47
  },
47
48
  "scripts": {
48
- "build": "npm run -s build:cjs",
49
+ "build": "npm run -s build:cjs && npm run -s build:esm",
49
50
  "build:cjs": "tsc 1>&2 --outDir lib/cjs",
50
- "clean": "rimraf lib .rush/temp/package-deps*.json",
51
+ "build:esm": "tsc 1>&2 --module ES2022 --outDir lib/esm",
52
+ "clean": "rimraf -g lib .rush/temp/package-deps*.json",
51
53
  "cover": "nyc npm -s test",
52
54
  "docs": "betools docs --json=../../../generated-docs/domains/linear-referencing-common/file.json --tsIndexFile=./linear-referencing-common.ts --onlyJson",
53
55
  "extract-api": "betools extract-api --entry=linear-referencing-common",