jscad-electronics 0.0.177 → 0.0.178

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/dist/vanilla.js CHANGED
@@ -8848,11 +8848,8 @@ function renderNode(node, colorCtx, renderCtx) {
8848
8848
  }));
8849
8849
  }
8850
8850
  if (type === Rotate) {
8851
- const rot = Array.isArray(props?.rotation) ? [
8852
- degToRad(props.rotation[0]),
8853
- degToRad(props.rotation[1]),
8854
- degToRad(props.rotation[2])
8855
- ] : [
8851
+ const angles = props?.angles ?? props?.rotation;
8852
+ const rot = Array.isArray(angles) ? [degToRad(angles[0]), degToRad(angles[1]), degToRad(angles[2])] : [
8856
8853
  degToRad(props?.x ?? 0),
8857
8854
  degToRad(props?.y ?? 0),
8858
8855
  degToRad(props?.z ?? 0)