@mlightcad/graphic-interface 3.2.2 → 3.2.3

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.
@@ -45,11 +45,29 @@ export interface AcGiEntity {
45
45
  */
46
46
  get userData(): object;
47
47
  set userData(value: object);
48
+ /**
49
+ * Adds one child entity for the current entity
50
+ * @param child - The child entity to add
51
+ */
52
+ addChild(child: AcGiEntity): void;
48
53
  /**
49
54
  * Apply the matrix transform to the object and updates the object's position, rotation and scale.
50
55
  * @param matrix Input the matrix to apply
51
56
  */
52
57
  applyMatrix(matrix: AcGeMatrix3d): void;
58
+ /**
59
+ * Bakes the current object's transformation into all of its children and
60
+ * resets the object itself to an identity transform.
61
+ *
62
+ * After calling this function:
63
+ * - All children preserve their world-space appearance.
64
+ * - The object's local matrix and world matrix become identity.
65
+ * - The scene hierarchy remains unchanged.
66
+ *
67
+ * This is useful for freezing transforms, flattening transform hierarchies,
68
+ * or ensuring newly added children are not affected by previous transforms.
69
+ */
70
+ bakeTransformToChildren(): void;
53
71
  /**
54
72
  * Highlight this entity.
55
73
  */
@@ -1 +1 @@
1
- {"version":3,"file":"AcGiEntity.d.ts","sourceRoot":"","sources":["../src/AcGiEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAEtE;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;;;;;;;;OAYG;IACH,IAAI,SAAS,IAAI,WAAW,GAAG,SAAS,CAAA;IACxC,IAAI,SAAS,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,EAAC;IAC7C;;;OAGG;IACH,IAAI,QAAQ,IAAI,MAAM,CAAA;IACtB,IAAI,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAC;IAE3B;;;OAGG;IACH,IAAI,OAAO,IAAI,MAAM,CAAA;IACrB,IAAI,OAAO,CAAC,KAAK,EAAE,MAAM,EAAC;IAE1B;;OAEG;I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IAAI,MAAM,CAAA;IACtB,IAAI,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAC;IAE3B;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,CAAA;IAEjC;;;OAGG;IACH,WAAW,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAEvC;;;;;;;;;;;OAWG;IACH,uBAAuB,IAAI,IAAI,CAAA;IAE/B;;OAEG;IACH,SAAS,IAAI,IAAI,CAAA;IAEjB;;OAEG;IACH,WAAW,IAAI,IAAI,CAAA;IAEnB;;;;;;;OAOG;IACH,aAAa,IAAI,UAAU,CAAA;CAC5B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mlightcad/graphic-interface",
3
- "version": "3.2.2",
3
+ "version": "3.2.3",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
@@ -32,8 +32,8 @@
32
32
  "require": "./dist/graphic-interface.umd.cjs"
33
33
  },
34
34
  "peerDependencies": {
35
- "@mlightcad/common": "1.3.2",
36
- "@mlightcad/geometry-engine": "3.1.5"
35
+ "@mlightcad/common": "1.3.3",
36
+ "@mlightcad/geometry-engine": "3.1.6"
37
37
  },
38
38
  "scripts": {
39
39
  "clean": "rimraf dist lib tsconfig.tsbuildinfo",