Browse Source

change default parameters

n root events
tag radius
tag colors
master
limina1 10 months ago
parent
commit
b669e28a48
  1. 4
      src/lib/navigator/EventNetwork/utils/tagNetworkBuilder.ts
  2. 2
      src/lib/state.ts

4
src/lib/navigator/EventNetwork/utils/tagNetworkBuilder.ts

@ -11,7 +11,7 @@ import type { NetworkNode, NetworkLink, GraphData } from "../types";
// Configuration // Configuration
const TAG_ANCHOR_RADIUS = 15; const TAG_ANCHOR_RADIUS = 15;
// TODO: Move this to settings panel for user control // TODO: Move this to settings panel for user control
const TAG_ANCHOR_PLACEMENT_RADIUS = 2500; // Radius from center within which to randomly place tag anchors const TAG_ANCHOR_PLACEMENT_RADIUS = 1250; // Radius from center within which to randomly place tag anchors
/** /**
* Simple seeded random number generator (using a Linear Congruential Generator) * Simple seeded random number generator (using a Linear Congruential Generator)
@ -50,7 +50,7 @@ function createSeed(str: string): number {
export function getTagAnchorColor(tagType: string): string { export function getTagAnchorColor(tagType: string): string {
switch (tagType) { switch (tagType) {
case "t": case "t":
return "#3B82F6"; // Blue for hashtags return "#eba5a5"; // Blue for hashtags
case "p": case "p":
return "#10B981"; // Green for people return "#10B981"; // Green for people
case "author": case "author":

2
src/lib/state.ts

@ -11,5 +11,5 @@ export const tabBehaviour: Writable<string> = writable(
export const userPublickey: Writable<string> = writable( export const userPublickey: Writable<string> = writable(
(browser && localStorage.getItem("wikinostr_loggedInPublicKey")) || "", (browser && localStorage.getItem("wikinostr_loggedInPublicKey")) || "",
); );
export const networkFetchLimit: Writable<number> = writable(5); export const networkFetchLimit: Writable<number> = writable(20);
export const levelsToRender: Writable<number> = writable(3); export const levelsToRender: Writable<number> = writable(3);

Loading…
Cancel
Save