MCPcopy Create free account
hub / github.com/dailydotdev/apps / flyTo

Function flyTo

packages/webapp/components/world/engine/world.js:8702–8706  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

8700 syncCam();
8701}
8702function flyTo(d){
8703 target.set(d.x,d.baseY||0,d.z);
8704 zoomTarget=clamp(spec(Math.max(d.level,4)).radius*2.4,ZMIN,ZMAX);
8705 clampTarget();
8706}
8707/* ================================================================= picking */
8708function pick(cx,cy,click){
8709 if(!W)return;

Callers 2

buildLabelsFunction · 0.85
focusFunction · 0.85

Calls 3

specFunction · 0.85
clampTargetFunction · 0.85
clampFunction · 0.70

Tested by

no test coverage detected