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