canvu-react 0.4.24 → 0.4.25

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