@itwin/physical-material-backend 5.0.0-dev.96 → 5.0.0-dev.98
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 +6 -1
- package/lib/cjs/PhysicalMaterialElements.js.map +1 -1
- package/lib/cjs/PhysicalMaterialSchema.d.ts +4 -0
- package/lib/cjs/PhysicalMaterialSchema.d.ts.map +1 -1
- package/lib/cjs/PhysicalMaterialSchema.js +5 -1
- package/lib/cjs/PhysicalMaterialSchema.js.map +1 -1
- package/lib/cjs/physical-material-backend.js.map +1 -1
- package/lib/esm/PhysicalMaterialElements.js.map +1 -1
- package/lib/esm/PhysicalMaterialSchema.d.ts +4 -0
- package/lib/esm/PhysicalMaterialSchema.d.ts.map +1 -1
- package/lib/esm/PhysicalMaterialSchema.js +5 -1
- package/lib/esm/PhysicalMaterialSchema.js.map +1 -1
- package/lib/esm/physical-material-backend.js.map +1 -1
- package/package.json +8 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
# Change Log - @itwin/physical-material-backend
|
|
2
2
|
|
|
3
|
-
This log was last generated on Wed,
|
|
3
|
+
This log was last generated on Wed, 02 Apr 2025 19:38:36 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 4.10.12
|
|
6
|
+
Wed, 02 Apr 2025 19:35:47 GMT
|
|
7
|
+
|
|
8
|
+
_Version update only_
|
|
4
9
|
|
|
5
10
|
## 4.10.11
|
|
6
11
|
Wed, 19 Mar 2025 15:30:39 GMT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PhysicalMaterialElements.js","sourceRoot":"","sources":["../../src/PhysicalMaterialElements.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAAiE;AAGjE;;;GAGG;AACH,MAAa,SAAU,SAAQ,+BAAgB;IAC7C,gBAAgB;IACT,MAAM,KAAc,SAAS,KAAa,OAAO,WAAW,CAAC,CAAC,CAAC;IACtE,YAAmB,KAA6B,EAAE,MAAgB,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CAC9F;AAJD,8BAIC;AAED;;GAEG;AACH,MAAa,QAAS,SAAQ,+BAAgB;IAC5C,gBAAgB;IACT,MAAM,KAAc,SAAS,KAAa,OAAO,UAAU,CAAC,CAAC,CAAC;IACrE,YAAmB,KAA6B,EAAE,MAAgB,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CAC9F;AAJD,4BAIC;AAED;;GAEG;AACH,MAAa,OAAQ,SAAQ,+BAAgB;IAC3C,gBAAgB;IACT,MAAM,KAAc,SAAS,KAAa,OAAO,SAAS,CAAC,CAAC,CAAC;IACpE,YAAmB,KAA6B,EAAE,MAAgB,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CAC9F;AAJD,0BAIC;AAED;;GAEG;AACH,MAAa,QAAS,SAAQ,+BAAgB;IAC5C,gBAAgB;IACT,MAAM,KAAc,SAAS,KAAa,OAAO,UAAU,CAAC,CAAC,CAAC;IACrE,YAAmB,KAA6B,EAAE,MAAgB,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CAC9F;AAJD,4BAIC;AAED;;GAEG;AACH,MAAa,KAAM,SAAQ,+BAAgB;IACzC,gBAAgB;IACT,MAAM,KAAc,SAAS,KAAa,OAAO,OAAO,CAAC,CAAC,CAAC;IAClE,YAAmB,KAA6B,EAAE,MAAgB,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CAC9F;AAJD,sBAIC","sourcesContent":["/*---------------------------------------------------------------------------------------------\
|
|
1
|
+
{"version":3,"file":"PhysicalMaterialElements.js","sourceRoot":"","sources":["../../src/PhysicalMaterialElements.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAAiE;AAGjE;;;GAGG;AACH,MAAa,SAAU,SAAQ,+BAAgB;IAC7C,gBAAgB;IACT,MAAM,KAAc,SAAS,KAAa,OAAO,WAAW,CAAC,CAAC,CAAC;IACtE,YAAmB,KAA6B,EAAE,MAAgB,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CAC9F;AAJD,8BAIC;AAED;;GAEG;AACH,MAAa,QAAS,SAAQ,+BAAgB;IAC5C,gBAAgB;IACT,MAAM,KAAc,SAAS,KAAa,OAAO,UAAU,CAAC,CAAC,CAAC;IACrE,YAAmB,KAA6B,EAAE,MAAgB,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CAC9F;AAJD,4BAIC;AAED;;GAEG;AACH,MAAa,OAAQ,SAAQ,+BAAgB;IAC3C,gBAAgB;IACT,MAAM,KAAc,SAAS,KAAa,OAAO,SAAS,CAAC,CAAC,CAAC;IACpE,YAAmB,KAA6B,EAAE,MAAgB,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CAC9F;AAJD,0BAIC;AAED;;GAEG;AACH,MAAa,QAAS,SAAQ,+BAAgB;IAC5C,gBAAgB;IACT,MAAM,KAAc,SAAS,KAAa,OAAO,UAAU,CAAC,CAAC,CAAC;IACrE,YAAmB,KAA6B,EAAE,MAAgB,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CAC9F;AAJD,4BAIC;AAED;;GAEG;AACH,MAAa,KAAM,SAAQ,+BAAgB;IACzC,gBAAgB;IACT,MAAM,KAAc,SAAS,KAAa,OAAO,OAAO,CAAC,CAAC,CAAC;IAClE,YAAmB,KAA6B,EAAE,MAAgB,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CAC9F;AAJD,sBAIC","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 PhysicalMaterial\n */\n\nimport { IModelDb, PhysicalMaterial } from \"@itwin/core-backend\";\nimport { DefinitionElementProps } from \"@itwin/core-common\";\n\n/** Aggregate is a bis:PhysicalMaterial representing a broad category of coarse to medium grained particulate material typically used in construction as\n * well as base material under foundations, roadways, and railways.\n * @public\n */\nexport class Aggregate extends PhysicalMaterial {\n /** @internal */\n public static override get className(): string { return \"Aggregate\"; }\n public constructor(props: DefinitionElementProps, iModel: IModelDb) { super(props, iModel); }\n}\n\n/** Aluminum is a bis:PhysicalMaterial representing aluminum (atomic symbol Al) or one of its alloys.\n * @public\n */\nexport class Aluminum extends PhysicalMaterial {\n /** @internal */\n public static override get className(): string { return \"Aluminum\"; }\n public constructor(props: DefinitionElementProps, iModel: IModelDb) { super(props, iModel); }\n}\n\n/** Asphalt is a bis:PhysicalMaterial representing a mixture of a bituminous binder and aggregates. Asphalt is typically used for roadway surfacing.\n * @public\n */\nexport class Asphalt extends PhysicalMaterial {\n /** @internal */\n public static override get className(): string { return \"Asphalt\"; }\n public constructor(props: DefinitionElementProps, iModel: IModelDb) { super(props, iModel); }\n}\n\n/** Concrete is a bis:PhysicalMaterial representing a mixture of hydraulic cement, aggregates, water and optionally other materials.\n * @public\n */\nexport class Concrete extends PhysicalMaterial {\n /** @internal */\n public static override get className(): string { return \"Concrete\"; }\n public constructor(props: DefinitionElementProps, iModel: IModelDb) { super(props, iModel); }\n}\n\n/** Steel is a bis:PhysicalMaterial representing an alloy of iron, carbon and other elements.\n * @public\n */\nexport class Steel extends PhysicalMaterial {\n /** @internal */\n public static override get className(): string { return \"Steel\"; }\n public constructor(props: DefinitionElementProps, iModel: IModelDb) { super(props, iModel); }\n}\n"]}
|
|
@@ -9,6 +9,10 @@ import { Schema } from "@itwin/core-backend";
|
|
|
9
9
|
*/
|
|
10
10
|
export declare class PhysicalMaterialSchema extends Schema {
|
|
11
11
|
static get schemaName(): string;
|
|
12
|
+
/**
|
|
13
|
+
* TODO: Currently the schema file comes from a hardcoded path assuming its delivered with imodeljs-native
|
|
14
|
+
* Look to add a dependency on @bentley/physicalmaterial-schema and using require.resolve to obtain the path
|
|
15
|
+
*/
|
|
12
16
|
static get schemaFilePath(): string;
|
|
13
17
|
static registerSchema(): void;
|
|
14
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PhysicalMaterialSchema.d.ts","sourceRoot":"","sources":["../../src/PhysicalMaterialSchema.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAiC,MAAM,EAAW,MAAM,qBAAqB,CAAC;AAGrF;;;;GAIG;AACH,qBAAa,sBAAuB,SAAQ,MAAM;IAChD,WAA2B,UAAU,IAAI,MAAM,CAA+B;IAC9E,WAAkB,cAAc,IAAI,MAAM,CAAkI;WAE9J,cAAc;CAO7B"}
|
|
1
|
+
{"version":3,"file":"PhysicalMaterialSchema.d.ts","sourceRoot":"","sources":["../../src/PhysicalMaterialSchema.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAiC,MAAM,EAAW,MAAM,qBAAqB,CAAC;AAGrF;;;;GAIG;AACH,qBAAa,sBAAuB,SAAQ,MAAM;IAChD,WAA2B,UAAU,IAAI,MAAM,CAA+B;IAC9E;;;OAGG;IACH,WAAkB,cAAc,IAAI,MAAM,CAAkI;WAE9J,cAAc;CAO7B"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.PhysicalMaterialSchema = void 0;
|
|
11
|
-
const path = require("path");
|
|
11
|
+
const path = require("node:path");
|
|
12
12
|
const core_backend_1 = require("@itwin/core-backend");
|
|
13
13
|
const elementsModule = require("./PhysicalMaterialElements.js");
|
|
14
14
|
/** The PhysicalMaterialSchema contains standard physical material classes.
|
|
@@ -18,6 +18,10 @@ const elementsModule = require("./PhysicalMaterialElements.js");
|
|
|
18
18
|
*/
|
|
19
19
|
class PhysicalMaterialSchema extends core_backend_1.Schema {
|
|
20
20
|
static get schemaName() { return "PhysicalMaterial"; }
|
|
21
|
+
/**
|
|
22
|
+
* TODO: Currently the schema file comes from a hardcoded path assuming its delivered with imodeljs-native
|
|
23
|
+
* Look to add a dependency on @bentley/physicalmaterial-schema and using require.resolve to obtain the path
|
|
24
|
+
*/
|
|
21
25
|
static get schemaFilePath() { return path.join(core_backend_1.KnownLocations.nativeAssetsDir, "ECSchemas", "Domain", `${PhysicalMaterialSchema.schemaName}.ecschema.xml`); }
|
|
22
26
|
static registerSchema() {
|
|
23
27
|
if (this !== core_backend_1.Schemas.getRegisteredSchema(this.schemaName)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PhysicalMaterialSchema.js","sourceRoot":"","sources":["../../src/PhysicalMaterialSchema.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,
|
|
1
|
+
{"version":3,"file":"PhysicalMaterialSchema.js","sourceRoot":"","sources":["../../src/PhysicalMaterialSchema.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,kCAAkC;AAClC,sDAAqF;AACrF,gEAAgE;AAEhE;;;;GAIG;AACH,MAAa,sBAAuB,SAAQ,qBAAM;IACzC,MAAM,KAAc,UAAU,KAAa,OAAO,kBAAkB,CAAC,CAAC,CAAC;IAC9E;;;OAGG;IACI,MAAM,KAAK,cAAc,KAAa,OAAO,IAAI,CAAC,IAAI,CAAC,6BAAc,CAAC,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,sBAAsB,CAAC,UAAU,eAAe,CAAC,CAAC,CAAC,CAAC;IAErK,MAAM,CAAC,cAAc;QAC1B,IAAI,IAAI,KAAK,sBAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;YAC1D,sBAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAC1C,sBAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;YAC7B,4BAAa,CAAC,cAAc,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;QACrD,CAAC;IACH,CAAC;CACF;AAfD,wDAeC","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 PhysicalMaterial\n */\n\nimport * as path from \"node:path\";\nimport { ClassRegistry, KnownLocations, Schema, Schemas } from \"@itwin/core-backend\";\nimport * as elementsModule from \"./PhysicalMaterialElements.js\";\n\n/** The PhysicalMaterialSchema contains standard physical material classes.\n * A physical material defines the matter that makes up physical elements.\n * @see [PhysicalMaterial]($backend)\n * @public\n */\nexport class PhysicalMaterialSchema extends Schema {\n public static override get schemaName(): string { return \"PhysicalMaterial\"; }\n /**\n * TODO: Currently the schema file comes from a hardcoded path assuming its delivered with imodeljs-native\n * Look to add a dependency on @bentley/physicalmaterial-schema and using require.resolve to obtain the path\n */\n public static get schemaFilePath(): string { return path.join(KnownLocations.nativeAssetsDir, \"ECSchemas\", \"Domain\", `${PhysicalMaterialSchema.schemaName}.ecschema.xml`); }\n\n public static registerSchema() {\n if (this !== Schemas.getRegisteredSchema(this.schemaName)) {\n Schemas.unregisterSchema(this.schemaName);\n Schemas.registerSchema(this);\n ClassRegistry.registerModule(elementsModule, this);\n }\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"physical-material-backend.js","sourceRoot":"","sources":["../../src/physical-material-backend.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;;;;;AAE/F,gEAA8C;AAC9C,8DAA4C;AAE5C;;GAEG;AAEH;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\
|
|
1
|
+
{"version":3,"file":"physical-material-backend.js","sourceRoot":"","sources":["../../src/physical-material-backend.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;;;;;AAE/F,gEAA8C;AAC9C,8DAA4C;AAE5C;;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 \"./PhysicalMaterialElements.js\";\nexport * from \"./PhysicalMaterialSchema.js\";\n\n/** @docs-package-description\n * The `@itwin/physical-material-backend` package contains classes related to working with physical materials on the backend.\n */\n\n/** @docs-group-description PhysicalMaterial\n * A PhysicalMaterial defines the matter that makes up physical elements.\n */\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PhysicalMaterialElements.js","sourceRoot":"","sources":["../../src/PhysicalMaterialElements.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAY,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGjE;;;GAGG;AACH,MAAM,OAAO,SAAU,SAAQ,gBAAgB;IAC7C,gBAAgB;IACT,MAAM,KAAc,SAAS,KAAa,OAAO,WAAW,CAAC,CAAC,CAAC;IACtE,YAAmB,KAA6B,EAAE,MAAgB,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CAC9F;AAED;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,gBAAgB;IAC5C,gBAAgB;IACT,MAAM,KAAc,SAAS,KAAa,OAAO,UAAU,CAAC,CAAC,CAAC;IACrE,YAAmB,KAA6B,EAAE,MAAgB,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CAC9F;AAED;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,gBAAgB;IAC3C,gBAAgB;IACT,MAAM,KAAc,SAAS,KAAa,OAAO,SAAS,CAAC,CAAC,CAAC;IACpE,YAAmB,KAA6B,EAAE,MAAgB,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CAC9F;AAED;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,gBAAgB;IAC5C,gBAAgB;IACT,MAAM,KAAc,SAAS,KAAa,OAAO,UAAU,CAAC,CAAC,CAAC;IACrE,YAAmB,KAA6B,EAAE,MAAgB,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CAC9F;AAED;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,gBAAgB;IACzC,gBAAgB;IACT,MAAM,KAAc,SAAS,KAAa,OAAO,OAAO,CAAC,CAAC,CAAC;IAClE,YAAmB,KAA6B,EAAE,MAAgB,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CAC9F","sourcesContent":["/*---------------------------------------------------------------------------------------------\
|
|
1
|
+
{"version":3,"file":"PhysicalMaterialElements.js","sourceRoot":"","sources":["../../src/PhysicalMaterialElements.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAY,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGjE;;;GAGG;AACH,MAAM,OAAO,SAAU,SAAQ,gBAAgB;IAC7C,gBAAgB;IACT,MAAM,KAAc,SAAS,KAAa,OAAO,WAAW,CAAC,CAAC,CAAC;IACtE,YAAmB,KAA6B,EAAE,MAAgB,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CAC9F;AAED;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,gBAAgB;IAC5C,gBAAgB;IACT,MAAM,KAAc,SAAS,KAAa,OAAO,UAAU,CAAC,CAAC,CAAC;IACrE,YAAmB,KAA6B,EAAE,MAAgB,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CAC9F;AAED;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,gBAAgB;IAC3C,gBAAgB;IACT,MAAM,KAAc,SAAS,KAAa,OAAO,SAAS,CAAC,CAAC,CAAC;IACpE,YAAmB,KAA6B,EAAE,MAAgB,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CAC9F;AAED;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,gBAAgB;IAC5C,gBAAgB;IACT,MAAM,KAAc,SAAS,KAAa,OAAO,UAAU,CAAC,CAAC,CAAC;IACrE,YAAmB,KAA6B,EAAE,MAAgB,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CAC9F;AAED;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,gBAAgB;IACzC,gBAAgB;IACT,MAAM,KAAc,SAAS,KAAa,OAAO,OAAO,CAAC,CAAC,CAAC;IAClE,YAAmB,KAA6B,EAAE,MAAgB,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CAC9F","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 PhysicalMaterial\n */\n\nimport { IModelDb, PhysicalMaterial } from \"@itwin/core-backend\";\nimport { DefinitionElementProps } from \"@itwin/core-common\";\n\n/** Aggregate is a bis:PhysicalMaterial representing a broad category of coarse to medium grained particulate material typically used in construction as\n * well as base material under foundations, roadways, and railways.\n * @public\n */\nexport class Aggregate extends PhysicalMaterial {\n /** @internal */\n public static override get className(): string { return \"Aggregate\"; }\n public constructor(props: DefinitionElementProps, iModel: IModelDb) { super(props, iModel); }\n}\n\n/** Aluminum is a bis:PhysicalMaterial representing aluminum (atomic symbol Al) or one of its alloys.\n * @public\n */\nexport class Aluminum extends PhysicalMaterial {\n /** @internal */\n public static override get className(): string { return \"Aluminum\"; }\n public constructor(props: DefinitionElementProps, iModel: IModelDb) { super(props, iModel); }\n}\n\n/** Asphalt is a bis:PhysicalMaterial representing a mixture of a bituminous binder and aggregates. Asphalt is typically used for roadway surfacing.\n * @public\n */\nexport class Asphalt extends PhysicalMaterial {\n /** @internal */\n public static override get className(): string { return \"Asphalt\"; }\n public constructor(props: DefinitionElementProps, iModel: IModelDb) { super(props, iModel); }\n}\n\n/** Concrete is a bis:PhysicalMaterial representing a mixture of hydraulic cement, aggregates, water and optionally other materials.\n * @public\n */\nexport class Concrete extends PhysicalMaterial {\n /** @internal */\n public static override get className(): string { return \"Concrete\"; }\n public constructor(props: DefinitionElementProps, iModel: IModelDb) { super(props, iModel); }\n}\n\n/** Steel is a bis:PhysicalMaterial representing an alloy of iron, carbon and other elements.\n * @public\n */\nexport class Steel extends PhysicalMaterial {\n /** @internal */\n public static override get className(): string { return \"Steel\"; }\n public constructor(props: DefinitionElementProps, iModel: IModelDb) { super(props, iModel); }\n}\n"]}
|
|
@@ -9,6 +9,10 @@ import { Schema } from "@itwin/core-backend";
|
|
|
9
9
|
*/
|
|
10
10
|
export declare class PhysicalMaterialSchema extends Schema {
|
|
11
11
|
static get schemaName(): string;
|
|
12
|
+
/**
|
|
13
|
+
* TODO: Currently the schema file comes from a hardcoded path assuming its delivered with imodeljs-native
|
|
14
|
+
* Look to add a dependency on @bentley/physicalmaterial-schema and using require.resolve to obtain the path
|
|
15
|
+
*/
|
|
12
16
|
static get schemaFilePath(): string;
|
|
13
17
|
static registerSchema(): void;
|
|
14
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PhysicalMaterialSchema.d.ts","sourceRoot":"","sources":["../../src/PhysicalMaterialSchema.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAiC,MAAM,EAAW,MAAM,qBAAqB,CAAC;AAGrF;;;;GAIG;AACH,qBAAa,sBAAuB,SAAQ,MAAM;IAChD,WAA2B,UAAU,IAAI,MAAM,CAA+B;IAC9E,WAAkB,cAAc,IAAI,MAAM,CAAkI;WAE9J,cAAc;CAO7B"}
|
|
1
|
+
{"version":3,"file":"PhysicalMaterialSchema.d.ts","sourceRoot":"","sources":["../../src/PhysicalMaterialSchema.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAiC,MAAM,EAAW,MAAM,qBAAqB,CAAC;AAGrF;;;;GAIG;AACH,qBAAa,sBAAuB,SAAQ,MAAM;IAChD,WAA2B,UAAU,IAAI,MAAM,CAA+B;IAC9E;;;OAGG;IACH,WAAkB,cAAc,IAAI,MAAM,CAAkI;WAE9J,cAAc;CAO7B"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/** @packageDocumentation
|
|
6
6
|
* @module PhysicalMaterial
|
|
7
7
|
*/
|
|
8
|
-
import * as path from "path";
|
|
8
|
+
import * as path from "node:path";
|
|
9
9
|
import { ClassRegistry, KnownLocations, Schema, Schemas } from "@itwin/core-backend";
|
|
10
10
|
import * as elementsModule from "./PhysicalMaterialElements.js";
|
|
11
11
|
/** The PhysicalMaterialSchema contains standard physical material classes.
|
|
@@ -15,6 +15,10 @@ import * as elementsModule from "./PhysicalMaterialElements.js";
|
|
|
15
15
|
*/
|
|
16
16
|
export class PhysicalMaterialSchema extends Schema {
|
|
17
17
|
static get schemaName() { return "PhysicalMaterial"; }
|
|
18
|
+
/**
|
|
19
|
+
* TODO: Currently the schema file comes from a hardcoded path assuming its delivered with imodeljs-native
|
|
20
|
+
* Look to add a dependency on @bentley/physicalmaterial-schema and using require.resolve to obtain the path
|
|
21
|
+
*/
|
|
18
22
|
static get schemaFilePath() { return path.join(KnownLocations.nativeAssetsDir, "ECSchemas", "Domain", `${PhysicalMaterialSchema.schemaName}.ecschema.xml`); }
|
|
19
23
|
static registerSchema() {
|
|
20
24
|
if (this !== Schemas.getRegisteredSchema(this.schemaName)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PhysicalMaterialSchema.js","sourceRoot":"","sources":["../../src/PhysicalMaterialSchema.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"PhysicalMaterialSchema.js","sourceRoot":"","sources":["../../src/PhysicalMaterialSchema.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,KAAK,cAAc,MAAM,+BAA+B,CAAC;AAEhE;;;;GAIG;AACH,MAAM,OAAO,sBAAuB,SAAQ,MAAM;IACzC,MAAM,KAAc,UAAU,KAAa,OAAO,kBAAkB,CAAC,CAAC,CAAC;IAC9E;;;OAGG;IACI,MAAM,KAAK,cAAc,KAAa,OAAO,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,sBAAsB,CAAC,UAAU,eAAe,CAAC,CAAC,CAAC,CAAC;IAErK,MAAM,CAAC,cAAc;QAC1B,IAAI,IAAI,KAAK,OAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;YAC1D,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAC1C,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;YAC7B,aAAa,CAAC,cAAc,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;QACrD,CAAC;IACH,CAAC;CACF","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 PhysicalMaterial\n */\n\nimport * as path from \"node:path\";\nimport { ClassRegistry, KnownLocations, Schema, Schemas } from \"@itwin/core-backend\";\nimport * as elementsModule from \"./PhysicalMaterialElements.js\";\n\n/** The PhysicalMaterialSchema contains standard physical material classes.\n * A physical material defines the matter that makes up physical elements.\n * @see [PhysicalMaterial]($backend)\n * @public\n */\nexport class PhysicalMaterialSchema extends Schema {\n public static override get schemaName(): string { return \"PhysicalMaterial\"; }\n /**\n * TODO: Currently the schema file comes from a hardcoded path assuming its delivered with imodeljs-native\n * Look to add a dependency on @bentley/physicalmaterial-schema and using require.resolve to obtain the path\n */\n public static get schemaFilePath(): string { return path.join(KnownLocations.nativeAssetsDir, \"ECSchemas\", \"Domain\", `${PhysicalMaterialSchema.schemaName}.ecschema.xml`); }\n\n public static registerSchema() {\n if (this !== Schemas.getRegisteredSchema(this.schemaName)) {\n Schemas.unregisterSchema(this.schemaName);\n Schemas.registerSchema(this);\n ClassRegistry.registerModule(elementsModule, this);\n }\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"physical-material-backend.js","sourceRoot":"","sources":["../../src/physical-material-backend.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAE/F,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAE5C;;GAEG;AAEH;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\
|
|
1
|
+
{"version":3,"file":"physical-material-backend.js","sourceRoot":"","sources":["../../src/physical-material-backend.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAE/F,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAE5C;;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 \"./PhysicalMaterialElements.js\";\nexport * from \"./PhysicalMaterialSchema.js\";\n\n/** @docs-package-description\n * The `@itwin/physical-material-backend` package contains classes related to working with physical materials on the backend.\n */\n\n/** @docs-group-description PhysicalMaterial\n * A PhysicalMaterial defines the matter that makes up physical elements.\n */\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/physical-material-backend",
|
|
3
|
-
"version": "5.0.0-dev.
|
|
3
|
+
"version": "5.0.0-dev.98",
|
|
4
4
|
"main": "lib/cjs/physical-material-backend.js",
|
|
5
5
|
"module": "lib/esm/physical-material-backend.js",
|
|
6
6
|
"typings": "lib/cjs/physical-material-backend",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"url": "http://www.bentley.com"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@itwin/core-backend": "5.0.0-dev.
|
|
34
|
-
"@itwin/core-bentley": "5.0.0-dev.
|
|
35
|
-
"@itwin/core-common": "5.0.0-dev.
|
|
33
|
+
"@itwin/core-backend": "5.0.0-dev.98",
|
|
34
|
+
"@itwin/core-bentley": "5.0.0-dev.98",
|
|
35
|
+
"@itwin/core-common": "5.0.0-dev.98"
|
|
36
36
|
},
|
|
37
37
|
"//devDependencies": [
|
|
38
38
|
"NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install",
|
|
@@ -41,7 +41,6 @@
|
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@itwin/eslint-plugin": "5.0.0-dev.1",
|
|
43
43
|
"@types/chai": "4.3.1",
|
|
44
|
-
"@types/fs-extra": "^4.0.7",
|
|
45
44
|
"@types/mocha": "^10.0.6",
|
|
46
45
|
"@types/node": "~20.17.0",
|
|
47
46
|
"chai": "^4.3.10",
|
|
@@ -50,14 +49,11 @@
|
|
|
50
49
|
"nyc": "^17.1.0",
|
|
51
50
|
"rimraf": "^6.0.1",
|
|
52
51
|
"typescript": "~5.6.2",
|
|
53
|
-
"@itwin/
|
|
54
|
-
"@itwin/
|
|
55
|
-
"@itwin/core-bentley": "5.0.0-dev.96",
|
|
52
|
+
"@itwin/build-tools": "5.0.0-dev.98",
|
|
53
|
+
"@itwin/core-backend": "5.0.0-dev.98",
|
|
56
54
|
"internal-tools": "3.0.0-dev.69",
|
|
57
|
-
"@itwin/core-
|
|
58
|
-
|
|
59
|
-
"TODO-dependencies": {
|
|
60
|
-
"@bentley/physicalmaterial-schema": "~1.0.1"
|
|
55
|
+
"@itwin/core-bentley": "5.0.0-dev.98",
|
|
56
|
+
"@itwin/core-common": "5.0.0-dev.98"
|
|
61
57
|
},
|
|
62
58
|
"nyc": {
|
|
63
59
|
"extends": "./node_modules/@itwin/build-tools/.nycrc"
|