@code3d/core 0.0.1-alpha.3 → 0.0.1-alpha.4

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.
@@ -20977,6 +20977,12 @@ var RelationObject = class _RelationObject {
20977
20977
  };
20978
20978
  }
20979
20979
  constraintSnapshot(constraint, context) {
20980
+ const lastRotation = constraint.rotations.at(-1);
20981
+ const rotationSpatial = lastRotation ? this.constraintSpatial(
20982
+ constraint,
20983
+ { kind: "rotate", pivot: lastRotation.pivot },
20984
+ context
20985
+ ).spatial : void 0;
20980
20986
  const source = constraint.source.model ?? this;
20981
20987
  const target = constraint.target.model ?? this;
20982
20988
  const models = [...context.poses.keys()];
@@ -21026,6 +21032,7 @@ var RelationObject = class _RelationObject {
21026
21032
  offsetDirection: 1,
21027
21033
  offset: constraint.offset ?? origin,
21028
21034
  offsetFrame: toTransform(offsetFrame),
21035
+ rotation: rotationSpatial,
21029
21036
  sourceRefs: [...valueTrace(constraint).sourceRefs],
21030
21037
  parameters: [...valueTrace(constraint).parameters]
21031
21038
  };
@@ -21107,6 +21114,7 @@ var RelationObject = class _RelationObject {
21107
21114
  offsetDirection: source === this ? 1 : -1,
21108
21115
  offset: constraint.offset ?? origin,
21109
21116
  offsetFrame: toTransform(offsetFrame),
21117
+ rotation: rotationSpatial,
21110
21118
  sourceRefs: [...valueTrace(constraint).sourceRefs],
21111
21119
  parameters: [...valueTrace(constraint).parameters]
21112
21120
  };
@@ -24831,4 +24839,4 @@ export {
24831
24839
  assertSketchDragConnections,
24832
24840
  solveSketchSnapshot
24833
24841
  };
24834
- //# sourceMappingURL=chunk-RPY2WVCB.js.map
24842
+ //# sourceMappingURL=chunk-J77FMYFY.js.map