@plurid/plurid-engine 0.0.0-19 → 0.0.0-20

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.
@@ -87,6 +87,9 @@ var definePluridConfiguration = (flat = {}) => {
87
87
  if (flat.layout !== void 0) {
88
88
  space.layout = flat.layout;
89
89
  }
90
+ if (flat.spaceDimensions !== void 0) {
91
+ space.dimensions = flat.spaceDimensions;
92
+ }
90
93
  if (flat.perspective !== void 0) {
91
94
  space.perspective = flat.perspective;
92
95
  }
@@ -788,8 +791,7 @@ __export(matrix3d_exports, {
788
791
  getTransformRotate: () => getTransformRotate,
789
792
  getTransformScale: () => getTransformScale,
790
793
  getTransformTranslate: () => getTransformTranslate,
791
- getTranslationMatrix: () => getTranslationMatrix,
792
- setTransform: () => setTransform
794
+ getTranslationMatrix: () => getTranslationMatrix
793
795
  });
794
796
  function getMatrixValues(matrix3d) {
795
797
  const matrixValues = matrix3d.split("(")[1].split(")")[0].split(",");
@@ -829,9 +831,9 @@ function getScalationValue(matrix3d) {
829
831
  let temp = 0;
830
832
  let scale;
831
833
  if (valuesMatrix.length === 16) {
832
- const scaleMatrix4 = getMatrixValues(matrix3d).slice(0, 4);
834
+ const scaleMatrix3 = getMatrixValues(matrix3d).slice(0, 4);
833
835
  scale = 0;
834
- for (const el of scaleMatrix4) {
836
+ for (const el of scaleMatrix3) {
835
837
  scale += parseFloat(el) * parseFloat(el);
836
838
  }
837
839
  scale = parseFloat(Math.sqrt(scale).toPrecision(4));
@@ -841,14 +843,6 @@ function getScalationValue(matrix3d) {
841
843
  }
842
844
  return scale;
843
845
  }
844
- function setTransform(rotationMatrix, translationMatrix, scalationMatrix) {
845
- const transformMatrix = multiplyArrayOfMatrices([
846
- translationMatrix,
847
- rotationMatrix,
848
- scalationMatrix
849
- ]);
850
- return matrixArrayToCSSMatrix(transformMatrix);
851
- }
852
846
  function getTransformRotate(matrix3d) {
853
847
  const pi = Math.PI;
854
848
  const values = getRotationMatrix(matrix3d);