canvu-react 0.4.22 → 0.4.23

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/native.js CHANGED
@@ -1304,14 +1304,13 @@ function skiaCameraTransform(zoom, panX, panY) {
1304
1304
  return [{ translateX: panX }, { translateY: panY }, { scale: zoom }];
1305
1305
  }
1306
1306
  function skiaItemPlacementTransform(x, y, cx, cy, rotationRad) {
1307
- const result = [];
1307
+ const result = [{ translateX: x }, { translateY: y }];
1308
1308
  if (Math.abs(rotationRad) > 1e-12) {
1309
1309
  result.push({
1310
1310
  rotate: rotationRad,
1311
1311
  origin: { x: cx, y: cy }
1312
1312
  });
1313
1313
  }
1314
- result.push({ translateX: x }, { translateY: y });
1315
1314
  return result;
1316
1315
  }
1317
1316
  function rgbaFromHexAndOpacity(hex, opacity) {