MCPcopy Create free account
hub / github.com/botbotrobotics/BotBrain / updateTransform

Function updateTransform

frontend/src/components/map-view.tsx:643–647  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

641
642 // Function to update transform
643 const updateTransform = () => {
644 if (!state.viewport) return;
645 const transform = `translate(${state.translateX}px, ${state.translateY}px) scale(${state.scale})`;
646 state.viewport.style.transform = transform;
647 };
648
649 // Initial transform
650 updateTransform();

Callers 1

tryFallbackMapRenderingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected