feat(minimap): add scaling

This commit is contained in:
moklick
2019-08-05 17:29:26 +02:00
parent f61f89410f
commit 34a0df46f9
6 changed files with 13 additions and 11 deletions
+3 -3
View File
@@ -41,9 +41,9 @@ export default ({ style = {}, className, bgColor = '#f8f8f8', nodeColor = '#ddd'
ctx.fillRect(
(x * scaleFactor),
(y * scaleFactor),
n.__rg.width * scaleFactor,
n.__rg.height * scaleFactor)
;
n.__rg.width * scaleFactor * state.transform[2],
n.__rg.height * scaleFactor * state.transform[2]
);
});
}
}, [nodePositions, state.transform, height])