@itwin/core-common 5.7.0-dev.9 → 5.8.0-dev.1
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 +8 -1
- package/lib/cjs/TxnProps.d.ts +1 -1
- package/lib/cjs/TxnProps.d.ts.map +1 -1
- package/lib/cjs/TxnProps.js.map +1 -1
- package/lib/cjs/geometry/ElementGeometry.js +1 -1
- package/lib/cjs/geometry/ElementGeometry.js.map +1 -1
- package/lib/esm/TxnProps.d.ts +1 -1
- package/lib/esm/TxnProps.d.ts.map +1 -1
- package/lib/esm/TxnProps.js.map +1 -1
- package/lib/esm/geometry/ElementGeometry.js +1 -1
- package/lib/esm/geometry/ElementGeometry.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# Change Log - @itwin/core-common
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 13 Feb 2026 17:13:15 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 5.6.1
|
|
6
|
+
Fri, 13 Feb 2026 17:11:47 GMT
|
|
7
|
+
|
|
8
|
+
### Updates
|
|
9
|
+
|
|
10
|
+
- Fix a bug in a 'if' statement with a color def TBGR numeric value.
|
|
4
11
|
|
|
5
12
|
## 5.6.0
|
|
6
13
|
Thu, 05 Feb 2026 16:12:37 GMT
|
package/lib/cjs/TxnProps.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Id64String } from "@itwin/core-bentley";
|
|
|
3
3
|
* @alpha
|
|
4
4
|
* Transaction types
|
|
5
5
|
*/
|
|
6
|
-
export type TxnType = "Data" | "ECSchema" | "Ddl";
|
|
6
|
+
export type TxnType = "Data" | "ECSchema" | "Schema" | "Ddl";
|
|
7
7
|
/**
|
|
8
8
|
* @alpha
|
|
9
9
|
* Represents the properties of a transaction within the transaction manager.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TxnProps.d.ts","sourceRoot":"","sources":["../../src/TxnProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"TxnProps.d.ts","sourceRoot":"","sources":["../../src/TxnProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,GAAG,KAAK,CAAC;AAE7D;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,UAAU,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,KAAK,EAAE,eAAe,CAAC;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAClC"}
|
package/lib/cjs/TxnProps.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TxnProps.js","sourceRoot":"","sources":["../../src/TxnProps.ts"],"names":[],"mappings":"","sourcesContent":["import { Id64String } from \"@itwin/core-bentley\";\r\n\r\n/**\r\n * @alpha\r\n * Transaction types\r\n */\r\nexport type TxnType = \"Data\" | \"ECSchema\" | \"Ddl\"
|
|
1
|
+
{"version":3,"file":"TxnProps.js","sourceRoot":"","sources":["../../src/TxnProps.ts"],"names":[],"mappings":"","sourcesContent":["import { Id64String } from \"@itwin/core-bentley\";\r\n\r\n/**\r\n * @alpha\r\n * Transaction types\r\n */\r\nexport type TxnType = \"Data\" | \"ECSchema\" | \"Schema\" | \"Ddl\"; // TODO: Remove \"Schema\" in favor of \"ECSchema\". Currently thats a bug in native code....for schema txns we get txn type as \"Schema\" instead of \"ECSchema\".\r\n\r\n/**\r\n * @alpha\r\n * Represents the properties of a transaction within the transaction manager.\r\n *\r\n * @property id - The unique identifier for the transaction.\r\n * @property sessionId - The identifier of the session to which the transaction belongs.\r\n * @property nextId - (Optional) The identifier of the next transaction in the sequence.\r\n * @property prevId - (Optional) The identifier of the previous transaction in the sequence.\r\n * @property props - The arguments or properties associated with the save changes operation.\r\n * @property type - The type of transaction, which can be \"Data\", \"ECSchema\", or \"Ddl\".\r\n * @property reversed - Indicates whether the transaction has been reversed.\r\n * @property grouped - Indicates whether the transaction is grouped with others.\r\n * @property timestamp - The timestamp when the transaction was created.\r\n */\r\nexport interface TxnProps {\r\n id: Id64String;\r\n sessionId: number;\r\n nextId?: Id64String;\r\n prevId?: Id64String;\r\n props: SaveChangesArgs;\r\n type: TxnType;\r\n reversed: boolean;\r\n grouped: boolean;\r\n timestamp: string;\r\n}\r\n\r\n/**\r\n * Arguments for saving changes to the iModel.\r\n * @alpha\r\n */\r\nexport interface SaveChangesArgs {\r\n /**\r\n * Optional description of the changes being saved.\r\n */\r\n description?: string;\r\n /**\r\n * Optional source of the changes being saved.\r\n */\r\n source?: string;\r\n /**\r\n * Optional application-specific data to include with the changes.\r\n */\r\n appData?: { [key: string]: any };\r\n}\r\n"]}
|
|
@@ -221,7 +221,7 @@ var ElementGeometry;
|
|
|
221
221
|
if (entry.text) {
|
|
222
222
|
result = this.appendTextString(new TextString_1.TextString(entry.text));
|
|
223
223
|
}
|
|
224
|
-
else if (entry.color) {
|
|
224
|
+
else if (undefined !== entry.color) {
|
|
225
225
|
const params = geomParams?.clone() ?? new GeometryParams_1.GeometryParams(core_bentley_1.Id64.invalid);
|
|
226
226
|
if (entry.color !== "subcategory") {
|
|
227
227
|
params.lineColor = ColorDef_1.ColorDef.fromJSON(entry.color);
|