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