north-star / commit
disable local tester
src/app.js | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/app.js b/src/app.js index 488f6da..0fb6f88 100644 --- a/src/app.js +++ b/src/app.js @@ -428,22 +428,22 @@ const render = () => { }); } - // For local testing, add a "stalker" participant that moves in a circle around the self participant. This is useful for testing the arrow rotation without needing multiple devices. The stalker will NOT be added as a participant in the database, so it will show up only on the local device and won't affect other participants. - const stalkerAngle = (Date.now() / 10000) % (2 * Math.PI); // angle in radians that changes over time - // console.debug('Stalker angle (radians):', stalkerAngle); - const stalkerDistance = 0.001; // distance in degrees (about 111 meters) - const stalkerPosition = { - lat: selfPosition.lat + stalkerDistance * Math.cos(stalkerAngle), - lon: selfPosition.lon + stalkerDistance * Math.sin(stalkerAngle) - }; - const testParticipant = { - id: 'test-stalker', - name: 'Test Stalker', - color: '#ff0000', - position: stalkerPosition, - timestamp: Date.now() - }; - participantsToRender.push(testParticipant); + // // For local testing, add a "stalker" participant that moves in a circle around the self participant. This is useful for testing the arrow rotation without needing multiple devices. The stalker will NOT be added as a participant in the database, so it will show up only on the local device and won't affect other participants. + // const stalkerAngle = (Date.now() / 10000) % (2 * Math.PI); // angle in radians that changes over time + // // console.debug('Stalker angle (radians):', stalkerAngle); + // const stalkerDistance = 0.001; // distance in degrees (about 111 meters) + // const stalkerPosition = { + // lat: selfPosition.lat + stalkerDistance * Math.cos(stalkerAngle), + // lon: selfPosition.lon + stalkerDistance * Math.sin(stalkerAngle) + // }; + // const testParticipant = { + // id: 'test-stalker', + // name: 'Test Stalker', + // color: '#ff0000', + // position: stalkerPosition, + // timestamp: Date.now() + // }; + // participantsToRender.push(testParticipant); // For each participant, calculate the angle from self to the participant, and rotate the arrow accordingly. Also set the color of the arrow to the participant's color.