@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.
- package/bld/chunks/{chunk-RPY2WVCB.js → chunk-J77FMYFY.js} +9 -1
- package/bld/chunks/chunk-J77FMYFY.js.map +7 -0
- package/bld/chunks/{chunk-U5G2VU2I.js → chunk-OQLJDJIF.js} +2 -2
- package/bld/chunks/{chunk-P5VGKAEM.js → chunk-PAIFBNU4.js} +2 -2
- package/bld/chunks/{chunk-BF55AIEQ.js → chunk-ZMT6EFHL.js} +3 -3
- package/bld/library/index.js +1 -1
- package/bld/library/replicad.js +2 -2
- package/bld/library/runtime.d.ts +2 -0
- package/bld/library/runtime.d.ts.map +1 -1
- package/bld/node/index.js +3 -3
- package/bld/node/replicad.js +4 -4
- package/bld/tooling/index.js +2 -2
- package/package.json +1 -1
- package/src/library/runtime.ts +12 -0
- package/bld/chunks/chunk-RPY2WVCB.js.map +0 -7
- /package/bld/chunks/{chunk-U5G2VU2I.js.map → chunk-OQLJDJIF.js.map} +0 -0
- /package/bld/chunks/{chunk-P5VGKAEM.js.map → chunk-PAIFBNU4.js.map} +0 -0
- /package/bld/chunks/{chunk-BF55AIEQ.js.map → chunk-ZMT6EFHL.js.map} +0 -0
|
@@ -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-
|
|
24842
|
+
//# sourceMappingURL=chunk-J77FMYFY.js.map
|