@itwin/linear-referencing-common 5.1.0-dev.9 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +64 -1
- package/lib/cjs/LinearReferencingCommon.js.map +1 -1
- package/lib/cjs/LinearReferencingElementProps.js.map +1 -1
- package/lib/cjs/linear-referencing-common.js.map +1 -1
- package/lib/esm/LinearReferencingCommon.js.map +1 -1
- package/lib/esm/LinearReferencingElementProps.js.map +1 -1
- package/lib/esm/linear-referencing-common.js.map +1 -1
- package/package.json +10 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,69 @@
|
|
|
1
1
|
# Change Log - @itwin/linear-referencing-common
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 08 Aug 2025 12:51:53 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 5.1.0
|
|
6
|
+
Fri, 08 Aug 2025 12:51:53 GMT
|
|
7
|
+
|
|
8
|
+
_Version update only_
|
|
9
|
+
|
|
10
|
+
## 5.0.5
|
|
11
|
+
Wed, 06 Aug 2025 15:34:16 GMT
|
|
12
|
+
|
|
13
|
+
_Version update only_
|
|
14
|
+
|
|
15
|
+
## 5.0.4
|
|
16
|
+
Wed, 16 Jul 2025 14:59:59 GMT
|
|
17
|
+
|
|
18
|
+
_Version update only_
|
|
19
|
+
|
|
20
|
+
## 5.0.3
|
|
21
|
+
Fri, 11 Jul 2025 00:56:56 GMT
|
|
22
|
+
|
|
23
|
+
_Version update only_
|
|
24
|
+
|
|
25
|
+
## 5.0.2
|
|
26
|
+
Thu, 26 Jun 2025 22:16:01 GMT
|
|
27
|
+
|
|
28
|
+
_Version update only_
|
|
29
|
+
|
|
30
|
+
## 5.0.1
|
|
31
|
+
Tue, 17 Jun 2025 18:33:52 GMT
|
|
32
|
+
|
|
33
|
+
_Version update only_
|
|
34
|
+
|
|
35
|
+
## 5.0.0
|
|
36
|
+
Fri, 13 Jun 2025 20:25:38 GMT
|
|
37
|
+
|
|
38
|
+
### Updates
|
|
39
|
+
|
|
40
|
+
- Added ESM support
|
|
41
|
+
- Change core peer dependencies to strict version.
|
|
42
|
+
|
|
43
|
+
## 4.11.6
|
|
44
|
+
Mon, 16 Jun 2025 15:00:15 GMT
|
|
45
|
+
|
|
46
|
+
_Version update only_
|
|
47
|
+
|
|
48
|
+
## 4.11.5
|
|
49
|
+
Fri, 06 Jun 2025 13:41:18 GMT
|
|
50
|
+
|
|
51
|
+
_Version update only_
|
|
52
|
+
|
|
53
|
+
## 4.11.4
|
|
54
|
+
Tue, 03 Jun 2025 16:15:19 GMT
|
|
55
|
+
|
|
56
|
+
_Version update only_
|
|
57
|
+
|
|
58
|
+
## 4.11.3
|
|
59
|
+
Wed, 28 May 2025 13:56:23 GMT
|
|
60
|
+
|
|
61
|
+
_Version update only_
|
|
62
|
+
|
|
63
|
+
## 4.11.2
|
|
64
|
+
Tue, 20 May 2025 20:14:46 GMT
|
|
65
|
+
|
|
66
|
+
_Version update only_
|
|
4
67
|
|
|
5
68
|
## 4.11.1
|
|
6
69
|
Wed, 30 Apr 2025 13:13:21 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":["/*---------------------------------------------------------------------------------------------\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
|
+
{"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 +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"]}
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linear-referencing-common.js","sourceRoot":"","sources":["../../src/linear-referencing-common.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;;;;;AAE/F,+DAA6C;AAC7C,qEAAmD;AAEnD;;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.js\";\nexport * from \"./LinearReferencingElementProps.js\";\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"]}
|
|
1
|
+
{"version":3,"file":"linear-referencing-common.js","sourceRoot":"","sources":["../../src/linear-referencing-common.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;;;;;AAE/F,+DAA6C;AAC7C,qEAAmD;AAEnD;;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.js\";\r\nexport * from \"./LinearReferencingElementProps.js\";\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 +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"]}
|
|
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":["/*---------------------------------------------------------------------------------------------\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 +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"]}
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linear-referencing-common.js","sourceRoot":"","sources":["../../src/linear-referencing-common.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAE/F,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oCAAoC,CAAC;AAEnD;;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.js\";\nexport * from \"./LinearReferencingElementProps.js\";\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"]}
|
|
1
|
+
{"version":3,"file":"linear-referencing-common.js","sourceRoot":"","sources":["../../src/linear-referencing-common.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAE/F,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oCAAoC,CAAC;AAEnD;;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.js\";\r\nexport * from \"./LinearReferencingElementProps.js\";\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"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/linear-referencing-common",
|
|
3
|
-
"version": "5.1.0
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"main": "lib/cjs/linear-referencing-common.js",
|
|
5
5
|
"module": "lib/esm/linear-referencing-common.js",
|
|
6
6
|
"typings": "lib/cjs/linear-referencing-common",
|
|
@@ -27,22 +27,22 @@
|
|
|
27
27
|
"url": "http://www.bentley.com"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@itwin/core-bentley": "5.1.0
|
|
31
|
-
"@itwin/core-common": "5.1.0
|
|
30
|
+
"@itwin/core-bentley": "5.1.0",
|
|
31
|
+
"@itwin/core-common": "5.1.0"
|
|
32
32
|
},
|
|
33
33
|
"//devDependencies": [
|
|
34
34
|
"NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install",
|
|
35
35
|
"NOTE: All tools used by scripts in this package must be listed as devDependencies"
|
|
36
36
|
],
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@itwin/eslint-plugin": "5.
|
|
39
|
-
"eslint": "^9.
|
|
38
|
+
"@itwin/eslint-plugin": "5.2.2-dev.2",
|
|
39
|
+
"eslint": "^9.31.0",
|
|
40
40
|
"rimraf": "^6.0.1",
|
|
41
41
|
"typescript": "~5.6.2",
|
|
42
|
-
"@itwin/build-tools": "5.1.0
|
|
43
|
-
"@itwin/core-
|
|
44
|
-
"
|
|
45
|
-
"
|
|
42
|
+
"@itwin/build-tools": "5.1.0",
|
|
43
|
+
"@itwin/core-common": "5.1.0",
|
|
44
|
+
"internal-tools": "3.0.0-dev.69",
|
|
45
|
+
"@itwin/core-bentley": "5.1.0"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "npm run -s build:cjs && npm run -s build:esm",
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"docs": "betools docs --json=../../../generated-docs/domains/linear-referencing-common/file.json --tsIndexFile=./linear-referencing-common.ts --onlyJson",
|
|
54
54
|
"extract-api": "betools extract-api --entry=linear-referencing-common",
|
|
55
55
|
"lint": "eslint \"./src/**/*.ts\" 1>&2",
|
|
56
|
+
"lint-deprecation": "eslint --fix -f visualstudio --no-inline-config -c ../../../common/config/eslint/eslint.config.deprecation-policy.js \"./src/**/*.ts\"",
|
|
56
57
|
"test": ""
|
|
57
58
|
}
|
|
58
59
|
}
|